(Buffer Contents): Add filter-buffer-substring and buffer-substring-filters.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c70a4df6
SM
12005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
4 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
5 (Ffile_name_absolute_p): Use it.
6 (search_embedded_absfilename): New fun, extracted from
7 Fsubstitute_in_file_name. Use file_name_absolute_p.
8 Free the pw data after use.
9 (Fsubstitute_in_file_name): Use it.
10 After cutting a prefix, re-check file-name-handler.
11
6e7d0438
JR
122005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
13
14 * w32term.h (x_output): add focus_state.
15
16 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
17 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
18
65671706
SM
192005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
20
21 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
22 Use Fexit_minibuffer.
23 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
24
0de4dad4
SM
252005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
26
781da985
SM
27 * dired.c (Ffile_attributes): Add a missing gcpro.
28
0de4dad4
SM
29 * alloc.c (make_number): The arg can be bigger than `int'.
30 * lisp.h (make_number): Make prototype more precise.
31
32 * process.c, dired.c (Vfile_name_coding_system)
33 (Vdefault_file_name_coding_system):
34 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
35 (Vdefault_file_name_coding_system): Remove unused declarations.
36
ff18668f
JD
372005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
38
39 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
40 if it failed to pop up (Gnome "show pointer on ctrl" option makes
41 menus fail to pop up).
42
0de4dad4 432005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
44
45 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 46 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 47
8df0ffbe
KS
482005-03-22 Kim F. Storm <storm@cua.dk>
49
50 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
51 * dispextern.h (lookup_derived_face): Fix prototype.
52 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
53
54 * xdisp.c (handle_single_display_spec): Derive left-fringe and
55 right-fringe face from fringe face.
56
57 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
58 Derive face from fringe face.
59
6ca30ba4
JD
602005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
61
62 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
63
d615870a
DK
642005-03-22 David Kastrup <dak@gnu.org>
65
66 * textprop.c (Fnext_char_property_change)
66347da7 67 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
68 (Fnext_single_char_property_change)
69 (Fprevious_single_char_property_change): Check that limit is a
70 number in strings.
71 (Fnext_single_char_property_change): Coerce position to integer.
72 (Fprevious_single_char_property_change): Same here.
73
32b939ea
TTN
742005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
75
76 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
77
6027e473
SM
782005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
79
80 * frame.c (Fignore_event): Remove.
81 (syms_of_frame): Don't defsubr it.
82
83 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
84 redundant `ignore-event'.
85
730f4d72
EZ
862005-03-19 Eli Zaretskii <eliz@gnu.org>
87
88 * unexec.c (write_segment, unexec): Move these functions to avoid
89 forward references (which cause errors with "gcc -gcoff").
90
c7f6afd5
JD
912005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
92
6027e473 93 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 94 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 95
c7f6afd5
JD
96 * xrdb.c (x_load_resources): Use different char *helv when I18N
97 is present.
98
db328182
KH
992005-03-17 Kenichi Handa <handa@m17n.org>
100
66347da7 101 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 102
211f2210
SM
1032005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
104
105 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
106 Use xic_create_fontsetname even for non-Motif menus.
107 Don't forget to free the fontsetname.
108
109 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
110
c7bd5d57
RS
1112005-03-17 Richard M. Stallman <rms@gnu.org>
112
113 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
114
115 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
116 (Fmake_symbolic_link): Use G to read the new file name.
117
118 * callint.c (Finteractive): Document G option.
119 (Fcall_interactively): Implement G option.
120
121 * buffer.c (buffer_lisp_local_variables): New function,
122 broken out from Fbuffer_local_variables.
123 (clone_per_buffer_values): Use buffer_lisp_local_variables.
124
888953f1
SM
1252005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
126
3c916d65
SM
127 * xfns.c (xic_create_fontsetname): Add `motif' argument.
128 Always return a freshly allocated string.
129 (xic_create_xfontset): Adjust call.
130
131 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
132 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
133 (dump_realized_face): Fix warning.
134
9f9e5275
SM
135 * emacs.c (Fkill_emacs): YAILOM.
136
888953f1
SM
137 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
138
48502d68
YM
1392005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
140
141 * mac.c (HASHKEY_TERMINAL): Remove.
142 (HASHKEY_MAX_NID): New macro.
143 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
144 argument.
888953f1 145 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
146 (xrm_create_database, xrm_q_put_resource)
147 (xrm_merge_string_database, xrm_q_get_resource_1)
148 (xrm_q_get_resource): Change resource database representation so
149 that it may not use multiple hash tables for a single database.
150 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
151
d5161e8c
SM
1522005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
153
11a646cd
SM
154 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
155
156 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
157 locale-coding-system, as was already done for WINDOWSNT.
158
d5161e8c
SM
159 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
160 translation for chars in the 0-255 range.
161
568b6e41
LK
1622005-03-16 Lute Kamstra <lute@gnu.org>
163
164 * floatfns.c (Ffloor): Doc fix.
165
469fb3cf
YM
1662005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
167
168 * mac.c: Include macterm.h instead of directly including Carbon.h.
169 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
170 (Qarray, Qdictionary): New variables.
171 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
172 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
173 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
174 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
175 in callback for CFDictionaryApplyFunction.
176 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
177 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
178 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
179 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
180 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
181 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
182 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 183 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
184 (parse_binding, parse_component, parse_resource_name, parse_value)
185 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
186 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
187 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
188 New functions.
469fb3cf
YM
189
190 * macfns.c (mac_get_rdb_resource): Remove function.
191 (x_get_string_resource): Use xrm_get_resource.
192
193 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
194
195 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
196 name_list_element.
197 (mac_make_rdb): Create resource database from preferences and
198 argument string.
199 (mac_term_init): Save resource database to cddr part of
200 name_list_element.
201
202 * macterm.h (xrm_merge_string_database, xrm_get_resource)
203 (xrm_get_preference_database): Add externs.
204 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
205 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
206 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
207
208 * process.c (init_process): Change `#ifdef DARWIN' to `#if
209 defined (DARWIN) || defined (MAC_OSX)'
210
211 * s/darwin.h (DARWIN): Don't define.
212
6a3fac90
YM
2132005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
214
215 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
216 Remove unused variables.
217 (syms_of_macfns): Don't initialize them. Likewise for
218 Qface_set_after_frame_default. Defvar and initialize
219 Vx_window_horizontal_drag_shape.
220 (x_set_mouse_color): Change mouse pointer shape.
221 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 222 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
223 (hourglass_started): New function (from xfns.c).
224 (start_hourglass, cancel_hourglass): Put function body in #ifdef
225 MAC_OSX.
226 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
227 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 228 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
229
230 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
231 Controls.h. Use ThemeCursor instead of CursHandle.
232
d5161e8c
SM
233 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
234 Remove functions and declarations.
235 (mac_set_colors): Take argument for saving background color.
236 All callers changed.
6a3fac90
YM
237 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
238 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
239 background color.
240 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
241 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
242 Use SetThemeCursor.
6a3fac90
YM
243 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
244 indicator control to the upper-right corner of the window.
245 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
246 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
247 (do_window_update): Update controls after updating content area.
248 (mac_handle_window_event): Remove unused extern.
249 (XTread_socket): Check both control handle and control part code
250 to determine whether a scroll bar is clicked. Activate/deactivate
251 root control instead of contained scroll bar controls.
252 (make_mac_terminal_frame): Use ThemeCursor constants.
253
d5161e8c
SM
254 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
255 New member hourglass_control.
6a3fac90 256 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 257 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 258
a7321976
YM
2592005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
260
261 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 262 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
263 laptops, and fn + `enter' on laptops.
264
f7b758bd
SM
2652005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
266
267 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
268 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
269 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
270
271 * xfns.c (xic_defaut_fontset): New constant.
272 (xic_create_fontsetname): New function.
273 Extracted from create_frame_xic. Try to generate a slightly
274 better fontset.
275 (xic_create_xfontset): Use it.
276 (create_frame_xic): Simplify.
277
dac24db4
SM
2782005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
279
280 * fileio.c (Fmake_symbolic_link): Fix last change.
281
e0402468
RS
2822005-03-11 Richard M. Stallman <rms@gnu.org>
283
284 * fileio.c (Frename_file, Fadd_name_to_file)
285 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
286 expand the basename of FILE relative to it.
287
fa815b14
KH
2882005-03-11 Kenichi Handa <handa@m17n.org>
289
290 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
291 before calling setup_coding_system so that autoloading of a coding
292 system work.
293
817d354b
JD
2942005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
295
68a505ef
JD
296 * xfns.c (hourglass_started): New function.
297
298 * dispextern.h: Declare hourglass_started.
299
300 * keyboard.c (Fexecute_extended_command): Restart hourglass
301 after call to Fcompleting_read if already started.
302
817d354b
JD
303 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
304 GTK main loop is entered in xterm.c, thus doing the redraw.
305
b0a6f45c
KS
3062005-03-10 Kim F. Storm <storm@cua.dk>
307
308 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
309
ee5d57b0
KH
3102005-03-08 Kenichi Handa <handa@m17n.org>
311
312 * frame.c (x_set_font): Call set_default_ascii_font if an
313 available font is found.
314
315 * fontset.c (set_default_ascii_font): New function.
dac24db4 316 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
317
318 * fontset.h (set_default_ascii_font): Extern it.
319
f30c4a5c
KS
3202005-03-07 Kim F. Storm <storm@cua.dk>
321
3fb26a86
KS
322 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
323 (clear_image_cache_count): New var.
324 (redisplay_internal): Don't clear face and image caches in the
325 middle of redisplay; do it afterwards.
326
a54595d4
KS
327 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
328
f30c4a5c
KS
329 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
330 is valid. If not, clear phys_cursor_on_p and return.
331
3d182f9d
AS
3322005-03-07 Andreas Schwab <schwab@suse.de>
333
334 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
335
85d964de
RS
3362005-03-06 Richard M. Stallman <rms@gnu.org>
337
338 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
339
340 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
341 (Feval, Ffuncall): Use CHECK_CONS_LIST.
342
343 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
344
345 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
346 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
347
3ff96c81
JL
3482005-03-05 Juri Linkov <juri@jurta.org>
349
350 * emacs.c (USAGE1): Replace Info node name "command arguments"
351 with "emacs invocation".
352 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
353 allow arguments `--color' and `MODE' to be separated by space.
354 Add --no-blinking-cursor, -nbc.
355 (standard_args): Add -nbc, --no-blinking-cursor.
356
64eb0083
TTN
3572005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
358
359 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
360 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
361 * fileio.c (Fexpand_file_name) [VMS]:
362 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
363 * doc.c (munge_doc_file_name) [VMS]: Likewise.
364 (Fsnarf_documentation): Call munge_doc_file_name.
365
ad708ae5
TTN
3662005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
367
368 * s/vms.h (FILE_SYSTEM_CASE): New macro.
369 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
370 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
371
ba025f6d
YM
3722005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
373
374 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
375 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 376
dac24db4 377 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
378
379 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
380 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 381 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
382 (mac_clear_font_name_table): Move extern to macterm.h.
383
384 * macfns.c (install_window_handler): Move extern to macterm.h.
385 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
386 valid. Don't check !NILP (dir) because it is already checked with
387 CHECK_STRING.
388 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 389 specifying the default location and obtaining the selected filename.
ba025f6d
YM
390
391 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
392
2313f861 393 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
394 are included via Carbon.h.
395
dac24db4
SM
396 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
397 Define USE_CARBON_EVENTS to 1.
2313f861 398 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
399 (x_free_frame_resources): Call remove_window_handler for
400 non-tooltip windows.
401 [TARGET_API_MAC_CARBON]: Don't include headers that are included
402 via Carbon.h.
403 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
404 (mac_do_receive_dragUPP): New variables.
405 (mac_handle_service_event, init_service_handler): Put declarations
406 and definitions in #ifdef MAC_OSX.
407 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
408 drag-and-drop handler functions and register them.
409 (remove_window_handler): New function.
dac24db4
SM
410 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
411 Use fsspec_to_posix_pathname.
ba025f6d
YM
412 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
413 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
414 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
415 Set default cursors.
ba025f6d
YM
416 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
417 init_service_handler or init_quit_char_handler.
418 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
419
420 * macterm.h (install_window_handler, remove_window_handler)
421 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
422 (mac_clear_font_name_table): New externs.
ad708ae5 423
c1558952
TTN
4242005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
425
426 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
427 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
428 (Fexpand_file_name): Likewise.
429
fa439170
TTN
4302005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
431
432 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
433 no longer special-case VMS. Add bogus return value.
434
db2dacf6
KS
4352005-03-02 Kim F. Storm <storm@cua.dk>
436
437 * dispextern.h (XASSERTS): Define to 0 if not already defined.
438 (xassert) [!XASSERTS]: Define dummy version.
439
0870514c
KS
4402005-03-02 Kim F. Storm <storm@cua.dk>
441
442 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
443 Reported by David Kastrup.
444
6b640092
KS
4452005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
446
447 * xdisp.c (get_next_display_element): Fix control and escape
448 glyph from display vector.
449
f4a5a485
SM
4502005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
451
452 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
453
85d964de
RS
4542005-02-27 Richard M. Stallman <rms@gnu.org>
455
456 * xdisp.c (fast_find_position): Rename END to BEG.
457 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
458
6e8db3ea
JD
4592005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
460
f4a5a485 461 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
462 gtk_window_resize and x_wm_set_size_hint.
463
0f465b55
KS
4642005-02-25 Kim F. Storm <storm@cua.dk>
465
466 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
467
468 * xdisp.c (init_from_display_pos): Don't read past end of
469 it->overlay_strings array.
470
845a78b4
LK
4712005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
472
473 * buffer.c (syms_of_buffer): Fix typo.
474
b02c3eed
LK
4752005-02-23 Lute Kamstra <lute@gnu.org>
476
477 * buffer.c (Foverlay_buffer): Doc fix.
478
c8500765
KS
4792005-02-22 Kim F. Storm <storm@cua.dk>
480
b686dd59
KS
481 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
482 and symbol keys in alists and hash tables.
483
c8500765
KS
484 * xdisp.c (fast_find_position): Fix search for start of overlay.
485
81c85b53
KS
4862005-02-21 Kim F. Storm <storm@cua.dk>
487
488 * window.c (window_scroll_pixel_based): When scrolling backwards,
489 handle partial visible line at end of window even when we hit PT.
490
f4a5a485 4912005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
492
493 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
494
0dd5a842
KS
4952005-02-21 Kim F. Storm <storm@cua.dk>
496
497 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
498 I think those asserts are bogus if buffer contains invisible text
499 or images.
500
19e05d1f
KS
5012005-02-21 David Kastrup <dak@gnu.org>
502
503 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
504
0fba9f25
KS
5052005-02-20 Kim F. Storm <storm@cua.dk>
506
507 * xdisp.c (pos_visible_p): Be sure to move to the specified
508 position. Always get the full ascent / descent of the
509 corresponding row, to return reliable rtop and rbot values.
510 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
511 Must look one character back, as back_to_previous_line_start
512 returns position after the newline.
513 (move_it_vertically_backward): Fix heuristic for when to move further
514 back in case line_height * 2/3 is larger than window height.
515 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
516 as it does not do anything anymore. Add arg current_matrix_p to
517 use current matrix rather than desired matrix when set.
518 (try_cursor_movement): Don't scroll to make cursor row fully
519 visible if cursor didn't move. This avoids unexpected recentering
520 in case of blinking cursor or accepting process output.
521 Use current matrix to check cursor row visibility.
522 (redisplay_window): Fix whether to recenter or move to top in case
523 cursor line is taller than window height.
524 (find_first_unchanged_at_end_row): Stop search if we reach a row
525 which not enabled (instead of abort).
526
b1c2adc3
KS
5272005-02-18 Kim F. Storm <storm@cua.dk>
528
c2ee48fb
KS
529 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
530 to be nil in a :box attribute value list; customize prints that
531 as lisp value when no box color is specified.
532
b1c2adc3
KS
533 * .gdbinit (pitx, pit): Pretty print display iterator.
534 (prowx, prow): Pretty print glyph row.
535 (pcursorx, pcursor): Pretty print a window cursor.
536 (pwinx, pwin): Pretty print struct window.
537
f102186f
SM
5382005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
539
540 * alloc.c (BLOCK_BYTES): Harmless typo.
541
9b516537
AS
5422005-02-17 Andreas Schwab <schwab@suse.de>
543
544 * xfns.c (hack_wm_protocols): Use correct type for last parameter
545 of XGetWindowProperty to avoid aliasing issues.
546 (Fx_window_property): Likewise.
547
548 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 549 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
550
551 * xterm.c (handle_one_xevent): Use union of struct input_event and
552 struct selection_input_event to avoid aliasing issues.
553 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
554
886b1418
KS
5552005-02-17 Kim F. Storm <storm@cua.dk>
556
557 * dispextern.h (enum it_method): New enum.
558 (GET_FROM_*): Its members.
559 (struct it): Change member method from function pointer to enum.
560
561 * xdisp.c (check_it, init_from_display_pos, handle_stop)
562 (setup_for_ellipsis, handle_single_display_spec)
563 (handle_composition_prop, next_overlay_string)
564 (get_overlay_strings, reseat_1, reseat_to_string)
565 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
566 (in_display_vector_p, display_line, get_next_display_element):
567 Change it->method from function pointer to enum.
568 (get_next_element): New array to map it->method to function.
569 (get_next_display_element): Use it.
570 (set_iterator_to_next): Use switch instead of if/else chain.
571
99ee2c6a 5722005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
573
574 * w32select.c: Summary: Thorough rework to implement Unicode
575 clipboard operations and delayed rendering.
576
577 Drop last_clipboard_text and related code, keep track of
f4a5a485 578 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
579
580 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
581 (clipboard_owner, modifying_clipboard, cfg_coding_system)
582 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
583 (current_coding_system, current_requires_encoding)
f4a5a485
SM
584 (current_num_nls, current_clipboard_type, current_lcid):
585 New static variables.
52c7f9ee
JR
586
587 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
588 (render, render_all, run_protected, lisp_error_handler)
589 (owner_callback, create_owner, setup_config)
f4a5a485
SM
590 (enum_locale_callback, cp_from_locale, coding_from_cp):
591 New local functions.
52c7f9ee
JR
592
593 (term_w32select, globals_of_w32select): New global functions.
594
595 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
596 clipboard_owner instead. Use delayed rendering and provide
597 all text formats. Provide CF_LOCALE if necessary.
598
599 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
600 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
601 available. Force DOS line-ends for decoding.
602
603 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
604
605 (syms_of_w32select): Init and register new variables.
606
607 * w32.h: Add prototypes for globals_of_w32select and
608 term_w32select. Make the neighboring K&R declarations into
609 prototypes, too.
610
611 * emacs.c: Include w32.h to get function prototypes.
612 (main): Call globals_of_w32select.
613
886b1418 614 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
615
616 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
617
86e61586
KS
6182005-02-16 Kim F. Storm <storm@cua.dk>
619
620 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
621 at end of display vector.
622
6407f07b
RS
6232005-02-15 Richard M. Stallman <rms@gnu.org>
624
625 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
626 for mode and header lines.
627
628 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
629
630 * keymap.h (describe_map_tree): Change decl.
631
632 * keyboard.c (command_loop_1): Always use safe_run_hooks
633 to run Qdeferred_action_function.
634
635 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
636 (describe_map, describe_vector): Likewise. When it's 1,
637 don't omit shadowed bindings, instead mark them as shadowed.
638
639 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
640 for describe_map_tree. Pass 1 for MENTION_SHADOW.
641
642 * data.c (Fsetq_default): Allow no arg case.
643
3bb917bf
KH
6442005-02-14 Kenichi Handa <handa@m17n.org>
645
646 * coding.c (encode_coding_string): Always return a unibyte string.
647 If NOCOPY is nonzero and there's no need of encoding, make STR
648 unibyte directly.
649
650 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
651 multibyte string, signal an error instead of aborting.
652
e31d908f
DN
6532005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
654
655 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
656
48e029b6
KS
6572005-02-12 Kim F. Storm <storm@cua.dk>
658
659 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
660
c10bb00a
KS
6612005-02-10 Kim F. Storm <storm@cua.dk>
662
663 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
664 if it moves outside window or it doesn't display text.
665
9ca0f64a
KS
6662005-02-09 Kim F. Storm <storm@cua.dk>
667
668 * undo.c (Fprimitive_undo): Check that undo function does not
669 switch buffer.
670
b8d6f4af
JD
6712005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
672
673 * xselect.c (selection_data_to_lisp_data): For the special case
674 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
675 (x_property_data_to_lisp, selection_data_to_lisp_data):
676 Comment update: data must be array of int for format == 32.
b8d6f4af 677
3419757d
SM
6782005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
679
680 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
681
3a441526
JD
6822005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
683
fc34503b
JD
684 * xfns.c (Fx_change_window_property): Use long array when format is 32.
685 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
686 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
687 (x_set_tool_bar_lines): Check that width and height is greater than
688 zero before clearing area.
fc34503b
JD
689
690 * xselect.c (x_reply_selection_request): Pass long array to
691 XChangeProperty so that 64 bit longs are handeled correctly.
692 (x_get_window_property): If format is 32 and long is bigger than 32
693 bits convert data from XGetWindowProperty from long array to int array.
694 (lisp_data_to_selection_data): When the input is a vector and the
695 format is 32, allocate a long array even if long is bigger than 32 bits.
696 (x_fill_property_data): Use char, short and long as the man page
697 for XChangeProperty specifies. This way the data returned is OK for
698 both 32 and 64 bit machines.
699 (x_handle_dnd_message): Calculate size correctly even for 64 bit
700 machines.
701 (Fx_send_client_event): Undo change from 2005-02-05,
702 x_fill_property_data now handles that case.
703
3419757d 704 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
705 reason for the approach in the code.
706
82ec225b
KS
7072005-02-07 Kim F. Storm <storm@cua.dk>
708
709 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
710
ba2c991c
RS
7112005-02-06 Richard M. Stallman <rms@gnu.org>
712
713 * eval.c (Frun_hook_with_args)
714 (Frun_hook_with_args_until_success)
715 (Frun_hook_with_args_until_failure): Doc fixes.
716
e120ea40
AS
7172005-02-05 Andreas Schwab <schwab@suse.de>
718
3419757d 719 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 720
31f16913
JD
7212005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
722
723 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
724 the longs in a XClientMessageEvent correctly when long is 64 bits.
725
6082a820
EZ
7262005-02-05 Eli Zaretskii <eliz@gnu.org>
727
728 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
729 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
730
0e95095b
JD
7312005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
732
733 * xmenu.c (menubar_selection_callback): Force out GTK buffered
734 events so the menu event comes after them. This is to prevent sit-for
735 from exiting on buffered events directly after a menu selection,
736 lisp code for Help => About Emacs uses sit-for.
737
738 * gtkutil.c (create_menus): Connect selection-done event instead of
739 the deactivate event to deactivate_cb. This will make the last
740 leave event come before the call to deactivate_cb, so the leave
741 event does not make sit-for exit after a menu selection.
742
5bb6a3c1
KS
7432005-02-03 Kim F. Storm <storm@cua.dk>
744
745 * dispnew.c (build_frame_matrix_from_leaf_window)
746 [!GLYPH_DEBUG]: Fix xassert.
747
748 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
749
750 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
751
e9859e26
YM
7522005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
753
754 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
755 the compiling OS version.
756
757 * macfns.c (x_create_tip_frame): Likewise.
758
3419757d 759 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 760
4e07258f
RS
7612005-02-03 Richard M. Stallman <rms@gnu.org>
762
763 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
764
765 * xdisp.c (echo_area_display): Clear echo_message_buffer.
766
767 * buffer.c (Fbury_buffer): Doc fix.
768
4a34b529
ST
7692005-02-02 Steven Tamm <steventamm@mac.com>
770
f6c62d96
ST
771 * macfns.c (unwind_create_frame): Fixing compile error due to
772 xassert being uncondition, but predicate is.
4a34b529 773 * dispnew.c (update_window): Fixing compile error due to
f6c62d96 774 xassert being uncondition, but predicate is.
4a34b529 775
d78f30b8
MB
7762005-02-02 Miles Bader <miles@gnu.org>
777
778 * dispextern.h (xassert): Enable unconditionally.
779
b044278d
KS
7802005-02-02 Kim F. Storm <storm@cua.dk>
781
782 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
783
56072160
KH
7842005-02-02 Kenichi Handa <handa@m17n.org>
785
786 * casefiddle.c (casify_object): Enable changing characters of
787 different byte length.
788 (casify_region): Fix loop condition, args to replace_range_2, and
789 update opoint_byte.
790
f4a5a485 791 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 792
5e1674c5
KS
7932005-02-01 Kim F. Storm <storm@cua.dk>
794
795 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
796 stack before calling handle_display_prop.
797
fb89c330
KS
7982005-01-31 Kim F. Storm <storm@cua.dk>
799
800 * undo.c (Qapply): New lisp var.
801 (syms_of_undo): Intern and staticpro it.
802 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
803 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
804
805 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
806
7bf72fa6
JH
8072005-01-30 Jesper Harder <harder@phys.au.dk>
808
a050b1a9
KS
809 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
810 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 811
03c64f2e
LT
8122005-01-29 Luc Teirlinck <teirllm@auburn.edu>
813
814 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 815 Increase value to 3 Meg.
03c64f2e 816
49b8b5dc
JD
8172005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
818
819 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
820 button events are not received otherwise.
821
5a92a9eb
RS
8222005-01-29 Richard M. Stallman <rms@gnu.org>
823
824 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
825
826 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
827
5c243ee4
SM
8282005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
829
830 * keymap.c (access_keymap): YAILOM.
831
caf533af
KS
8322005-01-27 Kim F. Storm <storm@cua.dk>
833
834 * xdisp.c (get_phys_cursor_geometry): New function to calculate
835 phys cursor position and size for hollow cursor. Position is
836 aligned with get_glyph_string_clip_rect and ensures that a hollow
837 cursor is shown, even when the actual glyph is not visible.
838
839 * dispextern.h (get_phys_cursor_geometry): Add prototype.
840
841 * xterm.c (x_clip_to_row): Ensure y >= 0.
842 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
843
844 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
845
846 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
847
043f7f73
SM
8482005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
849
850 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
851
889f3641
KS
8522005-01-27 Kim F. Storm <storm@cua.dk>
853
854 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
855 glyph, even when row is only partially visible and actual cursor
856 position is not visible.
857
29099c2f
RS
8582005-01-24 Richard M. Stallman <rms@gnu.org>
859
860 * xterm.c (x_error_quitter): No longer static, and moved after
861 x_error_handler.
862
6adb6f01
KS
8632005-01-24 Kim F. Storm <storm@cua.dk>
864
865 * xdisp.c (move_it_by_lines): If we move forward after going too
866 far back, cancel move if end position is same as start position.
867
4d904fa0
ST
8682005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
869
870 * dispextern.h (struct glyph_string): New members clip_head and
871 clip_tail.
6adb6f01 872
4d904fa0
ST
873 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
874 region to the area between clip_head and clip_tail.
875 (draw_glyphs): Record the area that need to be actually redrawn to
876 the new variables clip_head and clip_tail when there are
877 overhangs. Set values of these variables to the corresponding
878 members in struct glyph_string. Refine x coordinates for
879 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 880
4d904fa0
ST
881 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
882
883 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
884 QDTextBounds.
885 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 886 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 887 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 888 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 889
f2417699
KS
8902005-01-24 Kim F. Storm <storm@cua.dk>
891
6f67f013
KS
892 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
893 direction if window height was smaller than next-screen-context-lines.
894 Now always scroll at least one line in the requested direction.
895 Ensure that we actually do scroll backwards when requested to do so.
896
f2417699
KS
897 * xdisp.c (redisplay_window): Only try to make cursor line fully
898 visible once (to avoid redisplay loop).
899
a354b72c
KS
9002005-01-23 Kim F. Storm <storm@cua.dk>
901
6b3d88f7 902 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 903 partially visible rows.
6b3d88f7
KS
904 (window_scroll_pixel_based): Adapt to that change.
905
5c20cae2
KS
906 * window.c (window_scroll_pixel_based): Force moving to next line
907 if scrolling doesn't move start point, e.g. if looking at tall image.
908
a354b72c 909 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
910 Clear last_height before calling line_bottom_y to get real height.
911 Fix calculation of y.
a354b72c 912
d9e7c622
ST
9132005-01-22 Steven Tamm <steventamm@mac.com>
914
915 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 916 (DARWIN): Define.
d9e7c622
ST
917 * process.c (init_process): Default process-connection-type to
918 nil on darwin 6 or less, t if it is 7 or higher. This way the
919 broken pty behavior is still allowed on darwin 6 for interactive
920 processes for people that know what they are doing.
921
d00e399a
KS
9222005-01-22 Kim F. Storm <storm@cua.dk>
923
924 * window.c (auto_window_vscroll_p): New boolean.
925 (syms_of_window): DEFVAR_BOOL it.
926 (Fpos_visible_in_window_p): Extend return value to include RTOP
927 and RBOT values if FULLY is nil.
928 (window_scroll_pixel_based): Adjust vscroll for partially visible
929 rows if auto_window_vscroll_p is set.
930 (Fset_window_vscroll): Do nothing if vscroll is not modified.
931
932 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
933 to return number of partially invisible pixels at top and bottom
934 of the dislay row at POS.
935
936 * lisp.h (pos_visible_p): Fix prototype.
937
f95a20e7
RS
9382005-01-21 Richard M. Stallman <rms@gnu.org>
939
940 * fileio.c (Fcopy_file): Doc fix.
941
eee141ce
JD
9422005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
943
944 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
945 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
946 start of function for older compilers.
947
6f771c32
RS
9482005-01-20 Richard M. Stallman <rms@gnu.org>
949
950 * editfns.c (Fmessage): If arg is "", return "" (as before).
951
952 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
953
954 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
955 variable.
956
a15252fd
ST
9572005-01-20 Steven Tamm <steventamm@mac.com>
958
043f7f73 959 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
960 (init_editfns): Assign new variable operating-system-release
961 based on call to uname if available.
043f7f73 962 (get_operating_system_release): Add function to
d00e399a 963 allow c-level access to operating system release.
a15252fd
ST
964
965 * config.h: Regenerated.
966
043f7f73
SM
967 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
968 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
969 using ptys as '7'.
970
3d6a4b2d
KS
9712005-01-20 Kim F. Storm <storm@cua.dk>
972
62fc9b0f
KS
973 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
974
c310aca4
KS
975 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
976 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
977
978 * macterm.c (x_draw_glyph_string_box): Likewise.
979
980 * w32term.c (x_draw_glyph_string_box): Likewise.
981
3d6a4b2d
KS
982 * indent.c (Fvertical_motion): Temporarily disable selective display.
983
27c8be45
KS
9842005-01-19 Kim F. Storm <storm@cua.dk>
985
77db5cf3
KS
986 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
987 image property.
988
27c8be45
KS
989 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
990
81f498dc
KS
9912005-01-18 Kim F. Storm <storm@cua.dk>
992
993 * xdisp.c (fast_find_position): Backtrack to find first row if
994 charpos is inside a display overlay that spans multiple lines.
995
1cdb0707
KH
9962005-01-18 Kenichi Handa <handa@m17n.org>
997
998 * coding.c (decode_coding_iso2022): Translate invalid codes if
999 translation-table is specified.
1000
677159ce
KS
10012005-01-18 Kim F. Storm <storm@cua.dk>
1002
1003 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
1004 change. If handle_display_prop indicates newline is replaced by
1005 image or text, move back to start of relevant overlay or interval
1006 and continue scan from there. Simplify.
1007
977284cc
KS
10082005-01-17 Kim F. Storm <storm@cua.dk>
1009
043f7f73
SM
1010 * dispnew.c (mode_line_string, marginal_area_string):
1011 Fix off-by-one error in search for glyph.
977284cc 1012
e24531b7
KS
10132005-01-16 Kim F. Storm <storm@cua.dk>
1014
1015 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
1016
5ddd7664
ST
10172005-01-16 Steven Tamm <steventamm@mac.com>
1018
043f7f73 1019 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 1020
fc2ff44b
AS
10212005-01-16 Andreas Schwab <schwab@suse.de>
1022
1023 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
1024
50af5100
JD
10252005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1026
1027 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
1028 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
1029
a2d5fca0
JD
10302005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1031
1032 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
1033 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
1034 New flags for readable_events.
043f7f73 1035 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
1036 (tracking_off): Call readable_events and get_input_pending with
1037 flag READABLE_EVENTS_DO_TIMERS_NOW.
1038 (readable_events): Move code from old readable_filtered_events here,
1039 but check new READABLE_EVENTS_* in argument flags instead of previous
1040 two boolean arguments do_timers_now and filter_events.
1041 If we are doing mouse tracking and the mouse moved, return only if
1042 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
1043 (swallow_events): Call get_input_pending with flag
1044 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 1045 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
1046 here. Replace boolean arguments do_timers_now, filter_events with
1047 flags, and pass flags to readable_events. Document new
1048 READABLE_EVENTS_* flags.
1049 (detect_input_pending_ignore_squeezables): New function.
1050 (detect_input_pending_run_timers): Call get_input_pending with flag
1051 READABLE_EVENTS_DO_TIMERS_NOW.
1052 (Finput_pending_p): Call get_input_pending with flags
1053 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
1054
1055 * dispnew.c (update_window, update_frame_1): Replace calls to
1056 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 1057 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
1058 mouse movements.
1059
1060 * lisp.h: Declare detect_input_pending_ignore_squeezables.
1061
42afbcda
ST
10622005-01-15 Steven Tamm <steventamm@mac.com>
1063
e24531b7
KS
1064 * macterm.c (Vmac_use_core_graphics): Declare variable for
1065 mac-allow-anti-aliasing.
1066 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 1067 (mac_draw_string_common): Use core graphics text rendering if
0530c679 1068 mac-allow-anti-aliasing is enabled.
743d0696 1069
42afbcda
ST
1070 * macfns.c (Fx_file_dialog): Save As dialog includes only the
1071 file name in the text box.
1072
9cdd4884
ST
10732005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1074
043f7f73
SM
1075 * macfns.c (x_set_foreground_color, x_set_background_color):
1076 Sync with xfns.c.
9cdd4884
ST
1077 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
1078 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
1079 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
1080
88948d55
KS
10812005-01-14 Kim F. Storm <storm@cua.dk>
1082
1083 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
1084
20d6de82
RS
10852005-01-13 Richard M. Stallman <rms@gnu.org>
1086
1087 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
1088 if Voverriding_terminal_local_map is non-nil.
1089
1090 * keyboard.c (syms_of_keyboard): Doc fix.
1091
f75a592e
KS
10922005-01-13 Kim F. Storm <storm@cua.dk>
1093
1094 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
1095 (specify 0 for FACE instead). Reorder arg list. Doc fix.
1096
28f94a34
RS
10972005-01-12 Richard M. Stallman <rms@gnu.org>
1098
1099 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
1100 face property for characters that don't specify one.
1101
1102 * fns.c (Frequire): Record in load-history unconditionally.
1103
57a230b1
KS
11042005-01-10 Kim F. Storm <storm@cua.dk>
1105
1106 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
1107
1108 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
1109 Callers changed.
1110 Add support to merge with lisp face id too (if face_name is t).
1111
1112 * xdisp.c (get_next_display_element, next_element_from_display_vector):
1113 Don't lookup lface_id from display table glyphs here; instead use
1114 merge_faces to merge the lisp face id into current face.
1115
8ab2c119
KS
11162005-01-09 Kim F. Storm <storm@cua.dk>
1117
1118 * dispextern.h (struct it): New member dpvec_face_id.
1119 (merge_into_realized_face): Add prototype.
1120
1121 * xfaces.c (merge_into_realized_face): New function. Used to
1122 merge escape-glyph face or face from display table into current face.
1123
1124 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
1125 (syms_of_xdisp): DEFVAR_LISP it.
1126 (escape_glyph_face): Remove var.
1127 (redisplay_window): Don't initialize it.
1128 (setup_for_ellipsis, get_next_display_element):
1129 Set it->dpvec_face_id to -1.
1130 (get_next_display_element): Test Vshow_nonbreak_escape.
1131 Do not setup escape_glyph_face.
1132 Properly merge escape-glyph face or face from display table with
043f7f73
SM
1133 current face for escape and control characters.
1134 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
1135 element of display vector.
1136 (next_element_from_display_vector): If it->dpvec_face_id is set,
1137 use that instead of lface_id from glyph itself.
1138
e0910857
JD
11392005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1140
1141 * xterm.h (struct x_output): New member, toolbar_detached.
1142
1143 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
1144 38.
1145 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
1146 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
1147 (xg_create_tool_bar): Initialize toolbar_detached.
1148 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
1149 toolbar_detached is zero.
1150
ff59904a
JD
11512005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1152
9b85e63d
JD
1153 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
1154 gtk_menu_popup if not for_click, so callbacks for the menu are called.
1155
ff59904a
JD
1156 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
1157 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 1158 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
1159
1160 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 1161 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
1162 XFLOAT_DATA to get extract number from Lisp object.
1163
f9a23a6f
KS
11642005-01-07 Kim F. Storm <storm@cua.dk>
1165
1166 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
1167 Set stop_charpos to current charpos instead of 0.
1168
28f94a34
RS
11692005-01-06 Nick Roberts <nickrob@snap.net.nz>
1170
1171 * xdisp.c (Fformat_mode_line): First arg now required.
1172
a6fffcdc
ST
11732005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1174
1175 * macterm.c (XLoadQueryFont): Correctly handle 0 size
1176 font widths that are returned from some Japanese fonts.
1177
c35b0c6b
KS
11782005-01-06 Kim F. Storm <storm@cua.dk>
1179
1180 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
1181 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
1182 (destroy_fringe_bitmap): Set fringe_faces element to nil.
1183 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
1184 fringe_faces array and init elements to nil.
1185 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
1186 non-persistent face id.
1187 (mark_fringe_data): New function for GC.
1188
1189 * alloc.c (mark_fringe_data): Declare extern.
1190 (Fgarbage_collect): Call mark_fringe_data.
1191
1192 * alloc.c (overrun_check_free): Invalidate freed memory if
1193 XMALLOC_CLEAR_FREE_MEMORY is defined.
1194
e0e76ab9
ST
11952005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1196
1197 * macfns.c: Include sys/param.h.
1198 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
1199 and function.
1200 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
1201 of filename string. Set event callback function when creating
1202 dialog boxes. Add code conversions for filenames. Don't dispose
1203 apple event descriptor record if failed to create it.
1204
1205 * macterm.c: Include sys/param.h.
1206 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
1207 kEventWindowUpdate.
1208 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
1209 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
1210 of FSSpec from apple event descriptor record.
1211 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
1212 size of filename string.
1213 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
1214 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
1215 file dialog is in action.
043f7f73
SM
1216 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
1217 Reject only when there are no filename items. Set background color
e0e76ab9 1218 before (un)highlighting the window below the dragged items.
2313f861 1219 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 1220
043bc640
KH
12212005-01-05 Romain Francoise <romain@orebokech.com>
1222
1223 * term.c (encode_terminal_code): Fix buffer size computation.
1224
dd496df6
RS
12252005-01-04 Richard M. Stallman <rms@gnu.org>
1226
1227 * xdisp.c (Fformat_mode_line): Doc fix.
1228
026cdede
SM
12292005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1230
1231 * alloc.c (refill_memory_reserve): Move.
1232 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
1233 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
1234
d57c7572
RS
12352005-01-03 Richard M. Stallman <rms@gnu.org>
1236
1237 * window.c (window_scroll_pixel_based): Don't correct preserve_y
1238 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
1239
b14f868c
JR
12402005-01-03 Jason Rumney <jasonr@gnu.org>
1241
1242 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
1243 fontp->space_width to FONT_WIDTH so they are valid.
1244
1245 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
1246 average width. Set fontp->average_width and fontp->space_width to
1247 their appropriate values.
1248
1249 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1250 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1251 fontp->space_width.
1252
e169f939
ST
12532005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1254
1255 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
1256 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
1257 metrics for max and min bounds.
1258 (x_load_font): Correctly calculate average font width metrics.
1259
19996af4
RS
12602005-01-02 Richard M. Stallman <rms@gnu.org>
1261
1262 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
1263
42d02da0
JD
12642004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1265
1266 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
1267
1db7dd46
RS
12682004-12-31 Richard M. Stallman <rms@gnu.org>
1269
b437860a
RS
1270 * xdisp.c (setup_for_ellipsis, get_next_display_element):
1271 Set it->ellipsis_p to 1 or 0.
1272 (display_line): Record whether row ends in mid-ellipsis.
1273 (set_cursor_from_row): If ends in ellipsis. find start of it.
1274 (cursor_row_p): If PT's at the end of the ellipsis the row
1275 ends within, don't display cursor on this row.
1276
1277 * dispextern.h (struct it): New element ellipsis_p.
1278 (struct glyph_row): New element ends_in_ellipsis_p.
1279
1280 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
1281 position if we're reading from something other than the buffer.
1282
1db7dd46
RS
1283 * window.c (window_scroll_pixel_based): Only look at
1284 Vscroll_preserve_screen_position if the old PT can't be kept.
1285 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
1286
1225f637
KS
12872004-12-30 Kim F. Storm <storm@cua.dk>
1288
1289 * xdisp.c (get_line_height_property): New function extracted from
1290 original calc_line_height_property.
1291 (calc_line_height_property): Rework. Handle t and (nil . ratio).
1292 (x_produce_glyphs): Use them to handle line-height and
1293 line-spacing according to new height spec.
1294 (Qtotal): Remove.
33b2f4ea 1295 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 1296
c243063e
KH
12972004-12-30 Kenichi Handa <handa@m17n.org>
1298
1299 * fileio.c (Finsert_file_contents): Don't use
1300 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 1301 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
1302
1303 * fontset.h (struct font_info): New members space_width and
1304 average_width.
1305
1306 * frame.h (struct frame): New member space_width.
1307 (FRAME_SPACE_WIDTH): New macro.
1308
1309 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
1310
1311 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1312 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 1313 fontp->space_width.
043f7f73 1314 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
1315 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
1316
1317 * xdisp.c (x_produce_glyphs): Calculate tab width by
1318 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
1319
456e761b
ST
13202004-12-29 Sanghyuk Suh <han9kin@mac.com>
1321
1322 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 1323 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 1324
188577ce
LT
13252004-12-29 Luc Teirlinck <teirllm@auburn.edu>
1326
1327 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
1328
99ec74b9
RS
13292004-12-29 Richard M. Stallman <rms@gnu.org>
1330
1331 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
1332
30c92fab
ST
13332004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1334
1335 * macfns.c (install_window_handler): Modify extern to return OSErr
1336 value.
1337 (mac_window): Handle return value of install_window_handler.
1338
1339 * macterm.c (reflect_byte): Remove function.
1340 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
1341 Lookup table instead.
1342 (mac_do_font_lists): Simplify calculation of the longest
1343 nonspecial string.
1344 (init_mac_drag_n_drop): Remove function and declaration.
1345 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1346 init_mac_drag_n_drop.
1347 (mac_do_track_drag): New function and declaration.
1348 (install_window_handler): Return OSErr value.
043f7f73
SM
1349 (install_window_handler) [TARGET_API_MAC_CARBON]:
1350 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 1351 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
1352 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
1353 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 1354
4b982924
DN
13552004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1356
1357 * coding.c (decode_coding): Fix previous change.
1358
93fdf45f
RS
13592004-12-28 Richard M. Stallman <rms@gnu.org>
1360
1361 * xdisp.c (back_to_previous_visible_line_start):
1362 Don't call handle_display_prop.
1363
5bdca8af
DN
13642004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1365
1366 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
1367 (decode_coding_emacs_mule, encode_coding_emacs_mule)
1368 (decode_coding_iso2022, encode_designation_at_bol)
1369 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
1370 (decode_coding): Constify arguments and local vars.
1371
33385c6f
JD
13722004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1373
1374 * xmenu.c (popup_get_selection): Only pop down dialogs
1375 on C-g and Escape.
95bdef2e 1376 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
1377 (create_and_show_popup_menu, create_and_show_dialog):
1378 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 1379
b15325b2
ST
13802004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1381
1382 * dispextern.h: Change HAVE_CARBON to MAC_OS.
1383 (struct glyph_string): Likewise.
a2c7e69a 1384
b15325b2
ST
1385 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
1386 mac_initialize.
a2c7e69a 1387
b15325b2
ST
1388 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
1389 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 1390
b15325b2 1391 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 1392
b15325b2
ST
1393 * frame.c (x_set_frame_parameters, x_report_frame_params)
1394 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
1395 (x_set_border_width, Vdefault_frame_scroll_bars):
1396 Change HAVE_CARBON to MAC_OS.
a2c7e69a 1397
b15325b2
ST
1398 * image.c [MAC_OS]: Include sys/stat.h.
1399 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
1400 QuickTimeComponents.h.
a2c7e69a 1401
b15325b2
ST
1402 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
1403 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 1404 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
1405 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
1406 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1407 (mac_clear_font_name_table): Add extern.
1408 (Fmac_clear_font_name_table): New defun.
1409 (syms_of_mac): Defsubr it.
1410 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
1411 [MAC_OSX] (select_and_poll_event): New function.
1412 [MAC_OSX] (sys_select): Use it.
1413 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
1414 [MAC_OSX && SELECT_USE_CFSOCKET]
1415 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
1416 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
1417 RunLoop for simultaneously monitoring two kinds of inputs, window
1418 events and process outputs, without periodically polling.
a2c7e69a 1419
b15325b2
ST
1420 * macfns.c (mac_initialized): Remove extern.
1421 (stricmp): Put in #if 0. All callers changed to use xstricmp in
1422 xfaces.c.
043f7f73
SM
1423 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
1424 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
1425 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
1426 (mac_get_rdb_resource): New function (from w32reg.c).
1427 (x_get_string_resource): Use it.
1428 (install_window_handler): Add extern.
1429 (mac_window): New function.
043f7f73
SM
1430 (Fx_create_frame): Use it instead of make_mac_frame.
1431 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
1432 (Fx_open_connection, Fx_close_connection): New defuns.
1433 (syms_of_macfns): Defsubr them.
043f7f73
SM
1434 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
1435 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
1436 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
1437 (x_create_tip_frame): Don't call ShowWindow.
1438 (Fx_show_tip): Call ShowWindow.
1439 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
1440 TARGET_API_MAC_CARBON'.
1441 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
1442 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 1443
043f7f73 1444 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
1445 (Window): Typedef to WindowPtr and move outside `#if
1446 TARGET_API_MAC_CARBON'.
1447 (XSizeHints): New struct.
a2c7e69a 1448
b15325b2
ST
1449 * macterm.c (x_update_begin, x_update_end)
1450 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
1451 frame.
1452 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1453 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
1454 (construct_mouse_click): Put in #if 0.
1455 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
1456 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
1457 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1458 (activate_scroll_bars, deactivate_scroll_bars)
1459 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
1460 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
1461 if the position is neither user-specified nor program-specified.
1462 (x_free_frame_resources): Free size_hints.
043f7f73 1463 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
1464 (mac_clear_font_name_table): New function.
1465 (mac_do_list_fonts): Initialize font_name_table if needed.
1466 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
1467 around mac_do_list_fonts.
1468 (mac_unload_font): New function.
1469 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
1470 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
1471 and definitions with #if TARGET_API_MAC_CARBON.
1472 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
1473 (install_window_handler): Add decl.
1474 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
1475 window. Use UpdateControls. Get the rectangle that should be
1476 updated and restrict the target of expose_frame to it.
043f7f73 1477 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
1478 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
1479 (do_zoom_window): Don't use x_set_window_size.
1480 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
1481 (install_window_handler): New function.
1482 [!USE_CARBON_EVENTS] (mouse_region): New variable.
1483 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
1484 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
1485 GetEventDispatcherTarget inside BLOCK_INPUT.
1486 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
1487 Update mouse_region when mouse is moved.
1488 (make_mac_frame): Remove.
043f7f73
SM
1489 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
1490 Initialize mouse pointer shapes. Change values of f->left_pos and
1491 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
1492 Don't call ShowWindow.
b15325b2
ST
1493 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
1494 Vinvocation_name and Vsystem_name.
1495 (mac_make_rdb): New function (from w32term.c).
1496 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
1497 already been opened. Don't pass argument to
1498 mac_initialize_display_info. Don't set dpyinfo->height/width.
1499 Add entries to x_display_list and x_display_name_list.
1500 (x_delete_display): New function.
1501 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
1502 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
1503
b15325b2
ST
1504 * macterm.h (check_mac): Add extern.
1505 (struct mac_output): New member size_hints.
1506 (FRAME_SIZE_HINTS): New macro.
1507 (mac_unload_font): Add extern.
a2c7e69a 1508
b15325b2 1509 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 1510
b15325b2
ST
1511 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
1512
92d2947b
RS
15132004-12-27 Richard M. Stallman <rms@gnu.org>
1514
043f7f73 1515 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
1516 (syms_of_buffer): Don't defsubr it.
1517
1518 * process.c (list_processes_1): Set undo_list instead
1519 of calling Fbuffer_disable_undo.
1520
043f7f73 1521 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 1522 single_display_prop_string_p.
043f7f73 1523 (single_display_spec_intangible_p): Rename from
92d2947b 1524 single_display_prop_intangible_p.
043f7f73 1525 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
1526 Rewritten to be easier to understand.
1527
a2c7e69a 1528 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
1529 and variables get just NAME.
1530
1531 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1532
1533 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1534 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
1535 (Qdefvar): Var deleted.
1536 (syms_of_eval): Don't initialze it.
1537
1538 * lread.c (syms_of_lread) <load-history>: Doc fix.
1539
9f6fcdc5
JD
15402004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1541
1542 * xmenu.c (popup_get_selection): Pop down on C-g.
1543 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
1544 pops down menu on C-g.
1545 (xdialog_show): If dialog popped down and no button in the dialog was
1546 pushed, call Fsignal to quit.
1547 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
1548 Fsignal to quit.
1549
1550 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
1551
1552 * gtkutil.c (xg_initialize): Install bindings for C-g so that
1553 dialogs and menus pop down.
1554
d8ca23a0
KH
15552004-12-27 Kenichi Handa <handa@m17n.org>
1556
1557 * coding.c (code_convert_region): Fix calculation of `ratio'.
1558
857ae68b
JD
15592004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1560
133c0116
JD
1561 * gtkutil.c (update_frame_tool_bar): Make the value of
1562 tool-bar-button-margin control margins of images in tool bar.
1563
857ae68b
JD
1564 * alloc.c (check_depth): New variable.
1565 (overrun_check_malloc, overrun_check_realloc): Only add
1566 overhead and write check pattern if check_depth is 1 (to handle
1567 recursive calls). Increase/decrease check_depth in entry/exit.
1568 (overrun_check_free): Only check for overhead if check_depth is 1.
1569 Increase/decrease check_depth in entry/exit.
1570
bd55c35c
JD
15712004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1572
1573 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
1574 before touching input_available_clear_time, to avoid accessing it
1575 from multiple threads.
1576
66354420
JR
15772004-12-23 Jason Rumney <jasonr@gnu.org>
1578
1579 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
1580 of JPEG library.
1581
55f4edbc
RS
15822004-12-22 Richard M. Stallman <rms@gnu.org>
1583
1584 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
1585
1586 * lisp.h (Vundo_outer_limit): Fix decl.
1587
1588 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
1589 Uses changed.
1590 (syms_of_undo): Initialize appropriately.
1591 (truncate_undo_list): If it's nil, there's no limit.
1592
7a0ea9e3
KH
15932004-12-22 Kenichi Handa <handa@m17n.org>
1594
1595 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
1596
fda2922a
RS
15972004-12-21 Richard M. Stallman <rms@gnu.org>
1598
1599 * eval.c (unwind_to_catch): Clear immediate_quit.
1600
1601 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
1602 specially as `\ ' and `\-'.
1603
1604 * keyboard.c (kbd_buffer_store_event_hold):
1605 In the code for while-no-input, handle immediate_quit.
1606
1607 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
1608 Call that at the very start.
043f7f73 1609 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
1610 (syms_of_alloc): Don't define undo-limit,
1611 undo-strong-limit and undo-outer-limit here.
1612
1613 * undo.c (truncate_undo_list): Return void.
1614 Take just one argument, the buffer.
1615 Make it current, and inhibit recursive GC.
1616 Access and update the undo list directly; return void.
1617 Refer to the undo...limit variables directly.
1618 Test undo_outer_limit only after counting the whole current command.
1619 When it's exceeded, call the function in undo-outer-limit-function.
1620 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
1621 (Vundo_outer_limit_function): New variable.
1622 (syms_of_undo): Define undo-limit, undo-strong-limit
1623 and undo-outer-limit here, and undo-outer-limit-function.
1624 Doc fixes.
1625
1626 * lisp.h (truncate_undo_list): Update decl.
1627
16282004-12-21 Piet van Oostrum <piet@cs.uu.nl>
1629
1630 * fileio.c (Fread_file_name): Delete duplicates in
1631 file-name-history when history_delete_duplicates is true.
1632
68c69027
ST
16332004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1634
1635 * macterm.c (mac_do_list_fonts): Fix memory leak
1636
134579f2
RS
16372004-12-20 Richard M. Stallman <rms@gnu.org>
1638
1639 * regex.c (re_match_2_internal) <symend, wordend>:
1640 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
1641
fbe6152f
ST
16422004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1643
043f7f73
SM
1644 * macterm.c (endif, x_font_name_to_mac_font_name):
1645 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
1646 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
1647 quickly finding a specific font without needing regexps.
1648
fecad3f6
JD
16492004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1650
333f1b6f
JD
1651 * syssignal.h: Declare main_thread.
1652 (SIGNAL_THREAD_CHECK): New macro.
1653
1654 * keyboard.c (input_available_signal): Move thread checking code
1655 to macro SIGNAL_THREAD_CHECK and call that macro.
1656 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
1657
1658 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
1659
1660 * emacs.c: Define main_thread.
1661 (main): Initialize main_thread.
1662 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
1663 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
1664
1665 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
1666
1667 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
1668
1669 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
1670
043f7f73
SM
1671 * process.c (send_process_trap, sigchld_handler):
1672 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
1673
1674 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
1675
1676 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
1677
fecad3f6
JD
1678 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
1679 returning when xg_ignore_gtk_scrollbar is true.
1680
2a84c6da
KS
16812004-12-14 Kim F. Storm <storm@cua.dk>
1682
1683 * keyboard.c (read_char): Save and restore echo_string when
1684 handling input method.
1685
d9c1ce9d
RS
16862004-12-13 Richard M. Stallman <rms@gnu.org>
1687
1688 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
1689
1690 * keyboard.c (Vthrow_on_input): New variable.
1691 (syms_of_keyboard): Defvar and initialize it.
1692 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
1693
1694 * lisp.h (QUIT): Check for Vthrow_on_input.
1695 (Vthrow_on_input): Declare it.
1696
a6495ed5
KS
16972004-12-13 Kim F. Storm <storm@cua.dk>
1698
1699 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
1700 vector.
1701
24a0e22f
RS
17022004-12-12 Richard M. Stallman <rms@gnu.org>
1703
1704 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
1705
1706 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
1707 (Ftry_completion): Really use outer `zero'; eliminate inner one.
1708
d6d31e57
KH
17092004-12-12 Kenichi Handa <handa@m17n.org>
1710
1711 * term.c (encode_terminal_code): Fix previous change.
1712
6f8ffb88
SM
17132004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
1714
fb6f5cbf
SM
1715 * keyboard.c (handle_async_input): Remove pthread mutex handling.
1716 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
1717
6f8ffb88
SM
1718 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
1719 in macro arguments.
1720
1721 * minibuf.c (Ftry_completion, Fall_completions): Don't use
1722 XFASTINT blindly.
1723
1724 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
1725
c83c9f9d
JD
17262004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1727
2f25767f
JD
1728 * w32term.c (x_calc_absolute_position): Remove calculation of
1729 difference between inner and outer window. Don't subtract difference
1730 for left and top calculations.
1731
c83c9f9d
JD
1732 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
1733 for left and top calculations. Remove call to x_real_positions.
24a0e22f 1734 [Bug report by Drew Adams in November]
c83c9f9d
JD
1735 (x_check_expected_move): Do not set change_gravity to 1 when calling
1736 x_set_offset.
1737
cc1caa4e
RS
17382004-12-08 Richard M. Stallman <rms@gnu.org>
1739
1740 * xdisp.c (get_next_display_element): Use `escape-glyph' for
1741 control chars and escaped octal codes.
1742 (Qescape_glyph): New variable.
1743 (syms_of_xdisp): Initialize it.
1744 (escape_glyph_face): New variable.
1745 (redisplay_window): Initialize it.
1746
e0e30823
RS
17472004-12-07 Paul Eggert <eggert@cs.ucla.edu>
1748
1749 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
1750 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
1751
f415cacd
JD
17522004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1753
cf435f39
JD
1754 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
1755 reset_malloc_hooks.
1756
6f8ffb88
SM
1757 * keyboard.c (handle_async_input, input_available_signal):
1758 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 1759
f415cacd
JD
1760 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
1761
043f7f73 17622004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
1763
1764 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
1765
1766 * config.in: Regenerate.
1767
ded997c1
JD
17682004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1769
453a4f1b
JD
1770 * xmenu.c (Fx_popup_menu): Correct documentation about position.
1771 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
1772 if not given by a mouse click to correspond with x-popup-menu
1773 documentation.
1774
9a38524c
JD
1775 * config.in: Regenerate.
1776
aa477689
JD
1777 * gtkutil.c: Include signal.h and syssignal.h.
1778 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
1779
1780 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
1781 new variables main_thread and alloc_mutex,
1782 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
1783 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
1784 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
1785 (UN)BLOCK_INPUT.
1786 (emacs_blocked_free, emacs_blocked_malloc)
1787 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
1788 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
1789 (reset_malloc_hooks): New function.
1790
1791 * lisp.h: Declare reset_malloc_hooks.
1792
1793 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
1794
1795 * keyboard.c: Conditionally include pthread.h
6f8ffb88 1796 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
1797 thread, block signal, send signal to main thread and return.
1798
ded997c1 1799 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 1800 Set current folder in file chooser if default_filename is a directory.
ded997c1 1801
c72b0edd
SM
18022004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
1803
1804 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
1805 Remove redundant correctness checks.
1806 (regex_compile): Fix up error codes for \{..\} expressions.
1807
c721eee5
RS
18082004-12-05 Richard M. Stallman <rms@gnu.org>
1809
1810 * regex.c (regex_compile): Fix end-of-pattern case for space.
1811
d8f96db8
ST
18122004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1813
6108209e
KS
1814 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
1815 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 1816 crashes with invalid characters.
6108209e
KS
1817 * macmenu.c (add_menu_item): Use it.
1818 * image.c (image_load_quartz2d): Likewise.
1819 * macfns.c (x_set_name, x_set_title): Likewise.
1820 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
1821 creating them each time for labels.
d8f96db8 1822
ab67e8b6
RS
18232004-12-02 Richard M. Stallman <rms@gnu.org>
1824
1825 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
1826 don't use it here.
1827
1828 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
1829 (interactive_p): Skip Scalled_interactively_p frames
1830 like Sinteractive_p frames.
b8217ea6 1831 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
1832
1833 * data.c (Fmake_variable_buffer_local): Doc fix.
1834 (Fmake_local_variable): Doc fix.
1835
1836 * insdel.c (insert_from_string_before_markers)
1837 (insert_from_string): Don't modify buffer on empty insertion.
1838
1839 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
1840
f86bdc80
ST
18412004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1842
1843 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
1844 menu text as UTF8 fails.
1845
1cae6d39
KS
18462004-12-01 Kim F. Storm <storm@cua.dk>
1847
1848 * alloc.c: Add commentary for last change.
1849 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
1850 sizeof(size_t) != 4.
1851 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
1852 Use them. Also clear header and trailer of freed memory.
1853 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
1854 (string_overrun_cookie): Rename from string_overrun_pattern.
1855 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
1856
77ea0764
AS
18572004-12-01 Andreas Schwab <schwab@suse.de>
1858
1859 * lisp.h: Declare string_to_multibyte.
1860
2d5cd4e6
KH
18612004-12-01 Kenichi Handa <handa@m17n.org>
1862
1863 * w32console.c (w32con_write_glyphs): Decide coding here.
1864 Adjusted for the change of encode_terminal_code.
1865
1866 * term.c (encode_terminal_code): Don't make it "static".
1867
25a0994a
KH
18682004-11-30 Kenichi Handa <handa@m17n.org>
1869
19b1f29a 1870 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 1871 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
1872 characters at once, and return a pointer to the result of encoding.
1873 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
1874 (insert_glyphs): Likewise.
1875 (term_init): Initialize encode_terminal_bufsize to 0.
1876
1877 * coding.c (Vcode_conversion_workbuf_name): New variable.
1878 (syms_of_coding): Initialize and staticpro it.
1879 (set_conversion_work_buffer): New function.
1880 (run_pre_post_conversion_on_str): Use it.
1881 (run_pre_write_conversin_on_c_str): New function.
1882
1883 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1884
fc7a70cc
ST
18852004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1886
1887 * keyboard.c: Don't undef SIGIO
1888 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1889 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1890 (macfns.o): Don't depend on ccl.h.
1891 * macfns.c (mac_frame_parm_handlers): Set handlers for
1892 Qleft_fringe and Qright_fringe.
1893 * macterm.c (mac_fill_rectangle_to_pixmap)
1894 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1895 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1896 Put in #if 0.
1897 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1898 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1899 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1900 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1901 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
1902 XDrawImageString. Always draw background and foreground separately.
1903 (x_draw_image_foreground): Use clipping instead of computing the
1904 intersection rectangle.
1905 (x_draw_image_glyph_string): Don't draw an image with mask to a
1906 pixmap.
1907 (x_redisplay_interface): Set flush_display_optional member to 0.
1908 (XTread_socket): Correctly reset the TEConverter
1909 object.
1910
fc368889
KS
19112004-11-30 Kim F. Storm <storm@cua.dk>
1912
1913 * lisp.h: New defines to enable buffer overrun checking.
1914 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1915 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1916
1917 * alloc.c: Add more checks for buffer overruns.
1918 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1919 xmalloc_overrun_check_trailer, overrun_check_malloc)
1920 overrun_check_realloc, overrun_check_free): Add.
1921 (GC_STRING_EXTRA, string_overrun_pattern): Add.
1922 (check_sblock, allocate_string_data, compact_small_strings):
1923 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1924 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1925 (check_string_free_list): Add.
1926 (allocate_string, sweep_strings): Call check_string_free_list.
1927
1928 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1929 XMALLOC_OVERRUN_CHECK to avoid crash during load.
1930
0af8cfe1
KS
19312004-11-29 Kim F. Storm <storm@cua.dk>
1932
1933 * fns.c (concat): Use SAFE_ALLOCA.
1934
77220eeb
SM
19352004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
1936
1937 * sysdep.c (emacs_write): Don't use QUIT.
1938
a778cf63
KH
19392004-11-29 Kenichi Handa <handa@m17n.org>
1940
1941 * buffer.c (init_buffer): Set current_buffer->directory to a
1942 multibyte string made by string_to_multibyte.
1943
77220eeb 1944 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 1945
e3177e43
AS
19462004-11-27 Andreas Schwab <schwab@suse.de>
1947
1948 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
1949
1950 * s/gnu-linux.h: Enable no-op gcpros on ia64.
1951 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
1952
77220eeb
SM
1953 * filelock.c (lock_file_1): Call get_boot_time early.
1954 Increase buffer size.
e3177e43 1955
ca5e6fef
EZ
19562004-11-27 Eli Zaretskii <eliz@gnu.org>
1957
1958 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
1959 is not defined.
1960
e2811828
KS
19612004-11-27 Kim F. Storm <storm@cua.dk>
1962
1963 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
1964 marker out of doc string.
1965
7a262394
SM
19662004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
1967
1968 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
1969 which was not mentioned in the log.
1970
f33cc5a9
KS
19712004-11-26 Kim F. Storm <storm@cua.dk>
1972
048bb03f
KS
1973 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
1974 angle bitmaps at top/bottom line.
1975
f33cc5a9
KS
1976 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
1977 set it when it->method is set to next_element_from_display_vector.
1978 (setup_for_ellipsis): Add LEN argument. Callers changed.
1979 Set it->saved_face_id.
1980 (get_next_display_element): Use loop instead of recursion.
1981 Set it->saved_face_id. Combine duplicate code for ctr chars.
1982 (next_element_from_display_vector): Do not set it->saved_face_id.
1983 (next_element_from_ellipsis): Use setup_for_ellipsis.
1984
670e8906
EZ
19852004-11-26 Eli Zaretskii <eliz@gnu.org>
1986
1987 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
1988 prevent compiler warnings.
1989
275464e7
SM
19902004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
1991
1bf0e604
SM
1992 * keyboard.c (command_loop_1): Print a message describing the key
1993 the user just pressed when this key has no binding.
1994
275464e7
SM
1995 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
1996 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
1997
1998 * lread.c (readchar): Check QUIT when `getc' is interrupted.
1999
261b01c6
RS
20002004-11-24 Richard M. Stallman <rms@gnu.org>
2001
2002 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
2003
2004 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
2005
a5bd504e
KS
20062004-11-24 Kim F. Storm <storm@cua.dk>
2007
2008 * xdisp.c (move_it_in_display_line_to, display_line):
2009 Restore saved_face_id also when truncate-lines or hscrolled.
2010
255e4140
JD
20112004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2012
2013 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
2014 x-use-old-gtk-file-dialog.
2015
2016 * xfns.c: Define x_use_old_gtk_file_dialog.
2017 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
2018 outside ifdef USE_GTK.
2019
cab27d04
SM
20202004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
2021
2022 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
2023 Don't use XFASTINT blindly.
2024
2025 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
2026
2027 * indent.c (skip_invisible): Avoid non-idempotent side-effects
2028 in macro arguments.
2029
2030 * keymap.c (Flookup_key): Check INTEGERP before XINT.
2031
2032 * lread.c (oblookup): Don't use XFASTINT blindly.
2033
2034 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
2035 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
2036
11e0be49
KS
20372004-11-23 Kim F. Storm <storm@cua.dk>
2038
4d721114
KS
2039 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
2040 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
2041
11e0be49
KS
2042 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
2043 signal_p is zero and face name is unknown.
2044 (Fx_list_fonts): Don't signal error in lookup_named_face.
2045 (Fface_font): Signal error in lookup_named_face.
2046 (ascii_face_of_lisp_face): Likewise.
2047
2048 * dispextern.h (lookup_named_face): Fix prototype.
2049
2050 * xdisp.c (handle_single_display_prop): Don't signal error in
2051 lookup_named_face for unknown fringe face name.
2052 (highlight_trailing_whitespace): Don't signal error in
2053 lookup_named_face if trailing-whitespace face unknown.
2054 (calc_line_height_property): Don't signal error in
2055 lookup_named_face if specified face name is unknown.
2056
2057 * fringe.c (update_window_fringes): Show top row indicator if
2058 window has header-line. Don't show arrow at bob and eob
2059 if the boundary indicators are not used.
2060 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
2061
2062 * window.c (set_window_buffer): Clear display_error_modiff.
2063
0960a582
KS
20642004-11-22 Kim F. Storm <storm@cua.dk>
2065
2066 * fringe.c (update_window_fringes): Provide sensible fall-back
2067 value for non-nil indicate-buffer-boundaries setting.
2068
b0e9bb28
MR
20692004-11-22 Markus Rost <rost@ias.edu>
2070
2071 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
2072
d0bce91e
SM
20732004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
2074
2075 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
2076
e1814672
KS
20772004-11-21 Kim F. Storm <storm@cua.dk>
2078
b7fd3518
KS
2079 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
2080
2081 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
2082 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2083
2084 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
2085 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2086
2087 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
2088 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2089
d0bce91e
SM
2090 * xdisp.c (move_it_in_display_line_to, display_line):
2091 Restore saved_face_id if overflow-newline-into-fringe is enabled and
2092 line is continued before or in middle of element from display vector.
f01d4d05 2093
f1a61389
KS
2094 * indent.c (Fvertical_motion): Fix last change. Use another
2095 method to detect if iterator moved too far ahead after reseat.
2096
e1814672
KS
2097 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
2098 expand matrix width for overflow in zero-width area.
2099 (append_glyph, append_composite_glyph, produce_image_glyph)
2100 (append_stretch_glyph): Use it to avoid loop in redisplay.
2101 (note_mode_line_or_margin_highlight): Don't let help-echo from
2102 string override help-echo from image map.
2103
2dafe1c9
LT
21042004-11-20 Luc Teirlinck <teirllm@auburn.edu>
2105
d0bce91e 2106 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
2107 * callint.c (Fcall_interactively): Ditto.
2108
fd6866c8 21092004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
2110
2111 * minibuf.c (Fminibuffer_complete_and_exit):
2112 Fixup the case of the completed value, for case-indep completion.
2113
dedbac89
RS
21142004-11-20 Richard M. Stallman <rms@gnu.org>
2115
fd6866c8
RS
2116 * lisp.h (Fread_from_minibuffer): Add arg in decl.
2117
9d00469f 2118 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 2119 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 2120
dedbac89 2121 * search.c (Vsearch_spaces_regexp):
d0bce91e 2122 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 2123
2f672bb5
TTN
21242004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
2125
2126 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
2127
f31a9a68
RS
21282004-11-19 Richard M. Stallman <rms@gnu.org>
2129
2130 * search.c (Vsearch_whitespace_regexp): New variable.
2131 (syms_of_search): Defvar it.
2132 (compile_pattern_1): Call re_set_whitespace_regexp with it.
2133 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
2134 is non-nil.
6de891db
RS
2135 (struct regexp_cache): New element whitespace_regexp.
2136 (syms_of_search): Initialize whitespace_regexp elements.
2137 (compile_pattern): Compare whitespace_regexp elements.
2138 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
2139
2140 * regex.c (regex_compile): Substitute whitespace_regexp
2141 for spaces, if it is nonzero.
2142 (whitespace_regexp): New variable.
2143 (re_set_whitespace_regexp): New function.
2144
cbc34cb3
KS
21452004-11-19 Kim F. Storm <storm@cua.dk>
2146
2147 * indent.c (Fvertical_motion): Fix last change.
2148
b54a7539
KS
21492004-11-18 Kim F. Storm <storm@cua.dk>
2150
2151 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
2152 Instead, move back again if reseating moves too far ahead.
2153
21542004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
2155
2156 * xdisp.c (message3): Call clear_message.
2157
5ff504fe
KS
21582004-11-17 Kim F. Storm <storm@cua.dk>
2159
2160 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
2161
5ae53dcf
JD
21622004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2163
d0bce91e 2164 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 2165
6abf3a27 2166 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
2167 (x_menu_set_in_use): Also set popup_activated_flag.
2168
5ff504fe 2169 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
2170 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
2171
6abf3a27 2172 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 2173
ee31cd78
RS
21742004-11-16 Richard M. Stallman <rms@gnu.org>
2175
6abf3a27
SM
2176 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
2177 Use map-keymap-internal to implement that.
ee31cd78
RS
2178
2179 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
2180
6abf3a27
SM
21812004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2182
2183 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
2184 a window before using XWINDOW.
2185
2186 * window.c (make_window, Fselect_window, make_dummy_parent)
2187 (save_window_save):
2188 * frame.c (make_frame):
2189 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
2190
2191 * lisp.h (NILP): Use EQ rather than XFASTINT.
2192
b4d61105
KS
21932004-11-16 Kim F. Storm <storm@cua.dk>
2194
6abf3a27 2195 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 2196
b4d61105
KS
2197 * indent.c (Fvertical_motion): Fix last change. Only reseat when
2198 moving backwards.
2199
22002004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
2201
2202 * dispextern.h: Extern reseat_at_previous_visible_line_start.
2203
ab5b02b0
KH
22042004-11-16 Kenichi Handa <handa@m17n.org>
2205
2206 * xdisp.c (display_mode_element): Fix previous change (calculate
2207 end position of substring to display correctly).
2208
c482cf97
KS
22092004-11-16 Kim F. Storm <storm@cua.dk>
2210
2211 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
2212 Reported by Andrew M. Scott.
2213
9f89426b
KS
22142004-11-15 Kim F. Storm <storm@cua.dk>
2215
2216 * fns.c (Fsafe_plist_get): New defun.
2217 (syms_of_fns): Defsubr it.
2218
2219 * lisp.h (Fsafe_plist_get): Add EXFUN.
2220
2221 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
2222 Use Fsafe_plist_get.
2223 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2224 Fix image map element parsing. Use Fsafe_plist_get.
2225
27418463
RS
22262004-11-15 Richard M. Stallman <rms@gnu.org>
2227
2228 * xdisp.c (get_next_display_element): Fix previous change.
2229
a130b901
JD
22302004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2231
ef614e04
JD
2232 * window.c (shrink_windows): Handle special case of one window left
2233 when trying to shrink the final reminder. Grow windows if
2234 total_removed is less than total_shrink.
2235
a130b901
JD
2236 * xmenu.c (pop_down_menu): Remove global variable current_menu,
2237 extract pointer from arg with XSAVE_VALUE.
46303896
KS
2238 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
2239 Construct arg to record_unwind_protect with make_save_value.
a130b901 2240
d9a03ad2
RS
22412004-11-13 Richard M. Stallman <rms@gnu.org>
2242
2243 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
2244 (get_next_display_element): Fix previous change to apply only to \n.
2245
2246 * indent.c (Fvertical_motion): Scan to PT from start of line to
2247 make iterator consistent.
2248
2249 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2250
b3935289
JD
22512004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2252
2253 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
2254
2255 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
2256 Record unwind with clean_up_file_dialog.
2257
78819ebb
KS
2258 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
2259 Declare.
b3935289
JD
2260
2261 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
2262
af89e871
JD
22632004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2264
457a8155 2265 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 2266 (xg_file_sel_destroy): Remove.
46303896
KS
2267 (xg_file_response_cb, pop_down_file_dialog)
2268 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 2269 New functions.
6abf3a27
SM
2270 (xg_get_file_with_chooser, xg_get_file_with_selection):
2271 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
2272 Move common code to xg_get_file_name. Return widget created.
2273 (xg_get_file_name): Set name, transient for, modal and destroy
2274 with parent here. Connect response signal to xg_file_response_cb,
2275 connect delete-event to gtk_true. Record pop_down_file_dialog
2276 for unwind. Do event loop and call x_menu_wait_for_event in loop.
2277 (xg_create_widget): Make dialogs modal.
2278
af89e871
JD
2279 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
2280 Lisp_Object.
2281 (popup_get_selection): Move unwind protect ...
2282 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2283 Move destroy of widget to pop_down_menu.
2284 (popup_widget_loop): Move unwind protect ...
2285 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2286 Move destroy of widget to pop_down_menu.
2287 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 2288 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
2289 x_mouse_leave and grabbed = 0 to pop_down_menu.
2290
5596fbf1
KS
22912004-11-13 Kim F. Storm <storm@cua.dk>
2292
2293 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
2294 (syms_of_xdisp): DEFVAR_BOOL it.
2295 (make_cursor_line_fully_visible, try_cursor_movement)
2296 (try_window_id): Use it.
2297
b9de078a
KS
22982004-11-12 Kim F. Storm <storm@cua.dk>
2299
381f7091
KS
2300 * dispextern.h (struct glyph_row): New member extra_line_spacing.
2301 (struct it): New member max_extra_line_spacing.
2302 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
2303 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
2304 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
2305 part of last line is only extra line spacing (so the text on the
2306 line is fully visible). Use helper macros.
2307 Add W arg (to use them). All callers changed.
2308 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
2309 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
2310
6abf3a27
SM
2311 * window.c (window_scroll_pixel_based, Frecenter):
2312 Use move_it_vertically_backward directly.
381f7091
KS
2313 (Frecenter): Fix calculation of new start pos for negative arg.
2314 Before, the new start pos was sometimes chosen too far back, so
2315 the last line became only partially visible, and thus would be
2316 either only semi-visible or automatically scrolled to the middle
2317 of the window by redisplay.
2318
2319 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
2320 (move_it_vertically_backward): Don't recure to move further back.
2321 (move_it_vertically): Remove superfluous condition.
2322 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 2323 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
2324 (display_tool_bar_line): Clear row->extra_line_spacing.
2325 (try_scrolling): Use move_it_vertically_backward directly.
2326 (redisplay_window): Likewise.
2327 (compute_line_metrics): Set row->extra_line_spacing.
2328 (display_line, display_string): Likewise.
2329 (x_produce_glyphs): Update it->max_extra_line_spacing.
2330
b9de078a
KS
2331 * xmenu.c (pop_down_menu): Return nil.
2332
c3438661
JD
23332004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2334
2335 * xmenu.c (x_menu_wait_for_event): New function.
2336 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
2337 to handle timers.
df00f436
JD
2338 (popup_widget_loop): Add argument do_timers.
2339 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
2340 do_timers to popup_widget_loop.
c3438661
JD
2341 (xmenu_show): Call XMenuActivateSetWaitFunction so that
2342 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 2343 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 2344 popup_get_selection.
f1d1cd24
JD
2345 (pop_down_menu): New function.
2346 (popup_get_selection, popup_widget_loop): Unwind protect to
2347 pop_down_menu.
2348 (popup_widget_loop): Add argument widget.
2349 (create_and_show_popup_menu, create_and_show_dialog): Pass new
2350 argument widget to popup_widget_loop.
c3438661 2351
32e2fb04
SM
23522004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2353
2354 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
2355
0faf6806
KS
23562004-11-09 Kim F. Storm <storm@cua.dk>
2357
2358 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
2359 Fix various comments referring to XEvents instead of input events.
2360 (x_queue_event): Fix format strings.
2361 (x_stop_queuing_selection_requests): Likewise.
2362
2363 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
2364 (pint2hrstr): Add extra braces to silence compiler.
2365
2366 * print.c (print_object): Fix format string.
2367
2368 * lread.c (read1): Fix next_char matching.
2369
2370 * lisp.h (Fdelete): Add EXFUN.
2371 (replace_range_2): Add prototype.
2372
2373 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
2374
2375 * intervals.h (NULL_INTERVAL_P): Add separate version when
2376 ENABLE_CHECKING is not defined to silence compiler.
2377 (compare_string_intervals): Add prototype.
2378
2379 * fringe.c (destroy_fringe_bitmap): Fix return type.
2380 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
2381
2382 * emacs.c (Fdump_emacs): Fix format string.
2383
2384 * doc.c: Include <ctype.h>.
2385 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
2386
2387 * data.c (store_symval_forwarding): Remove unused variables.
2388
2389 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
2390
16bf4e32
JD
23912004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2392
2393 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
2394 to ${OLDXMENU}.
2395
cdb805a9
KS
23962004-11-09 Kim F. Storm <storm@cua.dk>
2397
2398 * process.c (Fmake_network_process): Remove kludge for interrupted
2399 connects on BSD. If connect is interrupted, just close socket and
2400 start over rather than sleeping and retry with same socket.
2401
d87a9ab8 24022004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 2403
a8b16c80
JD
2404 * .cvsignore: Add buildobj.lst.
2405
d87a9ab8
JD
2406 * doc.c: New variable Vbuild_files.
2407 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
2408 file names from buildobh.lst. Only attach docstrings from files
2409 that are in Vbuild_files.
2410 (syms_of_doc): Defvar Vbuild_files.
2411
2412 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
2413 and w32*.o.
2414 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 2415 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
2416
2417 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
2418 is linked.
2419
b6709e77
KS
24202004-11-09 Kim F. Storm <storm@cua.dk>
2421
2422 * fringe.c (update_window_fringes): Update fringe bitmaps if
2423 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
2424 also update previous row to get rid of misc. artifacts.
2425
bae9677d
KS
24262004-11-08 Kim F. Storm <storm@cua.dk>
2427
2428 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 2429 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 2430
3f8ea68c
EZ
24312004-11-08 Eli Zaretskii <eliz@gnu.org>
2432
2433 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
2434 Don't include <sys/time.h> explicitly.
2435 Include <stdio.h> unconditionally, not just on MacOS.
2436
a653f812
KH
24372004-11-08 Kenichi Handa <handa@m17n.org>
2438
2439 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
2440 don't pay attention to '\' before '*'.
2441 (fontset_pattern_regexp): Change the meaning of the second arg.
2442 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
2443 (check_fontset_name): Try NAME as literal at first, and if it
2444 failes, try NAME as pattern.
2445
c37caf9d
JD
24462004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2447
2448 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
2449
b72915a7
AS
24502004-11-07 Andreas Schwab <schwab@suse.de>
2451
78819ebb
KS
2452 * lisp.h (Fmsdos_downcase_filename): Declare.
2453 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
2454 * fileio.c: Likewise.
2455
238a44a8
JD
24562004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2457
2458 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
2459 comparisons with integers instead of Lisp_Object address.
2460 (Fmsdos_set_keyboard): Declare argument allkeys.
2461
2462 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
2463
78819ebb 2464 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
2465 int/Lisp_Object mixup.
2466
2467 * fileio.c: Ditto.
2468
31141c13
ST
24692004-11-06 Steven Tamm <steventamm@mac.com>
2470
2471 * editfns.c: Need to include sys/time.h before resource.h on darwin.
2472
f28c1bd9
RS
24732004-11-06 Richard M. Stallman <rms@gnu.org>
2474
2475 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
2476
2477 * xfaces.c (merge_named_face): GCPRO the face_name in the
2478 named_merge_point struct that we make.
2479 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
2480
2481 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
2482 before deciding whether to inactivate mark.
2483
59dede22
EZ
24842004-11-06 Lars Brinkhoff <lars@nocrew.org>
2485
2486 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
2487 * editfns.c (Fget_internal_run_time): New function.
2488 (syms_of_data): Defsubr it.
2489 * fns.c (sxhash): As far as possible, merge calculation of
2490 hash code for symbols and strings.
59dede22 2491
27540e81
EZ
24922004-11-06 Eli Zaretskii <eliz@gnu.org>
2493
2494 * frame.c (syms_of_frame): Fix the example in the doc string.
2495
df470e3b
JD
24962004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2497
2498 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
2499
2500 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
2501 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 2502
4cc8522c
LT
25032004-11-05 Luc Teirlinck <teirllm@auburn.edu>
2504
2505 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
2506
d4a42098
KS
25072004-11-05 Kim F. Storm <storm@cua.dk>
2508
a8490886
KS
2509 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
2510
d4a42098
KS
2511 * fileio.c (Ffile_modes): Doc fix.
2512 (auto_save_1): Check for Ffile_modes nil value.
2513
36a2b04c
KS
25142004-11-05 Kim F. Storm <storm@cua.dk>
2515
2516 * xselect.c (struct selection_event_queue, selection_queue)
2517 (x_queue_selection_requests, x_queue_event)
2518 (x_start_queuing_selection_requests)
2519 (x_stop_queuing_selection_requests): Add new queue for selection
2520 input events to replace previous XEvent queue in xterm.c.
2521 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
2522 (x_reply_selection_request): Adapt to new queue.
2523 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
2524 (x_handle_selection_request, x_handle_selection_clear): Make static.
2525 (x_handle_selection_event): New function. May queue selection events.
2526 (wait_for_property_change_unwind): Use save_value instead of cons.
2527 Clear property_change_reply_object.
2528 (wait_for_property_change): Abort if already waiting.
2529 Use save_value instead of cons for unwind data.
2530 (x_handle_property_notify): Skip events already arrived, but don't
2531 free them, as "arrived" field is checked by wait_for_property_change,
2532 and it will be freed by unwind or explicit unexpect_property_change.
2533 (x_get_foreign_selection): Add to new queue.
2534 (receive_incremental_selection): Don't unexpect wait_object when done
2535 as it has already been freed by previous wait_for_property_change.
2536
2537 * xterm.h (x_start_queuing_selection_requests)
2538 (x_stop_queuing_selection_requests, x_handle_selection_request)
2539 (x_handle_selection_clear): Remove prototypes.
2540 (x_handle_selection_event): Add prototype.
2541
2542 * xterm.c (handle_one_xevent): Don't queue X selection events
2543 here, it may be too late if we start queuing after we have already
2544 stored some selection events into the kbd buffer.
2545 (struct selection_event_queue, queue, x_queue_selection_requests)
2546 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
2547 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
2548 (x_catch_errors_unwind): Block input around final XSync.
2549
2550 * keyboard.h (kbd_buffer_unget_event): Add prototype.
2551
2552 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
2553 (kbd_buffer_unget_event): New function.
2554 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
2555 and use x_handle_selection_event.
2556 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
2557
9c3ad9e1
JD
25582004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2559
2560 * xselect.c (TRACE3): New debug macro.
2561 (x_reply_selection_request): Use it.
2562 (receive_incremental_selection): In call to TRACE0, the name of
2563 a symbol is in xname.
2564
a33b89de
KS
25652004-11-05 Kim F. Storm <storm@cua.dk>
2566
2567 * fontset.c (fontset_pattern_regexp): Use unsigned char.
2568
a872928c
JD
25692004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2570
88208bb8
JD
2571 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
2572
78819ebb 2573 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
2574
2575 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 2576 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
2577 * xfns.c (syms_of_xfns): ... to here.
2578
a872928c
JD
2579 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
2580 it doesn't start with /.
2581
b912921c
KH
25822004-11-04 Kenichi Handa <handa@m17n.org>
2583
2584 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
2585 treat it as a literal character.
2586
c524d9a6
KS
25872004-11-03 Kim F. Storm <storm@cua.dk>
2588
2589 * .gdbinit (ppt): New function.
2590
8cfd0f36
JD
25912004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2592
a11e1dce
JD
2593 * xterm.c (x_window_to_scroll_bar): Only call
2594 xg_get_scroll_id_for_window if toolkit scroll bars are used.
2595
8cfd0f36
JD
2596 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
2597 of save.
2598
a93563fd
AS
25992004-11-02 Andreas Schwab <schwab@suse.de>
2600
2601 * window.c (Fscroll_right): Fix last change.
2602
2b2d59d8
KS
26032004-11-02 Kim F. Storm <storm@cua.dk>
2604
2605 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
2606
26072004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2608
2609 * callproc.c (Fcall_process): Block input around vfork.
2610
ca28104d
KS
26112004-11-02 Kim F. Storm <storm@cua.dk>
2612
2613 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
2614 (syms_of_eval): Defsubr it.
2615
29bb7127
RS
26162004-11-02 Richard M. Stallman <rms@gnu.org>
2617
2618 * insdel.c (replace_range_2): New function.
2619
2620 * casefiddle.c (casify_region): Handle changes in byte-length
2621 using replace_range_2.
2622
2623 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
2624
b6189c3b 2625 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
2626 Subtract 1 from pos when checking previous newline for invisibility.
2627
2628 * window.c (window_scroll_pixel_based): Update preserve_y
2629 for header line if any.
2630 (Fscroll_left, Fscroll_right): Don't call interactive_p;
2631 use a new second argument instead.
2632
2633 * eval.c (Fcall_interactive_p): New function.
2634 (interactive_p): Don't test INTERACTIVE here.
2635 (Finteractive_p): Doc fix.
2636
2637 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
2638
b6189c3b 26392004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
2640
2641 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 2642 comparing font names.
a3fe4aaf 2643
2a00cdb4
JD
26442004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2645
f9d64bb3
JD
2646 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
2647 Fx_file_dialog if only directories should be read.
2648
2649 * lisp.h: Fx_file_dialog takes 5 parameters.
2650
32e2fb04
SM
2651 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
2652 Add parameter only_dir_p.
f9d64bb3
JD
2653 In Motif version, don't put DEFAULT_FILENAME in filter part of the
2654 dialog, just text field part. Do not add DEFAULT_FILENAME
2655 to list of files if it isn't there.
2656 In GTK version, pass only_dir_p parameter to xg_get_file_name.
2657
32e2fb04
SM
2658 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
2659 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
2660 a save dialog, add option kNavDontConfirmReplacement, change title
2661 to "Enter name", change text for save button to "Ok".
2662
32e2fb04
SM
2663 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
2664 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
2665
2666 * gtkutil.c (xg_get_file_with_chooser)
2667 (xg_get_file_with_selection): New functions, only defined ifdef
2668 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
2669 respectively.
2670 (xg_get_file_name): Add parameter only_dir_p.
2671 Call xg_get_file_with_chooser or xg_get_file_with_selection
2672 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
2673 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
2674
2675 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
2676
2a00cdb4
JD
2677 * config.in: Rebuild (added HAVE_GTK_FILE_*).
2678
f6749d5d
KS
26792004-11-01 Kim F. Storm <storm@cua.dk>
2680
32e2fb04
SM
2681 * process.c (connect_wait_mask, num_pending_connects):
2682 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 2683 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
2684 (IF_NON_BLOCKING_CONNECT): New helper macro.
2685 (wait_reading_process_output): Only declare and use local vars
2686 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 2687
1a99fe1a
JR
26882004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
2689
2690 * w32term.c (x_scroll_run): Delete region objects after use.
2691
fcdb28b4
JD
26922004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2693
495ef86b
JD
2694 * xmenu.c: Add prototypes for forward function declarations.
2695 (popup_get_selection): Remove parameter do_timers, remove call to
2696 timer_check.
32e2fb04
SM
2697 (create_and_show_popup_menu, create_and_show_dialog):
2698 Remove parameter do_timers from call to popup_get_selection.
495ef86b 2699
12e6566a
JD
2700 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
2701 tool_bar_items and assign the result to f->tool_bar_items if
2702 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
2703 tool_bar_items to assignment of result.
2704
fcdb28b4
JD
2705 * atimer.c (alarm_signal_handler): Do not call set_alarm if
2706 pending_atmers is non-zero.
2707
1a1a0c4c
KS
27082004-10-31 Kim F. Storm <storm@cua.dk>
2709
2710 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
2711
a36f1680
JW
27122004-10-28 Will <will@glozer.net>
2713
2714 * macterm.c: allow user to assign key modifiers to the Mac Option
2715 key via a 'mac-option-modifier' variable.
2716
32e2fb04 27172004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
2718
2719 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
2720 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
2721 (x_handle_selection_request, x_handle_selection_clear)
2722 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
2723
4f71c13f
RS
27242004-10-28 Richard M. Stallman <rms@gnu.org>
2725
2726 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2727
2728 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2729
068f3848
SM
27302004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
2731
2732 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
2733 comment-starter over a 1-char one.
2734
4660a9e3
RS
27352004-10-27 Richard M. Stallman <rms@gnu.org>
2736
2737 * xdisp.c (get_next_display_element): In mode lines,
2738 treat newline and tab like other control characters.
2739
2740 * editfns.c (Fmessage): Doc fix.
2741
2742 * indent.c (vmotion): When moving up, check the newline before.
2743 Make prevline an int, not a Lisp_Object.
2744
233f3db6
KS
27452004-10-27 Kim F. Storm <storm@cua.dk>
2746
2747 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
2748 Only allocate info and discarded tables once.
2749
2750 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
2751 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
2752 (SAFE_FREE): Test it to determine if we need to unwind to free.
2753 Remove size arg. All users changed.
2754 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
2755
1442465d
JD
27562004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2757
2758 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
2759 (xg_destroy_widgets): Rename from remove_from_container.
2760 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
2761 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
2762 instead of remove_from_container.
2763 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
2764 (free_frame_tool_bar): Add comment.
2765
2766 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
2767 is not NULL before strcmp.
2768
c8636435
KS
27692004-10-26 Kim F. Storm <storm@cua.dk>
2770
2771 * callint.c (Fcall_interactively): Add 'U' code to get the
2772 up-event discarded by a previous 'k' or 'K' argument.
2773
5629f29b
DK
27742004-10-26 David Kastrup <dak@gnu.org>
2775
2776 * buffer.c (syms_of_buffer): Fix a few typos.
2777
4f2f546e
JD
27782004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2779
2780 * xsmfns.c: Put empty line between comment and function body.
2781 Use two spaces before comment end.
2782
fc1062f5
KH
27832004-10-25 Kenichi Handa <handa@m17n.org>
2784
2785 * fontset.c (fontset_pattern_regexp): Optimize for the case that
2786 PATTERN is full XLFD.
2787
be13f5e5
KH
27882004-10-24 Kenichi Handa <handa@m17n.org>
2789
2790 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
2791
2792 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
2793 (regex_compile): Return REG_ERANGEX if appropriate.
2794
d0ee2ed3
KH
27952004-10-22 Kenichi Handa <handa@m17n.org>
2796
2797 * editfns.c (Ftranslate_region_internal): New function.
2798 (syms_of_editfns): Defsubr it.
2799
63ea8ea5
JD
28002004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2801
2802 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
2803
c27ed90a
JD
28042004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
2805
068f3848
SM
2806 * xterm.h (x_output): New member `xic_base_fontname'.
2807 (FRAME_XIC_BASE_FONTNAME): New macro.
2808 (xic_free_xfontset): Declare.
c27ed90a 2809
068f3848
SM
2810 * xfns.c (xic_create_xfontset): Share fontsets between frames
2811 based on base_fontname.
2812 (xic_free_xfontset): New function.
2813 (free_frame_xic): Use it.
2814 (xic_set_xfontset): Ditto.
c27ed90a 2815
068f3848 2816 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
2817
2818
59508699
JR
28192004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
2820
2821 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
2822
dede2792
JD
28232004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2824
3aca2078
JD
2825 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
2826 XSync.
2827
dede2792
JD
2828 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
2829 New variables and constant.
2830 (main): Calculate heap_bss_diff. If we are dumping and the
2831 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
2832 and exec ourself again.
2833 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
2834 print a warning.
2835
2836 * lastfile.c: Make my_endbss and my_endbss_static available on all
2837 platforms.
2838
2839 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
2840 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
2841
1dc5ba01
LT
28422004-10-19 Luc Teirlinck <teirllm@auburn.edu>
2843
2844 * data.c (Flocal_variable_if_set_p): Doc fix.
2845
950090be
JR
28462004-10-19 Jason Rumney <jasonr@gnu.org>
2847
2848 * w32.c (init_environment): Set emacs_dir correctly when running
2849 emacs from the build directory.
2850
8550b998
RS
28512004-10-19 Richard M. Stallman <rms@gnu.org>
2852
2853 * editfns.c (Fdelete_and_extract_region):
2854 If region is empty, return null string.
2855
08dedea6
JD
28562004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2857
1dc5ba01 2858 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 2859 and canon_width.
068f3848 2860 (xg_frame_cleared): Remove.
08dedea6 2861
068f3848
SM
2862 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
2863 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
2864 (xg_create_scroll_bar): Put an event box widget between
2865 the scroll bar widget and the edit widget.
2866 (xg_show_scroll_bar): Show the parent widget (the event box).
2867 (xg_remove_scroll_bar): Destroy parent (the event box) also.
2868 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
2869 Move the parent (the event box) widget inside the fixed widget.
2870 Move window clear to xterm.c.
2871
068f3848 2872 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 2873
08dedea6 2874 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
2875 (x_scroll_bar_create, XTset_vertical_scroll_bar):
2876 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
2877 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
2878
8550b998 28792004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
2880
2881 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 2882
84338890
JD
28832004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2884
2885 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2886 gdk_window_clear and move gdk_window_process_all_updates after
2887 clear so events are sent to the X server in correct order.
2888
6e1b0d8c
KH
28892004-10-18 Kenichi Handa <handa@m17n.org>
2890
2891 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2892 comparing font names.
8550b998 2893 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
2894 (list_fontsets): Likewise.
2895
2896 * search.c (fast_string_match_ignore_case): New function.
2897
2898 * lisp.h (fast_string_match_ignore_case): Extern it.
2899
345e75a8
KS
29002004-10-17 Kim F. Storm <storm@cua.dk>
2901
2902 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2903 than bitmap if there is not left fringe.
2904 (get_overlay_arrow_glyph_row): Also used on windows system.
2905 (display_line): Display overlay string if no left fringe.
2906
be13cbb7
JR
29072004-10-16 Jason Rumney <jasonr@gnu.org>
2908
2909 * w32fns.c (w32_font_match): Encode font name being matched.
2910
c2e2ede7
RS
29112004-10-16 Richard M. Stallman <rms@gnu.org>
2912
2913 * window.c (Fspecial_display_p): Doc fix.
2914
043f7f73 29152004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
2916
2917 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2918 Don't ignore menus, because where-is-internal already does it for us.
2919
699a0392
KS
29202004-10-15 Kim F. Storm <storm@cua.dk>
2921
b3c7a89b
KS
2922 * xdisp.c (redisplay_window): Only update fringes and vertical
2923 border on window frames.
699a0392 2924
4e382b0f
AS
29252004-10-14 Andreas Schwab <schwab@suse.de>
2926
2927 * m/ia64.h (DATA_SEG_BITS): Don't define.
2928
329a7be2
KS
29292004-10-14 Kim F. Storm <storm@cua.dk>
2930
2931 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 2932 in some X versions.
329a7be2 2933
982241b1
SM
29342004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2935
2936 * fns.c (map_char_table): Add missing gcpros.
2937
9238467d
SM
29382004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
2939
2940 * keymap.c (get_keymap): An autoload form is not a keymap.
2941
2942 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2943
4440e3ca
KS
29442004-10-13 Kim F. Storm <storm@cua.dk>
2945
7cfdabde
KS
2946 * callproc.c (Fcall_process): Simplify handling of display arg.
2947 Resume `display_on_the_fly' once a coding system is determined.
2948
4440e3ca
KS
2949 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
2950
1c8dec6a
KS
29512004-10-12 Kim F. Storm <storm@cua.dk>
2952
2953 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
2954 caller, such as call-process, is not going to poll for input.
2955 (calc_line_height_property): Handle case where it->object is nil.
2956
2957 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
2958
170b174c
KH
29592004-10-12 Kenichi Handa <handa@m17n.org>
2960
9238467d
SM
2961 * xdisp.c (get_next_display_element):
2962 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
2963 chars in octal in unibyte buffer.
2964
b583964c
KS
29652004-10-12 Kim F. Storm <storm@cua.dk>
2966
2967 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
2968 are no ordinary bindings.
2969
29fabd8c
JD
29702004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2971
9238467d 2972 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 2973
c3f4c690
ST
29742004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2975
9238467d
SM
2976 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
2977 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 2978 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
2979 terminal frame.
2980 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
2981 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
2982 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
2983 Make a cancel file-open dialog be like C-g.
9238467d
SM
2984 * mac.c (mktime): Use emacs_mktime.
2985 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
2986 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 2987
9688f9eb
KS
29882004-10-10 Kim F. Storm <storm@cua.dk>
2989
2990 * keyboard.c (timer_resume_idle): New function to resume idle
2991 timer without resetting timers on the idle list.
2992 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
2993 (timer_start_idle, timer_stop_idle): Declare static.
2994 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
2995
2996 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
2997
f7f3a65f
ST
29982004-10-08 Steven Tamm <steventamm@mac.com>
2999
9238467d 3000 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 3001 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 3002 NULL where 0 should be used.
f7f3a65f
ST
3003 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
3004 objc/malloc.h
9238467d 3005 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 3006
3c7d999a
KS
30072004-10-07 Kim F. Storm <storm@cua.dk>
3008
3009 * xdisp.c (redisplay_window): Fix flicker on vertical line between
3010 windows. Update vertical line after drawing window fringes, but
3011 only if actually drawing any bitmaps--or there is no fringe.
3012
3013 * xterm.c (x_update_window_end): Likewise.
3014 * macterm.c (x_update_window_end): Likewise.
3015 * w32term.c (x_update_window_end): Likewise.
3016
3017 * fringe.c (draw_window_fringes): Return value now indicates if
3018 any fringe bitmaps were redrawn (or there are no fringes).
3019
3020 * dispextern.h (draw_window_fringes): Update prototype.
3021
bf06c82f
ST
30222004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3023
3024 * macfns.c (mac_get_window_bounds): Add extern.
3025 (x_real_positions): Use mac_get_window_bounds.
3026
3027 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
3028 xmenu.c (YAILOM).
3c7d999a 3029
bf06c82f
ST
3030 * macterm.c [!MAC_OSX]: Include Windows.h.
3031 (front_emacs_window): Rename from mac_front_window. All uses
3032 changed. Return the frontmost non-tooltip emacs window.
3033 (mac_get_window_bounds): New function.
3034 (x_calc_absolute_position): Use the difference of width and height
3035 between the inner and outer window.
3036 (x_set_offset): Specify window position by the coordinae of the
3037 outer window. Adjust the position if the title bar is completely
3038 outside the screen.
3039 (app_is_suspended, app_sleep_time): Remove unused variables.
3040 (do_app_resume, do_app_suspend): Remove their contents because
3041 window-activate/deactivate events will do the job.
3042 (do_zoom_window): Remove unused variables. Make compliant to the
3043 standard way of zooming. Set f->left_pos and f->top_pos.
3044 (XTread_socket): Don't use argument `expected'. Don't use
3045 FrontWindow to determine the clicked window. Exclude unprocessed
3046 mouseUp cases in the early stage. Add parentheses to fix operator
3047 precedence.
3048 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
3049
4cbbf6b7 30502004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
3051
3052 * config.in: Regenerate.
3053
3054 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
3055 HAVE_EXECSHIELD.
3056
b90ee8b5
JD
30572004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3058
3059 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
3060 a row if Alt or Meta has been found for that row. Also stop scanning
3061 for Keysyms for that row.
3062
904db1a2
KS
30632004-10-04 Kim F. Storm <storm@cua.dk>
3064
0207b8ad
KS
3065 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
3066 to list. Include overlay arrow bitmap in return value.
3067
25f7220c
KS
3068 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
3069 bars with fractional column width. If scroll bar separates two
3070 windows, move it towards the window it belongs to. Only update
3071 the padding area below the scroll bar widget when necessary,
3072 i.e. when scroll bar widget is created, moved, or resized.
3073
562020fe
KS
3074 * xdisp.c (define_frame_cursor1): Do not change frame cursor
3075 while tracking/dragging mouse.
3076 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
3077
37e34af7
KS
3078 * window.c (coordinates_in_window): Relax check for cursor
3079 on vertial border between mode lines.
3080 (Fset_window_fringes): Do not allow negative widths.
3081 (Fset_window_scroll_bars): Likewise.
3082
904db1a2
KS
3083 * .gdbinit (pp): Shorthand for p ARG + pr.
3084 (ff): New command: flush frame updates (X only).
3085
38fe4f64
MA
30862004-10-03 Michael Albinus <michael.albinus@gmx.de>
3087
3088 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
3089
9de36315
KH
30902004-09-30 Kenichi Handa <handa@m17n.org>
3091
07c381ad 3092 * process.c (send_process): Free composition data.
9de36315 3093
07c381ad 3094 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
3095
3096 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
3097 compositions to encode.
3098 (encode_coding_string): Likewise. Free composition data.
3099
b6189c3b 31002004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
3101
3102 * coding.c (code_convert_region): Free composition data.
9de36315 3103
f2a54fbc
KS
31042004-09-29 Kim F. Storm <storm@cua.dk>
3105
dc5d6435
KS
3106 * fringe.c: Remove limit on number of bitmaps.
3107 (fringe_bitmaps, fringe_faces): Change to pointers.
3108 (max_fringe_bitmaps): New var.
3109 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
3110 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
3111
3112 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
3113 (struct glyph_row): Reorder fringe_bitmap related fields.
3114 (struct it): Likewise.
3115
3116 * w32term.c (fringe_bmp): Change to pointer.
3117 (max_fringe_bmp): New var.
3118 (w32_define_fringe_bitmap): Expand fringe_bmp.
3119 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
3120 (w32_destroy_fringe_bitmap): Likewise.
3121
31222004-09-29 Kim F. Storm <storm@cua.dk>
3123
3124 * fringe.c: Simplify last change.
f2a54fbc
KS
3125 (lookup_fringe_bitmap): New function.
3126 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
3127 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
3128 Keep standard bitmaps in Vfringe_bitmaps.
3129 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
3130 (Fset_fringe_bitmap_face): Likewise.
3131
3132 * dispextern.h (lookup_fringe_bitmap): Add prototype.
3133 (valid_fringe_bitmap_p): Remove prototype.
3134
3135 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
3136
841a8bca
KS
31372004-09-29 Kim F. Storm <storm@cua.dk>
3138
1f2da365
KS
3139 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
3140 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
3141
841a8bca
KS
3142 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
3143
3144 * fringe.c (Vfringe_bitmaps): New variable.
3145 (syms_of_fringe): DEFVAR_LISP it.
3146 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
3147 Change arg to Lisp_Object and fail if not an integer.
3148 (get_fringe_bitmap_name, resolve_fringe_bitmap)
3149 (destroy_fringe_bitmap): New functions.
9238467d
SM
3150 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
3151 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
3152 clear its fringe property.
3153 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
3154 Fdestroy_fringe_bitmap.
3155 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
3156 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
3157 and set fringe property. Signal error if no free slots.
3158 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
3159 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
3160
3161 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
3162 symbols with a fringe property.
3163
4d965590
KS
31642004-09-27 Kim F. Storm <storm@cua.dk>
3165
3166 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
3167 Doc fix. Format may now be a symbol or alist, not a cons.
3168
3169 * fringe.c (update_window_fringes): Handle new formats of
3170 indicate-buffer-boundaries (symbol or alist). No longer
3171 allow a simple cons.
3172 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
3173
e888c2b3
JD
31742004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3175
9238467d 3176 * config.in: Rebuild.
e888c2b3 3177
83f1cb94
JD
31782004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3179
3180 * config.in: Rebuild.
3181
dd3b1d60 3182 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 3183
2c51754c
SM
31842004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
3185
3186 * xterm.c (x_term_init): Work around a bug in some X servers.
3187
3df5f8aa
RS
31882004-09-18 Richard M. Stallman <rms@gnu.org>
3189
557ca2c1
RS
3190 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
3191
3df5f8aa
RS
3192 * xdisp.c (try_window_reusing_current_matrix):
3193 Handle the case where we reach the old displayed text,
3194 out of sync with the old line boundary.
3195
9238467d 31962004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
3197
3198 * fileio.c (Finsert_file_contents): Fix case of replacement in a
3199 narrowed buffer.
3200
bfa02563
KS
32012004-09-14 Kim F. Storm <storm@cua.dk>
3202
a25fe164
KS
3203 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
3204
bfa02563
KS
3205 * xfaces.c (Qface_no_inherit): New var.
3206 (syms_of_xfaces): Intern and staticpro it.
3207 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
3208 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
3209 Don't increment face_change_count when face has non-nil
3210 face-no-inherit property.
3211
126f9c02
SM
32122004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
3213
892a8eb5
SM
3214 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
3215 (Fbyte_code): Remove dead code after `wrong_type_argument'.
3216
126f9c02 3217 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 3218 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 3219
c0ad3b38
KS
32202004-09-12 Kim F. Storm <storm@cua.dk>
3221
3222 * editfns.c (Fformat): Handle format strings with multiple text
3223 properties. Reverse text property list from the format string,
3224 so the positions are in increasing order.
3225
844fc085
JD
32262004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3227
3228 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
3229 x_uncatch_errors so that possible protocol errors are delivered.
3230
b106731c
EZ
32312004-09-10 Eli Zaretskii <eliz@gnu.org>
3232
21065c92
EZ
3233 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
3234 blockinput.h.
3235 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
3236 charset.h, and coding.h
9238467d 3237 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
3238 (term.o): Depend on window.h and keymap.h.
3239 (abbrev.o): Depend on syntax.h.
3240 (callint.o): Depend on keymap.h.
3241 (casefiddle.o): Depend on charset.h and keymap.h.
3242 (category.o): Depend on keymap.h.
3243 (coding.o): Depend on dispextern.h.
3244 (cmds.o): Depend on keyboard.h and keymap.h.
3245 (dispnew.o): Depend on indent.h and intervals.h.
3246 (doc.o): Depend on keymap.h.
3247 (editfns.o): Depend on frame.h.
3248 (emacs.o): Depend on dispextern.h.
3249 (fileio.o): Don't depend on ccl.h.
3250 (filelock.o): Depend on charset.h and coding.h.
3251 (frame.o): Depend on w32term.h and macterm.h.
3252 (insdel.o): Depend on region-cache.h.
3253 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
3254 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
3255 (search.o): Depend on $(INTERVALS_SRC).
3256 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
3257 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
3258 xterm.h, w32term.h, and macterm.h.
3259 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
3260 w32term.h, and macterm.h.
3261 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
3262 region-cache.h, xterm.h, w32term.h, and macterm.h.
3263 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
3264 (data.o): Depend on frame.h.
3265 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
3266 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
3267 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
3268 (intervals.o): Depend on keymap.h.
3269
9238467d
SM
3270 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
3271 Add debugging print-out to termscript.
b106731c 3272
64b7122d
RS
32732004-09-09 Richard M. Stallman <rms@gnu.org>
3274
3275 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
3276
5670531e
RS
32772004-09-08 Richard M. Stallman <rms@gnu.org>
3278
6cb4a892
RS
3279 * window.c (Fset_window_buffer): Doc fix.
3280
5670531e
RS
3281 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
3282
7e388eb7
JL
32832004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
3284
3285 * minibuf.c (history_delete_duplicates): New variable.
3286 (read_minibuf): Use it.
3287 (syms_of_minibuf): Create the corresponding lisp variable.
3288
370e3587
KS
32892004-09-08 Kim F. Storm <storm@cua.dk>
3290
3291 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
3292 overlay just before point.
3293
f844ba4e
LT
32942004-09-07 Luc Teirlinck <teirllm@auburn.edu>
3295
3296 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
3297 * buffer.c (reset_buffer, init_buffer_once):
3298 Handle auto_save_file_format field.
f844ba4e
LT
3299 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
3300 `buffer-auto-save-file-format'.
f844ba4e
LT
3301 * fileio.c: Delete declaration for removed Vauto_save_file_format.
3302 (build_annotations): Adapt to replacement of
3303 `auto-save-file-format' with the new buffer-local variable
3304 `buffer-auto-save-file-format'.
3305 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
3306
f0f90717
JR
33072004-09-07 Jason Rumney <jasonr@gnu.org>
3308
3309 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
3310
9238467d
SM
3311 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
3312 Handle Unicode menu titles.
f0f90717 3313
4e14f66c
KS
33142004-09-07 Kim F. Storm <storm@cua.dk>
3315
3316 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
3317 property from text property or overlay strings at point.
3318
9238467d 33192004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
3320
3321 * xmenu.c (update_submenu_strings): YAILOM.
3322 (set_frame_menubar): Make sure last_i is initialized.
3323
1f06d367
JR
33242004-09-03 Jason Rumney <jasonr@gnu.org>
3325
1806714a 3326 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
3327 (digest_single_submenu): Set lname and lkey in widget_value
3328 instead of name and key.
3329 (update_submenu_strings): New function.
3330 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3331 call update_submenu_strings.
3332
3333 * w32menu.c (globals_of_w32menu): Check for Unicode API.
3334 (digest_single_submenu, w32_menu_show): Encode menu strings as
3335 UTF-8 if Unicode API is available.
3336 (utf8to16): New function.
3337 (add_menu_item): Use it when calling Unicode API.
1806714a 3338
46540080
KS
33392004-09-03 Kim F. Storm <storm@cua.dk>
3340
3341 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
3342 in overlay or text-property strings; set cursor on corresponding
3343 glyph rather than at end of the string.
3344
9277ba61 33452004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 3346
9277ba61 3347 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
3348 set a new one before obtaining the global coordinate.
3349 Use FRAME_MAC_WINDOW.
3350 (x_set_name, x_set_title): Encode title to UTF8.
3351 Use SetWindowTitleWithCFString.
9277ba61
ST
3352 (Fx_server_version): Get correct OS version.
3353
1806714a
SM
3354 * macmenu.c (add_menu_item): Remove unused variable `i'.
3355 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
3356
3357 * macterm.c (x_update_end): Move SetPortWindowPort to inside
3358 BLOCK_INPUT.
3359 (x_set_offset): Use FRAME_MAC_WINDOW.
3360
3361 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
3362 nontext_cursor if it is on a scroll bar.
3363
3364 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
3365 Carbon support.
1806714a
SM
3366 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
3367 Use LIBS_CARBON.
9277ba61 3368
b10daec7
JD
33692004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3370
3371 * xfns.c (x_set_name_internal): New function. Check if we shall call
3372 xfree before ENCODE_UTF_8.
3373 (x_set_name, x_set_title): Call x_set_name_internal.
3374
f7e22385
JR
33752004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
3376
3377 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
3378 reload it.
3379
2bf436c3
JD
33802004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3381
1806714a 3382 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
3383 (single_submenu): Set lname and lkey in widget_value
3384 instead of name and key.
3385 (update_submenu_strings): New function.
3386 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3387 call update_submenu_strings.
3388
2bf436c3
JD
3389 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
3390 instead of name and key.
3391 (update_submenu_strings): New function.
3392 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 3393 call update_submenu_strings.
2bf436c3
JD
3394
3395 * gtkutil.h (_widget_value): Added lname and lkey.
3396
11715f92
ST
33972004-08-30 Steven Tamm <steventamm@mac.com>
3398
3399 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
3400 by using different names for inner loop variables.
3401
5500be54
JD
34022004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3403
059cd329
JD
3404 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
3405 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
3406
5500be54
JD
3407 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
3408 tool bar items is 0.
3409
383418e5
ST
34102004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3411
3412 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
3413 strings in menu items.
3414 (single_submenu): Use ENCODE_MENU_STRING
3415 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
3416 button release isn't passed to event loop
3417 (add_menu_item): Use SetMenuItemWithCFString
3418
6eb3ee72
ST
34192004-08-26 Steven Tamm <steventamm@mac.com>
3420
3421 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
3422 tool-bar/menu click
3423 * macfns.c (Fx_file_dialog): Implemented using NavServices
3424
10b43ac3
JD
34252004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3426
2728b5d0
JD
3427 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
3428
10b43ac3
JD
3429 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3430 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3431 (x_top_window_to_frame): Return 0 if wdesc is None.
3432
2ee3b79e
RS
34332004-08-22 Richard M. Stallman <rms@gnu.org>
3434
3435 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
3436 HAVE_TERMIOS]: If there's no char for this signal, drop through
3437 and use system calls.
3438
3439 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
3440
9a1ba2ea
KS
34412004-08-20 Kim F. Storm <storm@cua.dk>
3442
3443 * process.c (wait_reading_process_output): Rename from
3444 wait_reading_process_input. All uses changed.
3445 (wait_reading_process_output_1): Rename from
3446 wait_reading_process_input_1. All uses changed.
3447
3448 * dispnew.c (Fsleep_for): Remove obsolete code.
3449
295f3b30
KH
34502004-08-20 Kenichi Handa <handa@m17n.org>
3451
3452 * syntax.c (skip_chars): Fix for unibyte case.
3453
27615979
SM
34542004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3455
3456 * syntax.c (char_quoted): Mixup byte/char pos.
3457 (back_comment): Fixup globals in all cases.
3458
00267f94
JD
34592004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3460
3461 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
3462 passing it to gtk_window_set_title.
3463
2439909e
KS
34642004-08-19 Kim F. Storm <storm@cua.dk>
3465
6ba0f14c
KS
3466 * process.c (wait_reading_process_input): Clean up.
3467 Add wait_for_cell, wait_proc, and just_wait_proc args
3468 to avoid overloading `read_kbd' and `do_display' args.
3469 Change read_kbd arg to int. All callers changed.
3470
2439909e
KS
3471 * process.c (process_send_signal): Use CDISABLE.
3472
3473 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
3474
101c421e
KS
34752004-08-18 Kim F. Storm <storm@cua.dk>
3476
3477 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
3478 forward to wait_reading_process_input via DO_DISPLAY arg.
3479 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
3480 object, only process output from that process; also inhibit
3481 running timers if DO_DISPLAY==-2.
3482
c438dc33
KS
34832004-08-17 Kim F. Storm <storm@cua.dk>
3484
3485 * process.c (process_send_signal): Fix last change--use
3486 _POSIX_VDISABLE instead of CVDISABLE when available.
3487
8afc13c6
RS
34882004-08-16 Richard M. Stallman <rms@gnu.org>
3489
3490 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
3491 Set VQUIT and VINTR chars to the standard ones if they are unset.
3492 [AIX]: Don't do that here. And don't force VINTR to standard
3493 when SIGNALS_VIA_CHARACTERS.
3494
c438dc33 3495 * process.c (process_send_signal)
8afc13c6
RS
3496 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
3497 Do nothing if the character is CVDISABLE.
3498
3499 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
3500
c438dc33 3501 * intervals.c (move_if_not_intangible):
8afc13c6
RS
3502 Force POSITION to be between BEGV and ZV.
3503
6dad1714
JPW
35042004-08-14 John Paul Wallington <jpw@gnu.org>
3505
3506 * buffer.c (Frestore_buffer_modified_p): Doc fix.
3507
3508 * fileio.c (Fread_file_name): Doc fix.
3509
3510 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3511
2bd77330
LT
35122004-08-09 Luc Teirlinck <teirllm@auburn.edu>
3513
3514 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
3515
c90e7e43
LT
35162004-08-08 Luc Teirlinck <teirllm@auburn.edu>
3517
3518 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 3519 Qdisabled_command_hook.
c90e7e43 3520 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 3521 Qdisabled_command_hook.
c90e7e43
LT
3522 (syms_of_keyboard): Ditto.
3523
81909a1a
LT
35242004-08-07 Luc Teirlinck <teirllm@auburn.edu>
3525
3526 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
3527 (syms_of_keymap) <key-translation-map>: Doc fixes.
3528
0cedd530
SM
35292004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
3530
1725a7c9
SM
3531 * window.c (window_list_1): YAILOM.
3532
0cedd530
SM
3533 * fileio.c (make_temp_name): Handle multibyte prefixes.
3534
2515a131
LT
35352004-08-06 Luc Teirlinck <teirllm@auburn.edu>
3536
3537 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3538 Doc fix.
3539
c8b20fb7
KH
35402004-08-03 Kenichi Handa <handa@m17n.org>
3541
3542 * coding.c (decode_coding_string): Adjust coding->consumed, and
3543 etc. with shrinked_bytes.
3544
fb8b092b
KS
35452004-08-03 Kim F. Storm <storm@cua.dk>
3546
3547 * indent.c (compute_motion): Fix check for full width window
3548 in non-window case. Do not count left truncation glyph on
3549 window systems.
3550
df133612
LT
35512004-08-02 Luc Teirlinck <teirllm@auburn.edu>
3552
3553 * data.c (Finteractive_form): Doc fix.
3554
0f7a93c1
KS
35552004-08-02 Kim F. Storm <storm@cua.dk>
3556
3557 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
3558 properly accounting for continuation glyph on non-window systems.
3559 (Fcompute_motion): Use actual window width if WIDTH is nil, and
3560 actual window width/height if TOPOS is nil, properly accounting for
3561 continuation glyphs on non-window systems, and optional header lines.
3562 (vmotion): Let compute_motion calculate actual window width.
3563
3564 * window.c (window_scroll_line_based): Let compute_motion
3565 calculate actual window width.
3566
f491e1ed
KS
35672004-08-02 Kim F. Storm <storm@cua.dk>
3568
3569 * process.c (read_process_output): Use whole read buffer.
3570 Don't trigger adaptive read buffering on errors.
3571
83f64226
LT
35722004-07-31 Luc Teirlinck <teirllm@auburn.edu>
3573
3574 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
3575
3576 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
3577
3578 * callint.c (Fcall_interactively): Doc fix.
3579
8afc13c6
RS
35802004-07-30 Richard M. Stallman <rms@gnu.org>
3581
3582 * abbrev.c (Fexpand_abbrev): Undo previous change.
3583
7c111482
KS
35842004-07-30 Kim F. Storm <storm@cua.dk>
3585
3586 * editfns.c (Fformat): Allocate extra (dummy) element in info.
3587
ee945d08
LT
35882004-07-28 Luc Teirlinck <teirllm@auburn.edu>
3589
3590 * eval.c (Fdefvar, Fdefconst): Doc fixes.
3591
3f911c94
KS
35922004-07-27 Kim F. Storm <storm@cua.dk>
3593
3594 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
3595 we have ensured that the glyph fits on the current line (or returned
3596 MOVE_LINE_CONTINUED otherwise).
3597
f29ff8c7
KS
35982004-07-26 Kim F. Storm <storm@cua.dk>
3599
3600 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
3601 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
3602 if target position is at end of display line but char is not a newline.
3603
81159bb9
RS
36042004-07-25 Richard M. Stallman <rms@gnu.org>
3605
ab431b61
RS
3606 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
3607 instead of ON_VERTICAL_BORDER, when on scroll bar.
3608 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
3609
3610 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
3611
f29ff8c7 3612 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
3613 Take account of FRAME_INTERNAL_BORDER_WIDTH.
3614
3615 * alloc.c (check_cons_list): New function (contents commented out).
3616
fc820cc5
LT
36172004-07-24 Luc Teirlinck <teirllm@auburn.edu>
3618
3619 * xfaces.c (Fcolor_supported_p): Doc fix.
3620
3621 * frame.c (Fselect_frame, Fset_frame_selected_window)
3622 (Fframe_visible_p, Fraise_frame): Doc fixes.
3623
289978b5
LT
36242004-07-24 Richard M. Stallman <rms@gnu.org>
3625
78819ebb 3626 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
3627
3628 * fileio.c (Fwrite_region): Doc fix.
3629
3630 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
3631
3632 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
3633 only when a real abbrev is present.
3634
289978b5
LT
3635 * xfns.c (x_icon_verify): New function.
3636 (Fx_create_frame): Use it.
3637
63cc10ae
KS
36382004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
3639
3640 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
3641
36f826d4
KS
36422004-07-21 Kim F. Storm <storm@cua.dk>
3643
3644 * window.h (struct glyph_matrix): New members nrows_scale_factor
3645 and ncols_scale_factor.
3646
3647 * window.c (make_window): Initialize nrows_scale_factor and
3648 ncols_scale_factor members.
3649
3650 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
3651 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
3652 (required_matrix_height): Apply nrows_scale_factor.
3653 (required_matrix_width): Apply ncols_scale_factor.
3654
3655 * xdisp.c (display_line): Increment nrows_scale_factor and set
3656 fonts_changed_p if past last allocated row.
3657 (append_glyph, append_composite_glyph, produce_image_glyph)
3658 (append_stretch_glyph): Increment ncols_scale_factor and set
3659 fonts_changed_p if current area is full.
3660
5fc1c546
JD
36612004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3662
3663 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
3664
cb7516e5
LT
36652004-07-19 Luc Teirlinck <teirllm@auburn.edu>
3666
3667 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
3668 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
3669 (Fset_window_start, Fscroll_up, Fscroll_down)
3670 (Fother_window_for_scrolling, Fscroll_other_window)
3671 (Fsave_window_excursion, Fset_window_vscroll)
3672 (syms_of_window) <window-size-fixed>: Doc fixes.
3673
b6189c3b 36742004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
3675
3676 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
3677 ENCODE_SYSTEM for filenames.
3678
bfcf6608
ST
36792004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3680
3681 * mac.c (sys_select): Block input around call to
3682 ReceiveNextEvent to prevent breakage. Correctly handle
3683 blocking on event queue only by calling ReceiveNextEvent
3684 instead of select (since GUI events aren't on an fd).
3685 (sys_read): Remove function
3686 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
3687
e082ac9d
ST
36882004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3689
3690 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 3691 polling instead of 1 sec timeouts (like solaris).
e082ac9d 3692
cb7516e5 3693 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
3694 frame creation.
3695
3696 * keyboard.c: Undef SIGIO on Carbon
3697
3698 * atimer.c (alarm_signal_handler): Call alarm handlers after
3699 scheduling.
3700
3701 * eval.c (Feval): Remove quit_char test
3702
3703 * process.c (wait_reading_process_input): Remove clearing
3704 stdin for select call on process input.
3705
4b9da0fb
LT
37062004-07-18 Luc Teirlinck <teirllm@auburn.edu>
3707
1204e81c
LT
3708 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
3709 capitalization error in docstring.
4b9da0fb 3710
26503ad2
JB
37112004-07-17 Juanma Barranquero <lektu@terra.es>
3712
3713 * keyboard.c (not_single_kboard_state): Do nothing unless
3714 MULTI_KBOARD is defined.
3715
3751eb00
RS
37162004-07-17 Richard M. Stallman <rms@gnu.org>
3717
3718 * window.c (coordinates_in_window): Inside the window but outside
3719 its box to the L or R, return ON_VERTICAL_BORDER.
3720 (window_list_1): Rotate the list to start with WINDOW.
3721
3722 * print.c (print_preprocess): Test for print_depth at limit
3723 before entering in being_printed.
3724
3725 * keyboard.c (not_single_kboard_state): New function.
3726 (stuff_buffered_input): Now no-op only if no SIGTSTP.
3727
3728 * frame.c (Fdelete_frame): If we're in single_bboard_state on
3729 this kboard, and we delete its last frame, go to any_kboard_state.
3730
3731 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
3732
b6189c3b 37332004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
3734
3735 * w32fns.c (Fx_file_dialog): Encode strings in system coding
3736 system before passing them to OS functions for display.
3737
0f6af254
DK
37382004-07-15 David Kastrup <dak@gnu.org>
3739
f9253326
KS
3740 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
3741 Apparently fixes an abort condition.
0f6af254 3742
386c8f42
LT
37432004-07-14 Luc Teirlinck <teirllm@auburn.edu>
3744
3745 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
3746 instead of a cons.
3747
366511da
MB
37482004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
3749
3750 * keyboard.c (echo_dash): Do nothing if there already is a dash
3751 at the end of the echo string.
3752
f85409d3
KS
37532004-07-12 Kim F. Storm <storm@cua.dk>
3754
3755 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
3756 if GC_MARK_STACK.
3757
0ba2e87b
LT
37582004-07-10 Luc Teirlinck <teirllm@auburn.edu>
3759
da38045d
LT
3760 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
3761
0ba2e87b
LT
3762 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
3763 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
3764 (Freplace_buffer_in_windows, Fset_window_buffer)
3765 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
3766 (syms_of_window): Expand docstring of `display-buffer-function'.
3767
5668fbb8
LT
37682004-07-09 Luc Teirlinck <teirllm@auburn.edu>
3769
3770 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
3771 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
3772 that time values of the type (HIGH . LOW) are considered obsolete.
3773
a085bf9d
LT
37742004-07-06 Luc Teirlinck <teirllm@auburn.edu>
3775
669de2fb
LT
3776 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
3777 docstring.
3778
bac66325 3779 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 3780
8e975df9
JPW
37812004-07-06 John Paul Wallington <jpw@gnu.org>
3782
3783 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
3784
fa164e6a
JPW
3785 * fns.c (Fclear_string): Signal an error if STRING is not a string.
3786
2bac9bb1
JD
37872004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3788
3789 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
3790 instead of CGMainDisplayID (only in OSX 10.2 and later).
3791
316ef0dc
JPW
37922004-07-04 John Paul Wallington <jpw@gnu.org>
3793
3794 * fileio.c (read_file_name_completion_ignore_case): New variable.
3795 (syms_of_fileio): Declare and initialise it.
3796 (Fread_file_name): Bind `completion-ignore-case' to respect it.
3797
2a1a35c6
EZ
37982004-07-03 Eli Zaretskii <eliz@gnu.org>
3799
3800 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
3801 for event.x and event.y.
3802
33a72331
KH
38032004-07-01 Kenichi Handa <handa@m17n.org>
3804
3805 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
3806 after getting a new string by pre-write-conversion.
3807
9238467d 38082004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
3809
3810 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
3811 (x_calc_absolute_position): Remove unused var `child'.
3812
3813 * xfaces.c (x_supports_face_attributes_p)
3814 (Fdisplay_supports_face_attributes_p): YAILOM.
3815 (tty_supports_face_attributes_p): Remove unused var `i'.
3816
3817 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
3818 back_unibyte_ok.
3819
3820 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
3821
3822 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
3823
3824 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
3825
f96ec754
AS
38262004-06-30 Andreas Schwab <schwab@suse.de>
3827
3828 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
3829 (Finit_image_library): Pass LIBRARIES through to
3830 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
3831 (lookup_image_type): Pass Qnil as second argument to
3832 Finit_image_library.
3833
78819ebb 3834 * lisp.h (Finit_image_library): Declare.
f96ec754 3835
59feca74 38362004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 3837
31983645
AS
3838 * macterm.c (do_window_activate, do_window_deactivate): Remove.
3839 (XTread_socket): Send mouse button events to the toolbox
3840 dispatcher even when the mouse is grabbed. Don't process window
3841 activate events for non-Emacs windows. Replace function calls to
3842 do_window_activate and do_window_deactivate with their contents.
3843 Reset mouse grabbing status when a window is deactivated.
59feca74 3844
c61278bb
ST
38452004-06-29 Steven Tamm <steventamm@mac.com>
3846
3847 * macterm.c (mac_get_emulated_btn)
3848 (mac_event_to_emacs_modifiers): Fix emulated mouse button
3849 support to correctly mask out modifiers.
3850
c3762cbd
DK
38512004-06-29 David Kastrup <dak@gnu.org>
3852
3853 * search.c (Fset_match_data): Allow buffer before end of list
3854 which can happen if set-match-data is using a pre-consed list.
3855
c61278bb 38562004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
3857
3858 * macterm.c (XTread_socket): Correctly set the frame position
3859 after the window is moved.
3860
74cdfe05
JD
38612004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3862
3863 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
3864 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
3865 (xg_get_image_for_pixmap): Add workaround for monochrome displays
3866 so insensitive and activated icons look ok.
74cdfe05 3867
ef544dc8
JR
38682004-06-27 Jason Rumney <jasonr@gnu.org>
3869
3870 * w32fns.c (file_dialog_callback): Disable edit control if set
3871 to directories only on CDN_INITDONE message.
3872 (Fx_file_dialog): Default to directories only when prompt starts
3873 with "Dired".
3874
7b7990cc
KS
38752004-06-25 Kim F. Storm <storm@cua.dk>
3876
3877 * alloc.c (allocate_misc): Update total_free_markers.
3878 (free_misc): New function.
3879 (safe_alloca_unwind, free_marker): Use it.
3880
3881 * lisp.h (free_misc): Add prototype.
3882
3883 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3884
d8c379f8
RS
38852004-06-24 Richard M. Stallman <rms@gnu.org>
3886
3887 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3888 (syms_of_emacs): Lisp variables deleted.
3889
559cdd07
DK
38902004-06-23 David Kastrup <dak@gnu.org>
3891
94939b84
DK
3892 * search.c (Freplace_match): Adjust the match-data more thoroughly
3893 when replacing strings in the buffer.
3894 (Fmatch_data): When INTEGERS is non-nil and the last match was in
3895 a buffer, add the buffer as last element to the match data.
3896 (Fset_match_data): If an additional element of the match-data is a
3897 buffer, restore it to last_thing_searched.
c8d09ad8 3898 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
3899 (restore_match_data): Restore it again.
3900
dce417e7
LT
39012004-06-23 Luc Teirlinck <teirllm@auburn.edu>
3902
3903 * keymap.c (Ftext_char_description): Doc fix.
3904 * doc.c (Fsnarf_documentation): Doc fix.
3905
ef54b2d0
KS
39062004-06-22 Kim F. Storm <storm@cua.dk>
3907
b5bc4d05
KS
3908 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3909
ef54b2d0
KS
3910 * lisp.h (struct Lisp_Save_Value): New member dogc.
3911 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3912 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3913 (SAFE_FREE_LISP): New macro.
3914
3915 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3916 (make_save_value): Init new dogc member.
3917 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3918
3919 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3920 SAFE_FREE_LISP macros.
3921
3d33d993
KS
39222004-06-22 Kim F. Storm <storm@cua.dk>
3923
3924 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3925 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3926 in that memory area are unknown to GC. Add comments.
3927
3928 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3929
5c917f98
KS
39302004-06-21 Kim F. Storm <storm@cua.dk>
3931
3932 * lisp.h (MAX_ALLOCA): Define here.
3933 (safe_alloca_unwind): Add prototype.
3934 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3935
3936 * alloc.c (safe_alloca_unwind): New function.
3937
3938 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3939
3940 * charset.c (Fstring): Use SAFE_ALLOCA.
3941
3942 * coding.c (MAX_ALLOCA): Remove define.
3943
3944 * data.c (MAX_ALLOCA): Remove define.
3945 (Faset): Use SAFE_ALLOCA.
3946
3947 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
3948
3949 * fns.c (string_make_multibyte, string_to_multibyte)
3950 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
3951 (MAX_ALLOCA): Remove define.
3952 (Fbase64_encode_region, Fbase64_encode_string)
3953 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
3954 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
3955 memory leak if encoding fails.
3956
3957 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
3958
9a09408e
EZ
39592004-06-21 Eli Zaretskii <eliz@gnu.org>
3960
3961 * print.c (Fwith_output_to_temp_buffer): Doc fix.
3962
376de739
RS
39632004-06-20 Richard M. Stallman <rms@gnu.org>
3964
3965 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
3966
3967 * search.c (match_limit): Cleaner err msg when no match data available.
3968
3969 * window.c (syms_of_window): Doc fix.
3970
3971 * keyboard.c (command_loop_1): Handle values `only' and `identity'
3972 for Vtransient_mark_mode.
3973
3974 * buffer.c (syms_of_buffer): Doc fix.
3975
acd81db9
DK
39762004-06-21 David Kastrup <dak@gnu.org>
3977
3978 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
3979 and unbinding of `case-fold-search' according to
3980 `completion-ignore-case' around calls of string-match and
3981 predicates, respectively. Should give satisfactory performance
3982 in all relevant cases.
3983
f303762d
JD
39842004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3985
95911c74
JD
3986 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
3987 clip_x/y_origin.
3988
a6cb6b78
JD
3989 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
3990
f303762d
JD
3991 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
3992
3993 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
3994 on Mac OSX.
3995
bbdb2684
LT
39962004-06-16 Luc Teirlinck <teirllm@auburn.edu>
3997
3998 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
3999
5ea48b1c
KS
40002004-06-16 Kim F. Storm <storm@cua.dk>
4001
4002 * dispextern.h (Vimage_types): Remove extern.
4003
803aac3e
MB
40042004-06-16 Miles Bader <miles@gnu.org>
4005
4006 * image.c (lookup_image_type): Initialize image type if necessary.
4007
cdc97764
KS
40082004-06-15 Kim F. Storm <storm@cua.dk>
4009
c4a5739c
KS
4010 * xdisp.c (try_cursor_movement): Exclude header line from scroll
4011 margin at top of window.
4012 (try_window_reusing_current_matrix): Calculate proper cursor position
4013 after scrolling up with non-zero scroll margin, as the old cursor
4014 position corresponds to value of PT before executing this command.
4015 (try_window_id): Consider scroll margin at bottom of window too;
4016 otherwise we fail to scroll when hl-line-mode is enabled.
4017
cdc97764
KS
4018 * syntax.c (skip_chars): Only recognize [:class:] when it has the
4019 proper format and class is a lower-case word.
4020
5b166323
JD
40212004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4022
4023 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 4024 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
4025 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
4026 xg_get_gdk_pixmap_and_mask.
cdc97764 4027
5b166323
JD
4028 * xterm.h (struct x_display_info): Typo in comment fixed.
4029
1ebd4f78
JB
40302004-06-14 Juanma Barranquero <lektu@terra.es>
4031
4032 * dispextern.h (Vimage_types): Make it conditional on
4033 HAVE_WINDOW_SYSTEM.
4034
4035 * image.c (Vimage_types): Move from xdisp.c.
4036 (Vimage_type_cache): New variable.
4037 (define_image_type): New argument indicating whether an image
4038 library was loaded; cache loaded status and return t on success,
4039 nil otherwise.
4040 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
4041 (w32_delayed_load): New function to load an image library from a
4042 list of possible filenames.
4043 (init_xpm_functions, init_png_functions, init_jpeg_functions)
4044 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 4045 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
4046 (Finit_image_library): New function, extracted from `init_image'.
4047 Try to initialize an image library on demand and cache whether we
4048 were successful or not.
4049 (syms_of_image): Initialize `Vimage_types' and
4050 `Vimage_type_cache'. Add recognized image types to Vimage_types.
4051 Export `init-image-library'.
4052 (init_image): Remove initialization of all image types, except xbm
4053 and pbm.
4054
4055 * xdisp.c (Vimage_types): Delete (moved to image.c).
4056
904ee128
AS
40572004-06-14 Andreas Schwab <schwab@suse.de>
4058
4059 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
4060 Avoid calling specbind when completion-regexp-list is empty.
4061
092de21d
RS
40622004-06-13 Richard M. Stallman <rms@gnu.org>
4063
4064 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4065 (re_wctype, re_iswctype, re_wctype_to_bit):
4066 Non-function definitions moved here from regex.c.
1ebd4f78 4067
092de21d
RS
4068 * regex.c (re_wctype, re_iswctype): Function defs longer static.
4069 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4070 (re_wctype, re_iswctype, re_wctype_to_bit):
4071 Non-function definitions moved to regex.h.
4072
4073 * window.c (Fselect_window): Doc fix.
4074
4075 * syntax.c: Include regex.h.
4076 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
4077 If requested, make a list of classes, then check the scanned
4078 chars for membership in them.
4079 (in_classes): New function.
4080 Doc fix.
4081
4082 * keyboard.c (cmd_error): Don't call any_kboard_state
4083 if inside a recursive edit level.
4084
40852004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
4086
4087 * keyboard.c (command_loop): Call any_kboard_state before
4088 command_loop_2 when at top level.
4089
3ebc0939
AS
40902004-06-13 Andreas Schwab <schwab@suse.de>
4091
cea5d0d4
AS
4092 * print.c (print_object): Always use %ld for printing EMACS_INT.
4093
4094 * keyboard.c (cancel_hourglass_unwind): Return a value.
4095 (modify_event_symbol): Always use %ld for printing EMACS_INT.
4096 (Fexecute_extended_command): Likewise.
4097
4098 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
4099 avoid clashes.
4100 (SYNTAX): Likewise.
4101 (SYNTAX_WITH_FLAGS): Likewise.
4102 (SYNTAX_MATCH): Likewise.
4103
4104 * syntax.c (char_quoted): Avoid warning about undefined operation.
4105 (find_defun_start): Likewise.
4106 (scan_lists): Likewise.
4107 (INC_FROM): Likewise.
4108 (scan_sexps_forward): Likewise.
4109
be8c4ce4
AS
4110 * image.c: Include <ctype.h>.
4111
3ebc0939
AS
4112 * xfaces.c (face_attr_equal_p): Declare parameters.
4113
6fb41b5b
KH
41142004-06-13 Kenichi Handa <handa@m17n.org>
4115
4116 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
4117
fc3095ce
EZ
41182004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
4119
4120 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
4121
66189a40
KH
41222004-06-12 Kenichi Handa <handa@m17n.org>
4123
4124 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
4125 ccl_prog_stack_struct and update it.
4126 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
4127 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
4128 ccl->eof_ic on EOF.
4129 (ccl_debug_hook): New function.
4130 (struct ccl_prog_stack): New member eof_ic.
4131 (ccl_driver): Handle EOF in subrountine call correctly.
4132
41332004-06-11 Kenichi Handa <handa@m17n.org>
4134
4135 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
4136
1da71023
KS
41372004-06-11 Kim F. Storm <storm@cua.dk>
4138
4139 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
4140
e9efcef4
JB
41412004-06-11 Juanma Barranquero <lektu@terra.es>
4142
4143 * keyboard.c (Fposn_at_point): Doc fix.
4144
9b9ceb61
DK
41452004-06-11 David Kastrup <dak@gnu.org>
4146
4147 * search.c (match_limit): Don't flag an error if match-data
4148 exceeding the allocated search_regs.num_regs gets requested, just
4149 return Qnil.
4150
6e87ac8f
MB
41512004-06-08 Miles Bader <miles@gnu.org>
4152
4153 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
4154
0b0dea7b
JB
41552004-06-07 Juanma Barranquero <lektu@terra.es>
4156
4157 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
4158 (Fcurrent_time_string, Fcurrent_time_zone)
4159 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
4160
a0a23346
MB
41612004-06-07 Miles Bader <miles@gnu.org>
4162
08384afd 4163 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
4164 (push_named_merge_point): New function.
4165 (merge_named_face): New function.
4166 (merge_face_ref, face_at_buffer_position, face_at_string_position):
4167 Use `merge_named_face'.
4168 (merge_face_inheritance): Function removed.
c8d09ad8 4169 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
4170 Add new `err_msgs' and `named_merge_points' args. Return error
4171 status. Only print error messages if ERR_MSGS is true. Don't try to
4172 do :inherit attribute validation.
4173 (merge_face_heights): Handle `unspecified' in both directions.
4174 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
4175 Call `merge_face_ref' instead of `merge_face_inheritance'.
4176 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
4177 (compute_char_face, face_at_buffer_position)
4178 (face_at_string_position): Call `merge_face_ref' instead of
4179 `merge_face_vector_with_property'.
4180
12d5b185
KH
41812004-06-07 Kenichi Handa <handa@m17n.org>
4182
4183 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
4184 the necessary places.
4185
2e2d7ee6
KS
41862004-06-07 Kim F. Storm <storm@cua.dk>
4187
4188 * process.c (Fdelete_process): Undo 2004-05-28 change.
4189 Instead, call status_notify also for network process.
4190 (status_message): Use process instead of status as arg.
4191 Give messages "deleted" or "connection broken by remote peer" for
4192 an exited network process.
4193 (status_notify): Change call to status_message.
4194 (read_process_output): Increase readmax to 4096. Do not increase
4195 buffer size for datagram channels (default is now large enough).
4196
fcf0d299
ST
41972004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4198
4199 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
4200 problem due to newly defined variable.
4201
0722292b
MB
42022004-06-06 Miles Bader <miles@gnu.org>
4203
4204 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
4205 immediately if non-interactive or not initialized.
4206
ddfb8369
RS
42072004-06-05 Richard M. Stallman <rms@gnu.org>
4208
4209 * minibuf.c (Fcompleting_read): Doc fix.
4210
57015754
AS
42112004-06-05 Andreas Schwab <schwab@suse.de>
4212
4213 * macfns.c (x_create_tip_frame): Fix declaration after statement.
4214
23715ea6
JB
42152004-06-05 Juanma Barranquero <lektu@terra.es>
4216
4217 * keymap.c (Fdescribe_vector): Fix docstring.
4218 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
4219
8e330b22
MB
42202004-06-05 Miles Bader <miles@gnu.org>
4221
4222 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
4223 attributes have different values than the default face.
4224
9742a3a6
EZ
42252004-06-04 Eli Zaretskii <eliz@gnu.org>
4226
4227 * xfaces.c (x_supports_face_attributes_p): Make this function
4228 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
4229 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
4230 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 4231
9717e36c
MB
42322004-06-04 Miles Bader <miles@gnu.org>
4233
4234 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
4235 from Ftty_supports_face_attributes_p.
4236 (x_supports_face_attributes_p): New function.
4237 (Ftty_supports_face_attributes_p): Function deleted.
4238 (Fdisplay_supports_face_attributes_p): New function.
4239 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 4240 (face_attr_equal_p): New function.
9717e36c
MB
4241 (lface_equal_p): Use it.
4242
52deb19f
JB
42432004-06-03 Juanma Barranquero <lektu@terra.es>
4244
4245 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
4246 (Vw32_color_map): Fix typo in docstring.
4247 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
4248 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
4249 Make argument names match their use in docstring.
4250
86d373e6
JB
42512004-06-02 Juanma Barranquero <lektu@terra.es>
4252
4253 Work around bugs/problems with MinGW builds of graphics libraries
4254 called from MSVC builds of Emacs.
4255
4256 * image.c (lookup_image): Make pointer to img static.
4257 (png_read_from_memory): Disable "global" optimization.
4258
2fb0ce67
SM
42592004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4260
c8d09ad8
SM
4261 * eval.c (Fcondition_case): Fix usage. Simplify.
4262
2fb0ce67
SM
4263 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
4264
50bf7673
ST
42652004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4266
4267 * macfns.c: Don't include ccl.h.
4268 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
4269 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
4270 TextUtils.h.
c8d09ad8 4271 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
4272 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
4273 display height/width.
4274 (compute_tip_xy, Vx_max_tooltip_size): Declare.
4275 (unwind_create_tip_frame, compute_tip_xy): New functions.
4276 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
4277 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
4278 and last_show_tip_args.
2fb0ce67 4279
50bf7673
ST
4280 * macgui.h [!MAC_OSX]: Include Gestalt.h.
4281 (Cursor, No_Cursor): New defines.
c8d09ad8 4282 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
4283 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
4284
4285 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
4286
4287 * macterm.c: Don't include Gestalt.h.
4288 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
4289 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
4290 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
4291 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
4292 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
4293 (construct_mouse_click, XTmouse_position)
4294 (x_scroll_bar_report_motion, x_calc_absolute_position)
4295 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
4296 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
4297 (note_mouse_movement): Clear the mouse face and reset the pointer
4298 shape when the pointer goes outside the frame without grabbing.
4299 (mac_front_window): New function.
4300 (mac_window_to_frame): New macro.
4301 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
4302 (do_window_activate, do_window_deactivate, do_app_resume)
4303 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
4304 (do_zoom_window, mac_do_receive_drag, XTread_socket)
4305 (mac_check_for_quit_char): Use mac_front_window and/or
4306 mac_window_to_frame.
4307 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
4308 scroll-bar click event.
4309 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 4310 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 4311 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 4312 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
4313 (do_window_update): Don't do anything if the updated window is the
4314 tooltip window.
4315 (do_mouse_moved): Handle mouse movement events here (previously in
4316 XTread_socket). Clear the mouse face if
4317 dpyinfo->mouse_face_hidden is set.
4318 (do_os_event, do_events): Remove (now in XTread_socket).
4319 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
4320 Loop until all the events in the queue are processed.
4321 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
4322 contents of do_os_event and do_events. Remove mouse movement
4323 handling (now in do_mouse_moved). Add the case where
4324 Vmouse_highlight has an integer value.
4325 (NewMacWindow): Remove.
4326 (make_mac_frame): Do what NewMacWindow previously did. Don't do
4327 excess initializations.
4328 (make_mac_terminal_frame): Previous initializations in
4329 make_mac_frame are moved here.
c8d09ad8
SM
4330 (mac_initialize_display_info):
4331 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
4332
4333 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
4334 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
4335
08fd1251
RS
43362004-05-29 Richard M. Stallman <rms@gnu.org>
4337
4338 * lisp.h (truncate_undo_list): Update decl.
4339
4340 * alloc.c (undo_outer_limit): New variable.
4341 (syms_of_alloc): Defvar it.
4342 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
4343
4344 * undo.c (truncate_undo_list): New arg LIMITSIZE.
4345
4346 * alloc.c (lisp_align_malloc): Check for base == 0
4347 regardless of HAVE_POSIX_MEMALIGN.
4348 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
4349
227ef0ff
SM
43502004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4351
4352 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
4353 (marker_blocks_pending_free): Remove.
4354 (Fgarbage_collect): Sweep after cleaning up undo-lists.
4355 Mark the undo lists after claning them up.
4356 Don't free block in marker_blocks_pending_free.
4357 (mark_buffer): Don't mark undo_list.
4358 (gc_sweep): Sweep hash-tables and strings first.
4359 Do free marker blocks that are empty.
4360
034a6113
SM
43612004-05-28 Jim Blandy <jimb@redhat.com>
4362
4363 * regex.c (print_partial_compiled_pattern): Add missing 'break'
4364 after 'case wordend'. For symbeg and symend, print to stderr,
4365 like the other cases.
4366
33594a8d
NF
43672004-05-28 Noah Friedman <friedman@splode.com>
4368
4369 * process.c (Fdelete_process): Do not call remove_process.
4370
ce50a847
SM
43712004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4372
4373 * alloc.c (struct backtrace): Remove.
4374 (Fgarbage_collect): Use the new mark_backtrace.
4375
4376 * eval.c (mark_backtrace): New function.
4377
4378 * minibuf.c (run_exit_minibuf_hook): New function.
4379 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
4380 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
4381
1e8dae36
KS
43822004-05-27 Kim F. Storm <storm@cua.dk>
4383
4384 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
4385 over display properties, e.g. images, that replace buffer text.
4386
846faa3b
KS
43872004-05-25 Kim F. Storm <storm@cua.dk>
4388
4389 * alloc.c (marker_blocks_pending_free): New var.
4390 (gc_sweep): Store free marker blocks on that list.
4391 (Fgarbage_collect): Free them after undo-list cleanup.
4392
4393 * process.c (wait_reading_process_input): Check connect_wait_mask
4394 before actually accepting connection in case it has already been
4395 accepted due to recursion.
4396
b6189c3b 43972004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 4398
ce50a847
SM
4399 * coding.c (Fset_safe_terminal_coding_system_internal):
4400 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 4401
71d5a208
RS
44022004-05-22 Richard M. Stallman <rms@gnu.org>
4403
4404 * alloc.c (Fmake_string): Doc fix.
4405
4406 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
4407 and the alist pairs too.
4408
4409 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
4410
4411 * emacs.c (main): Update copyright year.
4412
4413 * fileio.c (Fread_file_name): Expand DIR if not absolute.
4414
4415 * insdel.c (del_range_2, replace_range): Don't write an anchor
4416 if the gap is empty.
4417
4418 * xdisp.c (try_scrolling): If scroll-up-aggressively or
4419 scroll-down-aggressively is small but positive, put point
4420 near the screen edge.
4421
f63fd14e
JB
44222004-05-22 Juanma Barranquero <lektu@terra.es>
4423
4424 * keymap.c (Fdefine_key): Doc fix.
4425
4d12067c
KS
44262004-05-22 Kim F. Storm <storm@cua.dk>
4427
4428 * alloc.c (struct backtrace): Add debug_on_exit member.
4429 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
4430 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
4431 the removed cons cells.
4432 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
4433 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
4434 any cons cells pointing to unallocated stings.
4435 Do not lisp_free any marker blocks, as there may still be pointers
4436 to them from buffer undo lists at this stage of GC.
4437
4438 * keyboard.c (struct backtrace): Add debug_on_exit member.
4439 (Fcommand_execute): Clear it.
4440
931285e2
LT
44412004-05-20 Luc Teirlinck <teirllm@auburn.edu>
4442
4443 * intervals.c (lookup_char_property): Do not prematurely return nil.
4444
669fa600
SM
44452004-05-19 Jim Blandy <jimb@redhat.com>
4446
4447 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 4448 beginning and end of symbols.
4d12067c 4449
669fa600
SM
4450 * regex.c (enum syntaxcode): Add Ssymbol.
4451 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
4452 (re_opcode_t): New opcodes `symbeg' and `symend'.
4453 (print_partial_compiled_pattern): Print the new opcodes properly.
4454 (regex_compile): Parse the new operators.
ce50a847 4455 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
4456 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
4457 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
4458 (re_match_2_internal): Match symbeg and symend.
4459
4460 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
4461
0d8c2e5c
KS
44622004-05-19 Kim F. Storm <storm@cua.dk>
4463
4464 * .gdbinit (xsymbol): Fix last change.
4465
669fa600
SM
44662004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
4467
4468 * .gdbinit (xprintstr): New fun.
4469 (xstring, xprintsym): Use it.
4470
4471 * w32proc.c (create_child): Use INTMASK.
4472
4473 * alloc.c (Fgarbage_collect): Do all the marking before flushing
4474 unmarked elements of the undo list.
4475
9a6a4c40
DP
44762004-05-18 David Ponce <david@dponce.com>
4477
4478 * print.c (print): Reset print_depth before to call print_object.
4479
f3c4ec74
JR
44802004-05-18 Jason Rumney <jasonr@gnu.org>
4481
4482 * w32console.c: Prefix RIF functions with w32con_ to avoid
4483 namespace clash with functions in term.c and w32term.c.
4484
4485 * w32menu.c (add_menu_item, w32_menu_display_help)
4486 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
4487
0d8c2e5c 4488 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 4489
6be49c3a
EZ
44902004-05-18 Eli Zaretskii <eliz@gnu.org>
4491
4d0b9a0a
EZ
4492 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
4493
6be49c3a
EZ
4494 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
4495 with make_number.
4496 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
4497 with XINT.
4498
0bc90bba
KS
44992004-05-18 Kim F. Storm <storm@cua.dk>
4500
89d19988
KS
4501 * blockinput.h (INPUT_BLOCKED_P): New macros.
4502
4503 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
4504 (Ftop_level): Unblock input if blocked.
4505
0bc90bba
KS
4506 * buffer.h (GET_OVERLAYS_AT): New macro.
4507 * msdos.c (IT_note_mouse_highlight): Use it.
4508 * textprop.c (get_char_property_and_overlay): Use it.
4509 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
4510 * xfaces.c (face_at_buffer_position): Use it.
4511
4512 * print.c (print_object): Increase buf size.
4513
653bd0f6
JR
45142004-05-17 Jason Rumney <jasonr@gnu.org>
4515
4516 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
4517 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
4518 Lisp_Object using i member.
4519 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
4520 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
4521 consistently.
4522
4523 * w32proc.c (create_child): Use make_number instead of masking pid.
4524
4525 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
4526 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
4527 Use EQ to compare Lisp_Objects.
4528 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
4529
4530 * w32term.c (w32_num_mouse_buttons): Rename from
4531 Vw32_num_mouse_buttons and make it an int.
4532
4533 * w32.c (init_environment): Use it.
4534
4535 * w32fns.c (w32_wnd_proc): Likewise.
4536
4537 * w32proc.c (w32_pipe_read_delay): Rename from
4538 Vw32_pipe_read_delay and make it an int.
4539
4540 * w32.c (_sys_read_ahead): Use it.
4541
4542 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
4543
4544 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
4545
4546 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
4547 (key_event): Don't mix Lisp_Object and int.
4548
4549 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
4550
4551 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
4552 modifiers in language change event.
4553
54b53ba7
KS
45542004-05-17 Kim F. Storm <storm@cua.dk>
4555
4556 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
4557 Such objects may be freed markers which still exist on an undo list.
4558
6e86a75d
JB
45592004-05-16 Juanma Barranquero <lektu@terra.es>
4560
4561 * data.c (Fset_default): Make argument names match their use in
4562 docstring.
4563
fc80da24
AS
45642004-05-15 Andreas Schwab <schwab@suse.de>
4565
4566 * emacs.c (gdb_array_mark_flag): Define.
4567 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
4568
c1380aa6
EZ
45692004-05-15 Eli Zaretskii <eliz@gnu.org>
4570
4571 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
4572 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
4573 defined for the MS-DOS build.
4574
89458937
SM
45752004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4576
4577 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
4578
08020f9a
KH
45792004-05-14 Kenichi Handa <handa@m17n.org>
4580
4581 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
4582
a433994a
ST
45832004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4584
4585 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
4586 section to frame.c section.
4587 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 4588 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 4589
a433994a 4590 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 4591
a433994a 4592 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 4593
a433994a
ST
4594 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
4595 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
4596 (XTread_socket): Fix int/Lisp_Object mixup.
4597 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 4598
a433994a
ST
4599 * macterm.h (struct frame, struct face, struct image)
4600 (display_x_get_resource, Fx_display_color_p)
89458937
SM
4601 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
4602 Add prototypes.
a433994a 4603
b51a51b9
KS
46042004-05-14 Kim F. Storm <storm@cua.dk>
4605
4606 * process.c (wait_reading_process_input): Make reentrant.
4607 Make Available and Connecting non-static. Save and restore value
4608 of waiting_for_user_input_p.
4609
2bde1dd8
KS
46102004-05-13 Kim F. Storm <storm@cua.dk>
4611
4612 * keyboard.c (mark_kboards): Don't mark x and y members
4613 that are overloaded in selection request events.
4614
a267ab4d
SM
46152004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
4616
4617 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
4618
eb15ce9e
GM
46192004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
4620
4621 * window.c (Fdisplay_buffer, Fsplit_window)
4622 (split-height-threshold): Doc fix.
4623
7fc92635
JB
46242004-05-13 Juanma Barranquero <lektu@terra.es>
4625
4626 * xfaces.c (Ftty_supports_face_attributes_p)
4627 (Finternal_copy_lisp_face): Fix typo in docstring.
4628 (Finternal_get_lisp_face_attribute): Fix docstring.
4629
1ec2a572
JD
46302004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4631
4632 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
4633
ae9292e0
ST
46342004-05-11 Steven Tamm <steventamm@mac.com>
4635
4636 * macfns.c (Fx_create_frame): Default to using tool-bar by
4637 setting tool-bar-lines to 1 in default-frame-alist.
4638
46392004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
4640
4641 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
4642 (xpm_get_color_table_v, xpm_make_color_table_h)
4643 (xpm_put_color_table_h, xpm_get_color_table_h)
4644 (xpm_str_to_color_key, xpm_load_image, xpm_load)
4645 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 4646 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 4647
fe97e8df
ST
46482004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4649
a267ab4d 4650 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
4651 instead of FRAME_X_P
4652
b47e779e
KS
46532004-05-11 Kim F. Storm <storm@cua.dk>
4654
4655 * process.c (read_process_output): Grow decoding_buf when needed;
4656 this could cause a crash in allocate_string and compact_small_strings.
4657
cdc9b845
EZ
46582004-04-29 Jim Blandy <jimb@redhat.com>
4659
4660 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
4661 against proper opcode.
4662
aa7094ba
JB
46632004-05-10 Juanma Barranquero <lektu@terra.es>
4664
4665 * process.c (Fstart_process): Fix docstring.
4666
4667 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
4668 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
4669 (Fsplit_char, Fchar_charset): Make argument names match their use
4670 in docstring.
4671
e109331a
RS
46722004-05-10 Richard M. Stallman <rms@gnu.org>
4673
4674 * print.c (print_preprocess): Use being_printed, loop_count and
4675 halftail to detect overdeep nesting and cyclic cdr chains.
4676
9a28b921
AS
46772004-05-10 Andreas Schwab <schwab@suse.de>
4678
78819ebb 4679 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
4680
4681 * fileio.c (Frename_file): Remove extra argument in call to
4682 Fmake_symbolic_link.
4683
e2c02c1a
KS
46842004-05-10 Kim F. Storm <storm@cua.dk>
4685
4686 * xdisp.c (calc_line_height_property): Use string position when
4687 object is a string.
4688
cfe9d13e
KH
46892004-05-10 Kenichi Handa <handa@m17n.org>
4690
a57e8159
KH
4691 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
4692 inhibit-modification-hooks to t temporarily before calling
4693 Ferase_buffer.
4694
4695 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
4696 inhibit-modification-hooks to t temporarily before calling
4697 Ferase_buffer.
4698
4699 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
4700 inhibit-modification-hooks to t temporarily before calling
4701 Ferase_buffer.
4702
cfe9d13e
KH
4703 * fns.c (count_combining): Delete it.
4704 (concat): Don't check combining bytes.
4705
ceb96489
JR
47062004-05-09 Jason Rumney <jasonr@gnu.org>
4707
4708 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
4709 (globals_of_w32fns): Set it.
4710
b6189c3b 47112004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
4712
4713 * data.c (Fquo): Simplify.
4714
28712a21
JB
47152004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
4716
4717 * data.c (Fquo): If any argument is float, do the computation in
4718 floating point.
4719
0f0af7a8
JB
47202004-05-08 Juanma Barranquero <lektu@terra.es>
4721
88214ef6
JB
4722 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
4723 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
4724 Fix spelling of Emacs on docstring.
4725 (Fset_process_coding_system, Fprocess_coding_system)
4726 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
4727 Make argument names match their use in docstring.
4728 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
4729 Fix docstring.
4730
0f0af7a8
JB
4731 * editfns.c (Finsert_buffer_substring): Make argument names match their
4732 use in docstring.
4733
4734 * syntax.c (Fmodify_syntax_entry): Fix docstring.
4735
2a316a84
ST
47362004-05-07 Steven Tamm <steventamm@mac.com>
4737
4738 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
4739 around call to ReceiveEvent to avoid certain crashes.
4740
47412004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 4742
2a316a84
ST
4743 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
4744 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
4745 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
4746 Save/restore the current graphics port and device handle when
4747 drawing into an offscreen graphics world.
4748
4749 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
4750 (gif_load): Likewise.
4751
ab80314b
JB
47522004-05-07 Juanma Barranquero <lektu@terra.es>
4753
4754 * window.c (Fset_window_buffer): Fix docstring.
4755
70646bb5
TTN
47562004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
4757
4758 * emacs.c (main) [VMS]: Fix var ref.
4759
b6189c3b 47602004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
4761
4762 * data.c (Fsetq_default): Fix docstring.
4763
279d3293
JR
47642004-05-06 Jason Rumney <jasonr@gnu.org>
4765
4766 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4767 to avoid name clash.
4768
f72b5416
JD
47692004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4770
4771 * fileio.c (barf_or_query_if_file_exists): Use lstat.
4772 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 4773 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 4774
6ab66799
KS
47752004-05-04 Kim F. Storm <storm@cua.dk>
4776
4777 * xdisp.c (Qtotal): New var.
4778 (syms_of_xdisp): Intern and staticpro it.
4779 (calc_line_height_property): New arg total. Set it if
4780 line-spacing property has format (total . VALUE).
4781 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
4782 Handle total line-spacing property.
4783
ab2d724b
JD
47842004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4785
4786 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
4787 "under" scroll bar when size/position changes.
4788
238add5e
JR
47892004-05-03 Jason Rumney <jasonr@gnu.org>
4790
4791 * makefile.nt: Remove.
4792
1644f4e4
EZ
47932004-05-02 Eli Zaretskii <eliz@gnu.org>
4794
a267ab4d
SM
4795 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
4796 Avoid compiler warnings.
05fdbeb8 4797
1644f4e4
EZ
4798 * Makefile.in (region-cache.o): Depend on config.h.
4799
b6189c3b 48002004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
4801
4802 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
4803 with continuation lines, too.
4804
2b98b088
TTN
48052004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
4806
4807 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
4808
d9bf7950
SM
48092004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
4810
4811 * xdisp.c (calc_line_height_property): YAILOM (yet another
4812 int/Lisp_Object mixup).
4813
affa509c
EZ
48142004-05-01 Eli Zaretskii <eliz@gnu.org>
4815
4816 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
4817 undo bad effect of pack(4) in some versions of system headers.
4818
07c07cfe
JR
48192004-05-01 Jason Rumney <jasonr@gnu.org>
4820
4821 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
4822
e71caa4e
KS
48232004-04-30 Kim F. Storm <storm@cua.dk>
4824
4825 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 4826 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
4827
4828 * dispextern.h (struct it): Remove member use_default_face.
4829 Add members override_ascent, override_descent, override_boff.
4830
4831 * xdisp.c (init_iterator): Handle line-spacing float value.
4832 Initialize override_ascent member.
4833 (append_space_for_newline): Reset override_ascent.
4834 Remove use_default_face.
4835 (calc_line_height_property): New function to calculate value of
4836 line-height and line-spacing properties. Look at overlays, too.
4837 Set override_ascent, override_descent, override_boff members when
4838 using another face than the current face. Float values are now
4839 relative to the frame default font, by default; accept a cons
4840 of ratio and face name to specify value relative to a specific face.
4841 (x_produce_glyphs): Use calc_line_height_property.
4842 Use override_ascent etc. when set to handle different face heights.
4843 A negative line-spacing property value is interpreted as a total
4844 line height, rather than inter-line spacing.
4845 (note_mouse_highlight): Allocate room for 40 overlays initially.
4846
0fddae66
SM
48472004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4848
4849 * data.c (Fsubr_name): New fun.
4850 (syms_of_data): Defsubr it.
4851
712d23dc
KS
48522004-04-29 Kim F. Storm <storm@cua.dk>
4853
4854 * xdisp.c (null_glyph_slice): New var.
4855 (append_glyph, append_composite_glyph, append_stretch_glyph):
4856 Use it to initialize glyph slice.
4857
033ad8c6
SM
48582004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
4859
4860 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
4861 (on_hot_spot_p): Make sure we always return a value.
4862 (Flookup_image_map): Remove unused var ix and iy.
4863 (note_mode_line_or_margin_highlight): Remove unused var `image'.
4864
93397360
EZ
48652004-04-27 Eli Zaretskii <eliz@gnu.org>
4866
4867 * msdos.c (init_environment): If one of the TMP... environment
4868 variables is set to a drive letter without a trailing slash,
4869 append a slash.
4870
0c54865e
EZ
48712004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
4872
4873 * editfns.c (lisp_time_argument): Provide externally.
4874
4875 * fileio.c (Fset_file_times): New function.
4876 (syms_of_fileio): Intern and staticpro it.
4877
d3b111bd
KS
48782004-04-27 Kim F. Storm <storm@cua.dk>
4879
07dc1231
KS
4880 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
4881 header line strings.
4882
360fe9d2
KS
4883 * dispextern.h (struct it): New member use_default_face.
4884
d3b111bd
KS
4885 * xdisp.c (Qline_height): New variable.
4886 (syms_of_xdisp): Intern and staticpro it.
4887 (append_space_for_newline): Partially undo 2004-04-25 change;
4888 add default_face_p arg, and restore callers.
4889 Clear it->use_default_face after use.
4890 (x_produce_glyphs): Set default font for ascii char if
4891 it->use_default_font is set. Change line-spacing property to set
4892 just extra line spacing. Handle new line-height property.
4893
0448588b
AS
48942004-04-26 Andreas Schwab <schwab@suse.de>
4895
4896 * print.c (print_object): Print non-ascii characters in bool
4897 vector representation as octal escapes.
4898
4899 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4900 * print.c (print_object): Use it instead of BITS_PER_CHAR for
4901 bool vectors.
4902 * lread.c (read1): Likewise.
4903 * alloc.c (Fmake_bool_vector): Likewise.
4904 * data.c (Faref, Faset): Likewise.
4905 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4906 (mapcar1): Likewise.
d3b111bd 4907
536d6baa
ST
49082004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4909
4910 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4911
ae11577a
MB
49122004-04-26 Miles Bader <miles@gnu.org>
4913
4914 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4915
e198ba87
JB
49162004-04-26 Juanma Barranquero <lektu@terra.es>
4917
4918 * buffer.c (Fpop_to_buffer): Fix docstring.
4919
f3d5f92d 49202004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 4921
f3d5f92d
ST
4922 * lread.c (init_lread): Don't display missing lisp directory
4923 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 4924 may be built without correct installation path.
f3d5f92d 4925
03e35edc
KS
49262004-04-25 Kim F. Storm <storm@cua.dk>
4927
9ff3aa31
KS
4928 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4929
4930 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4931
03e35edc
KS
4932 * xdisp.c (append_space_for_newline): Rename from append_space.
4933 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
4934 (x_produce_glyphs): Handle line-spacing property on newline char.
4935 If value is t, adjust ascent and descent to fit current row height.
4936 If value is an integer or float, set extra_line_spacing to integer
4937 value, or to float value x current line height.
4938
f24814e0
KH
49392004-04-23 Kenichi Handa <handa@m17n.org>
4940
4941 * fontset.c (Finternal_char_font): If POSITION is nil, return
4942 font for displaying CH with the default face.
4943
d814862a
JB
49442004-04-23 Juanma Barranquero <lektu@terra.es>
4945
4946 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4947
063a45c5
SM
49482004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4949
4950 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
4951 Don't make assumptions about the relative place of i and val.
4952 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
4953
ae7ab2d3
KS
49542004-04-21 Kim F. Storm <storm@cua.dk>
4955
4956 * dispextern.h (struct glyph_slice): New struct.
4957 (struct glyph): New member slice.
4958 (GLYPH_SLICE_EQUAL_P): New macro.
4959 (GLYPH_EQUAL_P): Use it.
4960 (struct glyph_string): New member slice.
4961 (struct it_slice): New struct.
4962 (struct it): New member slice, add member to stack too.
4963 New member constrain_row_ascent_descent_p.
4964 (image_ascent): Add prototype.
4965
4966 * dispnew.c (buffer_posn_from_coords): Return full image width
4967 and height even for image slices (posn is relative to full image).
4968 (marginal_area_string): Adjust x0,y0 for image slice.
4969
4970 * image.c (image_ascent): Add slice arg; calculate ascent for
4971 image slice (or full image).
4972
4973 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
4974 (syms_of_keyboard): Defsubr them.
4975
4976 * lisp.h (pos_visible_p): Fix prototype.
4977
c62aec78 4978 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
4979 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4980 (x_draw_image_foreground, x_draw_image_relief)
4981 (x_draw_image_foreground_1, x_draw_image_glyph_string):
4982 Draw sliced images.
4983
4984 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
4985 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4986 (x_draw_image_foreground, x_draw_image_relief)
4987 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
4988 Draw sliced images.
4989
4990 * w32term.h (image_ascent): Remove prototype.
4991
4992 * window.c (Fpos_visible_in_window_p): Return pixel position if
4993 PARTIALLY arg is non-nil. Simplify. Doc fix.
4994 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
4995 to return/set vscroll in pixels.
4996
4997 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
4998
4999 * xdisp.c (Qslice): New variable.
5000 (syms_of_xdisp): Intern and staticpro it.
5001 (pos_visible_p): Return pixel position in new x and y args.
5002 (init_iterator): Reset it->slice info.
5003 (handle_display_prop): Parse (slice ...) property.
5004 (push_it, pop_it): Save/restore slice info.
5005 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
5006 force repositioning of tall row if window is vscrolled, as that
5007 would reset vscroll.
5008 (append_space): Set it->constrain_row_ascent_descent_p to avoid
5009 increasing row height if row is non-empty.
5010 (fill_image_glyph_string): Copy slice info.
5011 (take_vertical_position_into_account): Simplify.
5012 (produce_image_glyph): Handle iterator slice info, setup glyph
5013 slice info. Do not force minimum line height.
5014 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
5015 do not increase height (ascent/descent) of non-empty row when
5016 adding normal character glyph; instead reduce glyph ascent/descent
5017 appropriately; if row is higher than current glyph, adjust glyph
5018 descent/ascent to reposition glyph within the existing row.
5019 Likewise, when char is newline, only set ascent/descent if row is
5020 currently empty.
5021 (note_mouse_highlight): Handle hotspots with sliced image.
5022
5023 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
5024 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5025 (x_draw_image_foreground, x_draw_image_relief)
5026 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5027 Draw sliced images.
5028
5029 * xterm.h (image_ascent): Remove prototype.
5030
d58f8753
SM
50312004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5032
5033 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
5034
4ce2719d
JPW
50352004-04-20 John Paul Wallington <jpw@gnu.org>
5036
5037 * fns.c (Fassoc, Feql): Fix indentation.
5038
d58f8753 5039 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 5040
95f8c3b9
JPW
50412004-04-19 John Paul Wallington <jpw@gnu.org>
5042
5043 * fns.c (Feql): New function.
d58f8753 5044 (syms_of_fns): Defsubr it.
95f8c3b9 5045
b7e85537
JR
50462004-04-18 Jason Rumney <jasonr@gnu.org>
5047
5048 * w32select.c (Fw32_set_clipboard_data): Get sequence number
5049 after closing the clipboard.
5050
5a72efd4
LT
50512004-04-16 Luc Teirlinck <teirllm@auburn.edu>
5052
5053 * buffer.c (Fbuffer_base_buffer): Doc fix.
5054
20dc8583
KS
50552004-04-17 Kim F. Storm <storm@cua.dk>
5056
60962ec4
KS
5057 * keymap.c (Fkey_description): Add optional PREFIX arg.
5058 Combine prefix with KEYS to make up the full key sequence to describe.
5059 Correlate meta_prefix_char and following (simple) key to describe
5060 as meta modifier. All callers changed.
5061 (describe_map): Rename arg `keys' to `prefix'. Remove local
5062 `elt_prefix' var. Use Fkey_description with prefix instead of
5063 elt_prefix combined with Fsingle_key_description.
5064 (describe_vector): Declare static. Replace arg `elt_prefix' with
5065 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
5066 if !KEYMAP_P. Use Fkey_description with prefix instead of
5067 Fsingle_key_description.
5068
5069 * keymap.h (Fkey_description): Fix prototype.
5070 (describe_vector): Remove prototype.
5071
409368b9
KS
5072 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
5073
20dc8583
KS
5074 * image.c (PNG_BG_COLOR_SHIFT): Remove.
5075 (png_load): Fix calculation of transparent background color on X
5076 and W32 platforms.
5077
75c5501b
JB
50782004-04-16 Juanma Barranquero <lektu@terra.es>
5079
5080 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
5081 not too large before computing how much to scroll.
5082
da879ae8
SM
50832004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
5084
5085 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
5086
d01ca4a8
LT
50872004-04-14 Luc Teirlinck <teirllm@auburn.edu>
5088
5089 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
5090 Add hyperlink to Elisp manual to the docstring.
5091
572943b3
SM
50922004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
5093
5094 * callint.c (fix_command): Use XDCR.
5095
5e30a0fb
NR
50962004-04-14 Nick Roberts <nick@nick.uklinux.net>
5097
5098 * window.c (Fget_lru_window): Doc fix.
5099
a27ddfaf
KS
51002004-04-14 Kim F. Storm <storm@cua.dk>
5101
5102 * editfns.c (Fformat): Fix allocation size of precision array.
5103
5104 * dispnew.c (update_window): Only set changed_p if
5105 scrolling_window actually did scroll.
5106 (scrolling_window): Only return 1 if we actually did scroll.
5107
5108 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
5109 height to glyph height when cursor row is not fully visible.
5110 (make_cursor_line_fully_visible): Add FORCE_P arg to return
5111 failure in case row is higher than window. Callers changed.
5112 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
5113 Try to scroll partially visible, higher-than-window cursor row.
5114 (redisplay_window): Always try to scroll partially visible,
5115 higher-than-window cursor row - both initially and again with
5116 centering_position = 0.
5117 Clear desired matrix before retrying with centering_position = 0.
5118
da879ae8
SM
51192004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5120
5121 * syntax.c (scan_lists): Simplify backward string scan.
5122 Fix off-by-one boundary check for string and comment fences.
5123
5fc16e8e
SM
51242004-04-13 Joe Buehler <jbuehler@hekimian.com>
5125
5126 * sheap.c, unexcw.c: New files.
5127
c9aac8e6
LT
51282004-04-12 Luc Teirlinck <teirllm@auburn.edu>
5129
5130 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
5131 base buffer has been killed. Correct the error message if the
5132 base buffer does not exist.
5133
1e88a355
SM
51342004-04-12 Joe Buehler <jbuehler@hekimian.com>
5135
5136 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
5137 Cygwin itself. Add support for Xaw3d scrollbars.
5138
5139 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
5140
5141 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
5142
5143 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
5144 before Cygwin unexec.
5145
5146 * Makefile.in: Link changes for Cygwin unexec() support.
5147
8dbff9a0
AS
51482004-04-12 Andreas Schwab <schwab@suse.de>
5149
5150 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
5151
54dffe35
LT
51522004-04-11 Luc Teirlinck <teirllm@auburn.edu>
5153
5154 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
5155 IGNORE argument equals NAME. Doc fix.
5156
99a72bdf
MY
51572004-04-11 Masatake YAMATO <jet@gyve.org>
5158
1e88a355 5159 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
5160 empty if they are backwards.
5161
40899d7b
SM
51622004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5163
5164 * xfaces.c (face_color_supported_p): Fix compilation without X11.
5165
f8f853de
SM
51662004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
5167
5168 * doc.c (Fsnarf_documentation): Ignore new file name entries.
5169
c953fe1b
KS
51702004-04-06 Kim F. Storm <storm@cua.dk>
5171
661e85c1
KS
5172 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5173 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
5174
5175 * w32term.c (w32_read_socket): Set mouse_face_hidden after
5176 clearing highlight.
5177
5178 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5179
5180 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
5181 clearing highlight.
5182
c953fe1b
KS
5183 * indent.c (vmotion): Do not reserve one column for continuation
5184 marks on window frames.
5185
c1994268
EZ
51862004-04-04 Eli Zaretskii <eliz@gnu.org>
5187
5188 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
5189 from GCC.
5190
9f691b0d
SM
51912004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5192
5193 * .gdbinit-union: Remove.
5194
5195 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
5196 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
5197 ($nonvalbits): Remove.
5198 ($valmask): Set it by calling xreload to avoid redundancy.
5199
5200 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
5201 (gdb_emacs_intbits): Remove.
5202
7a8560d7
JD
52032004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5204
9f691b0d 5205 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 5206
3c8111fc
KH
52072004-03-30 Kenichi Handa <handa@m17n.org>
5208
5209 * editfns.c (Fformat): Fix initialization of the array info.
5210
48a0bce4
KS
52112004-03-30 Kim F. Storm <storm@cua.dk>
5212
5213 * xterm.c (x_mouse_click_focus_ignore_position): New var.
5214 (syms_of_xterm): DEFVAR_BOOL it.
5215 (ignore_next_mouse_click_timeout): New var.
5216 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
5217 Use it to filter mouse clicks following focus event.
5218
1cd0066c
KS
52192004-03-29 David Ponce <david@dponce.com>
5220
5221 * callint.c (Fcall_interactively): Fix last change.
5222
adb3b353
SM
52232004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5224
5225 * eval.c (Fcommandp): Simplify.
5226
5227 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
5228 Extend to handle all kinds of functions.
5229
5230 * lisp.h (Finteractive_form): Declare.
5231
5232 * callint.c (Fcall_interactively): Use it.
5233
6fc4c9c9
KS
52342004-03-26 Kim F. Storm <storm@cua.dk>
5235
5236 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
5237 to catch errors in calc_pixel_width_or_height during redisplay.
5238
abdb9b83
MY
52392004-03-26 Masatake YAMATO <jet@gyve.org>
5240
b17856dd 5241 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 5242
b17856dd 5243 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 5244
b17856dd 5245 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 5246
b17856dd 5247 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 5248
e8a84b6c
JD
52492004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5250
b17856dd 5251 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 5252
36a3fd05
RS
52532004-03-19 Richard M. Stallman <rms@gnu.org>
5254
5255 * s/sol2-6.h: Delete previous change.
5256
ab24c127
KS
52572004-03-19 Kim F. Storm <storm@cua.dk>
5258
5259 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
5260 to_charpos corresponds to newline in right fringe. Use local
5261 BUFFER_POS_REACHED_P macro.
5262
992126de
JD
52632004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5264
5265 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
5266 to compile on non-window system.
5267
45dbfc84
KS
52682004-03-19 Kim F. Storm <storm@cua.dk>
5269
5270 * dispextern.h (calc_pixel_width_or_height): Add prototype.
5271
5272 * image.c (Qcenter): Move to xdisp.c.
5273
5274 * xdisp.c (Qcenter): Declare here.
adb3b353 5275 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
5276 (handle_single_display_prop): Allow space display property on all
5277 platforms.
5278 (display_mode_line): Set mode_line_p before displaying line.
5279 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
5280 handling. Remove complex cases for fringes and scroll-bars.
5281 Add left, right, and center alignment positions. Add text (area)
5282 width/height. Return width or height for image specs.
5283 (produce_stretch_glyph): Improve handling of :align-to. Is now
5284 relative to left of text area by default, but other base offsets
5285 can be specified -- also for text lines.
5286
5287 * term.c (produce_glyphs): Handle IT_STRETCH.
5288 (produce_stretch_glyph): New function to handle space width and
5289 align-to display properties on non-window systems.
5290
37264101
SM
52912004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5292
5293 * fileio.c (Fread_file_name): Set completion-ignore-case for
5294 case-insensitive systems.
5295
73bc43da
MY
52962004-03-14 Masatake YAMATO <jet@gyve.org>
5297
5298 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
5299 when keymap and cursor are setup.
5300
9062aa89
ST
53012004-03-14 Steven Tamm <steventamm@mac.com>
5302
b17856dd 5303 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 5304
e4b1b5ab
KS
53052004-03-14 Kim F. Storm <storm@cua.dk>
5306
5307 * dispextern.h (x_find_image_file): Add prototype.
5308
5309 * image.c (x_find_image_file): Make extern.
5310
5311 * xfns.c (x_find_image_file): Remove prototype.
5312
a6eeaa81 53132004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 5314
37264101 5315 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 5316
37264101 5317 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 5318
e69cfac2
RS
53192004-03-12 Richard M. Stallman <rms@gnu.org>
5320
5321 * fns.c (internal_equal): New arg PROPS controls comparing
5322 text properties. All callers changed.
5323 (Fequal_including_properties): New function.
5324 (syms_of_fns): defsubr it.
5325
45034953
KS
53262004-03-12 Kim F. Storm <storm@cua.dk>
5327
5328 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 5329
45034953
KS
5330 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
5331 (image_background, image_background_transparent): Fix prototypes.
5332
37264101 5333 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
5334
5335 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
5336 (x_query_font, x_find_ccl_program, x_set_window_size)
5337 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5338 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5339 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
5340
5341 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
5342 (x_query_font, x_find_ccl_program, x_set_window_size)
5343 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5344 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5345 (mac_draw_line_to_pixmap): Add prototypes.
5346
53472004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5348
5349 * macterm.c (XTread_socket): Fix mouse click on tool bar.
5350
a12d3d87
KS
53512004-03-11 Kim F. Storm <storm@cua.dk>
5352
d3ab1cf1
KS
5353 * dispextern.h: Move image related prototypes from xfns.c section
5354 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
5355 HAVE_X_WINDOWS.
37264101 5356
37de9f51 5357 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 5358 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
5359 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
5360 (GTK_OBJ) [USE_GTK]: New declaration.
5361 (obj): Add $(GTK_OBJ) to list.
5362
5243c06a 53632004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 5364
5243c06a
ST
5365 * image.c [MAC_OSX]: Include sys/stat.h
5366
5367 * macfns.c (syms_of_macfns): Remove definitions of things now
5368 defined in image.c
5369
c0f97789
KS
53702004-03-11 Kim F. Storm <storm@cua.dk>
5371
5372 The following changes consolidates the identical/similar image
5373 support code previously found in xfns.c, w32fns.c, and macfns.c
5374 into a new file image.c.
5375
5376 * makefile.w32-in (OBJ1): Add image.o.
5377 ($(BLD)/image.$(O)): Add dependencies.
5378
5379 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
5380 (image.o): Add dependencies.
37264101 5381
c0f97789
KS
5382 * image.c: New file with consolidated image support code.
5383 (COLOR_TABLE_SUPPORT): New define to control whether
5384 color table support is available (X only).
5385 (Bitmap_Record): Common name for x_bitmap_record,
5386 w32_bitmap_record, and mac_bitmap_record.
5387 (XImagePtr): Common name for pointer to XImage or equivalent.
5388 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
5389 to XImagePtr on X+MAC, and to HDC on W32.
5390 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
5391 (NO_PIXMAP): Common name for "None" or equivalent.
5392 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
5393 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
5394 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
5395 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
5396 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
5397 (XDrawLine): Define on MAC for code sharing.
5398 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
5399 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
5400 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5401 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5402 (x_reference_bitmap, x_create_bitmap_from_data)
5403 (x_create_bitmap_from_file, x_destroy_bitmap)
5404 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5405 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5406 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5407 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5408 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5409 (define_image_type, lookup_image_type, valid_image_p)
5410 (image_error, enum image_value_type, struct image_keyword)
5411 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5412 (make_image, free_image, prepare_image_for_display, image_ascent)
5413 (four_corners_best, image_background, image_background_transparent)
5414 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5415 (make_image_cache, free_image_cache, clear_image_cache)
5416 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5417 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5418 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5419 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5420 (init_image_func_pointer, image_load_quartz2d)
5421 (struct ct_color, init_color_table, free_color_table)
5422 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5423 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5424 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5425 (x_disable_image, x_build_heuristic_mask)
5426 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5427 (TIFF support, GIF support, Ghostscript support): Consolidate image
5428 code from xfns.c, w32fns.c, and macfns.c.
5429 (syms_of_image): Consolidate image related symbol setup here.
5430 (init_image): Consolidate image related initializations here.
37264101 5431
c0f97789
KS
5432 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
5433 and init_image. Remove call to init_xfns.
5434
37264101
SM
5435 * macterm.h (struct mac_bitmap_record): Add file member.
5436 Not currently used, but simplifies code sharing.
c0f97789
KS
5437
5438 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5439 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5440 (x_reference_bitmap, x_create_bitmap_from_data)
5441 (x_create_bitmap_from_file, x_destroy_bitmap)
5442 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5443 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5444 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5445 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5446 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5447 (define_image_type, lookup_image_type, valid_image_p)
5448 (image_error, enum image_value_type, struct image_keyword)
5449 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5450 (make_image, free_image, prepare_image_for_display, image_ascent)
5451 (four_corners_best, image_background, image_background_transparent)
5452 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5453 (make_image_cache, free_image_cache, clear_image_cache)
5454 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5455 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5456 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5457 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5458 (init_image_func_pointer, image_load_quartz2d)
5459 (struct ct_color, init_color_table, free_color_table)
5460 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5461 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5462 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5463 (x_disable_image, x_build_heuristic_mask)
5464 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5465 (TIFF support, GIF support, Ghostscript support): Merge with image
5466 code from xfns.c and macfns.c into image.c.
5467 (syms_of_xfns): Move image related symbols to image.c.
5468 (init_external_image_libraries, init_xfns): Remove; initialization
5469 moved to init_image in image.c.
5470
5471 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5472 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5473 (x_reference_bitmap, x_create_bitmap_from_data)
5474 (x_create_bitmap_from_file, x_destroy_bitmap)
5475 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5476 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5477 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5478 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5479 (define_image_type, lookup_image_type, valid_image_p)
5480 (image_error, enum image_value_type, struct image_keyword)
5481 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5482 (make_image, free_image, prepare_image_for_display, image_ascent)
5483 (four_corners_best, image_background, image_background_transparent)
5484 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5485 (make_image_cache, free_image_cache, clear_image_cache)
5486 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5487 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5488 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5489 (struct ct_color, init_color_table, free_color_table)
5490 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5491 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5492 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5493 (x_disable_image, x_build_heuristic_mask)
5494 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5495 (TIFF support, GIF support, Ghostscript support): Merge with image
5496 code from xfns.c and macfns.c into image.c.
5497 (syms_of_xfns): Move image related symbols to image.c.
5498 (init_external_image_libraries, init_xfns): Remove; initialization
5499 moved to init_image in image.c.
5500
5501 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5502 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5503 (x_reference_bitmap, x_create_bitmap_from_data)
5504 (x_create_bitmap_from_file, x_destroy_bitmap)
5505 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5506 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5507 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5508 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5509 (define_image_type, lookup_image_type, valid_image_p)
5510 (image_error, enum image_value_type, struct image_keyword)
5511 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5512 (make_image, free_image, prepare_image_for_display, image_ascent)
5513 (four_corners_best, image_background, image_background_transparent)
5514 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5515 (make_image_cache, free_image_cache, clear_image_cache)
5516 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5517 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5518 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5519 (struct ct_color, init_color_table, free_color_table)
5520 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5521 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5522 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5523 (x_disable_image, x_build_heuristic_mask)
5524 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5525 (TIFF support, GIF support, Ghostscript support): Merge with
5526 w32fns.c and macfns.c image code into image.c.
5527 (syms_of_xfns): Move image related symbols to image.c.
5528 (init_xfns): Remove; initialization moved to init_image in image.c.
5529
5530 * lisp.h (syms_of_image, init_image): Add protoypes.
5531 (init_xfns): Remove prototype.
5532
5533 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5534 (x_reference_bitmap, x_create_bitmap_from_data)
5535 (x_create_bitmap_from_file, x_destroy_bitmap)
5536 (x_create_bitmap_mask): Move prototypes from dispextern.h.
5537 (gamma_correct) [MAC_OS]: Add prototype.
5538
5539 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5540 (x_reference_bitmap, x_create_bitmap_from_data)
5541 (x_create_bitmap_from_file, x_destroy_bitmap)
5542 (x_create_bitmap_mask): Move prototypes to dispextern.h.
5543
6eced09c
KH
55442004-03-09 Kenichi Handa <handa@etlken2>
5545
5546 * coding.c (decode_coding_emacs_mule): Handle insufficent source
5547 correctly.
5548
9a7e95f3
RS
55492004-03-04 Richard M. Stallman <rms@gnu.org>
5550
04a6e76b
RS
5551 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
5552
9a7e95f3
RS
5553 * window.c (Fdisplay_buffer): Doc fix.
5554
5555 * buffer.c (Fpop_to_buffer): Doc fix.
5556
6c2488df
KS
55572004-03-03 Kim F. Storm <storm@cua.dk>
5558
5559 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
5560
d8d95bc7
SM
55612004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
5562
5563 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
5564
357589bf
RS
55652004-03-02 Richard M. Stallman <rms@gnu.org>
5566
5567 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
5568
409949b5
KH
55692004-03-02 Kenichi Handa <handa@m17n.org>
5570
5571 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
5572
d24bc50f
KS
55732004-03-02 Kim F. Storm <storm@cua.dk>
5574
5575 * window.h (struct window): New member overlay_arrow_bitmap.
5576
5577 * window.c (make_window): Initialize overlay_arrow_bitmap.
5578
5579 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
5580 implement and integrate multiple overlay arrows with redisplay.
5581 (syms_of_xdisp): DEFVAR_LISP and initialize it.
5582 (last_arrow_position, last_arrow_string): Replace by properties.
5583 (Qlast_arrow_position, Qlast_arrow_string)
5584 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
5585 (syms_of_xdisp): Intern and staticpro them.
5586 (overlay_arrow_string_or_property, update_overlay_arrows)
5587 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
5588 (overlay_arrow_at_row): New functions for multiple overlay arrows.
5589 (redisplay_internal): Use them instead of directly accessing
5590 Voverlay_arrow_position etc. for multiple overlay arrows.
5591 (mark_window_display_accurate): Use update_overlay_arrows.
5592 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
5593 (try_window_id): Use overlay_arrows_changed_p.
5594 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
5595 (display_line): Use overlay_arrow_at_row to check multiple
5596 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 5597 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
5598 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
5599 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
5600
5601 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
5602 (update_window_fringes): Remove unused code.
5603
c1464661
JR
56042004-03-01 Jason Rumney <jasonr@gnu.org>
5605
5606 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
5607
a64387ee
JB
56082004-03-01 Juanma Barranquero <lektu@terra.es>
5609
5610 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
5611
5612 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
5613
334faa08
JD
56142004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5615
5616 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
5617 how many colors can be displayed.
5618
bb62616f
KH
56192004-03-01 Kenichi Handa <handa@m17n.org>
5620
5621 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
5622 correctly.
5623
0fd16104
KS
56242004-02-28 Kim F. Storm <storm@cua.dk>
5625
5626 * dispnew.c (update_window): Update header line also if there are
5627 no other changes in window (move code after set_cursor label).
5628
5629 * lisp.h (mark_window_display_accurate): Remove prototype.
5630
5631 * window.c (window_loop, Fforce_window_update): Force mode line
5632 updates by setting prevent_redisplay_optimizations_p and
5633 update_mode_lines.
5634
b59dd9c8
JD
56352004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5636
d8d95bc7 5637 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
5638
5639 * xterm.c (x_calc_absolute_position): Call x_real_positions
5640 to get WM window sizes and use those to calculate position.
d8d95bc7 5641 (x_set_offset): Remove code commented out.
b59dd9c8 5642
a874691c
MB
56432004-02-28 Miles Bader <miles@gnu.org>
5644
5645 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
5646
3e0c6482
KS
56472004-02-28 Kim F. Storm <storm@cua.dk>
5648
5649 * keyboard.c (kbd_buffer_store_event_hold): New function to store
5650 an event into kbd fifo, but with special handling of quit event;
5651 a quit event is saved for later, and further events are discarded
5652 until the saved quit event has been processed.
5653 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
5654 (gen_help_event): Store help event in kbd fifo.
5655 (NREAD_INPUT_EVENTS): Remove.
5656 (read_avail_input): Adapt to new read_socket_hook interface.
5657 Remove allocation and initialization of local input_event buffer,
5658 as read_socket_hook stores events directly in fifo. Allocate and
5659 initialize local hold_quit event to handle postponed quit event
5660 (and store it if set by kbd_buffer_store_event_hold).
5661
5662 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
5663 (gen_help_event): Fix prototype.
5664
a64387ee 5665 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 5666 numcharsp args. Add hold_quit arg.
f63fd14e 5667 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
5668 directly in fifo using kbd_buffer_store_event_hold.
5669
5670 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
5671 (read_input_waiting): Adapt to new read_socket_hook interface.
5672 Remove allocation and initialization of local input_event buffer,
5673 as read_socket_hook stores events directly in fifo. Allocate and
5674 initialize local hold_quit event to handle postponed quit event
5675 (and store it if set by kbd_buffer_store_event_hold).
5676
a64387ee 5677 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
5678
5679 * termhooks.h (read_socket_hook): Fix prototype.
5680
5681 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
5682 numcharsp args. Add hold_quit arg.
f63fd14e 5683 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
5684 directly in fifo using kbd_buffer_store_event_hold.
5685
5686 * w32inevt.h (w32_console_mouse_position): Fix prototype.
5687
5688 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
5689 Add hold_quit arg. Rework to use just one, local, inev
5690 input_event. Store inev directly in fifo using
3e0c6482
KS
5691 kbd_buffer_store_event_hold. Update count in one place.
5692 Postpone call to gen_help_event until inev is stored; use new
5693 local do_help for this.
5694 Remove local emacs_event in handing of ButtonPress event; just use
5695 inev instead (so no reason to copy it later).
5696
5697 * xsmfns.c (x_session_check_input): Remove numchars arg.
5698
d8d95bc7
SM
5699 * xterm.c (x_focus_changed, x_detect_focus_change):
5700 Remove numchars arg. Always store event into bufp arg.
5701 Return nothing. Callers changed accordingly.
3e0c6482
KS
5702 (glyph_rect): Simplify.
5703 (STORE_KEYSYM_FOR_DEBUG): New macro.
5704 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
5705 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
5706 (current_hold_quit) [USE_GTK]: Add.
5707 (event_handler_gdk): Adapt to new handle_one_xevent.
5708 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
5709 Add hold_quit arg. Rework to use just one, local, inev
5710 input_event. Store inev directly in fifo using
3e0c6482
KS
5711 kbd_buffer_store_event_hold. Update count in one place.
5712 Postpone call to gen_help_event until inev is stored; use new
5713 local do_help for this.
5714 Simplify handling of keysyms (consolidate common code). Fix bug
5715 where count was updated with nchars instead of nbytes.
5716 Remove local emacs_event in handing of ButtonPress event; just use
5717 inev instead (so no reason to copy it later).
5718 Remove `out' label. Rename label `ret' to `done'; add various
5719 `goto done' to clarify code flow in deeply nested blocks.
5720 (x_dispatch_event): Simplify as handle_one_xevent now calls
5721 kbd_buffer_store_event itself.
f63fd14e 5722 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
5723 arg. Call handle_one_xevent with new arglist. Store event from
5724 x_session_check_input in fifo.
5725 [USE_GTK]: Setup current_hold_quit.
5726 Decrement handling_signal before unblocking input.
5727 (x_initialize) [USE_GTK]: Initialize current_count.
5728
5729 * xterm.h (x_session_check_input): Fix prototype.
5730
e3564461 57312004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 5732
d8d95bc7 5733 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 5734
e3564461
ST
5735 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
5736 macgui.h).
a64387ee 5737
e3564461 5738 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 5739
e3564461
ST
5740 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
5741 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
5742 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
5743 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
5744 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
5745 (Bitmap): Remove typedef.
5746 (Pixmap): Change int to GWorldPtr.
5747
d8d95bc7 5748 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 5749
d8d95bc7
SM
5750 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5751 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
5752 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
5753 long representation.
5754 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
5755 colors used for masks.
5756 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 5757
e3564461
ST
5758 * macfns.c: Include sys/types.h and sys/stat.h.
5759 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
5760 Include QuickTime/QuickTime.h.
5761 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5762 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
5763 functions defined in macterm.c.
5764 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
5765 (ZPixmap): New #define for compatibility with xfns.c.
5766 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5767 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
5768 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
5769 New functions.
e3564461 5770 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
5771 (x_destroy_x_image, unwind_create_frame, x_disable_image)
5772 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
5773 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
5774 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
5775 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
5776 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
5777 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
5778 long mixup.
5779 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
5780 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
5781 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
5782 (x_set_cursor_type, Fxw_color_values, valid_image_p)
5783 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
5784 (x_alloc_image_color, clear_image_cache, lookup_image)
5785 (x_find_image_file, xbm_read_bitmap_file_data)
5786 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
5787 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
5788 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
5789 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
5790 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 5791 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
5792 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
5793 #if 0.
5794 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
5795 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
5796 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
5797 New functions (from xfns.c).
e3564461
ST
5798 (Fx_create_frame): Record unwind_create_frame.
5799 (Fxw_display_color_p): Use dpyinfo->color_p.
5800 (Fx_display_grayscale_p, Fx_display_planes): Don't use
5801 dpyinfo->n_cbits.
5802 (Fx_display_color_cells): Use dpyinfo->n_planes;
5803 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
5804 (Qheuristic, cross_disabled_images, emboss_matrix)
5805 (laplace_matrix): New variables (from xfns.c).
5806 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
5807 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
5808 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
5809 (image_background_transparent): New function (from xfns.c).
5810 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5811 (image_load_quicktime): Add declaration.
5812 [MAC_OSX] (image_load_quartz2d): Likewise.
5813 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
5814 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 5815 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
5816 (xbm_load_image_from_file, x_laplace_read_row)
5817 (x_laplace_write_row, pbm_read_file): Remove functions.
5818 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
5819 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
5820 (colors_in_color_table): Sync with xfns.c (although not used).
5821 (lookup_rgb_color): Don't lookup color table. Just do gamma
5822 correction.
5823 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
5824 (x_disable_image): New function (from xfns.c).
5825 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5826 (x_build_heuristic_mask): Sync with xfns.c.
5827 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5828 (HAVE_PBM): Remove #ifdef.
5829 (pbm_load): Sync with xfns.c. Set img->width and img->height
5830 before IMAGE_BACKGROUND.
d8d95bc7 5831 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
5832 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
5833 Don't enclose with #if HAVE_PNG.
5834 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
5835 symbol _CGImageCreateWithPNGDataProvider is defined.
5836 Otherwise use image_load_quicktime.
e3564461 5837 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
5838 [HAVE_PNG] (png_load): Sync with xfns.c.
5839 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
5840 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
5841 HAVE_JPEG.
5842 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
5843 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
5844 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
5845 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
5846 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
5847 (tiff_image_p, tiff_load): Don't enclose declarations with #if
5848 HAVE_TIFF.
5849 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
5850 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
5851 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
5852 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
5853 New functions (from xfns.c).
e3564461 5854 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 5855 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
5856 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
5857 Don't enclose with #if HAVE_GIF.
5858 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
5859 animated gif. Otherwise use image_load_quicktime.
5860 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
5861 gif_DrawText to avoid conflict with QuickdrawText.h.
5862 [HAVE_GIF] (gif_load): Sync with xfns.c.
5863 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
5864 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
5865 Ghostscript is not supported yet).
5866 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
5867 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
5868 cross_disabled_images (from xfns.c). Remove #if 0 for supported
5869 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5870 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
5871 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
5872 HAVE_PNG. Call EnterMovies to support animated gifs.
5873 Call init_image_func_pointer to bind a symbol
e3564461 5874 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 5875
d8d95bc7 5876 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
5877 (x_draw_bar_cursor): Sync declaration with xterm.c.
5878 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
5879 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
5880 graphics).
5881 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
5882 (mac_draw_line_to_pixmap, XCreatePixmap)
5883 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
5884 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5885 New functions.
5886 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5887 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5888 Cast bits to char *.
e3564461
ST
5889 (reflect_byte): New function (from w32fns.c).
5890 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5891 due to byte alignment.
d8d95bc7
SM
5892 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5893 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
5894 (XSetForeground): Remove static (now used in macfns.c).
5895 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5896 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5897 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5898 (x_draw_glyph_string_box, x_draw_image_foreground)
5899 (x_draw_image_foreground_1, x_draw_image_glyph_string)
5900 (x_draw_stretch_glyph_string, x_draw_glyph_string)
5901 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5902 Sync with xterm.c.
5903 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
5904 than the xterm.c version when a strictly horizontal or vertical
5905 line is drawn.
5906 (XTset_terminal_window): Add static.
5907 (x_make_frame_visible): Add UNBLOCK_INPUT.
5908 (x_free_frame_resources): New funcion (from xterm.c).
5909 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5910 occurs in tool bar area.
d8d95bc7
SM
5911 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5912 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
5913 Initialize image cache.
5914 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5915 Enclose unused functions with #if 0.
5916 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5917 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 5918 from a mac font name to an XLFD font name according to its script code.
e3564461 5919 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 5920 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
5921 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5922 whose name starts with `.'.
5923 (init_font_name_table): Use decode_mac_font_name. Add both
5924 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5925 of a font is smJapanese.
5926 (mac_do_list_fonts): New function to list fonts that match a given
5927 pattern.
5928 (x_list_fonts, XLoadQueryFont): Use it.
5929 (XLoadQueryFont): Set rbearing field for each variable width
5930 character to avoid needless redraw.
5931 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5932
446f5f3d
KS
59332004-02-26 Kim F. Storm <storm@cua.dk>
5934
af617d0f
KS
5935 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5936 as read_socket_hook handler on X aborts if buffer is too small
5937 and W32 handler doesn't always check buffer limit.
5938
446f5f3d
KS
5939 * xdisp.c (handle_single_display_prop): Handle left-fringe and
5940 right-fringe similar to a display margin image. Specifically,
5941 the characters having the fringe prop are no longer shown, and
5942 we use IT_IMAGE/next_element_from_image with image_id = -1 to
5943 do this. Set fringe bitmap face_id in it->face_id.
5944 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5945 still realize it->face (i.e. the fringe bitmap face).
5946
7d8a0b55
MB
59472004-02-25 Miles Bader <miles@gnu.org>
5948
5949 * xdisp.c (check_it): Check string/string_pos consistency.
5950 (init_iterator): Initialize string-related fields properly.
5951
59522004-02-11 Miles Bader <miles@gnu.org>
5953
5954 * xdisp.c (produce_image_glyph): Force negative descents to zero.
5955
59562004-02-10 Miles Bader <miles@gnu.org>
5957
5958 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
5959 BLOCK_INPUT can be nested, so it doesn't make much sense.
5960
a64387ee 59612004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
5962
5963 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
5964 (xbm_read_bitmap_data): Use unsigned char for image data.
5965
92f5fba2
LT
59662004-02-23 Luc Teirlinck <teirllm@auburn.edu>
5967
5968 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
5969
8565fb3d
JR
59702004-02-22 Jason Rumney <jasonr@gnu.org>
5971
5972 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
5973 correctly over other bitmaps.
5974
a6eeaa81 59752004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
5976
5977 * emacs.c (USAGE1): Split into two halves.
5978 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
5979 (USAGE3): Rename from USAGE2.
5980 (USAGE4): Rename from USAGE3.
f8125c39 5981
4effffca
EZ
59822004-02-21 Juri Linkov <juri@jurta.org>
5983
5984 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
5985 Fix --multibyte. Move --help, --version to USAGE2. Add alias
5986 --file. Fix -f, -l. Sort options. Untabify.
5987 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
5988
923c1e6f
LT
59892004-02-19 Luc Teirlinck <teirllm@auburn.edu>
5990
5991 * category.c (Fdefine_category, Fcategory_docstring)
5992 (Fget_unused_category, Fset_category_table)
5993 (Fcategory_set_mnemonics): Doc fixes.
5994
b0e225fd
KS
59952004-02-20 Kim F. Storm <storm@cua.dk>
5996
5997 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
5998 The following changes are relative to the 2004-01-21 revision.
5999 (NREAD_INPUT_EVENTS): Define as max number of input events to read
6000 in one call to read_socket_hook. Value is 8.
6001 (read_avail_input): Separate and rework handling of read_socket_hook
6002 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
6003 in read_socket_hook case, and repeat if full buffer is read.
6004 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
6005 In non-read_socket_hook case, just use a single input_event, and
6006 call kbd_buffer_store_event on the fly for each character.
6007
b15aa9f9
SM
60082004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6009
6010 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
6011 Remove unused `gu' alternative.
6012
83c9aa95
AS
60132004-02-19 Andreas Schwab <schwab@suse.de>
6014
6015 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
6016 warning.
6017
cc808173
KS
60182004-02-18 Kim F. Storm <storm@cua.dk>
6019
6020 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
6021 Fix last change.
6022
ab90a54d
KS
60232004-02-17 Kim F. Storm <storm@cua.dk>
6024
b26f249f
KS
6025 * xdisp.c (fast_find_position): Fix return value of new version;
6026 it was inverted compared to the 21.1 version.
6027 (get_window_cursor_type): Don't look at glyph if NULL.
6028 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 6029
ab90a54d
KS
6030 * keyboard.c: Rework previous change; it didn't consider that the
6031 buf array was allocated on the stack.
6032 (prev_read): Remove variable.
6033 (read_avail_input_buf): New static event buffer array.
b9568dfc 6034 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 6035 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
6036 Use in_read_avail_input to handle re-entrance; when re-entered,
6037 fully initialize and use tmp_buf array instead of read_avail_input_buf.
6038 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
6039 is always cleared on entry. To ensure that, we clear (just) the
6040 entries that were used before we return.
6041 (init_keyboard): Initialize read_avail_input_buf here.
6042
b6189c3b 60432004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
6044
6045 * cmds.c (Fend_of_line): Doc fix.
6046
7b5368c1
EZ
60472004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
6048
6049 * keyboard.c (prev_read): New static variable.
6050 (read_avail_input): Use it to zero out only those slots in buf[]
6051 that were used last time we were called.
6052
a6eeaa81 60532004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
6054
6055 * Makefile.in (obj): Move fringe.o from here...
6056 (XOBJ, MAC_OBJ): ...to here.
6057
159c348e
SE
60582004-02-16 Stephen Eglen <stephen@gnu.org>
6059
6060 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
6061
d2f14999
SM
60622004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
6063
b15aa9f9
SM
6064 * data.c (Fbyteorder):
6065 * fringe.c (Fdefine_fringe_bitmap):
6066 * xdisp.c (handle_single_display_prop):
d2f14999
SM
6067 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
6068
8d50508a
JR
60692004-02-16 Jason Rumney <jasonr@gnu.org>
6070
6071 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
6072
dd4497dc
ST
60732004-02-15 Steven Tamm <steventamm@mac.com>
6074
6075 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
6076 controlling emulation of a three button mouse with option and
6077 command keys.
6078 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 6079 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 6080
c9159cb3
KS
60812004-02-15 Kim F. Storm <storm@cua.dk>
6082
2cc52658
KS
6083 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
6084
c9159cb3
KS
6085 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
6086 Perform byte-swapping.
6087
12fde2dc
KS
60882004-02-14 Kim F. Storm <storm@cua.dk>
6089
6090 * dispextern.h (struct draw_fringe_bitmap_params): Change member
6091 bits from char to short to facilitate wider bitmaps.
6092 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
6093 member.
6094
6095 * fringe.c (struct fringe_bitmap): Change member bits from char to
6096 short to facilitate 16 bits wide bitmaps. Modify all standard
6097 bitmaps accordingly.
6098 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
6099 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
6100 (draw_fringe_bitmap): Ditto.
6101 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
6102 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
6103 handle up to 16 bits wide bitmaps.
6104 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 6105 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
6106
6107 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
6108 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
6109 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
6110
6111 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
6112 so it is no longer necessary to expand them here.
6113
6114 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
6115
9d7271e8
KS
61162004-02-12 Kim F. Storm <storm@cua.dk>
6117
6118 * window.c (Fwindow_fringes): Doc fix.
6119
706c1e4f
JD
61202004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6121
6122 * xselect.c (x_get_foreign_selection): Add new optional parameter
6123 time_stamp.
6124 (Fx_get_selection_internal): Ditto, pass time_stamp to
6125 x_get_foreign_selection.
6126
6127 * data.c (Fbyteorder): New function.
6128
c2d12b5d
JD
61292004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6130
6131 * atimer.c: Move include stdio.h to same place as in other files.
6132
6133 * region-cache.c: Ditto.
6134
6135 * sysdep.c: Ditto.
6136
6137 * xfaces.c: Ditto.
6138
4c1947b9
SS
61392004-02-09 Sam Steingold <sds@gnu.org>
6140
89458937 6141 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 6142
82722af3
KS
61432004-02-09 Kim F. Storm <storm@cua.dk>
6144
6145 * fringe.c: New file. Move original fringe related declarations
6146 and code from dispextern.h and xdisp.c here.
6147 Rework code to support user defined fringe bitmaps, redefining
6148 standard bitmaps, ability to overlay user defined bitmap with
6149 overlay arrow bitmap, and add faces to bitmaps.
6150 (Voverflow_newline_into_fringe): Declare here.
6151 (enum fringe_bitmap_align): New enum.
6152 (..._bits): All bitmaps are now defined without bitswapping; that
6153 is now done in init_fringe_once (if necessary).
6154 (standard_bitmaps): New array with specifications for the
6155 standard fringe bitmaps.
6156 (fringe_faces): New array.
6157 (valid_fringe_bitmap_id_p): New function.
6158 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
6159 (draw_fringe_bitmap): New function which draws fringe bitmap,
6160 possibly overlaying bitmap with cursor in right fringe or the
6161 overlay arrow in the left fringe.
6162 (update_window_fringes): Do not handle overlay arrow here.
6163 Compare and copy fringe bitmap faces.
6164 (init_fringe_bitmap): New function.
6165 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
6166 define and destroy user defined fringe bitmaps.
6167 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
6168 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
6169 (syms_of_fringe): New function. Defsubr new DEFUNs.
6170 DEFVAR_LISP Voverflow_newline_into_fringe.
6171 (init_fringe_once, init_fringe): New functions.
6172 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 6173
82722af3
KS
6174 * Makefile.in (obj): Add fringe.o.
6175 (fringe.o): New dependencies.
6176
6177 * dispextern.h (FRINGE_ID_BITS): New definition for number of
6178 bits allocated to hold a fringe number. Increase number of bits
6179 from 4 to 8 to allow user defined fringe bitmaps.
6180 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
6181 left_user_fringe_face_id, right_user_fringe_bitmap,
6182 right_user_fringe_face_id.
6183 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
6184 Move to new file fringe.c.
6185 (MAX_FRINGE_BITMAPS): Define here.
6186 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
6187 and overlay_p. Change member which to int.
6188 (struct redisplay_interface): New members define_fringe_bitmap
6189 and destroy_fringe_bitmap.
6190 (valid_fringe_bitmap_id_p): Add prototype.
6191 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
6192
6193 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
6194 arrows.
6195 (update_frame): Do flush_display if force_flush_display_p to
6196 ensure display (specifically fringes) are updated in a timely
6197 manner when resizing the frame by dragging the mouse.
6198 (update_window_line): Update row if overlay arrow changed.
6199 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
6200 or overlay arrow changed.
6201
6202 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
6203 syms_of_fringe, and init_fringe.
6204
6205 * frame.h (struct frame): New member force_flush_display_p.
6206
6207 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
6208 Add prototypes.
6209
a3993cc8 6210 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 6211 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
6212 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
6213 Use cursor color for displaying cursor in fringe.
82722af3
KS
6214 (x_redisplay_interface): Add null handlers for
6215 define_fringe_bitmap and destroy_fringe_bitmap functions.
6216
6217 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
6218 xterm.c to handle overlayed fringe bitmaps and to use cursor color
6219 for displaying cursor in fringe.
6220 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
6221 specific functions to define and destroy fringe bitmaps in fringe_bmp.
6222 (w32_redisplay_interface): Add them to redisplay_interface.
6223 (w32_term_init): Call w32_init_fringe instead of explicitly
6224 defining fringe bitmaps in fringe_bmp array.
6225 (x_delete_display): Call w32_reset_fringes instead of explicitly
6226 destroying fringe bitmaps in fringe_bmp array.
6227
6228 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
6229 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
6230 (continued_bits, continuation_bits, ov_bits, first_line_bits)
6231 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
6232 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
6233 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
6234 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
6235 Move fringe handling vars and code to new file fringe.c.
6236 (handle_display_prop): Handle left-fringe and right-fringe
6237 display properties; store user fringe bitmaps in iterator.
6238 (move_it_in_display_line_to): Handle cursor in fringe at eob.
6239 (clear_garbaged_frames): Set force_flush_display_p if resized.
6240 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
6241 (display_line): Handle cursor in fringe at eob.
6242 (display_line): Set row user fringe bitmaps from iterator.
6243
6244 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
6245 Use cursor color for displaying cursor in fringe.
6246 (x_redisplay_interface): Add null handlers for
6247 define_fringe_bitmap and destroy_fringe_bitmap functions.
6248
030400eb
JD
62492004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6250
6251 * macfns.c (Fx_change_window_property): Make doc string and
6252 parameters same as for X version.
6253
6254 * w32fns.c (Fx_change_window_property): Ditto.
6255
3af55251
KS
62562004-02-07 Kim F. Storm <storm@cua.dk>
6257
ec110e9e
KS
6258 * xdisp.c (hscroll_window_tree): Position cursor near to right
6259 margin in hscrolled window when jumping to end of line (rather
6260 than centering cursor).
6261
3af55251
KS
6262 * process.c (wait_reading_process_input): Don't do adaptive read
6263 buffering if waiting for a specific process.
6264
b0c138ce
LT
62652004-02-05 Luc Teirlinck <teirllm@auburn.edu>
6266
6267 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
6268 (Fread_minibuffer, Feval_minibuffer)
6269 (Fread_string, Fread_no_blanks_input)
6270 (Fcompleting_read): Doc fixes.
6271 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
6272 completion-regexp-list. Define Qcase_fold_search and staticpro it.
6273 (read_minibuf): Fix initial comment.
6274 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 6275 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
6276 checking completion-regexp-list.
6277 (Fdisplay_completion_list): Make it handle arguments that are
6278 symbols. Doc fix.
6279
9676f5ad 62802004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 6281
9676f5ad 6282 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 6283
9676f5ad
JD
6284 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
6285 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 6286 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 6287 format. Remove unused variable cons.
5b698285
JD
6288
6289 * xselect.c: Include stdio,h.
6290
fc1d15f6
KH
62912004-02-05 Kenichi Handa <handa@m17n.org>
6292
ebaff4af
KH
6293 * fns.c (Fset_char_table_range): Fix previous change.
6294
fc1d15f6
KH
6295 * buffer.c (Fset_buffer_multibyte): Fix docstring.
6296
9676f5ad
JD
62972004-02-04 Luc Teirlinck <teirllm@auburn.edu>
6298
6299 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
6300
da75761f
SM
63012004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
6302
6303 * keymap.c (Vmouse_events): Rename from Vmenu_events.
6304 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
6305
13c5d120
KH
63062004-02-04 Kenichi Handa <handa@m17n.org>
6307
6308 * fns.c (Fset_char_table_range): Handle charsets ascii,
6309 eight-bit-control, and eight-bit-graphic correctly.
6310
2883d842
JR
63112004-02-03 Jason Rumney <jasonr@gnu.org>
6312
6313 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
6314
6315 * w32fns.c (x_to_w32_font): Likewise.
6316
69eff41f
JD
63172004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6318
6319 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
6320 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
6321
6322 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
6323 ClientMessages.
6324
6325 * xselect.c: Include termhooks.h and X11/Xproto.h
6326 (x_check_property_data, x_fill_property_data)
6327 (x_property_data_to_lisp, mouse_position_for_drop)
6328 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 6329 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
6330 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
6331
da75761f 6332 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
6333 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
6334 OUTER_P.
6335 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
6336 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
6337 if vector_ret_p is true.
6338 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 6339
a6eeaa81 63402004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
6341
6342 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
6343 basename of FILE relative to it, not FILE itself.
6344
09721b31
KH
63452004-02-02 Kenichi Handa <handa@m17n.org>
6346
6347 * coding.c (coding_restore_composition): Check invalid
6348 composition data more rigidly.
6349
eb996101
LT
63502004-01-30 Luc Teirlinck <teirllm@auburn.edu>
6351
6352 * fileio.c (Fread_file_name_internal): Correctly handle the case
6353 where insert-default-directory is nil.
6354 (Fread_file_name): Always return an empty string if the user exits
6355 with an empty minibuffer. Adapt the docstring accordingly.
6356 (syms_of_fileio): Adapt the docstring of insert-default-directory
6357 to the change in Fread_file_name.
6358
a6eeaa81 63592004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
6360
6361 * alloca.c [!alloca]: Fix the prototype for xfree.
6362
13f52ed8
KH
63632004-01-29 Kenichi Handa <handa@m17n.org>
6364
6365 * fns.c (string_char_to_byte): Optimize for ASCII only string.
6366 (string_byte_to_char): Likewise.
6367
d57625a0
JR
63682004-01-28 Peter Runestig <peter@runestig.com>
6369
6370 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
6371
a64387ee 63722004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
6373
6374 * unexmacosx.c (unexec_copy): Do not copy more than was
6375 requested to prevent overwriting during unexec.
6376
eb37b8fd
JD
63772004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6378
ce38070a
JD
6379 * process.c (sigchld_handler): Add comment about not calling malloc.
6380
eb37b8fd
JD
6381 * process.h: Add extern to synch_process_termsig.
6382
a64387ee 63832004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 6384
da75761f
SM
6385 * macterm.c (make_mac_frame, make_mac_terminal_frame):
6386 Move setting of scroll bars from make_mac_frame to
6387 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 6388
d62a265d
RS
63892004-01-26 Richard M. Stallman <rms@gnu.org>
6390
6391 * search.c (Freplace_match): Handle nonexistent
6392 back-references properly.
6393
63942004-01-03 Richard M. Stallman <rms@gnu.org>
6395
6396 * window.c (decode_any_window): New function.
6397 (Fwindow_height, Fwindow_width, Fwindow_edges)
6398 (Fwindow_pixel_edges, Fwindow_inside_edges)
6399 (Fwindow_inside_pixel_edges): Use decode_any_window.
6400
ff236419
JD
64012004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6402
6403 * process.h: synch_process_termsig new variable.
6404
6405 * callproc.c: Define synch_process_termsig.
6406 (Fcall_process): Initiate synch_process_termsig to zero and
6407 check if non-zero and get signal name after subprocess has ended.
6408
6409 * process.c (sigchld_handler): Set synch_process_termsig
6410 if terminated by a signal. synch_process_death setting removed.
6411
6412 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
6413
41b867ea
AS
64142004-01-26 Andreas Schwab <schwab@suse.de>
6415
6416 * print.c (print_preprocess): Declare size as EMACS_INT to not
6417 lose bits.
6418 (print_object): Likewise.
6419 * alloc.c (Fpurecopy): Likewise.
6420
a08084ff
LT
64212004-01-25 Luc Teirlinck <teirllm@auburn.edu>
6422
6423 * window.c (Fwindow_minibuffer_p): Doc fix.
6424
b19ac475
JY
64252004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
6426
6427 * editfns.c (Fformat): Make both passes accept the same set of flags.
6428
fe905025
KH
64292004-01-23 Kenichi Handa <handa@m17n.org>
6430
6431 * fns.c (Fmd5): If OBJECT is a buffer different from the current
6432 one, set buffer to OBJECT temporarily.
6433
438fc6c0
SM
64342004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6435
455316e2
SM
6436 * keyboard.c (kbd_buffer_gcpro): Remove.
6437 (kbd_buffer_store_event, clear_event, Fdiscard_input)
6438 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
6439 Don't initialize and/or maintain the variable any more. It was made
6440 redundant by my commit of 2003-06-15.
6441
438fc6c0
SM
6442 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
6443
5335a4ee
JD
64442004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6445
6446 * lisp.h: Add undef DECL_ALIGN.
6447
dcdaeebc
SM
64482004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6449
6450 * process.c (wait_reading_process_input) [SYNC_INPUT]:
6451 Check interrupt_input_pending explicitly.
6452
6453 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
6454
6455 * keyboard.c (handle_async_input): New fun,
6456 extracted from input_available_signal.
6457 (input_available_signal, reinvoke_input_signal): Use it.
6458
9076a823
SM
64592004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
6460
d7107586
SM
6461 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
6462
6463 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
6464 manipulation macros for when tags are in the lower bits.
6465 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
6466 (DECL_ALIGN): New macro.
6467 (DEFUN): Use it.
6468
6469 * lisp.h [ENABLE_CHECKING]: Don't force union type.
6470
6471 * s/darwin.h (__attribute__): Remove outdated workaround.
6472
6473 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
6474
6475 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
6476 Don't check range of malloc address.
6477 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
6478
9076a823
SM
6479 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
6480
6481 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
6482
ba029065
KH
64832004-01-19 Kenichi Handa <handa@m17n.org>
6484
6485 * fontset.c (fontset_font_pattern): Fix previous change.
6486
7af0e8d7
MB
64872004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
6488
6489 * xdisp.c (Voverflow_newline_into_fringe)
6490 (move_it_in_display_line_to, redisplay_internal)
6491 (update_window_fringes, redisplay_window, display_line, window):
6492 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
6493 that it compiles without a window-system.
6494 * dispnew.c (direct_output_for_insert, update_window): Likewise.
6495
77a9cf69
KS
64962004-01-16 Kim F. Storm <storm@cua.dk>
6497
6498 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
6499
a64387ee 6500 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
6501 buffer_local_flags for indicate_buffer_boundaries.
6502 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
6503 default- variable for it.
6504
6505 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
6506 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 6507 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
6508 overflowing newlines into right fringe.
6509 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
6510 and indicate_bottom_line_p for buffer boundaries and scrolling.
6511 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
6512 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
6513 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
6514 and HOLLOW_SQUARE_BITMAP.
6515 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
6516 Add prototypes.
6517
6518 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
6519 instead of related indicator fields.
6520 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
6521 (direct_output_for_insert): Handle exact width lines like
6522 contined lines. Call update_window_fringes.
6523 (update_window): Call update_window_fringes.
6524 (scrolling_window): Don't skip desired rows with changed bitmaps.
6525 Check if fringe bitmaps changes when assigning scrolled rows.
6526
6527 * xdisp.c (Voverflow_newline_into_fringe): New variable.
6528 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
6529 (move_it_in_display_line_to): Overflow newline into fringe for
6530 rows that are exactly as wide as the window.
6531 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
6532 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
6533 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
6534 (fringe_bitmaps): Add new bitmaps.
6535 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
6536 Select proper bitmap for cursor in fringe when appropriate.
6537 Handle alignment of bitmap to top or bottom of row.
6538 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
6539 done by update_window_fringes.
6540 (update_window_fringes, draw_window_fringes): New functions.
6541 (redisplay_internal): Call update_window_fringes in case only
6542 cursor row is updated.
6543 (redisplay_window): Call update_window_fringes.
6544 Explicitly call draw_window_fringes if redisplay was done using
6545 the current matrix or the overlay arrow is in the window.
6546 (try_window_reusing_current_matrix): Mark scrolled rows for
6547 fringe update (to update buffer-boundaries / scrolling icons).
6548 (find_last_unchanged_at_beg_row): Handle exact width lines line
6549 continued lines.
6550 (display_line): Overflow newline into fringe for rows that are
6551 exactly as wide as the window. Don't append space for newline
d7107586 6552 in this case.
77a9cf69
KS
6553 (notice_overwritten_cursor): Explicitly clear cursor bitmap
6554 in fringe as if it had been overwritten.
6555 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 6556 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
6557 void-text-area-pointer as user options.
6558 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 6559
77a9cf69
KS
6560 * xterm.c (x_update_window_end): Call draw_window_fringes.
6561 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6562 in row instead of actually drawing fringe bitmaps.
6563 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6564 (x_draw_window_cursor): Draw cursor in fringe.
6565
6566 * w32term.c (x_update_window_end): Call draw_window_fringes.
6567 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6568 in row instead of actually drawing fringe bitmaps.
6569 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6570 (w32_draw_window_cursor): Draw cursor in fringe.
6571
6572 * macterm.c (x_update_window_end): Call draw_window_fringes.
6573 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6574 in row instead of actually drawing fringe bitmaps.
6575 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6576 (mac_draw_window_cursor): Draw cursor in fringe.
6577
a633a954
JD
65782004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6579
6580 * xterm.c (handle_one_xevent): Don't handle characters that are part
6581 of an old style (XLookupString) compose sequence.
6582
80460525
KH
65832004-01-15 Kenichi Handa <handa@m17n.org>
6584
6585 * search.c (Freplace_match): Use make_multibyte_string or
6586 make_unibyte_string according to the buffer multibyteness.
6587
7fc34f85
SM
65882004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
6589
6590 * alloc.c (struct interval_block, struct string_block)
6591 (struct symbol_block, struct marker_block, live_string_p)
6592 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
6593 Better preserve alignment for objects in blocks.
6594 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
6595
6596 * lread.c (defvar_per_buffer): Remove dead declaration.
6597
6598 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
6599 space size.
6600
66070bd1
JD
66012004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6602
6603 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
6604 if a key press should pop down. Only pop down if a key is pressed
6605 outside the menu/dialog.
6606 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
6607 popup_get_selection.
6608 (create_and_show_dialog): Pass 1 for down_on_keypress to
6609 popup_get_selection.
6610
de7515d6
JD
66112004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6612
6613 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
6614 BLOCK/UNBLOCK_INPUT.
6615
160b1b50
JD
66162004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6617
6618 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
6619 specified.
6620
3a9f36e6
KH
66212004-01-08 Kenichi Handa <handa@m17n.org>
6622
6623 * editfns.c (Fformat): Fix '&' to '&&'.
6624
3803eb32
AS
66252004-01-08 Andreas Schwab <schwab@suse.de>
6626
6627 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
6628 size if PSEUDOVECTOR_FLAG is set.
6629
9da88f37
KH
66302004-01-07 Kenichi Handa <handa@m17n.org>
6631
74ac5074
KH
6632 * charset.c (Fdeclare_equiv_charset): Fix docstring.
6633
9da88f37
KH
6634 * fontset.c (fontset_ref_via_base): Fix previous change.
6635
05faee07
KS
66362004-01-07 Kim F. Storm <storm@cua.dk>
6637
6638 * process.c (read_process_output): Only activate adaptive
6639 buffering if we read less than 256 bytes at a time.
6640
634910c8
KS
66412004-01-06 Kim F. Storm <storm@cua.dk>
6642
6643 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
6644 object and image object. Return glyph width and height.
6645 (mode_line_string, marginal_area_string): Ditto.
6646
6647 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6648 (marginal_area_string): Fix prototypes.
6649
6650 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 6651 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
6652 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
6653
6654 * keyboard.c (make_lispy_position): Use modified mode_line_string,
6655 buffer_posn_from_coords, and marginal_area_string functions to
6656 include both string object and image object in the lispy position.
6657 Also add actual glyph width and height to position.
6658 (read_key_sequence): Use real buffer position from mouse
6659 event to find keymap property even when click is in marginal area.
6660
6661 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
6662 mode_line_string and marginal_area_string functions to handle
6663 both string object and image object properties.
d7107586 6664
57951c2e
AS
66652004-01-06 Andreas Schwab <schwab@suse.de>
6666
6667 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
6668 character.
6669
181e6a61
AS
66702004-01-02 Andreas Schwab <schwab@suse.de>
6671
d7107586
SM
6672 * macterm.c (emacs_options, x_initialized, same_x_server):
6673 Remove unused (and duplicated) definitions.
181e6a61 6674
31e0fbdd
KS
66752004-01-02 Kim F. Storm <storm@cua.dk>
6676
6677 * process.h (struct Lisp_Process): New members for adaptive read
6678 buffering: adaptive_read_buffering, read_output_delay, and
6679 read_output_skip.
6680
6681 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
6682 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
6683 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
6684 (process_output_delay_count, process_output_skip): New vars.
6685 (Vprocess_adaptive_read_buffering): New variable.
6686 (make_process): Initialize adaptive read buffering members.
6687 (Fstart_process): Set adaptive_read_buffering member.
6688 (deactivate_process): Cleanup adaptive read buffering.
6689 (wait_reading_process_input): Temporarily omit delayed
6690 subprocesses from the set of file descriptors to read from;
6691 adjust the select timeout if we skipped any subprocesses.
6692 (read_process_output): Increase adaptive read buffering delay if
6693 we read less than a full buffer; reduce delay when we read a
6694 full buffer.
6695 (send_process): Simplify using local Lisp_Process var.
6696 Reset adaptive read buffering delay after write.
6697 (init_process): Initialize process_output_delay_count and
6698 process_output_skip.
6699 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
6700
68c6a789
JR
67012004-01-01 Jason Rumney <jasonr@gnu.org>
6702
d7107586 6703 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 6704
3f70fe82
LT
67052003-12-30 Luc Teirlinck <teirllm@auburn.edu>
6706
6707 * print.c (Ferror_message_string): Add hyperlink in the docstring
6708 to the definition of `signal' in the Elisp manual.
6709 * eval.c (Fsignal): Ditto.
6710
b6189c3b 67112003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
6712
6713 * fns.c (internal_equal): Return t for two NaN arguments.
6714
7abd90ea
RS
67152003-12-29 Richard M. Stallman <rms@gnu.org>
6716
6717 * data.c (store_symval_forwarding): Handle setting
6718 default-fill-column, etc., by changing the value in
6719 buffers that use the default.
6720
6721 * minibuf.c (Fset_minibuffer_window): Doc fix.
6722
6723 * fileio.c (choose_write_coding_system): Ignore auto_saving
6724 if using the visited file for auto saves.
6725 (Fwrite_region): Don't update SAVE_MODIFF
6726 if auto-saving in visited file.
6727
3e7cfcdc
KH
67282003-12-29 Kenichi Handa <handa@m17n.org>
6729
6730 * dispextern.h (face_font_available_p): Extern it.
6731
6732 * fontset.c (Voverriding_fontspec_alist): New variable.
6733 (lookup_overriding_fontspec): New function.
d7107586 6734 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
6735 (fontset_font_pattern): Likewise.
6736 (regulalize_fontname): New function.
6737 (Fset_fontset_font): Call regulalize_fontname.
6738 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
6739 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
6740 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
6741
6742 * xfaces.c (face_font_available_p): New function.
6743
7abd90ea
RS
67442003-12-28 Richard M. Stallman <rms@gnu.org>
6745
6746 * buffer.c (Fother_buffer): Don't crash if BUF is nil
6747 or if its name is nil.
6748
6749 * buffer.c (Fkill_buffer): Don't delete auto-save file
6750 if it's the same as the visited file.
6751
de1d1a40
LT
67522003-12-28 Luc Teirlinck <teirllm@auburn.edu>
6753
6754 * coding.c (Fcheck_coding_system): Doc fix.
6755
204fb75e
KS
67562003-12-28 Kim F. Storm <storm@cua.dk>
6757
6758 * Makefile.in (eval.o): Depend on dispextern.h.
6759
6760 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6761 image glyph using image's ascent.
6762 (mode_line_string): Return image glyph as object clicked on.
6763 Adjust y0 for image glyph using image's ascent.
6764
6765 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
6766 (struct glyph): New members, ascent and descent. Used to save
6767 this glyph's ascent and descent, instead of having.
6768 (struct glyph): Declare member face_id using FACE_ID_BITS.
6769 (find_hot_spot): Add prototype.
6770
6771 * keyboard.c (Qimage): Remove extern (now in lisp.h).
6772 (QCmap): Declare extern.
6773 (make_lispy_position): When position is inside image hot-spot,
6774 use hot-spot element's id as posn element.
6775
6776 * lisp.h (IMAGEP): New macro to test for image object type.
6777 (Qimage): Declare extern.
6778
6779 * macfns.c (Qimage): Remove extern (now in lisp.h).
6780 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6781
6782 * macterm.c (Qface, Qmouse_face): Remove unused externs.
6783
6784 * w32fns.c (Qimage): Remove extern (now in lisp.h).
6785 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6786
6787 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
6788
6789 * w32term.c (Qface, Qmouse_face): Remove unused externs.
6790
6791 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
6792 pointer types.
6793 (Qrelative_width, Qalign_to): Remove unused variables.
6794 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
6795 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
6796 image maps.
d7107586 6797 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
6798 new dx and dy args.
6799 Remove buffer_only_p arg (always 0). Simplify code accordingly.
6800 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
6801 than row's ascent and height, to get sensible height on tall rows.
6802 (build_desired_tool_bar_string): Remove Qimage extern.
6803 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
6804 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
6805 image glyph is alone on the last line.
6806 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 6807 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 6808 (on_hot_spot_p): New function to check if position is inside an
d7107586 6809 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
6810 (find_hot_spot): New function to search for image hot-spot.
6811 (Flookup_image_map): New defun to search for image hot-spot.
6812 (define_frame_cursor1): New aux function to determine frame pointer.
6813 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6814 Handle `pointer' text property and :pointer image property to
6815 control frame pointer shape. Detect image hot-spots for pointer
6816 and help_echo properties. Use define_frame_cursor1.
6817 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 6818 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
6819 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
6820
6821 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
6822
6823 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
6824 (Qimage): Remove extern (now in lisp.h).
6825 (valid_image_p, parse_image_spec): Use IMAGEP macro.
6826
6827 * xmenu.c (show_help_event): Remove unused code.
6828
6829 * xterm.c (Qface, Qmouse_face): Remove unused externs.
6830 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
6831 row's ascent and descent, to get a sensible height on tall rows.
6832
fc052137
LT
68332003-12-25 Luc Teirlinck <teirllm@auburn.edu>
6834
6835 * minibuf.c (Fcompleting_read): Undo previous change.
6836
a64387ee 68372003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
6838
6839 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
6840 Arguments GCPRO'ed in call to file name handler.
6841
56ffd194
TTN
68422003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
6843
6844 * termcap.c (tgetst1): Scan for "%pN"; if all
6845 N are continuous in [1,9], remove all "%pN".
6846
5202d23d
JD
68472003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6848
f26fab36
JD
6849 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
6850
5202d23d
JD
6851 * xfaces.c (lface_fully_specified_p): Take into account that
6852 MAC OS always have unspecified stipple.
6853
8babaa59
TTN
68542003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6855
6856 * tparam.c (tparam1): Add handling for `%pN', which
6857 means use param N for the next substitution.
6858
2d176448
TTN
68592003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
6860
6861 * xfaces.c (Fcolor_gray_p): Fix omission bug:
6862 In case `frame' is nil, consult the selected frame.
6863 (Fcolor_supported_p): Likewise.
6864
adb0708c
LT
68652003-12-23 Luc Teirlinck <teirllm@auburn.edu>
6866
000eeb15
LT
6867 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
6868 Doc fixes.
0dc72b11
LT
6869
6870 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
6871 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
6872 (Fread_from_minibuffer): Delete code moved into read_minibuf.
6873 Doc fix.
6874 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
6875 read_minibuf.
6876 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 6877 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 6878
2e4d132b
KH
68792003-12-03 Kenichi Handa <handa@m17n.org>
6880
6881 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
6882 encoding sequence.
6883
3999c705
KH
68842003-12-01 Kenichi Handa <handa@m17n.org>
6885
6886 * composite.c (syms_of_composite): Don't make the compostion hash
6887 table week.
6888
d344ecbb
LT
68892003-11-30 Luc Teirlinck <teirllm@auburn.edu>
6890
6891 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6892 * textprop.c (Fget_char_property_and_overlay): New function.
6893 (syms_of_textprop): Defsubr it.
6894
03d6484e
JD
68952003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6896
019b1f0e
JD
6897 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6898 to compile on terminal configuration.
6899
03d6484e
JD
6900 * fileio.c (Fread_file_name): Check use_file_dialog also before
6901 calling Fx_file_dialog.
6902
6903 * fns.c: use_file_dialog: New variable.
6904 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6905
442d3fd0
KS
69062003-11-29 Kim F. Storm <storm@cua.dk>
6907
6908 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6909 (syms_of_msdos): Don't intern and staticpro them.
6910
0f6a07a8
KS
69112003-11-27 Kim F. Storm <storm@cua.dk>
6912
6913 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6914 coordinates relative to glyph at posn. If glyph is an image,
6915 return that as object at posn. Callers changed.
6916 (mode_line_string, marginal_area_string): Calculate and return
6917 pixel coordinates relative to glyph. Callers changed.
6918
6919 * dispextern.h (buffer_posn_from_coords, mode_line_string)
6920 (marginal_area_string): Fix prototypes.
6921 (window_box_left_offset, window_box_right_offset): Add prototypes.
6922
6923 * frame.h (get_specified_cursor_type, get_window_cursor_type):
6924 Remove prototypes.
6925
6926 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6927
6928 * keyboard.c (make_lispy_position): Add x and y coordinates
6929 relative to the current glyph as 7th element of position.
6930 If glyph is an image, return it in the object element.
6931 (read_key_sequence): Skip checks for keymap property in cases
6932 where POSN_STRING is not a string (e.g. an image).
6933
6934 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6935 (Vshow_text_cursor_in_void): New variable.
6936 (glyph_to_pixel_coords): Don't use negative hpos.
6937 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6938 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 6939 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
6940 (calc_pixel_width_or_height): New aux function, implementing
6941 pixel based artihmetic for glyph widths and heights.
6942 (produce_stretch_glyph): Use calc_pixel_width_or_height for
6943 :width, :height, :align-to, and :ascent, thus allowing these to
6944 be specified in pixels as well as multiples of characters.
6945 Don't produce stretch glyphs with zero width or height.
6946 (get_specified_cursor_type): Declare static.
6947 (get_window_cursor_type): Declare static. Add glyph arg to be
6948 able to know when cursor is on an image; always substitute
6949 hollow-box cursor for filled-box cursor on images, to avoid
6950 negative images and flicker when blinking the cursor.
6951 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
6952 (note_mode_line_or_margin_highlight): Use non-text cursor rather
6953 than vertical scroll-bar cursor in display margins.
6954 (note_mouse_highlight): Use non-text cursor rather than text
6955 cursor in fringes and over images in the text area.
6956 Use non-text cursor when mouse pointer is outside editable text,
6957 i.e. in the void after end-of-line or end-of-buffer; this was
6958 already done for W32, but is now standard for all systems --
6959 user can toggle show-text-cursor-in-void to get old behaviour.
6960 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
6961 Vdisplay_pixels_per_inch.
6962
00498bfc
AS
69632003-11-25 Andreas Schwab <schwab@suse.de>
6964
6965 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
6966 EMACS_INT to not lose bits.
6967 (Ffillarray): Don't set bits beyond the size of a bool vector.
6968
edaa824d
KS
69692003-11-25 Kim F. Storm <storm@cua.dk>
6970
6971 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
6972 define this defun on systems that cannot use stderr as lvalue.
6973
74d6f539
GM
69742003-11-24 Gerd Moellmann <gerd@gnu.org>
6975
6976 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
6977 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
6978 ld's default is incompatible with unexec.
6979
6a1ff3ba
KS
69802003-11-23 Kim F. Storm <storm@cua.dk>
6981
63dc7c6b
KS
6982 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
6983 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
6984 (Fforce_window_update): New defun.
6985 (syms_of_window): Defsubr it.
6986 (Fset_window_margins, Fset_window_fringes): Doc fix.
6987
6a1ff3ba
KS
6988 * print.c (Fredirect_debugging_output): New defun.
6989 (syms_of_print): Defsubr it.
6990
aef109b7
LT
69912003-11-22 Luc Teirlinck <teirllm@auburn.edu>
6992
6993 * fns.c (Fset_char_table_parent): Doc fix.
6994
6a1ff3ba 69952003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
6996
6997 * dispnew.c (buffer_posn_from_coords): Return actual row/column
6998 for glyph clicked on, rather than (unused) pixel positions.
6999 (mode_line_string, marginal_area_string): Change X and Y args to
7000 pointers for returning actual row/column for glyph clicked on.
7001 Simplify and optimize loops.
7002
aef109b7
LT
7003 * dispextern.h (mode_line_string, marginal_area_string):
7004 Update prototypes.
63ccbe21
KS
7005
7006 * keyboard.c (make_lispy_position): New function for generating
7007 mouse click positions from frame and pixel coordinates.
7008 Enhanced to return buffer position and actual row/column for
7009 events outside the text area using updated mode_line_string and
7010 marginal_area_string functions.
7011 Return left-fringe and right-fringe clicks as such, rather than
7012 clicks in text area.
7013 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
7014 pixel_to_glyph_coords, as we never use the results.
7015 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
7016 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
7017 Eliminate unused code in WHEEL_EVENT handling.
7018 (make_lispy_movement): Use make_lispy_position.
7019
7020 * window.c (coordinates_in_window): Remove redundant tests.
7021 Fix returned X pixel value for left-margin.
7022
7023 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
7024 mode_line_string and marginal_area_string parameters.
7025
a64387ee 70262003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 7027
d7107586
SM
7028 * w32.c (struct the_group, getgrgid): Add.
7029 * mac.c (struct my_group, getgrgid): Add.
aef109b7 7030
3dbf3426
LT
70312003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7032
7033 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
7034
cae8ddbb 70352003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 7036
d7107586
SM
7037 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
7038 include in call to file name handler. Optionally translate numeric
7039 UID and GID to strings. Update docstring.
7040 (directory_files_internal): Add parameter ID-FORMAT.
7041 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
7042 include in call to file name handler and call to
7043 directory_files_internal. Update Docstring.
7044 (Fdirectory_files): Add dummy parameter in call to
7045 directory_files_internal.
7046 * lisp.h (Qinteger): Add.
7047 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
7048 (Ffile_attributes): Add parameter.
7049 * data.c (Qinteger): Export.
cae8ddbb 7050
2550b848
LT
70512003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7052
3dbf3426 7053 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 7054
88380018
KS
70552003-11-19 Kim F. Storm <storm@cua.dk>
7056
7057 * xdisp.c (init_iterator): Initialize it->start to position
7058 before reseating (in case start position is invisible).
7059 (init_to_row_start): Set it->start to row-start.
7060 (redisplay_window): Accept optional_new_start if start position
7061 is invisible (in which case IT_CHARPOS overshoots PT).
7062 (display_line): Setup row->start from it->start (rather than
7063 it->current which is wrong if first char on line is invisible).
7064 When done, reseat it->start to it->current (= start of next row).
7065 (expose_area): Fix exposure of text area when first char (e.g. TAB)
7066 is only partially visible.
7067
7068 * dispextern.h (struct it): New member start.
7069
854c1a59
SM
70702003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7071
455316e2
SM
7072 * alloc.c (make_float, Fcons): Clear the markbit at init time.
7073 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
7074 of block_index outside of the macro call.
7075 (Fgarbage_collect): Remove null code.
7076
7077 * m/amdx86-64.h: Don't redefine XPNTR.
7078
854c1a59
SM
7079 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
7080 of VALMASK.
7081
7082 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
7083 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
7084 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
7085
7086 * lisp.h (VALMASK): Only define for non-union type.
7087 (MARKBIT): Remove.
7088 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
7089 (XTYPE): Define unconditionally.
7090 (XSETTYPE): Remove one more remnant.
7091 (EQ): Define differently for the union and non-union cases.
7092 (INTMASK): New bit mask.
7093 (struct Lisp_Marker): Move down to prepare for upcoming patch.
7094 (GC_EQ): Delegate to EQ.
7095
7096 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
7097
a0c6ef2d
JD
70982003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7099
7100 * xterm.c (x_window_to_scroll_bar): Move check of display to
7101 where window_id is compared.
7102
859492c4
KS
71032003-11-17 Kim F. Storm <storm@cua.dk>
7104
7105 * dispextern.h (struct it): New member first_vpos.
7106
7107 * xdisp.c (start_display): Set it->first_vpos.
7108 (try_window_id): Use first_vpos to start display in first _text_
7109 line if no reusable lines at start of window with header line.
7110
810f2256
JD
71112003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7112
7c402969 7113 * w32fns.c (XPutPixel):
854c1a59
SM
7114 * w32bdf.c (w32_init_bdf_font):
7115 * sunfns.c (sel_read):
7116 * process.c (Fmake_network_process):
7117 * frame.c (store_frame_param):
7118 * fontset.c (Fset_fontset_font):
7119 * emacs.c (shut_down_emacs):
a64387ee 7120 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 7121
a32e9bfd
JD
7122 * config.in: Regenerate.
7123
810f2256
JD
7124 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7125 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7126 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
7127 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
7128 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
7129
7130 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
7131
7132 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
7133 (XTmouse_position, handle_one_xevent): Pass Display* to
7134 x_window_to_scroll_bar.
7135 (x_window_to_scroll_bar): Take a Display* argument.
7136 Check that display for frame is equal to Display* argument.
854c1a59 7137 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
7138 x_display_info_for_display instead. Use Display in xev instead
7139 of GDK_DISPLAY.
7140 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 7141 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
7142 (x_connection_closed): Call xg_display_close for GTK.
7143 (x_term_init): Call xg_display_open for additional displays.
7144 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
7145 for GTK.
7146
7147 * xmenu.c (single_menu_item, mouse_position_for_popup)
7148 (x_activate_menubar): Formatting adjustments.
7149
7150 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
7151 adjustments.
7152
7153 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
7154 (xg_display_close, xg_create_default_cursor)
7155 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
7156 handling.
854c1a59
SM
7157 (xg_left_ptr_cursor): Remove.
7158 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
7159 cursor here.
7160 (xg_win_to_widget): Take Display* argument, call
7161 gdk_xid_table_lookup_for_display.
7162 (xg_create_frame_widgets, xg_get_file_name, create_menus)
7163 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
7164 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
7165 in FRAME_X_DISPLAY_INFO.
7166 (xg_get_scroll_id_for_window): Take Display* argument.
7167 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 7168 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 7169
78819ebb
KS
7170 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
7171 Display* argument.
7172 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 7173
0b03cc78
JD
71742003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7175
7176 * xterm.c (x_detect_focus_change): Do not change focus frame for
7177 Enter/LeaveNotify if the current focus frame has explicit focus.
7178
77e688fa
KS
71792003-11-14 Kim F. Storm <storm@cua.dk>
7180
7181 * dispnew.c (update_text_area): Fix redisplay error when hscroll
7182 is active and first glyph is only partially visible.
854c1a59 7183
dd429b03
KH
71842003-11-13 Kenichi Handa <handa@m17n.org>
7185
7186 * xdisp.c (select_frame_for_redisplay): New function.
7187 (redisplay_internal): Record also selected_frame for
7188 unwind_redisplay. Call select_frame_for_redisplay before
7189 redrawing each frame.
7190 (unwind_redisplay): Argument changed to a cons.
7191
6d9266f4
LT
71922003-11-12 Luc Teirlinck <teirllm@auburn.edu>
7193
7194 * fns.c (Fstring_to_multibyte): Doc fix.
7195
80060eb3
KH
71962003-11-11 Kenichi Handa <handa@m17n.org>
7197
7198 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7199
74305183
JD
72002003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7201
7202 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
7203 program specified positions.
7204
cfda993e
JD
72052003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7206
7207 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
7208
df211069
KH
72092003-11-08 Kenichi Handa <handa@m17n.org>
7210
7211 * Makefile.in (lisp): Add kannada.el.
7212 (shortlisp): Likewise.
7213
4307d534
KH
72142003-11-07 Kenichi Handa <handa@m17n.org>
7215
854c1a59
SM
7216 * coding.c (coding_allocate_composition_data):
7217 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
7218 (coding_restore_composition): Detect invalid composition data.
7219 Give Fstring and Fvector a Lispy integer, not C int.
7220
854c1a59
SM
72212003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
7222
7223 * floatfns.c (Flogb): Don't use VALMASK.
7224
7225 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
7226 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
7227
7228 * lisp.h (XINT): Move the cast to clarify what is going on.
7229 (GCTYPEMASK, XSETTYPE): Remove.
7230 (XGCTYPE): Make it an alias of XTYPE.
7231
d04103a1
JD
72322003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7233
7234 * xterm.c (x_term_init): Fix formatting.
7235
da18b5ac
JD
72362003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7237
78819ebb
KS
7238 * gtkutil.h (xg_have_tear_offs): Declare.
7239 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
7240
7241 * gtkutil.c: Remove variable xg_did_tearoff.
7242 (xg_have_tear_offs): New function.
7243 (tearoff_remove): Just decrease xg_detached_menus.
7244 (tearoff_activate): Increase xg_detached_menus and call
7245 tearoff_remove when tearoff is removed.
854c1a59 7246 (xg_keep_popup): Remove function.
da18b5ac
JD
7247 (create_menus): Give add_tearoff_p as argument to recursive
7248 call to create_menus.
7249 (xg_create_widget): Use variables instead of multiple
7250 strcmp. Tell create_menus to create tear off only for
7251 menu bar menus.
7252 (xg_update_menubar): Change title for a detached menu also.
7253 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
7254 of deep_p.
7255 (xg_initialize): Initialize xg_detached_menus, remove
7256 initialization of xg_did_tearoff.
7257
7258 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
7259 xg_have_tear_offs returns non-zero.
7260 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
7261 call to xg_keep_popup.
7262
64d4923e
AC
72632003-11-01 Andrew Choi <akochoi@shaw.ca>
7264
7265 * macterm.c (XTread_socket): Handle menubar selection and grow
7266 window only for mouseDown events.
854c1a59 7267
6cc8bc07
JD
72682003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7269
7270 * xterm.c (x_term_init): For GTK part, increase x_initialized
7271 to check for more than one display. Use error instead of return 0.
7272
043131c4
AC
72732003-10-31 Andrew Choi <akochoi@shaw.ca>
7274
854c1a59 7275 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
7276 (copy_dysymtab): Call it.
7277
bdda99a1
LT
72782003-10-31 Luc Teirlinck <teirllm@auburn.edu>
7279
7280 * eval.c (Fdefvaralias): Doc fix.
7281
800f42ff 72822003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
7283
7284 * data.c (Fsetplist): Doc fix.
7285
ef35b389
LK
72862003-10-14 Lute Kamstra <lute@gnu.org>
7287
7288 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 7289
ef35b389 72902003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 7291
07107abc
KS
7292 * window.c (Fset_window_margins): Simplify arg checking.
7293
f7005886
RS
72942003-10-13 Richard M. Stallman <rms@gnu.org>
7295
7296 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
7297 (print_partial_compiled_pattern): Replace assert with a printout.
7298 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
7299
7300 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
7301
7302 * window.c (Fset_window_margins): Allow only integers as args.
7303 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
7304 Doc fixes.
7305
9c0c2af5
LK
73062003-10-13 Lute Kamstra <lute@gnu.org>
7307
7308 * window.c (Fset_window_fringes): Elaborate docstring.
7309
3f080e4e
AC
73102003-10-12 Andrew Choi <akochoi@shaw.ca>
7311
854c1a59 7312 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 7313
3f080e4e
AC
7314 * s/darwin.h (GC_MARK_STACK): Define.
7315
0aa513ed
JD
73162003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7317
7318 * window.c (shrink_windows): New function.
7319 (size_window): Call shrink_windows to calculate window sizes when
7320 shrinking frame with more than one window.
7321
6aa8858a
KS
73222003-10-12 Kim F. Storm <storm@cua.dk>
7323
7324 * xdisp.c (compute_fringe_widths): Doc fix.
7325
c2164d91
KH
73262003-10-08 Kenichi Handa <handa@m17n.org>
7327
854c1a59 7328 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 7329
f82ac129
KH
73302003-10-07 Kenichi Handa <handa@m17n.org>
7331
7332 * coding.c (Qcoding_system_define_form): New variable.
7333 (syms_of_coding): Intern and staticpro it.
7334 (Fcheck_coding_system): Try to autoload the definition of
7335 CODING-SYSTEM.
7336
9296c947
LT
73372003-10-05 Luc Teirlinck <teirllm@auburn.edu>
7338
7339 * fns.c (Frequire): Doc fix.
7340
c1f0671a
JD
73412003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7342
3d8c3826
JD
7343 * xfns.c (Fx_send_client_event): New function as a base for
7344 manipulating extended window manager hints.
6dc15d98 7345 (Fx_send_client_event): Remove unused variable s.
3d8c3826 7346
068ae0fd
JD
7347 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
7348 that function is removed.
7349
7350 * xterm.c (x_set_offset): Use move_offset_left/top instead of
7351 x/y_pixels_outer_diff.
7352 (x_check_expected_move): Calculate move_offset_left/top.
7353
7354 * xterm.h (struct x_output): New members: move_offset_top/left.
7355
854c1a59 7356 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
7357 call x_set_offset directly.
7358
7359 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
7360
96f09305
JD
7361 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
7362
7363 * xterm.c (x_delete_display): Free font names and font_encoder
7364 in dpyinfo->font_table.
7365
854c1a59
SM
7366 * xfns.c (Fx_close_connection): Only call XFreeFont here.
7367 Move xfree of font names to x_delete_display.
96f09305 7368
c1f0671a
JD
7369 * xterm.h (struct x_display_info): New member, wm_type.
7370 (struct x_output): New members, expected_top/left and
7371 check_expected_move.
7372
7373 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
7374 is received.
854c1a59
SM
7375 (handle_one_xevent): Rename x_check_expected_move from
7376 x_check_fullscreen_move.
c1f0671a
JD
7377 (x_set_offset): Only add WM decoration sizes to modified_top/left
7378 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 7379 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
7380 Removed fullscreen specific code. Use check_expected_move,
7381 expected_left/top instead. Also, set wm_type.
7382 (x_term_init): Initialize wm_type to unknown.
7383
7384 * frame.c (x_fullscreen_move): Remove addition of WM decoration
7385 sizes to move_x/y.
7386
be2fdba9
KH
73872003-10-03 Kenichi Handa <handa@m17n.org>
7388
7389 * macterm.c (x_load_font): Clear all members of FONTP before start
7390 filling them.
7391
73922003-10-02 Kenichi Handa <handa@m17n.org>
7393
7394 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
7395 before calling find_ccl_program_func. Call find_ccl_program_func
7396 only when fontp->font_encoder is not NULL.
7397
7398 * xterm.c (x_load_font): Clear all members of FONTP before start
7399 filling them.
7400
26a6e439
JPW
74012003-10-03 John Paul Wallington <jpw@gnu.org>
7402
7403 * keymap.c (map_keymap): Don't abort when binding is a vector.
7404
0d4c2dc2
JR
74052003-10-02 Jason Rumney <jasonr@gnu.org>
7406
854c1a59
SM
7407 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
7408 Sync dependencies with Makefile.in.
a63cf46f
JR
7409 (alloca.o): Remove.
7410
0d4c2dc2
JR
7411 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
7412 filling them.
7413
7414 * w32bdf.c (w32_load_bdf_font): Likewise.
7415
ab8f7d5c
RS
74162003-09-30 Richard M. Stallman <rms@gnu.org>
7417
7418 * term.c (set_tty_color_mode): Calculate current_mode_spec
7419 regardless of value of VAL.
7420
854c1a59 7421 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
7422 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
7423 Handle over_used when splitting UNDER.
7424
a64387ee 74252003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
7426
7427 * regex.c (regex_compile): Free the stack when returning from function.
7428
3413f972
KH
74292003-09-28 Kenichi Handa <handa@m17n.org>
7430
7431 * fontset.c (Finternal_char_font): Change return value to
7432 cons (FONT-NAME . GLYPH-CODE).
7433
a6eeaa81 74342003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
7435
7436 * term.c (tty_setup_colors): Treat any negative argument as -1.
7437
f98ddc99
KH
74382003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
7439
7440 * process.c (send_process): Delete unused temp_buf.
7441
66c8f1a8
DL
74422003-09-26 Dave Love <fx@gnu.org>
7443
7444 * xterm.c (x_bitmap_mask): Declare.
7445
ca716c26
DL
74462003-09-25 Dave Love <fx@gnu.org>
7447
7448 * Makefile.in (fns.o): Depend on md5.h.
7449
fbe57420
KS
74502003-09-25 Kim F. Storm <storm@cua.dk>
7451
7452 * window.c (set_window_buffer): Fix redisplay problems when
7453 switching between buffers with different display margin widths.
7454
ef6ae4ff
KS
74552003-09-23 Kim F. Storm <storm@cua.dk>
7456
7457 * process.c (set_socket_option): Fix :bindtodevice option.
7458 (Fset_network_process_option): Update process contact list when
7459 setting option succeeds.
7460 (Fmake_network_process): Doc fix.
7461
68e03c1c
DL
74622003-09-23 Dave Love <fx@gnu.org>
7463
7146d1c1 7464 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 7465
a6eeaa81 74662003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
7467
7468 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
7469 color mode is an integer number (it could be -1).
7470
8fe7d8c8
RS
74712003-09-22 Richard M. Stallman <rms@gnu.org>
7472
7473 * intervals.c (graft_intervals_into_buffer): Correct the main loop
7474 in the case where OVER is longer than UNDER.
7475
2f71b5ea
MY
74762003-09-22 Masatake YAMATO <jet@gyve.org>
7477
7146d1c1 7478 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 7479 `vertical_type'.
7146d1c1 7480
0c4da023
KS
74812003-09-21 Kim F. Storm <storm@cua.dk>
7482
7483 * frame.c (Vdefault_frame_scroll_bars): New variable.
7484 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
7485 (syms_of_frame): DEFVAR_LISP it, and initialize according to
7486 window-system default scroll bar position.
7487
b648413b
KS
7488 * window.c (Fwindow_scroll_bars): Doc fix.
7489
8f5b9e34
JD
74902003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7491
854c1a59 7492 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 7493
b0f23edf
RS
74942003-09-19 Richard M. Stallman <rms@gnu.org>
7495
7496 * atimer.h: Don't include lisp.h.
7497 (P_): Define it here (as well as elsewhere).
7498
7499 * print.c (Fprin1_to_string): Move the PRINTPREPARE
7500 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
7501
7502 * data.c (Fvariable_binding_locus): New function.
7503 (syms_of_data): defsubr it.
7504 (Flocal_variable_p): Delete duplicate call to indirect_variable.
7505
e1283999
DL
75062003-09-18 Dave Love <fx@gnu.org>
7507
ad5f3636
DL
7508 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
7509
e1283999
DL
7510 * process.c (Fnetwork_interface_info): Fix type error.
7511 (Fnetwork_interface_list): Doc fix.
7512 (read_process_output, read_process_output): Delete unused var.
7513
b8c7fd71
KS
75142003-09-17 Kim F. Storm <storm@cua.dk>
7515
7516 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
7517 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
7518 (Fnetwork_interface_info): Check that ifreq struct has required
7519 fields before accessing them; this requires that those fields are
7520 defined as macros, which may be too restrictive on some platforms,
7521 but it is better than failing on other platforms.
7522 (syms_of_process): Only defsubr above fns when included.
7523
11e0a411
DL
75242003-09-17 Dave Love <fx@gnu.org>
7525
7526 * unexalpha.c: Don't include varargs.h.
7527
e9c50801
KS
75282003-09-17 Kim F. Storm <storm@cua.dk>
7529
7530 * process.c (Fset_process_sentinel): Add sentinel to childp plist
7531 for network process.
7532 (socket_options): Add `:' prefix to option names. Add optbit field.
7533 (set_socket_option): Remove no_error arg and special handling of s < 0.
7534 Return 1<<optbit for known option, 0 for unknown.
7535 Do not interpret 0 as false for boolean option (only nil).
7536 Pass failed option and value to report_file_error.
7146d1c1 7537 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
7538 (Fset_network_process_option): New function to set just one option.
7539 (Fmake_network_process): Allow :coding arg to be a cons.
7540 Allow :server arg to be an integer specifying backlog size.
7541 Remove :options arg, and allow options to be specified directly
7542 as :KEY, VALUE pairs. Parse these options before binding socket.
7543 As before, :reuseaddr t is default for a server process, but this
7544 can now be disabled by specifying :reuseaddr nil.
7545 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
7546 (init_process): Availability of network options is now checked with
7547 simpler syntax (featurep 'make-network-process :OPTION); use loop to
7548 setup features.
7549 (syms_of_process): Fix defsubr's for the replaced functions.
7550
a0fc3644
DL
75512003-09-16 Dave Love <fx@gnu.org>
7552
7553 * Makefile.in: Depend on coding.h.
7554
6df2a645
KS
75552003-09-14 Kim F. Storm <storm@cua.dk>
7556
7557 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
7558 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
7559 (syms_of_process): Defsubr them.
7560
7561 * config.in: Regenerate.
7146d1c1
SM
7562
75632003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7564
7565 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
7566 * m/news-r6.h (XUNMARK): Remove.
7567 * m/mips.h (XUNMARK): Remove.
7568 * m/mips-siemens.h (XUNMARK): Remove.
7569 * m/iris4d.h (XUNMARK): Remove.
7570 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
7571
0930c1a1
SM
75722003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7573
31003b9e
SM
7574 * lisp.h (VALBITS): Don't remove 1 for the markbit.
7575 (union Lisp_Object): Use unsigned int for types. Remove markbit.
7576 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
7577 (XTYPE): Use unsigned right-shift.
7578 (XMARKBIT, XMARK, XUNMARK): Remove.
7579
0930c1a1
SM
7580 * alloc.c (init_intervals, init_symbol, init_marker):
7581 Don't preallocate anything.
7582 (Fgarbage_collect, mark_object): Ignore the markbit.
7583
7584 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
7585
19bb0fcd 75862003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
7587
7588 * xdisp.c (pint2hrstr): New function.
7589 (decode_mode_spec): Add `%i' and `%I' specs.
7590 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
7591 for `mode-line-format'.
7592
03bb6a06
AS
75932003-09-07 Andreas Schwab <schwab@suse.de>
7594
7595 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
7596 avoid warning.
7597
a6eeaa81 75982003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 7599
0930c1a1 7600 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 7601
ed159bbf
KS
76022003-09-03 Kim F. Storm <storm@cua.dk>
7603
7604 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
7605 change (superseded by 2002-08-30 change); the default blink-off
7606 cursor is now again "no cursor".
7607
fe64a394
JR
76082003-09-01 Jason Rumney <jasonr@gnu.org>
7609
7610 * makefile.w32-in (alloca.o): Remove.
7611 (coding.o): Depend on intervals.h
7612 (emacs.o, bytecode.o): Depend on window.h
7613
c0175e24
DL
76142003-09-01 Dave Love <fx@gnu.org>
7615
7616 * Makefile.in (alloca.o): Remove commands.
7617 (coding.o): Depend on intervals.h composite.h window.h.
7618 (emacs.o): Depend on window.h keyboard.h keymap.h.
7619 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
7620 (bytecode.o): Depend on window.h.
7621
a24d4cb2
JR
76222003-08-31 Jason Rumney <jasonr@gnu.org>
7623
4bc2315e
JR
7624 * w32term.c (w32_per_char_metric): Allow cached metrics to be
7625 returned even when font_type is unknown.
7626
a24d4cb2
JR
7627 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
7628
9d35adc7
JD
76292003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7630
7631 * xterm.c (x_term_init): Initialize new fields in x_display_info.
7632
7633 * xterm.h (struct x_display_info): Add red/green/blue_bits and
7634 *_offset.
7635
7636 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
7637 calculate pixel value.
7638
6f68b035
GM
76392003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
7640
0930c1a1
SM
7641 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
7642 Don't tell redisplay display is accurate when it's actually been
7643 paused for pending input.
6f68b035 7644
4828b4d7
RS
76452003-08-29 Richard M. Stallman <rms@gnu.org>
7646
7647 * dispnew.c (adjust_glyph_matrix): Call window_box
7648 whenever W is nonzero.
7649
7650 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7651 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 7652 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
7653 Use indirect_variable to trace thru variable aliases.
7654
7655 * config.in: Updated.
7656
7657 * callint.c (Fcall_interactively): Save and restore
7658 Vthis_command, Vthis_original_command, real_this_command,
7659 and current_kboard->Vlast_command.
7660
7661 * abbrev.c (Fexpand_abbrev): Insert before deleting.
7662
e019878d
GM
76632003-08-29 Gerd Moellmann <gerd@gnu.org>
7664
7665 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
7666
85478bc6
KH
76672003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
7668
0930c1a1 7669 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
7670 (decode_coding_sjis_big5): Likewise.
7671
07ce82d3
JR
76722003-08-27 Jason Rumney <jasonr@gnu.org>
7673
d3703de3
JR
7674 * w32.c (sys_pipe): Protect against file descriptor overflow.
7675
ee4a01d1
JR
7676 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
7677
07ce82d3
JR
7678 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
7679
a64387ee 76802003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
7681
7682 * xfns.c (Vgtk_version_string): New variable.
7683 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
7684
a6eeaa81 76852003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 7686
0930c1a1 7687 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 7688
5459e42a
EZ
7689 * Makefile.in (msdos.o): Depend on intervals.h.
7690
0930c1a1 7691 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 7692
231d6cfb
JD
76932003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7694
7695 * xterm.h (struct x_display_info): New fields: client_leader_window
7696 and Xatom_wm_client_leader.
7697
7698 * xterm.c (x_initialize): Move call to x_session_initialize to ...
7699 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
7700
7701 * xsmfns.c (create_client_leader_window): New function.
7702 (x_session_initialize): Call create_client_leader_window, take
7703 dpyinfo as argument.
7704
7705 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
7706
7707 * Makefile.in (xsmfns.o): Add more depenedencies.
7708
afa88464
DL
77092003-08-21 Dave Love <fx@gnu.org>
7710
7711 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
7712
f730033e
KH
77132003-08-21 Kenichi Handa <handa@m17n.org>
7714
7715 * term.c (term_init): Fix previous change; don't rely on the
7716 length of `buffer' if TERMINFO is defined.
7717
6dca786c
DL
77182003-08-20 Dave Love <fx@gnu.org>
7719
7720 * atimer.h: Include lisp.h.
7721
7722 * lisp.h (EMACS_LISP_H): New.
7723 (popup_activated_flag): Don't declare.
7724
7725 * alloca.c: Some merging with gnulib. Change logic and doc
7726 concerning (x)malloc/(x)free -- no longer Emacs-specific.
7727 [DO_BLOCK_INPUT]: Don't include lisp.h.
7728 (xmalloc, xfree): Declare.
7729 (malloc): Don't declare.
7730
0930c1a1 7731 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
7732 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
7733 atimer.h, blockinput.h.
7734
7735 * alloc.c (lisp_align_malloc): Change type of `aligned'.
7736
78819ebb 7737 * alloca.s: Remove.
6dca786c 7738
3a06a6d9
RS
77392003-08-19 Gerd Moellmann <gerd@gnu.org>
7740
7741 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
7742 use -lncurses.
7743
7744 * term.c (term_init): Use a buffer of size 4096 for tgetent since
7745 FreeBSD returns something longer than 2044. Abort if the end of
7746 the buffer is overwritten.
7747
27eeee55
MB
77482003-08-19 Miles Bader <miles@gnu.org>
7749
7750 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
7751
2f297815
GM
77522003-08-19 Gerd Moellmann <gerd@gnu.org>
7753
f4446bbf
GM
7754 * alloc.c (lisp_align_malloc): Check for memory full when
7755 allocating ablocks, which also avoids freeing a pointer into an
7756 ablocks structure.
7757
7758 * puresize.h (BASE_PURESIZE): Increase to 1100000.
7759
0930c1a1 7760 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 7761
0e7d7aae
RS
77622003-08-16 Richard M. Stallman <rms@gnu.org>
7763
7764 * editfns.c (Fencode_time): Doc fix.
7765
77662003-08-16 David Ponce <david@dponce.com>
7767
7768 * fileio.c (Fwrite_region): Fix conditional expression to issue
7769 the right message.
7770
b6189c3b 77712003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
7772
7773 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 7774 Set default value to 1.
0e7d7aae 7775
5d551295
KH
77762003-08-15 Kenichi Handa <handa@m17n.org>
7777
7778 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
7779 what autoscaled.
7780 (best_matching_font): Once we find a better scalable font, set
7781 non_scalable_has_exact_height_p to 1.
7782 (try_font_list): Call try_alternative_families to try any family
7783 with the given registry.
7784
1661e56b
AS
77852003-08-09 Andreas Schwab <schwab@suse.de>
7786
f29181dc
AS
7787 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
7788
1661e56b
AS
7789 * print.c (print_string): Fix printing of multibyte string with
7790 nontrivial printcharfun.
7791
465aa50a
JD
77922003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7793
7794 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
7795
7796 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
7797
e430e5ba
KH
77982003-07-31 Kenichi Handa <handa@m17n.org>
7799
7800 * process.c (read_process_output): Return the actually read bytes
7801 instead of the result of decoding.
7802
97e7188e
KH
78032003-07-31 Kenichi Handa <handa@m17n.org>
7804
7805 * xterm.h (struct x_bitmap_record): New member have_mask.
7806
7807 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
7808 to 0.
7809 (x_create_bitmap_from_file): Likewise.
7810 (x_destroy_bitmap): Check have_mask member before freeing a mask.
7811 (x_destroy_all_bitmaps): Likewise.
7812 (x_create_bitmap_mask): Set have_mask member to 1.
7813
b53094d6
RS
78142003-07-30 Richard M. Stallman <rms@gnu.org>
7815
7816 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
7817
631f2082
JD
78182003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7819
7820 * gtkutil.c (xg_mark_data): Update calls to mark_object.
7821
c855f2ca
RS
78222003-07-29 Richard M. Stallman <rms@gnu.org>
7823
7824 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
7825 Conditionalize XIM code on HAVE_XIM.
7826
7827 * fns.c (Fclear_string): New function.
7828 (syms_of_fns): defsubr it.
7829
b6189c3b 78302003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 7831
0930c1a1 7832 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 7833
29ea8ae9
SM
78342003-07-22 Stefan Monnier <monnier@cs.yale.edu>
7835
7836 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
7837
7838 * buffer.c (delete_all_overlays): New function.
7839 * buffer.h (delete_all_overlays): Declare.
7840 * coding.c (run_pre_post_conversion_on_str):
7841 * print.c (temp_output_buffer_setup):
7842 * fileio.c (Finsert_file_contents):
7843 * minibuf.c (get_minibuffer): Use it.
7844
1dd7ccf2
AC
78452003-07-22 Andrew Choi <akochoi@shaw.ca>
7846
7847 * unexmacosx.c (unexec_regions_sort_compare):
7848 (unexec_regions_merge): New functions. Sort and merge unexec
7849 regions before dumping them.
7850
f57bd967
DL
78512003-07-22 Dave Love <fx@gnu.org>
7852
7853 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
7854
7cdee936
SM
78552003-07-21 Stefan Monnier <monnier@cs.yale.edu>
7856
7857 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
7858 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
7859 MARKBIT as the gcmarkbit for strings.
7860
e50886d3
RS
78612003-07-21 Richard M. Stallman <rms@gnu.org>
7862
7863 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
7864
29ea8ae9 7865 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
7866 (syms_of_fns): Corresponding change.
7867
7868 * alloc.c (syms_of_alloc): Doc fixes.
7869
78702003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
7871
7872 * s/netbsd.h: Use -Wl syntax.
7873
fdc39b59
RS
78742003-07-17 Richard M. Stallman <rms@gnu.org>
7875
7876 * xterm.c (xim_initialize): Redo 6/24 change.
7877
9c53385f
SM
78782003-07-15 Stefan Monnier <monnier@cs.yale.edu>
7879
7880 * buffer.c (copy_overlays): Use EMACS_INT for positions.
7881 (Fswitch_to_buffer): Don't signal an error when switching to the same
7882 buffer in a dedicated window.
7883
7884 * alloc.c: Use bitmaps for cons, as was done for floats.
7885 (init_float, init_cons): Let the normal code allocate the first block.
7886 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7887 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7888 New macros.
7889 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
7890 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7891 (live_cons_p): Check the pointer is not past the `conses' array.
7892 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7893 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7894 (survives_gc_p): Use CONS_MARKED_P and simplify.
7895 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7896
dde13196
PE
78972003-07-13 Paul Eggert <eggert@twinsun.com>
7898
7899 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7900 puts it into BSS instead, at least on Solaris 8 and 9.
7901 This is a valid optimization, and it may occur on other platforms,
7902 so Emacs should not assume that initializing a static variable to
7903 zero puts it into data.
7904 * alloc.c (pure, staticvec):
7905 Initialize these arrays to nonzero, so that they're not
7906 put into BSS by that optimization.
7907
a801bc34
SM
79082003-07-13 Stefan Monnier <monnier@cs.yale.edu>
7909
7910 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
7911 (lisp_align_malloc): Use posix_memalign is available.
7912 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7913 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7914 for consistency. Update users.
7915
0c8b2afa
RS
79162003-07-13 Richard M. Stallman <rms@gnu.org>
7917
7918 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7919
668c2ab0
JB
79202003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
7921
7922 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7923 and use the Gtk+ function gtk_window_icon_from_file if available.
7924
7925 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7926 handle mask of bitmaps.
7927 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7928 mask property.
7929 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7930
7931 * xterm.h (xg_set_icon): New function.
7932
800bebe3
RS
79332003-07-12 Paul Eggert <eggert@twinsun.com>
7934
7935 * unexelf.c (unexec): Consider a section to precede the .bss
7936 section if its addresses overlap that of .bss.
7937
69e38995
RS
79382003-07-12 Richard M. Stallman <rms@gnu.org>
7939
7940 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7941
7942 * config.in (HAVE_CRTIN): Add #undef.
7943 (INLINE): Really inline only if OPTIMIZE is defined.
7944
7945 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7946 END_FILES_1.
7947 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 7948 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
7949
7950 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
7951 (TERMINFO): Define.
7952 (LIBS_TERMCAP): Define.
7953 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
7954
7955 * xfns.c: Include libpng/png.h instead of png.h.
7956
f1d0c238
AS
79572003-07-11 Andreas Schwab <schwab@suse.de>
7958
7959 * buffer.c (modify_overlay): Update prototype.
7960 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
7961 Likewise.
7962
5f6bf5fe
SM
79632003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7964
7965 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
7966 (struct interval): Move to intervals.h.
7967 (struct Lisp_Marker): Use EMACS_INT for position info.
7968 (forward_point): Remove prototype of defunct function.
7969 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
7970 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
7971 (syms_of_textprop, set_text_properties): Remove prototypes that are
7972 already in intervals.h.
7973
7974 * intervals.h (struct interval): Move from lisp.h.
7975 Use EMACS_INT for position and size info.
7976
7977 * coding.c: Include intervals.h for Fset_text_properties.
7978
7979 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7980 position and length information.
7981
2765b457
SM
79822003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7983
7984 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7985 position and length information.
7986
2410d73a
SM
79872003-07-09 Stefan Monnier <monnier@cs.yale.edu>
7988
7989 Change overlays_after and overlays_before so the overlays themselves
7990 are linked into lists, rather than using cons cells. After all each
7991 Lisp_Misc already occupies 5 words, so we can add a `next' field to
7992 Lisp_Overlay for free and save up one cons cell per overlay (not
7993 to mention one indirection when traversing the list of overlay).
7994
7995 * lisp.h (struct Lisp_Overlay): New field `next'.
7996
7997 * buffer.h (struct buffer): Change overlays_before and overlays_after
7998 from Lisp lists of overlays to pointers to overlays.
7999
8000 * buffer.c (overlay_strings, recenter_overlay_lists):
8001 Fix typo in eassert in last commit.
8002 (unchain_overlay): New function.
8003 (add_overlay_mod_hooklist): Use AREF.
8004 (copy_overlays, reset_buffer, overlays_at, overlays_in)
8005 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
8006 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
8007 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
8008 (report_overlay_modification, evaporate_overlays, init_buffer_once):
8009 Adjust to new type of overlays_(before|after).
8010
8011 * alloc.c (mark_object): Mark the new `next' field of overlays.
8012 (mark_buffer): Manually mark the overlays_(after|before) fields.
8013
8014 * coding.c (run_pre_post_conversion_on_str):
8015 * editfns.c (overlays_around):
8016 * xdisp.c (load_overlay_strings):
8017 * fileio.c (Finsert_file_contents):
8018 * indent.c (current_column):
8019 * insdel.c (signal_before_change, signal_after_change):
8020 * intervals.c (set_point_both):
8021 * print.c (temp_output_buffer_setup): Use new type for
8022 overlays_(before|after).
8023
04812929
SM
80242003-07-08 Stefan Monnier <monnier@cs.yale.edu>
8025
8026 * buffer.c (report_overlay_modification): Don't run hooks while
8027 traversing the list of overlays.
8028
8029 * buffer.h (struct buffer): Use an int for overlay_center.
8030 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8031 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8032
8033 * buffer.c (reset_buffer, recenter_overlay_lists)
8034 (adjust_overlays_for_insert, adjust_overlays_for_delete)
8035 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
8036 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
8037 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8038 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8039
8040 * xdisp.c (fast_find_position): Remove unused var.
8041
8042 * cmds.c (Qexpand_abbrev): New sym.
8043 (syms_of_cmds): Initialize it.
8044 (internal_self_insert): Use it to call expand-abbrev.
8045
2e7ecf15
KS
80462003-07-09 Kim F. Storm <storm@cua.dk>
8047
f9711de4 8048 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 8049 was configured with --without-xim.
42f81f64 8050 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 8051
c6de56a0
RS
80522003-07-07 Richard M. Stallman <rms@gnu.org>
8053
8054 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
8055
8056 * alloc.c (Fgarbage_collect): Doc fix.
8057
b6189c3b 80582003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
8059
8060 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
8061
bfe1a3f7
SM
80622003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8063
04812929
SM
8064 * minibuf.c (read_minibuf): UNGCPRO before returning.
8065 (Ftry_completion, Fall_completions): Doc fix.
8066
bfe1a3f7
SM
8067 * alloc.c (live_float_p): Check that p is not past the `floats' array,
8068 now that `floats' is not the last element of the struct any more.
8069
ee79d1aa
JR
80702003-07-06 Jason Rumney <jasonr@gnu.org>
8071
8072 * w32term.h (ClipboardSequence_Proc): New type.
8073
8074 * w32fns.c (clipboard_sequence_fn): New variable.
8075 (globals_of_w32fns): Initialize it.
8076
8077 * w32select.c (last_clipboard_sequence_number): New variable.
8078 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
8079 number if possible.
8080
49723c04
SM
80812003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8082
4698665f
SM
8083 * m/amdx86-64.h (MARKBIT):
8084 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
8085 MARKBIT and ARRAY_MARK_FLAG any more.
8086
8087 * m/hp800.h (XSETMARKBIT):
8088 * m/sr2k.h (XSETMARKBIT):
8089 * lisp.h (XSETMARKBIT): Remove unused macro.
8090
49723c04
SM
8091 * lisp.h (mark_object): Change prototype.
8092
8093 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
8094 (last_marked): Change accordingly.
8095 (mark_interval, mark_maybe_object, mark_maybe_pointer)
8096 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
8097 (mark_buffer): Update calls to mark_object.
8098
8099 * bytecode.c (mark_byte_stack):
8100 * fns.c (sweep_weak_table):
8101 * keyboard.c (mark_kboards): Update calls to mark_object.
8102
1d660eca
JR
81032003-07-06 Jason Rumney <jasonr@gnu.org>
8104
8105 * alloc.c (struct ablock): Only include padding when there is some.
8106
618b5ae4
SM
81072003-07-04 Stefan Monnier <monnier@cs.yale.edu>
8108
8109 * alloc.c (ALIGN): Add casts to simplify usage.
8110 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
8111 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
8112 (struct ablock, struct ablocks): New types.
8113 (free_ablock): New global var.
8114 (lisp_align_malloc, lisp_align_free): New functions.
8115 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
8116 (struct float_block): Reorder and add gcmarkbits.
8117 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
8118 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
8119 (init_float, make_float): Use lisp_align_malloc.
8120 (free_float, live_float_p): Don't use `type' any more.
8121 (make_float): Use FLOAT_UNMARK to access to mark bit.
8122 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
8123 Use FLOAT_MARKED_P to access the mark bit.
8124 (pure_alloc): Simplify use of ALIGN.
8125 (mark_object): Use FLOAT_MARK to access the mark bit.
8126 (gc_sweep): Use new macros to access the float's mark bit.
8127 (init_alloc_once): Init free_ablock.
8128
8129 * lisp.h (struct Lisp_Float): Remove unused field `type'.
8130
3ef06d12
SM
81312003-06-27 Stefan Monnier <monnier@cs.yale.edu>
8132
8133 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
8134 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
8135 (allocate_buffer): Move.
8136 (string_bytes): Don't mask markbit of `size_byte'.
8137 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8138 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
8139 Use the `size' field of buffers (rather than the `name' field) for
8140 the mark bit, as is done for all other vectorlike objects.
8141 Use the new macros to access the mark bit of vectorlike objects.
8142
e81043aa
RS
81432003-06-26 Richard M. Stallman <rms@gnu.org>
8144
8145 * puresize.h (BASE_PURESIZE): Increment base size.
8146
8147 * xdisp.c (fast_find_position): Enable Gerd's new definition.
8148
8149 * xterm.c (xim_initialize): Undo previous change.
8150
2d0834cc
SM
81512003-06-26 Stefan Monnier <monnier@cs.yale.edu>
8152
8153 * alloc.c (survives_gc_p): Simplify.
8154
8155 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
8156
8157 * window.c (Fset_window_dedicated_p): Simplify.
8158 (display_buffer_1): Don't raise the win from which minibuf was entered.
8159 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
8160 (Fminibuffer_selected_window): Simplify.
8161
8162 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
8163
8164 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
8165 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
8166
8167 * insdel.c (check_markers, adjust_markers_for_delete)
8168 (adjust_markers_for_insert, adjust_markers_for_replace)
8169 (prepare_to_modify_buffer, RESTORE_VALUE):
8170 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
8171 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
8172 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
8173 * alloc.c (Fmake_marker, free_marker, gc_sweep):
8174 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
8175 * editfns.c (save_excursion_restore, transpose_markers):
8176 * window.c (delete_window):
8177 * xdisp.c (message_dolog): Update for new types.
8178
d54ae3d8
JD
81792003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8180
a5f696ac
JD
8181 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
8182 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 8183 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
8184
8185 * frame.c (make_frame): Initialize default_face_done_p.
8186
8187 * frame.h (struct frame): Add default_face_done_p.
8188
d54ae3d8
JD
8189 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
8190 will be defined.
8191
2336fe58
SM
81922003-06-25 Stefan Monnier <monnier@cs.yale.edu>
8193
8194 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
8195 Initialize the new field `gcmarkbit'.
8196 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
8197 (mark_interval_tree): Don't mark the tree separately from the nodes.
8198 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
8199 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8200 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
8201
8202 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
8203 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
8204 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
8205 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
8206 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
8207
bcea31c2
DL
82082003-06-24 Dave Love <fx@gnu.org>
8209
8210 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
8211
8212 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
8213 from gnulib.
8214
2601f59e
RS
82152003-06-21 Richard M. Stallman <rms@gnu.org>
8216
8217 * fileio.c (Fwrite_region): Alternate messages
8218 for append and partial write.
8219
8220 * keyboard.c (read_key_sequence): When converting upcase fn key to
8221 downcase, update fkey and keytran so `backspace' gets translated.
8222
8223 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
8224
8225 * process.c (wait_reading_process_input): Don't signal SIGIO
8226 in batch mode.
8227
b5d2c621
KH
82282003-06-17 Kenichi Handa <handa@m17n.org>
8229
8230 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
8231 composite.h.
8232
8233 * xselect.c: Don't include charset.h, coding.h, composite.h.
8234 (Qforeign_selection): New variable.
8235 (syms_of_xselect): Intern and static it.
8236 (selection_data_to_lisp_data): Return a unibyte string made from
8237 data with `foreign-selection' text property.
8238
6793bc63
SM
82392003-06-15 Stefan Monnier <monnier@cs.yale.edu>
8240
8241 * termhooks.h (EVENT_INIT): New macro.
8242
8243 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
8244
8245 * alloc.c (mark_kboards): Move to keyboard.c.
8246
8247 * keyboard.c (record_asynch_buffer_change, read_avail_input):
8248 * xterm.c (x_dispatch_event):
8249 * xmenu.c (find_and_call_menu_selection):
8250 * xdisp.c (handle_tool_bar_click):
8251 * w32menu.c (menubar_selection_callback):
8252 * sysdep.c (kbd_input_ast, read_input_waiting):
8253 * msdos.c (dos_rawgetc):
8254 * macterm.c (mac_check_for_quit_char):
8255 * macmenu.c (menubar_selection_callback):
8256 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
8257 data to kbd_buffer_store_event.
8258
b3ea810c
KS
82592003-06-15 Kim F. Storm <storm@cua.dk>
8260
8261 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 8262 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 8263
b8f75eda
KG
82642003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8265
8266 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
8267
ba92ce48
KH
82682003-06-12 Kenichi Handa <handa@m17n.org>
8269
8270 * fileio.c (Fwrite_region): Save and restore restriction.
8271
b80263be
DL
82722003-06-12 Dave Love <fx@gnu.org>
8273
8274 * alloca.c (alloca): Declare arg as size_t.
8275
6793bc63
SM
8276 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
8277 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 8278
b23c0a83
DL
82792003-06-11 Dave Love <fx@gnu.org>
8280
8281 * search.c (shrink_regexp_cache): Use xrealloc.
8282 (syms_of_search): Use xmalloc.
8283
700e47c2
KS
82842003-06-10 Kim F. Storm <storm@cua.dk>
8285
8286 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
8287 Adjust phys_cursor.x to be relative to window box, rather than
8288 text area before checking -- to ensure cursor is redrawn when
8289 exposing window.
8290 Note: This also fixes a similar (older) bug if display margins
8291 are present.
8292
f11aa0b2
KH
82932003-06-06 Kenichi Handa <handa@m17n.org>
8294
8295 * coding.c (encoding_buffer_size): If coding->type is
8296 coding_type_ccl, double magnification on CRLF encoding.
8297
3d143690
JR
82982003-06-06 Jason Rumney <jasonr@gnu.org>
8299
8300 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
8301 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
8302
8303 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
8304 Mac too.
8305
f16205ca
DL
83062003-06-05 Dave Love <fx@gnu.org>
8307
b23c0a83
DL
8308 * strftime.c: Merge changes from gnulib.
8309
f16205ca
DL
8310 * mktime.c (__mktime_internal): Merge changes from gnulib
8311 involving year 69 and dst2.
8312
8313 Changes to merge with gnulib version and be consistent with the
8314 autoconf test:
8315
6793bc63
SM
8316 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
8317 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
8318 [HAVE_LOCALE_H]: Include locale.h.
8319 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
8320
9b87a0bc
KS
83212003-06-05 Kim F. Storm <storm@cua.dk>
8322
8323 * window.c (coordinates_in_window): Convert X and Y to window
8324 relative coordinates inside mode-line and header-line parts.
8325 Convert X and Y to margin area relative coordinates inside left
8326 and right display margin parts.
8327
5a8a15ec
JR
83282003-06-05 Jason Rumney <jasonr@gnu.org>
8329
8330 * w32fns.c (add_system_logical_colors_to_map): New function.
8331 (Fx_open_connection): Use it.
8332
01ed8ff1
SM
83332003-06-04 Stefan Monnier <monnier@cs.yale.edu>
8334
8335 * process.c (allocate_pty): Revert part of the previous patch.
8336 (Faccept_process_output): Simplify.
8337
b427b65d
JR
83382003-06-04 Jason Rumney <jasonr@gnu.org>
8339
8340 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
8341
8342 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
8343 (lispy_mouse_wheel_names): Remove.
8344 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
8345 Always define drag_and_drop_syms.
8346
8347 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
8348 WHEEL_EVENT events.
8349
914a8c47
SM
83502003-06-03 Stefan Monnier <monnier@cs.yale.edu>
8351
01ed8ff1
SM
8352 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
8353
914a8c47
SM
8354 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
8355
adcb132c
JD
83562003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8357
8358 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
8359 menu item label.
8360
be781fa7
RS
83612003-06-03 Richard M. Stallman <rms@gnu.org>
8362
8363 * window.c (Fwindow_edges): Doc fix.
8364 (Fwindow_pixel_edges, Fwindow_inside_edges)
8365 (Fwindow_inside_pixel_edges): New functions.
8366 (syms_of_window): defsubr them.
8367
8368 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
8369 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
8370
914a8c47
SM
83712003-06-02 Stefan Monnier <monnier@cs.yale.edu>
8372
8373 * dispnew.c (Fsit_for): Don't lie about the number of args.
8374
5b07197a
DL
83752003-06-02 Dave Love <fx@gnu.org>
8376
8377 * callproc.c: Use HAVE_FCNTL_H, not USG5.
8378 (syms_of_callproc) <process-environment>: Doc fix.
8379
8380 * doc.c: Use HAVE_FCNTL_H, not USG5.
8381
8382 * xfaces.c (font_rescale_ratio): Fix for K&R.
8383
8384 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
8385
8386 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
8387
8388 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
8389
8390 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
8391 (xg_create_frame_widgets): Use ENCODE_UTF_8.
8392
d7107586 8393 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
8394
8395 * xmenu.c (ENCODE_MENU_STRING): New.
8396 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
8397 Use it.
8398
8399 * coding.h (ENCODE_UTF_8): New.
8400 (Qutf_8): Declare.
8401
8402 * coding.c (Qutf_8): New.
8403 (syms_of_coding): Intern it.
8404
8405 * fns.c: Doc fixes.
8406
7335b336
KH
84072003-06-02 Kenichi Handa <handa@m17n.org>
8408
8409 * buffer.c (Fset_buffer_multibyte): Fix previous change.
8410
914a8c47
SM
84112003-06-01 Stefan Monnier <monnier@cs.yale.edu>
8412
8413 * lread.c (openp): Make sure STR is a string.
8414
9862c135
JR
84152003-06-01 David Ponce <david@dponce.com>
8416
cab27d04 8417 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
8418 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
8419
8420 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
8421 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
8422 (discard_mouse_events): Discard WHEEL_EVENT events too.
8423 (lispy_wheel_names, wheel_syms): New.
8424 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 8425 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 8426 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
8427
8428 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
8429 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8430 WHEEL_EVENT events.
8431
f984e73e
JPW
84322003-05-31 John Paul Wallington <jpw@gnu.org>
8433
8434 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
8435 timer are in lisp/emacs-lisp.
8436
1efcd78f
KH
84372003-05-31 Kenichi Handa <handa@m17n.org>
8438
458c8af4
KH
8439 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
8440 region when a buffer is changed to unibyte.
8441
1efcd78f
KH
8442 * charset.h (VALID_LEADING_CODE_P): New macro.
8443 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
8444
778e2804
KH
8445 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
8446 is nonzero, accept multibyte form of eight-bit-control chars.
8447 (decode_composition_emacs_mule): Likewise.
8448 (decode_coding_emacs_mule): Likewise.
8449 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
8450 multibyte form of eight-bit-control chars.
8451
8452 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
8453 (Finsert_file_contents): If coding-system-for-read is bound to
8454 Qauto_save_coding, use the coding system emacs-mule with special
8455 setting for recovering a file.
8456 (choose_write_coding_system): On auto saving, use the coding
8457 system emacs-mule with special setting for auto saving.
8458 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
8459
034060e4
KH
84602003-05-30 Kenichi Handa <handa@m17n.org>
8461
8462 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
8463 properly before calling ccl_driver.
8464
778e2804 8465 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 8466
cab27d04 8467 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
8468 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
8469 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
8470
595f5aa5
GM
84712003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
8472
8473 * xfaces.c (realize_default_face): Do not abort if lface is
8474 non-existent - reverts change from 2003-05-19.
8475
103e0180
KH
84762003-05-29 Kenichi Handa <handa@m17n.org>
8477
8478 * coding.c (decode_coding_iso2022): Pay attention to the byte
8479 sequence of CTEXT extended segment, and retain those bytes as is.
8480
84812003-05-28 Kenichi Handa <handa@m17n.org>
8482
cab27d04 8483 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
8484 of CODING_REPLACEMENT_CHARACTER.
8485 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
8486 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
8487 check this flag on encoding.
cab27d04
SM
8488 (encode_coding_sjis_big5):
8489 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
8490 (Fset_terminal_coding_system_internal):
8491 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
8492 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
8493
8494 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
8495 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8496 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
8497
ff6a3bfb 84982003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 8499
ff6a3bfb
RS
8500 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
8501
8502 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 8503
1963c428
KS
85042003-05-28 Kim F. Storm <storm@cua.dk>
8505
8506 * xdisp.c (expose_window): Fix error in calculation of
8507 window relative coordinates of area to redisplay.
8508
2b5d4601
JR
85092003-05-27 Jason Rumney <jasonr@gnu.org>
8510
8511 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
8512
1c64a4a2
JB
85132003-05-27 David Ponce <david@dponce.com>
8514
8515 Handle W32 mouse wheel events as mouse click events, like in X.
8516
8517 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
8518 MOUSE_WHEEL_EVENT anymore.
8519
8520 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
8521 Scrolling down/up the mouse wheel is respectively mapped to mouse
8522 button 4 and 5.
8523 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8524 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
8525 WM_MOUSEWHEEL events.
8526
2d031b89
AS
85272003-05-27 Andreas Schwab <schwab@suse.de>
8528
20464fdf
AS
8529 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
8530
2d031b89
AS
8531 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
8532 partially visible line.
8533
8534 * alloc.c (Fgarbage_collect): Fix last change.
8535
97bc76d4
JPW
85362003-05-26 John Paul Wallington <jpw@gnu.org>
8537
8538 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
8539
56613f06
SM
85402003-05-25 Stefan Monnier <monnier@cs.yale.edu>
8541
8542 * window.c (Fset_window_buffer): Add type of `keep_margins'.
8543 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
8544
8545 * window.h (window_box_text_cols): Declare.
8546
8547 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
8548 (x_draw_vertical_border): Remove unused var `f'.
8549
8550 * xfaces.c (build_scalable_font_name): Remove `unused var
8551 pixel_size' warning.
8552
8553 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
8554
8555 * unexelf.c (unexec): Remove `unused var n' warning.
8556
8557 * strftime.c (my_strftime_localtime_r): Remove `defined but
8558 unused' warning.
8559
8560 * process.c (allocate_pty): Remove `unused var stb' and
8561 `cp might be used uninitialized' warnings.
8562
8563 * dispnew.c (mode_line_string): Remove unused var `f'.
8564
8565 * coding.c (find_safe_codings): Remove unused var `i'.
8566
8567 * bytecode.c (Fbyte_code): Remove `unused val' warning.
8568
8569 * buffer.c (Fkill_buffer): Remove unused var `list'.
8570
8571 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
8572
93421a1f
JD
85732003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8574
8575 * frame.c (make_frame): Condition want_fullscreen with
8576 HAVE_WINDOW_SYSTEM.
8577
c4b8aebc
JB
85782003-05-25 Juanma Barranquero <lektu@terra.es>
8579
8580 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
8581 (Fwindow_scroll_bars): Fix typo in docstring.
8582
0416870b
KS
85832003-05-24 Kim F. Storm <storm@cua.dk>
8584
8585 The following changes serve several purposes:
8586
8587 1) Swap the position of fringes and display margins in windows, i.e.
8588 the fringes are now displayed between the margins and the text area
8589 (by default).
8590
8591 2) Allow fringe and scroll bar parameters to be set per-buffer and
8592 per-window (like display margins). Such settings are now stored
8593 in window configurations, preserved when frames are resized, and
9018a88e 8594 copied when windows are split vertically or horizontally.
0416870b
KS
8595 Several bugs related to display margins have been fixed.
8596
8597 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 8598
0416870b
KS
8599 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
8600 rather than FRAME_WIDTH (FRAME_FONT (f)).
8601
8602 5) Introduce a consistent naming of variables, members and macros
8603 depending on whether their value is measured in pixels or in
8604 canonical columns/lines. Pixel dimensions are named *_width and
8605 *_height, while canonical columns/lines are named *_cols and
8606 *_lines. Pixel positions are named *_x and *_y, while column/line
8607 positions are named *_col and *_line.
8608
8609 6) Consolidate more of the X, W32, and MAC gui code by moving
8610 common data into struct frame, and generalize it for the non-gui
8611 case by using suitable defaults.
8612
8613 7) Cleanup and consolidate the macros controlling frame and window
8614 layout into frame.h and window.h, and generalize the use of the
8615 various window_box_* functions (enhanced to handle the new fringe
8616 position and the per-window fringe and scroll bar settings).
8617
8618 * frame.h (struct frame): Rename members height to text_lines,
8619 width to text_cols, window_height to total_lines, window_width to
8620 total_cols, new_height to new_text_lines, new_width to
8621 new_text_cols. All uses changed.
8622 (struct frame): New members which consolidate common members of
8623 x_output, w32_output, and mac_output structures: left_pos,
8624 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
8625 win_gravity, size_hint_flags, border_width, internal_border_width,
8626 line_height, fringe_cols, left_fringe_width, right_fringe_width,
8627 want_fullscreen. All uses changed.
8628 (struct frame): New member column_width contaning the canonical
8629 column width, analogue to line_height. All uses changed.
8630 (struct frame): Rename members scroll_bar_pixel_width to
8631 config_scroll_bar_width, and scroll_bar_cols to
8632 config_scroll_bar_cols. All uses changed.
8633 (struct frame): New member scroll_bar_actual_width which
8634 consolidates and renames the vertical_scroll_bar_extra member of
8635 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 8636 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
8637 from x/w32/macterm.h files. All uses changed. Also change code
8638 which referred to f->output_data...->pixel_height.
cab27d04 8639 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 8640 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 8641 which referred to f->output_data...->pixel_width.
cab27d04 8642 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 8643 Also change code which referred to f->height.
cab27d04 8644 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
8645 Also change code which referred to f->width.
8646 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
8647 to update new_text_lines and new_text_cols members directly.
cab27d04 8648 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 8649 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 8650 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
8651 FRAME_SCROLL_BAR_COLS. All uses changed.
8652 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 8653 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
8654 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
8655 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
8656 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
8657 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
8658 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
8659 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
8660 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
8661 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
8662 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
8663 Unconditionally return line_height member (it now has proper value
8664 also for non-window frames).
8665 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
8666 return new column_width member (rather than the default font width).
8667 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 8668 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
8669 from x/w32/macterm.h files. Unconditionally return corresponding
8670 member of frame structure (they now have proper values also for
8671 non-window frames).
cab27d04 8672 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
8673 Calculate return value from left and right widths.
8674 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
8675 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
8676 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
8677 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
8678 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
8679 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
8680 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 8681 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 8682 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 8683 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 8684 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 8685 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 8686 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 8687 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 8688 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 8689 consolidated from x/mac/w32term.h.
cab27d04 8690 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 8691 consolidated from x/mac/w32term.h.
cab27d04 8692 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 8693 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 8694 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
8695 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
8696
8697 * window.h (struct window): Rename members left to left_col,
8698 top to top_line, height to total_lines, width to total_cols,
8699 left_margin_width to left_margin_cols, right_margin_width to
8700 right_margin_cols, orig_height to orig_total_lines, orig_top to
8701 orig_top_line. All uses changed.
8702 (struct window): New members left_fringe_width, right_fringe_width,
8703 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
8704 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
8705 New macros primarily used to simplify other macros.
8706 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
8707 referred to XINT (w->width).
8708 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
8709 referred to XINT (w->height).
8710 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
8711 referred to XINT (w->width) * canon_x_unit.
8712 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
8713 referred to XINT (w->height) * canon_y_unit.
8714 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
8715 referred to XINT (w->left).
cab27d04 8716 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
8717 all uses and code that referred to XINT (w->left) + XINT (w->width).
8718 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
8719 referred to XINT (w->top).
8720 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
8721 referred to XINT (w->top) + XINT (w->height).
8722 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
8723 referred to XINT (w->left) * canon_x_unit.
8724 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
8725 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
8726 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
8727 referred to XINT (w->top) * canon_y_unit.
8728 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
8729 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
8730 (WINDOW_LEFTMOST_P): New macro.
cab27d04 8731 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 8732 All uses changed.
cab27d04 8733 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 8734 All uses changed.
cab27d04 8735 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
8736 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
8737 Do not exclude left fringe width.
cab27d04 8738 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
8739 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
8740 Do not exclude fringe widths.
8741 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
8742 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
8743 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
8744 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
8745 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
8746 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
8747 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
8748 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
8749 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
8750 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
8751 New macros. Change code which referenced corresponding
8752 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
8753 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
8754 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
8755 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
8756 allow per-window scroll-bar settings.
8757 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
8758 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
8759 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
8760 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
8761 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
8762 FRAME_SCROLL_BAR_WIDTH.
8763 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 8764 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 8765 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 8766 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 8767 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 8768 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 8769 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
8770 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
8771 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8772 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
8773 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
8774 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 8775 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 8776 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
8777 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8778 (window_from_coordinates): Update prototype.
8779 (Fset_window_buffer): Update EXFUN.
8780 (set_window_buffer): Update prototype.
9018a88e 8781
0416870b 8782 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 8783 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
8784 changed.
8785 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
8786 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
8787 internal_border_width is now set to 0 for non-window frames.
8788 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
8789 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
8790 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
8791 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
8792 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
8793 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8794 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8795 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
8796 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 8797 Move to window.h and renamed [see window.h changes].
0416870b
KS
8798 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
8799 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
8800 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
8801 Use WINDOW_TOTAL_LINES.
0416870b
KS
8802 (frame_update_line_height): Remove prototype.
8803
8804 * buffer.h (struct buffer): Rename members measured in columns:
8805 left_margin_width to left_margin_cols, right_margin_width to
8806 right_margin_cols. All uses changed.
8807 New members left_fringe_width, right_fringe_width,
8808 fringes_outside_margins for per-buffer fringe settings.
8809 New members scroll_bar_width and vertical_scroll_bar_type for
8810 per-buffer scroll bar settings.
8811
8812 * buffer.c (init_buffer_once): Set buffer_defaults and
8813 buffer_local_flags for new buffer-local variables
8814 left_fringe_width, right_fringe_width, fringes_outside_margins,
8815 scroll_bar_width, and vertical_scroll_bar_type.
8816 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
8817 default-* variables for them.
8818
8819 * dispnew.c: Make (many) trivial substitutions for renamed and
8820 new macros in dispextern.h, frame.h and window.h.
8821 (mode_line_string): No need to adjust width for mode lines, as it
8822 is already adjusted by the caller.
8823 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 8824
0416870b
KS
8825 * frame.c: Make (many) trivial substitutions for renamed and
8826 new macros in dispextern.h, frame.h and window.h.
8827 (make_frame): Initialize left_fringe_width, right_fringe_width,
8828 fringe_cols, scroll_bar_actual_width, border_width,
8829 internal_border_width, column_width, line_height, x_pixels_diff,
8830 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
8831 members with values suitable for a non-window frames.
8832
8833 * gtkutil.c: Make (many) trivial substitutions for renamed and
8834 new macros in dispextern.h, frame.h and window.h.
9018a88e 8835
0416870b
KS
8836 * indent.c: Make (few) trivial substitutions for renamed and
8837 new macros in dispextern.h, frame.h and window.h.
8838
8839 * keyboard.c: Make (many) trivial substitutions for renamed and
8840 new macros in dispextern.h, frame.h and window.h.
8841 (make_lispy_event): Use window positions returned from
8842 window_from_coordinates when constructing the lisp event for
8843 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
8844 (incorrect) values locally.
8845 (make_lispy_movement): Use window positions returned from
8846 window_from_coordinates when constructing the lisp event, rather
8847 than calculating (incorrect) values locally.
8848
8849 * scroll.c: Make (some) trivial substitutions for renamed and
8850 new macros in dispextern.h, frame.h and window.h.
8851
8852 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
8853 scroll-bars.
8854
8855 * sysdep.c: Make (few) trivial substitutions for renamed and
8856 new macros in dispextern.h, frame.h and window.h.
8857
8858 * term.c: Make (some) trivial substitutions for renamed and
8859 new macros in dispextern.h, frame.h and window.h.
8860
8861 * widget.c: Make (few) trivial substitutions for renamed and
8862 new macros in dispextern.h, frame.h and window.h.
8863
8864 * window.c: Make (many) trivial substitutions for renamed and
8865 new macros in dispextern.h, frame.h and window.h.
8866 (make_window): Initialize new members
8867 left_margin_cols, right_margin_cols, left_fringe_width,
8868 right_fringe_width, fringes_outside_margins, scroll_bar_width,
8869 and vertical_scroll_bar_type.
cab27d04 8870 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 8871 and per-window fringes and scroll-bars.
0416870b 8872 Fix bug related to incorrectly adjusting coordinates by
9018a88e 8873 frame's internal_border_width (the effect normally negible since
0416870b
KS
8874 the internal_border_width is typically 0 or 1 pixel, but very
8875 noticeable for an internal_border_width of e.g. 25 pixels).
8876 Upon successful return (other than ON_NOTHING), the coordinates
8877 are now always properly converted to window relative for the
8878 given display element.
8879 (window_from_coordinates): Add new parameters wx and wy to
8880 return the window relative x and y position in the returned
8881 window and part. A null arg means, don't return the position.
8882 All callers changed.
8883 (adjust_window_margins): New function which may reduce the width
8884 of the display margins if a window's text area is too small after
8885 resizing or splitting windows.
8886 (size_window): Fix bug that did not account for display margin
8887 widths when checking the minimum width of a window; use
8888 adjust_window_margins.
8889 (set_window_buffer): Call Fset_window_fringes and
8890 Fset_window_scroll_bars to setup per-window elements.
8891 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
8892 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
8893 (e.g. after splitting a window or resizing the frame).
8894 All callers changed.
0416870b
KS
8895 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
8896 (Fsplit_window): Duplicate original window's display margin,
8897 fringe, and scroll-bar settings; then call Fset_window_buffer with
8898 KEEP_MARGINS non-nil. This fixes a bug which caused a split
8899 window to only preserve the display margins in one of the windows.
c4b8aebc 8900 When splitting horizontally, call adjust_window_margins on both
0416870b 8901 windows to ensure that the text area of the new windows is non too
f9711de4 8902 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
8903 width of the split window was less than the width of the display
8904 margins.
cab27d04 8905 (window_box_text_cols): Rename from window_internal_width.
9018a88e 8906 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
8907 Fix bug that caused vertical separator to be subtracted also on
8908 window frames. Fix another bug that did not reduce the returned
8909 value by the columns used for display margins.
8910 (window_scroll_line_based): Fix bug related to scrolling too much
8911 when display margins are present (implicitly fixed by the fix to
8912 window_box_text_cols).
8913 (scroll_left, scroll_right): Fix bug related to scrolling too far
8914 by default when display margins are present (implicitly fixed by
8915 the fix to window_box_text_cols).
8916 (struct saved_window): Rename members left to left_col, top to
8917 top_line, width to total_cols, height to total_lines, orig_top to
8918 orig_top_line, orig_height to orig_total_lines. All uses changed.
8919 New members left_margin_cols, right_margin_cols,
8920 left_fringe_width, right_fringe_width, fringes_outside_margins,
8921 scroll_bar_width, and vertical_scroll_bar_type for saving
8922 per-window display elements.
8923 (Fset_window_configuration): Restore display margins, fringes,
8924 and scroll bar settings. This fixes a bug which caused display
8925 margins to be discarded when saving and restoring a window
8926 configuration.
8927 (save_window_save): Save display margins, fringes, and scroll bar
8928 settings. This fixes a bug which caused display margins to be
8929 discarded when saving and restoring a window configuration.
8930 (Fset_window_margins): Do nothing if display margins are not
8931 really changed. Otherwise, call adjust_window_margins to ensure
8932 the text area doesn't get too narrow. This fixes a bug which
f9711de4 8933 could cause Emacs to trap if setting display margins wider than
0416870b
KS
8934 the width of the window.
8935 (Fset_window_fringes): New defun to allow user to specifically set
8936 this window's fringe widths and position vs. display margins.
cab27d04 8937 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
8938 (Fset_window_scroll_bars): New defun to allow user to specifically
8939 set this window's scroll bar width and position.
8940 (Fwindow_scroll_bars): New defun to return window's actual scroll
8941 bar settings.
8942 (compare_window_configurations): Also compare display margins,
8943 fringes, and scroll bar settings.
8944 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8945
8946 * xdisp.c: Make (many) trivial substitutions for renamed and
8947 new macros in dispextern.h, frame.h and window.h.
8948 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 8949 and new fringe vs. display margin position. Note that returned
0416870b
KS
8950 value is no longer guaranteed to be a whole multiple of the frame
8951 column width, since per-window fringes may now be any width.
8952 (window_box_left_offset): New function like window_box_left, but
8953 value is relative to left border of window (rather than frame).
8954 (window_box_right_offset): New function like window_box_right,
8955 but value is relative to left border of window.
8956 (window_box_left): Adapt to per-window fringes and scroll bars,
8957 and new fringe vs. display margin position. Simplify by using
8958 WINDOW_LEFT_EDGE_X and window_box_left_offset.
8959 (window_box): Allow null args for unnecessary return values;
8960 change/simplify relevant callers.
8961 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
8962 and new fringe vs. display margin position.
8963 Use window_box_left_offset and window_box_right_offset
0416870b 8964 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
8965 scroll bars, and new fringe vs. display margin position.
8966 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
8967 (draw_fringe_bitmap): Rework to handle per-window fringes and new
8968 fringe vs. display margin position.
8969 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
8970 (redisplay_window): Adapt to per-window scroll bars.
8971 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
8972 bars, and new fringe vs. display margin position.
8973 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 8974 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
8975 bars, and new fringe vs. display margin position. Fix bug which
8976 increased total width of full_width rows by width of scroll bars
8977 although window's total width already includes that.
8978 (x_fix_overlapping_area): Simplify using window_box_left_offset.
8979 (expose_area): Simplify using window_box_left_offset.
8980 (x_draw_vertical_border): Handle per-window scroll bar settings,
8981 mixing windows with left, right and no scroll bars.
8982
8983 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
8984 where it's used in x_list_fonts (for clarity).
8985 (frame_update_line_height): Remove unused function; functionality
8986 is now done directly when setting the default font in x_set_font.
8987
8988 * xfns.c: Make (many) trivial substitutions for renamed and
8989 new macros in dispextern.h, frame.h and window.h.
8990
8991 * xmenu.c: Make (some) trivial substitutions for renamed and
8992 new macros in dispextern.h, frame.h and window.h.
8993
8994 * xterm.h (struct x_output): Move members left_pos, top_pos,
8995 border_width, pixel_height, pixel_width, line_height,
8996 internal_border_width, vertical_scroll_bar_extra,
8997 left_fringe_width, right_fringe_width, fringe_cols,
8998 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8999 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9000 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9001 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9002 (PIXEL_WIDTH, PIXEL_HEIGHT)
9003 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 9004 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
9005 frame.h and renamed [see frame.h changes].
9006 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9007 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 9008 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 9009 and renamed [see frame.h changes].
9018a88e 9010
0416870b
KS
9011 * xterm.c: Make (several) trivial substitutions for renamed and
9012 new macros in dispextern.h, frame.h and window.h.
cab27d04 9013 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
9014 (scroll_run): Adapt to new fringe position.
9015 (glyph_rect): Use window coordinates returned from
9016 window_from_coordinates rather than frame_to_window_pixel_xy.
9017 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9018 scroll-bars.
9019 (handle_one_xevent): Simplify a USE_GTK conditional.
9020 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9021 (fringes are now inside margins, i.e. always in the clipping area).
9022 All callers changed.
9023 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9024 directly, then call compute_fringe_widths. Don't call
9025 frame_update_line_height.
9026
9027 * w32term.h (struct w32_output): Move members left_pos, top_pos,
9028 border_width, pixel_height, pixel_width, line_height,
9029 internal_border_width, vertical_scroll_bar_extra,
9030 left_fringe_width, right_fringe_width, fringe_cols,
9031 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9032 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9033 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9034 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9035 (PIXEL_WIDTH, PIXEL_HEIGHT)
9036 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 9037 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
9038 frame.h and renamed [see frame.h changes].
9039 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9040 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 9041 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 9042 and renamed [see frame.h changes].
9018a88e 9043
0416870b
KS
9044 * w32term.c: Make (several) trivial substitutions for renamed and
9045 new macros in dispextern.h, frame.h and window.h.
cab27d04 9046 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
9047 (glyph_rect): Use window coordinates returned from
9048 window_from_coordinates rather than frame_to_window_pixel_xy.
9049 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9050 scroll-bars.
9051 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
9052 (fringes are now inside margins, i.e. always in the clipping area).
9053 All callers changed.
9054 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9055 directly, then call compute_fringe_widths. Don't call
9056 frame_update_line_height.
9057
9058 * w32console.c: Make (few) trivial substitutions for renamed and
9059 new macros in dispextern.h, frame.h and window.h.
9060
9061 * w32fns.c: Make (many) trivial substitutions for renamed and
9062 new macros in dispextern.h, frame.h and window.h.
9063
9064 * w32menu.c: Make (few) trivial substitutions for renamed and
9065 new macros in dispextern.h, frame.h and window.h.
9066
9067 * macterm.h (struct mac_output): Move members left_pos, top_pos,
9068 border_width, pixel_height, pixel_width, line_height,
9069 internal_border_width, vertical_scroll_bar_extra,
9070 left_fringe_width, right_fringe_width, fringe_cols,
9071 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9072 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
9073 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9074 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9075 (PIXEL_WIDTH, PIXEL_HEIGHT)
9076 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 9077 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
9078 frame.h and renamed [see frame.h changes].
9079 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9080 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 9081 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 9082 and renamed [see frame.h changes].
9018a88e 9083
0416870b
KS
9084 * macterm.c: Make (several) trivial substitutions for renamed and
9085 new macros in dispextern.h, frame.h and window.h.
cab27d04 9086 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
9087 (glyph_rect): Use window coordinates returned from
9088 window_from_coordinates rather than frame_to_window_pixel_xy.
9089 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9090 scroll-bars.
9091 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9092 (fringes are now inside margins, i.e. always in the clipping area).
9093 All callers changed.
9094 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9095 directly, then call compute_fringe_widths. Don't call
9096 frame_update_line_height.
9097
9098 * macfns.c: Make (several) trivial substitutions for renamed and
9099 new macros in dispextern.h, frame.h and window.h.
9018a88e 9100 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
9101
9102 * macmenu.c: Make (few) trivial substitutions for renamed and
9103 new macros in dispextern.h, frame.h and window.h.
9104
9105 * msdos.h (struct x_output): Remove members left_pos, top_pos,
9106 and line_height, and use corresponding new members in struct
9107 frame. All uses changed.
9108 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
9109 superseeded by corresponding macros in frame.h.
9110
9111 * msdos.c: Make (several) trivial substitutions for renamed and
9112 new macros in dispextern.h, frame.h and window.h.
9113 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 9114 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
9115 (internal_terminal_init): No need to initialize line_height here;
9116 it now defaults to 1.
9117
9018a88e
SM
91182003-05-24 Stefan Monnier <monnier@cs.yale.edu>
9119
9120 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
9121 dropping `down' events.
9122
016bd3c0
AS
91232003-05-24 Andreas Schwab <schwab@suse.de>
9124
9125 * coding.c (find_safe_codings): Fix last change.
9126
4dacadcc
TTN
91272003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
9128
9129 * xfns.c (x_window): Fix typo from 2003-05-21 change.
9130
319830ce
SM
91312003-05-23 Stefan Monnier <monnier@cs.yale.edu>
9132
9018a88e
SM
9133 * xdisp.c (display_mode_element): Increase max depth.
9134 Simplify the error handling code. Use a different error string
9135 for the case where we hit the depth limit.
9136
319830ce
SM
9137 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
9138
9139 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
9140
91412003-05-21 Stefan Monnier <monnier@cs.yale.edu>
9142
9143 * intervals.c (get_local_map): Don't get char-property of previous
9144 point any more: get_pos_property already does it and better.
9145
c67de8ba
DL
91462003-05-21 Dave Love <fx@gnu.org>
9147
9148 [Merged from unicode branch.]
9149
9150 * xfns.c (x_window, x_window): Use use_xim.
9151
9152 * xterm.c (use_xim): Initialize.
9153 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9154 (x_term_init): Maybe set use_xim.
9155
9156 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9157
edd3ff1d
JR
91582003-05-21 Jason Rumney <jasonr@gnu.org>
9159
9160 * unexw32.c (_start): Remove _fmode initialization.
9161
9162 * emacs.c (main) [WINDOWSNT]: Move it here.
9163
463f55ee
DL
91642003-05-20 Dave Love <fx@gnu.org>
9165
9166 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
9167
af253914
RS
91682003-05-19 Richard M. Stallman <rms@gnu.org>
9169
9170 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
9171 as value for QCfont attribute.
9172 (realize_default_face): lface should already exist; crash if not.
9173 Specify 0 for FORCE_P when calling set_lface_from_font_name.
9174
9175 * frame.c (Fignore_event): Doc fix.
9176
1d211019
KH
91772003-05-19 Kenichi Handa <handa@m17n.org>
9178
9179 * coding.c (decode_coding_string): Handle post-read-conversion
9180 even if the coding doesn't require decoding.
9181
4dd68254
RS
91822003-05-18 Richard M. Stallman <rms@gnu.org>
9183
9184 * callproc.c (Fcall_process_region): Doc fix.
9185
14d87dc9
SM
91862003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9187
deca5d96
SM
9188 * lread.c (Fload): Print a message if package is obsolete.
9189
14d87dc9
SM
9190 * window.c (Fselect_window): Add optional `norecord' arg.
9191 (select_window_1): Fold into Fselect_window.
9192 (select_window_norecord): New function.
9193 (temp_output_buffer_show): Use it. Preserve current buffer.
9194
9195 * window.h (Fselect_window): Update declaration.
9196
9197 * window.c (delete_window, Fother_window, Fset_window_configuration):
9198 * minibuf.c (read_minibuf):
9199 * macterm.c (x_new_focus_frame):
9200 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
9201 * callint.c (Fcall_interactively):
9202 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
9203
9204 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
9205
78f52183
DK
92062003-05-17 David Kastrup <dak@gnu.org>
9207
9208 * process.c (read_process_output): Back out change from 2003-03-09.
9209
14d87dc9
SM
92102003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9211
9212 * editfns.c (get_pos_property): Don't assume that `object' = nil.
9213
9214 * textprop.c (text_property_stickiness): New arg `buffer'.
9215
9216 * intervals.h (text_property_stickiness): New arg `buffer'.
9217 (get_pos_property): Declare.
9218
9219 * intervals.c (get_local_map): Use get_pos_property, to obey
9220 stickiness and empty overlays.
9221 (create_root_interval, graft_intervals_into_buffer): Use BEG.
9222 (merge_properties, intervals_equal, merge_properties_sticky):
9223 Use XCAR, XCDR.
9224 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
9225
1fd1cc2f
RS
92262003-05-17 Richard M. Stallman <rms@gnu.org>
9227
4f9f637a
RS
9228 * minibuf.c (read_minibuf): If buffer is empty, record the default
9229 in the history.
9230 (Fminibuffer_complete_word): When deleting the overlap, take account
9231 of its real position.
9232
9233 * fns.c (map_char_table): Fix previous change.
9234
1fd1cc2f
RS
9235 * syntax.c (find_defun_start):
9236 When open_paren_in_column_0_is_defun_start,
9237 return beginning of buffer.
9238
9239 * lisp.h (map_char_table): Declare added arg.
9240
9241 * fns.c (map_char_table): New arg TABLE gets the master table.
9242 All calls changed.
9243 Process default and inheritance, resorting to Faref if necessary.
9244
9245 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
9246 (Faccessible_keymaps): Pass new arg to map_char_table.
9247
9248 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
9249
9250 * casetab.c (set_case_table): Pass new arg to map_char_table.
9251
9252 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
9253
9254 * lisp.h (specbinding_func): New typedef.
9255 (struct specbinding): Use specbinding_func, to put the `volatile'
9256 in the right place.
9257
9258 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
9259 to avoid GCC warning.
14d87dc9 9260
b6189c3b 92612003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 9262
14d87dc9 9263 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 9264
35fb885d
SM
92652003-05-15 Stefan Monnier <monnier@cs.yale.edu>
9266
9267 * keyboard.c (apply_modifiers): Don't fill the other cache.
9268
9a274fbd
SM
92692003-05-14 Stefan Monnier <monnier@cs.yale.edu>
9270
c55b5fad
SM
9271 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
9272
9a274fbd
SM
9273 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
9274 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
9275 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
9276 (Fset_window_configuration, Fcurrent_window_configuration)
9277 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
9278 (Fpos_visible_in_window_p, mark_window_cursors_off)
9279 (window_internal_height, window_internal_width, Frecenter)
9280 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
9281 (replace_buffer_in_all_windows, init_window_once, init_window)
9282 (syms_of_window, keys_of_window): Move from lisp.h.
9283 * lisp.h: Move window.c declarations to window.h.
9284
9285 * bytecode.c: Include window.h.
9286 * emacs.c: Include window.h.
9287
14d87dc9 9288 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
9289 (keyremap): Add `parent' field.
9290 (keyremap_step): Use it. Remove `parent' argument.
9291 (read_key_sequence): Setup and use the new `parent' field.
9292
fd93e331
SM
92932003-05-11 Stefan Monnier <monnier@cs.yale.edu>
9294
9295 * keyboard.c (adjust_point_for_property): Ensure termination.
9296
1c4001a1
SM
92972003-05-10 Stefan Monnier <monnier@cs.yale.edu>
9298
9299 * keyboard.c (follow_key): Remove dead variable `did_meta'.
9300 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
9301 duplicated handling of function-key-map and key-translation-map
9302 in read_key_sequence.
9303 (read_key_sequence): Use them.
9304
9305 * keyboard.c (adjust_point_for_property): Try harder to move point
9306 to the non-sticky end of an invisible property.
9307
9308 * xdisp.c (single_display_prop_intangible_p): Make `space' display
9309 property intangible as well.
9310
780379b1
AS
93112003-05-10 Andreas Schwab <schwab@suse.de>
9312
9313 * xmenu.c (single_menu_item): Change last parameter to void* to
9314 avoid warning.
9315
ca2de342
RS
93162003-05-09 Richard M. Stallman <rms@gnu.org>
9317
9318 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
9319 Bind Qinhibit_modification_hooks to t so there will be no GC.
9320 Rename local `tem' to `save_deactivate_mark'.
9321
9322 * eval.c (specpdl_ptr): Declare volatile.
9323 (unbind_to): Copy the whole binding and decrement specpdl_ptr
9324 before doing the work of unbinding it.
9325
9326 * lisp.h (struct specbinding): Declare elements volatile.
9327 (specpdl_ptr): Declare volatile.
9328
9329 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
9330
9331 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
9332 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
9333
347003be
DL
93342003-05-08 Dave Love <fx@gnu.org>
9335
9336 * coding.c (Vlast_coding_system_used): Doc fix.
9337
5adcec23
JR
93382003-05-07 Jason Rumney <jasonr@gnu.org>
9339
9340 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
9341 when system does not support them.
9342
5fe3b8a4
SM
93432003-05-05 Stefan Monnier <monnier@cs.yale.edu>
9344
9345 * fileio.c (Qwrite_region_annotate_functions): New var.
9346 (build_annotations): Use it to process the global part of the hook.
9347 (syms_of_fileio): Init and staticpro it.
9348
9349 * keyboard.c (safe_run_hooks_error): Display a message instead of
9350 silently ignoring the error.
9351
93522003-05-03 Stefan Monnier <monnier@cs.yale.edu>
9353
9354 * keyboard.c (input_available_signal): Mark static.
9355 (menu_bar_items): Use map_keymap.
9356 (menu_bar_one_keymap): Remove.
9357 (menu_bar_item): Adjust arglist (for use in map_keymap).
9358 Properly hide a second binding when not both are keymaps.
9359
9360 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
9361 (single_keymap_panes): Use it and map_keymap.
9362 (single_menu_item): Use skp as well.
9363
9364 * keymap.h (map_keymap_function_t): New type.
9365 (map_keymap): Declare.
9366
9367 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
9368 (map_keymap_call, Fmap_keymap): New functions.
9369 (syms_of_keymap): Defsubr map-keymap.
9370
4b1b4443
JD
93712003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9372
9373 * gtkutil.c (create_dialog, make_widget_for_menu_item)
9374 (make_menu_item, create_menus, xg_update_menu_item): Don't call
9375 ..._with_mnemonic functions for menu items.
9376
1f816871
KH
93772003-05-01 Kenichi Handa <handa@m17n.org>
9378
9379 * coding.c (coding_system_accept_latin_extra_p): Delete this
9380 function.
9381 (find_safe_codings): Pay attention to
9382 the property tranlsation-table-for-encode of each codings.
9383 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
9384
5ed6ba5b
SM
93852003-05-01 Stefan Monnier <monnier@cs.yale.edu>
9386
9387 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
9388
32c06229
SM
93892003-04-30 Stefan Monnier <monnier@cs.yale.edu>
9390
9391 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
9392
9393 * lisp.h (CHECK): Wrap args in parenthesis.
9394 (specbind): Fix doc: symbol = Qnil is not supported any more.
9395
9396 * bytecode.c (Fbyte_code) <unwind-protect>:
9397 Use Fprogn rather than 0 and Qnil.
9398
9399 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
9400 `double', and `triple' modifiers as well.
9401
ed3c3314
RS
94022003-04-30 Richard M. Stallman <rms@gnu.org>
9403
9404 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
9405
9406 * alloc.c (abort_on_gc): New variable.
9407 (Fgarbage_collect): Abort if abort_on_gc is set.
9408
9409 * lisp.h (abort_on_gc): Add decl.
9410
9411 * eval.c (Fsignal): Clear abort_on_gc.
9412
9413 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 9414 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
9415
9416 * xdisp.c (move_it_vertically_backward): Do the final big else
9417 even if nlines is 0.
9418
9419 * xdisp.c (redisplay_internal): Finish the per-frame loop
9420 even if redisplay is suspended by input.
9421
0b325c12
AC
94222003-04-24 Andrew Choi <akochoi@shaw.ca>
9423
9424 * macterm.c (x_list_fonts): Return all fonts that match if
9425 maxnames = -1.
9426
4e837cd0
KH
94272003-04-25 Kenichi Handa <handa@m17n.org>
9428
9429 * syntax.c (skip_chars): Fix previous change.
9430
9af7511a
KH
94312003-04-24 Kenichi Handa <handa@m17n.org>
9432
9433 * syntax.c (skip_chars): Make the code faster by using the common
9434 technique of *p, *stop, and *endp.
9435
e3b2c21f
JD
94362003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9437
9438 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 9439 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
9440 being updated.
9441
32c06229
SM
94422003-04-19 Stefan Monnier <monnier@cs.yale.edu>
9443
9444 * eval.c (Fapply): Undo last change and add a comment about why.
9445
c6464167
MB
94462003-04-18 Miles Bader <miles@gnu.org>
9447
9448 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
9449 pickier PARSE_MULTIBYTE_SEQ.
9450
e509f168
SM
94512003-04-17 Stefan Monnier <monnier@cs.yale.edu>
9452
9453 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
9454 Use XCDR, XCAR, CONSP.
9455 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
9456 (Fapply): Remove unnecessary GCPRO.
9457
9458 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
9459
9460 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
9461
9462 * buffer.h: Don't hardcode BEG==1.
9463
9464 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
9465
5ceea398
RS
94662003-04-16 Richard M. Stallman <rms@gnu.org>
9467
9468 * xdisp.c (try_window, try_window_reusing_current_matrix):
9469 When at end of window, set window_end_pos to Z-ZV.
9470
9471 * buffer.c (Foverlay_recenter): Doc fix.
9472
e509f168
SM
94732003-04-14 Stefan Monnier <monnier@cs.yale.edu>
9474
9475 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
9476
d243e605
AC
94772003-04-14 Andrew Choi <akochoi@shaw.ca>
9478
9479 * macterm.c (mac_check_for_quit_char): Don't check more often than
9480 once a second.
9481
6901b111
SM
94822003-04-11 Stefan Monnier <monnier@cs.yale.edu>
9483
9484 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
9485 specially, so that they can't hide an implicit switch-frame event.
9486 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
9487 (head_table): Use switch-frame as event_kind for select-window.
9488 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
9489
9490 * editfns.c (Fformat): Lisp_Object/int mixup.
9491 (format2): Remove unused var numargs.
9492
e301806f 94932003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 9494
6901b111 9495 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
9496 (Qafter_insert_file_set_coding): New variable.
9497 (syms_of_fileio): Initialize and staticpro it. Delete declaration
9498 for after-insert-file-adjust-coding-function.
9499 (Finsert_file_contents): Call Qafter_insert_file_set_coding
9500 instead of Vafter_insert_file_adjust_coding_function.
9501
38914424
KH
95022003-04-11 Kenichi Handa <handa@m17n.org>
9503
9504 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
9505
9506 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
9507 string. Callers changed.
9508
95092003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 9510
6901b111 9511 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 9512 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
9513 (Finsert_file_contents):
9514 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
9515 decode-format.
9516
f979dc05
JD
95172003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9518
9519 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
9520 get GtkAdjustment as widget now is a GtkRange.
9521
9522 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
9523 GtkRange to avoid memory leak.
9524
f8c6b4c2 95252003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 9526
50ebc53d
KH
9527 * xfaces.c (Vface_font_rescale_alist): New variable.
9528 (struct font_name): New member rescale_ratio.
9529 (font_rescale_ratio): New function.
6901b111 9530 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
9531 (better_font_p): On comparing point sized, pay attention to
9532 recale_ratio member of fonts.
9533 (build_scalable_font_name): Reflect font->rescale_ratio in the
9534 font name.
6901b111 9535 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 9536
cb98871c
KH
9537 * lread.c (read1): Before calling index, check if the 2nd
9538 arguemnt is in ASCII range.
9539
4773b8ca
RS
95402003-04-08 Richard M. Stallman <rms@gnu.org>
9541
b0ada147
RS
9542 * fileio.c (Ffile_symlink_p): Doc fix.
9543
9544 * editfns.c (Fformat): Translate positions of text properties
9545 in the format string to apply them to the result.
9546
4773b8ca
RS
9547 * fileio.c (Finsert_file_contents): Doc fix.
9548 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
9549
95502003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 9551
4773b8ca
RS
9552 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
9553
e8f25745 95542003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 9555
e8f25745
ST
9556 * mac.c (init_mac_osx_environment): Switch libexec and bin so
9557 that self-contained application finds libexec files.
9558
f8c6b4c2 95592003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 9560
6901b111
SM
9561 * coding.c (code_convert_region_unwind):
9562 Set Vlast_coding_system_used to the argument.
2310d84c
KH
9563 (code_convert_region): If post-read-conversion function changed
9564 the value of last-coding-sytem, keep the new value in
9565 coding->symbol so that it won't be overridden.
9566 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
9567 (coding_system_accept_latin_extra_p): New function.
9568 (find_safe_codings): Pay attention to characters registered in
9569 latin-extra-code-table.
2310d84c 9570
39c9a034
TTN
95712003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
9572
9573 * Makefile.in (md5.o): Add missing dependency info.
9574
eb67c5d6
RS
95752003-04-06 Richard M. Stallman <rms@gnu.org>
9576
9577 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
9578
9579 * marker.c (verify_bytepos): New function.
9580
9581 * intervals.c (set_intervals_multibyte_1): When becoming
9582 multibyte, adjust right and left child sizes to a whole set of
9583 characters. If an interval gets zero total-length, delete it.
9584 If an interval consists of just its children, delete one of them.
9585
9586 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
9587 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 9588
eb67c5d6
RS
9589 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
9590 All calls deleted.
9591 (lisp_malloc): Do the work here directly.
9592
b1f81fc5
JB
95932003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
9594
9595 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
9596 char tables.
9597
95982003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
9599
9600 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
9601 destructively change "%S" to "%s".
9602
774666fb
MB
96032003-04-03 Miles Bader <miles@gnu.org>
9604
9605 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
9606 always set.
9607
19c37f01
DL
96082003-04-01 Dave Love <fx@gnu.org>
9609
9610 * xfns.c (xpm_lookup_color): Grok "opaque".
9611
2f4b24c3
AC
96122003-03-31 Andrew Choi <akochoi@shaw.ca>
9613
9614 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
9615 parent window ID.
9616
9617 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
9618
9619 * macterm.h (struct mac_output): Define x_pixels_diff and
9620 y_pixels_diff.
b1f81fc5 9621
9443fcf6
JB
96222003-03-31 Juanma Barranquero <lektu@terra.es>
9623
9624 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
9625 blockinput.h and files included from it.
9626
e072891b
KS
96272003-03-31 Kim F. Storm <storm@cua.dk>
9628
9629 The following changes consolidates the common code related to
9630 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
9631 files into frame.c.
9443fcf6 9632
e072891b
KS
9633 * frame.c: Include blockinput.h.
9634 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
9635 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
9636 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
9637 related vars here.
9638 (struct frame_parm_table, frame_parms): New table for describing
9639 frame parameters and their associated Q-variable.
9640 The order of the parameters corresponds to the sequence of the
9641 frame_parm_handlers table in redisplay_interface.
9642 (x_fullscreen_move, x_set_frame_parameters)
9643 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
9644 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
9645 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9646 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
9647 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
9648 Generic functions for processing of frame parameters.
9649 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
9650 (display_x_get_resource, x_get_resource_string): Functions for
9651 generic access to X resources.
9652 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9653 (x_default_parameter, Fx_parse_geometry): Functions for generic
9654 access to frame parameters.
6901b111
SM
9655 (x_figure_window_size): Generic calculation of frame size.
9656 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
9657 (syms_of_frame): Intern and staticpro frame parameter variables.
9658 Defvar_lisp Vx_resource_class and Vx_resource_name here.
9659 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 9660
e072891b
KS
9661 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
9662 parameter related vars defined in frame.c.
9663 (EMACS_CLASS): Define here.
9664 (enum FULLSCREEN_*): Define here.
9665 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
9666 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
9667 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
9668 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
9669 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
9670 (x_set_visibility, x_set_autoraise, x_set_autolower)
9671 (x_set_unsplittable, x_set_vertical_scroll_bars)
9672 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
9673 (x_figure_window_size): Add prototypes.
9674
9675 * dispextern.h (frame_parm_handler): New typedef.
9676 (struct redisplay_interface): New member frame_parm_handlers.
9677 (enum resource_types): Move declaration here.
9678 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9679 (x_default_parameter): Add prototypes.
9680
9681 * window.c: Remove extern decl for frame parameter vars.
9682 (change_window_heights): New generic function;
9683 replaces x_change_window_heights. All users changed.
9684
9685 * window.h (change_window_heights): Add prototype.
9686
9687 * xfaces.c: Remove extern decl for frame parameter vars.
9688
9689 * xterm.h (EMACS_CLASS): Remove. Use generic define.
9690 (struct w32_display_info): Fix type of xrdb member.
9691 (enum FULLSCREEN_*): Remove.
9692 Remove prototypes for generic functions (in frame.h).
9693
9694 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9695 parameters now defined in frame.h and frame.c.
f63fd14e 9696 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9697 (enum x_frame_parms): Remove (bogus, unused enum).
9698 (check_x_display_info): Make non-static (for frame.c).
9699 (struct x_frame_parm_table, x_frame_parms): Remove.
9700 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9701 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9702 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9703 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9704 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9705 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9706 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9707 Remove. Use generic functions instead.
9708 (enum resource_types): Remove.
9709 (x_set_scroll_bar_default_width): New global function (for frame.c).
9710 (Fx_create_frame): Depend on x_figure_window_size to add space for
9711 toolbar and setup size_hint_flags.
9712 (x_frame_parm_handlers): New table for redisplay_interface.
9713 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 9714
e072891b 9715 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 9716 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
9717 (x_redisplay_interface): Add x_frame_parm_handlers member.
9718
9719 * w32gui.h (XrmDatabase): New (dummy) typedef.
9720
9721 * w32term.h (EMACS_CLASS): Remove. Use generic define.
9722 (struct w32_display_info): Fix type of xrdb member.
9723 (enum FULLSCREEN_*): Remove.
9724 (x_fullscreen_adjust): Remove prototype.
9725
9726 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9727 parameters now defined in frame.h and frame.c.
f63fd14e 9728 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9729 (enum x_frame_parms): Remove (bogus, unused enum).
9730 (check_x_display_info): Make non-static (for frame.c).
9731 (struct x_frame_parm_table, x_frame_parms): Remove.
9732 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9733 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9734 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9735 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9736 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9737 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9738 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9739 Remove. Use generic functions instead.
9740 (enum resource_types): Remove.
9741 (x_set_scroll_bar_default_width): New global function (for frame.c).
9742 (Fx_create_frame): Depend on x_figure_window_size to add space for
9743 toolbar and setup size_hint_flags.
9744 (w32_frame_parm_handlers): New table for redisplay_interface.
9745 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 9746
e072891b
KS
9747 * w32term.c: Remove unnecessary extern declarations.
9748 (x_fullscreen_adjust): Remove. Use generic instead.
9749 (x_redisplay_interface): Add w32_frame_parm_handlers member.
9750
9751 * w32reg.c (x_get_string_resource): Use XrmDatabase.
9752
9753 * macgui.h (XrmDatabase): New (dummy) typedef.
9754
9755 * macterm.h (EMACS_CLASS): Remove.
9756 (struct mac_display_info): Add xrdb member.
9757 (struct mac_output): Add want_fullscreen member.
9758
9759 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9760 parameters now defined in frame.h and frame.c.
f63fd14e 9761 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
9762 (check_x_display_info): Make non-static (for frame.c).
9763 (struct x_frame_parm_table, x_frame_parms): Remove.
9764 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9765 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9766 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9767 (x_change_window_heights, x_set_autoraise, x_set_autolower)
9768 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9769 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9770 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9771 Remove. Use generic functions instead.
9772 (enum resource_types): Remove.
9773 (x_set_scroll_bar_default_width): New global function (for frame.c).
9774 (mac_frame_parm_handlers): New table for redisplay_interface.
9775 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 9776
e072891b
KS
9777 * macterm.c: Remove unnecessary extern declarations.
9778 (x_redisplay_interface): Add mac_frame_parm_handlers member.
9779
3e6a560b
KS
9780 * Makefile.in (frame.o): Add dependency on blockinput.h and files
9781 included from it (atimer.h and systime.h).
9782
7b7b454e
AS
97832003-03-30 Andreas Schwab <schwab@suse.de>
9784
9785 * xdisp.c (x_insert_glyphs): Fix swapped width and height
9786 parameters for shift_glyphs_for_insert.
9787
9788 * macterm.c (x_redisplay_interface): Add missing entry for
9789 draw_vertical_window_border.
9790
beb402de
KG
97912003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
9792
9793 * fileio.c (Fexpand_file_name): In the no-handler case, after
9794 expanding, look again for a handler and invoke it. This is needed
9795 for filenames like "/foo/../user@host:/bar/../baz" -- the first
9796 expansion produces "/user@host:/bar/../baz" which needs to be
9797 expanded again for the finame result "/user@host:/baz".
9798
b676f356
JD
97992003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9800
9801 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
9802 of area to be redrawn for better performance.
9803
3c671a56
SM
98042003-03-28 Stefan Monnier <monnier@cs.yale.edu>
9805
9806 * xterm.c (take_vertical_position_into_account): Remove.
9807 (xt_action_hook): Call set_vertical_scroll_bar if needed.
9808 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
9809 (xm_scroll_callback, x_create_toolkit_scroll_bar)
9810 (x_set_toolkit_scroll_bar_thumb): Simplify.
9811 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
9812 (XTread_socket): Remove unused var.
9813 (x_make_frame_invisible): Replace goto with else.
9814
9815 * xdisp.c (set_vertical_scroll_bar): New fun.
9816 (redisplay_window): Use it.
9817
84f2e615
RS
98182003-03-26 Richard M. Stallman <rms@gnu.org>
9819
9820 * xdisp.c (update_tool_bar): Recompute tool bar if
9821 update_mode_lines is set. Set w->update_mode_line
9822 only if the tool bar contents actually change.
9823 (update_menu_bar): Undo previous change.
9824
70b6104c
JD
98252003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9826
5fd6f727
JD
9827 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
9828 (xg_frame_set_char_size): Calculate scroll bar width before frame
9829 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
9830 (xg_separator_p): Check for all documented separator types.
9831 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
9832 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
9833
70b6104c
JD
9834 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
9835 so tool bar gets updated.
9836
d9b36d19
SM
98372003-03-26 Stefan Monnier <monnier@cs.yale.edu>
9838
9839 * data.c (store_symval_forwarding): Re-instate part of the code
9840 that was deleted with too much enthusiasm.
9841
98422003-03-25 Stefan Monnier <monnier@cs.yale.edu>
9843
9844 * data.c (store_symval_forwarding): Delete special read-only
9845 hack for type == -1, since we now use ->constant instead.
9846 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
9847
9848 * buffer.c (overlays_in): Declare static.
9849 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
9850 `constant' field rather than the variable's `type' field.
9851
365fa1b3
AC
98522003-03-24 Andrew Choi <akochoi@shaw.ca>
9853
9854 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
9855
9856 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
9857
9858 * fns.c [MAC_OSX]: Do not redefine vector.
9859
9860 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
9861
9862 * macgui.h: Remove definition of No_Cursor.
9863
d9b36d19 9864 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
9865
9866 * xdisp.c: Define No_Cursor.
9867 (x_write_glyphs, notice_overwritten_cursor)
9868 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
9869 (note_mouse_highlight): Remove Mac-specific code.
9870 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 9871
c0bcce6f
JPW
98722003-03-24 John Paul Wallington <jpw@gnu.org>
9873
9874 * xdisp.c (redisplay_window): If mini window's buffer is not
9875 empty, then redisplay it like other windows.
9876
a526b96c
KS
98772003-03-23 Kim F. Storm <storm@cua.dk>
9878
9879 * w32term.c (w32_draw_window_cursor): Fix last change.
9880
37ab321e
KH
98812003-03-23 Kenichi Handa <handa@m17n.org>
9882
a526b96c
KS
9883 * alloc.c (make_string_from_bytes, make_specified_string):
9884 Add `const' for the arg CONTENTS.
37ab321e
KH
9885
9886 * lisp.h (make_string_from_bytes, make_specified_string):
9887 Prototypes adjusted.
9888
7863d625
JD
98892003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9890
a526b96c 9891 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 9892
7863d625
JD
9893 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9894 (XG_SB_RANGE): New define.
9895
9896 * gtkutil.c (xg_fixed_handle_expose): New function.
9897 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9898 expose events.
9899 (xg_update_scrollbar_pos): Take two more arguments, left and width
9900 of scroll bar including borders.
9901 Clear left and right part outside scroll bar separately as some
9902 themes have bars that are not an even number of pixels.
d9b36d19 9903 Don't set reallocate_redraws, don't call
7863d625
JD
9904 gdk_window_process_all_updates.
9905 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9906 so no need to change it. Calculate size and value with XG_SB_RANGE.
9907
d9b36d19
SM
9908 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9909 Pass left and width of scroll bar including borders to
7863d625
JD
9910 xg_update_scrollbar_pos.
9911
af0ad939
TTN
99122003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
9913
9914 * Makefile.in: Make sure space precedes end-of-line backslashes.
9915
b22139fd
KS
99162003-03-22 Kim F. Storm <storm@cua.dk>
9917
9918 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9919 Add generic versions here. Remove system specific versions
9920 defined elsewhere.
9921
9922 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9923 Add prototypes.
9924
6e6410cf
KS
9925 * xterm.h (STORE_NATIVE_RECT): New macro.
9926
5c9cc435
KS
99272003-03-21 Kim F. Storm <storm@cua.dk>
9928
00c64fab
SM
9929 * xdisp.c (get_glyph_string_clip_rect):
9930 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
9931
9932 * dispextern.h (struct redisplay_interface): Add active_p
9933 argument to draw_window_cursor member. All uses changed.
9934
acd37560
KS
99352003-03-21 Kim F. Storm <storm@cua.dk>
9936
9937 The following changes consolidate code related to writing and
9938 inserting glyphs, exposing frame, the tool bar, the mouse face,
9939 the output cursor, and help echo from xterm.c, w32term.c and
9940 macterm.c into xdisp.c. It also generalizes the use of the
9941 window_part enum instead of using numeric values throughout.
af0ad939 9942
acd37560
KS
9943 * xdisp.c: Consolidate gui-independent code here.
9944 Include keymap.h.
9945 (Qhelp_echo): Import.
9946 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9947 (help_echo_string, help_echo_window, help_echo_object)
9948 (previous_help_echo_string, help_echo_pos): Declare here.
9949 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
9950 (estimate_mode_line_height): Define here. Handle windowing
9951 systems directly (without using estimate_mode_line_height_hook).
9952 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
9953 (update_window_cursor, update_cursor_in_window_tree)
9954 (fast_find_position, fast_find_string_pos)
9955 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
9956 (expose_area, expose_line, expose_overlaps, expose_window)
9957 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
9958 declared static as they are only used locally in xdisp.c.
9959 (draw_glyphs): Rename from x_draw_glyphs and make static.
9960 (tool_bar_item_info, notice_overwritten_cursor): Make static.
9961 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9962 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 9963 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
9964 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9965 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
9966 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
9967 (note_mouse_highlight, x_clear_window_mouse_face)
9968 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
9969 (x_intersect_rectangles): New generic functions for use by xdisp.c
9970 and GUI front-ends.
9971 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
9972 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
9973
9974 * dispextern.h (Display_Info): Generic typedef for *_display_info.
9975 (NativeRectangle): Generic typedef for rectangle type.
9976 (enum window_part): Move here from window.c.
9977 (struct redisplay_interface): New members flush_display_optional,
9978 define_frame_cursor, clear_frame_area, draw_window_cursor,
9979 draw_vertical_window_border, shift_glyphs_for_insert.
9980 Rename member clear_mouse_face to clear_window_mouse_face.
9981 (estimate_mode_line_height_hook): Remove hook.
9982 (auto_raise_tool_bar_buttons_p): Don't declare extern.
9983 (tool_bar_item_info): Remove prototype.
9984 (help_echo_string, help_echo_window, help_echo_object)
9985 (previous_help_echo_string, help_echo_pos)
9986 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
9987 (x_stretch_cursor_p, output_cursor): Declare extern.
9988 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
9989 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
9990 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9991 (display_and_set_cursor, set_output_cursor, x_cursor_to)
9992 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
9993 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9994 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
9995 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
9996 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
9997 Add prototypes.
9998 (mode_line_string, marginal_area_string): Fix prototypes.
9999
10000 * window.c (enum window_part): Move to dispextern.h.
10001 (coordinates_in_window): Use enum window_part member names
10002 instead of numbers to describe return value.
10003 (struct check_window_data): Change part member to window_part.
10004 (check_window_containing): Return window_part unaltered.
10005 (window_from_coordinates): Change part arg from int to enum
10006 window_part. Allow part arg to be null. All users changed.
10007
10008 * window.h (window_from_coordinates): Fix prototype.
10009
10010 * term.c (estimate_mode_line_height): Move to xdisp.c.
10011
10012 * keyboard.c (make_lispy_event): Use enum window_part.
10013
10014 * dispnew.c (mode_line_string, marginal_area_string): Use enum
10015 window_part instead of int in arg list. Users changed.
10016
10017 * xterm.h (No_Cursor): Declare as None for X.
10018 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 10019
acd37560
KS
10020 * xterm.c: Remove consolidated defines and code.
10021 (BETWEEN): Remove unused macro.
10022 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
10023 (x_define_frame_cursor, x_clear_frame_area)
10024 (x_draw_window_cursor): New X-specific functions for RIF.
10025 (x_redisplay_interface): Add new members.
10026
10027 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
10028
10029 * w32term.h (struct w32_output): Remove cross_cursor member.
10030
10031 * w32term.c: Remove consolidated defines and code.
10032 (BETWEEN): Remove unused macro.
10033 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
10034 (w32_define_frame_cursor, w32_clear_frame_area)
10035 (w32_draw_window_cursor): New W32-specific functions for RIF.
10036 (w32_redisplay_interface): Add new members.
10037
a64387ee 10038 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
10039 (XRectangle): Add X compatible rectangle type.
10040 (NativeRectangle): Declare as RECT for W32.
10041 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10042
10043 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
10044
10045 * w32console.c: Remove consolidated defines and code.
af0ad939 10046
acd37560
KS
10047 * msdos.h (Display_Info): Add generic typedef.
10048
10049 * msdos.c: Remove consolidated defines and code.
10050 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
10051
10052 * macterm.h (struct mac_output): Replace member cross_cursor by
10053 hand_cursor.
10054 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
10055
10056 * macterm.c: Remove consolidated defines and code.
10057 (BETWEEN): Remove unused macro.
10058 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
10059 (mac_define_frame_cursor, mac_clear_frame_area)
10060 (mac_draw_window_cursor): New Mac-specific functions for RIF.
10061 (x_redisplay_interface): Add new members.
10062
10063 * macgui.h (No_Cursor): Define as 0 for Mac.
10064 (XRectangle): Add X compatible rectangle type.
10065 (NativeRectangle): Declare as Rect for Mac.
10066 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10067
204ccab1
KS
10068 * macfns.c (x_set_mouse_color): Setup hand_cursor.
10069 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 10070
9443fcf6 10071 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
10072 included from it. Add dependency on keymap.h.
10073
10074 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
10075
8ba01a70 100762003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
10077
10078 * fileio.c (Fexpand_file_name): Fix previous change.
10079
8ba01a70 100802003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
10081
10082 * fileio.c (Ffile_name_directory): Reconstruct file name by
10083 make_specified_string.
10084 (Ffile_name_nondirectory, Ffile_name_as_directory)
10085 (Fdirectory_file_name, Fexpand_file_name)
10086 (Fsubstitute_in_file_name): Likewise.
10087 (Fread_file_name): Compare decoded homedir with DIR and
10088 DEFAULT_FILENAME.
10089
10090 * alloc.c (make_specified_string): If NCHARS is negative, count
10091 the number of characters.
10092
19536747
JD
100932003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10094
de38ae5a
JD
10095 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
10096 all widgets.
10097
19536747
JD
10098 * gtkutil.h: Removed xg_ignore_next_thumb.
10099
37ab321e 101002003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
10101
10102 * coding.c (Vchar_coding_system_table): Remove this variable.
10103 (Vcoding_system_safe_chars): New variable.
10104 (intersection): Remove this function.
10105 (find_safe_codings): Don't use Vchar_coding_system_table, but try
10106 all codings in SAFE_CODINGS.
00c64fab 10107 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
10108 find_safe_codings. Get generic coding systems from
10109 Vcoding_system_safe_chars.
10110 (Fdefine_coding_system_internal): New function.
10111 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
10112 Initialize and staticpro Vcoding_system_safe_chars.
10113
17097258
JD
101142003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10115
2a2071c3
JD
10116 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
10117 equal old values before updating.
10118
17097258
JD
10119 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
10120
10121 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
10122
101232003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10124
10125 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
10126 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
10127 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
10128 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
10129 (xg_create_scroll_bar): Pass bar to button event callback.
10130 (xg_find_top_left_in_fixed): New function.
10131 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
10132 whole scroll bar area. Get old position with
10133 xg_find_top_left_in_fixed, calculate and only clear needed areas.
10134 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
10135 dragging is in progress. Calculate whole as for Motif.
10136 Remove code that saved last values. Call gtk_range functions to
10137 set scroll bar sizes.
10138
10139 * gtkutil.h: Removed xg_ignore_next_thumb.
10140
8cb9dfbf
JB
101412003-03-17 Juanma Barranquero <lektu@terra.es>
10142
10143 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
10144 and files included from it.
10145
00c64fab
SM
101462003-03-18 Stefan Monnier <monnier@cs.yale.edu>
10147
10148 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
10149 multiple occurrences of the same keymap under different prefixes.
10150 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
10151
c45bb3b2
JR
101522003-03-16 Jason Rumney <jasonr@gnu.org>
10153
10154 * w32gui.h: Use HDC for Display.
10155
10156 * w32term.c (w32_encode_char): Prevent double-byte chars from
10157 crashing Emacs.
10158
10159 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
10160 as binary.
10161
2a6d0874
JB
101622003-03-16 Juanma Barranquero <lektu@terra.es>
10163
10164 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
10165
03eb5fab
KS
101662003-03-16 Kim F. Storm <storm@cua.dk>
10167
10168 The following changes consolidate some of the gui-independent
10169 parts of the processing and drawing of "glyph strings" from
10170 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 10171
03eb5fab
KS
10172 * dispextern.h (struct glyph): Reduce face_id member from 22 to
10173 21 bits (this reduces number of faces from 4M to 2M).
10174 Replace W32 specific w32_font_type member (2 bits) by generic
10175 font_type member (3 bits) for portability.
10176 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
10177 (enum draw_glyphs_face): Define here.
10178 (struct glyph_string): Define here. Merge W32 and X versions.
10179 (struct redisplay_interface): New members per_char_metric,
10180 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
10181 (VCENTER_BASELINE_OFFSET): Define here.
10182 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
10183 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
10184
10185 * xdisp.c: Consolidate gui-independent "glyph string" code here.
10186 (dump_glyph_string): Moved here.
10187 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
10188 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
10189 (fill_composite_glyph_string, fill_glyph_string)
10190 (fill_image_glyph_string, fill_stretch_glyph_string)
10191 (left_overwritten, left_overwriting, right_overwritten)
10192 (right_overwriting, get_char_face_and_encoding)
10193 (set_glyph_string_background_width, compute_overhangs_and_x)
10194 (append_glyph, append_composite_glyph, produce_image_glyph)
10195 (take_vertical_position_into_account, append_stretch_glyph)
10196 (produce_stretch_glyph): New generic functions (based on X version).
10197 Call platform specific functions through rif.
10198 (INIT_GLYPH_STRING): New macro, hides W32 details.
10199 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
10200 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
10201 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
10202 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
10203 (notice_overwritten_cursor):
10204 Generic functions exported to platform modules. Users changed.
10205
10206 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
10207 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
10208 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 10209 New macros for consolidated code.
2a6d0874 10210
03eb5fab
KS
10211 * xterm.c: Remove consolidated defines and code.
10212 (x_per_char_metric, x_encode_char)
10213 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
10214 (x_redisplay_interface): Add new members.
10215
10216 * w32gui.h (Display): Add dummy typedef for consolidation.
10217 (XChar2b): Define alias for wchar_t for consolidation.
10218 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10219
10220 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 10221 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
10222 New macros for consolidation.
10223
fad49844 10224 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
10225 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
10226 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
10227 (w32_per_char_metric): Change font_type arg to int for RIF.
10228 (w32_encode_char): Return int according to RIF requirements.
10229 (w32_compute_glyph_string_overhangs): Adapt to RIF.
10230 (w32_get_glyph_overhangs): New function for RIF. Uses generic
10231 x_get_glyph_overhangs.
10232 (w32_redisplay_interface): Add new members.
10233
10234 * macgui.h (XChar2b): Move typedef here for consolidation.
10235 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10236
10237 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
10238 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
10239 consolidation.
10240
10241 * macterm.c: Remove consolidated defines and code.
10242 (mac_per_char_metric): New function for RIF.
00c64fab 10243 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
10244 (mac_compute_glyph_string_overhangs): Adapt for RIF.
10245 (x_redisplay_interface): Add new members.
10246
00c64fab
SM
102472003-03-15 Stefan Monnier <monnier@cs.yale.edu>
10248
10249 * keymap.c (Vmenu_events): New var.
10250 (syms_of_keymap): Initialize it.
10251 (where_is_internal): Check more carefully what is a menu event.
10252
225c7a07
RS
102532003-03-14 Richard M. Stallman <rms@gnu.org>
10254
10255 * lread.c (read1): After #!, exit loop on eof.
10256
cea9be54
JD
102572003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10258
9ea0e54d
JD
10259 * gtkutil.h: Add declaration for xg_frame_cleared.
10260
0cb35f4e
JD
10261 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
10262
cea9be54
JD
10263 * gtkutil.c (struct xg_last_sb_pos): New structure.
10264 (handle_fixed_child): New function.
10265 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
10266 and force a redraw on them.
10267 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
10268 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
10269 so we can avoid unneeded redraws.
10270 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
10271 and force a redraw on the scroll bar.
10272 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
10273 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 10274 (xg_frame_cleared): New function.
cea9be54 10275
20b853f3
KH
102762003-03-13 Kenichi Handa <handa@m17n.org>
10277
10278 * coding.c (Fdetect_coding_region): Fix docstring.
10279 (Fdetect_coding_string): Fix docstring.
10280
7a555aff
AS
102812003-03-13 Andreas Schwab <schwab@suse.de>
10282
25cc0080
AS
10283 * gtkutil.c: Add prototype for create_menus.
10284
30225431
AS
10285 * data.c (long_to_cons): Fix type of top.
10286
10287 * xselect.c (selection_data_to_lisp_data): Use int instead of
10288 long for an integer of size 4.
10289
7a555aff 10290 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 10291 (xg_tool_bar_help_callback): Likewise.
7a555aff 10292
a3e4741f
AS
102932003-03-12 Andreas Schwab <schwab@suse.de>
10294
10295 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
10296
9668be7c
KS
102972003-03-12 Kim F. Storm <storm@cua.dk>
10298
03eb5fab 10299 The following changes consolidate the fringe handling from
9668be7c 10300 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 10301
9668be7c
KS
10302 * xdisp.c: Consolidate fringe handling code here.
10303 (left_bits, right_bits, continued_bits, continuation_bits)
10304 (ov_bits, zv_bits): Define fringe bitmaps.
10305 (fringe_bitmaps): New array holding fringe bitmaps.
10306 (draw_fringe_bitmap): Draw a specific bitmap; call display
10307 specific drawing routine via rif->draw_fringe_bitmap.
10308 (draw_row_fringe_bitmaps): Generic replacement for
10309 x_draw_row_fringe_bitmaps; all callers changed.
10310 (compute_fringe_widths): Generic replacement for
10311 x_compute_fringe_widths; all callers changed.
10312
10313 * dispextern.h (enum fringe_bitmap_type): Define here.
10314 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
10315 (fringe_bitmaps): Declare extern.
10316 (struct redisplay_interface): New member draw_fringe_bitmap.
10317 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
10318
10319 * xterm.c: Remove generic fringe code.
10320 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10321 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10322
10323 * w32term.c: Remove generic fringe code.
10324 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
10325 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 10326
9668be7c
KS
10327 * macterm.c: Remove generic fringe code.
10328 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10329 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10330
00a88f32
SM
103312003-03-11 Stefan Monnier <monnier@cs.yale.edu>
10332
10333 * print.c (Fprin1_to_string): Return unibyte string if possible.
10334
1d1de695
DK
103352003-03-09 David Kastrup <dak@gnu.org>
10336
10337 * process.c (read_process_output): We have allocated enough space
10338 for readmax and carryover, so actually use the alloted space.
10339
257f40f2
JD
103402003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10341
10342 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
10343 toolkit scrollbar click.
10344
10345 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
10346 for USE_GTK.
10347 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
10348 also.
10349 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
10350 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 10351
78819ebb 10352 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
10353
10354 * gtkutil.c (xg_get_scroll_id_for_window): New function.
10355 (xg_tool_bar_item_expose_callback): New function.
10356 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
10357 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
10358 on the tool bar widget.
10359 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
10360 to expose on the tool bar item widgets.
10361
15213141
JD
103622003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10363
26b74a0b 10364 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 10365 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
10366 deleted from the image cache).
10367
15213141
JD
10368 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
10369 the event isn't for a frame (i.e. for dialogs).
10370
20b853f3 103712003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
10372
10373 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
10374 composition components reaches the limit, terminate composing.
10375 (COMPOSITION_OK): New macro.
00a88f32 10376 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
10377 composition is found.
10378 (coding_restore_composition): Adjust the number of composition
10379 components if it is not sane.
10380
c9029fe5
JB
103812003-03-06 Juanma Barranquero <lektu@terra.es>
10382
10383 * w32term.h (struct w32_display_info): Add xrdb member to support
10384 passing resources via -xrm on Windows.
10385
10386 * w32term.c (w32_make_rdb): New function.
10387 (w32_term_init): Use it to initialize xrdb member of w32_display_info
10388 struct. Delete leftover code.
10389
10390 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
10391 for resources passed on the command line.
10392
10393 * w32reg.c (w32_get_rdb_resource): New function.
10394 (x_get_string_resource): Use it, so resources passed with -xrm
10395 supercede the ones in the registry.
10396
9d00001f
JD
103972003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10398
10399 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
10400 instead of x_top_window_to_frame.
10401
ca2417b9
JD
104022003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10403
10404 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
10405 when restarting Emacs.
10406
5b20caf0
RS
104072003-03-03 Richard M. Stallman <rms@gnu.org>
10408
10409 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
10410 to run kill-buffer-query-functions.
10411 (Qkill_buffer_query_functions): New var.
10412 (syms_of_buffer): Init and staticpro it.
10413
58e91b77
JD
104142003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10415
10416 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
10417
932357b4
KS
104182003-02-25 Kim F. Storm <storm@cua.dk>
10419
10420 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
10421 If centering point failed to make whole line visible and vscroll
10422 is non-zero, disable vscroll and try centering point again.
10423
10424 * lread.c (read1): Accept `single space' syntax like (? x).
10425
bb8db7e1
JD
104262003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10427
10428 * keyboard.c (cancel_hourglass_unwind): Surround with
10429 #ifdef HAVE_X_WINDOWS
10430
47d77aab
KH
104312003-02-25 Kenichi Handa <handa@m17n.org>
10432
10433 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
10434 process only when "subprocesses" is defined.
10435
6a097c0c
SM
104362003-02-24 Stefan Monnier <monnier@cs.yale.edu>
10437
10438 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
10439
0b063c27
JB
104402003-02-24 Juanma Barranquero <lektu@terra.es>
10441
d1135afc
JB
10442 * callint.c (fix_command): Declare as static void and move before
10443 Fcall_interactively.
10444
0b063c27
JB
10445 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
10446 (syms_of_xdisp): Don't initialize Qwhen.
10447
0af912f0
JD
104482003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10449
10450 * keyboard.c (cancel_hourglass_unwind): New function.
10451 (command_loop_1): Cancel hourglass with unwind-protect.
10452
120d0a23
RS
104532003-02-23 Richard M. Stallman <rms@gnu.org>
10454
10455 * callint.c (fix_command): New subroutine, from Fcall_interactively.
10456 Detect (when ... (region-beginning)) etc.
10457 (Fcall_interactively): Call fix_command.
10458 (Qif, Qwhen): New variables.
10459 (syms_of_callint): Init and staticpro them.
0b063c27 10460
120d0a23
RS
10461 * regex.c (print_partial_compiled_pattern): Output to stderr.
10462
4ece81a6
KG
104632003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10464
10465 * dired.c (directory_files_internal): Don't expand directory.
10466 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
10467 instead. From Lars Hansen <larsh@math.ku.dk>.
10468
e52bd6b7
SM
104692003-02-22 Stefan Monnier <monnier@cs.yale.edu>
10470
10471 * fns.c (string_to_multibyte): Remove unused var i.
10472 (Flanginfo): Fix int/Lisp_Object mixup.
10473 (void_call2): New fun.
10474 (Fmap_char_table): Use it in place of call2.
10475
10476 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
10477
10478 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
10479
10480 * keymap.c (copy_keymap_1): Make it static.
10481
10482 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
10483
c33ef7c4
JB
104842003-02-22 David Ponce <david@dponce.com>
10485
10486 * lread.c (Fload): Don't check STRING_MULTIBYTE.
10487
16782258
JD
104882003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10489
10490 * process.h: Removed subtty field from struct Lisp_Process.
10491
10492 * process.c (create_process): Remove setting of subtty.
10493 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
10494 (Fprocess_running_child_p, process_send_signal):
10495 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
10496 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
10497
3abeca61
KG
104982003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10499
10500 * keymap.c (Fdefine_key): Doc fix.
10501
92a8ce63
JB
105022003-02-21 Juanma Barranquero <lektu@terra.es>
10503
10504 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
10505
10506 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
10507 POLLING_PROBLEM_IN_SELECT.
10508
10509 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
10510 Delete #undef of POLLING_PROBLEM_IN_SELECT.
10511
10512 * s/hpux10-20.h: New file.
10513
e52bd6b7
SM
10514 * process.c (wait_reading_process_input):
10515 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 10516
20f1ef2e
KH
105172003-02-20 Kenichi Handa <handa@m17n.org>
10518
32d0a9dc
KH
10519 * fontset.c (check_fontset_name): If NAME is nil, return the
10520 default fontset.
10521 (override_font_info): New function.
e52bd6b7 10522 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
10523 (Ffontset_info): If FONTSET is not the default fontset, merge
10524 FONTSET onto the copy of the default fontset, and work on that
10525 copy. Document that NAME nil means the default fontset.
10526 (Ffontset_font): Document that NAME nil means the default fontset.
10527
20f1ef2e
KH
10528 * process.c (setup_process_coding_systems): If the process's
10529 in/out descriptor is -1, do nothing.
10530
77d1daf2
AS
105312003-02-19 Andreas Schwab <schwab@suse.de>
10532
e52bd6b7
SM
10533 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
10534 Add prototypes.
77d1daf2 10535
f9a45bb3
KH
105362003-02-19 Kenichi Handa <handa@m17n.org>
10537
10538 * xfaces.c (try_alternative_families): Try all scalable fonts if
10539 Vscalable_fonts_allowed is not Qt.
10540
72ecb43c
JD
105412003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10542
10543 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
10544
ee5be7c3
JD
105452003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10546
10547 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
10548 names.
10549
10550 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 10551 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
10552 x_face_list_fonts.
10553 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
10554 (Fx_list_fonts): Set maxnames to -1 to get all font names.
10555
4cd519a7
KS
105562003-02-18 Kim F. Storm <storm@cua.dk>
10557
068f9882
KS
10558 * lread.c (read1): Fix last change.
10559 "`" is not always special. Allow "?" after a character constant.
4cd519a7 10560
7290a344
AC
105612003-02-18 Andrew Choi <akochoi@shaw.ca>
10562
10563 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
10564
1f7fa69b
AS
105652003-02-18 Andreas Schwab <schwab@suse.de>
10566
10567 * window.c (window_scroll_pixel_based): Move outside a
10568 multi-glyph character before setting new window start.
10569
10570 * xdisp.c (in_display_vector_p): New function.
10571 * dispextern.h (in_display_vector_p): Declare.
10572
23e21195
KS
105732003-02-18 Kim F. Storm <storm@cua.dk>
10574
10575 * lread.c (read1): Fix and relax read syntax.
10576 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
10577 Only recognize "," after dotted-pair dot if inside backquote.
10578 Never include "`" or "," (inside backquote) in a symbol.
10579 Allow dotted-pair dot after a character constant.
10580 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 10581
f098b121
JD
105822003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10583
10584 * gtkutil.c (xg_tool_bar_expose_callback): New function.
10585 (xg_create_tool_bar): Force style of tool bar to be horizontal with
10586 icons. Set name of tool bar to emacs-toolbar.
10587 (update_frame_tool_bar): Connect expose event to
10588 xg_tool_bar_expose_callback.
10589
63020c46
RS
105902003-02-17 Richard M. Stallman <rms@gnu.org>
10591
10592 * keyboard.c (this_command_key_count_reset): New variable.
10593 Initiatize to 0 where this_command_key_count is set.
10594 (read_char): Save and restore this_command_key_count_reset
10595 around input method code.
10596 (read_char): If this_command_key_count_reset, echo reread commands.
10597 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
10598
fb4452cc
KH
105992003-02-17 Kenichi Handa <handa@m17n.org>
10600
10601 * fns.c (string_to_multibyte): Always return a multibyte string.
10602
bd11cc09
JR
106032003-02-16 Jason Rumney <jasonr@gnu.org>
10604
e52bd6b7
SM
10605 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
10606 Negative max_fonts parameter means list all.
bd11cc09 10607
4cdf4bde
DL
106082003-02-14 Dave Love <fx@gnu.org>
10609
10610 * fns.c (Flanginfo): Doc fix.
10611
023b93f6
KS
106122003-02-13 Kim F. Storm <storm@cua.dk>
10613
37cd4238
KS
10614 * lread.c (read_escape): Interpret \s as a SPACE character, except
10615 for \s-X in a character constant which still is the super modifier.
10616 (read1): Signal an `invalid read syntax' error if a character
10617 constant is immediately followed by a digit or symbol character.
10618
140a6b7e
KS
10619 * search.c (Fmatch_data): Doc fix. Explicitly state that
10620 match-data is undefined if last search failed.
10621
3419757d 10622 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
10623 All uses changed.
10624
7d5c86e5
JB
106252003-02-12 Juanma Barranquero <lektu@terra.es>
10626
10627 * eval.c (Fdefmacro): Fix typo.
10628
295fff2c
KS
106292003-02-12 Kim F. Storm <storm@cua.dk>
10630
10631 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
10632 macro is a string, convert meta modifiers in string when copying
10633 the string into a vector.
10634
60f3202d
KS
106352003-02-11 Kim F. Storm <storm@cua.dk>
10636
10637 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
10638
61cb0b53
KH
106392003-02-11 Kenichi Handa <handa@m17n.org>
10640
10641 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
10642
7392e23c
KS
106432003-02-10 Kim F. Storm <storm@cua.dk>
10644
10645 * process.c: Doc fixes.
10646 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
10647
ce4254bd
KH
106482003-02-10 Kenichi Handa <handa@m17n.org>
10649
9c7a329a
KH
10650 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
10651
ce4254bd
KH
10652 * process.c (QCfilter_multibyte): New variable.
10653 (setup_process_coding_systems): New function.
e52bd6b7
SM
10654 (Fset_process_buffer, Fset_process_filter):
10655 Call setup_process_coding_systems.
ce4254bd
KH
10656 (Fstart_process): Initialize the member `filter_multibyte' of
10657 struct Lisp_Process.
10658 (create_process): Call setup_process_coding_systems.
10659 (Fmake_network_process): New keyward `:filter-multibyte'.
10660 Initialize the member `filter_multibyte' of struct Lisp_Process.
10661 Call setup_process_coding_systems.
10662 (server_accept_connection): Call setup_process_coding_systems.
10663 (read_process_output): If the process has a filter, decide the
10664 multibyteness of a string to given to the filter by
10665 `filter_multibyte' member of the process. If the process doesn't
10666 have a filter and the result of conversion is unibyte, use
10667 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
10668 multibyte form.
10669 (Fset_process_coding_system): Call setup_process_coding_systems.
10670 (Fset_process_filter_multibyte): New function.
10671 (Fprocess_filter_multibyte_p): New function.
10672 (syms_of_process): Intern and staticpro QCfilter_multibyte.
10673 Defsubr Sset_process_filter_multibyte and
10674 Sprocess_filter_multibyte_p.
10675
10676 * process.h (struct Lisp_Process): New member filter_multibyte.
10677
10678 * lisp.h (setup_process_coding_systems): Add prototype.
10679
10680 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
10681 process, update coding systems for the process.
10682
b08d5f59
KH
106832003-02-09 Kenichi Handa <handa@m17n.org>
10684
10685 * fns.c (string_to_multibyte): New function.
10686 (Fstring_to_multibyte): New function.
10687 (syms_of_fns): Defsubr it.
10688
0dfd93c0
AS
106892003-02-08 Andreas Schwab <schwab@suse.de>
10690
10691 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
10692 instead of the substitution.
10693
7b76ca1c
JD
106942003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10695
10696 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
10697
10698 * xmenu.c (menu_position_func): Adjust menu popup position so that
10699 the menu is fully visible.
7b76ca1c 10700
2436a4e4
JD
107012003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10702
10703 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
10704 (x_make_frame_invisible, x_wm_set_icon_position):
10705 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
10706
10707 * xfns.c (x_set_name, x_set_title): Ditto.
10708
37d1e680
RS
107092003-02-04 Richard M. Stallman <rms@gnu.org>
10710
10711 * keyboard.c (echo_now): Update before_command_echo_length.
10712 (Freset_this_command_lengths): Reset this_command_key_count etc.
10713 immediately rather than arranging to do it later.
10714 (before_command_key_count_1, before_command_echo_length_1)
10715 (before_command_restore_flag): Vars deleted.
10716 (add_command_key): Don't handle before_command_restore_flag.
10717 (read_char, record_menu_key): Don't update before_command_key_count or
10718 before_command_echo_length.
10719 (read_char): Don't handle before_command_restore_flag.
10720
10721 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
10722 in direct-output clauses if it wouldn't be called in the ordinary case.
10723
578846a3
KS
107242003-02-04 Kim F. Storm <storm@cua.dk>
10725
10726 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
10727
49853a4d
JD
107282003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10729
10730 * gtkutil.c (remove_from_container): Copying list is not needed.
10731 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
10732 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
10733 on list returned from gtk_container_get_children to avoid memory leak.
10734
8b53dc06
JR
107352003-02-01 Jason Rumney <jasonr@gnu.org>
10736
5d54d177
JR
10737 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
10738 local malloc.
10739 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
10740 definitions in xpm.h.
10741 (init_xpm_functions): New function.
f63fd14e 10742 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
10743 (init_external_image_libraries): Try to load libXpm.dll.
10744
8b53dc06
JR
10745 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
10746 timestamp.
10747
b222e415
DL
107482003-01-31 Dave Love <fx@gnu.org>
10749
10750 * syntax.c (Fskip_chars_forward)
10751 (open-paren-in-column-0-is-defun-start): Doc fix.
10752
c60ee5e7
JB
107532003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
10754
10755 * fileio.c: Support // at start of name for Cygwin (just added proper
10756 preprocessor tests).
10757
10758 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
10759
10760 * Makefile.in: Use @EXEEXT@ for Cygwin.
10761
10762 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
10763
10764 * s/cygwin.h: Added for Cygwin port.
10765
53b37591
JB
107662003-01-31 Juanma Barranquero <lektu@terra.es>
10767
10768 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
10769 when including gif_lib.h.
fe929957 10770 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
10771 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
10772 Windows. Disable color table lookups. Call library functions
53b37591 10773 through pointers determined at runtime.
fe929957
JB
10774 (init_external_image_libraries): Try to load libungif.dll and
10775 libtiff.dll.
53b37591 10776
45415a8f
KH
107772003-01-31 Kenichi Handa <handa@m17n.org>
10778
10779 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 10780 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 10781
a97e4138
JD
107822003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10783
e52bd6b7 10784 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 10785
6eed9bed
DL
107862003-01-30 Dave Love <fx@gnu.org>
10787
10788 * alloc.c (Vgc_elapsed, gcs_done): New variables.
10789 (Fgarbage_collect): Use them.
10790 (init_alloc, syms_of_alloc): Set them up.
10791
100dcd40
JB
107922003-01-30 Juanma Barranquero <lektu@terra.es>
10793
10794 * w32fns.c (init_external_image_libraries): Add missing operator.
10795
fbd852af
JR
107962003-01-29 Jason Rumney <jasonr@gnu.org>
10797
10798 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
10799 an alternative name for jpeg.dll.
10800
8a2d8020
KH
108012003-01-29 Kenichi Handa <handa@m17n.org>
10802
10803 * xdisp.c (set_cursor_from_row): Pay attention to string display
10804 properties.
10805
058c18c7
AC
108062003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
10807
10808 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
10809 <escape>.
10810 (keycode_to_xkeysym_table): Reformat and add more comments.
10811 (XTread_socket): Drop special case for backspace.
10812
385f11cf
AC
108132003-01-28 Andrew Choi <akochoi@shaw.ca>
10814
10815 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
10816 values in old-style RGB specs.
10817
c922a224
JB
108182003-01-27 Juanma Barranquero <lektu@terra.es>
10819
10820 * w32fns.c (init_external_image_libraries): Try alternate names for the
10821 jpeg dll.
10822
0a1d6de0
JD
108232003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10824
10825 * gtkutil.c (create_dialog, xg_separator_p)
10826 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
10827 before calling strcmp or strlen.
10828
a97e4138 108292003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
10830
10831 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
10832 and handle image load failure.
10833
28908312
JR
108342003-01-26 Jason Rumney <jasonr@gnu.org>
10835
10836 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
10837 New functions.
f63fd14e
JB
10838 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
10839 Disable color table lookups. Call jpeg library functions
28908312
JR
10840 through pointers determined at runtime.
10841 (init_external_image_libraries): Try to load jpeg.dll.
10842
84e47416
RS
108432003-01-25 Richard M. Stallman <rms@gnu.org>
10844
10845 * lisp.h: Declare format2 instead of format1.
10846
10847 * fileio.c (barf_or_query_if_file_exists):
10848 Call format2 instead of format1.
10849
10850 * editfns.c (format2): New function, replaces format1
10851 but takes exactly two Lisp Objects as format args.
10852
10853 * buffer.c (Fkill_buffer): Call format2 instead of format1.
10854
a97e4138 108552003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
10856
10857 * xterm.h: Change to return value of x_dispatch_event to int.
10858
10859 * xterm.c (x_filter_event): New function.
10860 (event_handler_gdk, XTread_socket): Call x_filter_event.
10861 (x_dispatch_event): Change to return value of finish.
10862 (event_handler_gdk): Use return value from x_dispatch_event.
10863
10864 * xfns.c (x_window): Call create_frame_xic for GTK version to
10865 initialize input methods.
10866
10867 * gtkutil.h: Add (void) prototypes.
10868
10869 * gtkutil.c (create_menus): Remove code that puts the help menu to
10870 the right.
10871
54eefef1
JR
108722003-01-25 Jason Rumney <jasonr@gnu.org>
10873
10874 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
10875 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
10876 (png_load): Adjust colors for Windows. Use Windows
10877 bitmaps. Disable color table lookups.
c262430d
JR
10878 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
10879 (init_png_functions): New function.
10880 (png_read_from_memory, png_load): Call png library functions
10881 through pointers determined at runtime.
10882 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10883 (init_external_image_libraries): New function.
10884 (init_xfns): Call it.
54eefef1 10885
1a9e275b
AS
108862003-01-24 Andreas Schwab <schwab@suse.de>
10887
10888 * minibuf.c (Fminibuffer_message): Verify type of parameter.
10889
a97e4138 108902003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
10891
10892 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10893 of static initializer.
10894
422eec7e
DL
108952003-01-24 Dave Love <fx@gnu.org>
10896
10897 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10898 architectures.
10899
10900 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10901 Use __alignof__.
10902
2a026b04
KH
109032003-01-24 Kenichi Handa <handa@m17n.org>
10904
10905 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 10906 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
10907 (command_loop_1): Call adjust_point_for_property with proper
10908 second arg.
10909
a18bb28d
JR
109102003-01-22 Jason Rumney <jasonr@gnu.org>
10911
10912 Sync changes with xterm.c and xfns.c.
10913
10914 * w32term.c (x_draw_glyph_string_foreground)
10915 (x_draw_composite_glyph_string_foreground): Implement overstriking.
10916
10917 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10918 phys_cursor's hpos is overwritten. This is still not completely
10919 correct, as it doesn't really make sense to use hpos at all to
10920 get the cursor glyph (as that is relative to the width of the
10921 characters on the line, which may have changed during the update).
10922
10923 * w32term.c (notice_overwritten_cursor): Handle the special case
10924 of the cursor being in the first blank non-text line at the
10925 end of a window.
10926
10927 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10928 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10929 Compute from the x position returned by x_draw_glyphs.
10930
10931 (x_display_and_set_cursor): Don't set phys_cursor_width here,
10932 except for NO_CURSOR and system caret, to make phys_cursor_width
10933 contain what its name suggests.
10934 (notice_overwritten_cursor): Consider the cursor image erased if
10935 the output area intersects the cursor image in y-direction.
10936
6a097c0c
SM
10937 * w32term.c (note_mode_line_or_margin_highlight): Rename from
10938 note_mode_line_highlight and extend.
a18bb28d
JR
10939
10940 * w32term.c (last_window): New variable.
10941 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10942 (note_mouse_movement): Remove reimplemented code in #if 0.
10943
10944 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10945 not update_mode_lines, and always set it to 1.
10946
ac6e47ef
JR
109472003-01-21 Jason Rumney <jasonr@gnu.org>
10948
10949 * w32fns.c (IDC_HAND): Define it if system headers don't.
10950
109512003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10952
10953 * w32term.h (struct w32_output): New member hand_cursor.
10954 (WM_EMACS_SETCURSOR): New message definition.
10955
10956 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
10957 function w32_define_cursor.
10958 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
10959 position, change member name output_data.x to output_data.w32 and
10960 add function w32_define_cursor.
10961 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
10962 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
10963 (w32_initialize_display_info):
10964 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
10965
10966 * w32fns.c (Vx_hand_shape): New variable.
10967 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
10968 WM_EMACS_SETCURSOR.
10969 (x-create-frame): Setup Cursor types.
10970
ceb39a17
JB
109712003-01-21 David Ponce <david@dponce.com>
10972
ac6e47ef 10973 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 10974 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 10975 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 10976 2002-09-30.)
ac6e47ef
JR
10977 (w32_draw_relief_rect): Declare all args.
10978 (w32_define_cursor): New.
10979
10980 * w32fns.c (w32_load_cursor): New function.
10981 (w32_init_class): Use it.
10982 (x_put_x_image): Declare all args.
10983
b6189c3b 109842003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
10985
10986 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
10987
a97e4138 109882003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
10989
10990 * gtkutil.c: Must include stdio.h before termhooks.h
10991
83fc9c63
DL
109922003-01-21 Dave Love <fx@gnu.org>
10993
10994 * alloc.c (Fgc_status): Print zombie list.
10995 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10996 Fix assignment of zombies.
10997 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10998 Don't take car of non-cons.
10999
11000 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11001
11002 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11003
fe04b8c8
JR
110042003-01-20 David Ponce <david@dponce.com>
11005
11006 * w32menu.c (digest_single_submenu): Declare all args.
11007
11008 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
11009 changes in xmenu.c:
11010
11011 (parse_single_submenu): Use individual keymap's prompt
11012 string as pane name, if there is one.
11013 (set_frame_menubar): Save menu_items_n_panes from each call to
11014 parse_single_submenu and use it when calling digest_single_submenu.
11015
539e69a9
ST
110162003-01-20 Steven Tamm <steventamm@mac.com>
11017
11018 * macterm.c (XTread_socket): Checks for valid, visible window
11019 before sending a scroll-wheel event.
11020
675d000f
RS
110212003-01-20 Richard M. Stallman <rms@gnu.org>
11022
11023 * xdisp.c (redisplay_window): If mini window's buffer is not
11024 a minibuffer, then redisplay it like other windows.
11025
a97e4138 110262003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
11027
11028 * gtkutil.c (xg_create_frame_widgets): Check if there is an
11029 external tool bar before setting tool bar height.
11030
048addec
JD
110312003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11032
11033 * xterm.c (handle_one_xevent): Surround popup_activated
11034 with #ifdef:s for non-toolkit version.
11035
11036 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
11037 (gtkutil.o): New file.
11038 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
11039 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
11040
11041 * gtkutil.c: New file for GTK version.
11042
11043 * gtkutil.h: New file for GTK version.
11044
11045 * xterm.h: Add xt_or_gtk_widget.
11046 Include gtk files for USE_GTK.
11047 (struct x_output): Add toolbar_height.
11048 (struct x_output): Add GTK widgets and Gdk size_hints.
11049 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
11050 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
11051 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
11052
11053 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 11054 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
11055 (note_mouse_highlight): Check popup_activated for USE_GTK.
11056 (xt_action_hook): Don't compile if USE_GTK.
11057 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
11058 (xg_scroll_callback): New function.
11059 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
11060 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
11061 for USE_GTK.
11062 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
11063 xg_show_scroll_bar for USE_GTK.
11064 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
11065 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
11066 (event_handler_gdk): New function for USE_GTK.
11067 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
11068 (handle_one_xevent): Make sure widget is mapped before
11069 calling x_real_positions for USE_GTK.
11070 (XTread_socket): Add GTK event loop for USE_GTK.
11071 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
11072 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
11073 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
11074 (x_iconify_frame): Add code for USE_GTK.
11075 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
11076 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
11077 is in gtkutil.c.
11078 (x_term_init): Add initialization for GTK.
11079 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
11080
11081 * xmenu.c: Include gtkutil.h for USE_GTK.
11082 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
11083 (single_menu_item, single_menu_item, Fx_popup_dialog):
11084 Check for USE_GTK.
048addec
JD
11085 (popup_widget_loop): New function for USE_GTK.
11086 (x_activate_menubar): Add code for USE_GTK.
11087 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
11088 (menu_highlight_callback, menubar_selection_callback):
11089 Add USE_GTK versions.
048addec
JD
11090 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
11091 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
11092 (free_frame_menubar): Only compile if not USE_GTK. GTK version
11093 is in gtkutil.c.
11094 (popup_selection_callback): New version for USE_GTK.
11095 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 11096 one USE_X_TOOLKIT version.
048addec
JD
11097 (xmenu_show): Call create_and_show_popup_menu.
11098 (dialog_selection_callback): New version for USE_GTK.
11099 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 11100 one USE_X_TOOLKIT version.
048addec
JD
11101 (xdialog_show): Call create_and_show_dialog.
11102
11103 * xfns.c: Include gtkutil for USE_GTK.
11104 (x_window_to_frame, x_any_window_to_frame)
11105 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11106 (x_top_window_to_frame): Add code for USE_GTK.
11107 (x_set_background_color): Call xg_set_background_color for GTK.
11108 (x_set_menu_bar_lines): Check for USE_GTK.
11109 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
11110 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
11111 (x_window): Call xg_create_frame_widgets for USE_GTK.
11112 (Fx_create_frame): Check for USE_GTK
11113 (Fx_file_dialog): New implementation for USE_GTK.
11114
11115 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
11116 (update_menu_bar): Add check for USE_GTK.
11117 (update_tool_bar): Add check for USE_GTK and external tool bar.
11118 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
11119 (redisplay_internal): Add check for USE_GTK and popup_activated.
11120 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
11121 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
11122 (display_menu_bar): Add check for USE_GTK
11123
78819ebb 11124 * lisp.h (Vx_resource_name): Declare extern.
048addec 11125
a64387ee 11126 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
11127 for USE_GTK.
11128 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
11129
11130 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
11131 (FRAME_EXTERNAL_TOOL_BAR): New macro.
11132 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
11133
11134 * fileio.c (Fread_file_name): Add check for USE_GTK.
11135
6bdb309a
SM
11136 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
11137 Add check for USE_GTK.
048addec
JD
11138
11139 * config.in: Added HAVE_GTK
11140
11141 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
11142
111432003-01-18 Stefan Monnier <monnier@cs.yale.edu>
11144
11145 * charset.h (Funibyte_char_to_multibyte): Export.
11146
111472003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11148
11149 * xmenu.c (mouse_position_for_popup): New function.
11150 (Fx_popup_menu): Call mouse_position_for_popup for X and
11151 mouse_position_hook for others.
11152
111532003-01-17 Kim F. Storm <storm@cua.dk>
11154
11155 * editfns.c (Finsert): Mention `string-make-multibyte' and
11156 `string-as-multibyte' in doc string.
11157
111582003-01-17 Kenichi Handa <handa@m17n.org>
11159
11160 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 11161
048addec
JD
11162 * editfns.c (Fformat): Convert an unibyte char argument that is
11163 formatted by "%c" to multibyte if the total result must be a
11164 multibyte string.
cd7df9c0 11165
048addec 111662003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 11167
048addec
JD
11168 * process.c (set-process-filter): Document unibyte/multibyte-ness
11169 of string argument.
56210ecd 11170
048addec 111712003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 11172
048addec 11173 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 11174
048addec
JD
11175 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
11176 (re_search_2): Likewise.
6df8b9fe 11177
048addec 111782003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 11179
048addec
JD
11180 * xdisp.c (message_dolog): Fix bug of the case that *Message*
11181 buffer is unibyte.
292ddc31 11182
048addec 111832003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 11184
048addec 11185 * fns.c (Fsubstring): Clarify doc string.
292ddc31 11186
048addec
JD
11187 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
11188 (Fprevious_char_property_change)
11189 (Fnext_single_char_property_change)
11190 (Fprevious_single_char_property_change, Fnext_property_change)
11191 (Fnext_single_property_change, Fprevious_property_change)
11192 (Fprevious_single_property_change, Fadd_text_properties)
11193 (Fput_text_property, Fset_text_properties)
11194 (Fremove_text_properties, Fremove_list_of_text_properties)
11195 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 11196
048addec 111972003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 11198
048addec
JD
11199 * process.h (struct Lisp_Process): New member plist replaces old
11200 member private_vars. All uses changed.
63e4e4c6 11201
048addec 11202 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 11203 (QCplist): Rename from QCvars. Change all uses.
048addec 11204 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 11205 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 11206 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 11207 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 11208
048addec 112092003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 11210
6bdb309a 11211 * m/delta.h: Remove (obsolete).
e833850f 11212
048addec 112132003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 11214
048addec
JD
11215 * fileio.c (Fdelete_directory, Fdelete_file): Document the
11216 behaviour in front of symlinks.
11217 (Fdelete_file): Raise an error on directories.
817cb127 11218
048addec 112192003-01-13 Dave Love <fx@gnu.org>
817cb127 11220
048addec 11221 * fns.c (Freverse): Use QUIT.
3e8cf2ea 11222
048addec 112232003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 11224
048addec
JD
11225 * minibuf.c (minibuffer_completion_contents):
11226 Error if point is inside prompt.
3e8cf2ea 11227
048addec
JD
11228 * keyboard.c (command_loop_1): Don't redisplay directly
11229 if there's a post-command-hook.
3e8cf2ea 11230
048addec
JD
11231 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
11232 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 11233
048addec 112342003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 11235
048addec 11236 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 11237
048addec
JD
11238 * process.c (QCvars): New variable.
11239 (syms_of_process): Intern and staticpro it.
11240 (Fset_process_contact): Removed function.
11241 (Fprocess_variable, Fset_process_variable): New functions.
11242 (syms_of_process): Defsubr them.
11243 (Fstart_process): Initialize private_vars plist to nil.
11244 (Fmake_network_process): New arg :vars to setup the private
11245 variables for new network process.
11246 (server_accept_connection): Copy server's private variables to
11247 client process.
2c10f029 11248
048addec
JD
11249 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
11250 crashes). Code rewritten and simplified. Now directly aligns the
11251 pointer and recalculates pure_bytes_used, rather than aligning the
11252 size and adjusting the pointer.
b8a76c6c 11253
048addec 112542003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 11255
048addec
JD
11256 * process.c (Fset_process_contact): New function.
11257 (syms_of_process): defsubr it.
11258 (make-network-process): Update doc.
3a8d0899 11259
048addec 112602003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 11261
048addec
JD
11262 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
11263 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 11264
048addec 112652003-01-10 Dave Love <fx@gnu.org>
4abc7470 11266
048addec 11267 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 11268
048addec 112692003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 11270
048addec
JD
11271 * process.c (Fmake_network_process): Convert new port number
11272 to host byte order for `:service t' case. From Mario Lang.
bf338245 11273
048addec 112742003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 11275
048addec
JD
11276 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
11277 instead of XtAppProcessEvent.
bf338245 11278
048addec
JD
11279 * xterm.c (handle_one_xevent): New function.
11280 (x_dispatch_event): New function.
11281 (XTread_socket): Call handle_one_xevent.
bf338245 11282
048addec 11283 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 11284
048addec
JD
11285 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
11286 call XQueryPointer to get coordinates.
11287 (popup_get_selection): Do not set popup_activated_flag to zero,
11288 let popup_deactivate_callback do that. Needed for Motif.
11289 Call x_dispatch_event instead of XtDispatchEvent.
11290 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 11291
048addec 112922003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 11293
6bdb309a 11294 * process.c (server_accept_connection): Fix recording of new
048addec
JD
11295 connection's local address in :local property of contact info.
11296 (Fmake_network_process): Record local network address for new
11297 client processes in :local property of contact info.
6bdb309a 11298 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 11299
048addec 113002003-01-07 Dave Love <fx@gnu.org>
00e3ab56 11301
048addec 11302 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 11303
048addec 113042003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 11305
048addec 11306 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 11307
048addec
JD
11308 * eval.c (Fuser_variable_p): Doc change. For custom variables,
11309 use the same test as for custom-variable-p.
8c6d74c6 11310
048addec 113112003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 11312
048addec
JD
11313 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
11314 Count LAST_LINE_MISFIT in scroll margin for end of window.
11315 Move label too_near_end before setting SCROLL_MARGIN_POS.
11316 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 11317
048addec
JD
11318 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
11319 scroll_conservatively case. If scrolling that much doesn't change
11320 STARTP, move it down one line.
e833850f 11321
048addec
JD
11322 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
11323 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 11324
048addec
JD
11325 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
11326 selected frame.
8c6d74c6 11327
048addec 11328 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 11329 (syms_of_keymap): Staticpro them.
048addec
JD
11330 (Fapropos_internal): Initialize them and clear them out.
11331 Don't GCPRO them.
8c6d74c6 11332
048addec
JD
11333 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
11334 Doc fixes.
8c6d74c6 11335
048addec
JD
11336 * lisp.h: New misc type Lisp_Save_Value.
11337 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
11338 (XSAVE_VALUE): New macro.
11339 (struct Lisp_Save_Value): New data type.
11340 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 11341 (make_save_value): Declare.
8c6d74c6 11342
048addec 11343 * alloc.c (make_save_value): New function.
8c6d74c6 11344
048addec
JD
11345 * xterm.c (x_catch_errors): Save dpy using make_save_value.
11346 (x_catch_errors_unwind): Call XSync.
8c6d74c6 11347
048addec 113482003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 11349
048addec 11350 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 11351
048addec
JD
11352 * keyboard.c (command_loop_1): Call adjust_point_for_property
11353 in direct action cases for Qforward_char and Qbackward_char.
11354 Set already_adjusted so it won't be done twice.
8c6d74c6 11355
b6189c3b 113562002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 11357
048addec
JD
11358 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
11359 type definition of size_t.
8c609cff 11360
048addec 113612003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 11362
048addec
JD
11363 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
11364 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 11365
048addec 113662002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 11367
048addec
JD
11368 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
11369 to default to t.
fa634a5e 11370
048addec 113712002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 11372
048addec 11373 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 11374
048addec 113752002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 11376
048addec
JD
11377 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
11378 allow building in a different directory than source. Uses some
11379 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 11380
048addec 113812002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 11382
048addec
JD
11383 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
11384 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
11385 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
11386 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 11387
048addec 113882002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 11389
048addec
JD
11390 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
11391 <scroll-down-aggressively>: Doc fix.
2155ecf3 11392
048addec
JD
11393 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
11394 string as pane name, if there is one.
11395 (set_frame_menubar): Save menu_items_n_panes from each call to
11396 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 11397
048addec
JD
11398 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
11399 Don't try to make last line fully visible if it is past end of window.
61f1d295 11400
048addec 114012002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 11402
048addec
JD
11403 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
11404 (mac_menu_show): Add support for hierarchical popup menus.
11405 (add_menu_item): Remove indentation support.
11406 (fill_submenu, fill_menu): Create hierarchical menus
11407 instead of using indentation.
0b17a217 11408
048addec 114092002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 11410
048addec
JD
11411 * xdisp.c (try_cursor_movement): Don't call try_window here.
11412 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 11413
048addec 11414 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 11415
048addec 114162002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 11417
048addec
JD
11418 * macterm.c (XTread_socket): Call KeyTranslate for control and
11419 meta to deal correctly shifted non-alpha characters, like C-S-5
11420 being treated like C-%. Does not look for shift key to deal
11421 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 11422
048addec 114232002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 11424
048addec
JD
11425 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
11426 If it is non-nil, run timers. Use an unwind-protect to requeue
11427 the events that were read ahead.
11428 (popup_get_selection_unwind): New subroutine.
11429 (popup_get_selection_queue): File-scope variable now holds that queue.
11430 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
11431 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
11432 Use an unwind-protect to pop down the dialog box.
11433 (xdialog_show_unwind): New subroutine implements that.
f02cac82 11434
048addec
JD
11435 * xdisp.c (row_containing_pos): Change exit test using last_y.
11436 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 11437
048addec
JD
11438 * lread.c (load_error_handler): New function.
11439 (Fload): Handle errors in Fsubstitute_in_file_name.
11440 Don't expect Fsignal to return.
f02cac82 11441
048addec
JD
11442 * eval.c: Errors and throws work right with interrupt blocking.
11443 (struct catchtag): New elt interrupt_input_blocked.
11444 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
11445 (internal_catch, Fcondition_case, internal_condition_case)
11446 (internal_condition_case_1, internal_condition_case_2): Save it.
11447 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 11448
048addec 11449 * editfns.c (Fformat): Add parens.
f02cac82 11450
048addec
JD
11451 * dired.c (file_name_completion): Fix that change.
11452 Delete special quit-handling code; just use QUIT.
f02cac82 11453
b6189c3b 114542002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 11455
048addec
JD
11456 * dired.c (file_name_completion): Close directory on error
11457 just as in directory_files_internal.
1a590729 11458
048addec 114592002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 11460
048addec
JD
11461 * window.c (Fset_window_configuration): Set old_point to correct
11462 value when new_current_buffer == current_buffer.
f02cac82 11463
048addec 114642002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 11465
048addec
JD
11466 Revisited my earlier fix for the following entry in etc/PROBLEMS:
11467 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11468 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 11469
048addec
JD
11470 These changes were in part based upon suggestions made by Peter
11471 'Luna' Runestig [peter@runestig.com].
9785d95b 11472
f4a5a485
SM
11473 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
11474 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
11475 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 11476 global variables.
9785d95b 11477
048addec
JD
11478 * w32.c (globals_of_w32): New function. Used to initialize those
11479 global variables that must always be initialized on startup even
11480 when the global variable initialized is non zero. Its primary
11481 purpose at this time is to set the global variables
11482 g_b_init_is_windows_9x, g_b_init_open_process_token,
11483 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
11484 g_b_init_get_sid_identifier_authority to 0 on startup.
11485 Called from main.
9785d95b 11486
048addec
JD
11487 * w32.c (is_windows_9x): Perform initialization only if
11488 g_b_init_is_windows_9x is equal to 0. On initialization set
11489 g_b_init_is_windows_9x equal to 1.
2308af15 11490
048addec
JD
11491 * w32.c (open_process_token): Perform initialization only if
11492 g_b_init_open_process_token is equal to 0. On initialization set
11493 g_b_init_open_process_token equal to 1.
2308af15 11494
048addec
JD
11495 * w32.c (get_token_information): Perform initialization only if
11496 g_b_init_get_token_information is equal to 0. On initialization
11497 set g_b_init_get_token_information equal to 1.
9785d95b 11498
048addec
JD
11499 * w32.c (lookup_account_sid): Perform initialization only if
11500 g_b_init_lookup_account_sid is equal to 0. On initialization
11501 set g_b_init_lookup_account_sid equal to 1.
9785d95b 11502
048addec
JD
11503 * w32.c (get_sid_identifier_authority): Perform initialization
11504 only if g_b_init_get_sid_identifier_authority is equal to 0.
11505 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 11506
f63fd14e 11507 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
11508 those global variables that must always be initialized on startup
11509 even when the global variable initialized is non zero.
11510 Its primary purpose at this time is to initialize the global variable
11511 track_mouse_event_fn.
9785d95b 11512
a64387ee 11513 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 11514 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 11515
048addec 11516 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 11517
f63fd14e 11518 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
11519 initialize those global variables that must always be initialized
11520 on startup even when the global variable initialized is non zero.
11521 Its primary purpose at this time is to initialize the global
11522 variables get_menu_item_info and set_menu_item_info.
9785d95b 11523
048addec
JD
11524 * w32menu.c (initialize_frame_menubar): Remove initialization of
11525 get_menu_item_info and set_menu_item_info.
9785d95b 11526
048addec 11527 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 11528
048addec
JD
11529 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
11530 Declare them.
9785d95b 11531
048addec
JD
11532 * emacs.c (main): Call globals_of_w32 prior to calling
11533 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
11534 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
11535 is defined.
9785d95b 11536
048addec
JD
11537 * w32term.c (x_update_window_begin): Fix Windows API error
11538 detected by BoundsChecker. Test to determine if
11539 w32_system_caret_hwnd is NULL prior to attempting to use
11540 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 11541
048addec
JD
11542 * w32term.c (x_update_window_end): Fix Windows API error
11543 detected by BoundsChecker. Test to determine if
11544 w32_system_caret_hwnd is NULL prior to attempting to use
11545 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 11546
048addec 115472002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 11548
048addec
JD
11549 * coding.c (coding_system_require_warning): New variable.
11550 (syms_of_coding): DEFVAR it.
b6da19ef 11551
048addec 11552 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 11553
048addec
JD
11554 * fileio.c (choose_write_coding_system): Even if
11555 Vcoding_system_for_write is non-nil, if
11556 coding_system_require_warning is nonzero, call
11557 Vselect_safe_coding_system_function.
bfcf6dbe 11558
048addec 115592002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 11560
048addec
JD
11561 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
11562 (lisp): Add font-core.
2c568af5 11563
048addec 115642002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 11565
048addec
JD
11566 * textprop.c (text_read_only): New arg `propval'.
11567 (get_char_property_and_overlay): Remove unused var `next_overlay'.
11568 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 11569
048addec 115702002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 11571
048addec 11572 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 11573
048addec 115742002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 11575
048addec
JD
11576 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
11577 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
11578 Be more careful about when help_events are generated.
96720f09 11579
048addec 115802002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 11581
048addec
JD
11582 * macterm.c (mac_check_for_quit_char): Correctly set the
11583 modifiers of the event to 0.
11584 * mac.c (sys_select): Duplicate rfds before calling select to
11585 ensure that rfds survive the while loop.
e5ae1c49 11586
048addec 115872002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 11588
048addec
JD
11589 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
11590 row_containing_pos returned NULL.
2eb46b2d 11591
048addec 115922002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 11593
6bdb309a 11594 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 11595 non-blocking.
6bdb309a 11596 (sys_select): Fix sys_select to not use a timeout larger than
048addec 11597 the one given.
b11f1d8a 11598
048addec 115992002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 11600
048addec 11601 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 11602
048addec 116032002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 11604
048addec
JD
11605 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
11606 as the last thing.
a4ac5b17 11607
048addec 116082002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 11609
048addec 11610 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 11611
048addec 116122002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 11613
048addec
JD
11614 * editfns.c (Fformat): Handle precision in string conversion
11615 specifiers like libc functions do (ie, print at most that many
11616 characters).
85cce843 11617
048addec 116182002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 11619
048addec
JD
11620 * xdisp.c (row_containing_pos): Check more carefully
11621 whether charpos is really in the row before returning it.
0d4d26a7 11622
048addec 116232002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 11624
048addec 11625 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 11626
048addec
JD
11627 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
11628 each stack frame. This may change as it could be time consuming.
0d4d26a7 11629
048addec
JD
11630 * macterm.c (mac_check_for_quit_char, quit_char_comp)
11631 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 11632 (mac_initialize): Add code to check for pressing of quit_char
048addec 11633 in the OS event queue.
b11f1d8a 11634
048addec
JD
11635 * mac.c (sys_select): Call mac_check_for_quit_char every second
11636 while blocking on select.
0d4d26a7 11637
048addec
JD
11638 * mac.c (sys_read): Use sys_select to test for input first
11639 before calling read, to allow C-g to break.
9252f7bc 11640
048addec 116412002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 11642
048addec 11643 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 11644
048addec 11645 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 11646
048addec 11647 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 11648
048addec
JD
11649 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
11650 autoload.
9252f7bc 11651
048addec 11652 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 11653
048addec 11654 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 11655
048addec 116562002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 11657
048addec 11658 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 11659
048addec 116602002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 11661
048addec 11662 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 11663
048addec 11664 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 11665
048addec 11666 * alloca.c: Don't use #error.
02d588e2 11667
048addec 116682002-12-03 Dave Love <fx@gnu.org>
02d588e2 11669
048addec
JD
11670 * buffer.c (Qucs_set_table_for_input): New.
11671 (Fget_buffer_create): Use it.
11672 (Qset_buffer_major_mode_hook): Deleted.
11673 (Fset_buffer_major_mode): Revert previous change.
11674 (init_buffer_once): Intern ucs-set-table-for-input.
11675 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
11676 Add &Qucs_set_table_for_input.
451e2697 11677
048addec 116782002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 11679
048addec
JD
11680 * callint.c (Fcall_interactively): Use next_event only if less
11681 than key_count.
72742a99 11682
048addec 116832002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 11684
048addec
JD
11685 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
11686 names to 255 characters.
72742a99 11687
048addec
JD
11688 * macterm.c (XTread_socket): If all frames have been collapsed,
11689 expand the first one before handling drag-and-drop events.
72742a99 11690
048addec
JD
11691 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
11692 which is detected by autoconf.
40e6ff95 11693
048addec 116942002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 11695
048addec
JD
11696 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
11697 offset in two hints table to allow prebinding to be redone and
11698 allow the executable to be stripped.
c02138c6 11699
048addec 117002002-11-29 Dave Love <fx@gnu.org>
c02138c6 11701
048addec
JD
11702 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
11703 already provided.
0e47bbf7 11704
048addec 117052002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 11706
048addec
JD
11707 * xdisp.c (start_display): Check more intelligently for
11708 whether the line is continued.
11709 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 11710
048addec 117112002-11-28 Dave Love <fx@gnu.org>
44129dcb 11712
048addec
JD
11713 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
11714 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 11715
048addec 117162002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 11717
048addec
JD
11718 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
11719 more descriptive error output from lread.c:Fload upon most require
11720 cycles during boostrapping.
1637fd2c 11721
048addec 117222002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 11723
048addec
JD
11724 * fileio.c (Finsert_file_contents): Give a more appropriate error
11725 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 11726
048addec
JD
11727 * dired.c (Ffile_attributes): Don't return negative file sizes for
11728 files bigger than 2Gb when off_t is 32 bit.
540c2788 11729
048addec 117302002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 11731
048addec 11732 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 11733
048addec
JD
11734 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
11735 Test GETPGRP_VOID instead.
11736 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 11737
048addec
JD
11738 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
11739 Don't define.
11740 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 11741
048addec 11742 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 11743
048addec 117442002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 11745
048addec
JD
11746 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
11747 supported.
4042a81a 11748
048addec 117492002-11-25 Dave Love <fx@gnu.org>
4042a81a 11750
048addec 11751 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 11752
048addec 11753 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 11754
048addec 117552002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 11756
048addec 11757 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 11758
048addec 117592002-11-24 Steven Tamm <steventamm@mac.com>
82122254 11760
048addec
JD
11761 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
11762 determine the size of pointers alloced in unexed space instead
11763 of using possibly invalid emacs_zone pointers. This fixes the
11764 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 11765
048addec 117662002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 11767
048addec 11768 * search.c (Fstring_match): Doc fix.
c1ee53bc 11769
048addec
JD
11770 * callint.c (Fcall_interactively): If a command fails because
11771 `*' detects a read-only buffer, but RECORD_FLAG is set,
11772 record it anyway if the args don't actually do tty input.
5598c32e 11773
048addec 117742002-11-22 Dave Love <fx@gnu.org>
5598c32e 11775
048addec 11776 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 11777
048addec
JD
11778 * keyboard.c (interrupt_signal): Provide forward declaration.
11779 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 11780
048addec 11781 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 11782
048addec 117832002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 11784
048addec
JD
11785 * eval.c (interactive_p): Skip any number of bytecode
11786 and special form frames, in any order.
516eea8e 11787
048addec 117882002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 11789
048addec
JD
11790 * w32fns.c (convert_mono_to_color_image): New function.
11791 (xbm_load, xbm_load_image): Use it when foreground or background
11792 is explicitly set.
04dbfa08 11793
048addec 117942002-11-19 Dave Love <fx@gnu.org>
04dbfa08 11795
048addec 11796 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 11797
048addec 117982002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 11799
048addec
JD
11800 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
11801 (XPutPixel): Swap blue and red.
11802 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
11803 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11804 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
11805 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 11806
048addec 118072002-11-18 Dave Love <fx@gnu.org>
d824beee 11808
048addec 11809 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 11810
048addec 11811 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 11812
048addec 11813 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 11814
048addec
JD
11815 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
11816 malloc, realloc, calloc.
d824beee 11817
048addec
JD
11818 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
11819 (bcmp): Don't define.
d824beee 11820
048addec 11821 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 11822
048addec 11823 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 11824
048addec 11825 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 11826
048addec 11827 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 11828
048addec
JD
11829 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
11830 Don't include alloca.h.
d824beee 11831
048addec 11832 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 11833
048addec 11834 * regex.c (_GNU_SOURCE): Don't define.
1998560a 11835
048addec 11836 * process.c (_GNU_SOURCE): Don't define.
1998560a 11837
048addec 11838 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 11839
048addec 118402002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 11841
048addec 11842 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 11843
048addec 118442002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 11845
048addec
JD
11846 * dispextern.h (struct face): Add `overstrike' field.
11847 * xterm.c (x_draw_glyph_string_foreground)
11848 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11849 * xfaces.c (load_face_font): Set `face->overstrike' based on
11850 result from choose_face_font.
11851 (best_matching_font, choose_face_font): Add `needs_overstrike'
11852 argument, and use it to return whether overstriking is desirable
11853 for this face/font combo.
11854 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 11855
048addec 118562002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 11857
048addec
JD
11858 This change is my fix for the following entry in etc/PROBLEMS:
11859 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11860 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 11861
048addec
JD
11862 * w32.c: Added wrapper functions around the win32 API functions
11863 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
11864 GetSidIdentifierAuthority. These wrapper functions serve two
11865 purposes:
11866 1. They ensure that the wrapped function can never be called
11867 when Emacs is running on an operating system on which they are
11868 not supported (Microsoft Windows 95 / 98 / ME).
11869 2. They call the wrapped functions via function pointers rather
11870 than calling them directly. This avoids taking advantage of the
11871 undocumented fact that although these functions are not supported
11872 in the 9x branch of Microsoft Windows, the functions do exist in
11873 the version of advapi32.dll that is found in the 9x branch of
11874 Microsoft Windows.
f60ae425 11875
6bdb309a 11876 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
11877 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
11878 and GetSidIdentifierAuthority with calls to the newly added
11879 wrapper functions.
f60ae425 11880
048addec
JD
11881 * w32.h: Added extern declarations for the following functions:
11882 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11883 syms_of_w32menu, and void syms_of_fontset.
f60ae425 11884
6bdb309a 11885 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
11886 function pointer track_mouse_event_fn in the handler for the
11887 WM_SETFOCUS message.
3582b6a3 11888
6bdb309a 11889 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
11890 reinitialize the function pointers set_menu_item_info and
11891 get_menu_item_info.
f60ae425 11892
048addec 118932002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 11894
048addec
JD
11895 * sound.c: Added a partial implementation of play-sound-internal
11896 for Microsoft Windows. Added various #ifdef / #else / #endif
11897 code blocks to separate the code that will compile under
11898 Microsoft Windows from the code that is specific to Gnu/Linux.
11899 Moved several blocks of code around to make this separation of code
11900 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 11901
048addec 11902 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 11903
048addec
JD
11904 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11905 added support for play-sound-internal under Windows would be
11906 included in the build of Emacs.
517f42a0 11907
048addec 119082002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 11909
048addec 11910 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 11911
048addec 11912 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 11913
048addec 119142002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 11915
048addec
JD
11916 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11917 (adjust_point_for_property): Move out of display and invisible even if
11918 we were already inside before (in case a property was added while
11919 we weren't looking). Be more careful when handling invisible props.
11920 Skip invisible text as if it really wasn't there at all.
aab83f91 11921
048addec 119222002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 11923
048addec
JD
11924 * w32term.c (x_draw_image_foreground)
11925 (w32_draw_image_foreground_1): Use standard copy and invert
11926 operations to draw images.
aab83f91 11927
048addec
JD
11928 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11929 depth of 1.
11930 (xbm_read_bitmap_data): Invert bits as xbm is read in.
11931 (XPutPixel): Don't invert bits here.
a4478a76 11932
048addec 119332002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 11934
048addec
JD
11935 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11936 (w32_draw_image_foreground_1): Handle image masks.
11937 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 11938
048addec
JD
11939 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11940 (x_from_xcolors): Adjust RGB values for W32.
11941 (image_background, image_background_transparent)
11942 (postprocess_image, x_to_xcolors, x_disable_image)
11943 (x_build_heuristic_mask): Adapt for W32 and enable.
11944 (x_create_x_image_and_pixmap): Mark images with palettes as such.
11945 (xbm_load): Remove unused variable.
03670a65 11946
048addec 119472002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 11948
048addec 11949 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 11950
048addec 119512002-11-14 Dave Love <fx@gnu.org>
59daa29a 11952
048addec 11953 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 11954
048addec
JD
11955 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
11956 * xmenu.c (unuse_menu_items, digest_single_submenu):
11957 * xfns.c (x_put_x_image):
11958 * xdisp.c (message2_nolog, set_message):
11959 * undo.c (record_point):
11960 * terminfo.c (tparam):
11961 * syntax.c (scan_sexps_forward):
11962 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11963 * composite.c (update_compositions):
11964 * cm.c (calccost, cmgoto):
11965 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 11966
048addec 11967 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 11968
048addec
JD
11969 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
11970 Don't declare.
59daa29a 11971
048addec 11972 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 11973
048addec
JD
11974 * fns.c (Fcopy_sequence): Doc fix.
11975 (Fmap_char_table): Cast `call2'.
3947677c 11976
048addec
JD
119772002-11-14 Francesco Potorti` <pot@gnu.org>
11978
11979 * s/sol2-8.h: New file.
11980
119812002-11-14 Kim F. Storm <storm@cua.dk>
11982
11983 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
11984 dependency on `risky-local-variable' and the :propertize form.
11985
119862002-11-12 Stefan Monnier <monnier@cs.yale.edu>
11987
11988 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
11989
11990 * syntax.c (scan_sexps_forward): Undo last patch.
11991 Use a more obvious fix: check eob before updating the syntax table.
11992
119932002-11-09 Stefan Monnier <monnier@cs.yale.edu>
11994
11995 * syntax.c (scan_sexps_forward): Update syntax table before reading
11996 a char rather than after so we don't update the table past eob.
11997
119982002-11-09 Dave Love <fx@gnu.org>
11999
12000 * buffer.c (Fset_buffer_major_mode): Fix last change.
12001
12002 * regex.c (regexec): Fix pmatch declaration.
12003
12004 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
12005
12006 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
12007 to self-inserting characters.
12008 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
12009
12010 * coding.c (Vtranslation_table_for_input): New.
12011 (syms_of_coding): DEFVAR it.
12012
120132002-11-08 Juanma Barranquero <lektu@terra.es>
12014
12015 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
12016 window.
12017
120182002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12019
6bdb309a 12020 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
12021 cp, and i.
12022
120232002-11-06 Dave Love <fx@gnu.org>
12024
12025 * buffer.c (Qset_buffer_major_mode_hook): New.
12026 (Fset_buffer_major_mode): Use it.
12027
120282002-11-06 Richard M. Stallman <rms@gnu.org>
12029
12030 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
12031 and stop_polling.
12032
12033 * process.c (wait_reading_process_input):
12034 Test POLLING_PROBLEM_IN_SELECT, not hpux.
12035 Avoid initialization for auto Lisp_Object var.
12036
12037 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
12038
12039 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
12040
120412002-11-05 Richard M. Stallman <rms@gnu.org>
12042
12043 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
12044
12045 * callint.c (Fcall_interactively): New local filter_specs.
12046 (Fcall_interactively): Check for progn as well as let.
12047 Add a gcpro.
12048 (Qprogn): New variable.
12049 (syms_of_callint): Staticpro and init Qprogn.
12050
120512002-11-04 John Paul Wallington <jpw@shootybangbang.com>
12052
12053 * lread.c (Feval_buffer): Doc fix.
12054
120552002-11-04 Dave Love <fx@gnu.org>
12056
12057 * keyboard.c (read_char): Always translate iff
12058 Vkeyboard_translate_table is a char table and c is valid.
12059
12060 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12061 and fix C types.
12062
120632002-11-03 Stefan Monnier <monnier@cs.yale.edu>
12064
12065 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
12066
12067 * editfns.c (get_pos_property): Don't hardcode Qfield.
12068
12069 * keyboard.c (adjust_point_for_property): Handle `display' prop on
12070 overlays. Also handle `invisible' prop.
12071
120722002-11-02 Stefan Monnier <monnier@cs.yale.edu>
12073
12074 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
12075 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
12076
120772002-11-01 Andreas Schwab <schwab@suse.de>
12078
12079 * editfns.c (Fmessage): Revert last change to properly handle %%.
12080
120812002-11-01 Stefan Monnier <monnier@cs.yale.edu>
12082
12083 * xmenu.c (unuse_menu_items): New fun.
12084 (menu_items_inuse): New var.
12085 (syms_of_xmenu): Initialize it.
12086 (init_menu_items): Use it to detect re-entrance.
12087 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
12088 (Fx_popup_menu): Remove spurious XSETFRAME.
12089
12090 * editfns.c (find_field): Make an exception for nil fields.
12091
120922002-11-01 Dave Love <fx@gnu.org>
12093
12094 * m/gec63.h: Deleted.
12095
120962002-10-31 Dave Love <fx@gnu.org>
12097
12098 * xterm.c (XTread_socket): Fix last change.
12099 (xaw_scroll_callback): Cast call_data to long to avoid warning.
12100
121012002-10-31 Stefan Monnier <monnier@cs.yale.edu>
12102
12103 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
12104
121052002-10-30 Stefan Monnier <monnier@cs.yale.edu>
12106
12107 * editfns.c (overlays_around, get_pos_property): New funs.
12108 (find_field): Use them.
12109 Also be careful not to modify POS before its last use.
12110 (Fmessage): Don't Fformat if there's nothing to format.
12111
121122002-10-30 Dave Love <fx@gnu.org>
12113
12114 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
12115 [HAVE_PTY_H]; Include pty.h.
12116
12117 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
12118
12119 * xterm.c (Qeql): Declare.
12120 (Vx_keysym_table): New.
12121 (syms_of_xterm): Initialize it.
12122 (XTread_socket): Use it. Deal with ASCII keysyms.
12123 (XSetIMValues) [HAVE_X11R6]: Prototype.
12124
12125 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
12126 (lispy_kana_keys): Comment out.
12127 (make_lispy_event) [XK_kana_A]: Comment out.
12128 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
12129 Fix sprintf call.
12130
12131 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
12132 regexp.h change).
12133 (TERMINFO, LIBS_TERMCAP): Define.
12134
12135 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
12136 (bcmp): Define conditional on HAVE_BCMP.
12137 (NO_SIOCTL_H): Don't define.
12138 (TIOCSIGSEND): Don't make conditional on IRIX6.
12139
12140 * s/sol2-5.h: Don't include strings.h.
12141 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
12142
12143 * s/irix6-0.h (IRIX6): Don't define.
12144 (bcopy, bcmp, bzero): Don't undef.
12145
12146 * s/irix6-5.h: Don't include strings.h.
12147 (IRIX6): Don't define.
12148 (bcopy, bcmp, bzero): Don't undef.
12149
12150 * syntax.c (Fforward_comment): Doc fix.
12151
121522002-10-29 Kim F. Storm <storm@cua.dk>
12153
12154 * process.c (Fsignal_process): Allow PROCESS to be specified by
12155 name in addition to pid (as integer or string).
12156
121572002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
12158
12159 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
12160 environments.
12161
121622002-10-27 Kim F. Storm <storm@cua.dk>
12163
12164 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12165
12166 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
12167
12168 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
12169
12170 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12171
121722002-10-26 Richard M. Stallman <rms@gnu.org>
12173
12174 * editfns.c (Fformat): Detect invalid format letters for floats.
12175
121762002-10-25 Kenichi Handa <handa@m17n.org>
12177
12178 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
12179 (x_set_title): Likewise.
12180
121812002-10-25 Juanma Barranquero <lektu@terra.es>
12182
12183 * macgui.h:
12184 * w32gui.h: Remove definition of XColor.
12185
12186 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
12187
121882002-10-24 Kim F. Storm <storm@cua.dk>
12189
12190 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
12191 Callers changed (supply dummy arg).
12192
12193 * lisp.h (get_window_cursor_type): Update prototype.
12194
12195 * w32term.c (x_display_and_set_cursor): Get active_cursor from
12196 get_window_cursor_type to track system caret.
12197
121982002-10-24 Kim F. Storm <storm@cua.dk>
12199
12200 * process.c (Fformat_network_address): New function.
12201 (syms_of_process): Defsubr it.
12202 (list_processes_1): Use it to format :local/:remote address if
f9711de4 12203 service/host is not set; before Emacs would crash in that case.
048addec
JD
12204 (Fmake_network_process): Don't use Ffind_operation_coding_system
12205 to setup coding system if host or service is not set.
12206
122072002-10-23 Juanma Barranquero <lektu@terra.es>
12208
12209 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
12210
12211 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
12212 COLORREF.
12213
12214 * macgui.h:
12215 * w32gui.h: Add definition of XColor.
12216
12217 * macfns.c:
12218 * w32fns.c:
12219 * xfaces.c: Remove definition of XColor.
12220
122212002-10-22 Stefan Monnier <monnier@cs.yale.edu>
12222
12223 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
12224
12225 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
12226 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
12227 window if it is dedicated.
12228 (Fshrink_window): Add preserve_before as was done for enlarge_window.
12229 (Vspecial_display_function): Update docstring.
12230
12231 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
12232 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
12233 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
12234
122352002-10-21 Stefan Monnier <monnier@cs.yale.edu>
12236
12237 * casefiddle.c (casify_region): Don't treat a prefix char as part
12238 of a word when at the beginning.
12239
122402002-10-17 Juanma Barranquero <lektu@terra.es>
12241
12242 * lread.c (syms_of_lread): Fix typos.
12243
122442002-10-17 Dave Love <fx@gnu.org>
12245
12246 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
12247
122482002-10-16 Richard M. Stallman <rms@gnu.org>
12249
12250 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
12251
122522002-10-14 Juanma Barranquero <lektu@terra.es>
12253
12254 * w16select.c (syms_of_win16select): Fix docstring for
12255 `selection-coding-system'.
12256
12257 * w32select.c (syms_of_w32select): Likewise.
12258
122592002-10-14 Stefan Monnier <monnier@cs.yale.edu>
12260
12261 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
12262 a backslash-quoted char.
12263 (scan_lists, scan_sexps_forward): Pacify the compiler.
12264
122652002-10-13 Richard M. Stallman <rms@gnu.org>
12266
12267 * window.c (window_scroll): Set immediate_quit.
12268
12269 * print.c (print): When backquote form is the car of a list,
12270 output in old style. Use old_backquote_output to output all
12271 comma forms inside it in old style too.
12272
12273 * buffer.h (struct buffer): Move `undo_list' down below `name'.
12274
122752002-10-11 Markus Rost <rost@math.ohio-state.edu>
12276
12277 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
12278 batch mode).
12279
12280 * lread.c (Fload): Doc fix (load-suffixes).
12281
122822002-10-10 Steven Tamm <steventamm@mac.com>
12283
12284 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
12285 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
12286 Also switch the default to Qnil from Qt.
12287
122882002-10-08 Kenichi Handa <handa@m17n.org>
12289
12290 * coding.c (code_convert_region): When we need more GAP for
12291 conversion, pay attention to the case that coding->produced is not
12292 greater than coding->consumed.
12293
122942002-10-07 Richard M. Stallman <rms@gnu.org>
12295
12296 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
12297
122982002-10-06 Andrew Choi <akochoi@shaw.ca>
12299
12300 * macmenu.c (mac_menu_show): Add j to count menu items; match
12301 menu_item_selection to it to find selected item.
12302
123032002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12304
12305 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
12306 cases. The correct fix is to pass ReparentNotify to Xt.
12307 The shell widget interprets ConfigureNotify differently depending
12308 on if it has been reparented or not.
12309
123102002-10-05 Markus Rost <rost@math.ohio-state.edu>
12311
12312 * editfns.c (Fformat_time_string): Doc fix.
12313
123142002-10-05 John Paul Wallington <jpw@shootybangbang.com>
12315
12316 * fns.c (Flength): Doc fix.
12317
123182002-10-04 Stefan Monnier <monnier@cs.yale.edu>
12319
12320 * keyboard.c (keyremap): New struct.
12321 (read_key_sequence): Use it: globally replace keytran_foo with
12322 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
12323 keytran_next and fkey_next to just `next'.
12324
123252002-10-04 Steven Tamm <steventamm@mac.com>
12326
12327 * macterm.c (keycode_to_xkeysym_table): Change return to be
12328 treated like an X keysym.
12329
123302002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12331
12332 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
12333 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
12334 This is to also handle x/y changes that occur because of a resize.
12335
123362002-10-02 John Paul Wallington <jpw@shootybangbang.com>
12337
12338 * frame.c (Vdelete_frame_functions): New variable.
12339 (syms_of_frame): Initialize and defvar it.
12340 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
12341 it when frame's `tooltip' parameter is non-nil.
12342
12343 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
12344
12345 * w32fns.c (x_create_tip_frame): Likewise.
12346
12347 * macfns.c (x_create_tip_frame): Likewise.
12348
123492002-09-30 Kenichi Handa <handa@m17n.org>
12350
12351 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
12352 -1 before calling ccl_driver.
12353
12354 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
12355 Only when it is non-nil, handle composition sequence.
12356 (setup_coding_system) <0>: Don't force composition handling.
12357
12358 * Makefile.in (lisp, shortlisp): Add utf-16.elc
12359
123602002-09-29 Richard M. Stallman <rms@gnu.org>
12361
12362 * search.c (Freplace_match): Adjust match data for the substitution
12363 just made in the buffer.
12364
12365 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
12366 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
12367
123682002-09-27 Richard M. Stallman <rms@gnu.org>
12369
12370 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
12371 (read_char): Use them. Do all exits thru the end of the function.
12372
123732002-09-27 Kenichi Handa <handa@etl.go.jp>
12374
12375 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
12376 is nil.
12377
123782002-09-26 Richard M. Stallman <rms@gnu.org>
12379
12380 * regex.h (__restrict_arr): Don't define if already defined.
12381
12382 * coding.c (run_pre_post_conversion_on_str):
12383 Save and restore Vdeactivate_mark.
12384
123852002-09-26 John Paul Wallington <jpw@shootybangbang.com>
12386
12387 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
12388
123892002-09-26 Kenichi Handa <handa@etl.go.jp>
12390
12391 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
12392 nonzero, try face's family at first. Otherwise try FAMILY at first.
12393 (choose_face_font): If C is a single byte char or latin-1, call
12394 try_font_list with PREFER_FACE_FAMILY 1.
12395
123962002-09-21 Richard M. Stallman <rms@gnu.org>
12397
12398 * window.c (select_window_1): Don't select frame.
12399 Set frame's selected window only when frame itself is selected.
12400 (Fselect_window): Doc fix.
12401
124022002-09-18 Kim F. Storm <storm@cua.dk>
12403
12404 * process.c (make-network-process): Doc fix (there is no
12405 network-server-log-function hook).
12406
124072002-09-18 Richard M. Stallman <rms@gnu.org>
12408
12409 * print.c (print): Clear out the unused parts of Vprint_number_table.
12410 (syms_of_print): Doc fix for `print-number-table'.
12411
12412 * unexelf.c (unexec): Undo previous change.
12413
124142002-09-17 Andreas Schwab <schwab@suse.de>
12415
12416 * m/alpha.h [LINUX]: Don't define DATA_START.
12417
124182002-09-16 Dave Love <fx@gnu.org>
12419
12420 * unexelf.c (unexec): Deal with .got, reinstating change from
12421 25-08-1999.
12422
124232002-09-13 Richard M. Stallman <rms@gnu.org>
12424
12425 * s/sol2-6.h (UNEXEC): Comment out definition.
12426
12427 * unexsol.c (unexec): Don't downcase first letter of error msg.
12428
12429 * xfaces.c (Fcolor_supported_p): Just one arg is required.
12430
124312002-09-12 Markus Rost <rost@math.ohio-state.edu>
12432
12433 * unexsol.c: Include buffer.h, charset.h, coding.h.
12434
124352002-09-11 Richard M. Stallman <rms@gnu.org>
12436
12437 * unexsol.c: Don't use report_file_error; do it by hand
12438 using dlerror.
12439
12440 * process.c (wait_reading_process_input, both versions):
12441 Before calling turn_on_atimers, call stop_polling.
12442
12443 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
12444
12445 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
12446 we go to too_near_end, call clear_glyph_matrix.
12447 (redisplay_window): After make_cursor_line_fully_visible,
12448 call clear_glyph_matrix and bypass `goto done'.
12449
12450 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
12451 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
12452
124532002-09-10 Richard M. Stallman <rms@gnu.org>
12454
12455 * fileio.c (Fdo_auto_save): Catch error making directory.
12456 Only call push_message if we need to.
12457 At the same time, make an unwind-protect to pop it.
12458 Rename local message_p to old_message_p.
12459 (do_auto_save_make_dir, do_auto_save_eh): New functions.
12460 (do_auto_save_unwind): Don't call pop_message.
12461
12462 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
12463
12464 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
12465
12466 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
12467
12468 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
12469
124702002-09-10 Stefan Monnier <monnier@cs.yale.edu>
12471
12472 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
12473 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
12474 (re_match_2_internal): Be more careful with infinite loops.
12475
124762002-09-10 Kim F. Storm <storm@cua.dk>
12477
12478 * macros.c (end_kbd_macro): New function.
12479 (Fend_kbd_macro): Use it.
12480
12481 * macros.h (end_kbd_macro): Declare extern.
12482
12483 * keyboard.c (Fdiscard_input): If defining keyboard macro,
12484 end and save it instead of discarding it.
12485
124862002-09-09 Markus Rost <rost@math.ohio-state.edu>
12487
12488 * s/sol2-6.h: Fix typo. Add comment.
12489
124902002-09-09 Richard M. Stallman <rms@gnu.org>
12491
12492 * regex.c (regnum_t): Use signed int, not unsigned int.
12493
12494 * s/sol2-6.h: New file.
12495
12496 * s/sol2-5.h (UNEXEC): Definition deleted.
12497
124982002-09-08 Kim F. Storm <storm@cua.dk>
12499
12500 * macros.c (executing_macro_index): Change type to EMACS_INT.
12501 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
12502
12503 * macros.h (executing_macro_index): Change type to EMACS_INT.
12504
125052002-09-06 Richard M. Stallman <rms@gnu.org>
12506
12507 * casetab.c (set_case_table): Make canon table point to eqv table.
12508
125092002-09-06 Juanma Barranquero <lektu@terra.es>
12510
12511 * coding.c (syms_of_coding): Fix spacing.
12512
12513 * composite.c (Fcompose_region_internal)
12514 (Fcompose_string_internal): Likewise.
12515
12516 * data.c (Flsh): Likewise.
12517
12518 * fontset.c (Fset_fontset_font): Likewise.
12519
12520 * macfns.c (Fx_server_max_request_size): Likewise.
12521
12522 * w16select.c (syms_of_win16select): Likewise.
12523
12524 * w32select.c (syms_of_w32select): Likewise.
12525
12526 * xselect.c (syms_of_xselect): Likewise.
12527
125282002-09-05 Richard M. Stallman <rms@gnu.org>
12529
12530 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
12531 call EXTEND_RANGE_TABLE and return a proper value.
12532 (set_image_of_range): Don't call set_image_of_range_1
12533 if no TRANSLATE or if range includes all of Latin-1.
12534 Only call it for the Latin-1 part of the range.
12535 For other cases, make two separate ranges,
12536 one for the original specified characters and one for
12537 their case-conversions.
12538
125392002-09-04 Richard M. Stallman <rms@gnu.org>
12540
12541 * s/sol2-5.h (UNEXEC): Use unexsol.o.
12542
12543 * window.c (displayed_window_lines): Correct for one-off bug
12544 in HEIGHT on non-window displays.
12545
12546 * regex.c (set_image_of_range_1): New function.
12547 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
12548 Return a value to indicate running out of memory.
12549 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
12550 (extend_range_table_work_area): New subroutine.
12551 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
12552 Different calling conventions, and used from set_image_of_range{,_1}.
12553 (IMMEDIATE_QUIT_CHECK): Definitions moved.
12554
125552002-09-04 Juanma Barranquero <lektu@terra.es>
12556
12557 * makefile.w32-in: All dependencies updated.
12558
125592002-09-01 Richard M. Stallman <rms@gnu.org>
12560
12561 * unexsol.c: New file.
12562
12563 * xfns.c (Qbox): Declare external, don't define.
12564
12565 * xdisp.c (redisplay_window) <force-start case>:
12566 If point is on semi-visible last line, reposition
12567 it at previous line.
12568
12569 * alloc.c (display_malloc_warning): Use display-warning.
12570 (malloc_warning_1): Function deleted.
12571
12572 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
12573
12574 * lread.c (read1): Handle #! by skipping the line.
12575
125762002-08-31 Richard M. Stallman <rms@gnu.org>
12577
12578 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
12579 Don't include LDFLAGS.
12580 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
12581
125822002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
12583
12584 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
12585 member of x_display_info unless we compile for some window system.
12586
125872002-08-31 Kim F. Storm <storm@cua.dk>
12588
12589 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
12590 (get_window_cursor_type): Don't use them.
12591 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
12592
125932002-08-30 Kenichi Handa <handa@etl.go.jp>
12594
12595 * xdisp.c (get_next_display_element): Fix previous change.
12596
125972002-08-30 Andrew Choi <akochoi@shaw.ca>
12598
12599 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
12600 (expose_window): Use it to fix the display of overlapping
12601 rows (merge code from xterm.c).
12602
12603 * macfns.c (Qbox): Add extern declaration.
12604
126052002-08-30 Juanma Barranquero <lektu@terra.es>
12606
12607 * w32fns.c (Qbox): Make extern.
12608 (syms_of_w32fns): Remove initialization of Qbox.
12609
126102002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
12611
12612 * xfns.c (Fx_open_connection): Fix error message.
12613
126142002-08-30 Kim F. Storm <storm@cua.dk>
12615
12616 The following changes consolidates the handling of the cursor
12617 type in xdisp.c, moving duplicate code and functionality from
12618 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
12619
12620 * frame.h (enum text_cursor_kinds): Consolidated here.
12621 Added DEFAULT_CURSOR value.
12622 (struct frame) <desired_cursor, cursor_width>
12623 <blink_off_cursor, blink_off_cursor_width>: New fields.
12624 Consolidated from output_x, output_w32 and output_mac structs.
12625 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12626 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
12627
12628 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
12629 Variables consolidated here.
12630 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
12631 (Vcursor_in_non_selected_windows): Renamed from
12632 cursor_in_non_selected_windows and changed to Lisp_Object.
12633 (syms_of_xdisp): Define and staticpro new and moved variables.
12634 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
12635 consolidated here. Recognize Qhollow setting.
12636 (set_frame_cursor_types): New function to set frame cursor types
12637 based on the frame parameters.
12638 (get_window_cursor_type): New function to calculate new cursor
12639 type and width for the specified window. Based on duplicated
12640 code consolidated here.
12641 Enhancements: cursor-in-non-selected-windows may be a cursor type,
12642 check buffer-local alternate-cursor-type and blink-cursor-alist
12643 before using built-in blink off methods.
12644
12645 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
12646
12647 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
12648 (get_specified_cursor_type, get_window_cursor_type)
12649 (set_frame_cursor_types): Added prototypes.
12650
12651 * macfns.c (x_specified_cursor_type): Removed.
12652 (x_set_cursor_type): Use set_frame_cursor_types.
12653 (Qbar, Qbox): Removed.
12654 (syms_of_macfns): Don't intern or staticpro them.
12655
12656 * macterm.c (x_specified_cursor_type): Remove prototype.
12657 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12658 (x_display_and_set_cursor): Use get_window_cursor_type.
12659 Remove unused local variables cursor_non_selected, active_cursor.
12660 Redraw cursor if hbar cursor width changes.
12661 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
12662
12663 * macterm.h (enum text_cursor_kinds): Removed.
12664 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
12665 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12666 (FRAME_DESIRED_CURSOR): Macro removed.
12667
12668 * w32fns.c (Vblink_cursor_alist): Removed.
12669 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12670 (syms_of_w32fns): Don't intern, staticpro, or define them.
12671 (x_specified_cursor_type): Removed.
12672 (x_set_cursor_type): Use set_frame_cursor_types.
12673
12674 * w32term.c (x_specified_cursor_type): Remove prototype.
12675 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12676 (x_display_and_set_cursor): Use get_window_cursor_type.
12677 Remove unused local variables cursor_off_state.
12678 Redraw cursor if hbar cursor width changes.
12679 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
12680
12681 * w32term.h (enum text_cursor_kinds): Removed.
12682 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
12683 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12684 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12685 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12686 (struct w32_display_info) <x_highlight_frame>: Renamed member from
12687 w32_highlight_frame.
12688
12689 * xfns.c (Vblink_cursor_alist): Removed.
12690 (Qbar, Qhbar, Qbox, Qhollow): Removed.
12691 (syms_of_xfns): Don't intern, staticpro, or define them.
12692 (x_specified_cursor_type): Removed.
12693 (x_set_cursor_type): Use set_frame_cursor_types.
12694
12695 * xterm.c (x_specified_cursor_type): Remove prototype.
12696 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12697 (x_display_and_set_cursor): Use get_window_cursor_type.
12698 Remove unused local variables cursor_off_state.
12699 Redraw cursor if hbar cursor width changes.
12700
12701 * xterm.h (enum text_cursor_kinds): Removed.
12702 (struct output_x) <current_cursor, desired_cursor, cursor_width>
12703 <blink_off_cursor, blink_off_cursor_width>: Members removed.
12704 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12705 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12706 (x_specified_cursor_type): Remove prototype.
12707
127082002-08-28 Richard M. Stallman <rms@gnu.org>
12709
12710 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12711 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12712 (Vblink_cursor_alist): New variable.
12713 (syms_of_w32fns): Initialize and defvar it.
12714 (x_specified_cursor_type): Recognize Qbox for filled box.
12715 Exceptions are hollow boxes.
12716 (Qbox, Qhollow): New variables.
12717 (syms_of_w32fns): Initialize and staticpro them.
12718
12719 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12720 New macros.
12721 (struct w32_output): New fields blink_off_cursor,
12722 blink_off_cursor_width.
12723 (FRAME_CURSOR_WIDTH): New macro.
12724
12725 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12726 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12727
12728 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12729 for bar cursor.
12730
12731 * w32term.c (expose_overlaps): New function.
12732 (expose_window): Use it to fix the display of overlapping rows.
12733
127342002-08-28 Simon Josefsson <jas@extundo.com>
12735
12736 * xfns.c (Fx_open_connection): Improve help when X connection
12737 fails, xhost is insecure and xauth is better.
12738
127392002-08-28 Juanma Barranquero <lektu@terra.es>
12740
12741 * makefile.w32-in: Add missing dependencies on w32term.h and
12742 composite.h.
12743
12744 * emacs.c (USAGE1): Add missing newline.
12745
127462002-08-27 Andrew Choi <akochoi@shaw.ca>
12747
12748 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
12749
127502002-08-27 Richard M. Stallman <rms@gnu.org>
12751
12752 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12753 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12754 (Vblink_cursor_alist): New variable.
12755 (syms_of_xfns): Initialize and defvar it.
12756 (x_specified_cursor_type): Recognize Qbox for filled box.
12757 Exceptions are hollow boxes.
12758 (Qbox, Qhollow): New variables.
12759 (syms_of_xfns): Initialize and staticpro them.
12760
12761 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12762 New macros.
12763 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
12764
12765 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12766 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12767
12768 * emacs.c (main): Handle --script.
12769 (USAGE1): Mention --script.
12770 (standard_args): Define sort order for --script.
12771
127722002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
12773
12774 * xdisp.c (redisplay_updating_p): Variable removed.
12775 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
12776 New variables.
12777 (init_iterator): Don't free realized faces if
12778 inhibit_free_realized_faces is set.
12779 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
12780 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
12781 initialize Qinhibit_free_realized_faces.
12782
12783 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
12784 when iterator is adding glyphs to a glyph matrix.
12785
127862002-08-27 Kenichi Handa <handa@etl.go.jp>
12787
12788 * xdisp.c (get_next_display_element): In unibyte case, don't use
12789 octal form for such eight-bit characters that can be converted to
12790 multibyte char.
12791
127922002-08-26 Kim F. Storm <storm@cua.dk>
12793
b6189c3b
KS
12794 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
12795 foreground and background colors. From Joe Buehler.
048addec
JD
12796
127972002-08-26 Miles Bader <miles@gnu.org>
12798
12799 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
12800
128012002-08-25 Andrew Choi <akochoi@shaw.ca>
12802
12803 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
12804 defined instead of MAC_OSX.
12805
12806 * s/darwin.h (select): Define select to sys_select only if
12807 HAVE_CARBON is defined.
12808 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
12809 (DONT_REOPEN_PTY): #def it.
12810
12811 * macterm.c (XTread_socket): Remove code to call
12812 SendEventToEventTarget for keys with command modifiers when
12813 mac_command_key_is_meta is nil.
12814
128152002-08-24 Andreas Schwab <schwab@suse.de>
12816
12817 * eval.c (Fdefvar): Fix last change.
12818
128192002-08-23 Richard M. Stallman <rms@gnu.org>
12820
12821 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
12822 Record variables in load history as (defvar . VAR).
12823 (Fdefvar): Don't record in load history if no initial value.
12824 (Qdefvar): New variable.
12825 (syms_of_eval): Init and staticpro it.
12826
12827 * lread.c (syms_of_lread): Doc fix.
12828 (build_load_history): Use Fmember to see if a definition
12829 is already in the Vload_history element.
12830
12831 * process.c (Fstart_process): Remove /: from program name.
12832
12833 * emacs.c (decode_env_path): Don't add /: if file name handler
12834 has a `safe-magic' property.
12835
12836 * callproc.c (Fcall_process): Remove /: from program name.
12837
128382002-08-23 Stefan Monnier <monnier@cs.yale.edu>
12839
12840 * regex.c (PATFETCH): Remove the translating fetch.
12841 (PATFETCH_RAW): Rename to PATFETCH.
12842 (set_image_of_range): New fun.
12843 (SET_RANGE_TABLE_WORK_AREA): Use it.
12844 (regex_compile): Don't translate the pattern chars so eagerly.
12845 Only do it when inserting an `exactn' bytecode or when handling
12846 a char-range.
12847 (mutually_exclusive_p): Avoid empty statement.
12848
128492002-08-22 Kim F. Storm <storm@cua.dk>
12850
12851 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
12852 end up on a partially visible line; this reverts a specific part
12853 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
12854 display error which has been reported several times now.
12855 However it introduces the problem that changes was supposed to fix.
12856 See my comments in the source if you want to debug this further.
12857
128582002-08-20 Kenichi Handa <handa@etl.go.jp>
12859
12860 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12861
128622002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
12863
12864 * msdos.c (croak): Add `void' to definition.
12865
c1380aa6 12866 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
12867 Don't define them, they are defined in msdos.c.
12868
12869 * mem-limits.h [MSDOS]: Declare etext.
12870
12871 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
12872 `const' since CORRECT_DIR_SEPS modifies its target.
12873
128742002-08-19 Kim F. Storm <storm@cua.dk>
12875
2fb0ce67 12876 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
12877 KEEP-RECORD to avoid clearing lossage when we just want to clear
12878 the current key sequence (kmacro needs this).
12879
128802002-08-19 Kenichi Handa <handa@localhost>
12881
12882 * composite.c (run_composition_function): Call FUNC if it is fboundp.
12883
12884 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12885 cons, return Qnil.
12886
128872002-08-17 Richard M. Stallman <rms@gnu.org>
12888
12889 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12890
12891 * sysdep.c [!VMS]: Include sys/files.h.
12892
12893 * editfns.c (save_restriction_restore): Defend from unchained marker.
12894
12895 * buffer.c (overlays_at): Handle extending vec uniformly.
12896 (overlays_in): Handle extending vec from length 0 as in overlays_at.
12897
128982002-08-15 Andrew Choi <akochoi@shaw.ca>
12899
12900 * mac.c (init_mac_osx_environment): New function.
12901
12902 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12903
129042002-08-14 Kim F. Storm <storm@cua.dk>
12905
12906 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12907 executing macro before appending to it (when used from Lisp).
12908 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12909 which is called prior to each iteration of macro (for kmacro.el).
12910 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12911
12912 * lisp.h (Fexecute_kbd_macro): Update prototype.
12913
12914 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12915
129162002-08-14 Kenichi Handa <handa@etl.go.jp>
12917
12918 * xselect.c (QUTF8_STRING): New variable.
12919 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12920 (x_atom_to_symbol): Likewise.
12921 (x_get_local_selection): New argument local_request. If it is
12922 nonzero, call handler_fn with the second arg nil.
12923 (x_handle_selection_request): Call x_get_local_selection with
12924 local_request 0.
12925 (lisp_data_to_selection_data): Don't encode the string here.
12926 (Fx_get_selection_internal): Call x_get_local_selection with
12927 local_request 1.
12928 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12929
12930 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12931
12932 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12933
129342002-08-13 Richard M. Stallman <rms@gnu.org>
12935
12936 * minibuf.c (Fminibufferp): New function.
12937 (syms_of_minibuf): Defsubr it.
12938 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12939
129402002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
12941
12942 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12943
129442002-08-12 Richard M. Stallman <rms@gnu.org>
12945
12946 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12947 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12948 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
12949 already.
12950
12951 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
12952
129532002-08-11 Andrew Choi <akochoi@shaw.ca>
12954
12955 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
12956 (Vmac_pass_command_to_system): New variable.
12957 (Vmac_pass_control_to_system): New variable.
12958 (do_mouse_moved): Check wp with is_emacs_window.
12959 (XTread_socket): Check window_ptr with is_emacs_window.
12960 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
12961 events back to Mac Toolbox for processing, depending on values of
12962 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
12963 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
12964 Vmac_pass_control_to_system.
12965
129662002-08-10 Kenichi Handa <handa@etl.go.jp>
12967
12968 * coding.c (unencodable_char_position): New function.
12969 (Funencodable_char_position): New function.
12970 (syms_of_coding): Defsubr Funencodable_char_position.
12971
129722002-08-10 Andrew Choi <akochoi@shaw.ca>
12973
12974 * mac.c (sys_select) [MAC_OSX]: New function.
12975
12976 * macterm.c (MakeMeTheFrontProcess): New function.
12977 (mac_initialize): Call MakeMeTheFrontProcess.
12978
12979 * s/darwin.h: Define select to sys_select.
12980
129812002-08-09 Richard M. Stallman <rms@gnu.org>
12982
12983 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
12984
129852002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
12986
12987 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
12988 end of the buffer.
12989
129902002-08-08 Ken Raeburn <raeburn@mit.edu>
12991
12992 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
12993
12994 * puresize.h (BASE_PURESIZE): Increase to 910000.
12995
129962002-08-08 Kenichi Handa <handa@etl.go.jp>
12997
12998 * coding.c (Ffind_operation_coding_system): For write-region, if
12999 VISIT is a filename, make it the target.
13000
130012002-08-07 Richard M. Stallman <rms@gnu.org>
13002
13003 * alloc.c (mark_object): Detect long lists for debugging.
13004 (mark_object_loop_halt): New variable.
13005
13006 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
13007
13008 * data.c (Fmake_variable_frame_local): Doc fix.
13009
130102002-08-01 David Ponce <david@dponce.com>
13011
13012 * w32menu.c (local_heap, local_alloc, local_free): New macros.
13013 (malloc_widget_value, free_widget_value)
13014 (w32_free_submenu_strings): Use them.
13015
13016 (push_submenu_start, push_submenu_end, push_left_right_boundary)
13017 (push_menu_pane, push_menu_item, single_keymap_panes)
13018 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
13019 (single_submenu, set_frame_menubar)
13020 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
13021
13022 (Fx_popup_menu): Don't show pop up menu until preceding one is
13023 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
13024
13025 * w32menu.c: Changes adapted from xmenu.c
13026 (set_frame_menubar): First parse all submenus,
13027 then make widget_value trees from them.
13028 Don't allocate any widget_value objects
13029 until we are done with the parsing.
13030 (parse_single_submenu): New function.
13031 (digest_single_submenu): New function.
13032 (single_submenu): Function deleted, replaced by those two.
13033
130342002-08-04 Andrew Choi <akochoi@shaw.ca>
13035
13036 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
13037 returns a valid window pointer before proceeding for keyDown and
13038 autoKey events.
13039
130402002-08-03 Andrew Choi <akochoi@shaw.ca>
13041
13042 * macterm.c (USE_CARBON_EVENTS): New macro.
13043 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
13044 (x_iconify_frame): Call CollapseWindow.
13045 (Vmac_reverse_ctrl_meta): New variable.
13046 (Vmac_wheel_button_is_mouse_2): New variable.
13047 (init_mac_drag_n_drop): New function.
13048 (mac_do_receive_drag): New function.
13049 (mac_handle_service_event): New function.
13050 (init_service_handler): New function.
13051 (mac_to_emacs_modifiers): New function.
13052 (mac_event_to_emacs_modifiers): New function.
13053 (mac_get_mouse_btn): New function.
13054 (mac_convert_event_ref): New function.
13055 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
13056 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
13057 mac_get_mouse_btn.
13058 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
13059
13060 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
13061 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
13062 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
13063 TOOL_BAR_EVENT for MAC_OS as well.
13064 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
13065 as for WINDOWS_NT.
13066 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
13067
13068 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
13069
130702002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
13071
13072 * xdisp.c (forward_to_next_line_start): Fix a condition that
13073 lead to a newline being skipped.
13074
130752002-08-02 Andrew Choi <akochoi@shaw.ca>
13076
13077 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
13078
130792002-08-01 Richard M. Stallman <rms@gnu.org>
13080
13081 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
13082
130832002-07-31 Andrew Choi <akochoi@shaw.ca>
13084
13085 * macfns.c: #undef init_process before #define-ing it.
13086
13087 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
13088 HAVE_CARBON is defined.
13089
130902002-07-31 Richard M. Stallman <rms@gnu.org>
13091
13092 * xmenu.c (set_frame_menubar): First parse all submenus,
13093 then make widget_value trees from them.
13094 Don't allocate any widget_value objects
13095 until we are done with the parsing.
13096 (parse_single_submenu): New function.
13097 (digest_single_submenu): New function.
13098 (single_submenu): Function deleted, replaced by those two.
13099
131002002-07-30 Juanma Barranquero <lektu@terra.es>
13101
13102 * w32proc.c (syms_of_ntproc): Fix docstring of
13103 `w32-get-true-file-attributes'.
13104
131052002-07-28 Richard M. Stallman <rms@gnu.org>
13106
13107 * s/hpux8.h (HPUX8): Define this before including hpux.h.
13108 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
13109
13110 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
13111
13112 * keyboard.c (make_lispy_event):
13113 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
13114 Explicitly clear up_modifier in event->modifiers.
13115
131162002-07-27 Richard M. Stallman <rms@gnu.org>
13117
13118 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
13119
13120 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
13121 for bar cursor.
13122
131232002-07-26 Kenichi Handa <handa@etl.go.jp>
13124
13125 * coding.c (detect_coding_iso2022): While checking a byte sequence
13126 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
13127 it in the normal loop.
13128
131292002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
13130
13131 * xterm.c (expose_overlaps): New function.
13132 (expose_window): Use it to fix the display of overlapping rows.
13133
13134 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
13135
131362002-07-23 Ken Raeburn <raeburn@gnu.org>
13137
13138 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
13139 since it only depends on XUINT.
13140
13141 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
13142 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
13143 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
13144 Macros deleted.
3947677c 13145
77d1daf2
AS
13146 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
13147 its value over other approaches.
13148 * sysdep.c (start_of_data): Don't define the function if a macro
13149 form has been defined.
8a8e19a3 13150
048addec
JD
131512002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
13152
13153 * xdisp.c (redisplay_updating_p): New variable.
13154 (init_iterator): Don't free realized faces when
13155 redisplay_updating_p is set.
13156 (redisplay_internal): Set redisplay_updating_p while updating
13157 the display.
13158
131592002-07-23 Richard M. Stallman <rms@gnu.org>
13160
13161 * editfns.c (Fmessage): Treat "" like nil.
13162
131632002-07-23 Kenichi Handa <handa@etl.go.jp>
13164
13165 * xdisp.c (face_before_or_after_it_pos):
13166 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13167
131682002-07-22 Juanma Barranquero <lektu@terra.es>
13169
13170 * callproc.c (init_callproc) [DOS_NT]:
13171 Initialize Vshared_game_score_directory to nil.
13172 (syms_of_callproc) [DOS_NT]: Likewise.
13173
131742002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
13175
13176 * xdisp.c (display_line): Replace an abort with xassert.
13177
131782002-07-21 Richard M. Stallman <rms@gnu.org>
13179
13180 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
13181 and END_UNCHANGED when setting buffer_unchanged_p.
13182 Use current_matrix_up_to_date_p to decide whether to use
13183 try_cursor_movement.
13184
13185 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
13186
13187 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
13188
13189 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
13190 Set to nil if dir does not exist.
13191 (syms_of_callproc): Init unconditionally and simply.
13192
13193 * buffer.c (Fbuffer_list): Doc fix.
13194
131952002-07-21 Ken Raeburn <raeburn@gnu.org>
13196
13197 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
13198
13199 * buffer.c (mmap_realloc): When shrinking, make sure number of
13200 pages to unmap is rounded towards zero.
13201
13202 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
13203 (XSETINT): Deleted.
13204
13205 * m/att3b.h (XINT): Don't define.
13206 (VALBITS, VALMASK, XTYPE): Deleted.
13207 (DATA_SEG_BITS): Define.
13208 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
13209 ARRAY_MARK_FLAG): Deleted.
13210 (DATA_SEG_BITS): Define.
13211 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
13212 (DATA_SEG_BITS): Define.
13213
132142002-07-20 Richard M. Stallman <rms@gnu.org>
13215
13216 * print.c (print_error_message): New args CONTEXT and CALLER.
13217 Calls changed.
13218
13219 * lisp.h (print_error_message): Declare new args.
13220
13221 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
13222 and CONTEXT to print_error_message, don't print them here.
13223 For a Quit, don't use Vsignaling_function.
13224 Call message_log_maybe_newline.
13225
13226 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
13227
132282002-07-20 Kim F. Storm <storm@cua.dk>
13229
13230 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
13231
132322002-07-19 Ken Raeburn <raeburn@gnu.org>
13233
13234 * bytecode.c (struct byte_stack): Pointers into byte string now
13235 point to const.
13236 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
13237 const.
13238 * charset.h (BCOPY_SHORT): Source pointer now points to const.
13239 * coding.c (encode_eol, detect_coding, detect_eol):
13240 (decode_coding, encode_coding, detect_coding_system):
13241 Source strings now treated as const.
13242 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
13243 modify Lisp string contents.
13244 * coding.h (decode_coding, encode_coding, detect_coding,
13245 detect_eol): Declarations updated.
13246 * composite.c (compose_chars_in_text): Treat Lisp string contents
13247 as const.
13248 * dispnew.c (safe_bcopy): Source pointer now points to const.
13249 * lisp.h (STRING_COPYIN): New macro.
13250 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
13251 (internal_with_output_to_temp_buffer): Declarations updated.
13252 * print.c (temp_output_buffer_setup):
13253 (internal_with_output_to_temp_buffer): Buffer name argument is now
13254 pointer to const.
13255 * sound.c (struct sound_device): Function pointer field "write"
13256 buffer argument now points to const.
13257 (vox_write): Buffer argument points to const.
13258 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
13259 contents as const.
13260 * sysdep.c (emacs_write): Buffer pointer now const.
13261 * term.c (encode_terminal_code): Buffer pointer now const.
13262 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
13263 (x_face_list_fonts, x_update_menu_appearance):
13264 (hash_string_case_insensitive): Treat Lisp string contents as const.
13265
132662002-07-19 Juanma Barranquero <lektu@terra.es>
13267
048addec
JD
13268 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
13269
13270 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
13271 (Ffile_name_as_directory): Fix argument name in docstring.
13272 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
13273
132742002-07-18 Richard M. Stallman <rms@gnu.org>
13275
13276 * data.c (Fdefalias): Doc fix.
13277
132782002-07-17 Dave Love <fx@gnu.org>
13279
13280 * intervals.h (text_property_stickiness): Use P_.
13281
13282 * ccl.c: Remove `emacs' conditionals.
13283 (ccl_backtrace_table): Fix size spec.
13284 (ccl_driver): Fix type errors.
13285
132862002-07-16 Ken Raeburn <raeburn@gnu.org>
13287
13288 * alloc.c (xstrdup, make_string, make_unibyte_string)
13289 (make_multibyte_string, build_string): String pointer args now
13290 point to const.
13291 * charset.c (find_charset_in_text, c_string_width):
13292 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
13293 * fileio.c (report_file_error):
13294 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
13295 (count_combining_before, count_combining_after, insert_1_both):
13296 (insert, insert_and_inherit, insert_string):
13297 (insert_before_markers, insert_before_markers_and_inherit):
13298 * lread.c (intern, oblookup, hash_string):
13299 * minibuf.c (temp_echo_area_glyphs):
13300 * search.c (fast_c_string_match_ignore_case):
13301 * sysdep.c (emacs_open, set_file_times):
13302 * xfaces.c (xstricmp):
13303 * xdisp.c (store_frame_title, string_char_and_length):
13304 (message_dolog, message2, message2_nolog, set_message): Likewise.
13305 (set_message_1): Cast message string argument to const pointer.
13306 * editfns.c (general_insert_function): Insertion function now
13307 takes pointer to const for input data.
13308 * charset.h (find_charset_in_text, c_string_width):
13309 (parse_str_as_multibyte): Declarations updated.
13310 * dispextern.h (xstricmp): Declaration updated.
13311 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
13312 (count_size_as_multibyte, count_combining_before):
13313 (count_combining_after, insert_1, insert_1_both, message_dolog):
13314 (insert, insert_and_inherit, insert_before_markers)
13315 (insert_before_markers_and_inherit, set_message, message2):
13316 (message2_dolog, build_string, make_string, make_unibyte_string):
13317 (make_multibyte_string, intern, oblookup, report_file_error):
13318 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
13319 (emacs_open, xstrdup): Declarations updated.
13320 * systime.h (set_file_times): Declaration updated.
13321
13322 * charset.c (find_charset_in_text, lisp_string_width): Use const
13323 for pointer to lisp string data.
13324 * charset.h (FETCH_STRING_CHAR_ADVANCE):
13325 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
13326 * coding.c (Ffind_coding_systems_region_interval):
13327 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
13328 (Fmake_directory_internal, Fdelete_directory):
13329 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
13330 * fontset.c (font_family_registry, fs_query_fontset):
13331 (list_fontsets):
13332 * frame.c (Fframe_parameter):
13333 * keyboard.c (cmd_error_internal):
13334 * keymap.c (Fdescribe_buffer_bindings):
13335 * lread.c (complete_filename_p, openp):
13336 * minibuf.c (Fminibuffer_complete_word):
13337 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
13338 (face_before_or_after_it_pos, next_element_from_string):
13339 (get_overlay_arrow_glyph_row, display_mode_element):
13340 (decode_mode_spec_coding):
13341 * xterm.c (same_x_server): Likewise.
13342
13343 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
13344 settings of non-existent fields.
13345
13346 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
13347 copy a lisp value.
13348
13349 * lread.c (Fintern_soft): Use string macros instead of
13350 Lisp_String fields.
13351 * keyboard.c (echo_char, parse_modifiers_uncached):
13352 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
13353 * textprop.c (validate_interval_range, interval_of): Likewise.
13354
13355 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
13356
13357 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13358 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
13359 XSTRING()->size_byte.
13360
13361 * lisp.h (SDATA, SREF): Produce rvalue.
13362 (SSET): New macro.
13363 * alloc.c (make_event_array): Use SSET for storing into a string.
13364 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
13365 a string.
13366 * casefiddle.c (casify_object): Use SSET.
13367 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13368 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
13369 address of string contents.
13370 * data.c (Faref): Use SDATA.
13371 (Faset): Use SDATA, SSET.
13372 * dired.c (directory_files_internal): Use SSET.
13373 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
13374 (Fread_file_name): Use SREF, SSET.
13375 * fns.c (concat): Use SSET.
13376 (concat, Fdelete): Use SDATA.
13377 * insdel.c (insert_from_string_1): Use SDATA.
13378 * keyboard.c (Fevent_convert_list): Use SREF.
13379 * lread.c (Fload): Use SDATA, SSET.
13380 * macfns.c (validate_x_resource_name): Use SSET.
13381 * process.c (status_message): Use SSET.
13382 * search.c (wordify): Use SDATA.
13383 (Freplace_match): Use SREF.
13384 * w32fns.c (validate_x_resource_name): Use SSET.
13385 * xfns.c (validate_x_resource_name): Use SSET.
13386 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
13387
133882002-07-16 Richard M. Stallman <rms@gnu.org>
13389
13390 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
13391
13392 * xdisp.c (reconsider_clip_changes):
13393 Don't test prevent_redisplay_optimizations_p.
13394 (redisplay_internal): Test prevent_redisplay_optimizations_p
13395 along with clip_changed in some cases.
13396 (try_window_id): Likewise.
13397 (redisplay_window): New local var buffer_unchanged_p.
13398
13399 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
13400
13401 * process.c (create_process): Test USG_SUBTTY_WORKS.
13402 (process_send_signal): Clean up handling of GID.
13403 Detect errors in ioctls meant to set GID.
13404
13405 * window.c (temp_output_buffer_show):
13406 Don't set prevent_redisplay_optimizations_p.
13407
134082002-07-15 Juanma Barranquero <lektu@terra.es>
13409
13410 * eval.c (Fdefvaralias): Add docstring argument.
13411
134122002-07-15 Ken Raeburn <raeburn@gnu.org>
13413
13414 * lisp.h (STRING_INTERVALS): Produce rvalue.
13415 (STRING_SET_INTERVALS): New macro.
13416 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
13417 * fns.c (Fstring_as_multibyte): Likewise.
13418 * intervals.c (balance_possible_root_interval, delete_interval)
13419 (create_root_interval, copy_intervals_to_string): Likewise.
13420 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
13421 instead of 0.
13422
134232002-07-14 Ken Raeburn <raeburn@gnu.org>
13424
13425 * lisp.h (STRING_SET_CHARS): New macro.
13426 (SCHARS, SBYTES): Produce rvalues.
13427 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
13428 * fns.c (concat): Likewise.
13429 * lread.c (read_vector): Likewise.
13430
3419757d 13431 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 13432 (STRING_SET_UNIBYTE): New macro.
3419757d 13433 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
13434 length of -1) changed to use STRING_SET_UNIBYTE.
13435 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13436 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
13437 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
13438 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
13439 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
13440 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
13441 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
13442 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
13443 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
13444 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
13445 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
13446 STRING_BYTES or indirection changed to SCHARS, SBYTES,
13447 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
13448 unchanged for now.
13449
134502002-07-13 Kim F. Storm <storm@cua.dk>
13451
13452 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
13453
134542002-07-12 Richard M. Stallman <rms@gnu.org>
13455
13456 * fileio.c (Fwrite_region): Doc fix.
13457
13458 * print.c (print_error_message): Don't handle Vsignaling_function here.
13459
13460 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
13461 (command_loop_1): Avoid certain actions after memory-full error.
13462
13463 * eval.c (Fsignal): Don't call cancel_hourglass.
13464 For a memory-full error, don't call Vsignal_hook_function
13465 and don't set Vsignaling_function.
13466
13467 * process.c (process_send_signal): Add abort call.
13468
134692002-07-11 Markus Rost <rost@math.ohio-state.edu>
13470
13471 * keymap.c (Fkey_binding): Fix typo.
13472
134732002-07-11 Richard M. Stallman <rms@gnu.org>
13474
13475 * alloc.c (Vmemory_full): New variable.
3419757d 13476 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
13477 Uses changed.
13478 (syms_of_alloc): Defvar them.
13479 (memory_full, buffer_memory_full): Set Vmemory_full.
13480
13481 * lisp.h (Vmemory_full): Add declaration.
13482 (current_column, indented_beyond_p): Change declaration.
13483
13484 * indent.c (last_known_column): Declare as double, not float.
13485 (current_column, current_column_1, string_display_width)
13486 (position_indentation): Return `double'.
13487 (indented_beyond_p): Arg `column' is `double'. Callers changed.
13488
13489 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
13490 (back_to_previous_visible_line_start)
13491 (reseat_at_next_visible_line_start, next_element_from_buffer):
13492 Use `double', not `float', when calling indented_beyond_p.
13493
3419757d 13494 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
13495
13496 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
13497
134982002-07-11 Juanma Barranquero <lektu@terra.es>
13499
13500 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
13501 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
13502 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
13503 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
13504 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
13505 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
13506
135072002-07-10 Juanma Barranquero <lektu@terra.es>
13508
d814862a
JB
13509 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
13510 All callers changed.
048addec
JD
13511
135122002-07-09 Stefan Monnier <monnier@cs.yale.edu>
13513
13514 * data.c (Fdefalias): Add an optional `docstring' argument.
13515 (set_internal, Fsetq_default): Use XCAR/XCDR.
13516
13517 * composite.c (HASH_VALUE, HASH_KEY):
13518 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
13519
135202002-07-09 Kenichi Handa <handa@etl.go.jp>
13521
13522 * callproc.c (Fcall_process): Fix previous change.
13523
135242002-07-07 Stefan Monnier <monnier@cs.yale.edu>
13525
13526 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13527 Add support for hash-tables.
13528 (Ftry_completion): Return t even if the string appears multiple times.
13529
13530 * fns.c (Fnconc): Use XCDR.
13531 (Fprovide): Use CONSP and XCDR.
13532 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13533 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
13534 (Fmake_hash_table): Accept `:size nil'.
13535 (Fmakehash): Delete: moved to subr.el.
13536 (syms_of_fns): Don't defsubr makehash.
13537
13538 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13539 (HASH_TABLE_SIZE): Move from fns.c.
13540
135412002-07-07 Richard M. Stallman <rms@gnu.org>
13542
13543 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
13544 Instead just return 0 when there is something to be done.
13545 (try_scrolling): If make_cursor_line_fully_visible returns 0,
13546 retry scrolling as if cursor were off the bottom.
13547 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
13548 return CURSOR_MOVEMENT_MUST_SCROLL.
13549 (redisplay_window): If make_cursor_line_fully_visible returns 0,
13550 go to try_to_scroll.
13551
13552 * buffer.c (Fbuffer_local_value): Store current value into its binding
13553 so we get the up-to-date value for the binding that is loaded.
13554
13555 * eval.c (Fdefmacro): Doc fix.
13556
135572002-07-05 Dave Love <fx@gnu.org>
13558
13559 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
13560 correctly.
13561
13562 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
13563 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
13564 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
13565 CCL_LookupCharConstTbl.
13566 (syms_of_ccl): Defvar translation-hash-table-vector.
13567
135682002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13569
13570 * xdisp.c: Remove unused variable `face'.
13571
135722002-07-04 Juanma Barranquero <lektu@terra.es>
13573
13574 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
13575 obsolescence information.
13576
135772002-07-03 Andrew Choi <akochoi@shaw.ca>
13578
13579 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
13580 pattern. Search cache first.
13581 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
13582 for Japanese font.
13583 (XLoadQueryFont): Use it.
13584
135852002-07-02 Richard M. Stallman <rms@gnu.org>
13586
13587 * keymap.c (Fdefine_key): Doc fix.
13588
13589 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
13590
135912002-07-02 Juanma Barranquero <lektu@terra.es>
13592
13593 * keymap.c (syms_of_keymap): Fix typo.
13594
135952002-07-01 Andrew Choi <akochoi@shaw.ca>
13596
13597 * s/darwin.h: Define POSIX_SIGNALS.
13598
13599 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
13600 and FSRefMakePath to convert FSSpec returned with Apple Event to
13601 Posix pathname.
13602 (mac_initialize) [TARGET_API_MAC_CARBON]:
13603 Call init_required_apple_events and disable the `Quit' menu item
13604 provided automatically by the Carbon Toolbox.
13605
136062002-07-01 Dave Love <fx@gnu.org>
13607
13608 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13609 for K&R.
13610
13611 * xterm.c: Fix prototype for K&R.
13612
13613 * term.c (costs_set): Declare static, non-initialized for pcc.
13614
136152002-07-01 Richard M. Stallman <rms@gnu.org>
13616
13617 * keyboard.c (timer_last_idleness_start_time): New variable.
13618 (timer_start_idle): Set that.
13619 (read_key_sequence): Use that to reset timer_idleness_start_time
13620 to previous value.
13621
13622 * window.c (Frecenter): With arg, set optional_new_start.
13623
13624 * xdisp.c (redisplay_internal): Make optional_new_start really work.
13625
13626 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
13627 buffer for completion.
13628
136292002-06-29 Ken Raeburn <raeburn@gnu.org>
13630
13631 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
13632
136332002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13634
13635 * keyboard.c (readable_filtered_events): New function that filters
13636 FOCUS_IN_EVENT depending on parameter.
13637 (readable_events): Calls readable_filtered_events, not filtering
13638 FOCUS_IN_EVENT.
13639 (get_filtered_input_pending): New function, filtering parameter passed
13640 to readable_filtered_events.
13641 (get_input_pending): Calls get_filtered_input_pending, not filtering
13642 FOCUS_IN_EVENT.
13643 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
13644 FOCUS_IN_EVENT.
13645
13646 * xterm.h (struct x_output): Add focus_state.
13647
13648 * xterm.c (x_focus_changed): New function.
13649 (x_detect_focus_change): New function.
13650 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
13651 EnterNotify and LeaveNotify to track X focus changes.
13652
136532002-06-28 Andreas Schwab <schwab@suse.de>
13654
13655 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
13656
136572002-06-27 Kim F. Storm <storm@cua.dk>
13658
13659 * xdisp.c: (mode_line_string_list, mode_line_string_face)
13660 (mode_line_string_face_prop): New variables.
13661 (store_mode_line_string): New function.
13662 (display_mode_element): Use store_mode_line_string to
13663 add mode-line string elements to mode_line_string_list
13664 when mode_line_string_list is non-nil.
13665 (Fformat_mode_line): Now returns propertized string by
13666 default. New arg NO-PROPS to ignore properties.
13667 (decode_mode_spec): Only add two dashes for %- in propertized
13668 mode-line string.
13669 (syms_of_xdisp): Init and staticpro mode_line_string_list.
13670
136712002-06-27 Stefan Monnier <monnier@cs.yale.edu>
13672
13673 * minibuf.c (minibuffer_completion_contents): Add return type.
13674
136752002-06-27 Juanma Barranquero <lektu@terra.es>
13676
13677 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
13678
136792002-06-26 Juanma Barranquero <lektu@terra.es>
13680
13681 * fileio.c (read_file_name_cleanup): Add missing return.
13682
136832002-06-26 Richard M. Stallman <rms@gnu.org>
13684
13685 * window.c (Frecenter): Don't set force_start flag.
13686
13687 * minibuf.c (do_completion, Fminibuffer_complete_word)
13688 (Fminibuffer_completion_help): Complete just the text before point.
13689 (minibuffer_completion_contents): New function.
13690
13691 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
13692
13693 * frame.c (frames_bury_buffer): Function deleted.
13694
136952002-06-25 Miles Bader <miles@gnu.org>
13696
13697 * callint.c (Fcall_interactively): When checking to see if doprnt hit
13698 the end of callint_message, allow for a terminating '\0'.
13699
137002002-06-24 Juanma Barranquero <lektu@terra.es>
13701
13702 * w32select.c: Include composite.h
13703
13704 * w16select.c: Likewise.
13705
137062002-06-24 Kenichi Handa <handa@etl.go.jp>
13707
13708 * callproc.c (Fcall_process): If code detection is necessary,
13709 call detect_coding directly here.
13710
13711 * coding.c (detect_eol): Preserve coding->cmp_data.
13712
13713 * w16select.c (Fw16_get_clipboard_data):
13714 * w32fns.c (w32_to_x_font):
13715 * w32select.c (Fw32_get_clipboard_data):
13716 * xselect.c (selection_data_to_lisp_data):
13717 * xterm.c (XTread_socket): Disable composition handling.
13718
137192002-06-24 Stefan Monnier <monnier@cs.yale.edu>
13720
13721 * print.c (temp_output_buffer_setup): Kill all local variables.
13722
137232002-06-22 Stefan Monnier <monnier@cs.yale.edu>
13724
13725 * lread.c (Fread): Remove redundant and imprecise declaration.
13726
13727 * xfns.c (check_x_display_info): Use check_x_frame.
13728
13729 * .gdbinit (xprintsym): Use the new `xname' field.
13730 (xsymbol): Use it.
13731
137322002-06-22 Jason Rumney <jasonr@gnu.org>
13733
13734 * w32fns.c (file_dialog_callback): New function.
13735 (Fx_file_dialog): Allow selecting directories as well as files.
13736
137372002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13738
13739 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 13740 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
13741
137422002-06-17 Andrew Choi <akochoi@shaw.ca>
13743
13744 * macterm.c (mac_scroll_area): Set foreground and backcolor to
13745 black and white before scrolling. Restore frame background and
13746 foreground color after scrolling.
13747 (do_window_update): Call XClearWindow before calling expose_frame.
13748 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
13749 FRAME_FOREGROUND_PIXEL of frame.
13750
13751 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13752 test Mac command key as <ALT> key.
13753
137542002-06-17 Stefan Monnier <monnier@cs.yale.edu>
13755
13756 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
13757
13758 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
13759 Lookup keys in function-key-map immediately so that key-translation-map
13760 can be applied earlier.
13761 Remove function_key_possible and key_translation_possible, replaced
13762 by checking `keytran_start < t'.
13763
13764 * .gdbinit (xsymbol): Use the new `xname' field.
13765
137662002-06-17 Andrew Choi <akochoi@shaw.ca>
13767
13768 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13769 test Mac command key as <ALT> key.
13770
13771 * mac.c (do_applescript): Call initialize_applescript if necessary
13772 when first called. Dispose of result_desc only when there is no error.
13773 (Fdo_applescript): Use %d format specifier instead of %ld.
13774
137752002-06-16 Andrew Choi <akochoi@shaw.ca>
13776
13777 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
13778 of FrontWindow for cases keyDown and autoKey.
13779
13780 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
13781 Vdefault_fontset to Monaco with mac-roman coding.
13782
13783 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
13784 init_process before and after inclusion of Carbon/Carbon.h, resp.
13785
13786 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
13787 cursor_gc.
13788 (add_font_name_table_entry): New function.
13789 (init_font_name_table): Use add_font_name_table_entry; add italic,
13790 bold, and bold-italic entries for truetype fonts.
13791
13792 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
13793 for Mac too.
13794 (try_font_list) [MAC_OS]: If no font matches given registry, try
13795 fonts with any registry matching face_family.
13796 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
13797
13798 * s/darwin.h: If autoconf detects the Ncurses library, define
13799 LIBS_TERMCAP to -lncurses to use it.
13800
138012002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
13802
13803 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
13804
138052002-06-15 Richard M. Stallman <rms@gnu.org>
13806
13807 * window.c (Fset_window_configuration): Explicitly preserve
13808 the point value that new_current_buffer had at the start.
13809
138102002-06-14 Juanma Barranquero <lektu@terra.es>
13811
13812 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
13813 Fix typos.
13814
138152002-06-14 Kim F. Storm <storm@cua.dk>
13816
13817 * insdel.c (insert_1_both, insert_from_string_1)
13818 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
13819 insert happened in the end_unchanged region. Otherwise, the
13820 redisplay may be confused and duplicate the last line in the
13821 buffer [seen after save-buffer when require-final-newline==t].
13822
138232002-06-13 Jason Rumney <jasonr@gnu.org>
13824
13825 * w32.c (init_environment): Remove EMACSLOCKDIR.
13826 (stat): Swap _S_IFDIR and _S_IFREG.
13827
138282002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13829
13830 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
13831 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
13832 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
13833 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
13834 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
13835 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
13836 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
13837 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
13838 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
13839 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
13840 SELECTION_REQUEST_EVENT, selection_clear_event to
13841 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
13842 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
13843 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
13844 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
13845 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
13846 no_event to NO_EVENT.
13847
138482002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13849
13850 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
13851
138522002-06-12 Stefan Monnier <monnier@cs.yale.edu>
13853
13854 * intervals.c (textget): Don't forget to `return'.
13855 (lookup_char_property): Use XCAR/XCDR.
13856
138572002-06-12 Juanma Barranquero <lektu@terra.es>
13858
13859 * xdisp.c (Fformat_mode_line): Fix typo.
13860
138612002-06-12 Kim F. Storm <storm@cua.dk>
13862
13863 * xdisp.c (Fformat_mode_line): New function.
13864 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
13865 (store_frame_title_char, store_frame_title): Use unconditionally.
13866 (init_xdisp): Defsubr Fformat_mode_line.
13867 Initialize frame_title_buf etc. unconditionally.
13868
138692002-06-11 Stefan Monnier <monnier@cs.yale.edu>
13870
13871 * keyboard.c (read_key_sequence):
13872 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
13873 things through those maps after downcasing events.
13874 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
13875 applies after function-key-map.
13876 Make sure that keytran can be done in the middle in the sequence.
13877 Be careful not to throw away events past the one we downcase.
13878
13879 * lread.c (read_integer): Remove unused var `tem'.
13880 (read1): Fix int/Lisp_Object mixup.
13881
13882 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13883
138842002-06-11 Richard M. Stallman <rms@gnu.org>
13885
13886 * keyboard.c (readable_events): Ignore any number of
13887 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13888
138892002-06-09 Miles Bader <miles@gnu.org>
13890
13891 * xfaces.c (Ftty_supports_face_attributes_p): New function.
13892 (parse_rgb_list, tty_lookup_color): New functions.
13893 (tty_defined_color): Use `tty_lookup_color' to do all the work.
13894 (color_distance, Fcolor_distance): New functions.
13895 (TTY_SAME_COLOR_THRESHOLD): New macro.
13896 (Qtty_color_standard_values): New variable.
13897 (syms_of_xfaces): Initialize new vars & functions.
13898
138992002-06-08 Colin Walters <walters@verbum.org>
13900
13901 * textprop.c (Vchar_property_alias_alist): New variable.
13902 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13903
13904 * intervals.c (lookup_char_property): New function for looking up
13905 overlay and text properties, created from textget.
13906 (textget): Use it.
13907
13908 * intervals.h (lookup_char_property): Declare.
13909 (Vchar_property_alias_alist): Declare.
13910
13911 * buffer.c (Foverlay_get): Use lookup_char_property.
13912
139132002-06-07 Sam Steingold <sds@gnu.org>
13914
13915 * xselect.c (lisp_data_to_selection_data): Fix last change:
13916 *data_ret is not a Lisp string, while unibyte_string is.
13917
139182002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
13919
13920 * xselect.c (lisp_data_to_selection_data): Fix last change:
13921 set size_ret.
13922
139232002-06-07 Andreas Schwab <schwab@suse.de>
13924
13925 * m/amdx86-64.h: New file.
13926
139272002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
13928
13929 * fns.c (Fstring_make_unibyte): Doc fix.
13930
13931 * xselect.c (lisp_data_to_selection_data): If the requested type
13932 is STRING, call string_make_unibyte to encode the selected text
13933 as a string.
13934
13935 * window.c (Fset_window_hscroll): Doc fix.
13936
139372002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13938
13939 * fileio.c (choose_write_coding_system):
13940 Call select-safe-coding-system properly.
13941
139422002-06-03 Richard M. Stallman <rms@gnu.org>
13943
13944 * xdisp.c (message_with_string): Error if STRING is not a string.
13945
13946 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13947
13948 * fileio.c (choose_write_coding_system): Pass FILE arg to
13949 Vselect_safe_coding_system_function.
13950
139512002-06-03 Ken Raeburn <raeburn@gnu.org>
13952
13953 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
13954
139552002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
13956
13957 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
13958 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
13959 * keymap.c (describe_command): Likewise.
13960 * minibuf.c (read_minibuf): Likewise.
13961
13962 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
13963 Cast `current_column' return value to int.
13964 (back_to_previous_visible_line_start)
13965 (reseat_at_next_visible_line_start, next_element_from_buffer):
13966 Cast `indented_beyond_p' 3rd arg to float.
13967
13968 * indent.c (last_known_column): Now a float.
13969 (current_column_1, position_indentation, current_column)
13970 (string_display_width): Return float.
13971 (Fcurrent_column): Cast `current_column' return value to int.
13972 (Fcurrent_indentation): Cast `position_indentation' retval to int.
13973 (indented_beyond_p): Third arg now a float.
13974 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
13975
13976 * lisp.h (current_column): Now returns float.
13977 (indented_beyond_p): 3rd arg now a float.
13978
139792002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
13980
13981 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
13982 is Qcompound_text_with_extensions.
13983
13984 * xselect.c (lisp_data_to_selection_data): Always set selection
13985 type as string if x_encode_text returns streingp non-NULL.
13986
13987 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
13988
139892002-05-30 Richard M. Stallman <rms@gnu.org>
13990
13991 * window.c (Fset_window_configuration): Correct the handling
13992 of point in current buffer, to work with multiple windows.
13993
139942002-05-29 Colin Walters <walters@verbum.org>
13995
13996 * lread.c (Fread_from_string): Don't depend on order of evaluation
13997 for C function parameters.
13998
139992002-05-28 Richard M. Stallman <rms@gnu.org>
14000
14001 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
14002 way for blinked-off state and for a nonselected window.
14003
14004 * window.c (window_scroll_pixel_based): Don't call Fbolp;
14005 instead, see if the new start pos is at beginning of line.
14006
14007 * fileio.c (Fwrite_region): If START is a string, don't
14008 make any annotations.
14009
14010 * eval.c (syms_of_eval): Doc fix.
14011
140122002-05-28 Colin Walters <walters@debian.org>
14013
14014 * emacs.c (USAGE1): Add --no-splash.
14015 (standard_args): Ditto.
14016
140172002-05-28 Colin Walters <walters@gnu.org>
14018
14019 * lread.c (readchar_count): New variable.
14020 (readchar): Increment it.
14021 (unreadchar): Decrement it.
14022 (read_multibyte): Decrement it.
14023 (Vread_with_symbol_positions): New variable.
14024 (Vread_symbol_positions_list): New variable.
14025 (read_internal_start): New function, created from Fread and
14026 Fread_from_string. Handle Vread_symbol_positions_list and
14027 Vread_with_symbol_positions.
14028 (readevalloop, Fread, Fread_from_string): Use it.
14029 (read1): Use readchar_count to add symbol positions to
14030 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
14031 (syms_of_lread): DEFVAR_LISP and initialize them.
14032
14033 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
14034 (substitute_object_recurse, substitute_object_in_subtree)
14035 (substitute_in_interval): Prototype.
14036 (read_multibyte): Return c if it's less than zero.
14037
140382002-05-28 Kim F. Storm <storm@cua.dk>
14039
14040 * fileio.c (Fread_file_name_internal): Added brute-force
14041 speed up for using predicate file-directory-p.
14042
140432002-05-28 Kim F. Storm <storm@cua.dk>
14044
14045 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
14046 New variables.
14047 (syms_of_fileio): DEFVAR_LISP them.
14048 (read_file_name_cleanup): New unwind function.
14049 (Fread_file_name_internal): Only return completions satifying
14050 Vread_file_name_predicate. Temporarily unwind protect and rebind
14051 default-directory while checking completions against the predicate.
14052 (Fread_file_name): Added PREDICATE argument. Specbind it to
14053 Vread_file_name_predicate during completion.
14054 Call Vread_file_name_function to read the file name if non-nil.
14055
14056 * lisp.h (Fread_file_name): Now has 6 args.
14057
14058 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
14059 predicate for Fread_file_name when reading directory name.
14060 Supply Qnil for predicate in other calls to Fread_file_name.
14061
140622002-05-26 Miles Bader <miles@gnu.org>
14063
14064 * term.c (tty_capable_p): New function.
14065 * dispextern.h (tty_capable_p): New function declaration.
14066 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
14067 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
14068
140692002-05-23 Stefan Monnier <monnier@cs.yale.edu>
14070
14071 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
14072 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
14073 (Vwrite_region_annotate_functions): Docstring fix.
14074
140752002-05-23 Kim F. Storm <storm@cua.dk>
14076
14077 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
14078 phys_cursor's hpos is overwritten. This is still not completely
14079 correct, as it doesn't really make sense to use hpos at all to
14080 get the cursor glyph (as that is relative to the width of the
14081 characters on the line, which may have changed during the update).
14082
140832002-05-22 Jason Rumney <jasonr@gnu.org>
14084
14085 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
14086 Lisp_Object.
14087 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
14088 Use modified enumfont_t struct.
14089
14090 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14091
14092 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
14093 Handle the `hbar' cursor type.
14094 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14095
14096 * w32fns.c (Qhbar): New variable.
14097 (x_specified_cursor_type): Use it.
14098
140992002-05-21 Ken Raeburn <raeburn@gnu.org>
14100
14101 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
14102 now, when the address is needed.
14103
141042002-05-21 Colin Walters <walters@gnu.org>
14105
14106 * Makefile.in (shortlisp): Add font-core.el.
14107
141082002-05-20 Richard M. Stallman <rms@gnu.org>
14109
14110 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
14111
14112 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
14113 equivalent key bindings here.
14114
141152002-05-20 Ken Raeburn <raeburn@gnu.org>
14116
14117 Change symbol structure to contain a lisp object for the symbol
14118 name:
14119 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
14120 object field named "xname".
14121 (SYMBOL_NAME): New macro.
14122 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
14123 name field.
14124 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
14125 (mark_object, gc_sweep): Use symbol xname field and XSTRING
14126 instead of name field.
14127 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
14128 SYMBOL_NAME instead of XSYMBOL and name field.
14129 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
14130 instead of XSYMBOL and name field.
14131 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
14132 and SYMBOL_NAME instead of XSYMBOL and name field.
14133 * coding.c (Fread_coding_system, code_convert_region1)
14134 (code_convert_string1, code_convert_string_norecord)
14135 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
14136 XSYMBOL and name field.
14137 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
14138 (Fmake_variable_buffer_local, Fmake_local_variable)
14139 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
14140 of XSYMBOL and name field.
14141 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
14142 XSYMBOL and name field.
14143 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
14144 instead of XSYMBOL and name field.
14145 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
14146 XSYMBOL and name field.
14147 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
14148 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14149 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
14150 instead of XSYMBOL and name field.
14151 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
14152 (parse_modifiers, apply_modifiers, Fevent_convert_list)
14153 (parse_solitary_modifier, Fexecute_extended_command):
14154 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14155 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
14156 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
14157 of XSYMBOL and name field.
14158 (describe_command, describe_translation): Use SYMBOL_NAME and
14159 assignment instead of XSYMBOL and name field and XSETSTRING.
14160 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
14161 instead of XSYMBOL and name field.
14162 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
14163 name field and XSETSTRING.
14164 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14165 of XSYMBOL and name field.
14166 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
14167 assignment instead of XSYMBOL and name field and XSETSTRING.
14168 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
14169 XSTRING instead of XSYMBOL and name field.
14170 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
14171 and XSTRING instead of XSYMBOL and name field.
14172 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
14173 and XSTRING instead of XSYMBOL and name field.
14174 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
14175 XSTRING instead of XSYMBOL and name field.
14176 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14177 of XSYMBOL and name field.
14178 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
14179 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14180
141812002-05-19 Ken Raeburn <raeburn@gnu.org>
14182
14183 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
14184 and XCDR real rvalues in most configurations.
14185
14186 * buffer.c (fix_overlays_in_range, fix_overlays_before):
14187 Don't take the address of the cdr part of a cons cell; instead, track
14188 the parent cell and call XSETCDR, or set the variable for the head
14189 of the list if we haven't started down the list yet.
14190
141912002-05-19 Richard M. Stallman <rms@gnu.org>
14192
14193 * doc.c (reread_doc_file): Don't ask for confirmation.
14194
141952002-05-18 Jason Rumney <jasonr@gnu.org>
14196
14197 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
14198 (xbm_load_image): Use it.
14199 (xbm_load): Ditto.
14200 (xbm_read_bitmap_data): Reverted to xfns.c version.
14201 From David Ponce <david@dponce.com>.
14202
142032002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
14204
14205 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
14206 2.02 and later.
14207
142082002-05-16 Juanma Barranquero <lektu@terra.es>
14209
14210 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
14211
142122002-05-15 Stefan Monnier <monnier@cs.yale.edu>
14213
14214 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
14215 meaningful test.
14216 (read_char_minibuf_menu_prompt): Fix typo.
14217
142182002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
14219
14220 * eval.c (Fcommandp): Doc fix.
14221
142222002-05-13 Stefan Monnier <monnier@cs.yale.edu>
14223
14224 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
14225 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
14226 (Fset_keymap_parent): Gcpro a bit more.
14227 (access_keymap): Gcpro around meta_map call and around the main loop.
14228 (get_keyelt): Gcpro when following indirect references.
14229 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
14230 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
14231 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
14232 Remove useless ad-hoc remap code.
14233
142342002-05-13 Richard M. Stallman <rms@gnu.org>
14235
14236 * search.c (search_buffer): Give up boyer moore search if inverse
14237 translation change charset_base.
14238
142392002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
14240
14241 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
14242 characters is carried over from the previous block of text, adjust
14243 coding->produced to account for the extra character.
14244
142452002-05-11 Andreas Schwab <schwab@suse.de>
14246
14247 * coding.c (intersection): Keep the elements of the returned list
14248 in the same order as in the first list.
14249
142502002-05-11 Kim F. Storm <storm@cua.dk>
14251
3419757d 14252 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
14253 only update cmm_size if realloc actually succeeds.
14254 Testing with initial size of 2 elements revealed that using
14255 realloc on GNU/Linux would cause a random trap in xmalloc
14256 later on, so I rewrote the code to use malloc/bcopy/free instead
14257 of realloc.
14258
142592002-05-10 Jason Rumney <jasonr@gnu.org>
14260
14261 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
14262
142632002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
14264
14265 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
14266 parens, to ensure correct evaluation order.
14267
142682002-05-10 Kim F. Storm <storm@cua.dk>
14269
14270 * keymap.c (Vemulation_mode_map_alists): New variable.
14271 (syms_of_keymap): DEFVAR_LISP it.
14272 (current_minor_maps): Process keymap alists in that list before
14273 minor-mode-overriding-map-alist and minor-mode-map-alist.
14274
142752002-05-09 Richard M. Stallman <rms@gnu.org>
14276
14277 * search.c (Freplace_match): Doc fix.
14278
142792002-05-09 Kim F. Storm <storm@cua.dk>
14280
14281 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14282 Enlarge cursor rectangle drawn around image with non-zero relief.
14283
14284 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
14285 Enlarge cursor rectangle drawn around image with non-zero relief.
14286
14287 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14288 Enlarge cursor rectangle drawn around image with non-zero relief.
14289
142902002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
14291
14292 * xselect.c (lisp_data_to_selection_data): Don't set selection
14293 type if comes from the Lisp object's car. If the selection
14294 contains a pure ASCII text, always return QSTRING as its type.
14295
142962002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14297
14298 * mac.c (mac-cut-function): Doc fix.
14299
143002002-05-05 Richard M. Stallman <rms@gnu.org>
14301
14302 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
14303
143042002-05-04 Jason Rumney <jasonr@gnu.org>
14305
14306 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
14307 for event-click-count.
14308
14309 * process.c (init_process): Only add server subfeature if we can
14310 use non-blocking I/O.
14311
143122002-05-04 Andrew Choi <akochoi@shaw.ca>
14313
14314 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
14315 repeatedly.
14316
143172002-05-03 Jason Rumney <jasonr@gnu.org>
14318
14319 * process.c (Fmake_network_process): Only support server sockets
14320 when we can make them non-blocking.
14321
14322 * s/ms-w32.h (HAVE_SELECT): Define.
14323
14324 * w32.h (FILE_NDELAY): New flag.
14325
14326 * w32.c (sys_getpeername, fcntl): New functions.
14327 (_sys_read_ahead): Temporarily block on non-blocking sockets.
14328
14329 * w32proc.c: include sys/file.h.
14330
143312002-05-03 Colin Walters <walters@verbum.org>
14332
14333 * callproc.c (Vgame_score_directory): Renamed to
14334 Vshared_game_score_directory.
14335
143362002-04-30 Richard M. Stallman <rms@gnu.org>
14337
14338 * s/gnu.h [emacs]: Include stdio.h.
14339 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
14340
14341 * eval.c (do_autoload): Error if called while preparing to dump.
14342
14343 * fns.c (Frequire): Error if need to load while preparing to dump.
14344
143452002-04-28 Colin Walters <walters@verbum.org>
14346
14347 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
14348 Default to "~/.emacs.d/games".
14349
143502002-04-29 Stefan Monnier <monnier@cs.yale.edu>
14351
14352 * lread.c (openp): Change arg exec_only to predicate.
14353 (build_load_history): Use XCAR/XCDR.
14354 (Flocate_file_internal): New fun.
14355 (syms_of_lread): Defsubr it.
14356 (Fload): Update call to openp.
14357
14358 * lisp.h (openp): Update prototype.
14359
14360 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
14361 * w32proc.c (sys_spawnve):
14362 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
14363 * w32.c (check_windows_init_file):
14364 * sound.c (Fplay_sound_internal):
14365 * process.c (Fstart_process):
14366 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
14367 * mac.c (run_mac_command):
14368 * emacs.c (init_cmdargs):
14369 * callproc.c (Fcall_process): Update call to openp.
14370
14371 * textprop.c (remove_properties): Don't use XCAR without CONSP.
14372
14373 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
14374
143752002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14376
14377 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
14378 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
14379
143802002-04-28 Richard M. Stallman <rms@gnu.org>
14381
14382 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
14383
14384 * eval.c (Fcommandp): New arg for_call_interactively.
14385 * lisp.h (Fcommandp): Declare new arg.
14386
143872002-04-28 Jason Rumney <jasonr@gnu.org>
14388
14389 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
14390
14391 * w32.c (stat, fstat): Use file index information to generate
14392 inodes for directories where available.
14393
143942002-04-26 Andrew Choi <akochoi@shaw.ca>
14395
14396 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
14397 [HAVE_CARBON]: Include Mac object files.
14398
14399 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
14400 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
14401 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
14402 MAC_OSX, and MAC_OS instead of macintosh.
14403
14404 * editfns.c [MAC_OS8]: Include stdio.h.
14405
14406 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
14407
14408 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
14409 Apple Monaco.
14410
78819ebb 14411 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
14412 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
14413 calling select.
14414
14415 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
14416
14417 * tparam.c [MAC_OSX]: Don't define BC and UP.
14418
14419 * config.in [HAVE_CARBON]: Add.
14420
14421 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
14422 Move here from mac/src and mac/inc.
14423
14424 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
14425
144262002-04-26 Gerd Moellmann <gerd@gnu.org>
14427
14428 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
14429 Compute phys_cursor_width from the x position returned
14430 by x_draw_glyhs, which is cheaper.
14431 (x_display_and_set_cursor): Compute the buffer-local value
14432 of `cursor-in-non-selected-windows' only when needed.
14433
144342002-04-25 Gerd Moellmann <gerd@gnu.org>
14435
14436 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
14437 cursor on a stretch glyph has a width that depends on
14438 x_stretch_cursor_p.
14439
144402002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14441
14442 * abbrev.c (abbrev-start-location): Doc fix.
14443
14444 * indent.c (Fvertical_motion): Fix last change.
14445
144462002-04-25 Gerd Moellmann <gerd@gnu.org>
14447
14448 * indent.c (Fvertical_motion): Move to the start of the line
14449 containing PT before moving up or down.
14450
144512002-04-24 Gerd Moellmann <gerd@gnu.org>
14452
14453 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
14454 case of writing a whole row, more or less analogous to the case of
14455 writing only parts of a row.
14456
14457 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
14458 0 for NO_CURSOR.
14459
14460 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
14461
144622002-04-23 Colin Walters <walters@verbum.org>
14463
14464 * buffer.c (syms_of_buffer): Doc fix.
14465
144662002-04-23 Gerd Moellmann <gerd@gnu.org>
14467
14468 * xterm.c (notice_overwritten_cursor): Handle the special case
14469 of the cursor being in the first blank non-text line at the
14470 end of a window.
14471
14472 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14473 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14474 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
14475 bar cursors only, to make phys_cursor_width contain what its name
14476 suggests.
14477 (notice_overwritten_cursor): Consider the cursor image erased if
14478 the output area intersects the cursor image in y-direction.
14479
144802002-04-23 Simon Marshall <simon@gnu.org>
14481
14482 * xfns.c (x_set_mouse_color): Change default for cross_cursor
14483 to XC_hand2.
14484
144852002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14486
14487 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
14488
144892002-04-22 Kim F. Storm <storm@cua.dk>
14490
14491 * textprop.c (remove_properties): Fixed trap for malformed plist.
14492
144932002-04-22 Richard M. Stallman <rms@gnu.org>
14494
14495 * cmds.c (Fend_of_line): Handle intangible text in mid line.
14496
14497 * window.c (make_window): Initialize height_fixed_p,
14498 last_cursor_off_p, and p->cursor_off_p slots.
14499
145002002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14501
14502 * fns.c (use-dialog-box): Doc fix.
14503
145042002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14505
14506 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
14507 variables `row', `i' and `area'.
14508 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
14509 toolkit library.
14510
145112002-04-19 Stefan Monnier <monnier@cs.yale.edu>
14512
14513 * xfaces.c (clear_font_table): Don't free the default font of
14514 a frame even if it's on another display.
14515 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
14516 that could be Qt.
14517
145182002-04-19 Juanma Barranquero <lektu@terra.es>
14519
14520 * indent.c (Fmove_to_column): Remove unused local variable
14521 `next_boundary_byte'.
14522 (current_column_1): Likewise.
14523
145242002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
14525
14526 * msdos.c (Qhbar): New variable.
14527 (syms_of_msdos): Intern and staticpro it.
14528 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
14529 cursor type.
14530
145312002-04-19 Dave Lambert <dlambert@acm.org>
14532
14533 Theses change implement an underscore-like (`hbar') cursor.
14534
14535 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14536
14537 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
14538 Handle the `hbar' cursor type.
14539 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14540
14541 * xfns.c (Qhbar): New variable.
14542 (syms_of_xfns): Intern and staticpro it.
14543 (x_specified_cursor_type): Handle `hbar' cursor.
14544
14545 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
14546 not defined.
14547
145482002-04-18 Richard M. Stallman <rms@gnu.org>
14549
14550 * textprop.c (remove_properties): New arg LIST allows scanning
14551 either a list or a plist.
14552 (interval_has_some_properties_list): New function, like
14553 interval_has_some_properties using list instead of plist.
14554 All callers changed.
14555 (Fremove_list_of_text_properties): New function.
14556 (syms_of_textprop): Defsubr it.
14557
145582002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14559
14560 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
14561
145622002-04-17 Juanma Barranquero <lektu@terra.es>
14563
14564 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
14565
145662002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
14567
14568 * window.c (coordinates_in_window): Don't report on margin area
14569 if its width is zero.
14570
145712002-04-16 Jason Rumney <jasonr@gnu.org>
14572
14573 * w32fns.c (Fx_file_dialog): Decode file name before using.
14574
14575 * w32term.c (construct_drag_n_drop): Likewise.
14576
145772002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
14578
14579 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
14580 store load-history in pure space.
14581
14582 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
14583
145842002-04-16 Stefan Monnier <monnier@cs.yale.edu>
14585
14586 * xterm.c (Qlatin_1, Qutf_8): New vars.
14587 (syms_of_xterm): Initialize them.
14588 (XTread_socket): Eliminate incorrect optimization that tried to avoid
14589 decoding the output of X*LookupString.
14590 Always use latin-1 to decode the output of XLookupString.
14591 Try Xutf8LookupString if XmbLookupString failed.
14592
14593 * region-cache.c (new_region_cache): Use BEG.
14594
145952002-04-16 Gerd Moellmann <gerd@gnu.org>
14596
14597 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
14598 configuration files.
14599 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
14600 returns 0.
14601
146022002-04-15 Andreas Schwab <schwab@suse.de>
14603
14604 * config.in: Regenerated using autoheader.
14605
14606 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
14607 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
14608 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
14609 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
14610 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
14611 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
14612 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
14613 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
14614 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
14615 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
14616 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
14617 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
14618 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
14619 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
14620 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
14621 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
14622 STACK_DIRECTION, now set by autoconf.
14623
146242002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14625
14626 * dispnew.c (marginal_area_string): Sort arguments.
14627
14628 * dispextern.h (marginal_area_string): Add prototype.
14629
146302002-04-13 Richard M. Stallman <rms@gnu.org>
14631
14632 * fileio.c (Finsert_file_contents):
14633 Don't call temp_output_buffer_setup--do just part, by hand.
14634
14635 * coding.c (run_pre_post_conversion_on_str):
14636 Don't call temp_output_buffer_setup--do just part, by hand.
14637
14638 * keyboard.c (command_loop_1): Don't call start_hourglass
14639 or cancel_hourglass when executing a macro.
14640
14641 * marker.c (count_markers): New function.
14642
14643 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
14644 grow without limit. Move recently used elements to the front.
14645
146462002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14647
14648 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
14649
146502002-04-12 Gerd Moellmann <gerd@gnu.org>
14651
14652 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
14653 rows marginal areas.
14654 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
14655 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14656
14657 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
14658
146592002-04-12 Dave Love <fx@gnu.org>
14660
14661 * dispnew.c (marginal_area_string): New.
14662
14663 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
14664 (Qleft_margin, Qright_margin): Declare.
14665 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
14666
14667 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
14668 note_mode_line_highlight and extended.
14669
14670 * keyboard.c (Qleft_margin, Qright_margin): Declare.
14671 (make_lispy_event): Deal with mouse events in margins.
14672
146732002-04-12 Stefan Monnier <monnier@cs.yale.edu>
14674
14675 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
14676
14677 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
14678 than deactivating the mark if tmm is set to `lambda'.
14679 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
14680 Use a single event for HELP_EVENT.
14681 (Fexecute_extended_command): Save last_point_position.
14682
146832002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14684
14685 * lisp.h (Fpropertize): Add prototype.
14686
14687 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
14688
146892002-04-10 Colin Walters <walters@verbum.org>
14690
14691 * config.in: Add HAVE_SHARED_GAME_DIR.
14692
14693 * callproc.c: (Vgame_score_directory): New variable.
14694 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
14695
146962002-04-10 Richard M. Stallman <rms@gnu.org>
14697
14698 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
14699
147002002-04-09 Stefan Monnier <monnier@cs.yale.edu>
14701
14702 * minibuf.c (read_minibuf): Use empty_string.
14703 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
14704 Short-circuit the search as soon as it "failed".
14705 (Fall_completions): Allow lambda forms and lists of strings for alist.
14706 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
14707 when require_match is nil.
14708 (Ftest_completion): Rename from `test_completion' and export to elisp.
14709 Call the predicate also when alist is a list.
14710 Obey Vcompletion_regexp_list.
14711 (do_completion, Fminibuffer_complete_and_exit): Use it.
14712 (Fassoc_string): Rename from `assoc_for_completion'.
14713 Allow list of strings as well and export to elisp.
14714
147152002-04-08 Stefan Monnier <monnier@cs.yale.edu>
14716
14717 * puresize.h (BASE_PURESIZE): Increase to 900KB.
14718
147192002-04-08 Juanma Barranquero <lektu@terra.es>
14720
14721 * w32.c (sys_accept): Don't hide variable `s'.
14722
147232002-04-05 Gerd Moellmann <gerd@gnu.org>
14724
14725 * callint.c (Fcall_interactively): Use INTEGERP instead of
14726 NUMBERP for checking Vhistory_length.
14727
147282002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14729
14730 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
14731 Doc fix to reflect it.
14732
147332002-04-04 Richard M. Stallman <rms@gnu.org>
14734
14735 * xdisp.c (display_mode_element): New arg RISKY.
14736 Disregard text props found or specified within a variable
14737 that isn't marked risky-local-variable.
14738 (Qrisky_local_variable): New variable.
14739 (syms_of_xdisp): Init and staticpro it.
14740
147412002-04-04 Stefan Monnier <monnier@cs.yale.edu>
14742
14743 * undo.c (record_point): New fun.
14744 (record_delete, record_insert): Use it.
14745
147462002-04-03 Juanma Barranquero <lektu@terra.es>
14747
14748 * doc.c (Fdocumentation): Add missing parentheses.
14749 (Fdocumentation_property): Likewise.
14750
147512002-04-03 Stefan Monnier <monnier@cs.yale.edu>
14752
14753 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
14754 data is 0, just return nil.
14755
147562002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
14757
14758 * msdos.c (syms_of_msdos): Fix last change with
14759 mouse_autoselect_window.
14760
147612002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14762
14763 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
14764 mouse_autoselect_window.
14765
147662002-04-02 Stefan Monnier <monnier@cs.yale.edu>
14767
14768 * keyboard.c (make_lispy_event): Handle unknown keysyms together
14769 with system-specific keysyms. Use it also for unknown function keys.
14770
14771 * doc.c (reread_doc_file): Return whether reload was attempted.
14772 (Fdocumentation, Fdocumentation_property): Don't try to reload
14773 if the doc is 0 and only ask once.
14774
14775 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
14776
147772002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
14778
14779 * keyboard.c (read_char): If the event was Qselect_window,
14780 restore timer_idleness_start_time to its previous value.
14781
14782 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
14783
147842002-04-01 Stefan Monnier <monnier@cs.yale.edu>
14785
14786 * region-cache.c (new_region_cache): Use BEG.
14787
14788 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
14789 Use BEG and BEG_BYTE.
14790
14791 * doc.c (get_doc_string): Return nil if the location is wrong.
14792 (reread_doc_file): New fun.
14793 (Fdocumentation, Fdocumentation_property):
14794 Call it if get_doc_string fails.
14795 (Fsnarf_documentation): Make it work for a dumped Emacs.
14796
14797 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
14798 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
14799
14800 * charset.c (Fstring): Allow 0 arguments.
14801
14802 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
14803
14804 * process.c (DATAGRAM_CONN_P, list_processes_1)
14805 (Fprocess_datagram_address, Fset_process_datagram_address)
14806 (Fset_network_process_options, server_accept_connection):
14807 Fix some int/Lisp_Object confusions (thank you union types).
14808
148092002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14810
14811 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
14812
14813 * w32term.c: Likewise.
14814 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
14815
14816 * keyboard.c (Qselect_window): New symbol.
14817 (head_table): Use it.
14818 (keys_of_keyboard): Bound select-window event to handle-select-window.
14819 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
14820
14821 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
14822 (last_window): New variable.
14823 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
14824 (note_mouse_movement): Remove reimplemented code in #if 0.
14825 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
14826 Emacs windows.
14827
14828 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
14829
148302002-03-31 Gerd Moellmann <gerd@gnu.org>
14831
14832 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
14833 Callers changed.
14834
148352002-03-30 Richard M. Stallman <rms@gnu.org>
14836
14837 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
14838 loop whenever it stops making progress.
14839
14840 * widget.c (set_frame_size): Don't call change_frame_size.
14841
148422002-03-30 Gerd Moellmann <gerd@gnu.org>
14843
14844 * dispnew.c (direct_output_for_insert):
14845 Call mark_window_display_accurate.
14846
148472002-03-29 Jason Rumney <jasonr@gnu.org>
14848
14849 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
14850
148512002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
14852
14853 * Makefile.in (lread.o): Depend on coding.h.
14854
14855 * lread.c (openp, Fload): Encode the file name before passing it
14856 to `stat', `access', and `emacs_open'.
14857 (openp): GCPRO the encoded file name. Don't recompute Lisp
14858 strings unnecessarily.
14859
148602002-03-29 Kim F. Storm <storm@cua.dk>
14861
14862 * fns.c (Flax_plist_put): Doc fix.
14863
148642002-03-28 Miles Bader <miles@gnu.org>
14865
14866 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
14867
148682002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14869
14870 * process.c (set-network-process-options): Add usage.
14871 (make-network-process): Doc fix.
14872
148732002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
14874
14875 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
14876
148772002-03-26 Richard M. Stallman <rms@gnu.org>
14878
14879 * fns.c (Fsubstring_no_properties): New function.
14880 (Flax_plist_get, Flax_plist_put): New functions.
14881 (syms_of_fns): defsubr them.
14882
14883 * xdisp.c (update_menu_bar): Test only update_mode_lines;
14884 don't test or alter w->update_mode_line.
14885
14886 * window.c (Fdisplay_buffer): Doc fix.
14887
148882002-03-24 Richard M. Stallman <rms@gnu.org>
14889
14890 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14891
148922002-03-24 Gerd Moellmann <gerd@gnu.org>
14893
14894 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14895 (Fdefmacro): Handle `(declare ...)'.
14896 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14897 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14898
148992002-03-24 Jason Rumney <jasonr@gnu.org>
14900
14901 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14902 (xbm_file_p): Add prototypes.
14903 (xbm_format, xbm_image_p): Sync with xfns.c.
14904 (reflect_byte): New function.
14905 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14906 (xbm_load_image): Create bitmaps with a depth of 1.
14907 (init_xfns): Enable XBM images.
14908
149092002-03-23 Jason Rumney <jasonr@gnu.org>
14910
14911 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14912 correctly. Do not pass up_modifier to keyboard buffer.
14913
14914 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14915
149162002-03-22 Stefan Monnier <monnier@cs.yale.edu>
14917
14918 * Makefile.in (bootstrapclean): New target.
14919 (bootstrap-temacs, bootstrap-doc): Remove.
14920 (bootstrap-emacs): Use a bog-standard `temacs'.
14921 Don't bother to build a DOC file.
14922
14923 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14924
14925 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14926 in temacs even if !CANNOT_DUMP.
14927 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14928
14929 * alloc.c (check_pure_size): Only output a warning.
14930
149312002-03-22 Jason Rumney <jasonr@gnu.org>
14932
14933 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14934 supported.
14935
14936 * w32term.c (zv_bits): Declare as short, for word alignment.
14937 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14938 (syms_of_w32term): Define x-use-underline-position-properties.
14939
14940 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14941 (clear_image_cache): Block input, fix logic, clear matrices in
14942 all frames that share this cache.
14943
149442002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
14945
14946 * emacs.c (main): Update the Copyright year in the blurb printed
14947 by "emacs --version".
14948
14949 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
14950
14951 * xterm.c (XTread_socket): If XK_ISO_Lock and
14952 XK_ISO_Last_Group_Lock are defined, handle keysyms between
14953 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
14954
149552002-03-21 Kim F. Storm <storm@cua.dk>
14956
14957 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
14958 menu-bar bindings in keymap and local-map properties _are_ used.
14959 But try keymap property first in accordance with 2002-01-03 patch.
14960 Added comment describing why this is not always reliable.
14961 (tool_bar_items): Ditto for tool-bar.
14962
149632002-03-21 Jason Rumney <jasonr@gnu.org>
14964
14965 * w32fns.c (x_clear_image_1): Disable color table code.
14966
149672002-03-21 Kim F. Storm <storm@cua.dk>
14968
14969 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
14970 removed the wrong version of the DEFUN macro; fixed it.
14971
14972 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
14973 Fmember rather than Fmemq).
14974 (Fprovide): Check that subfeatures is a list.
14975
14976 * process.c (QCfeature, QCdatagram): Removed variables.
14977 (QCtype, Qdatagram): New variables.
14978 (network_process_featurep): Removed function.
14979 (Fmake_network_process): Removed :feature check.
14980 Use :type 'datagram instead of :datagram t to create a datagram
14981 socket. This allows us to add other connection types (e.g. raw
14982 sockets) later in a consistent manner.
14983 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
14984 supported subfeatures for feature make-network-process.
14985 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
14986 Intern and staticpro QCtype and Qdatagram.
14987 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
14988
14989 * xfns.c: (QCtype): Remove duplicate declaration and
14990 initialization (is now declared in process.c).
14991
14992 * w32fns.c: (QCtype): Remove duplicate declaration and
14993 initialization (is now declared in process.c).
14994
149952002-03-21 Richard M. Stallman <rms@gnu.org>
14996
14997 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
14998 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
14999 when jumping to `fail' to avoid undoing reg changes in the
15000 last iteration of the loop.
15001 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
15002
15003 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
15004 Depend on process.h.
15005
150062002-03-20 Jason Rumney <jasonr@gnu.org>
15007
15008 Most of the following changes are still conditional on HAVE_IMAGES
15009 which is not set by default on Windows.
15010
15011 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
15012
15013 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
15014 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
15015 (four_corners_best, x_clear_image_1, x_clear_image)
15016 (x_alloc_image_color, postprocess_image)
15017 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
15018 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
15019 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
15020
15021 * w32gui.h (struct XImage): Define.
15022
15023 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
15024 extract mouse co-ordinates.
15025
150262002-03-20 Jason Rumney <jasonr@gnu.org>
15027
15028 * w32.c (init_winsock): Dynamically load new server and UDP
15029 socket functions.
15030 (socket_to_fd): New function.
15031 (sys_socket): Use it.
15032 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
15033 (sys_recvfrom, sys_sendto): New wrapper functions.
15034
15035 * process.c (QCfamily, QCfilter): Remove duplicate declaration
15036 and initialization.
15037
15038 * makefile.w32-in (LIBS): Remove $(WSOCK32).
15039
150402002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
15041
15042 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
15043 Don't use "sun" as a variable, it's a predefined constant on Sun
15044 machines.
15045
150462002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15047
15048 * bytecode.c (Fbyte_code): Revert last change.
15049
150502002-03-19 Kim F. Storm <storm@cua.dk>
15051
15052 * makefile.w32-in (LIBS): Add $(WSOCK32).
15053 From David Ponce <dponce@voila.fr>.
15054
150552002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15056
15057 * process.c (wait_reading_process_input): Move variables `pname'
15058 and `pnamelen' down where they are used.
15059
15060 * bytecode.c (Fbyte_code): Discard unused computed value to
15061 prevent gcc warning.
15062
15063 * lisp.h (Fplist_member): Add prototype.
15064
150652002-03-18 Kim F. Storm <storm@cua.dk>
15066
15067 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
15068 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
15069
15070 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
15071 Remove explicit GNU_LINUX settings for datagram support.
15072
150732002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15074
15075 * process.c (Fmake_network_process): Remove unused variable `sa'.
15076 Doc fix. Add usage:.
15077 (set_socket_options): Remove unused variables `optnum' and `opttype'.
15078
150792002-03-17 Richard M. Stallman <rms@gnu.org>
15080
15081 * xdisp.c (cursor_type_changed): New variable.
15082 (redisplay_internal): Redisplay all windows if cursor_type_changed.
15083 Clear it when clearing windows_or_buffers_changed.
15084 (try_cursor_movement, redisplay_window, try_window_id)
15085 (try_window_reusing_current_matrix): Test cursor_type_changed
15086 along with windows_or_buffers_changed.
15087
15088 * window.h (cursor_type_changed): New variable.
15089
15090 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
15091 not update_mode_lines, and always set it to 1.
15092
15093 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
15094 if no frames needed redrawing.
15095
150962002-03-17 Kim F. Storm <storm@cua.dk>
15097
15098 The following changes add support for network server processes,
15099 datagram connections, and local (unix) sockets.
15100
15101 * process.h (struct Lisp_Process): New member log.
15102 Doc fix: Member command used to indicate stopped network process.
15103 Doc fix: Member childp contains plist for network process.
15104 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
15105
15106 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
15107 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
15108 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
15109 New variables.
15110 (NETCONN1_P): New macro.
15111 (DATAGRAM_SOCKETS): New conditional symbol.
15112 (datagram_address): New array.
15113 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
15114 (status_message): Use concat3.
15115 (Fprocess_status): Add `listen' status to doc string. Return `stop'
15116 for a stopped network process.
15117 (Fset_process_buffer): Update contact plist for network process.
15118 (Fset_process_filter): Ditto. Don't enable input for stopped
15119 network processes. Server must listen, even if filter is t.
15120 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
15121 New functions.
15122 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
15123 (Fprocess_contact): Added KEY argument. Handle datagrams.
15124 (list_processes_1): Optionally show only processes with the query
15125 on exit flag set. Dynamically adjust column widths. Omit tty
15126 column if not needed. Report stopped network processes.
15127 Identify server and datagram network processes.
15128 (Flist_processes): New optional arg `query-only'.
15129 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
15130 (conv_lisp_to_sockaddr, set_socket_options)
15131 (network_process_featurep, unwind_request_sigio): New helper functions.
15132 (Fprocess_datagram_address, Fset_process_datagram_address):
15133 (Fset_network_process_options): New lisp functions.
15134 (Fopen_network_stream): Removed. Now defined in simple.el.
15135 (Fmake_network_process): New lisp function. Code is based on previous
15136 Fopen_network_stream, but heavily reworked with new property list based
15137 argument list, support for datagrams, server processes, and local
15138 sockets in addition to old client-only functionality.
15139 (server_accept_connection): New function.
15140 (wait_reading_process_input): Use it to handle incoming connects.
15141 Do not enable input on a new connection if process is stopped.
f63fd14e 15142 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
15143 (send_process): Handle datagram sockets.
15144 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
15145 network process is indicated by setting command field to t .
15146 (Fprocess_send_eof): No-op if datagram connection.
15147 (Fstatus_notify): Don't read input for a stream server socket or a
15148 stopped network process.
15149 (init_process): Initialize datagram_address array.
15150 (syms_of_process): Intern and staticpro new variables, defsubr new
15151 functions.
15152
151532002-03-16 Jason Rumney <jasonr@gnu.org>
15154
15155 * w32fns.c (w32_to_all_x_charsets): Return correct type in
15156 startup case.
15157
151582002-03-16 Richard M. Stallman <rms@gnu.org>
15159
15160 * xdisp.c (redisplay_internal, redisplay_windows):
15161 Use list_of_error to call internal_condition_case_1.
15162 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
15163 so as to catch all errors with no possibility of debugger redisplay.
15164 (list_of_error): New variable.
15165 (syms_of_xdisp): Init and staticpro it.
15166
15167 * print.c (print_object): Delete `\ ' from printed rep of frame.
15168
151692002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
15170
15171 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
15172 until its implementation is fixed.
15173
151742002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15175
15176 * xfns.c (png_load): Remove unused variable `gamma_str'.
15177
151782002-03-14 Richard M. Stallman <rms@gnu.org>
15179
15180 * xfns.c (x_real_positions): Handle failure in XQueryTree.
15181
151822002-03-14 Miles Bader <miles@gnu.org>
15183
15184 * intervals.c (adjust_for_invis_intang): New function.
15185 (set_point_both): Use `adjust_for_invis_intang' to do most of the
15186 work for dealing with invisible+intangible regions. Do so before
15187 and after both forward and backward movements, to handle both
15188 front-sticky and rear-sticky cases.
15189 * textprop.c (text_property_stickiness): Function moved here from
15190 `editfns.c'.
15191 * intervals.h (text_property_stickiness): New declaration.
15192 * editfns.c (char_property_eq): Function removed.
15193 (text_property_stickiness): Function moved to `textprop.c'.
15194
151952002-03-13 Jason Rumney <jasonr@gnu.org>
15196
15197 * config.in: Add STRFTIME_NO_POSIX2.
15198
15199 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
15200 and %OX when underlying strftime does not.
15201
152022002-03-13 Stefan Monnier <monnier@cs.yale.edu>
15203
15204 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
15205 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
15206 line) to avoid annoying flicker.
15207 (xm_scroll_callback): Get rid of the now unnecessary kludge.
15208 (XTread_socket): Mark it static.
15209
15210 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
15211
152122002-03-13 Kim F. Storm <storm@cua.dk>
15213
15214 * puresize.h (BASE_PURESIZE): Increase to 775000.
15215
152162002-03-12 Juanma Barranquero <lektu@terra.es>
15217
15218 * editfns.c (syms_of_editfns): Fix typo.
15219
152202002-03-12 Gerd Moellmann <gerd@gnu.org>
15221
15222 * xsmfns.c: Include stdio.h because termhooks.h needs it.
15223 Include termopt.h for interrupt_input.
15224
152252002-03-11 Andreas Schwab <schwab@suse.de>
15226
15227 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
15228
152292002-03-11 Gerd Moellmann <gerd@gnu.org>
15230
15231 * xterm.c (note_mouse_movement): Put code for
15232 x_autoselect_window_p in #if 0.
15233
15234 * lread.c (Fload): Don't assume that message_with_string uses the
15235 string it is given like a C string.
15236
152372002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15238
78819ebb 15239 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
15240
15241 * xterm.c: (XTread_socket): Add call to x_session_check_input and
15242 x_session_have_connection.
15243 (x_initialize): Add call to x_session_initialize.
15244
15245 * termhooks.h (enum event_kind): Add save_session_event.
15246
15247 * keyboard.c: Add Emacs event save_session_event.
15248
15249 * emacs.c (main): Add call to syms_of_xsmfns.
15250
78819ebb 15251 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
15252
15253 * config.in: Add HAVE_X_SM.
15254
15255 * Makefile.in (LIBXT): Add -lSM -lICE
15256 if HAVE_X_SM and not USE_X_TOOLKIT.
15257 (XOBJ): New file xsmfns.c added.
15258
15259 * xsmfns.c: New file for X session management.
15260
152612002-03-09 Jason Rumney <jasonr@gnu.org>
15262
15263 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
15264 read-only when setting modified time.
15265
152662002-03-08 Gerd Moellmann <gerd@gnu.org>
15267
15268 * xdisp.c (move_it_vertically_backward): At the end of the function,
15269 when moving forward by lines, treat terminal frames specially.
15270
15271 * keyboard.c (echo_char): Make sure to add a separator between
15272 keys even if echo_dash hasn't been called.
15273
15274 * xdisp.c: Use new string macros.
15275 (update_echo_area): Pass number of bytes to message3 instead of
15276 number of chars.
15277 (set_message_1): Don't access a string's size_byte directly.
15278 (decode_mode_spec_coding): Use number of bytes of eoltype string
15279 instead number of chars.
15280
15281 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
15282
152832002-03-08 Juanma Barranquero <lektu@terra.es>
15284
15285 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
15286 24-bit.
15287
152882002-03-06 Jason Rumney <jasonr@gnu.org>
15289
15290 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
15291
152922002-03-06 Gerd Moellmann <gerd@gnu.org>
15293
15294 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
15295 (cancel_echoing, echo_length, echo_truncate): Changed to
15296 work with new kboard definition.
15297 (echo_now): Use message3_nolog instead of message2_nolog.
15298
15299 * alloc.c (mark_kboards): Mark echo_string.
15300
15301 * keyboard.h (ECHOBUFSIZE): Removed.
15302 (struct kboard): Member echoptr removed, member echobuf renamed
15303 to echo_string.
15304
15305 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
15306 message3 instead of message2 to display the message using STRING's
15307 text properties.
15308
153092002-03-05 Andreas Schwab <schwab@suse.de>
15310
15311 * xdisp.c (hscroll_margin): Change to EMACS_INT.
15312
153132002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
15314
15315 * frame.c (default-frame-alist): Explain that setting it doesn't
15316 affect existing frames.
15317
153182002-03-05 Stefan Monnier <monnier@cs.yale.edu>
15319
15320 * indent.c (skip_invisible): Fix my brain fart.
15321
15322 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
15323
153242002-03-04 Stefan Monnier <monnier@cs.yale.edu>
15325
15326 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
15327 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
15328 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
15329 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
15330 and variables to use EMACS_INT instead of just int.
15331
15332 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
15333
153342002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
15335
15336 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
15337 environment, pass it down with corrected value.
15338
153392002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15340
15341 * lread.c (read_filtered_event): Do not call start_hourglass
15342 before returning.
15343
153442002-03-04 Juanma Barranquero <lektu@terra.es>
15345
15346 * w32term.c (x_display_and_set_cursor): Fix typo.
15347
153482002-03-03 Richard M. Stallman <rms@gnu.org>
15349
15350 * fileio.c (Fmake_temp_name): Doc fix.
15351
153522002-03-03 Gary Wong <gtw@gnu.org>
15353
15354 * termcap.c [!emacs]: Replace ospeed for building standalone
15355 libtermcap, for binary compatibility.
15356
15357 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
15358
153592002-03-03 Richard M. Stallman <rms@gnu.org>
15360
15361 * xrdb.c (file_p): Rename arg `path' to `filename'.
15362
15363 * abbrev.c (Fexpand_abbrev): Increment plist as use count
15364 only if it is an integer.
15365
15366 * xfns.c (png_load): Set screen_gamma based on f->gamma.
15367 If png_get_sRGB gives an answer, call png_set_gamma
15368 using the default image gamma value.
15369
15370 * lread.c (read1): When reading from a file, default string to
15371 multibyte only if it has some multibyte characters.
15372
15373 * print.c (print_object): Output multibyte chars 128...255
15374 using \x even if ! print_escape_multibyte.
15375
15376 * xdisp.c (display_mode_element): Move the places where
15377 bytepos, charpos, this, and lisp_string are set.
15378 Use lisp_string to set bytepos.
15379
15380 * xdisp.c (redisplay_internal):
15381 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
15382
15383 * xdisp.c (display_mode_element): Merge properties specified with
15384 :propertize onto those that come with the string.
15385
153862002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
15387
15388 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
15389 automatic-hscrolling. Users changed.
15390 <hscroll-margin>: Renamed from automatic-hscroll-margin.
15391 Users changed.
15392 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
15393
153942002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15395
15396 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
15397
153982002-03-02 Kim F. Storm <storm@cua.dk>
15399
15400 * window.c (Fminibuffer_selected_window): New function.
15401 (syms_of_window): Defsubr it.
15402
154032002-03-01 Kim F. Storm <storm@cua.dk>
15404
15405 * window.h (struct window): New member phys_cursor_width.
15406
15407 * window.c (make_window, replace_window): Init phys_cursor_width.
15408
15409 * xterm.c (x_display_and_set_cursor): Blink box cursor using
15410 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15411
15412 * w32term.c (x_display_and_set_cursor): Blink box cursor using
15413 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15414
15415 * lisp.h (GCPRO6): New macro.
15416
15417 * process.c (Fopen_network_stream): Use GCPRO6.
15418
154192002-03-01 Kim F. Storm <storm@cua.dk>
15420
15421 * process.c (Qconnect, Qfailed): New variables.
15422 (syms_of_process): Intern and staticpro them.
15423 (Fprocess_status): Document connect and failed return values.
15424 [NON_BLOCKING_CONNECT]: New conditional.
15425 (connect_wait_mask, num_pending_connects): New variables.
15426 (status_message): Convert Qfailed status.
15427 (Fopen_network_stream): Added support for non-blocking connect.
15428 New optional args: filter, sentinel, non_blocking. Doc updated.
15429 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
15430 (deactivate_process): Handle pending non-blocking connect.
15431 (wait_reading_process_input): Poll for status of non-blocking
15432 connects. Exec sentinel directly when connect succeeds.
15433 (status_notify): Don't read process output if not yet connected.
15434
154352002-02-28 Kim F. Storm <storm@cua.dk>
15436
15437 * window.c: (minibuf_selected_window): Renamed from
15438 Vminibuf_selected_window. Users changed.
15439 (syms_of_window): Staticpro it.
15440
154412002-02-26 Kim F. Storm <storm@cua.dk>
15442
15443 The following changes add a new Vminibuf_selected_window variable
15444 which is similar to Vminibuf_scroll_window, but which is only set
15445 on entry to the minibuffer (from a non-minibuffer window):
15446
15447 * window.c: (Vminibuf_selected_window): New variable.
15448 (struct save_window_data): New member minibuf_selected_window.
15449 (Fset_window_configuration): Restore Vminibuf_selected_window.
15450 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
15451 Set minibuf_scroll_window member to nil if minibuf_level is 0.
15452 (compare_window_configurations): Compare minibuf_selected_window.
15453
15454 * window.h: (Vminibuf_selected_window): Declare extern.
15455
15456 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
15457 entry to minibuffer or on entry from a non-minibuffer window.
15458
15459 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
15460 Vminibuf_selected_window instead of Vminibuf_scroll_window.
15461
15462 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
15463 instead of Vminibuf_scroll_window when deciding in which window
15464 the region should be highlighted. Consequently, the region remains
15465 highlighteded even when a completion buffer is also displayed.
15466
154672002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
15468
15469 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
15470
15471 * xselect.c (Qcompound_text_with_extensions): Renamed from
15472 Qcompound_text_no_extensions.
15473 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
15474
154752002-02-26 Juanma Barranquero <lektu@terra.es>
15476
15477 * w32proc.c (syms_of_ntproc): Doc fix.
15478
154792002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15480
15481 * intervals.h: Include "dispextern.h" unconditionally.
15482
154832002-02-24 Jason Rumney <jasonr@gnu.org>
15484
15485 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
15486 and disp-table.elc.
15487 (lisp): Add emacs-lisp/backquote.elc.
15488
154892002-02-24 Kim F. Storm <storm@cua.dk>
15490
3419757d 15491 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
15492 The validation of the event type was too strict as it didn't
15493 allow string events; buffer names are used in bindings for
15494 menu-bar-select-buffer (see `menu-bar-update-buffers').
15495
154962002-02-23 Kim F. Storm <storm@cua.dk>
15497
15498 The following changes rework my patch of 2002-02-06 which
15499 added command remapping by entering the commands directly into
15500 the keymaps. Now, command remapping uses an explicit `remap'
15501 prefix in the keymaps, i.e. [remap COMMAND].
15502
15503 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 15504 (is_command_symbol): Remove function.
048addec
JD
15505 (Fdefine_key): No longer accept a symbol for KEY.
15506 Added validation of [remap COMMAND] argument for KEY.
15507 The DEF is no longer required to be a symbol when remapping a command.
15508 (Fremap_command): New function to remap command through keymaps.
15509 (Flookup_key): Perform command remapping initiated by
15510 Fremap_command directly for speed.
15511 (Fkey_binding): Use Fremap_command for command remapping.
15512 (where_is_internal): Handle new command remapping representation.
15513 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
15514 staticpro them. Defsubr Fremap_command.
15515
15516 * keymap.h (Fremap_command): Declare extern.
15517 (is_command_symbol): Remove extern.
15518
15519 * keyboard.c (command_loop_1): Use Fremap_command for command
15520 remapping; now try command remapping for all symbols.
15521
155222002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15523
15524 * coding.h (run_pre_post_conversion_on_str): Add prototype.
15525
155262002-02-23 Jason Rumney <jasonr@gnu.org>
15527
15528 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
15529 on the string before encoding it.
15530 (Fw32_get_clipboard_data): Run post-read-conversion on the string
15531 after decoding it.
15532
15533 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
15534
155352002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15536
15537 * w32term.c (enter_timestamp): Remove unused static variable to
15538 prevent warning.
15539
15540 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
15541
155422002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15543
15544 * w16select.c (Fw16_get_clipboard_data): Fix last change.
15545
15546 * xselect.c (selection_data_to_lisp_data): Fix last change.
15547
155482002-02-22 Jason Rumney <jasonr@gnu.org>
15549
15550 * w32term.h (struct w32_output): New member menu_command_in_progress.
15551
15552 * w32menu.c (menubar_selection_callback): Free the menu and
15553 clear the menu_command_in_progress flag.
15554
15555 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
15556 (menu_free_timer): New variable.
15557 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
15558 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
15559 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
15560 menu command is in progress.
15561 <WM_COMMAND>: Set the menu_command_in_progress flag.
15562 Kill any menu_free_timer that is running.
15563
15564 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
15565 Call ExtTextOutA rather than ExtTextOut.
15566
155672002-02-22 Eli Zaretskii <eliz@gnu.org>
15568
15569 * puresize.h (BASE_PURESIZE): Increase to 755000.
15570
155712002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15572
15573 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
15574 on the string before encoding it.
15575 (Fw16_get_clipboard_data): Run post-read-conversion on the string
15576 after decoding it.
15577
155782002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15579
15580 Support for ICCCM Extended Segments in X selections:
15581
15582 * xselect.c <Qcompound_text_no_extensions>: New variable.
15583 (syms_of_xselect): Intern and staticpro it.
15584 (selection_data_to_lisp_data): Run post-read-conversion on decoded
15585 selection text.
15586 (lisp_data_to_selection_data): If next-selection-coding-system is
15587 compound-text-no-extensions, set the type of selection to be
15588 compound-text.
15589
15590 * xterm.h (x_encode_text): Update prototype.
15591
15592 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
15593 callers changed. If SELECTIONP is non-zero, run the
15594 pre-write-conversion function before encoding the selection text.
15595
155962002-02-21 Kim F. Storm <storm@cua.dk>
15597
15598 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15599
15600 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
15601 Correct composing of language-change event.
15602
156032002-02-20 Kim F. Storm <storm@cua.dk>
15604
15605 * keyboard.c (menu_bar_items): Don't include keymap or local-map
15606 bindings at PT when building menu (the menu is not updated often
15607 enough for this to work reliable).
15608 (tool_bar_items): Likewise.
15609 (current_active_maps): Removed unused (and buggy) function.
15610
156112002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15612
15613 * xfns.c (gif_load): Use correct width and height for GIF images.
15614
156152002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
15616
15617 * floatfns.c (Fatan): Accept an optional second arg and call
15618 atan2 if passed 2 args.
15619
156202002-02-18 Jason Rumney <jasonr@gnu.org>
15621
15622 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
15623
156242002-02-17 Jason Rumney <jasonr@gnu.org>
15625
15626 * w32term.c (x_autoselect_window_p): New variable.
15627 (syms_of_w32term): DEFVAR_BOOL and initialize it.
15628 (note_mouse_movement): Use it.
15629
15630 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
15631
15632 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
15633
15634 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15635 New variables.
15636 (syms_of_w32fns): Intern and staticpro them.
15637 (x_frame_parms) <"fullscreen">: New parameter.
15638 (x_fullscreen_move, x_set_fullscreen): New functions.
15639 (x_set_frame_parameters): Support Qfullscreen.
15640 (x_real_positions): Save x/y_pixels_diff frame params.
15641 (x_figure_window_size): Support full-screen frames.
15642 (Fx_create_frame): Default the fullscreen parameter.
15643
15644 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
15645 (x_fullscreen_adjust): New functions.
15646 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
15647 fullscreen. Call x_check_fullscreen_move, and set the
15648 want_fullscreen member of output_data.w32
15649 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
15650
15651 * w32term.h: New enum for FULLSCREEN_* constants.
15652 (struct w32_output): New members want_fullscreen, x_pixels_diff,
15653 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
15654 (x-fullscreen-adjust): New prototype.
15655
156562002-02-17 Kim F. Storm <storm@cua.dk>
15657
15658 * frame.c: (Vmouse_highlight): New variable.
15659 (syms_of_frame): DEFVAR_LISP it.
15660
15661 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 15662
048addec 15663 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 15664
048addec
JD
15665 * xterm.c (disable_mouse_highlight): Removed variable.
15666 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15667 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15668 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
15669 and on after keyboard input.
15670 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 15671
048addec 15672 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 15673
048addec
JD
15674 * msdos.c (disable_mouse_highlight): Removed variable.
15675 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15676 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15677 (internal_terminal_init): Initialize mouse_face_hidden.
15678 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
15679 and on after keyboard input.
4f1b1854 15680
048addec 15681 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 15682
048addec
JD
15683 * w32term.c (disable_mouse_highlight): Removed variable.
15684 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
15685 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15686 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
15687 and on after keyboard input.
15688 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 15689
048addec 156902002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 15691
048addec
JD
15692 * msdos.c (last_mouse_window): New variable.
15693 (dos_rawgetc): Fix last change--if the mouse is in the same window
15694 as recorded in last_mouse_window, don't select this window.
5cb6905d 15695
048addec 15696 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 15697
048addec
JD
15698 * msdos.c (x_autoselect_window_p): New variable.
15699 (syms_of_msdos): Defvar it.
15700 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
15701 which the last mouse movement occured, unless it is already selected.
437dfb9f 15702
048addec
JD
15703 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
15704 New variables.
15705 (syms_of_xdisp): DEVFAR them.
15706 (hscroll_window_tree): Use automatic_hscroll_margin and
15707 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 15708
048addec 157092002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 15710
048addec
JD
15711 * xterm.c (x-autoselect-window): New variable.
15712 (note_mouse_movement): Use it.
9f696a00 15713
048addec 15714 * keyboard.c: Do not include "systime.h" twice.
d57966d7 15715
048addec 157162002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 15717
bfa02563 15718 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 15719
048addec 15720 * alloc.c (NSTATICS): Increase to 1280.
74779f52 15721
048addec 157222002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 15723
048addec 15724 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 15725
048addec
JD
15726 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
15727 (Vx_super_keysym): New variables.
15728 (syms_of_xterm): DEFVAR_LISP them.
15729 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
15730 variables to determine which keys to use for the various modifiers.
a474d59c 15731
048addec 157322002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 15733
048addec
JD
15734 * window.c: (Vmode_line_in_non_selected_windows): Removed.
15735 (mode_line_in_non_selected_windows): New variable.
15736 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 15737
048addec
JD
15738 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
15739 Use mode_line_in_non_selected_windows.
15740 (mode_line_in_non_selected_windows): Declare extern.
15741 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 15742
048addec 157432002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 15744
048addec
JD
15745 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
15746 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
15747 (Fclear_this_command_keys): Doc fixes.
2d10309f 15748
048addec
JD
15749 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
15750 (update_face_from_frame_parameter): Increment face_change_count
15751 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 15752
048addec
JD
15753 * xdisp.c (QCpropertize): New variable.
15754 (mode_line_proptrans_alist): New variable.
15755 (display_mode_element): New arg PROPS; all calls changed.
15756 Implement this, for strings.
15757 Handle literal output of strings by sharing the
15758 main-line code for strings, using local var `literal'.
15759 Handle :propertize feature.
15760 (syms_of_xdisp): Initialze and staticpro QCpropertize and
15761 mode_line_proptrans_alist.
0b1e6b54 15762
048addec 157632002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 15764
048addec
JD
15765 * window.c: (Vmode_line_in_non_selected_windows): New variable.
15766 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 15767
048addec
JD
15768 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
15769 (CURRENT_MODE_LINE_FACE_ID): Use it.
15770 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 15771
048addec
JD
15772 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
15773 to get mode line face.
e17144de 15774
048addec 157752002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 15776
048addec
JD
15777 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
15778 variables; cus-start.el doesn't need them anymore.
44368f8f 15779
048addec 157802002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 15781
048addec
JD
15782 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
15783 reduction. This fixes a display problem where stray newlines were
15784 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 15785
048addec 157862002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 15787
048addec 15788 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 15789
048addec 15790 * xdisp.c (display_mode_lines): Fix last change.
453c5510 15791
048addec 157922002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 15793
048addec
JD
15794 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
15795 match each other.
15796 (w32_load_system_font): Prevent Cleartype fonts from loading.
15797 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 15798
048addec 157992002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 15800
048addec
JD
15801 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
15802 (CURRENT_MODE_LINE_HEIGHT): Use it.
15803 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 15804
048addec
JD
15805 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
15806 (pos_visible_p, handle_face_prop): Likewise.
15807 (display_mode_lines): Likewise, but for the real selected window.
15808 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 15809
048addec
JD
15810 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
15811 in non-selected windows.
15812 (realize_basic_faces): Realize it.
15813 (syms_of_term): Intern and staticpro it.
308dd672 15814
048addec 158152002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 15816
048addec
JD
15817 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
15818 Changed mail addresses to emacs-devel@gnu.org.
308dd672 15819
048addec 158202002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 15821
048addec
JD
15822 * fileio.c (Fsubstitute_in_file_name): If the file name includes
15823 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 15824
048addec 15825 * floatfns.c (Fround): Doc fix.
3c1e6b46 15826
048addec 158272002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 15828
048addec 15829 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 15830
048addec 158312002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 15832
048addec 15833 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 15834
048addec 158352002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 15836
048addec
JD
15837 * keymap.c (where_is_internal): Only check whether definition is
15838 remapped if it fulfills is_command_symbol.
0065bb74 15839
048addec 158402002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 15841
048addec 15842 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 15843
048addec 15844 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 15845
048addec 158462002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 15847
048addec
JD
15848 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
15849 defining command remapping. Doc updated.
15850 (Flookup_key): Remap command through keymap if KEY is a symbol.
15851 (is_command_symbol): New function.
15852 (Fkey_binding): Use it. New optional argument NO-REMAP.
15853 Doc updated. Callers changed. Perform command remapping via
15854 recursive call unless that arg is non-nil.
15855 (where_is_internal): New argument no_remap. Callers changed.
15856 Call recursively to find original key bindings for a remapped
15857 comand unless that arg is non-nil.
15858 (Fwhere_is_internal): New optional argument NO-REMAP.
15859 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 15860
048addec 15861 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 15862 (is_command_symbol): Add prototype.
0d8466cc 15863
048addec
JD
15864 * keyboard.c (Vthis_original_command): New variable.
15865 (syms_of_keyboard): DEFVAR_LISP it.
15866 (command_loop_1): Set it, and perform command remapping.
15fff01d 15867
048addec 158682002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 15869
048addec 15870 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 15871
048addec 158722002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 15873
048addec 15874 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 15875
048addec 158762002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 15877
048addec 15878 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 15879
048addec 158802002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 15881
048addec 15882 * filelock.c (S_ISLNK): Define if not defined.
3a232704 15883
048addec 158842002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 15885
048addec 15886 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 15887
048addec
JD
15888 * lread.c (read1): Redesign strategy for force_multibyte and
15889 force_singlebyte. Now is_multibyte records whether read_buffer
15890 is multibyte. Encountering any multibyte character makes it so.
4e02881b 15891
048addec 158922002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 15893
048addec
JD
15894 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15895 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 15896
048addec 158972002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 15898
048addec
JD
15899 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15900 latter never being defined on GNU/Linux.
749f499f 15901
048addec 159022002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 15903
048addec
JD
15904 * xfaces.c (realize_default_face): Don't set the weight and slant of
15905 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 15906
048addec 159072002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 15908
048addec
JD
15909 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15910 Call cancel_hourglass unconditionally.
d0fd26dd 15911
048addec
JD
15912 * eval.c (Fsignal): Remove duplicated declaration of
15913 the variable `display_hourglass_p'.
b4c45162 15914
048addec 159152002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 15916
048addec 15917 * editfns.c (region_limit): Nicer error message.
c95eaa61 15918
048addec
JD
15919 * coding.c (decode_composition_emacs_mule):
15920 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 15921
048addec
JD
15922 * callint.c (check_mark): New arg to specify clearer error message.
15923 Callers changed.
c95eaa61 15924
048addec 159252002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 15926
048addec 15927 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 15928
048addec 159292002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 15930
048addec
JD
15931 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15932 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15933 Fix doc-strings.
c95eaa61 15934
048addec 159352002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 15936
048addec 15937 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 15938
048addec
JD
15939 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15940 and scroll_up_aggressively.
c95eaa61 15941
048addec 159422002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 15943
048addec 15944 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 15945
048addec 159462002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 15947
048addec
JD
15948 * textprop.c (Fnext_property_change, Fnext_single_property_change)
15949 (Fprevious_property_change, Fprevious_single_property_change):
15950 Stay within the narrowed-buffer boundaries.
e2c3786a 15951
048addec 159522002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 15953
048addec
JD
15954 * term.c (Ftty_display_color_cells): New function.
15955 (syms_of_term): Defsubr it.
15956 (Ftty_display_color_cells, Ftty_display_color_p): Change the
15957 argument name to DISPLAY. Doc fix.
bf794306 15958
048addec
JD
15959 * dispextern.h: Add prototype for set_tty_color_mode and
15960 tty_setup_colors.
bf794306 15961
048addec 159622002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 15963
048addec
JD
15964 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
15965 If region left to draw is not what was expected, mark the frame as
15966 garbaged.
62582985 15967
048addec
JD
15968 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
15969 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 15970
048addec 159712002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 15972
048addec
JD
15973 * w32term.c (x_update_window_begin): Only hide caret if
15974 w32_use_visible_system_caret is set.
15975 (x_update_window_end): Only show caret if
15976 w32_use_visible_system_caret is set.
15977 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 15978
048addec 15979 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 15980
048addec 159812002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 15982
048addec
JD
15983 * unexelf.c (unexec): Define n so as to cause compilation error
15984 for the code where people have often written n instead of nn.
1e9a6186 15985
048addec 15986 * .gdbinit (hookpost-run): Defined.
1e9a6186 15987
048addec 159882002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 15989
048addec 15990 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 15991
048addec 159922002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 15993
048addec
JD
15994 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
15995 if fullscreen is being set.
7c75be36 15996
048addec 159972002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 15998
048addec
JD
15999 * minibuf.c (Fminibuffer_contents)
16000 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
16001 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 16002
048addec 160032002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 16004
048addec 16005 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 16006
048addec 160072002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 16008
048addec
JD
16009 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
16010 height before comparison.
16011 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 16012
048addec 160132002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 16014
048addec
JD
16015 * w32term.c (w32_system_caret_width): Remove.
16016 (w32_use_visible_system_caret): New user flag.
16017 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
16018 Windows reports a screen reader running.
16019 (x_update_window_begin): Hide the system caret.
16020 (x_update_window_end): Show the system caret.
16021 (x_display_and_set_cursor): Don't draw a cursor when
16022 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 16023
048addec
JD
16024 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
16025 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
16026 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
16027 the user requests it. Use system default width when creating.
16028 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 16029
048addec
JD
16030 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
16031 New window messages.
905cc05a 16032
048addec 160332002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 16034
048addec 16035 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 16036
048addec 160372002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 16038
048addec 16039 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 16040
048addec 160412002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 16042
048addec 16043 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 16044
048addec 160452002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 16046
048addec
JD
16047 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
16048 that Windows returns. If a double check fails, try to guess how
16049 ExtTextOut is going to act.
4d0fa4f3 16050
048addec
JD
16051 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
16052 in place of stricmp.
16053 (w32_list_synthesized_fonts): Removed.
16054 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
16055 (struct enumfont_t): New element; list.
16056 (enum_font_cb2): List all style and charset variations of a font.
16057 (Fw32_select_font): New optional argument; include_proportional.
16058 Exclude vertical fonts. Exclude proportional fonts unless
16059 include_proportional is non-nil.
16060 (w32_enable_synthesized_fonts): Change to a boolean.
16061 (Fw32_send_sys_command): Doc fix.
493faf20 16062
048addec 160632002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 16064
048addec
JD
16065 * dispnew.c (update_frame): Move the variable `tem' to the block
16066 where it is used.
4971e491 16067
048addec 160682002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 16069
048addec
JD
16070 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
16071 call to face-set-after-frame-default.
4971e491 16072
048addec 160732002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 16074
048addec
JD
16075 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
16076 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 16077
048addec 160782002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 16079
048addec
JD
16080 * window.c (enlarge_window): When exceeding size of parent,
16081 directly delete all the siblings instead of trying to resize it.
201c831a 16082
048addec 160832002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 16084
048addec 16085 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 16086
048addec 160872002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 16088
048addec 16089 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 16090
048addec 160912002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 16092
048addec
JD
16093 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
16094 is invisible. This can happen if cursor is on top line of a
16095 window, and we switch to a buffer with a header line.
d77fbc16 16096
048addec 16097 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 16098
048addec 160992002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 16100
048addec
JD
16101 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
16102 `dont_resize' only when used.
61e3b944 16103
048addec 16104 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 16105
048addec 161062002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 16107
048addec
JD
16108 * xdisp.c (display_mode_element): When computing charpos, depend
16109 on multibyteness of elt, not the text in field.
8af01033 16110
048addec 161112002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 16112
048addec
JD
16113 * buffer.c (Fkill_all_local_variables):
16114 Increment `update_mode_lines' only once.
7363986a 16115
048addec 161162002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 16117
048addec
JD
16118 * lisp.h (adjust_after_replace_noundo)
16119 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 16120
048addec 16121 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 16122
048addec 161232002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 16124
048addec
JD
16125 Support for the --color command-line argument and tty-color-mode
16126 frame parameter:
f1a85b89 16127
048addec
JD
16128 * term.c (tty_default_color_capabilities, tty_setup_colors)
16129 (set_tty_color_mode): New functions.
16130 (term_init): Call tty_default_color_capabilities.
16131 (Qtty_color_mode_alist): New variable.
16132 (syms_of_term): Intern and staticpro it.
f1a85b89 16133
048addec
JD
16134 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
16135 frames.
16136 (do_switch_frame): For termcap frames, switch the tty
16137 color mode as specified by the frame's parameters.
16138 (Qtty_color_mode): New variable.
16139 (syms_of_frame): Intern and staticpro it.
3a62677f 16140
048addec
JD
16141 * emacs.c (USAGE2): Add the --color option.
16142 (standard_args): Ditto.
72244db2 16143
048addec
JD
161442002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16145
16146 * xterm.h (struct x_output): New members want_fullscreen,
16147 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
16148 y_pixels_outer_diff.
16149 New enum for FULLSCREEN_* constants.
16150 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
16151 is NULL.
16152 (x_fullscreen_adjust): Add prototype.
3a62677f 16153
048addec
JD
16154 * emacs.c (USAGE2): Add the new full-screen arguments.
16155 (standard_args): Ditto.
3a62677f 16156
048addec
JD
16157 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16158 New variables.
16159 (syms_of_xfns): Intern and staticpro them.
16160 (x_frame_parms) <"fullscreen">: New parameter.
16161 (x_fullscreen_move, x_set_fullscreen): New functions.
16162 (x_set_frame_parameters): Support for Qfullscreen.
16163 (x_real_positions): More accurate computation of the frame position.
16164 (x_figure_window_size): Support full-screen frames.
16165 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 16166
048addec
JD
16167 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
16168 (XTread_socket) <Expose>: Call x_check_fullscreen.
16169 <ConfigureNotify>: Don't resize to fullscreen.
16170 Call x_check_fullscreen_move, and set the want_fullscreen member of
16171 output_data.x.
3a62677f 16172
048addec 161732002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 16174
048addec
JD
16175 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
16176 for mice with more than 3 buttons.
b8523839 16177
048addec
JD
16178 * w32term.c (parse_button): New parameter xbutton. Callers changed.
16179 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 16180
048addec
JD
16181 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
16182 (syms_of_w32fns): DEFVAR_BOOL it.
16183 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 16184
048addec 161852002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 16186
048addec 16187 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 16188
048addec 161892002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 16190
048addec 16191 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 16192
048addec 161932002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 16194
048addec
JD
16195 * .gdbinit (xbuffer): Remove address operator since data is now a
16196 pointer.
c93674bb 16197
048addec 161982002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 16199
048addec 16200 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 16201
048addec 16202 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 16203
048addec 162042002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 16205
048addec
JD
16206 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
16207 when checking for multiple frames.
91175673 16208
048addec 162092002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 16210
048addec
JD
16211 * window.c (delete_window): Rewrite the code for changing the
16212 selected window to handle the case where WINDOW is not a leaf.
91175673 16213
048addec 162142002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 16215
048addec
JD
16216 * process.c (send_process): Set src_multibyte to 1 after the call
16217 top setup_coding_system, not before the call.
e0fead5d 16218
048addec 162192002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 16220
048addec
JD
16221 * xmenu.c (set_frame_menubar, xmenu_show):
16222 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 16223
048addec
JD
16224 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
16225 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 16226
048addec 162272002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 16228
048addec 16229 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 16230
048addec 16231 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 16232
048addec 16233 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 16234
048addec 162352002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 16236
048addec
JD
16237 * insdel.c (make_gap_larger): Make sure buffer size does not
16238 overflow range of int.
62854fe2 16239
048addec 162402002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 16241
048addec
JD
16242 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16243 OVERLAPS_P.
656f46bb 16244
048addec 16245 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 16246
048addec
JD
16247 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
16248 to the left or to the right of the pointer, put it against
16249 the left screen edge.
16250 (x_frame_parms): Add missing braces around initializer.
036e218d 16251
048addec
JD
16252 * w32term.c (x_setup_relief_colors): Don't compute an image's
16253 background color if it doesn't have a Pixmap.
16254 (notice_overwritten_cursor): Don't depend on
16255 output_cursor and updated_area. Compare pixel coordinates with
16256 window's cursor pixel coordinates.
16257 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16258 Call notice_overwritten_cursor with new arg list.
16259 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16260 unconditionally.
16261 (x_draw_image_relief): Use predefined macro instead of
16262 constant when the value of `tool_bar_button_relief' is negative.
036e218d 16263
048addec 16264 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 16265
048addec 162662002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 16267
048addec 16268 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 16269
048addec 162702002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 16271
048addec
JD
16272 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
16273 (Fkey_binding): Try the `keymap' property map first.
16274 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
16275 minor mode bindings.
90647b07 16276
048addec 162772002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 16278
3419757d 16279 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 16280
048addec 162812002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 16282
048addec
JD
16283 * keyboard.c (read_key_sequence): Handle the keymap property
16284 before minor mode maps.
9fbc32aa 16285
048addec
JD
16286 * editfns.c (Fformat): Update thissize from field_width
16287 based on the actual width, in the string case.
036e218d 16288
048addec 162892002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 16290
048addec
JD
16291 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
16292 when used as truth value to prevent gcc warnings.
9fbc32aa 16293
048addec
JD
16294 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
16295 * w32proc.c: Include <config.h>.
9fbc32aa 16296
048addec 162972002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 16298
048addec
JD
16299 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
16300 not EMACS_INT, to make them compatible with DEFVAR_INT.
16301 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 16302
048addec 163032002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 16304
048addec
JD
16305 * print.c (print_object): Test print_escape_nonascii only for
16306 unibyte strings.
16307 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
16308 when outputting to a multibyte buffer.
9fbc32aa 16309
048addec 163102001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 16311
048addec
JD
16312 * print.c (print_object): In multibyte string, use hex escapes.
16313 Use octal only for unibyte strings.
16314 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 16315
048addec
JD
16316 * lread.c (read_escape): New arg BYTEREP for reporting whether
16317 escape forces unibyte or multibyte.
16318 (read1): When reading a string, take note of that info.
0142178a 16319
048addec 163202001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 16321
048addec
JD
16322 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
16323 comparison to test lisp value returned by Fget.
d4824a5d 16324
048addec 163252001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 16326
048addec 16327 * lisp.h (max_specpdl_size): Add declaration.
b1356234 16328
048addec 16329 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 16330
048addec
JD
16331 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
16332 Handle modifier bits. Correct typo in error message.
99e380ee 16333
048addec 163342001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 16335
048addec
JD
16336 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
16337 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
16338 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16339 Update calls to Fdefine_abbrev.
16340 (write_abbrev): Update for changed data format.
16341 Don't list "system" abbrevs.
16342 (Fexpand_abbrev): Update use count with new data format.
16343 (describe_abbrev): Update for changed data format.
16344 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 16345
048addec 16346 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 16347
048addec 16348 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 16349
048addec
JD
16350 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
16351 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 16352
048addec
JD
16353 * keymap.c (Flookup_key): Error message if key has wrong data type.
16354 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
16355 (exclude_key): New variable.
59a86c99 16356
048addec 163572001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 16358
048addec
JD
16359 * xterm.c (x_setup_relief_colors): Don't compute an image's
16360 background color if it doesn't have a Pixmap.
eb77a5f4 16361
048addec
JD
16362 * xterm.c (notice_overwritten_cursor): Don't depend on
16363 output_cursor and updated_area. Compare pixel coordinates with
16364 window's cursor pixel coordinates.
16365 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16366 Call notice_overwritten_cursor with new arg list.
16367 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16368 unconditionally.
eb77a5f4 16369
048addec
JD
16370 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
16371 height of the cursor line to the amount to scroll.
eb77a5f4 16372
048addec 163732001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 16374
048addec
JD
16375 * intervals.c (set_point_both): The position after an invisible,
16376 intangible character is not an acceptable stopping point.
bb313871 16377
048addec 163782001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 16379
048addec
JD
16380 * window.c (enlarge_window): In new preserve_before code, convert
16381 CURBEG from lisp object to integer before doing arithmetic.
6052529b 16382
048addec 163832001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 16384
048addec 16385 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 16386
048addec 163872001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 16388
048addec
JD
16389 * keyboard.c (record_char): Ignore duplicate help-echo events only
16390 separated by mouse-movement. When tracking mouse, only record
16391 first and last mouse-movement event in same window.
16392 Don't record mouse-movement events in keyboard macros.
3ce081f5 16393
048addec 163942001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 16395
048addec
JD
16396 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
16397 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 16398
048addec
JD
16399 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
16400 instead of Fstring_as_unibyte.
9fabb2f5 16401
048addec 164022001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 16403
048addec 16404 The following changes remove mocklisp support:
9fabb2f5 16405
048addec 16406 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 16407
048addec
JD
16408 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
16409 `Qmocklisp' and `Qmocklisp_arguments'.
16410 Remove prototype of syms_of_mocklisp.
2fa0eedf 16411
048addec 16412 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 16413
048addec
JD
16414 * callint.c: Do not include mocklisp.h.
16415 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 16416
048addec
JD
16417 * eval.c: Remove variables `Qmocklisp_arguments',
16418 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
16419 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
16420 Do not test for mocklisp case.
16421 (Fwhile): Remove unused variable `tem'.
16422 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 16423
048addec 16424 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 16425
048addec 16426 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 16427
048addec 16428 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 16429
048addec 164302001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 16431
048addec
JD
16432 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
16433 to the left or to the right of the pointer, put it against
16434 the left screen edge.
6108b49c 16435
048addec 164362001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 16437
048addec
JD
16438 * Makefile.in (distclean): Remove .gdbinit if we are building
16439 outside the source tree.
5eea19a4 16440
048addec 164412001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 16442
048addec 16443 * w32.c (emacs_root_dir): New function.
5eea19a4 16444
048addec 16445 * msdos.c (emacs_root_dir): New function.
5eea19a4 16446
048addec
JD
16447 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
16448 of the current drive as the fallback for default_directory.
438e57dd 16449
048addec
JD
16450 * dired.c (file_name_completion): Run the elements of
16451 completion-ignored-extensions through ENCODE_FILE.
438e57dd 16452
048addec
JD
16453 * lisp.h (scmp): Remove prototype, since it's now a static
16454 function private to dired.c.
c88e5347 16455
048addec 164562001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 16457
048addec
JD
16458 * dired.c (scmp): Function moved from minibuf.c.
16459 Delete multibyte handling--used only on encoded strings.
59ce1461 16460
048addec 16461 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 16462
048addec 16463 * fns.c (merge): Add QUIT call.
59ce1461 16464
048addec 164652001-12-18 Dave Love <fx@gnu.org>
8727d588 16466
048addec
JD
16467 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
16468 language/georgian.el.
8727d588 16469
048addec 164702001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 16471
048addec
JD
16472 * Makefile.in (lisp, shortlisp): Synchronize with changes to
16473 lisp/Makefile.in:DONTCOMPILE.
cc63037e 16474
048addec 164752001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 16476
048addec
JD
16477 * xdisp.c (window_box_height): Do not return negative values.
16478 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 16479
048addec 16480 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 16481
048addec 16482 * term.c (keys): Likewise.
deece6f5 16483
048addec 16484 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 16485
048addec 164862001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 16487
048addec
JD
16488 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
16489 patch (COMPOSING_P, not COMPOSING).
28ff4293 16490
048addec 164912001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 16492
048addec 16493 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 16494
048addec
JD
16495 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
16496 before calling decode_coding.
9b46de40 16497
048addec 16498 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 16499
048addec
JD
16500 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
16501 instead of only for COMPOSITION_DISABLED.
9b46de40 16502
048addec 165032001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 16504
048addec 16505 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 16506
048addec 16507 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 16508
048addec
JD
16509 * buffer.h (struct buffer): New field `display_error_modiff'.
16510 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 16511
048addec 16512 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 16513
048addec
JD
16514 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
16515 Call redisplay_window, but not if display_error_modiff field says no.
16516 (redisplay_window_error): New function.
16517 (displayed_buffer): New variable.
16518 (redisplay_internal, redisplay_windows): Call the new functions
16519 instead of redisplay_window directly.
2cd23960 16520
048addec 165212001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 16522
048addec 16523 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 16524
048addec 165252001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 16526
048addec 16527 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 16528 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 16529 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 16530
048addec 165312001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 16532
048addec
JD
16533 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
16534 parameter have a numeric value all the time.
f6fa0866 16535
048addec 16536 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 16537
048addec 165382001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 16539
048addec 16540 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 16541
048addec
JD
16542 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
16543 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 16544
048addec 165452001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 16546
048addec
JD
16547 * xdisp.c (move_it_vertically_backward): Change heuristic
16548 for the case that we didn't move far enough initially.
91c153e2 16549
048addec
JD
16550 * window.c (Frecenter): Simplify computation in the case of window
16551 system frames and ARG < 0; use window_box_height.
65b7d3e7 16552
048addec 165532001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 16554
048addec
JD
16555 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
16556 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 16557
048addec 165582001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 16559
048addec
JD
16560 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
16561 arg is negative.
be676094 16562
048addec 165632001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 16564
048addec
JD
16565 * m/hp800.h: Split the __hpux conditional into the parts
16566 that are right for GNU/Linux too and the parts that are not.
16567 Use the former if GNU_LINUX.
16568 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 16569
048addec 16570 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 16571
048addec 165722001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 16573
048addec
JD
16574 * macros.c, msdos.c, w16select.c: Change doc-string comments to
16575 `new style' [w/`doc:' keyword].
032a857d 16576
048addec 165772001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 16578
048addec
JD
16579 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
16580 before using.
b6270150 16581
048addec 165822001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 16583
048addec
JD
16584 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
16585 keyword].
98cbb9fa 16586
048addec 165872001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 16588
048addec 16589 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 16590
048addec 16591 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 16592
048addec 165932001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 16594
048addec 16595 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 16596 Add comment to explain where the struct came from.
048addec
JD
16597 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
16598 (add_menu_item): Process pop-up menus first to avoid memory leak.
16599 (add_menu_item, w32_menu_display_help): Use `help' field as
16600 Lisp_Object.
16601 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 16602
048addec 166032001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 16604
048addec 16605 * COPYING: Moved back.
fa336b91 16606
048addec
JD
16607 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
16608 Add parentheses around && within ||.
077907d4 16609
048addec 16610 * indent.c (compute_motion): Likewise.
aa2af83a 16611
048addec 16612 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 16613
048addec
JD
16614 * coding.c (setup_coding_system, shrink_encoding_region)
16615 (Fdecode_sjis_char): Likewise.
60a653f1 16616
048addec 166172001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 16618
048addec
JD
16619 * xdisp.c (display_mode_element): Don't read past end of string if
16620 it ends with '%'.
60a653f1 16621
048addec
JD
16622 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
16623 can hold.
60a653f1 16624
048addec
JD
16625 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
16626 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
16627 type changed to Lisp_Object.
16628 (syms_of_data): DEFVAR_LISP them.
60a653f1 16629
048addec 166302001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 16631
048addec
JD
16632 * callproc.c (init_callproc): Set Vdata_directory based on the source
16633 location whenever Emacs was run uninstalled.
60a653f1 16634
048addec 166352001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 16636
048addec
JD
16637 * config.in (HAVE_WORKING_VFORK): New #undefs.
16638 * process.c (create_process):
16639 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
16640 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
16641 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
16642 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
16643 * m/intel386.h (HAVE_VFORK): Likewise.
16644 * m/mips-siemens.h (HAVE_VFORK): Likewise.
16645 * m/mips.h (HAVE_VFORK): Likewise.
16646 * s/freebsd.h (vfork): Remove #define.
16647 * s/lynxos.h (HAVE_VFORK): Remove #undef.
16648 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 16649
048addec 166502001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 16651
048addec
JD
16652 * s/hpux10.h (random): Add undef.
16653 (HAVE_RANDOM): Define it just once.
60a653f1 16654
048addec 166552001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16656
048addec 16657 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 16658
048addec 166592001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16660
048addec
JD
16661 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
16662 scroll bars of the frame before deleting the frame itself. If the
16663 frame has a widget, delete the frame with XtDestroyWidget, and do
16664 not call XDestroyWindow before that.
60a653f1 16665
048addec 166662001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 16667
048addec 16668 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 16669
048addec 16670 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 16671
048addec 166722001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 16673
048addec
JD
16674 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
16675 excessively large.
60a653f1 16676
048addec
JD
16677 * insdel.c (make_gap_larger): New function.
16678 (make_gap_smaller): New function.
16679 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
16680 Call make_gap_smaller if arg is negative.
60a653f1 16681
048addec 166822001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16683
048addec
JD
16684 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
16685 Pass a dummy argument when calling interrupt_signal.
16686 (parse_menu_item): Mark disabled items before checking for empty def.
16687 (read_char_minibuf_menu_prompt): Make safety more visible.
16688 (read_key_sequence): Add a `first_unbound' variable.
16689 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
16690 unbound prefix as soon as we can detect it.
60a653f1 16691
048addec
JD
16692 * doc.c (Fsnarf_documentation): Add prototype.
16693 (get_doc_string): Handle negative arguments.
16694 (Fdocumentation): Use AREF and ASIZE.
16695 Move the calls to get_doc_string to a single place.
16696 Don't confuse an interactive-spec for a docstring reference.
16697 (Fdocumentation_property): Take advantage of the fact that
16698 get_doc_string now ignores the sign of the docstring position.
60a653f1 16699
048addec 16700 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 16701
048addec 167022001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16703
a64387ee 16704 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 16705
048addec 167062001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16707
048addec
JD
16708 * xterm.c (x_draw_image_relief): Use predefined macro instead of
16709 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 16710
048addec 167112001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 16712
048addec
JD
16713 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
16714 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 16715
048addec 16716 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 16717
048addec 167182001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16719
048addec 16720 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 16721
048addec 167222001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 16723
048addec 16724 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 16725
048addec 167262001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 16727
f63fd14e 16728 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 16729
048addec
JD
16730 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
16731 [!WM_MOUSELEAVE]: Define.
60a653f1 16732
048addec
JD
16733 * w32menu.c (current_popup_menu, get_menu_item_info):
16734 (set_menu_item_info): New vars.
16735 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
16736 (w32_menu_show): Set current_popup_menu.
16737 (add_menu_item): Allocate new strings for owner-drawn menu items
16738 and help strings.
16739 Use owner-draw for disabled menu items again.
16740 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
16741 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 16742
048addec
JD
16743 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
16744 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
16745 <WM_EXITMENULOOP>: Free menu strings.
16746 <WM_MOUSELEAVE>: Stop tracking mouse.
16747 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 16748
048addec
JD
16749 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
16750 and mouse face.
60a653f1 16751
048addec 167522001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 16753
048addec
JD
16754 The following changes add left-fringe and right-fringe
16755 frame parameters to adjust fringe widths, or remove one or
16756 both fringes.
60a653f1 16757
048addec
JD
16758 * frame.h (struct frame): Remove trunc_area_pixel_width and
16759 trunc_area_cols fields.
16760 (Qleft_fringe, Qright_fringe): Declare.
16761 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 16762
048addec
JD
16763 * frame.c (Qleft_fringe, Qright_fringe): New vars.
16764 (syms_of_frame): Initialize them.
60a653f1 16765
048addec
JD
16766 * window.c (coordinates_in_window): Handle separate left and right
16767 fringe widths.
60a653f1 16768
048addec
JD
16769 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
16770 and fringe_cols fields.
16771 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
16772 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
16773 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
16774 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
16775 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
16776 (x_compute_fringe_widths): Add prototype.
60a653f1 16777
048addec
JD
16778 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
16779 fill fringe evenly with small dashes.
f63fd14e 16780 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
16781 clip the new ZV bitmap to avoid jitter between rows.
16782 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
16783 background. Don't draw fringe bitmaps if fringe width is zero.
16784 (x_compute_fringe_widths): New function.
16785 (x_new_font, x_set_window_size_1): Use it.
60a653f1 16786
048addec
JD
16787 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
16788 (x_set_frame_parameters): Process `font' parameter before other
16789 parameters as fringe widths depend on it.
16790 (x_set_fringe_width): New function.
16791 (x_figure_window_size): Use x_compute_fringe_widths.
16792 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
16793 parameters.
60a653f1 16794
048addec
JD
16795 * widget.c (set_frame_size): Use x_compute_fringe_widths.
16796 (EmacsFrameSetCharSize): Ditto.
60a653f1 16797
048addec
JD
16798 * w32term.h: Merged changes from xterm.h.
16799 * w32term.c: Merged changes from xterm.c.
16800 * w32fns.c: Merged changes from xfns.c.
60a653f1 16801
048addec 168022001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16803
048addec 16804 * COPYING: Removed.
60a653f1 16805
048addec 168062001-11-29 Dave Love <fx@gnu.org>
60a653f1 16807
048addec
JD
16808 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
16809 extra extra slot.
16810 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 16811
048addec 168122001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16813
048addec
JD
16814 * fileio.c (file-name-coding-system)
16815 (default-file-name-coding-system): Doc fix (links to referenced
16816 variables added).
60a653f1 16817
048addec 168182001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16819
048addec
JD
16820 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
16821 Add dummy uses of gcproN variables.
60a653f1 16822
048addec
JD
16823 * category.c (describe_category, describe_category_1)
16824 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
16825 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 16826
048addec 168272001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 16828
048addec 16829 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 16830
048addec
JD
16831 * Makefile.in (lispdir): New variable, referring to build dir.
16832 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 16833
048addec 168342001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 16835
048addec
JD
16836 * w32menu.c (w32_menu_display_help): Actually add the new argument
16837 OWNER.
60a653f1 16838
048addec 168392001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 16840
048addec
JD
16841 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16842 menu items. From David Ponce <dponce@wanadoo.fr>.
16843 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
16844 conditionally.
f63fd14e 16845 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 16846 help event in the owner frame's keyboard buffer.
60a653f1 16847
048addec
JD
16848 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
16849 (Fx_show_tip): Don't subtract last width from row width.
16850
16851 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
16852 (w32_read_socket): Use EQ to compare frames.
60a653f1 16853
048addec 168542001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 16855
048addec
JD
16856 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16857 OVERLAPS_P.
60a653f1 16858
048addec 168592001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16860
048addec
JD
16861 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
16862 `gcpro3' and `gcpro4'.
60a653f1 16863
048addec 16864 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 16865
048addec 168662001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16867
048addec 16868 * ccl.c: Use AREF and ASIZE.
60a653f1 16869
048addec 168702001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16871
048addec
JD
16872 * lisp.h (run_hook_list_with_args): Remove.
16873 (LIST_END_P): Fix call to wrong_type_argument.
16874 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 16875
048addec 168762001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16877
048addec
JD
16878 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
16879 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 16880
048addec
JD
16881 * eval.c: Use AREF and ASIZE.
16882 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 16883
048addec
JD
16884 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16885 which match the end of the file-name.
16886 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16887 is not a valid env var, but leave it as is instead.
60a653f1 16888
048addec
JD
16889 * keymap.c (access_keymap): Handle t bindings like nil bindings.
16890 Make nil bindings in char-tables transparent.
16891 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 16892
048addec 168932001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 16894
048addec
JD
16895 * textprop.c (set_text_properties_1): Allow START, END in either order.
16896 Do nothing if range is empty.
60a653f1 16897
048addec 16898 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 16899
048addec
JD
16900 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16901 (clean): Not here.
60a653f1 16902
048addec 169032001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16904
048addec
JD
16905 * textprop.c (set_text_properties_1): Clearly mark that the
16906 interval should not be empty.
60a653f1 16907
048addec
JD
16908 * intervals.c (graft_intervals_into_buffer):
16909 Don't call set_text_properties_1 on an empty interval.
60a653f1 16910
048addec 169112001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 16912
048addec 16913 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 16914
048addec
JD
16915 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16916 don't lose the data in it.
60a653f1 16917
048addec 169182001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 16919
048addec 16920 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 16921
c62aec78 16922 * buffer.c (Fkill_buffer): Likewise.
60a653f1 16923
c62aec78 16924 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 16925
048addec 169262001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 16927
048addec 16928 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 16929
048addec 169302001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16931
048addec
JD
16932 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
16933 Niemitalo <kon@iki.fi>.
60a653f1 16934
048addec 169352001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 16936
048addec 16937 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 16938
048addec
JD
16939 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16940 (Fx_show_tip): Block input during frame creation.
16941 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 16942
048addec 169432001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 16944
048addec
JD
16945 * lread.c (Fload): Detect recursive load error for more than 3
16946 nestings of the same file.
16947 (Vrecursive_load_depth_limit): Variable deleted.
16948 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 16949
048addec 169502001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 16951
048addec
JD
16952 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
16953 mouse position if either left or top is not specified.
60a653f1 16954
048addec
JD
16955 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
16956 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
16957 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
16958 (my_create_tip_window): Assign tip_window.
16959 (x_create_tip_frame): Use same defaults as X.
16960 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 16961 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 16962
048addec
JD
16963 * w32term.c (x_after_update_window_line): Doc fix.
16964 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
16965 frames.
16966 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 16967
048addec
JD
16968 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
16969 for all Windowed systems.
60a653f1 16970
048addec 169712001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 16972
048addec
JD
16973 * msdos.c (IT_clear_screen): If the frame's faces are not yet
16974 realized, use the initial screen colors to clear the screen.
60a653f1 16975
048addec 169762001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 16977
048addec
JD
16978 * textprop.c (Fset_text_properties): Remove unused variables
16979 `unchanged', `prev_changed', `s' and `len'.
60a653f1 16980
048addec
JD
16981 * search.c (Freplace_match): Remove unused variable `inslen'.
16982
16983 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
16984
169852001-11-22 Jason Rumney <jasonr@gnu.org>
16986
16987 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
16988 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
16989 (my_create_tip_window): New function.
16990 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
16991 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
16992
169932001-11-20 Jason Rumney <jasonr@gnu.org>
16994
16995 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
16996 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
16997
16998 * w32fns.c (Vw32_system_coding_system): Remove.
16999 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
17000
170012001-11-19 Stefan Monnier <monnier@cs.yale.edu>
17002
17003 * fileio.c (Fwrite_region): Move choose_write_coding_system to
17004 after build_annotations.
17005
17006 * syntax.c (describe_syntax): Add dummy arg.
17007 (describe_syntax_1): Update call to describe_vector.
17008
17009 * category.c (describe_category): Add dummy arg.
17010 (describe_category_1): Update call to describe_vector.
17011
17012 * keymap.c (Fdescribe_vector): Add `describer' parameter.
17013 (describe_command, describe_translation): Add dummy second param.
17014 (describe_map): Call elt_describer with two arguments.
17015 (describe_vector_princ): Add `fun' parameter.
17016 Call it instead of the hardcoded `princ'.
17017 (describe_vector): Add arg `args'.
17018 Pass it as a new second argument to elt_describer.
60a653f1 17019
048addec 17020 * keymap.h (describe_vector): Update prototype.
60a653f1 17021
048addec
JD
17022 * frame.c: Don't include keymap.h any more.
17023 (keys_of_frame): Remove.
60a653f1 17024
048addec 17025 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 17026
048addec 17027 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 17028
048addec 170292001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 17030
048addec
JD
17031 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
17032 if defined, 0 otherwise.
17033 (MAP_FAILED): Define if not defined and use it to test mmap failure.
17034 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 17035
048addec 170362001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 17037
048addec 17038 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 17039
048addec 170402001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 17041
048addec
JD
17042 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
17043 (x_draw_bar_cursor): If the background color of the glyph under
17044 the cursor equals the frame's cursor color, use the glyph's
17045 foreground color for drawing the bar cursor.
17046 (x_after_update_window_line): Clear internal border in different
17047 circumstances.
17048 (w32_set_vertical_scroll_bar): Check for width and height > 0.
17049 (w32_draw_relief_rect): Correct relief by 1 pixel.
17050 (x_set_glyph_string_background_width):
17051 Set extends_to_end_of_line_p if the row's fill_line_p is set and
17052 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
17053 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
17054 if cursor_in_non_selected_windows is false.
17055 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
17056 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
17057 Notice if cursor gets overwritten.
17058 (notice_overwritten_cursor): Renamed from
17059 note_overwritten_text_cursor. Rewritten to take glyph widths
17060 into account, and to take X positions as parameters.
17061 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17062 around call to x_draw_glyphs.
17063 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17064 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17065 color to use for image glyph reliefs.
17066 (x_draw_image_relief): Accept zero tool_bar_button_relief.
17067 (glyph_rect): Remove unused variable `area'.
60a653f1 17068
048addec
JD
17069 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
17070 some items.
17071 (x_set_internal_border_width): Set frame garbaged when window
17072 doesn't exist yet.
17073 (Fx_create_frame): Accept zero tool_bar_button_relief.
17074 (x_clear_image_1, four_corners_best, image_background)
17075 (image_background_transparent): New functions.
17076 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17077 (gs_format): Add `:background' entry.
17078 (lookup_image): Set IMG's background color if specified.
17079 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17080 when appropriate.
17081 (x_clear_image_1): Reset `background_valid' and
17082 `background_transparent_valid' fields.
17083 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17084 calculating it here. Set IMG's background_transparent field.
17085 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17086 (enum png_keyword_index): Add PNG_BACKGROUND.
17087 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17088 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17089 (enum gif_keyword_index): Add GIF_BACKGROUND.
17090 (enum gs_keyword_index): Add GS_BACKGROUND.
17091 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17092 Pre-calculate image background color where necessary.
17093 (x_create_x_image_and_pixmap, xbm_load, gs_load):
17094 Use display info's n_cbits entry for screen depth.
17095 (Fx_show_tip): Remove unused variables `buffer', `top',
17096 `left', `max_width' and `max_height'.
60a653f1 17097
048addec 17098 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 17099
048addec 171002001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 17101
048addec 17102 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 17103
048addec 171042001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17105
048addec 17106 * frame.c (Fframe_live_p): Doc fix.
60a653f1 17107
048addec 171082001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 17109
048addec
JD
17110 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
17111 (message_dolog_marker3): New static variables hold three markers.
17112 (syms_of_xdisp): Initialize and staticpro them.
17113 (message_dolog): Use message_dolog_marker1..3 instead of
17114 allocating markers each time. Unchain them when done.
60a653f1 17115
048addec 171162001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 17117
048addec 17118 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 17119
048addec 171202001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 17121
048addec 17122 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 17123
048addec 171242001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 17125
048addec 17126 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 17127
048addec 171282001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 17129
048addec 17130 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 17131
048addec 171322001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 17133
048addec
JD
17134 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
17135 with invalid position.
60a653f1 17136
048addec 171372001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 17138
048addec 17139 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 17140
048addec
JD
17141 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
17142 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
17143 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 17144
048addec 17145 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 17146
048addec 171472001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17148
048addec
JD
17149 * fileio.c (build_annotations): Split off the tail.
17150 (build_annotations_2): New fun. Extracted from build_annotations.
17151 (Fwrite_region): Split the call to build_annotations into two
17152 calls to build_annotations and build_annotations_2.
077907d4 17153
048addec 171542001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 17155
048addec
JD
17156 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
17157 clear_waiting_for_input with argument.
1756e2fb 17158
048addec 17159 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 17160
048addec 17161 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 17162
048addec 17163 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 17164
048addec 17165 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 17166
048addec 171672001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 17168
048addec
JD
17169 * fileio.c (choose_write_coding_system): New fun, extracted
17170 from Fwrite_region.
17171 (Fwrite_region): Use it.
fa336b91 17172
048addec
JD
17173 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
17174 (funcall_lambda, run_hook_with_args): Make static and add prototype.
17175 (ml_apply, find_handler_clause): Add prototype.
fa336b91 17176
048addec 171772001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 17178
048addec 17179 * config.in: Add #undef HAVE_COFF_H.
fa336b91 17180
048addec
JD
17181 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
17182 Required for ISC 4.1.
fa336b91 17183
048addec 171842001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 17185
048addec
JD
17186 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
17187 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 17188
048addec 171892001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 17190
048addec
JD
17191 The following changes are made to clean up the various internal
17192 references to the fringes to actually use the term `fringe' for
17193 them. Previously, they were called `flags areas', `bitmap areas',
17194 `left/right side of windows', or implicitly as `flags' or
17195 `bitmaps':
fa336b91 17196
048addec 17197 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 17198 Comments fixed. Use renamed symbols.
06e8f738 17199
f63fd14e 17200 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 17201
048addec
JD
17202 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
17203 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
17204 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 17205
048addec 17206 * msdos.c: Comment fix.
9ce647f4 17207
048addec 17208 * w32fns.c: Use renamed symbols.
9b784ab8 17209
f63fd14e 17210 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
17211 (fringe_bitmap_type): Renamed from bitmap_type.
17212 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17213 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
17214 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 17215
f63fd14e 17216 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
17217 (fringes_extra): Renamed from flags_areas_extra.
17218 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17219 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17220 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17221 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17222 (FRAME_X_LEFT_FRINGE_WIDTH):
17223 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17224 (FRAME_X_RIGHT_FRINGE_WIDTH):
17225 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 17226
048addec 17227 * widget.c: Use renamed symbols.
9f7e52b4 17228
f63fd14e 17229 * window.c: Comment fixes. Use renamed symbols.
048addec 17230 (coordinates-in-window-p): Doc fix.
fa336b91 17231
f63fd14e 17232 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 17233
048addec 17234 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 17235
048addec 17236 * xfns.c: Use renamed symbols.
89512fcd 17237
f63fd14e 17238 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
17239 (fringe_bitmap_type): Renamed from bitmap_type.
17240 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17241 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
17242 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 17243
f63fd14e 17244 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
17245 (fringes_extra): Renamed from flags_areas_extra.
17246 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17247 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17248 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17249 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17250 (FRAME_X_LEFT_FRINGE_WIDTH):
17251 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17252 (FRAME_X_RIGHT_FRINGE_WIDTH):
17253 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
17254
172552001-11-15 Jason Rumney <jasonr@gnu.org>
17256
17257 * w32menu.c (add-menu-item): Make help_echo and radio buttons
17258 work for most menu items. From David Ponce
17259 <david.ponce@wanadoo.fr>.
17260
172612001-11-15 Gerd Moellmann <gerd@gnu.org>
17262
17263 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
17264 Some x_set_* function expect to be called even if old and new
17265 value are equal.
17266
17267 * xdisp.c (build_desired_tool_bar_string): Accept zero
17268 tool_bar_button_relief.
17269
17270 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
17271
17272 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
17273
17274 * xterm.c (x_draw_bar_cursor): If the background color of the
17275 glyph under the cursor equals the frame's cursor color, use
17276 the glyph's foreground color for drawing the bar cursor.
17277
17278 * dispnew.c (direct_output_forward_char): Fix character/byte
17279 position comparison.
7d18891d 17280
048addec 172812001-11-15 Miles Bader <miles@gnu.org>
d2936d21 17282
048addec
JD
17283 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
17284 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
17285 Update arguments to find_field.
17286 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
17287 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
17288 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
17289 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 17290
048addec 172912001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 17292
048addec 17293 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 17294
048addec
JD
17295 * dispextern.h (image_background, image_background_transparent):
17296 Conditionalize on HAVE_X_WINDOWS.
7d18891d 17297
048addec 172982001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 17299
048addec 17300 * print.c (Fprin1_to_string): Doc fix.
7d18891d 17301
048addec 17302 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 17303
048addec 17304 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 17305
048addec 17306 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 17307
048addec 17308 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 17309
048addec 17310 * eval.c (syms_of_eval): Doc fix.
7d18891d 17311
048addec 17312 * coding.c (syms_of_coding): Doc fix.
7d18891d 17313
048addec 17314 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 17315
048addec 17316 * dispnew.c (syms_of_display): Doc fix.
9474c847 17317
048addec 17318 * category.c (Fget_unused_category): Doc fix.
9474c847 17319
048addec 17320 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 17321
048addec 173222001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 17323
048addec 17324 * print.c (prin1, print): Doc fix.
e3059a5d 17325
048addec 173262001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 17327
048addec
JD
17328 * fontset.h: Remove declarations of variables
17329 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 17330
048addec
JD
17331 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
17332 `Vclip_large_size_font'.
eae936e2 17333
048addec 173342001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 17335
048addec 17336 * w32fns.c: Doc fix.
ddb67bdc 17337
048addec 173382001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 17339
048addec 17340 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 17341
048addec 17342 * fns.c: Doc fix.
6e1b91d7 17343
048addec 17344 * emacs.c: Doc fix.
1c1d3d69 17345
048addec 17346 * coding.c: Doc fix.
1c1d3d69 17347
048addec
JD
17348 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
17349 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
17350 `new style' [w/`doc:' keyword].
b6f4c7ba 17351
048addec 173522001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 17353
048addec
JD
17354 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
17355 LeaveNotify events. Only FocusIn and FocusOut do that now.
17356 (x_display_and_set_cursor): Do display hollow cursors in active
17357 minibuffer windows when they are not selected.
b6f4c7ba 17358
048addec 173592001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 17360
048addec 17361 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
17362 * w32term.c: Change doc-string comments to `new style'
17363 [w/`doc:' keyword]. Doc fixes.
a89f435d 17364
048addec
JD
17365 * w32fns.c: Don't define max.
17366 (Fx_open_connection): Only execute once.
a4cd0cd7 17367
048addec 173682001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 17369
048addec
JD
17370 * ccl.c: Change macros to use do-while block instead of if-else.
17371 Use braces to follow GNU Coding Standards.
eafb659a 17372
048addec 173732001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 17374
048addec 17375 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 17376
048addec 17377 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 17378
048addec
JD
17379 * insdel.c (replace_range): Use adjust_markers_for_replace
17380 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 17381
78819ebb 17382 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 17383
048addec
JD
17384 * textprop.c (set_text_properties_1): New subroutine
17385 broken out of set_text_properties.
17386 (set_text_properties): Use set_text_properties_1.
91823618 17387
048addec
JD
17388 * intervals.c (graft_intervals_into_buffer):
17389 Use set_text_properties_1 to clear out properties.
91823618 17390
048addec
JD
17391 * search.c (Freplace_match): Use replace_range to insert
17392 and delete. Don't request property inheritance from
17393 surrounding text.
86928dfb 17394
048addec 173952001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 17396
048addec 17397 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 17398 vertical fonts. Allow them if face name is explicitly specified.
048addec 17399 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 17400
048addec 174012001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 17402
048addec
JD
17403 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
17404 instead of malloc/free.
a78e0303 17405
048addec 174062001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 17407
048addec
JD
17408 * xfaces.c (merge_face_vectors): Use braces to follow GNU
17409 Coding Standards.
17410 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 17411
048addec 17412 * buffer.c (Fbury_buffer): Likewise.
0c99b139 17413
048addec 17414 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 17415
048addec
JD
17416 * coding.c (encode_coding): Use precomputed value of `src'.
17417 (encode_coding): Remove unused variable `src_end'.
17418 (code_convert_region): Remove unused variables `count'.
830ddd77 17419
048addec 174202001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 17421
048addec
JD
17422 * w32term.c (x_display_and_set_cursor): Do not move system caret
17423 if cursor_glyph is NULL.
55c6d645 17424
048addec 174252001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 17426
048addec 17427 * keymap.c (access_keymap): Fix compilation error.
5de38842 17428
048addec 174292001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 17430
048addec 17431 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 17432
048addec 174332001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 17434
048addec
JD
17435 * intervals.c (graft_intervals_into_buffer):
17436 Remove #ifdef'd-out code.
17437 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 17438
048addec
JD
17439 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
17440 code (eval-current-buffer).
17441 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 17442
048addec 174432001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 17444
048addec 17445 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 17446
048addec 174472001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 17448
048addec 17449 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 17450
048addec
JD
17451 * keyboard.c (make_lispy_event): Check integerness and fix
17452 Lisp_Object/int mixup.
17893c65 17453
048addec 174542001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 17455
048addec 17456 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 17457
048addec
JD
17458 * fontset.c (fontset_font_pattern): Remove unused variable
17459 `family_registry'.
d5360cc7 17460
048addec 17461 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 17462
048addec 174632001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 17464
048addec 17465 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 17466
048addec
JD
17467 * buffer.c (Fkill_buffer): Don't delete auto save file
17468 if buffer is modified.
d9d54213 17469
048addec 174702001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 17471
048addec
JD
17472 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
17473 CHECK_NUMBER_CDR.
b116830b 17474
048addec 174752001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 17476
048addec 17477 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 17478
048addec 174792001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 17480
048addec 17481 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 17482
048addec 174832001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 17484
048addec 17485 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 17486
048addec 174872001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 17488
048addec
JD
17489 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
17490 the program image directly.
982f6c7e 17491
048addec 174922001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 17493
048addec 17494 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 17495
048addec 174962001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 17497
048addec
JD
17498 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
17499 and CHECK_BUFFER.
d31053f9 17500
048addec
JD
17501 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
17502 (record_char): Likewise.
d31053f9 17503
048addec
JD
17504 * keyboard.c (make_lispy_event): Don't insist a drag event must
17505 move to a different buffer position. Instead, check for moving at
17506 least double_click_fuzz.
982f6c7e 17507
048addec 17508 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 17509
048addec 17510 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 17511
048addec
JD
17512 * indent.c (current_column_1, Fmove_to_column): Separate the code
17513 for display-table glyphs from the code for buffer text, to fix
17514 bugs in the former.
830047fd 17515
048addec 175162001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 17517
048addec
JD
17518 * buffer.c (Fbuffer_local_value): New function.
17519 (syms_of_buffer): Defsubr it.
2df5238c 17520
048addec
JD
17521 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
17522 value of `cursor-in-non-selected-windows'.
4e397688 17523
048addec
JD
17524 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
17525 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
17526 (syms_of_xdisp): Initialize it.
48b0f3ae 17527
048addec 175282001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 17529
048addec 17530 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 17531
048addec
JD
17532 * coding.c: Change doc-string comments to `new style' [w/`doc:'
17533 keyword].
3ecaf7e5 17534
048addec
JD
17535 * eval.c (top_level_value, top_level_set): Remove commented and
17536 #ifdef'd-out code.
17537 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 17538
048addec 175392001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 17540
048addec 17541 * xfns.c: Include unistd.h, if it exists.
8db2e33b 17542
048addec 17543 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 17544
048addec 17545 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 17546
048addec 175472001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 17548
048addec
JD
17549 * lisp.h (CHECK_STRING_CAR): New macro.
17550 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
17551 treating XCAR and XCDR as lvalues.
17552 (openp): Use CHECK_STRING_CAR.
17553 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 17554
048addec 175552001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 17556
048addec
JD
17557 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
17558 (SIGMASKTYPE): Define.
1b1acc13 17559
048addec 17560 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 17561
048addec 175622001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 17563
048addec
JD
17564 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
17565 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
17566 Fix typos in comments.
6cb16f95 17567
048addec
JD
17568 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
17569 and #ifdef'd-out code.
17570 Fix and reindent comments.
6cb16f95 17571
048addec 17572 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 17573
048addec
JD
17574 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
17575 argument `i' in macros.
6cb16f95 17576
048addec
JD
17577 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
17578 `i' in macros.
7e9d3c2f 17579
048addec
JD
17580 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
17581 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
17582 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
17583 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
17584 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
17585 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
17586 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
17587 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
17588 in macros.
7e9d3c2f 17589
048addec
JD
17590 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17591 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
17592 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
17593 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
17594 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
17595 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
17596 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
17597 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
17598 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
17599 (remove unused second argument).
7e9d3c2f 17600
048addec 176012001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 17602
048addec
JD
17603 * syntax.c (describe_syntax): New wrapper.
17604 (Finternal_describe_syntax_value): Rename from describe_syntax.
17605 Don't insert space at front and \n at the end.
17606 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 17607
048addec
JD
17608 * regex.c (re_wctype): Try to fix some warnings.
17609 (regcomp, regexec): Don't forget the __restrict.
9ba48103 17610
048addec 176112001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 17612
048addec 17613 * textprop.c (Fget_char_property): Doc fix.
9ba48103 17614
048addec 176152001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 17616
048addec 17617 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 17618
048addec 17619 * data.c (Fsetq_default): Ditto.
c22e59e1 17620
048addec 17621 * callint.c (Finteractive): Ditto.
9271ed2c 17622
048addec 176232001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 17624
048addec
JD
17625 * macros.c: Don't include keymap.h any more.
17626
176272001-11-01 Richard M. Stallman <rms@gnu.org>
17628
17629 * data.c (Fmake_local_variable): Doc fix.
17630
17631 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
17632 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 17633
048addec 17634 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
17635 bindings along with or instead of the buffer local map.
17636 Make the overriding maps override what they should.
17637
f00691a3 176382001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
17639
17640 * window.c (grow_mini_window): Fix typo in comment.
17641
27188d11
GM
176422001-11-01 Gerd Moellmann <gerd@gnu.org>
17643
7b49b9d2
GM
17644 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
17645 (XTset_vertical_scroll_bar): Likewise.
17646
43f7c3ea
GM
17647 * xfns.c (x_build_heuristic_mask): Use four_corners_best
17648 instead of IMAGE_BACKGROUND.
c22e59e1 17649
b350c2e5
GM
17650 * xfns.c (four_corners_best): Reindent.
17651
c22e59e1 17652 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
17653 Handle :box so that it is possible to specify sexprs.
17654
bf00d461
EZ
176552001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
17656
17657 * s/hpux11.h: New file.
17658
f00691a3 176592001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 17660
2b209b97
PJ
17661 * emacs.c (USAGE1): Show command line option --no-window-system
17662 instead of --no-windows in usage.
17663 (standard_args): Rename --no-windows to --no-window-system.
17664 (bug_reporting_address): Follow Emacs coding conventions.
17665
9dbc9081
PJ
17666 * eval.c (Fcommandp): Doc fix.
17667 Change doc-string comments to `new style' [w/`doc:' keyword].
17668
4e10df59
PJ
17669 * frame.c (Fframe_live_p): Doc fix.
17670
17671 * buffer.c (selective-display-ellipses): Doc fix.
17672
dd387b25
GM
176732001-10-31 Gerd Moellmann <gerd@gnu.org>
17674
fe957e65
GM
17675 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
17676
dd387b25
GM
17677 * xfaces.c (realize_x_face): If C is not a single-byte character,
17678 set the face's colors_copied_bitwise_p instead of the defaulted_p
17679 members which have a different meaning.
17680 (free_face_colors): Do nothing for a face whose colors have been
17681 copied bitwise.
17682
c22e59e1 17683 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 17684
f00691a3 176852001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 17686
687784e8
PJ
17687 * marker.c, mocklisp.c: Change doc-string comments to `new style'
17688 [w/`doc:' keyword].
2e1280f8 17689
b9d9a9b9
GM
176902001-10-31 Gerd Moellmann <gerd@gnu.org>
17691
17692 * fns.c (require_unwind): Return Lisp_Object.
17693
f00691a3 176942001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 17695
fa1361cb
PJ
17696 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
17697 (last-input-char): Revert doc-string to be the same as the
17698 doc-string of `last-input-event'.
17699
6c465a15 17700 * xdisp.c: Fix typos in comments.
48400103 17701
eafa3196
GM
177022001-10-31 Gerd Moellmann <gerd@gnu.org>
17703
17704 * window.c (grow_mini_window): Handle case that the root
17705 window is already smaller than the nominal mininum height.
17706
747d3f2a
SM
177072001-10-30 Stefan Monnier <monnier@cs.yale.edu>
17708
bf9bb76f
SM
17709 * emacs.c (main): Don't call keys_of_macros any more.
17710
17711 * lisp.h (keys_of_macros): Remove.
17712
17713 * macros.c (keys_of_macros): Remove.
17714
747d3f2a
SM
17715 * xfaces.c (Fface_attribute_relative_p): Declare args.
17716
5e905a57
JR
177172001-10-30 Jason Rumney <jasonr@gnu.org>
17718
17719 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
17720 (enum_font_cb2): Ignore fonts with vertical orientation.
17721
3a426197
RS
177222001-10-30 Richard M. Stallman <rms@gnu.org>
17723
17724 * keyboard.c (Finput_pending_p): Doc fix.
17725
a742d646
GM
177262001-10-30 Gerd Moellmann <gerd@gnu.org>
17727
259cf6bc
GM
17728 * xterm.c (x_after_update_window_line): Don't run the code
17729 clearing in borders for rows whose visible height is 0.
17730
3f99f948
GM
17731 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
17732 resized_p flag is set. If not set, use the much less flickering
17733 method previously used.
17734
17735 * dispnew.c (change_frame_size_1): Set frame's resized_p.
17736
17737 * frame.h (struct frame) <resized_p>: New member.
17738
b4a3be43
GM
17739 * lread.c (to_multibyte): Ensure read_buffer is at least twice
17740 as large as the number of bytes to convert.
747d3f2a 17741
a742d646
GM
17742 * lread.c (to_multibyte): New function.
17743 (read1): Use it.
17744
cacbb9e9
EZ
177452001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
17746
17747 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
17748
99cb6b2f
GM
177492001-10-30 Gerd Moellmann <gerd@gnu.org>
17750
327f42ee 17751 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
17752 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
17753 if the row's fill_line_p is set and drawing the last glyph with
17754 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 17755
99cb6b2f
GM
17756 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
17757
8e8223e2
SM
177582001-10-29 Stefan Monnier <monnier@cs.yale.edu>
17759
17760 * xmenu.c: Include coding.h and charset.h.
17761 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
17762 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
17763 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
17764 Explicitly set wv->help. Use `TRUE' rather than `True'.
17765 (menu_help_callback): Use empty_string.
17766
17767 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
17768 (Fx_popup_dialog): Explicitly init f.
17769 (w32_menu_display_help): Use empty_string.
17770
4d083a8f
RS
177712001-10-29 Richard M. Stallman <rms@gnu.org>
17772
b2304472
RS
17773 * fns.c (Frequire): Detect recursive try to require the same
17774 feature 3 or more levels deep, and get error.
17775 (require_unwind): New subroutine.
17776 (require_nesting_list): New variable.
17777 (syms_of_fns): Init and staticpro it.
17778
4d083a8f
RS
17779 * print.c (print_object): Clarify indication of insertion type.
17780
2fe41216
EZ
177812001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
17782
90480000
EZ
17783 * coding.c (syms_of_coding): Document that locale-coding-system is
17784 used for decoding input on X.
17785
2fe41216
EZ
17786 * window.c (Fscroll_left, Fscroll_right): Doc fix.
17787
f00691a3 177882001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
17789
17790 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
17791 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
17792
60ebcfe8
GM
177932001-10-29 Gerd Moellmann <gerd@gnu.org>
17794
9a7bdceb
GM
17795 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
17796 use NO_CURSOR if cursor_in_non_selected_windows is false.
17797
3f08fcd2
GM
17798 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
17799 the slant attribute if FRAME is t.
17800
0ccfdad2
GM
17801 * xfns.c (x_set_internal_border_width): Set frame garbaged
17802 when X window doesn't exist yet.
17803
ef253080
GM
17804 * xterm.c (x_after_update_window_line): Clear internal border
17805 in different circumstances.
b116830b 17806
60ebcfe8
GM
17807 * xterm.c (XTread_socket) <KeyPress>: Don't use
17808 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
17809 <handa@etl.go.jp>.
17810
73d25f9c
EZ
178112001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
17812
17813 * m/ibms390.h: New file. From Adam Thornton
17814 <athornton@sinenomine.net>.
17815
cac1daf0
GM
178162001-10-28 Gerd Moellmann <gerd@gnu.org>
17817
053b3256 17818 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 17819
cac1daf0
GM
17820 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
17821 a loop counter.
17822
f00691a3 178232001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 17824
f9711de4 17825 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 17826
4707d2d0
PJ
17827 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
17828 keyword].
17829 Fix typos in comments.
b116830b 17830
d883731c
PJ
17831 * emacs.c (bug_reporting_address): New function.
17832 Use it when displaying usage message.
17833
04012254
PJ
17834 * minibuf.c (read_minibuf): Remove unused external declaration of
17835 variable `Qread_only'.
17836
13b1a09c
PJ
17837 * keymap.c (access_keymap): Remove unused variable `charset'.
17838
5bbf4378
MB
178392001-10-28 Miles Bader <miles@gnu.org>
17840
17841 * xfaces.c (merge_face_heights): Handle TO being relative as well.
17842 Remove #ifdef'd-out code.
17843 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
17844 (syms_of_xfaces): Initialize them.
17845
1ce1e4ee
JR
178462001-10-27 Jason Rumney <jasonr@gnu.org>
17847
17848 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
17849 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
17850 position using the system caret.
17851
17852 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
17853 (w32_system_caret_height, w32_system_caret_x)
17854 (w32_system_caret_y): New variables for tracking system caret.
17855 (w32_initialize): Initialize them.
c2d53558 17856 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 17857
c2d53558
SM
17858 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
17859 New messages types.
1ce1e4ee
JR
17860
17861 * w32term.c (note_mouse_highlight): Clear old help_echo.
17862
f00691a3 178632001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 17864
bb4600a4
PJ
17865 * xterm.c: Fix typo in a comment.
17866
7db35a48
PJ
17867 * emacs.c: Fix typos in comments.
17868 Remove unnecessary spaces.
17869 Change doc-string comments to `new style' [w/`doc:' keyword].
17870 (USAGE2): Fix typos in usage string.
17871
a7248e4f
PJ
17872 * xterm.c: Fix typo in a comment.
17873
4e30ce42
PJ
17874 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
17875 emacs.c.
17876
62725a92
GM
178772001-10-27 Gerd Moellmann <gerd@gnu.org>
17878
798dbe1f 17879 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 17880 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
17881 farther backward when target_y was not reached.
17882
62725a92
GM
17883 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17884 Display errno only if non-zero.
17885 (sound_warning): New function.
17886 (vox_configure): Don't treat failing to set sample rate as error.
17887 (various places): Improve error messages.
17888
d4e34d24
EZ
178892001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
17890
944e6f60
EZ
17891 * fileio.c (Faccess_file): Run the argument filename through
17892 Fexpand_file_name, before using it.
17893
d4e34d24
EZ
17894 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17895 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17896
38d2af0c
GM
178972001-10-26 Gerd Moellmann <gerd@gnu.org>
17898
da80a8d5
GM
17899 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17900
38d2af0c
GM
17901 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17902 Fix clearing in the case of scroll bars on the right.
c2d53558 17903
45de4a6f 179042001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
17905
17906 * w32gui.h (XImage): Add a dummy typedef.
17907
fbd5ceb2
GM
179082001-10-26 Gerd Moellmann <gerd@gnu.org>
17909
c2d53558 17910 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 17911
b23236fb
EZ
179122001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
17913
17914 * frame.c (Fframe_parameter): Fix last change.
17915
5d991fc4
EZ
17916 * fileio.c: Revert last change (which removed old commented-out
17917 version of expand-file-name). Add a comment that explains why
17918 this old version should not be removed.
17919
879eadc3
GM
179202001-10-25 Gerd Moellmann <gerd@gnu.org>
17921
75700ff2
GM
17922 * frame.c (Fframe_parameter): Fix a bug whereby some
17923 ``artificial'' frame parameters, like `minibuffer' were not
17924 obtained by calling Fframe_parameters.
17925
dfe92a6a
GM
17926 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
17927 cursor differently.
17928
879eadc3
GM
17929 * xdisp.c (move_it_vertically_backward): Compute line height
17930 differently. Add heuristic to try to be more compatible to 20.x.
17931
e1010ebe
SM
179322001-10-25 Stefan Monnier <monnier@cs.yale.edu>
17933
d73a471b
SM
17934 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17935
d6da5a06
GM
17936 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17937 boolean.
e1010ebe 17938
f66bd220
MB
179392001-10-25 Miles Bader <miles@gnu.org>
17940
17941 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17942 BG is a pointer to a structure, not a structure.
17943 (gif_format, png_format): Add missing commas.
17944
d436d538
RS
179452001-10-24 Richard M. Stallman <rms@gnu.org>
17946
17947 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 17948 (syms_of_xfaces): Defsubr it.
d436d538 17949
f00691a3 179502001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
17951
17952 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
17953 variable `area'.
17954
f00691a3 179552001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 17956
c2d53558 17957 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 17958
e2a57b34
MB
179592001-10-25 Miles Bader <miles@gnu.org>
17960
17961 * dispextern.h (struct image): Add `background',
17962 `background_valid', and `background_transparent' fields.
17963 (image_background, image_background_transparent): New declarations.
17964 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
17965 * xfns.c (image_background, image_background_transparent)
17966 (four_corners_best): New functions.
c2d53558 17967 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
17968 (gs_format): Add `:background' entry.
17969 (lookup_image): Set IMG's background color if specified.
17970 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17971 when appropriate.
17972 (x_clear_image_1): Reset `background_valid' and
17973 `background_transparent_valid' fields.
17974 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17975 calculating it here. Set IMG's background_transparent field.
17976 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17977 (enum png_keyword_index): Add PNG_BACKGROUND.
17978 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17979 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17980 (enum gif_keyword_index): Add GIF_BACKGROUND.
17981 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 17982 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
17983 Pre-calculate image background color where necessary.
17984 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17985 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17986 color to use for image glyph reliefs.
17987
b547b6e8
GM
179882001-10-24 Gerd Moellmann <gerd@gnu.org>
17989
d9e3b8c6
GM
17990 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
17991 in full-width rows.
c2d53558 17992
b547b6e8
GM
17993 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17994 Fix clearing of area not covered by scroll bar.
17995
f00691a3 179962001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
17997
17998 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
17999 and `real_start'.
c2d53558 18000 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
18001 (glyph_rect): Remove unused variable `area'.
18002
76cb5e06
GM
180032001-10-24 Gerd Moellmann <gerd@gnu.org>
18004
bdbdebff 18005 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
18006
18007 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
18008 (row_containing_pos): Take additional argument DY.
18009 Treat rows ending in middle of char differently.
62e33982
GM
18010 (display_line): Handle tabs on window systems differently.
18011
18012 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
18013 with additional argument.
18014
18015 * dispextern.h (row_containing_pos): Adjust prototype.
18016
76cb5e06
GM
18017 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
18018 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
18019 (try_window_id, try_window_reusing_current_matrix)
18020 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 18021 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 18022
f00691a3 180232001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 18024
c9e60620
PJ
18025 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
18026 gnuemacs).
18027 (HAVE_BOXES): Fix typo in comment.
18028 (push_menu_pane): Fix typo in comment.
18029
3b552d56
PJ
18030 * xdisp.c: (display_prop_string_p): Remove unused local declaration
18031 of `Qwhen'.
18032 (single_display_prop_string_p): Remove unused local declarations
18033 of `Qwhen' and `Qmargin'.
18034 (string_buffer_position): Remove unused variable `around'.
18035 (store_frame_title): Remove unused variable `width'.
18036
15c565ac
PJ
18037 * window.c: Don't define max.
18038 (coordinates_in_window): Remove unused variable `uy'.
18039
a8818eb9
PJ
18040 * widget.c: Don't define max.
18041
996fee11
PJ
18042 * process.c: Don't define max.
18043 (create_process): Remove unused variable `buffer'.
18044
496e1a5b
GM
180452001-10-23 Gerd Moellmann <gerd@gnu.org>
18046
c2d53558 18047 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 18048
5905ae8b
EZ
180492001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
18050
18051 * xfaces.c (Finternal_set_lisp_face_attribute)
18052 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
18053 frame is on a windowed display.
18054
24db49fb
GM
180552001-10-23 Gerd Moellmann <gerd@gnu.org>
18056
c2d53558
SM
18057 * dispnew.c (sync_window_with_frame_matrix_rows):
18058 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
18059 of marginal areas.
18060
c2d53558 18061 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 18062
f0487f05
EZ
180632001-10-23 Andreas Schwab <schwab@suse.de>
18064
18065 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
18066 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
18067
f0a48a01
GM
180682001-10-23 Gerd Moellmann <gerd@gnu.org>
18069
c2d53558 18070 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
18071 REAL_END. Notice if cursor gets overwritten.
18072 (notice_overwritten_cursor): Take X positions as parameters.
18073 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18074 around call to x_draw_glyphs.
18075
f00691a3 180762001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 18077
fc11dff0
PJ
18078 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
18079 instead of C) and usage.
a50a10a0 18080
fc11dff0
PJ
18081 * editfns.c (char-to-string): Fix argument names (use CHAR instead
18082 of C) and usage.
a50a10a0
PJ
18083
18084 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
18085 `left', `max_width' and `max_height'.
18086
8738febd
GM
180872001-10-23 Gerd Moellmann <gerd@gnu.org>
18088
18089 * xdisp.c (display_line): For a tab continued to the next line,
18090 set row's ends_in_middle_of_char_p.
18091
653c329b
GM
180922001-10-22 Gerd Moellmann <gerd@gnu.org>
18093
18094 * xdisp.c (display_line): Fix computation of continuation lines
18095 width for TABs.
18096
f00691a3 180972001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 18098
7ba51063
PJ
18099 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
18100 `Qlaplace'.
18101
f958c5ac
PJ
18102 * fileio.c: Remove unused code.
18103
eb360291
MB
181042001-10-22 Miles Bader <miles@gnu.org>
18105
18106 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
18107 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
18108 Remove `DOC_STRINGS_IN_COMMENTS' cases.
18109
98515cf0
JR
181102001-10-21 Jason Rumney <jasonr@gnu.org>
18111
18112 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
18113
93026d88
EZ
181142001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
18115
18116 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
18117 (Finsert_string): Avoid the multi-line string literals warning.
18118
c9a95b79
MB
181192001-10-22 Miles Bader <miles@gnu.org>
18120
18121 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
18122 (Fdocumentation): Don't use it.
18123 (syms_of_doc): Don't initialize it.
18124
18125 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
18126 * print.c (Fwith_output_to_temp_buffer): Likewise.
18127 * window.c (Fsave_window_excursion): Likewise.
c2d53558 18128 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 18129 (Fsave_restriction): Likewise.
c2d53558
SM
18130 * eval.c (Frun_hooks, Frun_hook_with_args)
18131 (Frun_hook_with_args_until_failure)
18132 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
18133 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
18134 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
18135 (Funwind_protect, Fcondition_case): Likewise.
18136 * coding.c (Ffind_operation_coding_system): Likewise.
18137 * keyboard.c (Ftrack_mouse): Likewise.
18138
a3b10252
MB
181392001-10-21 Miles Bader <miles@gnu.org>
18140
c2d53558 18141 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
18142 (Fmake_hash_table): Add usage: string to doc string.
18143 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 18144 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
18145 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
18146 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
18147 (Fml_prefix_argument_loop): Likewise.
18148
f00691a3 181492001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 18150
c2d53558 18151 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 18152
c6f73eec
PJ
18153 * sysdep.c (init_sys_modes): Change doc-string comments to `new
18154 style' [w/`doc:' keyword].
18155
18156 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
18157 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
18158 comments to `new style' [w/`doc:' keyword].
18159
3cf3436e
JR
181602001-10-21 Jason Rumney <jasonr@gnu.org>
18161
18162 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
18163
c169b8f1
JR
18164 * w32term.c (remember_mouse_glyph): New function.
18165 (w32_mouse_position): Use it.
18166 (note_mouse_movement): If the mouse moved off the glyph, remember
18167 its new position.
c2d53558 18168
4fdd691b
JR
18169 * w32term.h (struct w32_output): Correct spelling of x_compatible.
18170 (w32_display_info): Add mouse_face_overlay.
18171
c169b8f1
JR
18172 * w32term.c (notice_overwritten_cursor): Renamed from
18173 note_overwritten_text_cursor. Rewritten to take glyph widths into
18174 account.
18175 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
18176 (fast_find_string_pos): New function.
18177 (fast_find_position): Return the correct vpos. Add parameter
18178 STOP. In the final row, stop before glyphs having STOP as object.
18179 Don't consider glyphs that are not from a buffer.
18180 (fast_find_position) [0]: Add a presumably more correct version
18181 for after 21.1.
18182 (expose_window_tree, expose_frame): Don't compute intersections here.
18183 (expose_window): Do it here instead.
18184 (expose_window_tree, expose_window, expose_line): Return 1 when
18185 overwriting mouse-face.
18186 (expose_window): If W is the window currently being updated, mark
18187 the frame garbaged.
18188 (expose_frame): If mouse-face was overwritten, redo it.
18189 (x_use_underline_position_properties): New variable.
18190 (syms_of_xterm): DEFVAR_BOOL it.
18191 (x_draw_glyph_string): Add comment to use it in future.
18192 (x_draw_glyph_string): Restore clipping after drawing box.
18193 Fix a computation of the underline position.
18194 (w32_get_glyph_string_clip_rect): Minor cleanup.
18195 (x_fill_stretch_glyph_string): Remove an assertion.
18196 (x_produce_glyphs): Don't convert multibyte characters
18197 to unibyte characters in unibyte buffers.
18198 (cursor_in_mouse_face_p): New function.
18199 (x_draw_stretch_glyph_string): Use it to choose a different GC
18200 when drawing a cursor within highlighted text. Don't draw
18201 background again if it has already been drawn.
18202 (x_draw_glyph_string_box): Don't draw a full-width
18203 box just because the glyph row's full_width_p flag is set.
18204 (x_draw_glyphs): Fix computation of rightmost x for
18205 full-width rows.
18206 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
18207 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 18208 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
18209 (x_update_window_end): Handle overwritten mouse face
18210 also for tool bar windows.
18211 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
18212 DRAW is DRAW_IMAGE_RAISED.
18213 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
18214 actually redrawn. Make the function static.
18215 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
18216 optimize away highlighting if we pass over that same overlay again.
18217 (note_mouse_highlight): Call mouse_face_overlay_overlaps
18218 to detect a case where we have to highlight a different region
18219 despite not having left the currently highlighted region.
18220 Set mouse_face_overlay in the x_display_info. Avoid changing the
18221 mouse pointer shape when show_mouse_face has already done it, or
18222 there is no need. Handle mouse-face and help-echo in strings.
18223 (glyph_rect): New function.
18224 (w32_mouse_position): Use it to raise the threshold for mouse
18225 movement event generation.
18226 (w32_initialize_display_info): Initialize the x_display_info's
18227 mouse_face_overlay.
18228 (w32_set_vertical_scroll_bar): Don't clear a zero height
18229 or width area.
18230 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
18231 a widget to zero height.
18232
3cf3436e 18233 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 18234 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
18235 equivalents in menu_items.
18236 (w32_menu_show): Don't overwrite an item's name with its key
18237 description in case the description is a multibyte string.
18238 (single_submenu): Some cleanup.
18239
18240 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
18241 (postprocess_image): New function.
18242 (lookup_image): Call it for all image types except PostScript.
18243 (x_kill_gs_process): Call postprocess_image.
18244 (tiff_error_handler, tiff_warning_handler): New functions.
18245 (tiff_load): Install them as handlers.
18246 (x_kill_gs_process): Recognize if someone has cleared the image
18247 cache under us.
18248 (valid_image_p): Protect better against invalid image
18249 specifications. Previous code could signal an error.
18250 (Fx_hide_tip, Fshow_tip): Doc fix.
18251 (Fv_max_tooltip_size): New variable.
18252 (syns_of_xfns): DEFVAR_LISP it.
18253 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 18254 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
18255 window_width. Use a maximum tooltip size specified by
18256 Vx_max_tooltip_size, if that has valid contents.
18257 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
18258 Make sure the tooltip is completely visible.
18259 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
18260 (Fx_create_frame): Adjust the frame's height for presence
18261 of the tool bar before calling x_figure_window_size.
18262 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
18263 when the window gets smaller.
18264 (x_set_foreground_color): Set frame's cursor_pixel.
18265 (x_set_foreground_color, x_set_background_color): Cleaned up.
18266 (x_set_font): Handle case of x_new_fontset returning the same name
18267 as before, although there was a change in fontsets.
18268
386ca361
MB
182692001-10-21 Miles Bader <miles@gnu.org>
18270
c2d53558 18271 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
18272 (Flogxor): Add usage: string to doc string.
18273 * charset.c (Fstring): Likewise.
18274 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
18275 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
18276
f00691a3 182772001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 18278
03be2694
PJ
18279 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
18280
18281 * alloc.c: Reindent DEFUNs with doc: keywords.
18282
18283 * abbrev.c (Finsert_abbrev_table_description): Reindent.
18284
14ff1ee0
PJ
18285 * frame.c: Change doc-string comments to `new style' [w/`doc:'
18286 keyword].
18287
2f147815 18288See ChangeLog.9 for earlier changes.
6922b018
KH
18289
18290;; Local Variables:
49b3bd82 18291;; coding: iso-2022-7bit
6922b018 18292;; End:
2a34a036 18293
2f147815 18294 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
18295 Copying and distribution of this file, with or without modification,
18296 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
18297
18298;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4