Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-626
[bpt/emacs.git] / src / ChangeLog
CommitLineData
84338890
JD
12004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
4 gdk_window_clear and move gdk_window_process_all_updates after
5 clear so events are sent to the X server in correct order.
6
6e1b0d8c
KH
72004-10-18 Kenichi Handa <handa@m17n.org>
8
9 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
10 comparing font names.
11 (fs_query_fontset): Use fast_string_match for comparing fontset
12 names.
13 (list_fontsets): Likewise.
14
15 * search.c (fast_string_match_ignore_case): New function.
16
17 * lisp.h (fast_string_match_ignore_case): Extern it.
18
345e75a8
KS
192004-10-17 Kim F. Storm <storm@cua.dk>
20
21 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
22 than bitmap if there is not left fringe.
23 (get_overlay_arrow_glyph_row): Also used on windows system.
24 (display_line): Display overlay string if no left fringe.
25
be13cbb7
JR
262004-10-16 Jason Rumney <jasonr@gnu.org>
27
28 * w32fns.c (w32_font_match): Encode font name being matched.
29
c2e2ede7
RS
302004-10-16 Richard M. Stallman <rms@gnu.org>
31
32 * window.c (Fspecial_display_p): Doc fix.
33
3584d95d
SM
342004-10-15 Stefan <monnier@iro.umontreal.ca>
35
36 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
37 Don't ignore menus, because where-is-internal already does it for us.
38
699a0392
KS
392004-10-15 Kim F. Storm <storm@cua.dk>
40
b3c7a89b
KS
41 * xdisp.c (redisplay_window): Only update fringes and vertical
42 border on window frames.
699a0392 43
4e382b0f
AS
442004-10-14 Andreas Schwab <schwab@suse.de>
45
46 * m/ia64.h (DATA_SEG_BITS): Don't define.
47
329a7be2
KS
482004-10-14 Kim F. Storm <storm@cua.dk>
49
50 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 51 in some X versions.
329a7be2 52
982241b1
SM
532004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
54
55 * fns.c (map_char_table): Add missing gcpros.
56
9238467d
SM
572004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
58
59 * keymap.c (get_keymap): An autoload form is not a keymap.
60
61 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
62
4440e3ca
KS
632004-10-13 Kim F. Storm <storm@cua.dk>
64
7cfdabde
KS
65 * callproc.c (Fcall_process): Simplify handling of display arg.
66 Resume `display_on_the_fly' once a coding system is determined.
67
4440e3ca
KS
68 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
69
1c8dec6a
KS
702004-10-12 Kim F. Storm <storm@cua.dk>
71
72 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
73 caller, such as call-process, is not going to poll for input.
74 (calc_line_height_property): Handle case where it->object is nil.
75
76 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
77
170b174c
KH
782004-10-12 Kenichi Handa <handa@m17n.org>
79
9238467d
SM
80 * xdisp.c (get_next_display_element):
81 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
82 chars in octal in unibyte buffer.
83
b583964c
KS
842004-10-12 Kim F. Storm <storm@cua.dk>
85
86 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
87 are no ordinary bindings.
88
29fabd8c
JD
892004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
90
9238467d 91 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 92
c3f4c690
ST
932004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
94
9238467d
SM
95 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
96 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 97 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
98 terminal frame.
99 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
100 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
101 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
102 Make a cancel file-open dialog be like C-g.
9238467d
SM
103 * mac.c (mktime): Use emacs_mktime.
104 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
105 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 106
9688f9eb
KS
1072004-10-10 Kim F. Storm <storm@cua.dk>
108
109 * keyboard.c (timer_resume_idle): New function to resume idle
110 timer without resetting timers on the idle list.
111 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
112 (timer_start_idle, timer_stop_idle): Declare static.
113 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
114
115 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
116
f7f3a65f
ST
1172004-10-08 Steven Tamm <steventamm@mac.com>
118
9238467d 119 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 120 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 121 NULL where 0 should be used.
f7f3a65f
ST
122 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
123 objc/malloc.h
9238467d 124 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 125
3c7d999a
KS
1262004-10-07 Kim F. Storm <storm@cua.dk>
127
128 * xdisp.c (redisplay_window): Fix flicker on vertical line between
129 windows. Update vertical line after drawing window fringes, but
130 only if actually drawing any bitmaps--or there is no fringe.
131
132 * xterm.c (x_update_window_end): Likewise.
133 * macterm.c (x_update_window_end): Likewise.
134 * w32term.c (x_update_window_end): Likewise.
135
136 * fringe.c (draw_window_fringes): Return value now indicates if
137 any fringe bitmaps were redrawn (or there are no fringes).
138
139 * dispextern.h (draw_window_fringes): Update prototype.
140
bf06c82f
ST
1412004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
142
143 * macfns.c (mac_get_window_bounds): Add extern.
144 (x_real_positions): Use mac_get_window_bounds.
145
146 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
147 xmenu.c (YAILOM).
3c7d999a 148
bf06c82f
ST
149 * macterm.c [!MAC_OSX]: Include Windows.h.
150 (front_emacs_window): Rename from mac_front_window. All uses
151 changed. Return the frontmost non-tooltip emacs window.
152 (mac_get_window_bounds): New function.
153 (x_calc_absolute_position): Use the difference of width and height
154 between the inner and outer window.
155 (x_set_offset): Specify window position by the coordinae of the
156 outer window. Adjust the position if the title bar is completely
157 outside the screen.
158 (app_is_suspended, app_sleep_time): Remove unused variables.
159 (do_app_resume, do_app_suspend): Remove their contents because
160 window-activate/deactivate events will do the job.
161 (do_zoom_window): Remove unused variables. Make compliant to the
162 standard way of zooming. Set f->left_pos and f->top_pos.
163 (XTread_socket): Don't use argument `expected'. Don't use
164 FrontWindow to determine the clicked window. Exclude unprocessed
165 mouseUp cases in the early stage. Add parentheses to fix operator
166 precedence.
167 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
168
169
4cbbf6b7 1702004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
171
172 * config.in: Regenerate.
173
174 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
175 HAVE_EXECSHIELD.
176
b90ee8b5
JD
1772004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
178
179 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
180 a row if Alt or Meta has been found for that row. Also stop scanning
181 for Keysyms for that row.
182
904db1a2
KS
1832004-10-04 Kim F. Storm <storm@cua.dk>
184
0207b8ad
KS
185 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
186 to list. Include overlay arrow bitmap in return value.
187
25f7220c
KS
188 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
189 bars with fractional column width. If scroll bar separates two
190 windows, move it towards the window it belongs to. Only update
191 the padding area below the scroll bar widget when necessary,
192 i.e. when scroll bar widget is created, moved, or resized.
193
562020fe
KS
194 * xdisp.c (define_frame_cursor1): Do not change frame cursor
195 while tracking/dragging mouse.
196 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
197
37e34af7
KS
198 * window.c (coordinates_in_window): Relax check for cursor
199 on vertial border between mode lines.
200 (Fset_window_fringes): Do not allow negative widths.
201 (Fset_window_scroll_bars): Likewise.
202
904db1a2
KS
203 * .gdbinit (pp): Shorthand for p ARG + pr.
204 (ff): New command: flush frame updates (X only).
205
38fe4f64
MA
2062004-10-03 Michael Albinus <michael.albinus@gmx.de>
207
208 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
209
9de36315
KH
2102004-09-30 Kenichi Handa <handa@m17n.org>
211
07c381ad 212 * process.c (send_process): Free composition data.
9de36315 213
07c381ad 214 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
215
216 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
217 compositions to encode.
218 (encode_coding_string): Likewise. Free composition data.
219
2202004-09-30 Florian Weimer <fw@deneb.enyo.de> (tiny change)
221
222 * coding.c (code_convert_region): Free composition data.
9de36315 223
f2a54fbc
KS
2242004-09-29 Kim F. Storm <storm@cua.dk>
225
dc5d6435
KS
226 * fringe.c: Remove limit on number of bitmaps.
227 (fringe_bitmaps, fringe_faces): Change to pointers.
228 (max_fringe_bitmaps): New var.
229 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
230 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
231
232 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
233 (struct glyph_row): Reorder fringe_bitmap related fields.
234 (struct it): Likewise.
235
236 * w32term.c (fringe_bmp): Change to pointer.
237 (max_fringe_bmp): New var.
238 (w32_define_fringe_bitmap): Expand fringe_bmp.
239 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
240 (w32_destroy_fringe_bitmap): Likewise.
241
2422004-09-29 Kim F. Storm <storm@cua.dk>
243
244 * fringe.c: Simplify last change.
f2a54fbc
KS
245 (lookup_fringe_bitmap): New function.
246 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
247 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
248 Keep standard bitmaps in Vfringe_bitmaps.
249 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
250 (Fset_fringe_bitmap_face): Likewise.
251
252 * dispextern.h (lookup_fringe_bitmap): Add prototype.
253 (valid_fringe_bitmap_p): Remove prototype.
254
255 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
256
841a8bca
KS
2572004-09-29 Kim F. Storm <storm@cua.dk>
258
1f2da365
KS
259 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
260 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
261
841a8bca
KS
262 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
263
264 * fringe.c (Vfringe_bitmaps): New variable.
265 (syms_of_fringe): DEFVAR_LISP it.
266 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
267 Change arg to Lisp_Object and fail if not an integer.
268 (get_fringe_bitmap_name, resolve_fringe_bitmap)
269 (destroy_fringe_bitmap): New functions.
9238467d
SM
270 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
271 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
272 clear its fringe property.
273 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
274 Fdestroy_fringe_bitmap.
275 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
276 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
277 and set fringe property. Signal error if no free slots.
278 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
279 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
280
281 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
282 symbols with a fringe property.
283
4d965590
KS
2842004-09-27 Kim F. Storm <storm@cua.dk>
285
286 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
287 Doc fix. Format may now be a symbol or alist, not a cons.
288
289 * fringe.c (update_window_fringes): Handle new formats of
290 indicate-buffer-boundaries (symbol or alist). No longer
291 allow a simple cons.
292 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
293
e888c2b3
JD
2942004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
295
9238467d 296 * config.in: Rebuild.
e888c2b3 297
83f1cb94
JD
2982004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
299
300 * config.in: Rebuild.
301
dd3b1d60 302 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 303
2c51754c
SM
3042004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
305
306 * xterm.c (x_term_init): Work around a bug in some X servers.
307
3df5f8aa
RS
3082004-09-18 Richard M. Stallman <rms@gnu.org>
309
557ca2c1
RS
310 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
311
3df5f8aa
RS
312 * xdisp.c (try_window_reusing_current_matrix):
313 Handle the case where we reach the old displayed text,
314 out of sync with the old line boundary.
315
9238467d 3162004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
317
318 * fileio.c (Finsert_file_contents): Fix case of replacement in a
319 narrowed buffer.
320
bfa02563
KS
3212004-09-14 Kim F. Storm <storm@cua.dk>
322
a25fe164
KS
323 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
324
bfa02563
KS
325 * xfaces.c (Qface_no_inherit): New var.
326 (syms_of_xfaces): Intern and staticpro it.
327 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
328 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
329 Don't increment face_change_count when face has non-nil
330 face-no-inherit property.
331
126f9c02
SM
3322004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
333
892a8eb5
SM
334 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
335 (Fbyte_code): Remove dead code after `wrong_type_argument'.
336
126f9c02 337 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 338 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 339
c0ad3b38
KS
3402004-09-12 Kim F. Storm <storm@cua.dk>
341
342 * editfns.c (Fformat): Handle format strings with multiple text
343 properties. Reverse text property list from the format string,
344 so the positions are in increasing order.
345
844fc085
JD
3462004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
347
348 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
349 x_uncatch_errors so that possible protocol errors are delivered.
350
b106731c
EZ
3512004-09-10 Eli Zaretskii <eliz@gnu.org>
352
21065c92
EZ
353 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
354 blockinput.h.
355 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
356 charset.h, and coding.h
9238467d 357 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
358 (term.o): Depend on window.h and keymap.h.
359 (abbrev.o): Depend on syntax.h.
360 (callint.o): Depend on keymap.h.
361 (casefiddle.o): Depend on charset.h and keymap.h.
362 (category.o): Depend on keymap.h.
363 (coding.o): Depend on dispextern.h.
364 (cmds.o): Depend on keyboard.h and keymap.h.
365 (dispnew.o): Depend on indent.h and intervals.h.
366 (doc.o): Depend on keymap.h.
367 (editfns.o): Depend on frame.h.
368 (emacs.o): Depend on dispextern.h.
369 (fileio.o): Don't depend on ccl.h.
370 (filelock.o): Depend on charset.h and coding.h.
371 (frame.o): Depend on w32term.h and macterm.h.
372 (insdel.o): Depend on region-cache.h.
373 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
374 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
375 (search.o): Depend on $(INTERVALS_SRC).
376 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
377 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
378 xterm.h, w32term.h, and macterm.h.
379 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
380 w32term.h, and macterm.h.
381 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
382 region-cache.h, xterm.h, w32term.h, and macterm.h.
383 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
384 (data.o): Depend on frame.h.
385 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
386 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
387 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
388 (intervals.o): Depend on keymap.h.
389
9238467d
SM
390 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
391 Add debugging print-out to termscript.
b106731c 392
64b7122d
RS
3932004-09-09 Richard M. Stallman <rms@gnu.org>
394
395 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
396
5670531e
RS
3972004-09-08 Richard M. Stallman <rms@gnu.org>
398
6cb4a892
RS
399 * window.c (Fset_window_buffer): Doc fix.
400
5670531e
RS
401 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
402
7e388eb7
JL
4032004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
404
405 * minibuf.c (history_delete_duplicates): New variable.
406 (read_minibuf): Use it.
407 (syms_of_minibuf): Create the corresponding lisp variable.
408
370e3587
KS
4092004-09-08 Kim F. Storm <storm@cua.dk>
410
411 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
412 overlay just before point.
413
f844ba4e
LT
4142004-09-07 Luc Teirlinck <teirllm@auburn.edu>
415
416 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
417 * buffer.c (reset_buffer, init_buffer_once):
418 Handle auto_save_file_format field.
f844ba4e
LT
419 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
420 `buffer-auto-save-file-format'.
f844ba4e
LT
421 * fileio.c: Delete declaration for removed Vauto_save_file_format.
422 (build_annotations): Adapt to replacement of
423 `auto-save-file-format' with the new buffer-local variable
424 `buffer-auto-save-file-format'.
425 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
426
f0f90717
JR
4272004-09-07 Jason Rumney <jasonr@gnu.org>
428
429 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
430
9238467d
SM
431 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
432 Handle Unicode menu titles.
f0f90717 433
4e14f66c
KS
4342004-09-07 Kim F. Storm <storm@cua.dk>
435
436 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
437 property from text property or overlay strings at point.
438
9238467d 4392004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
440
441 * xmenu.c (update_submenu_strings): YAILOM.
442 (set_frame_menubar): Make sure last_i is initialized.
443
1f06d367
JR
4442004-09-03 Jason Rumney <jasonr@gnu.org>
445
1806714a 446 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
447 (digest_single_submenu): Set lname and lkey in widget_value
448 instead of name and key.
449 (update_submenu_strings): New function.
450 (set_frame_menubar): Remove call to inhibit_garbage_collection,
451 call update_submenu_strings.
452
453 * w32menu.c (globals_of_w32menu): Check for Unicode API.
454 (digest_single_submenu, w32_menu_show): Encode menu strings as
455 UTF-8 if Unicode API is available.
456 (utf8to16): New function.
457 (add_menu_item): Use it when calling Unicode API.
1806714a 458
46540080
KS
4592004-09-03 Kim F. Storm <storm@cua.dk>
460
461 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
462 in overlay or text-property strings; set cursor on corresponding
463 glyph rather than at end of the string.
464
9277ba61 4652004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 466
9277ba61 467 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
468 set a new one before obtaining the global coordinate.
469 Use FRAME_MAC_WINDOW.
470 (x_set_name, x_set_title): Encode title to UTF8.
471 Use SetWindowTitleWithCFString.
9277ba61
ST
472 (Fx_server_version): Get correct OS version.
473
1806714a
SM
474 * macmenu.c (add_menu_item): Remove unused variable `i'.
475 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
476
477 * macterm.c (x_update_end): Move SetPortWindowPort to inside
478 BLOCK_INPUT.
479 (x_set_offset): Use FRAME_MAC_WINDOW.
480
481 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
482 nontext_cursor if it is on a scroll bar.
483
484 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
485 Carbon support.
1806714a
SM
486 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
487 Use LIBS_CARBON.
9277ba61 488
b10daec7
JD
4892004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
490
491 * xfns.c (x_set_name_internal): New function. Check if we shall call
492 xfree before ENCODE_UTF_8.
493 (x_set_name, x_set_title): Call x_set_name_internal.
494
f7e22385
JR
4952004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
496
497 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
498 reload it.
499
2bf436c3
JD
5002004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
501
1806714a 502 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
503 (single_submenu): Set lname and lkey in widget_value
504 instead of name and key.
505 (update_submenu_strings): New function.
506 (set_frame_menubar): Remove call to inhibit_garbage_collection,
507 call update_submenu_strings.
508
2bf436c3
JD
509 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
510 instead of name and key.
511 (update_submenu_strings): New function.
512 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 513 call update_submenu_strings.
2bf436c3
JD
514
515 * gtkutil.h (_widget_value): Added lname and lkey.
516
11715f92
ST
5172004-08-30 Steven Tamm <steventamm@mac.com>
518
519 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
520 by using different names for inner loop variables.
521
5500be54
JD
5222004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
523
059cd329
JD
524 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
525 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
526
5500be54
JD
527 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
528 tool bar items is 0.
529
383418e5
ST
5302004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
531
532 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
533 strings in menu items.
534 (single_submenu): Use ENCODE_MENU_STRING
535 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
536 button release isn't passed to event loop
537 (add_menu_item): Use SetMenuItemWithCFString
538
6eb3ee72
ST
5392004-08-26 Steven Tamm <steventamm@mac.com>
540
541 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
542 tool-bar/menu click
543 * macfns.c (Fx_file_dialog): Implemented using NavServices
544
10b43ac3
JD
5452004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
546
2728b5d0
JD
547 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
548
10b43ac3
JD
549 * xfns.c (x_window_to_frame, x_any_window_to_frame)
550 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
551 (x_top_window_to_frame): Return 0 if wdesc is None.
552
2ee3b79e
RS
5532004-08-22 Richard M. Stallman <rms@gnu.org>
554
555 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
556 HAVE_TERMIOS]: If there's no char for this signal, drop through
557 and use system calls.
558
559 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
560
9a1ba2ea
KS
5612004-08-20 Kim F. Storm <storm@cua.dk>
562
563 * process.c (wait_reading_process_output): Rename from
564 wait_reading_process_input. All uses changed.
565 (wait_reading_process_output_1): Rename from
566 wait_reading_process_input_1. All uses changed.
567
568 * dispnew.c (Fsleep_for): Remove obsolete code.
569
295f3b30
KH
5702004-08-20 Kenichi Handa <handa@m17n.org>
571
572 * syntax.c (skip_chars): Fix for unibyte case.
573
27615979
SM
5742004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
575
576 * syntax.c (char_quoted): Mixup byte/char pos.
577 (back_comment): Fixup globals in all cases.
578
00267f94
JD
5792004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
580
581 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
582 passing it to gtk_window_set_title.
583
2439909e
KS
5842004-08-19 Kim F. Storm <storm@cua.dk>
585
6ba0f14c
KS
586 * process.c (wait_reading_process_input): Clean up.
587 Add wait_for_cell, wait_proc, and just_wait_proc args
588 to avoid overloading `read_kbd' and `do_display' args.
589 Change read_kbd arg to int. All callers changed.
590
2439909e
KS
591 * process.c (process_send_signal): Use CDISABLE.
592
593 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
594
101c421e
KS
5952004-08-18 Kim F. Storm <storm@cua.dk>
596
597 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
598 forward to wait_reading_process_input via DO_DISPLAY arg.
599 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
600 object, only process output from that process; also inhibit
601 running timers if DO_DISPLAY==-2.
602
c438dc33
KS
6032004-08-17 Kim F. Storm <storm@cua.dk>
604
605 * process.c (process_send_signal): Fix last change--use
606 _POSIX_VDISABLE instead of CVDISABLE when available.
607
8afc13c6
RS
6082004-08-16 Richard M. Stallman <rms@gnu.org>
609
610 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
611 Set VQUIT and VINTR chars to the standard ones if they are unset.
612 [AIX]: Don't do that here. And don't force VINTR to standard
613 when SIGNALS_VIA_CHARACTERS.
614
c438dc33 615 * process.c (process_send_signal)
8afc13c6
RS
616 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
617 Do nothing if the character is CVDISABLE.
618
619 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
620
c438dc33 621 * intervals.c (move_if_not_intangible):
8afc13c6
RS
622 Force POSITION to be between BEGV and ZV.
623
6dad1714
JPW
6242004-08-14 John Paul Wallington <jpw@gnu.org>
625
626 * buffer.c (Frestore_buffer_modified_p): Doc fix.
627
628 * fileio.c (Fread_file_name): Doc fix.
629
630 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
631
2bd77330
LT
6322004-08-09 Luc Teirlinck <teirllm@auburn.edu>
633
634 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
635
c90e7e43
LT
6362004-08-08 Luc Teirlinck <teirllm@auburn.edu>
637
638 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 639 Qdisabled_command_hook.
c90e7e43 640 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 641 Qdisabled_command_hook.
c90e7e43
LT
642 (syms_of_keyboard): Ditto.
643
81909a1a
LT
6442004-08-07 Luc Teirlinck <teirllm@auburn.edu>
645
646 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
647 (syms_of_keymap) <key-translation-map>: Doc fixes.
648
0cedd530
SM
6492004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
650
1725a7c9
SM
651 * window.c (window_list_1): YAILOM.
652
0cedd530
SM
653 * fileio.c (make_temp_name): Handle multibyte prefixes.
654
2515a131
LT
6552004-08-06 Luc Teirlinck <teirllm@auburn.edu>
656
657 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
658 Doc fix.
659
c8b20fb7
KH
6602004-08-03 Kenichi Handa <handa@m17n.org>
661
662 * coding.c (decode_coding_string): Adjust coding->consumed, and
663 etc. with shrinked_bytes.
664
fb8b092b
KS
6652004-08-03 Kim F. Storm <storm@cua.dk>
666
667 * indent.c (compute_motion): Fix check for full width window
668 in non-window case. Do not count left truncation glyph on
669 window systems.
670
df133612
LT
6712004-08-02 Luc Teirlinck <teirllm@auburn.edu>
672
673 * data.c (Finteractive_form): Doc fix.
674
0f7a93c1
KS
6752004-08-02 Kim F. Storm <storm@cua.dk>
676
677 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
678 properly accounting for continuation glyph on non-window systems.
679 (Fcompute_motion): Use actual window width if WIDTH is nil, and
680 actual window width/height if TOPOS is nil, properly accounting for
681 continuation glyphs on non-window systems, and optional header lines.
682 (vmotion): Let compute_motion calculate actual window width.
683
684 * window.c (window_scroll_line_based): Let compute_motion
685 calculate actual window width.
686
f491e1ed
KS
6872004-08-02 Kim F. Storm <storm@cua.dk>
688
689 * process.c (read_process_output): Use whole read buffer.
690 Don't trigger adaptive read buffering on errors.
691
83f64226
LT
6922004-07-31 Luc Teirlinck <teirllm@auburn.edu>
693
694 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
695
696 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
697
698 * callint.c (Fcall_interactively): Doc fix.
699
8afc13c6
RS
7002004-07-30 Richard M. Stallman <rms@gnu.org>
701
702 * abbrev.c (Fexpand_abbrev): Undo previous change.
703
7c111482
KS
7042004-07-30 Kim F. Storm <storm@cua.dk>
705
706 * editfns.c (Fformat): Allocate extra (dummy) element in info.
707
ee945d08
LT
7082004-07-28 Luc Teirlinck <teirllm@auburn.edu>
709
710 * eval.c (Fdefvar, Fdefconst): Doc fixes.
711
3f911c94
KS
7122004-07-27 Kim F. Storm <storm@cua.dk>
713
714 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
715 we have ensured that the glyph fits on the current line (or returned
716 MOVE_LINE_CONTINUED otherwise).
717
f29ff8c7
KS
7182004-07-26 Kim F. Storm <storm@cua.dk>
719
720 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
721 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
722 if target position is at end of display line but char is not a newline.
723
81159bb9
RS
7242004-07-25 Richard M. Stallman <rms@gnu.org>
725
ab431b61
RS
726 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
727 instead of ON_VERTICAL_BORDER, when on scroll bar.
728 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
729
730 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
731
f29ff8c7 732 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
733 Take account of FRAME_INTERNAL_BORDER_WIDTH.
734
735 * alloc.c (check_cons_list): New function (contents commented out).
736
fc820cc5
LT
7372004-07-24 Luc Teirlinck <teirllm@auburn.edu>
738
739 * xfaces.c (Fcolor_supported_p): Doc fix.
740
741 * frame.c (Fselect_frame, Fset_frame_selected_window)
742 (Fframe_visible_p, Fraise_frame): Doc fixes.
743
289978b5
LT
7442004-07-24 Richard M. Stallman <rms@gnu.org>
745
7630911d
RS
746 * keyboard.h (not_single_kboard_state): Declared.
747
748 * fileio.c (Fwrite_region): Doc fix.
749
750 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
751
752 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
753 only when a real abbrev is present.
754
289978b5
LT
755 * xfns.c (x_icon_verify): New function.
756 (Fx_create_frame): Use it.
757
63cc10ae
KS
7582004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
759
760 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
761
36f826d4
KS
7622004-07-21 Kim F. Storm <storm@cua.dk>
763
764 * window.h (struct glyph_matrix): New members nrows_scale_factor
765 and ncols_scale_factor.
766
767 * window.c (make_window): Initialize nrows_scale_factor and
768 ncols_scale_factor members.
769
770 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
771 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
772 (required_matrix_height): Apply nrows_scale_factor.
773 (required_matrix_width): Apply ncols_scale_factor.
774
775 * xdisp.c (display_line): Increment nrows_scale_factor and set
776 fonts_changed_p if past last allocated row.
777 (append_glyph, append_composite_glyph, produce_image_glyph)
778 (append_stretch_glyph): Increment ncols_scale_factor and set
779 fonts_changed_p if current area is full.
780
5fc1c546
JD
7812004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
782
783 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
784
cb7516e5
LT
7852004-07-19 Luc Teirlinck <teirllm@auburn.edu>
786
787 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
788 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
789 (Fset_window_start, Fscroll_up, Fscroll_down)
790 (Fother_window_for_scrolling, Fscroll_other_window)
791 (Fsave_window_excursion, Fset_window_vscroll)
792 (syms_of_window) <window-size-fixed>: Doc fixes.
793
dda741ec
JR
7942004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
795
796 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
797 ENCODE_SYSTEM for filenames.
798
bfcf6608
ST
7992004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
800
801 * mac.c (sys_select): Block input around call to
802 ReceiveNextEvent to prevent breakage. Correctly handle
803 blocking on event queue only by calling ReceiveNextEvent
804 instead of select (since GUI events aren't on an fd).
805 (sys_read): Remove function
806 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
807
e082ac9d
ST
8082004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
809
810 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 811 polling instead of 1 sec timeouts (like solaris).
e082ac9d 812
cb7516e5 813 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
814 frame creation.
815
816 * keyboard.c: Undef SIGIO on Carbon
817
818 * atimer.c (alarm_signal_handler): Call alarm handlers after
819 scheduling.
820
821 * eval.c (Feval): Remove quit_char test
822
823 * process.c (wait_reading_process_input): Remove clearing
824 stdin for select call on process input.
825
4b9da0fb
LT
8262004-07-18 Luc Teirlinck <teirllm@auburn.edu>
827
1204e81c
LT
828 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
829 capitalization error in docstring.
4b9da0fb 830
26503ad2
JB
8312004-07-17 Juanma Barranquero <lektu@terra.es>
832
833 * keyboard.c (not_single_kboard_state): Do nothing unless
834 MULTI_KBOARD is defined.
835
3751eb00
RS
8362004-07-17 Richard M. Stallman <rms@gnu.org>
837
838 * window.c (coordinates_in_window): Inside the window but outside
839 its box to the L or R, return ON_VERTICAL_BORDER.
840 (window_list_1): Rotate the list to start with WINDOW.
841
842 * print.c (print_preprocess): Test for print_depth at limit
843 before entering in being_printed.
844
845 * keyboard.c (not_single_kboard_state): New function.
846 (stuff_buffered_input): Now no-op only if no SIGTSTP.
847
848 * frame.c (Fdelete_frame): If we're in single_bboard_state on
849 this kboard, and we delete its last frame, go to any_kboard_state.
850
851 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
852
62eb6ca9
JR
8532004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
854
855 * w32fns.c (Fx_file_dialog): Encode strings in system coding
856 system before passing them to OS functions for display.
857
0f6af254
DK
8582004-07-15 David Kastrup <dak@gnu.org>
859
f9253326
KS
860 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
861 Apparently fixes an abort condition.
0f6af254 862
386c8f42
LT
8632004-07-14 Luc Teirlinck <teirllm@auburn.edu>
864
865 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
866 instead of a cons.
867
366511da
MB
8682004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
869
870 * keyboard.c (echo_dash): Do nothing if there already is a dash
871 at the end of the echo string.
872
f85409d3
KS
8732004-07-12 Kim F. Storm <storm@cua.dk>
874
875 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
876 if GC_MARK_STACK.
877
0ba2e87b
LT
8782004-07-10 Luc Teirlinck <teirllm@auburn.edu>
879
da38045d
LT
880 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
881
0ba2e87b
LT
882 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
883 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
884 (Freplace_buffer_in_windows, Fset_window_buffer)
885 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
886 (syms_of_window): Expand docstring of `display-buffer-function'.
887
5668fbb8
LT
8882004-07-09 Luc Teirlinck <teirllm@auburn.edu>
889
890 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
891 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
892 that time values of the type (HIGH . LOW) are considered obsolete.
893
a085bf9d
LT
8942004-07-06 Luc Teirlinck <teirllm@auburn.edu>
895
669de2fb
LT
896 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
897 docstring.
898
bac66325 899 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 900
8e975df9
JPW
9012004-07-06 John Paul Wallington <jpw@gnu.org>
902
903 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
904
fa164e6a
JPW
905 * fns.c (Fclear_string): Signal an error if STRING is not a string.
906
2bac9bb1
JD
9072004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
908
909 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
910 instead of CGMainDisplayID (only in OSX 10.2 and later).
911
316ef0dc
JPW
9122004-07-04 John Paul Wallington <jpw@gnu.org>
913
914 * fileio.c (read_file_name_completion_ignore_case): New variable.
915 (syms_of_fileio): Declare and initialise it.
916 (Fread_file_name): Bind `completion-ignore-case' to respect it.
917
2a1a35c6
EZ
9182004-07-03 Eli Zaretskii <eliz@gnu.org>
919
920 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
921 for event.x and event.y.
922
33a72331
KH
9232004-07-01 Kenichi Handa <handa@m17n.org>
924
925 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
926 after getting a new string by pre-write-conversion.
927
9238467d 9282004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
929
930 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
931 (x_calc_absolute_position): Remove unused var `child'.
932
933 * xfaces.c (x_supports_face_attributes_p)
934 (Fdisplay_supports_face_attributes_p): YAILOM.
935 (tty_supports_face_attributes_p): Remove unused var `i'.
936
937 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
938 back_unibyte_ok.
939
940 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
941
942 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
943
944 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
945
f96ec754
AS
9462004-06-30 Andreas Schwab <schwab@suse.de>
947
948 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
949 (Finit_image_library): Pass LIBRARIES through to
950 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
951 (lookup_image_type): Pass Qnil as second argument to
952 Finit_image_library.
953
954 * lisp.h: Declare Finit_image_library.
955
59feca74 9562004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 957
31983645
AS
958 * macterm.c (do_window_activate, do_window_deactivate): Remove.
959 (XTread_socket): Send mouse button events to the toolbox
960 dispatcher even when the mouse is grabbed. Don't process window
961 activate events for non-Emacs windows. Replace function calls to
962 do_window_activate and do_window_deactivate with their contents.
963 Reset mouse grabbing status when a window is deactivated.
59feca74 964
c61278bb
ST
9652004-06-29 Steven Tamm <steventamm@mac.com>
966
967 * macterm.c (mac_get_emulated_btn)
968 (mac_event_to_emacs_modifiers): Fix emulated mouse button
969 support to correctly mask out modifiers.
970
c3762cbd
DK
9712004-06-29 David Kastrup <dak@gnu.org>
972
973 * search.c (Fset_match_data): Allow buffer before end of list
974 which can happen if set-match-data is using a pre-consed list.
975
c61278bb 9762004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
977
978 * macterm.c (XTread_socket): Correctly set the frame position
979 after the window is moved.
980
74cdfe05
JD
9812004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
982
983 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
984 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
985 (xg_get_image_for_pixmap): Add workaround for monochrome displays
986 so insensitive and activated icons look ok.
74cdfe05 987
ef544dc8
JR
9882004-06-27 Jason Rumney <jasonr@gnu.org>
989
990 * w32fns.c (file_dialog_callback): Disable edit control if set
991 to directories only on CDN_INITDONE message.
992 (Fx_file_dialog): Default to directories only when prompt starts
993 with "Dired".
994
7b7990cc
KS
9952004-06-25 Kim F. Storm <storm@cua.dk>
996
997 * alloc.c (allocate_misc): Update total_free_markers.
998 (free_misc): New function.
999 (safe_alloca_unwind, free_marker): Use it.
1000
1001 * lisp.h (free_misc): Add prototype.
1002
1003 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
1004
d8c379f8
RS
10052004-06-24 Richard M. Stallman <rms@gnu.org>
1006
1007 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
1008 (syms_of_emacs): Lisp variables deleted.
1009
559cdd07
DK
10102004-06-23 David Kastrup <dak@gnu.org>
1011
94939b84
DK
1012 * search.c (Freplace_match): Adjust the match-data more thoroughly
1013 when replacing strings in the buffer.
1014 (Fmatch_data): When INTEGERS is non-nil and the last match was in
1015 a buffer, add the buffer as last element to the match data.
1016 (Fset_match_data): If an additional element of the match-data is a
1017 buffer, restore it to last_thing_searched.
c8d09ad8 1018 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
1019 (restore_match_data): Restore it again.
1020
dce417e7
LT
10212004-06-23 Luc Teirlinck <teirllm@auburn.edu>
1022
1023 * keymap.c (Ftext_char_description): Doc fix.
1024 * doc.c (Fsnarf_documentation): Doc fix.
1025
ef54b2d0
KS
10262004-06-22 Kim F. Storm <storm@cua.dk>
1027
b5bc4d05
KS
1028 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
1029
ef54b2d0
KS
1030 * lisp.h (struct Lisp_Save_Value): New member dogc.
1031 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
1032 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
1033 (SAFE_FREE_LISP): New macro.
1034
1035 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
1036 (make_save_value): Init new dogc member.
1037 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
1038
1039 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
1040 SAFE_FREE_LISP macros.
1041
3d33d993
KS
10422004-06-22 Kim F. Storm <storm@cua.dk>
1043
1044 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
1045 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
1046 in that memory area are unknown to GC. Add comments.
1047
1048 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
1049
5c917f98
KS
10502004-06-21 Kim F. Storm <storm@cua.dk>
1051
1052 * lisp.h (MAX_ALLOCA): Define here.
1053 (safe_alloca_unwind): Add prototype.
1054 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
1055
1056 * alloc.c (safe_alloca_unwind): New function.
1057
1058 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
1059
1060 * charset.c (Fstring): Use SAFE_ALLOCA.
1061
1062 * coding.c (MAX_ALLOCA): Remove define.
1063
1064 * data.c (MAX_ALLOCA): Remove define.
1065 (Faset): Use SAFE_ALLOCA.
1066
1067 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
1068
1069 * fns.c (string_make_multibyte, string_to_multibyte)
1070 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
1071 (MAX_ALLOCA): Remove define.
1072 (Fbase64_encode_region, Fbase64_encode_string)
1073 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
1074 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
1075 memory leak if encoding fails.
1076
1077 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
1078
9a09408e
EZ
10792004-06-21 Eli Zaretskii <eliz@gnu.org>
1080
1081 * print.c (Fwith_output_to_temp_buffer): Doc fix.
1082
376de739
RS
10832004-06-20 Richard M. Stallman <rms@gnu.org>
1084
1085 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
1086
1087 * search.c (match_limit): Cleaner err msg when no match data available.
1088
1089 * window.c (syms_of_window): Doc fix.
1090
1091 * keyboard.c (command_loop_1): Handle values `only' and `identity'
1092 for Vtransient_mark_mode.
1093
1094 * buffer.c (syms_of_buffer): Doc fix.
1095
acd81db9
DK
10962004-06-21 David Kastrup <dak@gnu.org>
1097
1098 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
1099 and unbinding of `case-fold-search' according to
1100 `completion-ignore-case' around calls of string-match and
1101 predicates, respectively. Should give satisfactory performance
1102 in all relevant cases.
1103
f303762d
JD
11042004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1105
95911c74
JD
1106 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
1107 clip_x/y_origin.
1108
a6cb6b78
JD
1109 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
1110
f303762d
JD
1111 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
1112
1113 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
1114 on Mac OSX.
1115
bbdb2684
LT
11162004-06-16 Luc Teirlinck <teirllm@auburn.edu>
1117
1118 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
1119
5ea48b1c
KS
11202004-06-16 Kim F. Storm <storm@cua.dk>
1121
1122 * dispextern.h (Vimage_types): Remove extern.
1123
803aac3e
MB
11242004-06-16 Miles Bader <miles@gnu.org>
1125
1126 * image.c (lookup_image_type): Initialize image type if necessary.
1127
cdc97764
KS
11282004-06-15 Kim F. Storm <storm@cua.dk>
1129
c4a5739c
KS
1130 * xdisp.c (try_cursor_movement): Exclude header line from scroll
1131 margin at top of window.
1132 (try_window_reusing_current_matrix): Calculate proper cursor position
1133 after scrolling up with non-zero scroll margin, as the old cursor
1134 position corresponds to value of PT before executing this command.
1135 (try_window_id): Consider scroll margin at bottom of window too;
1136 otherwise we fail to scroll when hl-line-mode is enabled.
1137
cdc97764
KS
1138 * syntax.c (skip_chars): Only recognize [:class:] when it has the
1139 proper format and class is a lower-case word.
1140
5b166323
JD
11412004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1142
1143 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 1144 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
1145 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
1146 xg_get_gdk_pixmap_and_mask.
cdc97764 1147
5b166323
JD
1148 * xterm.h (struct x_display_info): Typo in comment fixed.
1149
1ebd4f78
JB
11502004-06-14 Juanma Barranquero <lektu@terra.es>
1151
1152 * dispextern.h (Vimage_types): Make it conditional on
1153 HAVE_WINDOW_SYSTEM.
1154
1155 * image.c (Vimage_types): Move from xdisp.c.
1156 (Vimage_type_cache): New variable.
1157 (define_image_type): New argument indicating whether an image
1158 library was loaded; cache loaded status and return t on success,
1159 nil otherwise.
1160 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
1161 (w32_delayed_load): New function to load an image library from a
1162 list of possible filenames.
1163 (init_xpm_functions, init_png_functions, init_jpeg_functions)
1164 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 1165 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
1166 (Finit_image_library): New function, extracted from `init_image'.
1167 Try to initialize an image library on demand and cache whether we
1168 were successful or not.
1169 (syms_of_image): Initialize `Vimage_types' and
1170 `Vimage_type_cache'. Add recognized image types to Vimage_types.
1171 Export `init-image-library'.
1172 (init_image): Remove initialization of all image types, except xbm
1173 and pbm.
1174
1175 * xdisp.c (Vimage_types): Delete (moved to image.c).
1176
904ee128
AS
11772004-06-14 Andreas Schwab <schwab@suse.de>
1178
1179 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1180 Avoid calling specbind when completion-regexp-list is empty.
1181
092de21d
RS
11822004-06-13 Richard M. Stallman <rms@gnu.org>
1183
1184 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1185 (re_wctype, re_iswctype, re_wctype_to_bit):
1186 Non-function definitions moved here from regex.c.
1ebd4f78 1187
092de21d
RS
1188 * regex.c (re_wctype, re_iswctype): Function defs longer static.
1189 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1190 (re_wctype, re_iswctype, re_wctype_to_bit):
1191 Non-function definitions moved to regex.h.
1192
1193 * window.c (Fselect_window): Doc fix.
1194
1195 * syntax.c: Include regex.h.
1196 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
1197 If requested, make a list of classes, then check the scanned
1198 chars for membership in them.
1199 (in_classes): New function.
1200 Doc fix.
1201
1202 * keyboard.c (cmd_error): Don't call any_kboard_state
1203 if inside a recursive edit level.
1204
12052004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
1206
1207 * keyboard.c (command_loop): Call any_kboard_state before
1208 command_loop_2 when at top level.
1209
3ebc0939
AS
12102004-06-13 Andreas Schwab <schwab@suse.de>
1211
cea5d0d4
AS
1212 * print.c (print_object): Always use %ld for printing EMACS_INT.
1213
1214 * keyboard.c (cancel_hourglass_unwind): Return a value.
1215 (modify_event_symbol): Always use %ld for printing EMACS_INT.
1216 (Fexecute_extended_command): Likewise.
1217
1218 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
1219 avoid clashes.
1220 (SYNTAX): Likewise.
1221 (SYNTAX_WITH_FLAGS): Likewise.
1222 (SYNTAX_MATCH): Likewise.
1223
1224 * syntax.c (char_quoted): Avoid warning about undefined operation.
1225 (find_defun_start): Likewise.
1226 (scan_lists): Likewise.
1227 (INC_FROM): Likewise.
1228 (scan_sexps_forward): Likewise.
1229
be8c4ce4
AS
1230 * image.c: Include <ctype.h>.
1231
3ebc0939
AS
1232 * xfaces.c (face_attr_equal_p): Declare parameters.
1233
6fb41b5b
KH
12342004-06-13 Kenichi Handa <handa@m17n.org>
1235
1236 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
1237
fc3095ce
EZ
12382004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
1239
1240 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
1241
66189a40
KH
12422004-06-12 Kenichi Handa <handa@m17n.org>
1243
1244 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
1245 ccl_prog_stack_struct and update it.
1246 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
1247 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
1248 ccl->eof_ic on EOF.
1249 (ccl_debug_hook): New function.
1250 (struct ccl_prog_stack): New member eof_ic.
1251 (ccl_driver): Handle EOF in subrountine call correctly.
1252
12532004-06-11 Kenichi Handa <handa@m17n.org>
1254
1255 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
1256
1da71023
KS
12572004-06-11 Kim F. Storm <storm@cua.dk>
1258
1259 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
1260
e9efcef4
JB
12612004-06-11 Juanma Barranquero <lektu@terra.es>
1262
1263 * keyboard.c (Fposn_at_point): Doc fix.
1264
9b9ceb61
DK
12652004-06-11 David Kastrup <dak@gnu.org>
1266
1267 * search.c (match_limit): Don't flag an error if match-data
1268 exceeding the allocated search_regs.num_regs gets requested, just
1269 return Qnil.
1270
6e87ac8f
MB
12712004-06-08 Miles Bader <miles@gnu.org>
1272
1273 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
1274
0b0dea7b
JB
12752004-06-07 Juanma Barranquero <lektu@terra.es>
1276
1277 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
1278 (Fcurrent_time_string, Fcurrent_time_zone)
1279 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
1280
a0a23346
MB
12812004-06-07 Miles Bader <miles@gnu.org>
1282
08384afd 1283 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
1284 (push_named_merge_point): New function.
1285 (merge_named_face): New function.
1286 (merge_face_ref, face_at_buffer_position, face_at_string_position):
1287 Use `merge_named_face'.
1288 (merge_face_inheritance): Function removed.
c8d09ad8 1289 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
1290 Add new `err_msgs' and `named_merge_points' args. Return error
1291 status. Only print error messages if ERR_MSGS is true. Don't try to
1292 do :inherit attribute validation.
1293 (merge_face_heights): Handle `unspecified' in both directions.
1294 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
1295 Call `merge_face_ref' instead of `merge_face_inheritance'.
1296 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
1297 (compute_char_face, face_at_buffer_position)
1298 (face_at_string_position): Call `merge_face_ref' instead of
1299 `merge_face_vector_with_property'.
1300
12d5b185
KH
13012004-06-07 Kenichi Handa <handa@m17n.org>
1302
1303 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
1304 the necessary places.
1305
2e2d7ee6
KS
13062004-06-07 Kim F. Storm <storm@cua.dk>
1307
1308 * process.c (Fdelete_process): Undo 2004-05-28 change.
1309 Instead, call status_notify also for network process.
1310 (status_message): Use process instead of status as arg.
1311 Give messages "deleted" or "connection broken by remote peer" for
1312 an exited network process.
1313 (status_notify): Change call to status_message.
1314 (read_process_output): Increase readmax to 4096. Do not increase
1315 buffer size for datagram channels (default is now large enough).
1316
fcf0d299
ST
13172004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1318
1319 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
1320 problem due to newly defined variable.
1321
0722292b
MB
13222004-06-06 Miles Bader <miles@gnu.org>
1323
1324 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
1325 immediately if non-interactive or not initialized.
1326
ddfb8369
RS
13272004-06-05 Richard M. Stallman <rms@gnu.org>
1328
1329 * minibuf.c (Fcompleting_read): Doc fix.
1330
57015754
AS
13312004-06-05 Andreas Schwab <schwab@suse.de>
1332
1333 * macfns.c (x_create_tip_frame): Fix declaration after statement.
1334
23715ea6
JB
13352004-06-05 Juanma Barranquero <lektu@terra.es>
1336
1337 * keymap.c (Fdescribe_vector): Fix docstring.
1338 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
1339
8e330b22
MB
13402004-06-05 Miles Bader <miles@gnu.org>
1341
1342 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
1343 attributes have different values than the default face.
1344
9742a3a6
EZ
13452004-06-04 Eli Zaretskii <eliz@gnu.org>
1346
1347 * xfaces.c (x_supports_face_attributes_p): Make this function
1348 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
1349 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
1350 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 1351
9717e36c
MB
13522004-06-04 Miles Bader <miles@gnu.org>
1353
1354 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
1355 from Ftty_supports_face_attributes_p.
1356 (x_supports_face_attributes_p): New function.
1357 (Ftty_supports_face_attributes_p): Function deleted.
1358 (Fdisplay_supports_face_attributes_p): New function.
1359 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 1360 (face_attr_equal_p): New function.
9717e36c
MB
1361 (lface_equal_p): Use it.
1362
52deb19f
JB
13632004-06-03 Juanma Barranquero <lektu@terra.es>
1364
1365 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
1366 (Vw32_color_map): Fix typo in docstring.
1367 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
1368 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
1369 Make argument names match their use in docstring.
1370
86d373e6
JB
13712004-06-02 Juanma Barranquero <lektu@terra.es>
1372
1373 Work around bugs/problems with MinGW builds of graphics libraries
1374 called from MSVC builds of Emacs.
1375
1376 * image.c (lookup_image): Make pointer to img static.
1377 (png_read_from_memory): Disable "global" optimization.
1378
2fb0ce67
SM
13792004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1380
c8d09ad8
SM
1381 * eval.c (Fcondition_case): Fix usage. Simplify.
1382
2fb0ce67
SM
1383 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
1384
50bf7673
ST
13852004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1386
1387 * macfns.c: Don't include ccl.h.
1388 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
1389 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
1390 TextUtils.h.
c8d09ad8 1391 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
1392 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
1393 display height/width.
1394 (compute_tip_xy, Vx_max_tooltip_size): Declare.
1395 (unwind_create_tip_frame, compute_tip_xy): New functions.
1396 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
1397 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
1398 and last_show_tip_args.
2fb0ce67 1399
50bf7673
ST
1400 * macgui.h [!MAC_OSX]: Include Gestalt.h.
1401 (Cursor, No_Cursor): New defines.
c8d09ad8 1402 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
1403 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
1404
1405 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
1406
1407 * macterm.c: Don't include Gestalt.h.
1408 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
1409 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
1410 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
1411 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
1412 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
1413 (construct_mouse_click, XTmouse_position)
1414 (x_scroll_bar_report_motion, x_calc_absolute_position)
1415 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
1416 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
1417 (note_mouse_movement): Clear the mouse face and reset the pointer
1418 shape when the pointer goes outside the frame without grabbing.
1419 (mac_front_window): New function.
1420 (mac_window_to_frame): New macro.
1421 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
1422 (do_window_activate, do_window_deactivate, do_app_resume)
1423 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
1424 (do_zoom_window, mac_do_receive_drag, XTread_socket)
1425 (mac_check_for_quit_char): Use mac_front_window and/or
1426 mac_window_to_frame.
1427 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
1428 scroll-bar click event.
1429 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 1430 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 1431 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 1432 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
1433 (do_window_update): Don't do anything if the updated window is the
1434 tooltip window.
1435 (do_mouse_moved): Handle mouse movement events here (previously in
1436 XTread_socket). Clear the mouse face if
1437 dpyinfo->mouse_face_hidden is set.
1438 (do_os_event, do_events): Remove (now in XTread_socket).
1439 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
1440 Loop until all the events in the queue are processed.
1441 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
1442 contents of do_os_event and do_events. Remove mouse movement
1443 handling (now in do_mouse_moved). Add the case where
1444 Vmouse_highlight has an integer value.
1445 (NewMacWindow): Remove.
1446 (make_mac_frame): Do what NewMacWindow previously did. Don't do
1447 excess initializations.
1448 (make_mac_terminal_frame): Previous initializations in
1449 make_mac_frame are moved here.
c8d09ad8
SM
1450 (mac_initialize_display_info):
1451 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
1452
1453 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
1454 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
1455
08fd1251
RS
14562004-05-29 Richard M. Stallman <rms@gnu.org>
1457
1458 * lisp.h (truncate_undo_list): Update decl.
1459
1460 * alloc.c (undo_outer_limit): New variable.
1461 (syms_of_alloc): Defvar it.
1462 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
1463
1464 * undo.c (truncate_undo_list): New arg LIMITSIZE.
1465
1466 * alloc.c (lisp_align_malloc): Check for base == 0
1467 regardless of HAVE_POSIX_MEMALIGN.
1468 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
1469
227ef0ff
SM
14702004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1471
1472 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
1473 (marker_blocks_pending_free): Remove.
1474 (Fgarbage_collect): Sweep after cleaning up undo-lists.
1475 Mark the undo lists after claning them up.
1476 Don't free block in marker_blocks_pending_free.
1477 (mark_buffer): Don't mark undo_list.
1478 (gc_sweep): Sweep hash-tables and strings first.
1479 Do free marker blocks that are empty.
1480
034a6113
SM
14812004-05-28 Jim Blandy <jimb@redhat.com>
1482
1483 * regex.c (print_partial_compiled_pattern): Add missing 'break'
1484 after 'case wordend'. For symbeg and symend, print to stderr,
1485 like the other cases.
1486
33594a8d
NF
14872004-05-28 Noah Friedman <friedman@splode.com>
1488
1489 * process.c (Fdelete_process): Do not call remove_process.
1490
ce50a847
SM
14912004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1492
1493 * alloc.c (struct backtrace): Remove.
1494 (Fgarbage_collect): Use the new mark_backtrace.
1495
1496 * eval.c (mark_backtrace): New function.
1497
1498 * minibuf.c (run_exit_minibuf_hook): New function.
1499 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
1500 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
1501
1e8dae36
KS
15022004-05-27 Kim F. Storm <storm@cua.dk>
1503
1504 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
1505 over display properties, e.g. images, that replace buffer text.
1506
846faa3b
KS
15072004-05-25 Kim F. Storm <storm@cua.dk>
1508
1509 * alloc.c (marker_blocks_pending_free): New var.
1510 (gc_sweep): Store free marker blocks on that list.
1511 (Fgarbage_collect): Free them after undo-list cleanup.
1512
1513 * process.c (wait_reading_process_input): Check connect_wait_mask
1514 before actually accepting connection in case it has already been
1515 accepted due to recursion.
1516
6239a668
KH
15172004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
1518
ce50a847
SM
1519 * coding.c (Fset_safe_terminal_coding_system_internal):
1520 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 1521
71d5a208
RS
15222004-05-22 Richard M. Stallman <rms@gnu.org>
1523
1524 * alloc.c (Fmake_string): Doc fix.
1525
1526 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
1527 and the alist pairs too.
1528
1529 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
1530
1531 * emacs.c (main): Update copyright year.
1532
1533 * fileio.c (Fread_file_name): Expand DIR if not absolute.
1534
1535 * insdel.c (del_range_2, replace_range): Don't write an anchor
1536 if the gap is empty.
1537
1538 * xdisp.c (try_scrolling): If scroll-up-aggressively or
1539 scroll-down-aggressively is small but positive, put point
1540 near the screen edge.
1541
f63fd14e
JB
15422004-05-22 Juanma Barranquero <lektu@terra.es>
1543
1544 * keymap.c (Fdefine_key): Doc fix.
1545
4d12067c
KS
15462004-05-22 Kim F. Storm <storm@cua.dk>
1547
1548 * alloc.c (struct backtrace): Add debug_on_exit member.
1549 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
1550 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
1551 the removed cons cells.
1552 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
1553 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
1554 any cons cells pointing to unallocated stings.
1555 Do not lisp_free any marker blocks, as there may still be pointers
1556 to them from buffer undo lists at this stage of GC.
1557
1558 * keyboard.c (struct backtrace): Add debug_on_exit member.
1559 (Fcommand_execute): Clear it.
1560
931285e2
LT
15612004-05-20 Luc Teirlinck <teirllm@auburn.edu>
1562
1563 * intervals.c (lookup_char_property): Do not prematurely return nil.
1564
669fa600
SM
15652004-05-19 Jim Blandy <jimb@redhat.com>
1566
1567 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 1568 beginning and end of symbols.
4d12067c 1569
669fa600
SM
1570 * regex.c (enum syntaxcode): Add Ssymbol.
1571 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
1572 (re_opcode_t): New opcodes `symbeg' and `symend'.
1573 (print_partial_compiled_pattern): Print the new opcodes properly.
1574 (regex_compile): Parse the new operators.
ce50a847 1575 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
1576 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
1577 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
1578 (re_match_2_internal): Match symbeg and symend.
1579
1580 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
1581
0d8c2e5c
KS
15822004-05-19 Kim F. Storm <storm@cua.dk>
1583
1584 * .gdbinit (xsymbol): Fix last change.
1585
669fa600
SM
15862004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
1587
1588 * .gdbinit (xprintstr): New fun.
1589 (xstring, xprintsym): Use it.
1590
1591 * w32proc.c (create_child): Use INTMASK.
1592
1593 * alloc.c (Fgarbage_collect): Do all the marking before flushing
1594 unmarked elements of the undo list.
1595
9a6a4c40
DP
15962004-05-18 David Ponce <david@dponce.com>
1597
1598 * print.c (print): Reset print_depth before to call print_object.
1599
f3c4ec74
JR
16002004-05-18 Jason Rumney <jasonr@gnu.org>
1601
1602 * w32console.c: Prefix RIF functions with w32con_ to avoid
1603 namespace clash with functions in term.c and w32term.c.
1604
1605 * w32menu.c (add_menu_item, w32_menu_display_help)
1606 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
1607
0d8c2e5c 1608 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 1609
6be49c3a
EZ
16102004-05-18 Eli Zaretskii <eliz@gnu.org>
1611
4d0b9a0a
EZ
1612 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
1613
6be49c3a
EZ
1614 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
1615 with make_number.
1616 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
1617 with XINT.
1618
0bc90bba
KS
16192004-05-18 Kim F. Storm <storm@cua.dk>
1620
89d19988
KS
1621 * blockinput.h (INPUT_BLOCKED_P): New macros.
1622
1623 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
1624 (Ftop_level): Unblock input if blocked.
1625
0bc90bba
KS
1626 * buffer.h (GET_OVERLAYS_AT): New macro.
1627 * msdos.c (IT_note_mouse_highlight): Use it.
1628 * textprop.c (get_char_property_and_overlay): Use it.
1629 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
1630 * xfaces.c (face_at_buffer_position): Use it.
1631
1632 * print.c (print_object): Increase buf size.
1633
653bd0f6
JR
16342004-05-17 Jason Rumney <jasonr@gnu.org>
1635
1636 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
1637 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
1638 Lisp_Object using i member.
1639 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
1640 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
1641 consistently.
1642
1643 * w32proc.c (create_child): Use make_number instead of masking pid.
1644
1645 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
1646 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
1647 Use EQ to compare Lisp_Objects.
1648 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
1649
1650 * w32term.c (w32_num_mouse_buttons): Rename from
1651 Vw32_num_mouse_buttons and make it an int.
1652
1653 * w32.c (init_environment): Use it.
1654
1655 * w32fns.c (w32_wnd_proc): Likewise.
1656
1657 * w32proc.c (w32_pipe_read_delay): Rename from
1658 Vw32_pipe_read_delay and make it an int.
1659
1660 * w32.c (_sys_read_ahead): Use it.
1661
1662 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
1663
1664 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
1665
1666 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
1667 (key_event): Don't mix Lisp_Object and int.
1668
1669 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
1670
1671 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
1672 modifiers in language change event.
1673
54b53ba7
KS
16742004-05-17 Kim F. Storm <storm@cua.dk>
1675
1676 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
1677 Such objects may be freed markers which still exist on an undo list.
1678
6e86a75d
JB
16792004-05-16 Juanma Barranquero <lektu@terra.es>
1680
1681 * data.c (Fset_default): Make argument names match their use in
1682 docstring.
1683
fc80da24
AS
16842004-05-15 Andreas Schwab <schwab@suse.de>
1685
1686 * emacs.c (gdb_array_mark_flag): Define.
1687 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
1688
c1380aa6
EZ
16892004-05-15 Eli Zaretskii <eliz@gnu.org>
1690
1691 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1692 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1693 defined for the MS-DOS build.
1694
89458937
SM
16952004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1696
1697 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1698
08020f9a
KH
16992004-05-14 Kenichi Handa <handa@m17n.org>
1700
1701 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1702
a433994a
ST
17032004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1704
1705 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1706 section to frame.c section.
1707 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 1708 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 1709
a433994a 1710 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 1711
a433994a 1712 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 1713
a433994a
ST
1714 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1715 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1716 (XTread_socket): Fix int/Lisp_Object mixup.
1717 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 1718
a433994a
ST
1719 * macterm.h (struct frame, struct face, struct image)
1720 (display_x_get_resource, Fx_display_color_p)
89458937
SM
1721 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
1722 Add prototypes.
a433994a 1723
b51a51b9
KS
17242004-05-14 Kim F. Storm <storm@cua.dk>
1725
1726 * process.c (wait_reading_process_input): Make reentrant.
1727 Make Available and Connecting non-static. Save and restore value
1728 of waiting_for_user_input_p.
1729
2bde1dd8
KS
17302004-05-13 Kim F. Storm <storm@cua.dk>
1731
1732 * keyboard.c (mark_kboards): Don't mark x and y members
1733 that are overloaded in selection request events.
1734
a267ab4d
SM
17352004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1736
1737 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
1738
eb15ce9e
GM
17392004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
1740
1741 * window.c (Fdisplay_buffer, Fsplit_window)
1742 (split-height-threshold): Doc fix.
1743
7fc92635
JB
17442004-05-13 Juanma Barranquero <lektu@terra.es>
1745
1746 * xfaces.c (Ftty_supports_face_attributes_p)
1747 (Finternal_copy_lisp_face): Fix typo in docstring.
1748 (Finternal_get_lisp_face_attribute): Fix docstring.
1749
1ec2a572
JD
17502004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1751
1752 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
1753
ae9292e0
ST
17542004-05-11 Steven Tamm <steventamm@mac.com>
1755
1756 * macfns.c (Fx_create_frame): Default to using tool-bar by
1757 setting tool-bar-lines to 1 in default-frame-alist.
1758
17592004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
1760
1761 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
1762 (xpm_get_color_table_v, xpm_make_color_table_h)
1763 (xpm_put_color_table_h, xpm_get_color_table_h)
1764 (xpm_str_to_color_key, xpm_load_image, xpm_load)
1765 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 1766 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 1767
fe97e8df
ST
17682004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1769
a267ab4d 1770 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
1771 instead of FRAME_X_P
1772
b47e779e
KS
17732004-05-11 Kim F. Storm <storm@cua.dk>
1774
1775 * process.c (read_process_output): Grow decoding_buf when needed;
1776 this could cause a crash in allocate_string and compact_small_strings.
1777
cdc9b845
EZ
17782004-04-29 Jim Blandy <jimb@redhat.com>
1779
1780 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
1781 against proper opcode.
1782
aa7094ba
JB
17832004-05-10 Juanma Barranquero <lektu@terra.es>
1784
1785 * process.c (Fstart_process): Fix docstring.
1786
1787 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
1788 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
1789 (Fsplit_char, Fchar_charset): Make argument names match their use
1790 in docstring.
1791
e109331a
RS
17922004-05-10 Richard M. Stallman <rms@gnu.org>
1793
1794 * print.c (print_preprocess): Use being_printed, loop_count and
1795 halftail to detect overdeep nesting and cyclic cdr chains.
1796
9a28b921
AS
17972004-05-10 Andreas Schwab <schwab@suse.de>
1798
1799 * lisp.h: Declare Fmake_symbolic_link.
1800
1801 * fileio.c (Frename_file): Remove extra argument in call to
1802 Fmake_symbolic_link.
1803
e2c02c1a
KS
18042004-05-10 Kim F. Storm <storm@cua.dk>
1805
1806 * xdisp.c (calc_line_height_property): Use string position when
1807 object is a string.
1808
cfe9d13e
KH
18092004-05-10 Kenichi Handa <handa@m17n.org>
1810
a57e8159
KH
1811 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
1812 inhibit-modification-hooks to t temporarily before calling
1813 Ferase_buffer.
1814
1815 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
1816 inhibit-modification-hooks to t temporarily before calling
1817 Ferase_buffer.
1818
1819 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
1820 inhibit-modification-hooks to t temporarily before calling
1821 Ferase_buffer.
1822
cfe9d13e
KH
1823 * fns.c (count_combining): Delete it.
1824 (concat): Don't check combining bytes.
1825
ceb96489
JR
18262004-05-09 Jason Rumney <jasonr@gnu.org>
1827
1828 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
1829 (globals_of_w32fns): Set it.
1830
b1c661c7
JB
18312004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
1832
1833 * data.c (Fquo): Simplify.
1834
28712a21
JB
18352004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
1836
1837 * data.c (Fquo): If any argument is float, do the computation in
1838 floating point.
1839
0f0af7a8
JB
18402004-05-08 Juanma Barranquero <lektu@terra.es>
1841
88214ef6
JB
1842 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
1843 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
1844 Fix spelling of Emacs on docstring.
1845 (Fset_process_coding_system, Fprocess_coding_system)
1846 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
1847 Make argument names match their use in docstring.
1848 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
1849 Fix docstring.
1850
0f0af7a8
JB
1851 * editfns.c (Finsert_buffer_substring): Make argument names match their
1852 use in docstring.
1853
1854 * syntax.c (Fmodify_syntax_entry): Fix docstring.
1855
2a316a84
ST
18562004-05-07 Steven Tamm <steventamm@mac.com>
1857
1858 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
1859 around call to ReceiveEvent to avoid certain crashes.
1860
18612004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 1862
2a316a84
ST
1863 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
1864 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
1865 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
1866 Save/restore the current graphics port and device handle when
1867 drawing into an offscreen graphics world.
1868
1869 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
1870 (gif_load): Likewise.
1871
ab80314b
JB
18722004-05-07 Juanma Barranquero <lektu@terra.es>
1873
1874 * window.c (Fset_window_buffer): Fix docstring.
1875
70646bb5
TTN
18762004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
1877
1878 * emacs.c (main) [VMS]: Fix var ref.
1879
b03a4fdd
JB
18802004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
1881
1882 * data.c (Fsetq_default): Fix docstring.
1883
279d3293
JR
18842004-05-06 Jason Rumney <jasonr@gnu.org>
1885
1886 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
1887 to avoid name clash.
1888
f72b5416
JD
18892004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1890
1891 * fileio.c (barf_or_query_if_file_exists): Use lstat.
1892 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 1893 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 1894
6ab66799
KS
18952004-05-04 Kim F. Storm <storm@cua.dk>
1896
1897 * xdisp.c (Qtotal): New var.
1898 (syms_of_xdisp): Intern and staticpro it.
1899 (calc_line_height_property): New arg total. Set it if
1900 line-spacing property has format (total . VALUE).
1901 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
1902 Handle total line-spacing property.
1903
ab2d724b
JD
19042004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1905
1906 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
1907 "under" scroll bar when size/position changes.
1908
238add5e
JR
19092004-05-03 Jason Rumney <jasonr@gnu.org>
1910
1911 * makefile.nt: Remove.
1912
1644f4e4
EZ
19132004-05-02 Eli Zaretskii <eliz@gnu.org>
1914
a267ab4d
SM
1915 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
1916 Avoid compiler warnings.
05fdbeb8 1917
1644f4e4
EZ
1918 * Makefile.in (region-cache.o): Depend on config.h.
1919
6cbc951e
SM
19202004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
1921
1922 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
1923 with continuation lines, too.
1924
2b98b088
TTN
19252004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
1926
1927 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
1928
d9bf7950
SM
19292004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
1930
1931 * xdisp.c (calc_line_height_property): YAILOM (yet another
1932 int/Lisp_Object mixup).
1933
affa509c
EZ
19342004-05-01 Eli Zaretskii <eliz@gnu.org>
1935
1936 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
1937 undo bad effect of pack(4) in some versions of system headers.
1938
07c07cfe
JR
19392004-05-01 Jason Rumney <jasonr@gnu.org>
1940
1941 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
1942
e71caa4e
KS
19432004-04-30 Kim F. Storm <storm@cua.dk>
1944
1945 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 1946 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
1947
1948 * dispextern.h (struct it): Remove member use_default_face.
1949 Add members override_ascent, override_descent, override_boff.
1950
1951 * xdisp.c (init_iterator): Handle line-spacing float value.
1952 Initialize override_ascent member.
1953 (append_space_for_newline): Reset override_ascent.
1954 Remove use_default_face.
1955 (calc_line_height_property): New function to calculate value of
1956 line-height and line-spacing properties. Look at overlays, too.
1957 Set override_ascent, override_descent, override_boff members when
1958 using another face than the current face. Float values are now
1959 relative to the frame default font, by default; accept a cons
1960 of ratio and face name to specify value relative to a specific face.
1961 (x_produce_glyphs): Use calc_line_height_property.
1962 Use override_ascent etc. when set to handle different face heights.
1963 A negative line-spacing property value is interpreted as a total
1964 line height, rather than inter-line spacing.
1965 (note_mouse_highlight): Allocate room for 40 overlays initially.
1966
0fddae66
SM
19672004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1968
1969 * data.c (Fsubr_name): New fun.
1970 (syms_of_data): Defsubr it.
1971
712d23dc
KS
19722004-04-29 Kim F. Storm <storm@cua.dk>
1973
1974 * xdisp.c (null_glyph_slice): New var.
1975 (append_glyph, append_composite_glyph, append_stretch_glyph):
1976 Use it to initialize glyph slice.
1977
033ad8c6
SM
19782004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
1979
1980 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
1981 (on_hot_spot_p): Make sure we always return a value.
1982 (Flookup_image_map): Remove unused var ix and iy.
1983 (note_mode_line_or_margin_highlight): Remove unused var `image'.
1984
93397360
EZ
19852004-04-27 Eli Zaretskii <eliz@gnu.org>
1986
1987 * msdos.c (init_environment): If one of the TMP... environment
1988 variables is set to a drive letter without a trailing slash,
1989 append a slash.
1990
0c54865e
EZ
19912004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
1992
1993 * editfns.c (lisp_time_argument): Provide externally.
1994
1995 * fileio.c (Fset_file_times): New function.
1996 (syms_of_fileio): Intern and staticpro it.
1997
d3b111bd
KS
19982004-04-27 Kim F. Storm <storm@cua.dk>
1999
07dc1231
KS
2000 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
2001 header line strings.
2002
360fe9d2
KS
2003 * dispextern.h (struct it): New member use_default_face.
2004
d3b111bd
KS
2005 * xdisp.c (Qline_height): New variable.
2006 (syms_of_xdisp): Intern and staticpro it.
2007 (append_space_for_newline): Partially undo 2004-04-25 change;
2008 add default_face_p arg, and restore callers.
2009 Clear it->use_default_face after use.
2010 (x_produce_glyphs): Set default font for ascii char if
2011 it->use_default_font is set. Change line-spacing property to set
2012 just extra line spacing. Handle new line-height property.
2013
0448588b
AS
20142004-04-26 Andreas Schwab <schwab@suse.de>
2015
2016 * print.c (print_object): Print non-ascii characters in bool
2017 vector representation as octal escapes.
2018
2019 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
2020 * print.c (print_object): Use it instead of BITS_PER_CHAR for
2021 bool vectors.
2022 * lread.c (read1): Likewise.
2023 * alloc.c (Fmake_bool_vector): Likewise.
2024 * data.c (Faref, Faset): Likewise.
2025 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
2026 (mapcar1): Likewise.
d3b111bd 2027
536d6baa
ST
20282004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2029
2030 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
2031
ae11577a
MB
20322004-04-26 Miles Bader <miles@gnu.org>
2033
2034 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
2035
e198ba87
JB
20362004-04-26 Juanma Barranquero <lektu@terra.es>
2037
2038 * buffer.c (Fpop_to_buffer): Fix docstring.
2039
f3d5f92d 20402004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 2041
f3d5f92d
ST
2042 * lread.c (init_lread): Don't display missing lisp directory
2043 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 2044 may be built without correct installation path.
f3d5f92d 2045
03e35edc
KS
20462004-04-25 Kim F. Storm <storm@cua.dk>
2047
9ff3aa31
KS
2048 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2049
2050 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2051
03e35edc
KS
2052 * xdisp.c (append_space_for_newline): Rename from append_space.
2053 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
2054 (x_produce_glyphs): Handle line-spacing property on newline char.
2055 If value is t, adjust ascent and descent to fit current row height.
2056 If value is an integer or float, set extra_line_spacing to integer
2057 value, or to float value x current line height.
2058
f24814e0
KH
20592004-04-23 Kenichi Handa <handa@m17n.org>
2060
2061 * fontset.c (Finternal_char_font): If POSITION is nil, return
2062 font for displaying CH with the default face.
2063
d814862a
JB
20642004-04-23 Juanma Barranquero <lektu@terra.es>
2065
2066 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
2067
063a45c5
SM
20682004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2069
2070 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
2071 Don't make assumptions about the relative place of i and val.
2072 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
2073
ae7ab2d3
KS
20742004-04-21 Kim F. Storm <storm@cua.dk>
2075
2076 * dispextern.h (struct glyph_slice): New struct.
2077 (struct glyph): New member slice.
2078 (GLYPH_SLICE_EQUAL_P): New macro.
2079 (GLYPH_EQUAL_P): Use it.
2080 (struct glyph_string): New member slice.
2081 (struct it_slice): New struct.
2082 (struct it): New member slice, add member to stack too.
2083 New member constrain_row_ascent_descent_p.
2084 (image_ascent): Add prototype.
2085
2086 * dispnew.c (buffer_posn_from_coords): Return full image width
2087 and height even for image slices (posn is relative to full image).
2088 (marginal_area_string): Adjust x0,y0 for image slice.
2089
2090 * image.c (image_ascent): Add slice arg; calculate ascent for
2091 image slice (or full image).
2092
2093 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
2094 (syms_of_keyboard): Defsubr them.
2095
2096 * lisp.h (pos_visible_p): Fix prototype.
2097
c62aec78 2098 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
2099 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2100 (x_draw_image_foreground, x_draw_image_relief)
2101 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2102 Draw sliced images.
2103
2104 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
2105 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2106 (x_draw_image_foreground, x_draw_image_relief)
2107 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
2108 Draw sliced images.
2109
2110 * w32term.h (image_ascent): Remove prototype.
2111
2112 * window.c (Fpos_visible_in_window_p): Return pixel position if
2113 PARTIALLY arg is non-nil. Simplify. Doc fix.
2114 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
2115 to return/set vscroll in pixels.
2116
2117 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
2118
2119 * xdisp.c (Qslice): New variable.
2120 (syms_of_xdisp): Intern and staticpro it.
2121 (pos_visible_p): Return pixel position in new x and y args.
2122 (init_iterator): Reset it->slice info.
2123 (handle_display_prop): Parse (slice ...) property.
2124 (push_it, pop_it): Save/restore slice info.
2125 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
2126 force repositioning of tall row if window is vscrolled, as that
2127 would reset vscroll.
2128 (append_space): Set it->constrain_row_ascent_descent_p to avoid
2129 increasing row height if row is non-empty.
2130 (fill_image_glyph_string): Copy slice info.
2131 (take_vertical_position_into_account): Simplify.
2132 (produce_image_glyph): Handle iterator slice info, setup glyph
2133 slice info. Do not force minimum line height.
2134 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
2135 do not increase height (ascent/descent) of non-empty row when
2136 adding normal character glyph; instead reduce glyph ascent/descent
2137 appropriately; if row is higher than current glyph, adjust glyph
2138 descent/ascent to reposition glyph within the existing row.
2139 Likewise, when char is newline, only set ascent/descent if row is
2140 currently empty.
2141 (note_mouse_highlight): Handle hotspots with sliced image.
2142
2143 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
2144 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2145 (x_draw_image_foreground, x_draw_image_relief)
2146 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2147 Draw sliced images.
2148
2149 * xterm.h (image_ascent): Remove prototype.
2150
d58f8753
SM
21512004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2152
2153 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
2154
4ce2719d
JPW
21552004-04-20 John Paul Wallington <jpw@gnu.org>
2156
2157 * fns.c (Fassoc, Feql): Fix indentation.
2158
d58f8753 2159 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 2160
95f8c3b9
JPW
21612004-04-19 John Paul Wallington <jpw@gnu.org>
2162
2163 * fns.c (Feql): New function.
d58f8753 2164 (syms_of_fns): Defsubr it.
95f8c3b9 2165
b7e85537
JR
21662004-04-18 Jason Rumney <jasonr@gnu.org>
2167
2168 * w32select.c (Fw32_set_clipboard_data): Get sequence number
2169 after closing the clipboard.
2170
5a72efd4
LT
21712004-04-16 Luc Teirlinck <teirllm@auburn.edu>
2172
2173 * buffer.c (Fbuffer_base_buffer): Doc fix.
2174
20dc8583
KS
21752004-04-17 Kim F. Storm <storm@cua.dk>
2176
60962ec4
KS
2177 * keymap.c (Fkey_description): Add optional PREFIX arg.
2178 Combine prefix with KEYS to make up the full key sequence to describe.
2179 Correlate meta_prefix_char and following (simple) key to describe
2180 as meta modifier. All callers changed.
2181 (describe_map): Rename arg `keys' to `prefix'. Remove local
2182 `elt_prefix' var. Use Fkey_description with prefix instead of
2183 elt_prefix combined with Fsingle_key_description.
2184 (describe_vector): Declare static. Replace arg `elt_prefix' with
2185 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
2186 if !KEYMAP_P. Use Fkey_description with prefix instead of
2187 Fsingle_key_description.
2188
2189 * keymap.h (Fkey_description): Fix prototype.
2190 (describe_vector): Remove prototype.
2191
409368b9
KS
2192 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
2193
20dc8583
KS
2194 * image.c (PNG_BG_COLOR_SHIFT): Remove.
2195 (png_load): Fix calculation of transparent background color on X
2196 and W32 platforms.
2197
75c5501b
JB
21982004-04-16 Juanma Barranquero <lektu@terra.es>
2199
2200 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
2201 not too large before computing how much to scroll.
2202
da879ae8
SM
22032004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
2204
2205 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
2206
d01ca4a8
LT
22072004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2208
2209 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
2210 Add hyperlink to Elisp manual to the docstring.
2211
572943b3
SM
22122004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
2213
2214 * callint.c (fix_command): Use XDCR.
2215
5e30a0fb
NR
22162004-04-14 Nick Roberts <nick@nick.uklinux.net>
2217
2218 * window.c (Fget_lru_window): Doc fix.
2219
a27ddfaf
KS
22202004-04-14 Kim F. Storm <storm@cua.dk>
2221
2222 * editfns.c (Fformat): Fix allocation size of precision array.
2223
2224 * dispnew.c (update_window): Only set changed_p if
2225 scrolling_window actually did scroll.
2226 (scrolling_window): Only return 1 if we actually did scroll.
2227
2228 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
2229 height to glyph height when cursor row is not fully visible.
2230 (make_cursor_line_fully_visible): Add FORCE_P arg to return
2231 failure in case row is higher than window. Callers changed.
2232 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
2233 Try to scroll partially visible, higher-than-window cursor row.
2234 (redisplay_window): Always try to scroll partially visible,
2235 higher-than-window cursor row - both initially and again with
2236 centering_position = 0.
2237 Clear desired matrix before retrying with centering_position = 0.
2238
da879ae8
SM
22392004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2240
2241 * syntax.c (scan_lists): Simplify backward string scan.
2242 Fix off-by-one boundary check for string and comment fences.
2243
5fc16e8e
SM
22442004-04-13 Joe Buehler <jbuehler@hekimian.com>
2245
2246 * sheap.c, unexcw.c: New files.
2247
c9aac8e6
LT
22482004-04-12 Luc Teirlinck <teirllm@auburn.edu>
2249
2250 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
2251 base buffer has been killed. Correct the error message if the
2252 base buffer does not exist.
2253
1e88a355
SM
22542004-04-12 Joe Buehler <jbuehler@hekimian.com>
2255
2256 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
2257 Cygwin itself. Add support for Xaw3d scrollbars.
2258
2259 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
2260
2261 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
2262
2263 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
2264 before Cygwin unexec.
2265
2266 * Makefile.in: Link changes for Cygwin unexec() support.
2267
8dbff9a0
AS
22682004-04-12 Andreas Schwab <schwab@suse.de>
2269
2270 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
2271
54dffe35
LT
22722004-04-11 Luc Teirlinck <teirllm@auburn.edu>
2273
2274 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
2275 IGNORE argument equals NAME. Doc fix.
2276
99a72bdf
MY
22772004-04-11 Masatake YAMATO <jet@gyve.org>
2278
1e88a355 2279 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
2280 empty if they are backwards.
2281
40899d7b
SM
22822004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2283
2284 * xfaces.c (face_color_supported_p): Fix compilation without X11.
2285
f8f853de
SM
22862004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2287
2288 * doc.c (Fsnarf_documentation): Ignore new file name entries.
2289
c953fe1b
KS
22902004-04-06 Kim F. Storm <storm@cua.dk>
2291
661e85c1
KS
2292 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2293 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
2294
2295 * w32term.c (w32_read_socket): Set mouse_face_hidden after
2296 clearing highlight.
2297
2298 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2299
2300 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
2301 clearing highlight.
2302
c953fe1b
KS
2303 * indent.c (vmotion): Do not reserve one column for continuation
2304 marks on window frames.
2305
c1994268
EZ
23062004-04-04 Eli Zaretskii <eliz@gnu.org>
2307
2308 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
2309 from GCC.
2310
9f691b0d
SM
23112004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2312
2313 * .gdbinit-union: Remove.
2314
2315 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
2316 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
2317 ($nonvalbits): Remove.
2318 ($valmask): Set it by calling xreload to avoid redundancy.
2319
2320 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
2321 (gdb_emacs_intbits): Remove.
2322
7a8560d7
JD
23232004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2324
9f691b0d 2325 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 2326
3c8111fc
KH
23272004-03-30 Kenichi Handa <handa@m17n.org>
2328
2329 * editfns.c (Fformat): Fix initialization of the array info.
2330
48a0bce4
KS
23312004-03-30 Kim F. Storm <storm@cua.dk>
2332
2333 * xterm.c (x_mouse_click_focus_ignore_position): New var.
2334 (syms_of_xterm): DEFVAR_BOOL it.
2335 (ignore_next_mouse_click_timeout): New var.
2336 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
2337 Use it to filter mouse clicks following focus event.
2338
1cd0066c
KS
23392004-03-29 David Ponce <david@dponce.com>
2340
2341 * callint.c (Fcall_interactively): Fix last change.
2342
adb3b353
SM
23432004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2344
2345 * eval.c (Fcommandp): Simplify.
2346
2347 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
2348 Extend to handle all kinds of functions.
2349
2350 * lisp.h (Finteractive_form): Declare.
2351
2352 * callint.c (Fcall_interactively): Use it.
2353
6fc4c9c9
KS
23542004-03-26 Kim F. Storm <storm@cua.dk>
2355
2356 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
2357 to catch errors in calc_pixel_width_or_height during redisplay.
2358
abdb9b83
MY
23592004-03-26 Masatake YAMATO <jet@gyve.org>
2360
b17856dd 2361 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 2362
b17856dd 2363 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 2364
b17856dd 2365 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 2366
b17856dd 2367 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 2368
e8a84b6c
JD
23692004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2370
b17856dd 2371 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 2372
36a3fd05
RS
23732004-03-19 Richard M. Stallman <rms@gnu.org>
2374
2375 * s/sol2-6.h: Delete previous change.
2376
ab24c127
KS
23772004-03-19 Kim F. Storm <storm@cua.dk>
2378
2379 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
2380 to_charpos corresponds to newline in right fringe. Use local
2381 BUFFER_POS_REACHED_P macro.
2382
992126de
JD
23832004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2384
2385 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
2386 to compile on non-window system.
2387
45dbfc84
KS
23882004-03-19 Kim F. Storm <storm@cua.dk>
2389
2390 * dispextern.h (calc_pixel_width_or_height): Add prototype.
2391
2392 * image.c (Qcenter): Move to xdisp.c.
2393
2394 * xdisp.c (Qcenter): Declare here.
adb3b353 2395 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
2396 (handle_single_display_prop): Allow space display property on all
2397 platforms.
2398 (display_mode_line): Set mode_line_p before displaying line.
2399 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
2400 handling. Remove complex cases for fringes and scroll-bars.
2401 Add left, right, and center alignment positions. Add text (area)
2402 width/height. Return width or height for image specs.
2403 (produce_stretch_glyph): Improve handling of :align-to. Is now
2404 relative to left of text area by default, but other base offsets
2405 can be specified -- also for text lines.
2406
2407 * term.c (produce_glyphs): Handle IT_STRETCH.
2408 (produce_stretch_glyph): New function to handle space width and
2409 align-to display properties on non-window systems.
2410
37264101
SM
24112004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2412
2413 * fileio.c (Fread_file_name): Set completion-ignore-case for
2414 case-insensitive systems.
2415
73bc43da
MY
24162004-03-14 Masatake YAMATO <jet@gyve.org>
2417
2418 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
2419 when keymap and cursor are setup.
2420
9062aa89
ST
24212004-03-14 Steven Tamm <steventamm@mac.com>
2422
b17856dd 2423 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 2424
e4b1b5ab
KS
24252004-03-14 Kim F. Storm <storm@cua.dk>
2426
2427 * dispextern.h (x_find_image_file): Add prototype.
2428
2429 * image.c (x_find_image_file): Make extern.
2430
2431 * xfns.c (x_find_image_file): Remove prototype.
2432
a6eeaa81 24332004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 2434
37264101 2435 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 2436
37264101 2437 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 2438
e69cfac2
RS
24392004-03-12 Richard M. Stallman <rms@gnu.org>
2440
2441 * fns.c (internal_equal): New arg PROPS controls comparing
2442 text properties. All callers changed.
2443 (Fequal_including_properties): New function.
2444 (syms_of_fns): defsubr it.
2445
45034953
KS
24462004-03-12 Kim F. Storm <storm@cua.dk>
2447
2448 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 2449
45034953
KS
2450 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
2451 (image_background, image_background_transparent): Fix prototypes.
2452
37264101 2453 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
2454
2455 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
2456 (x_query_font, x_find_ccl_program, x_set_window_size)
2457 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2458 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2459 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
2460
2461 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
2462 (x_query_font, x_find_ccl_program, x_set_window_size)
2463 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2464 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2465 (mac_draw_line_to_pixmap): Add prototypes.
2466
24672004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2468
2469 * macterm.c (XTread_socket): Fix mouse click on tool bar.
2470
a12d3d87
KS
24712004-03-11 Kim F. Storm <storm@cua.dk>
2472
d3ab1cf1
KS
2473 * dispextern.h: Move image related prototypes from xfns.c section
2474 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
2475 HAVE_X_WINDOWS.
37264101 2476
37de9f51 2477 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 2478 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
2479 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
2480 (GTK_OBJ) [USE_GTK]: New declaration.
2481 (obj): Add $(GTK_OBJ) to list.
2482
5243c06a 24832004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 2484
5243c06a
ST
2485 * image.c [MAC_OSX]: Include sys/stat.h
2486
2487 * macfns.c (syms_of_macfns): Remove definitions of things now
2488 defined in image.c
2489
c0f97789
KS
24902004-03-11 Kim F. Storm <storm@cua.dk>
2491
2492 The following changes consolidates the identical/similar image
2493 support code previously found in xfns.c, w32fns.c, and macfns.c
2494 into a new file image.c.
2495
2496 * makefile.w32-in (OBJ1): Add image.o.
2497 ($(BLD)/image.$(O)): Add dependencies.
2498
2499 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
2500 (image.o): Add dependencies.
37264101 2501
c0f97789
KS
2502 * image.c: New file with consolidated image support code.
2503 (COLOR_TABLE_SUPPORT): New define to control whether
2504 color table support is available (X only).
2505 (Bitmap_Record): Common name for x_bitmap_record,
2506 w32_bitmap_record, and mac_bitmap_record.
2507 (XImagePtr): Common name for pointer to XImage or equivalent.
2508 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
2509 to XImagePtr on X+MAC, and to HDC on W32.
2510 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
2511 (NO_PIXMAP): Common name for "None" or equivalent.
2512 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
2513 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
2514 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
2515 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
2516 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
2517 (XDrawLine): Define on MAC for code sharing.
2518 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
2519 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
2520 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2521 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2522 (x_reference_bitmap, x_create_bitmap_from_data)
2523 (x_create_bitmap_from_file, x_destroy_bitmap)
2524 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2525 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2526 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2527 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2528 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2529 (define_image_type, lookup_image_type, valid_image_p)
2530 (image_error, enum image_value_type, struct image_keyword)
2531 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2532 (make_image, free_image, prepare_image_for_display, image_ascent)
2533 (four_corners_best, image_background, image_background_transparent)
2534 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2535 (make_image_cache, free_image_cache, clear_image_cache)
2536 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2537 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2538 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2539 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2540 (init_image_func_pointer, image_load_quartz2d)
2541 (struct ct_color, init_color_table, free_color_table)
2542 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2543 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2544 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2545 (x_disable_image, x_build_heuristic_mask)
2546 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2547 (TIFF support, GIF support, Ghostscript support): Consolidate image
2548 code from xfns.c, w32fns.c, and macfns.c.
2549 (syms_of_image): Consolidate image related symbol setup here.
2550 (init_image): Consolidate image related initializations here.
37264101 2551
c0f97789
KS
2552 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
2553 and init_image. Remove call to init_xfns.
2554
37264101
SM
2555 * macterm.h (struct mac_bitmap_record): Add file member.
2556 Not currently used, but simplifies code sharing.
c0f97789
KS
2557
2558 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2559 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2560 (x_reference_bitmap, x_create_bitmap_from_data)
2561 (x_create_bitmap_from_file, x_destroy_bitmap)
2562 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2563 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2564 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2565 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2566 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2567 (define_image_type, lookup_image_type, valid_image_p)
2568 (image_error, enum image_value_type, struct image_keyword)
2569 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2570 (make_image, free_image, prepare_image_for_display, image_ascent)
2571 (four_corners_best, image_background, image_background_transparent)
2572 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2573 (make_image_cache, free_image_cache, clear_image_cache)
2574 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2575 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2576 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2577 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2578 (init_image_func_pointer, image_load_quartz2d)
2579 (struct ct_color, init_color_table, free_color_table)
2580 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2581 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2582 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2583 (x_disable_image, x_build_heuristic_mask)
2584 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2585 (TIFF support, GIF support, Ghostscript support): Merge with image
2586 code from xfns.c and macfns.c into image.c.
2587 (syms_of_xfns): Move image related symbols to image.c.
2588 (init_external_image_libraries, init_xfns): Remove; initialization
2589 moved to init_image in image.c.
2590
2591 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2592 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2593 (x_reference_bitmap, x_create_bitmap_from_data)
2594 (x_create_bitmap_from_file, x_destroy_bitmap)
2595 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2596 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2597 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2598 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2599 (define_image_type, lookup_image_type, valid_image_p)
2600 (image_error, enum image_value_type, struct image_keyword)
2601 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2602 (make_image, free_image, prepare_image_for_display, image_ascent)
2603 (four_corners_best, image_background, image_background_transparent)
2604 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2605 (make_image_cache, free_image_cache, clear_image_cache)
2606 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2607 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2608 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2609 (struct ct_color, init_color_table, free_color_table)
2610 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2611 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2612 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2613 (x_disable_image, x_build_heuristic_mask)
2614 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2615 (TIFF support, GIF support, Ghostscript support): Merge with image
2616 code from xfns.c and macfns.c into image.c.
2617 (syms_of_xfns): Move image related symbols to image.c.
2618 (init_external_image_libraries, init_xfns): Remove; initialization
2619 moved to init_image in image.c.
2620
2621 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2622 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2623 (x_reference_bitmap, x_create_bitmap_from_data)
2624 (x_create_bitmap_from_file, x_destroy_bitmap)
2625 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2626 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2627 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2628 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2629 (define_image_type, lookup_image_type, valid_image_p)
2630 (image_error, enum image_value_type, struct image_keyword)
2631 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2632 (make_image, free_image, prepare_image_for_display, image_ascent)
2633 (four_corners_best, image_background, image_background_transparent)
2634 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2635 (make_image_cache, free_image_cache, clear_image_cache)
2636 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2637 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2638 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2639 (struct ct_color, init_color_table, free_color_table)
2640 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2641 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2642 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2643 (x_disable_image, x_build_heuristic_mask)
2644 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2645 (TIFF support, GIF support, Ghostscript support): Merge with
2646 w32fns.c and macfns.c image code into image.c.
2647 (syms_of_xfns): Move image related symbols to image.c.
2648 (init_xfns): Remove; initialization moved to init_image in image.c.
2649
2650 * lisp.h (syms_of_image, init_image): Add protoypes.
2651 (init_xfns): Remove prototype.
2652
2653 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2654 (x_reference_bitmap, x_create_bitmap_from_data)
2655 (x_create_bitmap_from_file, x_destroy_bitmap)
2656 (x_create_bitmap_mask): Move prototypes from dispextern.h.
2657 (gamma_correct) [MAC_OS]: Add prototype.
2658
2659 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2660 (x_reference_bitmap, x_create_bitmap_from_data)
2661 (x_create_bitmap_from_file, x_destroy_bitmap)
2662 (x_create_bitmap_mask): Move prototypes to dispextern.h.
2663
6eced09c
KH
26642004-03-09 Kenichi Handa <handa@etlken2>
2665
2666 * coding.c (decode_coding_emacs_mule): Handle insufficent source
2667 correctly.
2668
9a7e95f3
RS
26692004-03-04 Richard M. Stallman <rms@gnu.org>
2670
04a6e76b
RS
2671 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
2672
9a7e95f3
RS
2673 * window.c (Fdisplay_buffer): Doc fix.
2674
2675 * buffer.c (Fpop_to_buffer): Doc fix.
2676
6c2488df
KS
26772004-03-03 Kim F. Storm <storm@cua.dk>
2678
2679 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
2680
d8d95bc7
SM
26812004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
2682
2683 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
2684
357589bf
RS
26852004-03-02 Richard M. Stallman <rms@gnu.org>
2686
2687 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
2688
409949b5
KH
26892004-03-02 Kenichi Handa <handa@m17n.org>
2690
2691 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2692
d24bc50f
KS
26932004-03-02 Kim F. Storm <storm@cua.dk>
2694
2695 * window.h (struct window): New member overlay_arrow_bitmap.
2696
2697 * window.c (make_window): Initialize overlay_arrow_bitmap.
2698
2699 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2700 implement and integrate multiple overlay arrows with redisplay.
2701 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2702 (last_arrow_position, last_arrow_string): Replace by properties.
2703 (Qlast_arrow_position, Qlast_arrow_string)
2704 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2705 (syms_of_xdisp): Intern and staticpro them.
2706 (overlay_arrow_string_or_property, update_overlay_arrows)
2707 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2708 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2709 (redisplay_internal): Use them instead of directly accessing
2710 Voverlay_arrow_position etc. for multiple overlay arrows.
2711 (mark_window_display_accurate): Use update_overlay_arrows.
2712 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2713 (try_window_id): Use overlay_arrows_changed_p.
2714 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2715 (display_line): Use overlay_arrow_at_row to check multiple
2716 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 2717 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
2718 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2719 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2720
2721 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
2722 (update_window_fringes): Remove unused code.
2723
c1464661
JR
27242004-03-01 Jason Rumney <jasonr@gnu.org>
2725
2726 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
2727
a64387ee
JB
27282004-03-01 Juanma Barranquero <lektu@terra.es>
2729
2730 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
2731
2732 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
2733
334faa08
JD
27342004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2735
2736 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
2737 how many colors can be displayed.
2738
bb62616f
KH
27392004-03-01 Kenichi Handa <handa@m17n.org>
2740
2741 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
2742 correctly.
2743
0fd16104
KS
27442004-02-28 Kim F. Storm <storm@cua.dk>
2745
2746 * dispnew.c (update_window): Update header line also if there are
2747 no other changes in window (move code after set_cursor label).
2748
2749 * lisp.h (mark_window_display_accurate): Remove prototype.
2750
2751 * window.c (window_loop, Fforce_window_update): Force mode line
2752 updates by setting prevent_redisplay_optimizations_p and
2753 update_mode_lines.
2754
b59dd9c8
JD
27552004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2756
d8d95bc7 2757 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
2758
2759 * xterm.c (x_calc_absolute_position): Call x_real_positions
2760 to get WM window sizes and use those to calculate position.
d8d95bc7 2761 (x_set_offset): Remove code commented out.
b59dd9c8 2762
a874691c
MB
27632004-02-28 Miles Bader <miles@gnu.org>
2764
2765 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
2766
3e0c6482
KS
27672004-02-28 Kim F. Storm <storm@cua.dk>
2768
2769 * keyboard.c (kbd_buffer_store_event_hold): New function to store
2770 an event into kbd fifo, but with special handling of quit event;
2771 a quit event is saved for later, and further events are discarded
2772 until the saved quit event has been processed.
2773 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
2774 (gen_help_event): Store help event in kbd fifo.
2775 (NREAD_INPUT_EVENTS): Remove.
2776 (read_avail_input): Adapt to new read_socket_hook interface.
2777 Remove allocation and initialization of local input_event buffer,
2778 as read_socket_hook stores events directly in fifo. Allocate and
2779 initialize local hold_quit event to handle postponed quit event
2780 (and store it if set by kbd_buffer_store_event_hold).
2781
2782 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
2783 (gen_help_event): Fix prototype.
2784
a64387ee 2785 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 2786 numcharsp args. Add hold_quit arg.
f63fd14e 2787 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2788 directly in fifo using kbd_buffer_store_event_hold.
2789
2790 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
2791 (read_input_waiting): Adapt to new read_socket_hook interface.
2792 Remove allocation and initialization of local input_event buffer,
2793 as read_socket_hook stores events directly in fifo. Allocate and
2794 initialize local hold_quit event to handle postponed quit event
2795 (and store it if set by kbd_buffer_store_event_hold).
2796
a64387ee 2797 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
2798
2799 * termhooks.h (read_socket_hook): Fix prototype.
2800
2801 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
2802 numcharsp args. Add hold_quit arg.
f63fd14e 2803 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2804 directly in fifo using kbd_buffer_store_event_hold.
2805
2806 * w32inevt.h (w32_console_mouse_position): Fix prototype.
2807
2808 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
2809 Add hold_quit arg. Rework to use just one, local, inev
2810 input_event. Store inev directly in fifo using
3e0c6482
KS
2811 kbd_buffer_store_event_hold. Update count in one place.
2812 Postpone call to gen_help_event until inev is stored; use new
2813 local do_help for this.
2814 Remove local emacs_event in handing of ButtonPress event; just use
2815 inev instead (so no reason to copy it later).
2816
2817 * xsmfns.c (x_session_check_input): Remove numchars arg.
2818
d8d95bc7
SM
2819 * xterm.c (x_focus_changed, x_detect_focus_change):
2820 Remove numchars arg. Always store event into bufp arg.
2821 Return nothing. Callers changed accordingly.
3e0c6482
KS
2822 (glyph_rect): Simplify.
2823 (STORE_KEYSYM_FOR_DEBUG): New macro.
2824 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
2825 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
2826 (current_hold_quit) [USE_GTK]: Add.
2827 (event_handler_gdk): Adapt to new handle_one_xevent.
2828 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
2829 Add hold_quit arg. Rework to use just one, local, inev
2830 input_event. Store inev directly in fifo using
3e0c6482
KS
2831 kbd_buffer_store_event_hold. Update count in one place.
2832 Postpone call to gen_help_event until inev is stored; use new
2833 local do_help for this.
2834 Simplify handling of keysyms (consolidate common code). Fix bug
2835 where count was updated with nchars instead of nbytes.
2836 Remove local emacs_event in handing of ButtonPress event; just use
2837 inev instead (so no reason to copy it later).
2838 Remove `out' label. Rename label `ret' to `done'; add various
2839 `goto done' to clarify code flow in deeply nested blocks.
2840 (x_dispatch_event): Simplify as handle_one_xevent now calls
2841 kbd_buffer_store_event itself.
f63fd14e 2842 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
2843 arg. Call handle_one_xevent with new arglist. Store event from
2844 x_session_check_input in fifo.
2845 [USE_GTK]: Setup current_hold_quit.
2846 Decrement handling_signal before unblocking input.
2847 (x_initialize) [USE_GTK]: Initialize current_count.
2848
2849 * xterm.h (x_session_check_input): Fix prototype.
2850
e3564461 28512004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 2852
d8d95bc7 2853 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 2854
e3564461
ST
2855 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
2856 macgui.h).
a64387ee 2857
e3564461 2858 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 2859
e3564461
ST
2860 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
2861 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
2862 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
2863 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
2864 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
2865 (Bitmap): Remove typedef.
2866 (Pixmap): Change int to GWorldPtr.
2867
d8d95bc7 2868 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 2869
d8d95bc7
SM
2870 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2871 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
2872 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
2873 long representation.
2874 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
2875 colors used for masks.
2876 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 2877
e3564461
ST
2878 * macfns.c: Include sys/types.h and sys/stat.h.
2879 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
2880 Include QuickTime/QuickTime.h.
2881 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2882 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
2883 functions defined in macterm.c.
2884 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
2885 (ZPixmap): New #define for compatibility with xfns.c.
2886 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2887 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
2888 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
2889 New functions.
e3564461 2890 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
2891 (x_destroy_x_image, unwind_create_frame, x_disable_image)
2892 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
2893 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
2894 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
2895 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
2896 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
2897 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
2898 long mixup.
2899 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
2900 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
2901 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
2902 (x_set_cursor_type, Fxw_color_values, valid_image_p)
2903 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
2904 (x_alloc_image_color, clear_image_cache, lookup_image)
2905 (x_find_image_file, xbm_read_bitmap_file_data)
2906 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
2907 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
2908 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
2909 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
2910 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 2911 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
2912 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
2913 #if 0.
2914 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
2915 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
2916 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
2917 New functions (from xfns.c).
e3564461
ST
2918 (Fx_create_frame): Record unwind_create_frame.
2919 (Fxw_display_color_p): Use dpyinfo->color_p.
2920 (Fx_display_grayscale_p, Fx_display_planes): Don't use
2921 dpyinfo->n_cbits.
2922 (Fx_display_color_cells): Use dpyinfo->n_planes;
2923 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
2924 (Qheuristic, cross_disabled_images, emboss_matrix)
2925 (laplace_matrix): New variables (from xfns.c).
2926 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
2927 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
2928 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
2929 (image_background_transparent): New function (from xfns.c).
2930 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2931 (image_load_quicktime): Add declaration.
2932 [MAC_OSX] (image_load_quartz2d): Likewise.
2933 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
2934 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 2935 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
2936 (xbm_load_image_from_file, x_laplace_read_row)
2937 (x_laplace_write_row, pbm_read_file): Remove functions.
2938 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
2939 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
2940 (colors_in_color_table): Sync with xfns.c (although not used).
2941 (lookup_rgb_color): Don't lookup color table. Just do gamma
2942 correction.
2943 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
2944 (x_disable_image): New function (from xfns.c).
2945 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2946 (x_build_heuristic_mask): Sync with xfns.c.
2947 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2948 (HAVE_PBM): Remove #ifdef.
2949 (pbm_load): Sync with xfns.c. Set img->width and img->height
2950 before IMAGE_BACKGROUND.
d8d95bc7 2951 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
2952 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
2953 Don't enclose with #if HAVE_PNG.
2954 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
2955 symbol _CGImageCreateWithPNGDataProvider is defined.
2956 Otherwise use image_load_quicktime.
e3564461 2957 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
2958 [HAVE_PNG] (png_load): Sync with xfns.c.
2959 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2960 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
2961 HAVE_JPEG.
2962 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
2963 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
2964 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
2965 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
2966 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
2967 (tiff_image_p, tiff_load): Don't enclose declarations with #if
2968 HAVE_TIFF.
2969 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
2970 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
2971 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
2972 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
2973 New functions (from xfns.c).
e3564461 2974 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 2975 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
2976 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
2977 Don't enclose with #if HAVE_GIF.
2978 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
2979 animated gif. Otherwise use image_load_quicktime.
2980 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
2981 gif_DrawText to avoid conflict with QuickdrawText.h.
2982 [HAVE_GIF] (gif_load): Sync with xfns.c.
2983 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
2984 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
2985 Ghostscript is not supported yet).
2986 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
2987 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
2988 cross_disabled_images (from xfns.c). Remove #if 0 for supported
2989 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
2990 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
2991 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
2992 HAVE_PNG. Call EnterMovies to support animated gifs.
2993 Call init_image_func_pointer to bind a symbol
e3564461 2994 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 2995
d8d95bc7 2996 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
2997 (x_draw_bar_cursor): Sync declaration with xterm.c.
2998 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
2999 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
3000 graphics).
3001 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
3002 (mac_draw_line_to_pixmap, XCreatePixmap)
3003 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
3004 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
3005 New functions.
3006 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
3007 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
3008 Cast bits to char *.
e3564461
ST
3009 (reflect_byte): New function (from w32fns.c).
3010 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
3011 due to byte alignment.
d8d95bc7
SM
3012 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
3013 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
3014 (XSetForeground): Remove static (now used in macfns.c).
3015 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
3016 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
3017 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
3018 (x_draw_glyph_string_box, x_draw_image_foreground)
3019 (x_draw_image_foreground_1, x_draw_image_glyph_string)
3020 (x_draw_stretch_glyph_string, x_draw_glyph_string)
3021 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
3022 Sync with xterm.c.
3023 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
3024 than the xterm.c version when a strictly horizontal or vertical
3025 line is drawn.
3026 (XTset_terminal_window): Add static.
3027 (x_make_frame_visible): Add UNBLOCK_INPUT.
3028 (x_free_frame_resources): New funcion (from xterm.c).
3029 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
3030 occurs in tool bar area.
d8d95bc7
SM
3031 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
3032 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
3033 Initialize image cache.
3034 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
3035 Enclose unused functions with #if 0.
3036 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
3037 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 3038 from a mac font name to an XLFD font name according to its script code.
e3564461 3039 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 3040 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
3041 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
3042 whose name starts with `.'.
3043 (init_font_name_table): Use decode_mac_font_name. Add both
3044 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
3045 of a font is smJapanese.
3046 (mac_do_list_fonts): New function to list fonts that match a given
3047 pattern.
3048 (x_list_fonts, XLoadQueryFont): Use it.
3049 (XLoadQueryFont): Set rbearing field for each variable width
3050 character to avoid needless redraw.
3051 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
3052
446f5f3d
KS
30532004-02-26 Kim F. Storm <storm@cua.dk>
3054
af617d0f
KS
3055 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
3056 as read_socket_hook handler on X aborts if buffer is too small
3057 and W32 handler doesn't always check buffer limit.
3058
446f5f3d
KS
3059 * xdisp.c (handle_single_display_prop): Handle left-fringe and
3060 right-fringe similar to a display margin image. Specifically,
3061 the characters having the fringe prop are no longer shown, and
3062 we use IT_IMAGE/next_element_from_image with image_id = -1 to
3063 do this. Set fringe bitmap face_id in it->face_id.
3064 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
3065 still realize it->face (i.e. the fringe bitmap face).
3066
7d8a0b55
MB
30672004-02-25 Miles Bader <miles@gnu.org>
3068
3069 * xdisp.c (check_it): Check string/string_pos consistency.
3070 (init_iterator): Initialize string-related fields properly.
3071
30722004-02-11 Miles Bader <miles@gnu.org>
3073
3074 * xdisp.c (produce_image_glyph): Force negative descents to zero.
3075
30762004-02-10 Miles Bader <miles@gnu.org>
3077
3078 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
3079 BLOCK_INPUT can be nested, so it doesn't make much sense.
3080
a64387ee 30812004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
3082
3083 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
3084 (xbm_read_bitmap_data): Use unsigned char for image data.
3085
92f5fba2
LT
30862004-02-23 Luc Teirlinck <teirllm@auburn.edu>
3087
3088 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
3089
8565fb3d
JR
30902004-02-22 Jason Rumney <jasonr@gnu.org>
3091
3092 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
3093 correctly over other bitmaps.
3094
a6eeaa81 30952004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
3096
3097 * emacs.c (USAGE1): Split into two halves.
3098 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
3099 (USAGE3): Rename from USAGE2.
3100 (USAGE4): Rename from USAGE3.
f8125c39 3101
4effffca
EZ
31022004-02-21 Juri Linkov <juri@jurta.org>
3103
3104 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
3105 Fix --multibyte. Move --help, --version to USAGE2. Add alias
3106 --file. Fix -f, -l. Sort options. Untabify.
3107 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
3108
923c1e6f
LT
31092004-02-19 Luc Teirlinck <teirllm@auburn.edu>
3110
3111 * category.c (Fdefine_category, Fcategory_docstring)
3112 (Fget_unused_category, Fset_category_table)
3113 (Fcategory_set_mnemonics): Doc fixes.
3114
b0e225fd
KS
31152004-02-20 Kim F. Storm <storm@cua.dk>
3116
3117 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
3118 The following changes are relative to the 2004-01-21 revision.
3119 (NREAD_INPUT_EVENTS): Define as max number of input events to read
3120 in one call to read_socket_hook. Value is 8.
3121 (read_avail_input): Separate and rework handling of read_socket_hook
3122 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
3123 in read_socket_hook case, and repeat if full buffer is read.
3124 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
3125 In non-read_socket_hook case, just use a single input_event, and
3126 call kbd_buffer_store_event on the fly for each character.
3127
b15aa9f9
SM
31282004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3129
3130 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
3131 Remove unused `gu' alternative.
3132
83c9aa95
AS
31332004-02-19 Andreas Schwab <schwab@suse.de>
3134
3135 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
3136 warning.
3137
cc808173
KS
31382004-02-18 Kim F. Storm <storm@cua.dk>
3139
3140 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
3141 Fix last change.
3142
ab90a54d
KS
31432004-02-17 Kim F. Storm <storm@cua.dk>
3144
b26f249f
KS
3145 * xdisp.c (fast_find_position): Fix return value of new version;
3146 it was inverted compared to the 21.1 version.
3147 (get_window_cursor_type): Don't look at glyph if NULL.
3148 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 3149
ab90a54d
KS
3150 * keyboard.c: Rework previous change; it didn't consider that the
3151 buf array was allocated on the stack.
3152 (prev_read): Remove variable.
3153 (read_avail_input_buf): New static event buffer array.
b9568dfc 3154 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 3155 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
3156 Use in_read_avail_input to handle re-entrance; when re-entered,
3157 fully initialize and use tmp_buf array instead of read_avail_input_buf.
3158 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
3159 is always cleared on entry. To ensure that, we clear (just) the
3160 entries that were used before we return.
3161 (init_keyboard): Initialize read_avail_input_buf here.
3162
4e039f3f
EZ
31632004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
3164
3165 * cmds.c (Fend_of_line): Doc fix.
3166
7b5368c1
EZ
31672004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
3168
3169 * keyboard.c (prev_read): New static variable.
3170 (read_avail_input): Use it to zero out only those slots in buf[]
3171 that were used last time we were called.
3172
a6eeaa81 31732004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
3174
3175 * Makefile.in (obj): Move fringe.o from here...
3176 (XOBJ, MAC_OBJ): ...to here.
3177
159c348e
SE
31782004-02-16 Stephen Eglen <stephen@gnu.org>
3179
3180 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
3181
d2f14999
SM
31822004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
3183
b15aa9f9
SM
3184 * data.c (Fbyteorder):
3185 * fringe.c (Fdefine_fringe_bitmap):
3186 * xdisp.c (handle_single_display_prop):
d2f14999
SM
3187 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
3188
8d50508a
JR
31892004-02-16 Jason Rumney <jasonr@gnu.org>
3190
3191 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
3192
dd4497dc
ST
31932004-02-15 Steven Tamm <steventamm@mac.com>
3194
3195 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
3196 controlling emulation of a three button mouse with option and
3197 command keys.
3198 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 3199 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 3200
c9159cb3
KS
32012004-02-15 Kim F. Storm <storm@cua.dk>
3202
2cc52658
KS
3203 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
3204
c9159cb3
KS
3205 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
3206 Perform byte-swapping.
3207
12fde2dc
KS
32082004-02-14 Kim F. Storm <storm@cua.dk>
3209
3210 * dispextern.h (struct draw_fringe_bitmap_params): Change member
3211 bits from char to short to facilitate wider bitmaps.
3212 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
3213 member.
3214
3215 * fringe.c (struct fringe_bitmap): Change member bits from char to
3216 short to facilitate 16 bits wide bitmaps. Modify all standard
3217 bitmaps accordingly.
3218 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
3219 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
3220 (draw_fringe_bitmap): Ditto.
3221 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
3222 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
3223 handle up to 16 bits wide bitmaps.
3224 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 3225 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
3226
3227 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
3228 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
3229 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
3230
3231 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
3232 so it is no longer necessary to expand them here.
3233
3234 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
3235
9d7271e8
KS
32362004-02-12 Kim F. Storm <storm@cua.dk>
3237
3238 * window.c (Fwindow_fringes): Doc fix.
3239
706c1e4f
JD
32402004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3241
3242 * xselect.c (x_get_foreign_selection): Add new optional parameter
3243 time_stamp.
3244 (Fx_get_selection_internal): Ditto, pass time_stamp to
3245 x_get_foreign_selection.
3246
3247 * data.c (Fbyteorder): New function.
3248
c2d12b5d
JD
32492004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3250
3251 * atimer.c: Move include stdio.h to same place as in other files.
3252
3253 * region-cache.c: Ditto.
3254
3255 * sysdep.c: Ditto.
3256
3257 * xfaces.c: Ditto.
3258
4c1947b9
SS
32592004-02-09 Sam Steingold <sds@gnu.org>
3260
89458937 3261 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 3262
82722af3
KS
32632004-02-09 Kim F. Storm <storm@cua.dk>
3264
3265 * fringe.c: New file. Move original fringe related declarations
3266 and code from dispextern.h and xdisp.c here.
3267 Rework code to support user defined fringe bitmaps, redefining
3268 standard bitmaps, ability to overlay user defined bitmap with
3269 overlay arrow bitmap, and add faces to bitmaps.
3270 (Voverflow_newline_into_fringe): Declare here.
3271 (enum fringe_bitmap_align): New enum.
3272 (..._bits): All bitmaps are now defined without bitswapping; that
3273 is now done in init_fringe_once (if necessary).
3274 (standard_bitmaps): New array with specifications for the
3275 standard fringe bitmaps.
3276 (fringe_faces): New array.
3277 (valid_fringe_bitmap_id_p): New function.
3278 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
3279 (draw_fringe_bitmap): New function which draws fringe bitmap,
3280 possibly overlaying bitmap with cursor in right fringe or the
3281 overlay arrow in the left fringe.
3282 (update_window_fringes): Do not handle overlay arrow here.
3283 Compare and copy fringe bitmap faces.
3284 (init_fringe_bitmap): New function.
3285 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
3286 define and destroy user defined fringe bitmaps.
3287 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
3288 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
3289 (syms_of_fringe): New function. Defsubr new DEFUNs.
3290 DEFVAR_LISP Voverflow_newline_into_fringe.
3291 (init_fringe_once, init_fringe): New functions.
3292 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 3293
82722af3
KS
3294 * Makefile.in (obj): Add fringe.o.
3295 (fringe.o): New dependencies.
3296
3297 * dispextern.h (FRINGE_ID_BITS): New definition for number of
3298 bits allocated to hold a fringe number. Increase number of bits
3299 from 4 to 8 to allow user defined fringe bitmaps.
3300 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
3301 left_user_fringe_face_id, right_user_fringe_bitmap,
3302 right_user_fringe_face_id.
3303 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
3304 Move to new file fringe.c.
3305 (MAX_FRINGE_BITMAPS): Define here.
3306 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
3307 and overlay_p. Change member which to int.
3308 (struct redisplay_interface): New members define_fringe_bitmap
3309 and destroy_fringe_bitmap.
3310 (valid_fringe_bitmap_id_p): Add prototype.
3311 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
3312
3313 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
3314 arrows.
3315 (update_frame): Do flush_display if force_flush_display_p to
3316 ensure display (specifically fringes) are updated in a timely
3317 manner when resizing the frame by dragging the mouse.
3318 (update_window_line): Update row if overlay arrow changed.
3319 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
3320 or overlay arrow changed.
3321
3322 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
3323 syms_of_fringe, and init_fringe.
3324
3325 * frame.h (struct frame): New member force_flush_display_p.
3326
3327 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
3328 Add prototypes.
3329
a3993cc8 3330 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 3331 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
3332 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
3333 Use cursor color for displaying cursor in fringe.
82722af3
KS
3334 (x_redisplay_interface): Add null handlers for
3335 define_fringe_bitmap and destroy_fringe_bitmap functions.
3336
3337 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
3338 xterm.c to handle overlayed fringe bitmaps and to use cursor color
3339 for displaying cursor in fringe.
3340 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
3341 specific functions to define and destroy fringe bitmaps in fringe_bmp.
3342 (w32_redisplay_interface): Add them to redisplay_interface.
3343 (w32_term_init): Call w32_init_fringe instead of explicitly
3344 defining fringe bitmaps in fringe_bmp array.
3345 (x_delete_display): Call w32_reset_fringes instead of explicitly
3346 destroying fringe bitmaps in fringe_bmp array.
3347
3348 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
3349 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
3350 (continued_bits, continuation_bits, ov_bits, first_line_bits)
3351 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
3352 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
3353 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
3354 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
3355 Move fringe handling vars and code to new file fringe.c.
3356 (handle_display_prop): Handle left-fringe and right-fringe
3357 display properties; store user fringe bitmaps in iterator.
3358 (move_it_in_display_line_to): Handle cursor in fringe at eob.
3359 (clear_garbaged_frames): Set force_flush_display_p if resized.
3360 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
3361 (display_line): Handle cursor in fringe at eob.
3362 (display_line): Set row user fringe bitmaps from iterator.
3363
3364 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
3365 Use cursor color for displaying cursor in fringe.
3366 (x_redisplay_interface): Add null handlers for
3367 define_fringe_bitmap and destroy_fringe_bitmap functions.
3368
030400eb
JD
33692004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3370
3371 * macfns.c (Fx_change_window_property): Make doc string and
3372 parameters same as for X version.
3373
3374 * w32fns.c (Fx_change_window_property): Ditto.
3375
3af55251
KS
33762004-02-07 Kim F. Storm <storm@cua.dk>
3377
ec110e9e
KS
3378 * xdisp.c (hscroll_window_tree): Position cursor near to right
3379 margin in hscrolled window when jumping to end of line (rather
3380 than centering cursor).
3381
3af55251
KS
3382 * process.c (wait_reading_process_input): Don't do adaptive read
3383 buffering if waiting for a specific process.
3384
b0c138ce
LT
33852004-02-05 Luc Teirlinck <teirllm@auburn.edu>
3386
3387 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
3388 (Fread_minibuffer, Feval_minibuffer)
3389 (Fread_string, Fread_no_blanks_input)
3390 (Fcompleting_read): Doc fixes.
3391 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
3392 completion-regexp-list. Define Qcase_fold_search and staticpro it.
3393 (read_minibuf): Fix initial comment.
3394 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 3395 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
3396 checking completion-regexp-list.
3397 (Fdisplay_completion_list): Make it handle arguments that are
3398 symbols. Doc fix.
3399
9676f5ad 34002004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 3401
9676f5ad 3402 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 3403
9676f5ad
JD
3404 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
3405 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 3406 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 3407 format. Remove unused variable cons.
5b698285
JD
3408
3409 * xselect.c: Include stdio,h.
3410
fc1d15f6
KH
34112004-02-05 Kenichi Handa <handa@m17n.org>
3412
ebaff4af
KH
3413 * fns.c (Fset_char_table_range): Fix previous change.
3414
fc1d15f6
KH
3415 * buffer.c (Fset_buffer_multibyte): Fix docstring.
3416
9676f5ad
JD
34172004-02-04 Luc Teirlinck <teirllm@auburn.edu>
3418
3419 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
3420
da75761f
SM
34212004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
3422
3423 * keymap.c (Vmouse_events): Rename from Vmenu_events.
3424 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
3425
13c5d120
KH
34262004-02-04 Kenichi Handa <handa@m17n.org>
3427
3428 * fns.c (Fset_char_table_range): Handle charsets ascii,
3429 eight-bit-control, and eight-bit-graphic correctly.
3430
2883d842
JR
34312004-02-03 Jason Rumney <jasonr@gnu.org>
3432
3433 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
3434
3435 * w32fns.c (x_to_w32_font): Likewise.
3436
69eff41f
JD
34372004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3438
3439 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
3440 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
3441
3442 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
3443 ClientMessages.
3444
3445 * xselect.c: Include termhooks.h and X11/Xproto.h
3446 (x_check_property_data, x_fill_property_data)
3447 (x_property_data_to_lisp, mouse_position_for_drop)
3448 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 3449 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
3450 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
3451
da75761f 3452 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
3453 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
3454 OUTER_P.
3455 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
3456 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
3457 if vector_ret_p is true.
3458 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 3459
a6eeaa81 34602004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
3461
3462 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
3463 basename of FILE relative to it, not FILE itself.
3464
09721b31
KH
34652004-02-02 Kenichi Handa <handa@m17n.org>
3466
3467 * coding.c (coding_restore_composition): Check invalid
3468 composition data more rigidly.
3469
eb996101
LT
34702004-01-30 Luc Teirlinck <teirllm@auburn.edu>
3471
3472 * fileio.c (Fread_file_name_internal): Correctly handle the case
3473 where insert-default-directory is nil.
3474 (Fread_file_name): Always return an empty string if the user exits
3475 with an empty minibuffer. Adapt the docstring accordingly.
3476 (syms_of_fileio): Adapt the docstring of insert-default-directory
3477 to the change in Fread_file_name.
3478
a6eeaa81 34792004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
3480
3481 * alloca.c [!alloca]: Fix the prototype for xfree.
3482
13f52ed8
KH
34832004-01-29 Kenichi Handa <handa@m17n.org>
3484
3485 * fns.c (string_char_to_byte): Optimize for ASCII only string.
3486 (string_byte_to_char): Likewise.
3487
d57625a0
JR
34882004-01-28 Peter Runestig <peter@runestig.com>
3489
3490 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
3491
a64387ee 34922004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
3493
3494 * unexmacosx.c (unexec_copy): Do not copy more than was
3495 requested to prevent overwriting during unexec.
3496
eb37b8fd
JD
34972004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3498
ce38070a
JD
3499 * process.c (sigchld_handler): Add comment about not calling malloc.
3500
eb37b8fd
JD
3501 * process.h: Add extern to synch_process_termsig.
3502
a64387ee 35032004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 3504
da75761f
SM
3505 * macterm.c (make_mac_frame, make_mac_terminal_frame):
3506 Move setting of scroll bars from make_mac_frame to
3507 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 3508
d62a265d
RS
35092004-01-26 Richard M. Stallman <rms@gnu.org>
3510
3511 * search.c (Freplace_match): Handle nonexistent
3512 back-references properly.
3513
35142004-01-03 Richard M. Stallman <rms@gnu.org>
3515
3516 * window.c (decode_any_window): New function.
3517 (Fwindow_height, Fwindow_width, Fwindow_edges)
3518 (Fwindow_pixel_edges, Fwindow_inside_edges)
3519 (Fwindow_inside_pixel_edges): Use decode_any_window.
3520
ff236419
JD
35212004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3522
3523 * process.h: synch_process_termsig new variable.
3524
3525 * callproc.c: Define synch_process_termsig.
3526 (Fcall_process): Initiate synch_process_termsig to zero and
3527 check if non-zero and get signal name after subprocess has ended.
3528
3529 * process.c (sigchld_handler): Set synch_process_termsig
3530 if terminated by a signal. synch_process_death setting removed.
3531
3532 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
3533
41b867ea
AS
35342004-01-26 Andreas Schwab <schwab@suse.de>
3535
3536 * print.c (print_preprocess): Declare size as EMACS_INT to not
3537 lose bits.
3538 (print_object): Likewise.
3539 * alloc.c (Fpurecopy): Likewise.
3540
a08084ff
LT
35412004-01-25 Luc Teirlinck <teirllm@auburn.edu>
3542
3543 * window.c (Fwindow_minibuffer_p): Doc fix.
3544
b19ac475
JY
35452004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
3546
3547 * editfns.c (Fformat): Make both passes accept the same set of flags.
3548
fe905025
KH
35492004-01-23 Kenichi Handa <handa@m17n.org>
3550
3551 * fns.c (Fmd5): If OBJECT is a buffer different from the current
3552 one, set buffer to OBJECT temporarily.
3553
438fc6c0
SM
35542004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3555
455316e2
SM
3556 * keyboard.c (kbd_buffer_gcpro): Remove.
3557 (kbd_buffer_store_event, clear_event, Fdiscard_input)
3558 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
3559 Don't initialize and/or maintain the variable any more. It was made
3560 redundant by my commit of 2003-06-15.
3561
438fc6c0
SM
3562 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
3563
5335a4ee
JD
35642004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3565
3566 * lisp.h: Add undef DECL_ALIGN.
3567
dcdaeebc
SM
35682004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3569
3570 * process.c (wait_reading_process_input) [SYNC_INPUT]:
3571 Check interrupt_input_pending explicitly.
3572
3573 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
3574
3575 * keyboard.c (handle_async_input): New fun,
3576 extracted from input_available_signal.
3577 (input_available_signal, reinvoke_input_signal): Use it.
3578
9076a823
SM
35792004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
3580
d7107586
SM
3581 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
3582
3583 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
3584 manipulation macros for when tags are in the lower bits.
3585 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
3586 (DECL_ALIGN): New macro.
3587 (DEFUN): Use it.
3588
3589 * lisp.h [ENABLE_CHECKING]: Don't force union type.
3590
3591 * s/darwin.h (__attribute__): Remove outdated workaround.
3592
3593 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
3594
3595 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
3596 Don't check range of malloc address.
3597 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
3598
9076a823
SM
3599 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
3600
3601 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
3602
ba029065
KH
36032004-01-19 Kenichi Handa <handa@m17n.org>
3604
3605 * fontset.c (fontset_font_pattern): Fix previous change.
3606
7af0e8d7
MB
36072004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
3608
3609 * xdisp.c (Voverflow_newline_into_fringe)
3610 (move_it_in_display_line_to, redisplay_internal)
3611 (update_window_fringes, redisplay_window, display_line, window):
3612 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
3613 that it compiles without a window-system.
3614 * dispnew.c (direct_output_for_insert, update_window): Likewise.
3615
77a9cf69
KS
36162004-01-16 Kim F. Storm <storm@cua.dk>
3617
3618 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
3619
a64387ee 3620 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
3621 buffer_local_flags for indicate_buffer_boundaries.
3622 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
3623 default- variable for it.
3624
3625 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
3626 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 3627 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
3628 overflowing newlines into right fringe.
3629 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
3630 and indicate_bottom_line_p for buffer boundaries and scrolling.
3631 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
3632 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
3633 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
3634 and HOLLOW_SQUARE_BITMAP.
3635 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
3636 Add prototypes.
3637
3638 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
3639 instead of related indicator fields.
3640 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
3641 (direct_output_for_insert): Handle exact width lines like
3642 contined lines. Call update_window_fringes.
3643 (update_window): Call update_window_fringes.
3644 (scrolling_window): Don't skip desired rows with changed bitmaps.
3645 Check if fringe bitmaps changes when assigning scrolled rows.
3646
3647 * xdisp.c (Voverflow_newline_into_fringe): New variable.
3648 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
3649 (move_it_in_display_line_to): Overflow newline into fringe for
3650 rows that are exactly as wide as the window.
3651 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
3652 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
3653 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
3654 (fringe_bitmaps): Add new bitmaps.
3655 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
3656 Select proper bitmap for cursor in fringe when appropriate.
3657 Handle alignment of bitmap to top or bottom of row.
3658 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
3659 done by update_window_fringes.
3660 (update_window_fringes, draw_window_fringes): New functions.
3661 (redisplay_internal): Call update_window_fringes in case only
3662 cursor row is updated.
3663 (redisplay_window): Call update_window_fringes.
3664 Explicitly call draw_window_fringes if redisplay was done using
3665 the current matrix or the overlay arrow is in the window.
3666 (try_window_reusing_current_matrix): Mark scrolled rows for
3667 fringe update (to update buffer-boundaries / scrolling icons).
3668 (find_last_unchanged_at_beg_row): Handle exact width lines line
3669 continued lines.
3670 (display_line): Overflow newline into fringe for rows that are
3671 exactly as wide as the window. Don't append space for newline
d7107586 3672 in this case.
77a9cf69
KS
3673 (notice_overwritten_cursor): Explicitly clear cursor bitmap
3674 in fringe as if it had been overwritten.
3675 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 3676 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
3677 void-text-area-pointer as user options.
3678 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 3679
77a9cf69
KS
3680 * xterm.c (x_update_window_end): Call draw_window_fringes.
3681 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3682 in row instead of actually drawing fringe bitmaps.
3683 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3684 (x_draw_window_cursor): Draw cursor in fringe.
3685
3686 * w32term.c (x_update_window_end): Call draw_window_fringes.
3687 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3688 in row instead of actually drawing fringe bitmaps.
3689 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3690 (w32_draw_window_cursor): Draw cursor in fringe.
3691
3692 * macterm.c (x_update_window_end): Call draw_window_fringes.
3693 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3694 in row instead of actually drawing fringe bitmaps.
3695 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3696 (mac_draw_window_cursor): Draw cursor in fringe.
3697
a633a954
JD
36982004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3699
3700 * xterm.c (handle_one_xevent): Don't handle characters that are part
3701 of an old style (XLookupString) compose sequence.
3702
80460525
KH
37032004-01-15 Kenichi Handa <handa@m17n.org>
3704
3705 * search.c (Freplace_match): Use make_multibyte_string or
3706 make_unibyte_string according to the buffer multibyteness.
3707
7fc34f85
SM
37082004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3709
3710 * alloc.c (struct interval_block, struct string_block)
3711 (struct symbol_block, struct marker_block, live_string_p)
3712 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3713 Better preserve alignment for objects in blocks.
3714 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3715
3716 * lread.c (defvar_per_buffer): Remove dead declaration.
3717
3718 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3719 space size.
3720
66070bd1
JD
37212004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3722
3723 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
3724 if a key press should pop down. Only pop down if a key is pressed
3725 outside the menu/dialog.
3726 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
3727 popup_get_selection.
3728 (create_and_show_dialog): Pass 1 for down_on_keypress to
3729 popup_get_selection.
3730
de7515d6
JD
37312004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3732
3733 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
3734 BLOCK/UNBLOCK_INPUT.
3735
160b1b50
JD
37362004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3737
3738 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
3739 specified.
3740
3a9f36e6
KH
37412004-01-08 Kenichi Handa <handa@m17n.org>
3742
3743 * editfns.c (Fformat): Fix '&' to '&&'.
3744
3803eb32
AS
37452004-01-08 Andreas Schwab <schwab@suse.de>
3746
3747 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
3748 size if PSEUDOVECTOR_FLAG is set.
3749
9da88f37
KH
37502004-01-07 Kenichi Handa <handa@m17n.org>
3751
74ac5074
KH
3752 * charset.c (Fdeclare_equiv_charset): Fix docstring.
3753
9da88f37
KH
3754 * fontset.c (fontset_ref_via_base): Fix previous change.
3755
05faee07
KS
37562004-01-07 Kim F. Storm <storm@cua.dk>
3757
3758 * process.c (read_process_output): Only activate adaptive
3759 buffering if we read less than 256 bytes at a time.
3760
634910c8
KS
37612004-01-06 Kim F. Storm <storm@cua.dk>
3762
3763 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
3764 object and image object. Return glyph width and height.
3765 (mode_line_string, marginal_area_string): Ditto.
3766
3767 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3768 (marginal_area_string): Fix prototypes.
3769
3770 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 3771 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
3772 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
3773
3774 * keyboard.c (make_lispy_position): Use modified mode_line_string,
3775 buffer_posn_from_coords, and marginal_area_string functions to
3776 include both string object and image object in the lispy position.
3777 Also add actual glyph width and height to position.
3778 (read_key_sequence): Use real buffer position from mouse
3779 event to find keymap property even when click is in marginal area.
3780
3781 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
3782 mode_line_string and marginal_area_string functions to handle
3783 both string object and image object properties.
d7107586 3784
57951c2e
AS
37852004-01-06 Andreas Schwab <schwab@suse.de>
3786
3787 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
3788 character.
3789
181e6a61
AS
37902004-01-02 Andreas Schwab <schwab@suse.de>
3791
d7107586
SM
3792 * macterm.c (emacs_options, x_initialized, same_x_server):
3793 Remove unused (and duplicated) definitions.
181e6a61 3794
31e0fbdd
KS
37952004-01-02 Kim F. Storm <storm@cua.dk>
3796
3797 * process.h (struct Lisp_Process): New members for adaptive read
3798 buffering: adaptive_read_buffering, read_output_delay, and
3799 read_output_skip.
3800
3801 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
3802 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
3803 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
3804 (process_output_delay_count, process_output_skip): New vars.
3805 (Vprocess_adaptive_read_buffering): New variable.
3806 (make_process): Initialize adaptive read buffering members.
3807 (Fstart_process): Set adaptive_read_buffering member.
3808 (deactivate_process): Cleanup adaptive read buffering.
3809 (wait_reading_process_input): Temporarily omit delayed
3810 subprocesses from the set of file descriptors to read from;
3811 adjust the select timeout if we skipped any subprocesses.
3812 (read_process_output): Increase adaptive read buffering delay if
3813 we read less than a full buffer; reduce delay when we read a
3814 full buffer.
3815 (send_process): Simplify using local Lisp_Process var.
3816 Reset adaptive read buffering delay after write.
3817 (init_process): Initialize process_output_delay_count and
3818 process_output_skip.
3819 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
3820
68c6a789
JR
38212004-01-01 Jason Rumney <jasonr@gnu.org>
3822
d7107586 3823 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 3824
3f70fe82
LT
38252003-12-30 Luc Teirlinck <teirllm@auburn.edu>
3826
3827 * print.c (Ferror_message_string): Add hyperlink in the docstring
3828 to the definition of `signal' in the Elisp manual.
3829 * eval.c (Fsignal): Ditto.
3830
a64387ee 38312003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
3832
3833 * fns.c (internal_equal): Return t for two NaN arguments.
3834
7abd90ea
RS
38352003-12-29 Richard M. Stallman <rms@gnu.org>
3836
3837 * data.c (store_symval_forwarding): Handle setting
3838 default-fill-column, etc., by changing the value in
3839 buffers that use the default.
3840
3841 * minibuf.c (Fset_minibuffer_window): Doc fix.
3842
3843 * fileio.c (choose_write_coding_system): Ignore auto_saving
3844 if using the visited file for auto saves.
3845 (Fwrite_region): Don't update SAVE_MODIFF
3846 if auto-saving in visited file.
3847
3e7cfcdc
KH
38482003-12-29 Kenichi Handa <handa@m17n.org>
3849
3850 * dispextern.h (face_font_available_p): Extern it.
3851
3852 * fontset.c (Voverriding_fontspec_alist): New variable.
3853 (lookup_overriding_fontspec): New function.
d7107586 3854 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
3855 (fontset_font_pattern): Likewise.
3856 (regulalize_fontname): New function.
3857 (Fset_fontset_font): Call regulalize_fontname.
3858 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
3859 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
3860 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
3861
3862 * xfaces.c (face_font_available_p): New function.
3863
7abd90ea
RS
38642003-12-28 Richard M. Stallman <rms@gnu.org>
3865
3866 * buffer.c (Fother_buffer): Don't crash if BUF is nil
3867 or if its name is nil.
3868
3869 * buffer.c (Fkill_buffer): Don't delete auto-save file
3870 if it's the same as the visited file.
3871
de1d1a40
LT
38722003-12-28 Luc Teirlinck <teirllm@auburn.edu>
3873
3874 * coding.c (Fcheck_coding_system): Doc fix.
3875
204fb75e
KS
38762003-12-28 Kim F. Storm <storm@cua.dk>
3877
3878 * Makefile.in (eval.o): Depend on dispextern.h.
3879
3880 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
3881 image glyph using image's ascent.
3882 (mode_line_string): Return image glyph as object clicked on.
3883 Adjust y0 for image glyph using image's ascent.
3884
3885 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
3886 (struct glyph): New members, ascent and descent. Used to save
3887 this glyph's ascent and descent, instead of having.
3888 (struct glyph): Declare member face_id using FACE_ID_BITS.
3889 (find_hot_spot): Add prototype.
3890
3891 * keyboard.c (Qimage): Remove extern (now in lisp.h).
3892 (QCmap): Declare extern.
3893 (make_lispy_position): When position is inside image hot-spot,
3894 use hot-spot element's id as posn element.
3895
3896 * lisp.h (IMAGEP): New macro to test for image object type.
3897 (Qimage): Declare extern.
3898
3899 * macfns.c (Qimage): Remove extern (now in lisp.h).
3900 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3901
3902 * macterm.c (Qface, Qmouse_face): Remove unused externs.
3903
3904 * w32fns.c (Qimage): Remove extern (now in lisp.h).
3905 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3906
3907 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
3908
3909 * w32term.c (Qface, Qmouse_face): Remove unused externs.
3910
3911 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
3912 pointer types.
3913 (Qrelative_width, Qalign_to): Remove unused variables.
3914 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
3915 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
3916 image maps.
d7107586 3917 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
3918 new dx and dy args.
3919 Remove buffer_only_p arg (always 0). Simplify code accordingly.
3920 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
3921 than row's ascent and height, to get sensible height on tall rows.
3922 (build_desired_tool_bar_string): Remove Qimage extern.
3923 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
3924 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
3925 image glyph is alone on the last line.
3926 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 3927 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 3928 (on_hot_spot_p): New function to check if position is inside an
d7107586 3929 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
3930 (find_hot_spot): New function to search for image hot-spot.
3931 (Flookup_image_map): New defun to search for image hot-spot.
3932 (define_frame_cursor1): New aux function to determine frame pointer.
3933 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3934 Handle `pointer' text property and :pointer image property to
3935 control frame pointer shape. Detect image hot-spots for pointer
3936 and help_echo properties. Use define_frame_cursor1.
3937 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 3938 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
3939 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
3940
3941 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
3942
3943 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
3944 (Qimage): Remove extern (now in lisp.h).
3945 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3946
3947 * xmenu.c (show_help_event): Remove unused code.
3948
3949 * xterm.c (Qface, Qmouse_face): Remove unused externs.
3950 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
3951 row's ascent and descent, to get a sensible height on tall rows.
3952
fc052137
LT
39532003-12-25 Luc Teirlinck <teirllm@auburn.edu>
3954
3955 * minibuf.c (Fcompleting_read): Undo previous change.
3956
a64387ee 39572003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
3958
3959 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
3960 Arguments GCPRO'ed in call to file name handler.
3961
56ffd194
TTN
39622003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
3963
3964 * termcap.c (tgetst1): Scan for "%pN"; if all
3965 N are continuous in [1,9], remove all "%pN".
3966
5202d23d
JD
39672003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3968
f26fab36
JD
3969 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
3970
5202d23d
JD
3971 * xfaces.c (lface_fully_specified_p): Take into account that
3972 MAC OS always have unspecified stipple.
3973
8babaa59
TTN
39742003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3975
3976 * tparam.c (tparam1): Add handling for `%pN', which
3977 means use param N for the next substitution.
3978
2d176448
TTN
39792003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3980
3981 * xfaces.c (Fcolor_gray_p): Fix omission bug:
3982 In case `frame' is nil, consult the selected frame.
3983 (Fcolor_supported_p): Likewise.
3984
adb0708c
LT
39852003-12-23 Luc Teirlinck <teirllm@auburn.edu>
3986
000eeb15
LT
3987 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
3988 Doc fixes.
0dc72b11
LT
3989
3990 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
3991 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
3992 (Fread_from_minibuffer): Delete code moved into read_minibuf.
3993 Doc fix.
3994 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
3995 read_minibuf.
3996 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 3997 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 3998
2e4d132b
KH
39992003-12-03 Kenichi Handa <handa@m17n.org>
4000
4001 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
4002 encoding sequence.
4003
3999c705
KH
40042003-12-01 Kenichi Handa <handa@m17n.org>
4005
4006 * composite.c (syms_of_composite): Don't make the compostion hash
4007 table week.
4008
d344ecbb
LT
40092003-11-30 Luc Teirlinck <teirllm@auburn.edu>
4010
4011 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
4012 * textprop.c (Fget_char_property_and_overlay): New function.
4013 (syms_of_textprop): Defsubr it.
4014
03d6484e
JD
40152003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4016
019b1f0e
JD
4017 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
4018 to compile on terminal configuration.
4019
03d6484e
JD
4020 * fileio.c (Fread_file_name): Check use_file_dialog also before
4021 calling Fx_file_dialog.
4022
4023 * fns.c: use_file_dialog: New variable.
4024 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
4025
442d3fd0
KS
40262003-11-29 Kim F. Storm <storm@cua.dk>
4027
4028 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
4029 (syms_of_msdos): Don't intern and staticpro them.
4030
0f6a07a8
KS
40312003-11-27 Kim F. Storm <storm@cua.dk>
4032
4033 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
4034 coordinates relative to glyph at posn. If glyph is an image,
4035 return that as object at posn. Callers changed.
4036 (mode_line_string, marginal_area_string): Calculate and return
4037 pixel coordinates relative to glyph. Callers changed.
4038
4039 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4040 (marginal_area_string): Fix prototypes.
4041 (window_box_left_offset, window_box_right_offset): Add prototypes.
4042
4043 * frame.h (get_specified_cursor_type, get_window_cursor_type):
4044 Remove prototypes.
4045
4046 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
4047
4048 * keyboard.c (make_lispy_position): Add x and y coordinates
4049 relative to the current glyph as 7th element of position.
4050 If glyph is an image, return it in the object element.
4051 (read_key_sequence): Skip checks for keymap property in cases
4052 where POSN_STRING is not a string (e.g. an image).
4053
4054 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
4055 (Vshow_text_cursor_in_void): New variable.
4056 (glyph_to_pixel_coords): Don't use negative hpos.
4057 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
4058 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 4059 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
4060 (calc_pixel_width_or_height): New aux function, implementing
4061 pixel based artihmetic for glyph widths and heights.
4062 (produce_stretch_glyph): Use calc_pixel_width_or_height for
4063 :width, :height, :align-to, and :ascent, thus allowing these to
4064 be specified in pixels as well as multiples of characters.
4065 Don't produce stretch glyphs with zero width or height.
4066 (get_specified_cursor_type): Declare static.
4067 (get_window_cursor_type): Declare static. Add glyph arg to be
4068 able to know when cursor is on an image; always substitute
4069 hollow-box cursor for filled-box cursor on images, to avoid
4070 negative images and flicker when blinking the cursor.
4071 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
4072 (note_mode_line_or_margin_highlight): Use non-text cursor rather
4073 than vertical scroll-bar cursor in display margins.
4074 (note_mouse_highlight): Use non-text cursor rather than text
4075 cursor in fringes and over images in the text area.
4076 Use non-text cursor when mouse pointer is outside editable text,
4077 i.e. in the void after end-of-line or end-of-buffer; this was
4078 already done for W32, but is now standard for all systems --
4079 user can toggle show-text-cursor-in-void to get old behaviour.
4080 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
4081 Vdisplay_pixels_per_inch.
4082
00498bfc
AS
40832003-11-25 Andreas Schwab <schwab@suse.de>
4084
4085 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
4086 EMACS_INT to not lose bits.
4087 (Ffillarray): Don't set bits beyond the size of a bool vector.
4088
edaa824d
KS
40892003-11-25 Kim F. Storm <storm@cua.dk>
4090
4091 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
4092 define this defun on systems that cannot use stderr as lvalue.
4093
74d6f539
GM
40942003-11-24 Gerd Moellmann <gerd@gnu.org>
4095
4096 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
4097 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
4098 ld's default is incompatible with unexec.
4099
6a1ff3ba
KS
41002003-11-23 Kim F. Storm <storm@cua.dk>
4101
63dc7c6b
KS
4102 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
4103 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
4104 (Fforce_window_update): New defun.
4105 (syms_of_window): Defsubr it.
4106 (Fset_window_margins, Fset_window_fringes): Doc fix.
4107
6a1ff3ba
KS
4108 * print.c (Fredirect_debugging_output): New defun.
4109 (syms_of_print): Defsubr it.
4110
aef109b7
LT
41112003-11-22 Luc Teirlinck <teirllm@auburn.edu>
4112
4113 * fns.c (Fset_char_table_parent): Doc fix.
4114
6a1ff3ba 41152003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
4116
4117 * dispnew.c (buffer_posn_from_coords): Return actual row/column
4118 for glyph clicked on, rather than (unused) pixel positions.
4119 (mode_line_string, marginal_area_string): Change X and Y args to
4120 pointers for returning actual row/column for glyph clicked on.
4121 Simplify and optimize loops.
4122
aef109b7
LT
4123 * dispextern.h (mode_line_string, marginal_area_string):
4124 Update prototypes.
63ccbe21
KS
4125
4126 * keyboard.c (make_lispy_position): New function for generating
4127 mouse click positions from frame and pixel coordinates.
4128 Enhanced to return buffer position and actual row/column for
4129 events outside the text area using updated mode_line_string and
4130 marginal_area_string functions.
4131 Return left-fringe and right-fringe clicks as such, rather than
4132 clicks in text area.
4133 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
4134 pixel_to_glyph_coords, as we never use the results.
4135 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
4136 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
4137 Eliminate unused code in WHEEL_EVENT handling.
4138 (make_lispy_movement): Use make_lispy_position.
4139
4140 * window.c (coordinates_in_window): Remove redundant tests.
4141 Fix returned X pixel value for left-margin.
4142
4143 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
4144 mode_line_string and marginal_area_string parameters.
4145
a64387ee 41462003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 4147
d7107586
SM
4148 * w32.c (struct the_group, getgrgid): Add.
4149 * mac.c (struct my_group, getgrgid): Add.
aef109b7 4150
3dbf3426
LT
41512003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4152
4153 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
4154
cae8ddbb 41552003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 4156
d7107586
SM
4157 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
4158 include in call to file name handler. Optionally translate numeric
4159 UID and GID to strings. Update docstring.
4160 (directory_files_internal): Add parameter ID-FORMAT.
4161 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
4162 include in call to file name handler and call to
4163 directory_files_internal. Update Docstring.
4164 (Fdirectory_files): Add dummy parameter in call to
4165 directory_files_internal.
4166 * lisp.h (Qinteger): Add.
4167 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
4168 (Ffile_attributes): Add parameter.
4169 * data.c (Qinteger): Export.
cae8ddbb 4170
2550b848
LT
41712003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4172
3dbf3426 4173 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 4174
88380018
KS
41752003-11-19 Kim F. Storm <storm@cua.dk>
4176
4177 * xdisp.c (init_iterator): Initialize it->start to position
4178 before reseating (in case start position is invisible).
4179 (init_to_row_start): Set it->start to row-start.
4180 (redisplay_window): Accept optional_new_start if start position
4181 is invisible (in which case IT_CHARPOS overshoots PT).
4182 (display_line): Setup row->start from it->start (rather than
4183 it->current which is wrong if first char on line is invisible).
4184 When done, reseat it->start to it->current (= start of next row).
4185 (expose_area): Fix exposure of text area when first char (e.g. TAB)
4186 is only partially visible.
4187
4188 * dispextern.h (struct it): New member start.
4189
854c1a59
SM
41902003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4191
455316e2
SM
4192 * alloc.c (make_float, Fcons): Clear the markbit at init time.
4193 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
4194 of block_index outside of the macro call.
4195 (Fgarbage_collect): Remove null code.
4196
4197 * m/amdx86-64.h: Don't redefine XPNTR.
4198
854c1a59
SM
4199 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
4200 of VALMASK.
4201
4202 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
4203 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
4204 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
4205
4206 * lisp.h (VALMASK): Only define for non-union type.
4207 (MARKBIT): Remove.
4208 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
4209 (XTYPE): Define unconditionally.
4210 (XSETTYPE): Remove one more remnant.
4211 (EQ): Define differently for the union and non-union cases.
4212 (INTMASK): New bit mask.
4213 (struct Lisp_Marker): Move down to prepare for upcoming patch.
4214 (GC_EQ): Delegate to EQ.
4215
4216 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
4217
a0c6ef2d
JD
42182003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4219
4220 * xterm.c (x_window_to_scroll_bar): Move check of display to
4221 where window_id is compared.
4222
859492c4
KS
42232003-11-17 Kim F. Storm <storm@cua.dk>
4224
4225 * dispextern.h (struct it): New member first_vpos.
4226
4227 * xdisp.c (start_display): Set it->first_vpos.
4228 (try_window_id): Use first_vpos to start display in first _text_
4229 line if no reusable lines at start of window with header line.
4230
810f2256
JD
42312003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4232
7c402969 4233 * w32fns.c (XPutPixel):
854c1a59
SM
4234 * w32bdf.c (w32_init_bdf_font):
4235 * sunfns.c (sel_read):
4236 * process.c (Fmake_network_process):
4237 * frame.c (store_frame_param):
4238 * fontset.c (Fset_fontset_font):
4239 * emacs.c (shut_down_emacs):
a64387ee 4240 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 4241
a32e9bfd
JD
4242 * config.in: Regenerate.
4243
810f2256
JD
4244 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4245 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4246 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
4247 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
4248 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
4249
4250 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
4251
4252 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
4253 (XTmouse_position, handle_one_xevent): Pass Display* to
4254 x_window_to_scroll_bar.
4255 (x_window_to_scroll_bar): Take a Display* argument.
4256 Check that display for frame is equal to Display* argument.
854c1a59 4257 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
4258 x_display_info_for_display instead. Use Display in xev instead
4259 of GDK_DISPLAY.
4260 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 4261 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
4262 (x_connection_closed): Call xg_display_close for GTK.
4263 (x_term_init): Call xg_display_open for additional displays.
4264 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
4265 for GTK.
4266
4267 * xmenu.c (single_menu_item, mouse_position_for_popup)
4268 (x_activate_menubar): Formatting adjustments.
4269
4270 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
4271 adjustments.
4272
4273 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
4274 (xg_display_close, xg_create_default_cursor)
4275 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
4276 handling.
854c1a59
SM
4277 (xg_left_ptr_cursor): Remove.
4278 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
4279 cursor here.
4280 (xg_win_to_widget): Take Display* argument, call
4281 gdk_xid_table_lookup_for_display.
4282 (xg_create_frame_widgets, xg_get_file_name, create_menus)
4283 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
4284 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
4285 in FRAME_X_DISPLAY_INFO.
4286 (xg_get_scroll_id_for_window): Take Display* argument.
4287 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 4288 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
4289
4290 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
4291 Display* argument also. Declare xg_display_open,
4292 xg_display_close, xg_create_default_cursor.
4293
0b03cc78
JD
42942003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4295
4296 * xterm.c (x_detect_focus_change): Do not change focus frame for
4297 Enter/LeaveNotify if the current focus frame has explicit focus.
4298
77e688fa
KS
42992003-11-14 Kim F. Storm <storm@cua.dk>
4300
4301 * dispnew.c (update_text_area): Fix redisplay error when hscroll
4302 is active and first glyph is only partially visible.
854c1a59 4303
dd429b03
KH
43042003-11-13 Kenichi Handa <handa@m17n.org>
4305
4306 * xdisp.c (select_frame_for_redisplay): New function.
4307 (redisplay_internal): Record also selected_frame for
4308 unwind_redisplay. Call select_frame_for_redisplay before
4309 redrawing each frame.
4310 (unwind_redisplay): Argument changed to a cons.
4311
6d9266f4
LT
43122003-11-12 Luc Teirlinck <teirllm@auburn.edu>
4313
4314 * fns.c (Fstring_to_multibyte): Doc fix.
4315
80060eb3
KH
43162003-11-11 Kenichi Handa <handa@m17n.org>
4317
4318 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
4319
74305183
JD
43202003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4321
4322 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
4323 program specified positions.
4324
cfda993e
JD
43252003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4326
4327 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
4328
df211069
KH
43292003-11-08 Kenichi Handa <handa@m17n.org>
4330
4331 * Makefile.in (lisp): Add kannada.el.
4332 (shortlisp): Likewise.
4333
4307d534
KH
43342003-11-07 Kenichi Handa <handa@m17n.org>
4335
854c1a59
SM
4336 * coding.c (coding_allocate_composition_data):
4337 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
4338 (coding_restore_composition): Detect invalid composition data.
4339 Give Fstring and Fvector a Lispy integer, not C int.
4340
854c1a59
SM
43412003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
4342
4343 * floatfns.c (Flogb): Don't use VALMASK.
4344
4345 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
4346 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
4347
4348 * lisp.h (XINT): Move the cast to clarify what is going on.
4349 (GCTYPEMASK, XSETTYPE): Remove.
4350 (XGCTYPE): Make it an alias of XTYPE.
4351
d04103a1
JD
43522003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4353
4354 * xterm.c (x_term_init): Fix formatting.
4355
da18b5ac
JD
43562003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4357
4358 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
4359 and xg_did_tearoff.
4360
4361 * gtkutil.c: Remove variable xg_did_tearoff.
4362 (xg_have_tear_offs): New function.
4363 (tearoff_remove): Just decrease xg_detached_menus.
4364 (tearoff_activate): Increase xg_detached_menus and call
4365 tearoff_remove when tearoff is removed.
854c1a59 4366 (xg_keep_popup): Remove function.
da18b5ac
JD
4367 (create_menus): Give add_tearoff_p as argument to recursive
4368 call to create_menus.
4369 (xg_create_widget): Use variables instead of multiple
4370 strcmp. Tell create_menus to create tear off only for
4371 menu bar menus.
4372 (xg_update_menubar): Change title for a detached menu also.
4373 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
4374 of deep_p.
4375 (xg_initialize): Initialize xg_detached_menus, remove
4376 initialization of xg_did_tearoff.
4377
4378 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
4379 xg_have_tear_offs returns non-zero.
4380 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
4381 call to xg_keep_popup.
4382
64d4923e
AC
43832003-11-01 Andrew Choi <akochoi@shaw.ca>
4384
4385 * macterm.c (XTread_socket): Handle menubar selection and grow
4386 window only for mouseDown events.
854c1a59 4387
6cc8bc07
JD
43882003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4389
4390 * xterm.c (x_term_init): For GTK part, increase x_initialized
4391 to check for more than one display. Use error instead of return 0.
4392
043131c4
AC
43932003-10-31 Andrew Choi <akochoi@shaw.ca>
4394
854c1a59 4395 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
4396 (copy_dysymtab): Call it.
4397
bdda99a1
LT
43982003-10-31 Luc Teirlinck <teirllm@auburn.edu>
4399
4400 * eval.c (Fdefvaralias): Doc fix.
4401
800f42ff 44022003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
4403
4404 * data.c (Fsetplist): Doc fix.
4405
ef35b389
LK
44062003-10-14 Lute Kamstra <lute@gnu.org>
4407
4408 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 4409
ef35b389 44102003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 4411
07107abc
KS
4412 * window.c (Fset_window_margins): Simplify arg checking.
4413
f7005886
RS
44142003-10-13 Richard M. Stallman <rms@gnu.org>
4415
4416 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
4417 (print_partial_compiled_pattern): Replace assert with a printout.
4418 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
4419
4420 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
4421
4422 * window.c (Fset_window_margins): Allow only integers as args.
4423 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
4424 Doc fixes.
4425
9c0c2af5
LK
44262003-10-13 Lute Kamstra <lute@gnu.org>
4427
4428 * window.c (Fset_window_fringes): Elaborate docstring.
4429
3f080e4e
AC
44302003-10-12 Andrew Choi <akochoi@shaw.ca>
4431
854c1a59 4432 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 4433
3f080e4e
AC
4434 * s/darwin.h (GC_MARK_STACK): Define.
4435
0aa513ed
JD
44362003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4437
4438 * window.c (shrink_windows): New function.
4439 (size_window): Call shrink_windows to calculate window sizes when
4440 shrinking frame with more than one window.
4441
6aa8858a
KS
44422003-10-12 Kim F. Storm <storm@cua.dk>
4443
4444 * xdisp.c (compute_fringe_widths): Doc fix.
4445
c2164d91
KH
44462003-10-08 Kenichi Handa <handa@m17n.org>
4447
854c1a59 4448 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 4449
f82ac129
KH
44502003-10-07 Kenichi Handa <handa@m17n.org>
4451
4452 * coding.c (Qcoding_system_define_form): New variable.
4453 (syms_of_coding): Intern and staticpro it.
4454 (Fcheck_coding_system): Try to autoload the definition of
4455 CODING-SYSTEM.
4456
9296c947
LT
44572003-10-05 Luc Teirlinck <teirllm@auburn.edu>
4458
4459 * fns.c (Frequire): Doc fix.
4460
c1f0671a
JD
44612003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4462
3d8c3826
JD
4463 * xfns.c (Fx_send_client_event): New function as a base for
4464 manipulating extended window manager hints.
6dc15d98 4465 (Fx_send_client_event): Remove unused variable s.
3d8c3826 4466
068ae0fd
JD
4467 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
4468 that function is removed.
4469
4470 * xterm.c (x_set_offset): Use move_offset_left/top instead of
4471 x/y_pixels_outer_diff.
4472 (x_check_expected_move): Calculate move_offset_left/top.
4473
4474 * xterm.h (struct x_output): New members: move_offset_top/left.
4475
854c1a59 4476 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
4477 call x_set_offset directly.
4478
4479 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
4480
96f09305
JD
4481 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
4482
4483 * xterm.c (x_delete_display): Free font names and font_encoder
4484 in dpyinfo->font_table.
4485
854c1a59
SM
4486 * xfns.c (Fx_close_connection): Only call XFreeFont here.
4487 Move xfree of font names to x_delete_display.
96f09305 4488
c1f0671a
JD
4489 * xterm.h (struct x_display_info): New member, wm_type.
4490 (struct x_output): New members, expected_top/left and
4491 check_expected_move.
4492
4493 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
4494 is received.
854c1a59
SM
4495 (handle_one_xevent): Rename x_check_expected_move from
4496 x_check_fullscreen_move.
c1f0671a
JD
4497 (x_set_offset): Only add WM decoration sizes to modified_top/left
4498 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 4499 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
4500 Removed fullscreen specific code. Use check_expected_move,
4501 expected_left/top instead. Also, set wm_type.
4502 (x_term_init): Initialize wm_type to unknown.
4503
4504 * frame.c (x_fullscreen_move): Remove addition of WM decoration
4505 sizes to move_x/y.
4506
be2fdba9
KH
45072003-10-03 Kenichi Handa <handa@m17n.org>
4508
4509 * macterm.c (x_load_font): Clear all members of FONTP before start
4510 filling them.
4511
45122003-10-02 Kenichi Handa <handa@m17n.org>
4513
4514 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
4515 before calling find_ccl_program_func. Call find_ccl_program_func
4516 only when fontp->font_encoder is not NULL.
4517
4518 * xterm.c (x_load_font): Clear all members of FONTP before start
4519 filling them.
4520
26a6e439
JPW
45212003-10-03 John Paul Wallington <jpw@gnu.org>
4522
4523 * keymap.c (map_keymap): Don't abort when binding is a vector.
4524
0d4c2dc2
JR
45252003-10-02 Jason Rumney <jasonr@gnu.org>
4526
854c1a59
SM
4527 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
4528 Sync dependencies with Makefile.in.
a63cf46f
JR
4529 (alloca.o): Remove.
4530
0d4c2dc2
JR
4531 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
4532 filling them.
4533
4534 * w32bdf.c (w32_load_bdf_font): Likewise.
4535
ab8f7d5c
RS
45362003-09-30 Richard M. Stallman <rms@gnu.org>
4537
4538 * term.c (set_tty_color_mode): Calculate current_mode_spec
4539 regardless of value of VAL.
4540
854c1a59 4541 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
4542 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
4543 Handle over_used when splitting UNDER.
4544
a64387ee 45452003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
4546
4547 * regex.c (regex_compile): Free the stack when returning from function.
4548
3413f972
KH
45492003-09-28 Kenichi Handa <handa@m17n.org>
4550
4551 * fontset.c (Finternal_char_font): Change return value to
4552 cons (FONT-NAME . GLYPH-CODE).
4553
a6eeaa81 45542003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
4555
4556 * term.c (tty_setup_colors): Treat any negative argument as -1.
4557
f98ddc99
KH
45582003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
4559
4560 * process.c (send_process): Delete unused temp_buf.
4561
66c8f1a8
DL
45622003-09-26 Dave Love <fx@gnu.org>
4563
4564 * xterm.c (x_bitmap_mask): Declare.
4565
ca716c26
DL
45662003-09-25 Dave Love <fx@gnu.org>
4567
4568 * Makefile.in (fns.o): Depend on md5.h.
4569
fbe57420
KS
45702003-09-25 Kim F. Storm <storm@cua.dk>
4571
4572 * window.c (set_window_buffer): Fix redisplay problems when
4573 switching between buffers with different display margin widths.
4574
ef6ae4ff
KS
45752003-09-23 Kim F. Storm <storm@cua.dk>
4576
4577 * process.c (set_socket_option): Fix :bindtodevice option.
4578 (Fset_network_process_option): Update process contact list when
4579 setting option succeeds.
4580 (Fmake_network_process): Doc fix.
4581
68e03c1c
DL
45822003-09-23 Dave Love <fx@gnu.org>
4583
7146d1c1 4584 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 4585
a6eeaa81 45862003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
4587
4588 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
4589 color mode is an integer number (it could be -1).
4590
8fe7d8c8
RS
45912003-09-22 Richard M. Stallman <rms@gnu.org>
4592
4593 * intervals.c (graft_intervals_into_buffer): Correct the main loop
4594 in the case where OVER is longer than UNDER.
4595
2f71b5ea
MY
45962003-09-22 Masatake YAMATO <jet@gyve.org>
4597
7146d1c1 4598 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 4599 `vertical_type'.
7146d1c1 4600
0c4da023
KS
46012003-09-21 Kim F. Storm <storm@cua.dk>
4602
4603 * frame.c (Vdefault_frame_scroll_bars): New variable.
4604 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
4605 (syms_of_frame): DEFVAR_LISP it, and initialize according to
4606 window-system default scroll bar position.
4607
b648413b
KS
4608 * window.c (Fwindow_scroll_bars): Doc fix.
4609
8f5b9e34
JD
46102003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4611
854c1a59 4612 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 4613
b0f23edf
RS
46142003-09-19 Richard M. Stallman <rms@gnu.org>
4615
4616 * atimer.h: Don't include lisp.h.
4617 (P_): Define it here (as well as elsewhere).
4618
4619 * print.c (Fprin1_to_string): Move the PRINTPREPARE
4620 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
4621
4622 * data.c (Fvariable_binding_locus): New function.
4623 (syms_of_data): defsubr it.
4624 (Flocal_variable_p): Delete duplicate call to indirect_variable.
4625
e1283999
DL
46262003-09-18 Dave Love <fx@gnu.org>
4627
ad5f3636
DL
4628 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
4629
e1283999
DL
4630 * process.c (Fnetwork_interface_info): Fix type error.
4631 (Fnetwork_interface_list): Doc fix.
4632 (read_process_output, read_process_output): Delete unused var.
4633
b8c7fd71
KS
46342003-09-17 Kim F. Storm <storm@cua.dk>
4635
4636 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
4637 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
4638 (Fnetwork_interface_info): Check that ifreq struct has required
4639 fields before accessing them; this requires that those fields are
4640 defined as macros, which may be too restrictive on some platforms,
4641 but it is better than failing on other platforms.
4642 (syms_of_process): Only defsubr above fns when included.
4643
11e0a411
DL
46442003-09-17 Dave Love <fx@gnu.org>
4645
4646 * unexalpha.c: Don't include varargs.h.
4647
e9c50801
KS
46482003-09-17 Kim F. Storm <storm@cua.dk>
4649
4650 * process.c (Fset_process_sentinel): Add sentinel to childp plist
4651 for network process.
4652 (socket_options): Add `:' prefix to option names. Add optbit field.
4653 (set_socket_option): Remove no_error arg and special handling of s < 0.
4654 Return 1<<optbit for known option, 0 for unknown.
4655 Do not interpret 0 as false for boolean option (only nil).
4656 Pass failed option and value to report_file_error.
7146d1c1 4657 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
4658 (Fset_network_process_option): New function to set just one option.
4659 (Fmake_network_process): Allow :coding arg to be a cons.
4660 Allow :server arg to be an integer specifying backlog size.
4661 Remove :options arg, and allow options to be specified directly
4662 as :KEY, VALUE pairs. Parse these options before binding socket.
4663 As before, :reuseaddr t is default for a server process, but this
4664 can now be disabled by specifying :reuseaddr nil.
4665 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
4666 (init_process): Availability of network options is now checked with
4667 simpler syntax (featurep 'make-network-process :OPTION); use loop to
4668 setup features.
4669 (syms_of_process): Fix defsubr's for the replaced functions.
4670
a0fc3644
DL
46712003-09-16 Dave Love <fx@gnu.org>
4672
4673 * Makefile.in: Depend on coding.h.
4674
6df2a645
KS
46752003-09-14 Kim F. Storm <storm@cua.dk>
4676
4677 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
4678 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
4679 (syms_of_process): Defsubr them.
4680
4681 * config.in: Regenerate.
7146d1c1
SM
4682
46832003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4684
4685 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
4686 * m/news-r6.h (XUNMARK): Remove.
4687 * m/mips.h (XUNMARK): Remove.
4688 * m/mips-siemens.h (XUNMARK): Remove.
4689 * m/iris4d.h (XUNMARK): Remove.
4690 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4691
0930c1a1
SM
46922003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4693
31003b9e
SM
4694 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4695 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4696 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4697 (XTYPE): Use unsigned right-shift.
4698 (XMARKBIT, XMARK, XUNMARK): Remove.
4699
0930c1a1
SM
4700 * alloc.c (init_intervals, init_symbol, init_marker):
4701 Don't preallocate anything.
4702 (Fgarbage_collect, mark_object): Ignore the markbit.
4703
4704 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4705
19bb0fcd 47062003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
4707
4708 * xdisp.c (pint2hrstr): New function.
4709 (decode_mode_spec): Add `%i' and `%I' specs.
4710 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4711 for `mode-line-format'.
4712
03bb6a06
AS
47132003-09-07 Andreas Schwab <schwab@suse.de>
4714
4715 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4716 avoid warning.
4717
a6eeaa81 47182003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 4719
0930c1a1 4720 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 4721
ed159bbf
KS
47222003-09-03 Kim F. Storm <storm@cua.dk>
4723
4724 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
4725 change (superseded by 2002-08-30 change); the default blink-off
4726 cursor is now again "no cursor".
4727
fe64a394
JR
47282003-09-01 Jason Rumney <jasonr@gnu.org>
4729
4730 * makefile.w32-in (alloca.o): Remove.
4731 (coding.o): Depend on intervals.h
4732 (emacs.o, bytecode.o): Depend on window.h
4733
c0175e24
DL
47342003-09-01 Dave Love <fx@gnu.org>
4735
4736 * Makefile.in (alloca.o): Remove commands.
4737 (coding.o): Depend on intervals.h composite.h window.h.
4738 (emacs.o): Depend on window.h keyboard.h keymap.h.
4739 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
4740 (bytecode.o): Depend on window.h.
4741
a24d4cb2
JR
47422003-08-31 Jason Rumney <jasonr@gnu.org>
4743
4bc2315e
JR
4744 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4745 returned even when font_type is unknown.
4746
a24d4cb2
JR
4747 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4748
9d35adc7
JD
47492003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4750
4751 * xterm.c (x_term_init): Initialize new fields in x_display_info.
4752
4753 * xterm.h (struct x_display_info): Add red/green/blue_bits and
4754 *_offset.
4755
4756 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
4757 calculate pixel value.
4758
6f68b035
GM
47592003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
4760
0930c1a1
SM
4761 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
4762 Don't tell redisplay display is accurate when it's actually been
4763 paused for pending input.
6f68b035 4764
4828b4d7
RS
47652003-08-29 Richard M. Stallman <rms@gnu.org>
4766
4767 * dispnew.c (adjust_glyph_matrix): Call window_box
4768 whenever W is nonzero.
4769
4770 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4771 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 4772 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
4773 Use indirect_variable to trace thru variable aliases.
4774
4775 * config.in: Updated.
4776
4777 * callint.c (Fcall_interactively): Save and restore
4778 Vthis_command, Vthis_original_command, real_this_command,
4779 and current_kboard->Vlast_command.
4780
4781 * abbrev.c (Fexpand_abbrev): Insert before deleting.
4782
e019878d
GM
47832003-08-29 Gerd Moellmann <gerd@gnu.org>
4784
4785 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
4786
85478bc6
KH
47872003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
4788
0930c1a1 4789 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
4790 (decode_coding_sjis_big5): Likewise.
4791
07ce82d3
JR
47922003-08-27 Jason Rumney <jasonr@gnu.org>
4793
d3703de3
JR
4794 * w32.c (sys_pipe): Protect against file descriptor overflow.
4795
ee4a01d1
JR
4796 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
4797
07ce82d3
JR
4798 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
4799
a64387ee 48002003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
4801
4802 * xfns.c (Vgtk_version_string): New variable.
4803 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
4804
a6eeaa81 48052003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 4806
0930c1a1 4807 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 4808
5459e42a
EZ
4809 * Makefile.in (msdos.o): Depend on intervals.h.
4810
0930c1a1 4811 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 4812
231d6cfb
JD
48132003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4814
4815 * xterm.h (struct x_display_info): New fields: client_leader_window
4816 and Xatom_wm_client_leader.
4817
4818 * xterm.c (x_initialize): Move call to x_session_initialize to ...
4819 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
4820
4821 * xsmfns.c (create_client_leader_window): New function.
4822 (x_session_initialize): Call create_client_leader_window, take
4823 dpyinfo as argument.
4824
4825 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
4826
4827 * Makefile.in (xsmfns.o): Add more depenedencies.
4828
afa88464
DL
48292003-08-21 Dave Love <fx@gnu.org>
4830
4831 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
4832
f730033e
KH
48332003-08-21 Kenichi Handa <handa@m17n.org>
4834
4835 * term.c (term_init): Fix previous change; don't rely on the
4836 length of `buffer' if TERMINFO is defined.
4837
6dca786c
DL
48382003-08-20 Dave Love <fx@gnu.org>
4839
4840 * atimer.h: Include lisp.h.
4841
4842 * lisp.h (EMACS_LISP_H): New.
4843 (popup_activated_flag): Don't declare.
4844
4845 * alloca.c: Some merging with gnulib. Change logic and doc
4846 concerning (x)malloc/(x)free -- no longer Emacs-specific.
4847 [DO_BLOCK_INPUT]: Don't include lisp.h.
4848 (xmalloc, xfree): Declare.
4849 (malloc): Don't declare.
4850
0930c1a1 4851 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
4852 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
4853 atimer.h, blockinput.h.
4854
4855 * alloc.c (lisp_align_malloc): Change type of `aligned'.
4856
4857 * alloca.s: Removed.
4858
3a06a6d9
RS
48592003-08-19 Gerd Moellmann <gerd@gnu.org>
4860
4861 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
4862 use -lncurses.
4863
4864 * term.c (term_init): Use a buffer of size 4096 for tgetent since
4865 FreeBSD returns something longer than 2044. Abort if the end of
4866 the buffer is overwritten.
4867
27eeee55
MB
48682003-08-19 Miles Bader <miles@gnu.org>
4869
4870 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
4871
2f297815
GM
48722003-08-19 Gerd Moellmann <gerd@gnu.org>
4873
f4446bbf
GM
4874 * alloc.c (lisp_align_malloc): Check for memory full when
4875 allocating ablocks, which also avoids freeing a pointer into an
4876 ablocks structure.
4877
4878 * puresize.h (BASE_PURESIZE): Increase to 1100000.
4879
0930c1a1 4880 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 4881
0e7d7aae
RS
48822003-08-16 Richard M. Stallman <rms@gnu.org>
4883
4884 * editfns.c (Fencode_time): Doc fix.
4885
48862003-08-16 David Ponce <david@dponce.com>
4887
4888 * fileio.c (Fwrite_region): Fix conditional expression to issue
4889 the right message.
4890
48912003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
4892
4893 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 4894 Set default value to 1.
0e7d7aae 4895
5d551295
KH
48962003-08-15 Kenichi Handa <handa@m17n.org>
4897
4898 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
4899 what autoscaled.
4900 (best_matching_font): Once we find a better scalable font, set
4901 non_scalable_has_exact_height_p to 1.
4902 (try_font_list): Call try_alternative_families to try any family
4903 with the given registry.
4904
1661e56b
AS
49052003-08-09 Andreas Schwab <schwab@suse.de>
4906
f29181dc
AS
4907 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
4908
1661e56b
AS
4909 * print.c (print_string): Fix printing of multibyte string with
4910 nontrivial printcharfun.
4911
465aa50a
JD
49122003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4913
4914 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
4915
4916 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
4917
e430e5ba
KH
49182003-07-31 Kenichi Handa <handa@m17n.org>
4919
4920 * process.c (read_process_output): Return the actually read bytes
4921 instead of the result of decoding.
4922
97e7188e
KH
49232003-07-31 Kenichi Handa <handa@m17n.org>
4924
4925 * xterm.h (struct x_bitmap_record): New member have_mask.
4926
4927 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
4928 to 0.
4929 (x_create_bitmap_from_file): Likewise.
4930 (x_destroy_bitmap): Check have_mask member before freeing a mask.
4931 (x_destroy_all_bitmaps): Likewise.
4932 (x_create_bitmap_mask): Set have_mask member to 1.
4933
b53094d6
RS
49342003-07-30 Richard M. Stallman <rms@gnu.org>
4935
4936 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
4937
631f2082
JD
49382003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4939
4940 * gtkutil.c (xg_mark_data): Update calls to mark_object.
4941
c855f2ca
RS
49422003-07-29 Richard M. Stallman <rms@gnu.org>
4943
4944 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
4945 Conditionalize XIM code on HAVE_XIM.
4946
4947 * fns.c (Fclear_string): New function.
4948 (syms_of_fns): defsubr it.
4949
17e6d491
KH
49502003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
4951
0930c1a1 4952 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 4953
29ea8ae9
SM
49542003-07-22 Stefan Monnier <monnier@cs.yale.edu>
4955
4956 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
4957
4958 * buffer.c (delete_all_overlays): New function.
4959 * buffer.h (delete_all_overlays): Declare.
4960 * coding.c (run_pre_post_conversion_on_str):
4961 * print.c (temp_output_buffer_setup):
4962 * fileio.c (Finsert_file_contents):
4963 * minibuf.c (get_minibuffer): Use it.
4964
1dd7ccf2
AC
49652003-07-22 Andrew Choi <akochoi@shaw.ca>
4966
4967 * unexmacosx.c (unexec_regions_sort_compare):
4968 (unexec_regions_merge): New functions. Sort and merge unexec
4969 regions before dumping them.
4970
f57bd967
DL
49712003-07-22 Dave Love <fx@gnu.org>
4972
4973 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
4974
7cdee936
SM
49752003-07-21 Stefan Monnier <monnier@cs.yale.edu>
4976
4977 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
4978 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
4979 MARKBIT as the gcmarkbit for strings.
4980
e50886d3
RS
49812003-07-21 Richard M. Stallman <rms@gnu.org>
4982
4983 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
4984
29ea8ae9 4985 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
4986 (syms_of_fns): Corresponding change.
4987
4988 * alloc.c (syms_of_alloc): Doc fixes.
4989
49902003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
4991
4992 * s/netbsd.h: Use -Wl syntax.
4993
fdc39b59
RS
49942003-07-17 Richard M. Stallman <rms@gnu.org>
4995
4996 * xterm.c (xim_initialize): Redo 6/24 change.
4997
9c53385f
SM
49982003-07-15 Stefan Monnier <monnier@cs.yale.edu>
4999
5000 * buffer.c (copy_overlays): Use EMACS_INT for positions.
5001 (Fswitch_to_buffer): Don't signal an error when switching to the same
5002 buffer in a dedicated window.
5003
5004 * alloc.c: Use bitmaps for cons, as was done for floats.
5005 (init_float, init_cons): Let the normal code allocate the first block.
5006 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
5007 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
5008 New macros.
5009 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
5010 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
5011 (live_cons_p): Check the pointer is not past the `conses' array.
5012 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
5013 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
5014 (survives_gc_p): Use CONS_MARKED_P and simplify.
5015 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
5016
dde13196
PE
50172003-07-13 Paul Eggert <eggert@twinsun.com>
5018
5019 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
5020 puts it into BSS instead, at least on Solaris 8 and 9.
5021 This is a valid optimization, and it may occur on other platforms,
5022 so Emacs should not assume that initializing a static variable to
5023 zero puts it into data.
5024 * alloc.c (pure, staticvec):
5025 Initialize these arrays to nonzero, so that they're not
5026 put into BSS by that optimization.
5027
a801bc34
SM
50282003-07-13 Stefan Monnier <monnier@cs.yale.edu>
5029
5030 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
5031 (lisp_align_malloc): Use posix_memalign is available.
5032 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
5033 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
5034 for consistency. Update users.
5035
0c8b2afa
RS
50362003-07-13 Richard M. Stallman <rms@gnu.org>
5037
5038 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
5039
668c2ab0
JB
50402003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
5041
5042 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
5043 and use the Gtk+ function gtk_window_icon_from_file if available.
5044
5045 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
5046 handle mask of bitmaps.
5047 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
5048 mask property.
5049 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
5050
5051 * xterm.h (xg_set_icon): New function.
5052
800bebe3
RS
50532003-07-12 Paul Eggert <eggert@twinsun.com>
5054
5055 * unexelf.c (unexec): Consider a section to precede the .bss
5056 section if its addresses overlap that of .bss.
5057
69e38995
RS
50582003-07-12 Richard M. Stallman <rms@gnu.org>
5059
5060 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
5061
5062 * config.in (HAVE_CRTIN): Add #undef.
5063 (INLINE): Really inline only if OPTIMIZE is defined.
5064
5065 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
5066 END_FILES_1.
5067 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 5068 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
5069
5070 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
5071 (TERMINFO): Define.
5072 (LIBS_TERMCAP): Define.
5073 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
5074
5075 * xfns.c: Include libpng/png.h instead of png.h.
5076
f1d0c238
AS
50772003-07-11 Andreas Schwab <schwab@suse.de>
5078
5079 * buffer.c (modify_overlay): Update prototype.
5080 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
5081 Likewise.
5082
5f6bf5fe
SM
50832003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5084
5085 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
5086 (struct interval): Move to intervals.h.
5087 (struct Lisp_Marker): Use EMACS_INT for position info.
5088 (forward_point): Remove prototype of defunct function.
5089 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
5090 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
5091 (syms_of_textprop, set_text_properties): Remove prototypes that are
5092 already in intervals.h.
5093
5094 * intervals.h (struct interval): Move from lisp.h.
5095 Use EMACS_INT for position and size info.
5096
5097 * coding.c: Include intervals.h for Fset_text_properties.
5098
5099 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5100 position and length information.
5101
2765b457
SM
51022003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5103
5104 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5105 position and length information.
5106
2410d73a
SM
51072003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5108
5109 Change overlays_after and overlays_before so the overlays themselves
5110 are linked into lists, rather than using cons cells. After all each
5111 Lisp_Misc already occupies 5 words, so we can add a `next' field to
5112 Lisp_Overlay for free and save up one cons cell per overlay (not
5113 to mention one indirection when traversing the list of overlay).
5114
5115 * lisp.h (struct Lisp_Overlay): New field `next'.
5116
5117 * buffer.h (struct buffer): Change overlays_before and overlays_after
5118 from Lisp lists of overlays to pointers to overlays.
5119
5120 * buffer.c (overlay_strings, recenter_overlay_lists):
5121 Fix typo in eassert in last commit.
5122 (unchain_overlay): New function.
5123 (add_overlay_mod_hooklist): Use AREF.
5124 (copy_overlays, reset_buffer, overlays_at, overlays_in)
5125 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
5126 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
5127 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
5128 (report_overlay_modification, evaporate_overlays, init_buffer_once):
5129 Adjust to new type of overlays_(before|after).
5130
5131 * alloc.c (mark_object): Mark the new `next' field of overlays.
5132 (mark_buffer): Manually mark the overlays_(after|before) fields.
5133
5134 * coding.c (run_pre_post_conversion_on_str):
5135 * editfns.c (overlays_around):
5136 * xdisp.c (load_overlay_strings):
5137 * fileio.c (Finsert_file_contents):
5138 * indent.c (current_column):
5139 * insdel.c (signal_before_change, signal_after_change):
5140 * intervals.c (set_point_both):
5141 * print.c (temp_output_buffer_setup): Use new type for
5142 overlays_(before|after).
5143
04812929
SM
51442003-07-08 Stefan Monnier <monnier@cs.yale.edu>
5145
5146 * buffer.c (report_overlay_modification): Don't run hooks while
5147 traversing the list of overlays.
5148
5149 * buffer.h (struct buffer): Use an int for overlay_center.
5150 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5151 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5152
5153 * buffer.c (reset_buffer, recenter_overlay_lists)
5154 (adjust_overlays_for_insert, adjust_overlays_for_delete)
5155 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
5156 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
5157 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5158 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5159
5160 * xdisp.c (fast_find_position): Remove unused var.
5161
5162 * cmds.c (Qexpand_abbrev): New sym.
5163 (syms_of_cmds): Initialize it.
5164 (internal_self_insert): Use it to call expand-abbrev.
5165
2e7ecf15
KS
51662003-07-09 Kim F. Storm <storm@cua.dk>
5167
f9711de4 5168 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 5169 was configured with --without-xim.
42f81f64 5170 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 5171
c6de56a0
RS
51722003-07-07 Richard M. Stallman <rms@gnu.org>
5173
5174 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
5175
5176 * alloc.c (Fgarbage_collect): Doc fix.
5177
b93fb365
KH
51782003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
5179
5180 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
5181
bfe1a3f7
SM
51822003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5183
04812929
SM
5184 * minibuf.c (read_minibuf): UNGCPRO before returning.
5185 (Ftry_completion, Fall_completions): Doc fix.
5186
bfe1a3f7
SM
5187 * alloc.c (live_float_p): Check that p is not past the `floats' array,
5188 now that `floats' is not the last element of the struct any more.
5189
ee79d1aa
JR
51902003-07-06 Jason Rumney <jasonr@gnu.org>
5191
5192 * w32term.h (ClipboardSequence_Proc): New type.
5193
5194 * w32fns.c (clipboard_sequence_fn): New variable.
5195 (globals_of_w32fns): Initialize it.
5196
5197 * w32select.c (last_clipboard_sequence_number): New variable.
5198 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
5199 number if possible.
5200
49723c04
SM
52012003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5202
4698665f
SM
5203 * m/amdx86-64.h (MARKBIT):
5204 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
5205 MARKBIT and ARRAY_MARK_FLAG any more.
5206
5207 * m/hp800.h (XSETMARKBIT):
5208 * m/sr2k.h (XSETMARKBIT):
5209 * lisp.h (XSETMARKBIT): Remove unused macro.
5210
49723c04
SM
5211 * lisp.h (mark_object): Change prototype.
5212
5213 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
5214 (last_marked): Change accordingly.
5215 (mark_interval, mark_maybe_object, mark_maybe_pointer)
5216 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
5217 (mark_buffer): Update calls to mark_object.
5218
5219 * bytecode.c (mark_byte_stack):
5220 * fns.c (sweep_weak_table):
5221 * keyboard.c (mark_kboards): Update calls to mark_object.
5222
1d660eca
JR
52232003-07-06 Jason Rumney <jasonr@gnu.org>
5224
5225 * alloc.c (struct ablock): Only include padding when there is some.
5226
618b5ae4
SM
52272003-07-04 Stefan Monnier <monnier@cs.yale.edu>
5228
5229 * alloc.c (ALIGN): Add casts to simplify usage.
5230 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
5231 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
5232 (struct ablock, struct ablocks): New types.
5233 (free_ablock): New global var.
5234 (lisp_align_malloc, lisp_align_free): New functions.
5235 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
5236 (struct float_block): Reorder and add gcmarkbits.
5237 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
5238 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
5239 (init_float, make_float): Use lisp_align_malloc.
5240 (free_float, live_float_p): Don't use `type' any more.
5241 (make_float): Use FLOAT_UNMARK to access to mark bit.
5242 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
5243 Use FLOAT_MARKED_P to access the mark bit.
5244 (pure_alloc): Simplify use of ALIGN.
5245 (mark_object): Use FLOAT_MARK to access the mark bit.
5246 (gc_sweep): Use new macros to access the float's mark bit.
5247 (init_alloc_once): Init free_ablock.
5248
5249 * lisp.h (struct Lisp_Float): Remove unused field `type'.
5250
3ef06d12
SM
52512003-06-27 Stefan Monnier <monnier@cs.yale.edu>
5252
5253 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
5254 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
5255 (allocate_buffer): Move.
5256 (string_bytes): Don't mask markbit of `size_byte'.
5257 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5258 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
5259 Use the `size' field of buffers (rather than the `name' field) for
5260 the mark bit, as is done for all other vectorlike objects.
5261 Use the new macros to access the mark bit of vectorlike objects.
5262
e81043aa
RS
52632003-06-26 Richard M. Stallman <rms@gnu.org>
5264
5265 * puresize.h (BASE_PURESIZE): Increment base size.
5266
5267 * xdisp.c (fast_find_position): Enable Gerd's new definition.
5268
5269 * xterm.c (xim_initialize): Undo previous change.
5270
2d0834cc
SM
52712003-06-26 Stefan Monnier <monnier@cs.yale.edu>
5272
5273 * alloc.c (survives_gc_p): Simplify.
5274
5275 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
5276
5277 * window.c (Fset_window_dedicated_p): Simplify.
5278 (display_buffer_1): Don't raise the win from which minibuf was entered.
5279 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
5280 (Fminibuffer_selected_window): Simplify.
5281
5282 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
5283
5284 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
5285 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
5286
5287 * insdel.c (check_markers, adjust_markers_for_delete)
5288 (adjust_markers_for_insert, adjust_markers_for_replace)
5289 (prepare_to_modify_buffer, RESTORE_VALUE):
5290 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
5291 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
5292 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
5293 * alloc.c (Fmake_marker, free_marker, gc_sweep):
5294 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
5295 * editfns.c (save_excursion_restore, transpose_markers):
5296 * window.c (delete_window):
5297 * xdisp.c (message_dolog): Update for new types.
5298
d54ae3d8
JD
52992003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5300
a5f696ac
JD
5301 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
5302 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 5303 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
5304
5305 * frame.c (make_frame): Initialize default_face_done_p.
5306
5307 * frame.h (struct frame): Add default_face_done_p.
5308
d54ae3d8
JD
5309 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
5310 will be defined.
5311
2336fe58
SM
53122003-06-25 Stefan Monnier <monnier@cs.yale.edu>
5313
5314 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
5315 Initialize the new field `gcmarkbit'.
5316 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
5317 (mark_interval_tree): Don't mark the tree separately from the nodes.
5318 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
5319 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5320 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
5321
5322 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
5323 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
5324 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
5325 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
5326 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
5327
bcea31c2
DL
53282003-06-24 Dave Love <fx@gnu.org>
5329
5330 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
5331
5332 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
5333 from gnulib.
5334
2601f59e
RS
53352003-06-21 Richard M. Stallman <rms@gnu.org>
5336
5337 * fileio.c (Fwrite_region): Alternate messages
5338 for append and partial write.
5339
5340 * keyboard.c (read_key_sequence): When converting upcase fn key to
5341 downcase, update fkey and keytran so `backspace' gets translated.
5342
5343 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
5344
5345 * process.c (wait_reading_process_input): Don't signal SIGIO
5346 in batch mode.
5347
b5d2c621
KH
53482003-06-17 Kenichi Handa <handa@m17n.org>
5349
5350 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
5351 composite.h.
5352
5353 * xselect.c: Don't include charset.h, coding.h, composite.h.
5354 (Qforeign_selection): New variable.
5355 (syms_of_xselect): Intern and static it.
5356 (selection_data_to_lisp_data): Return a unibyte string made from
5357 data with `foreign-selection' text property.
5358
6793bc63
SM
53592003-06-15 Stefan Monnier <monnier@cs.yale.edu>
5360
5361 * termhooks.h (EVENT_INIT): New macro.
5362
5363 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
5364
5365 * alloc.c (mark_kboards): Move to keyboard.c.
5366
5367 * keyboard.c (record_asynch_buffer_change, read_avail_input):
5368 * xterm.c (x_dispatch_event):
5369 * xmenu.c (find_and_call_menu_selection):
5370 * xdisp.c (handle_tool_bar_click):
5371 * w32menu.c (menubar_selection_callback):
5372 * sysdep.c (kbd_input_ast, read_input_waiting):
5373 * msdos.c (dos_rawgetc):
5374 * macterm.c (mac_check_for_quit_char):
5375 * macmenu.c (menubar_selection_callback):
5376 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
5377 data to kbd_buffer_store_event.
5378
b3ea810c
KS
53792003-06-15 Kim F. Storm <storm@cua.dk>
5380
5381 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 5382 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 5383
b8f75eda
KG
53842003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5385
5386 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
5387
ba92ce48
KH
53882003-06-12 Kenichi Handa <handa@m17n.org>
5389
5390 * fileio.c (Fwrite_region): Save and restore restriction.
5391
b80263be
DL
53922003-06-12 Dave Love <fx@gnu.org>
5393
5394 * alloca.c (alloca): Declare arg as size_t.
5395
6793bc63
SM
5396 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
5397 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 5398
b23c0a83
DL
53992003-06-11 Dave Love <fx@gnu.org>
5400
5401 * search.c (shrink_regexp_cache): Use xrealloc.
5402 (syms_of_search): Use xmalloc.
5403
700e47c2
KS
54042003-06-10 Kim F. Storm <storm@cua.dk>
5405
5406 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
5407 Adjust phys_cursor.x to be relative to window box, rather than
5408 text area before checking -- to ensure cursor is redrawn when
5409 exposing window.
5410 Note: This also fixes a similar (older) bug if display margins
5411 are present.
5412
f11aa0b2
KH
54132003-06-06 Kenichi Handa <handa@m17n.org>
5414
5415 * coding.c (encoding_buffer_size): If coding->type is
5416 coding_type_ccl, double magnification on CRLF encoding.
5417
3d143690
JR
54182003-06-06 Jason Rumney <jasonr@gnu.org>
5419
5420 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
5421 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
5422
5423 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
5424 Mac too.
5425
f16205ca
DL
54262003-06-05 Dave Love <fx@gnu.org>
5427
b23c0a83
DL
5428 * strftime.c: Merge changes from gnulib.
5429
f16205ca
DL
5430 * mktime.c (__mktime_internal): Merge changes from gnulib
5431 involving year 69 and dst2.
5432
5433 Changes to merge with gnulib version and be consistent with the
5434 autoconf test:
5435
6793bc63
SM
5436 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
5437 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
5438 [HAVE_LOCALE_H]: Include locale.h.
5439 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
5440
9b87a0bc
KS
54412003-06-05 Kim F. Storm <storm@cua.dk>
5442
5443 * window.c (coordinates_in_window): Convert X and Y to window
5444 relative coordinates inside mode-line and header-line parts.
5445 Convert X and Y to margin area relative coordinates inside left
5446 and right display margin parts.
5447
5a8a15ec
JR
54482003-06-05 Jason Rumney <jasonr@gnu.org>
5449
5450 * w32fns.c (add_system_logical_colors_to_map): New function.
5451 (Fx_open_connection): Use it.
5452
01ed8ff1
SM
54532003-06-04 Stefan Monnier <monnier@cs.yale.edu>
5454
5455 * process.c (allocate_pty): Revert part of the previous patch.
5456 (Faccept_process_output): Simplify.
5457
b427b65d
JR
54582003-06-04 Jason Rumney <jasonr@gnu.org>
5459
5460 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
5461
5462 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
5463 (lispy_mouse_wheel_names): Remove.
5464 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
5465 Always define drag_and_drop_syms.
5466
5467 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
5468 WHEEL_EVENT events.
5469
914a8c47
SM
54702003-06-03 Stefan Monnier <monnier@cs.yale.edu>
5471
01ed8ff1
SM
5472 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
5473
914a8c47
SM
5474 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
5475
adcb132c
JD
54762003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5477
5478 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
5479 menu item label.
5480
be781fa7
RS
54812003-06-03 Richard M. Stallman <rms@gnu.org>
5482
5483 * window.c (Fwindow_edges): Doc fix.
5484 (Fwindow_pixel_edges, Fwindow_inside_edges)
5485 (Fwindow_inside_pixel_edges): New functions.
5486 (syms_of_window): defsubr them.
5487
5488 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
5489 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
5490
914a8c47
SM
54912003-06-02 Stefan Monnier <monnier@cs.yale.edu>
5492
5493 * dispnew.c (Fsit_for): Don't lie about the number of args.
5494
5b07197a
DL
54952003-06-02 Dave Love <fx@gnu.org>
5496
5497 * callproc.c: Use HAVE_FCNTL_H, not USG5.
5498 (syms_of_callproc) <process-environment>: Doc fix.
5499
5500 * doc.c: Use HAVE_FCNTL_H, not USG5.
5501
5502 * xfaces.c (font_rescale_ratio): Fix for K&R.
5503
5504 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
5505
5506 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
5507
5508 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
5509
5510 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
5511 (xg_create_frame_widgets): Use ENCODE_UTF_8.
5512
d7107586 5513 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
5514
5515 * xmenu.c (ENCODE_MENU_STRING): New.
5516 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
5517 Use it.
5518
5519 * coding.h (ENCODE_UTF_8): New.
5520 (Qutf_8): Declare.
5521
5522 * coding.c (Qutf_8): New.
5523 (syms_of_coding): Intern it.
5524
5525 * fns.c: Doc fixes.
5526
7335b336
KH
55272003-06-02 Kenichi Handa <handa@m17n.org>
5528
5529 * buffer.c (Fset_buffer_multibyte): Fix previous change.
5530
914a8c47
SM
55312003-06-01 Stefan Monnier <monnier@cs.yale.edu>
5532
5533 * lread.c (openp): Make sure STR is a string.
5534
9862c135
JR
55352003-06-01 David Ponce <david@dponce.com>
5536
5537 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
5538 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
5539
5540 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
5541 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
5542 (discard_mouse_events): Discard WHEEL_EVENT events too.
5543 (lispy_wheel_names, wheel_syms): New.
5544 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
5545 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
5546 defined.
914a8c47 5547 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
5548
5549 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
5550 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5551 WHEEL_EVENT events.
5552
f984e73e
JPW
55532003-05-31 John Paul Wallington <jpw@gnu.org>
5554
5555 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
5556 timer are in lisp/emacs-lisp.
5557
1efcd78f
KH
55582003-05-31 Kenichi Handa <handa@m17n.org>
5559
458c8af4
KH
5560 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
5561 region when a buffer is changed to unibyte.
5562
1efcd78f
KH
5563 * charset.h (VALID_LEADING_CODE_P): New macro.
5564 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
5565
778e2804
KH
5566 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
5567 is nonzero, accept multibyte form of eight-bit-control chars.
5568 (decode_composition_emacs_mule): Likewise.
5569 (decode_coding_emacs_mule): Likewise.
5570 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
5571 multibyte form of eight-bit-control chars.
5572
5573 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
5574 (Finsert_file_contents): If coding-system-for-read is bound to
5575 Qauto_save_coding, use the coding system emacs-mule with special
5576 setting for recovering a file.
5577 (choose_write_coding_system): On auto saving, use the coding
5578 system emacs-mule with special setting for auto saving.
5579 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
5580
034060e4
KH
55812003-05-30 Kenichi Handa <handa@m17n.org>
5582
5583 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
5584 properly before calling ccl_driver.
5585
778e2804 5586 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
5587
5588 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
5589 nonzero.
5590 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
5591 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
5592
595f5aa5
GM
55932003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
5594
5595 * xfaces.c (realize_default_face): Do not abort if lface is
5596 non-existent - reverts change from 2003-05-19.
5597
103e0180
KH
55982003-05-29 Kenichi Handa <handa@m17n.org>
5599
5600 * coding.c (decode_coding_iso2022): Pay attention to the byte
5601 sequence of CTEXT extended segment, and retain those bytes as is.
5602
56032003-05-28 Kenichi Handa <handa@m17n.org>
5604
5605 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
5606 of CODING_REPLACEMENT_CHARACTER.
5607 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
5608 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
5609 check this flag on encoding.
5610 (encode_coding_sjis_big5): Check
5611 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
5612 (Fset_terminal_coding_system_internal): Set
5613 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
5614 instead of setting CODING_FLAG_ISO_SAFE flag in
5615 terminal_coding.flags.
5616
5617 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
5618 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
5619 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
5620
ff6a3bfb 56212003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 5622
ff6a3bfb
RS
5623 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
5624
5625 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 5626
1963c428
KS
56272003-05-28 Kim F. Storm <storm@cua.dk>
5628
5629 * xdisp.c (expose_window): Fix error in calculation of
5630 window relative coordinates of area to redisplay.
5631
2b5d4601
JR
56322003-05-27 Jason Rumney <jasonr@gnu.org>
5633
5634 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
5635
1c64a4a2
JB
56362003-05-27 David Ponce <david@dponce.com>
5637
5638 Handle W32 mouse wheel events as mouse click events, like in X.
5639
5640 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
5641 MOUSE_WHEEL_EVENT anymore.
5642
5643 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
5644 Scrolling down/up the mouse wheel is respectively mapped to mouse
5645 button 4 and 5.
5646 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5647 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
5648 WM_MOUSEWHEEL events.
5649
2d031b89
AS
56502003-05-27 Andreas Schwab <schwab@suse.de>
5651
20464fdf
AS
5652 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
5653
2d031b89
AS
5654 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
5655 partially visible line.
5656
5657 * alloc.c (Fgarbage_collect): Fix last change.
5658
97bc76d4
JPW
56592003-05-26 John Paul Wallington <jpw@gnu.org>
5660
5661 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
5662
56613f06
SM
56632003-05-25 Stefan Monnier <monnier@cs.yale.edu>
5664
5665 * window.c (Fset_window_buffer): Add type of `keep_margins'.
5666 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
5667
5668 * window.h (window_box_text_cols): Declare.
5669
5670 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
5671 (x_draw_vertical_border): Remove unused var `f'.
5672
5673 * xfaces.c (build_scalable_font_name): Remove `unused var
5674 pixel_size' warning.
5675
5676 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
5677
5678 * unexelf.c (unexec): Remove `unused var n' warning.
5679
5680 * strftime.c (my_strftime_localtime_r): Remove `defined but
5681 unused' warning.
5682
5683 * process.c (allocate_pty): Remove `unused var stb' and
5684 `cp might be used uninitialized' warnings.
5685
5686 * dispnew.c (mode_line_string): Remove unused var `f'.
5687
5688 * coding.c (find_safe_codings): Remove unused var `i'.
5689
5690 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5691
5692 * buffer.c (Fkill_buffer): Remove unused var `list'.
5693
5694 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5695
93421a1f
JD
56962003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5697
5698 * frame.c (make_frame): Condition want_fullscreen with
5699 HAVE_WINDOW_SYSTEM.
5700
c4b8aebc
JB
57012003-05-25 Juanma Barranquero <lektu@terra.es>
5702
5703 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5704 (Fwindow_scroll_bars): Fix typo in docstring.
5705
0416870b
KS
57062003-05-24 Kim F. Storm <storm@cua.dk>
5707
5708 The following changes serve several purposes:
5709
5710 1) Swap the position of fringes and display margins in windows, i.e.
5711 the fringes are now displayed between the margins and the text area
5712 (by default).
5713
5714 2) Allow fringe and scroll bar parameters to be set per-buffer and
5715 per-window (like display margins). Such settings are now stored
5716 in window configurations, preserved when frames are resized, and
9018a88e 5717 copied when windows are split vertically or horizontally.
0416870b
KS
5718 Several bugs related to display margins have been fixed.
5719
5720 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 5721
0416870b
KS
5722 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5723 rather than FRAME_WIDTH (FRAME_FONT (f)).
5724
5725 5) Introduce a consistent naming of variables, members and macros
5726 depending on whether their value is measured in pixels or in
5727 canonical columns/lines. Pixel dimensions are named *_width and
5728 *_height, while canonical columns/lines are named *_cols and
5729 *_lines. Pixel positions are named *_x and *_y, while column/line
5730 positions are named *_col and *_line.
5731
5732 6) Consolidate more of the X, W32, and MAC gui code by moving
5733 common data into struct frame, and generalize it for the non-gui
5734 case by using suitable defaults.
5735
5736 7) Cleanup and consolidate the macros controlling frame and window
5737 layout into frame.h and window.h, and generalize the use of the
5738 various window_box_* functions (enhanced to handle the new fringe
5739 position and the per-window fringe and scroll bar settings).
5740
5741 * frame.h (struct frame): Rename members height to text_lines,
5742 width to text_cols, window_height to total_lines, window_width to
5743 total_cols, new_height to new_text_lines, new_width to
5744 new_text_cols. All uses changed.
5745 (struct frame): New members which consolidate common members of
5746 x_output, w32_output, and mac_output structures: left_pos,
5747 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
5748 win_gravity, size_hint_flags, border_width, internal_border_width,
5749 line_height, fringe_cols, left_fringe_width, right_fringe_width,
5750 want_fullscreen. All uses changed.
5751 (struct frame): New member column_width contaning the canonical
5752 column width, analogue to line_height. All uses changed.
5753 (struct frame): Rename members scroll_bar_pixel_width to
5754 config_scroll_bar_width, and scroll_bar_cols to
5755 config_scroll_bar_cols. All uses changed.
5756 (struct frame): New member scroll_bar_actual_width which
5757 consolidates and renames the vertical_scroll_bar_extra member of
5758 x_output, w32_output, and mac_output structures. All uses changed.
5759 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
5760 from x/w32/macterm.h files. All uses changed. Also change code
5761 which referred to f->output_data...->pixel_height.
5762 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 5763 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
5764 which referred to f->output_data...->pixel_width.
5765 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
5766 Also change code which referred to f->height.
5767 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
5768 Also change code which referred to f->width.
5769 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
5770 to update new_text_lines and new_text_cols members directly.
5771 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
5772 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
5773 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
5774 FRAME_SCROLL_BAR_COLS. All uses changed.
5775 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
5776 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
5777 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
5778 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
5779 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
5780 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
5781 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
5782 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
5783 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
5784 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
5785 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
5786 return line_height member (it now has proper value also for
5787 non-window frames).
5788 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
5789 return new column_width member (rather than the default font width).
5790 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
5791 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
5792 from x/w32/macterm.h files. Unconditionally return corresponding
5793 member of frame structure (they now have proper values also for
5794 non-window frames).
5795 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
5796 Calculate return value from left and right widths.
5797 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
5798 internal_border_width member (has proper value for non-window frame).
5799 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
5800 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
5801 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
5802 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
5803 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
5804 consolidated from xterm.h, macterm.h, and w32term.h.
5805 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
5806 consolidated from xterm.h, macterm.h, and w32term.h.
5807 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
5808 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
5809 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
5810 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
5811 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
5812 consolidated from x/mac/w32term.h.
5813 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
5814 consolidated from x/mac/w32term.h.
5815 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
5816 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
5817 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
5818 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
5819
5820 * window.h (struct window): Rename members left to left_col,
5821 top to top_line, height to total_lines, width to total_cols,
5822 left_margin_width to left_margin_cols, right_margin_width to
5823 right_margin_cols, orig_height to orig_total_lines, orig_top to
5824 orig_top_line. All uses changed.
5825 (struct window): New members left_fringe_width, right_fringe_width,
5826 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
5827 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
5828 New macros primarily used to simplify other macros.
5829 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
5830 referred to XINT (w->width).
5831 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
5832 referred to XINT (w->height).
5833 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
5834 referred to XINT (w->width) * canon_x_unit.
5835 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
5836 referred to XINT (w->height) * canon_y_unit.
5837 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
5838 referred to XINT (w->left).
5839 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
5840 all uses and code that referred to XINT (w->left) + XINT (w->width).
5841 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
5842 referred to XINT (w->top).
5843 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
5844 referred to XINT (w->top) + XINT (w->height).
5845 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
5846 referred to XINT (w->left) * canon_x_unit.
5847 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
5848 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
5849 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
5850 referred to XINT (w->top) * canon_y_unit.
5851 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
5852 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
5853 (WINDOW_LEFTMOST_P): New macro.
5854 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
5855 All uses changed.
5856 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
5857 All uses changed.
5858 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
5859 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
5860 Do not exclude left fringe width.
5861 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
5862 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
5863 Do not exclude fringe widths.
5864 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
5865 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
5866 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
5867 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
5868 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
5869 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
5870 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
5871 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
5872 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
5873 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
5874 New macros. Change code which referenced corresponding
5875 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
5876 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
5877 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
5878 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
5879 allow per-window scroll-bar settings.
5880 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
5881 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
5882 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
5883 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
5884 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
5885 FRAME_SCROLL_BAR_WIDTH.
5886 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 5887 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
5888 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
5889 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
5890 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
5891 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
5892 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
5893 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
5894 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5895 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5896 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
5897 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
5898 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5899 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
5900 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5901 (window_from_coordinates): Update prototype.
5902 (Fset_window_buffer): Update EXFUN.
5903 (set_window_buffer): Update prototype.
9018a88e 5904
0416870b 5905 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 5906 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
5907 changed.
5908 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
5909 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
5910 internal_border_width is now set to 0 for non-window frames.
5911 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
5912 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
5913 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
5914 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
5915 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
5916 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5917 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5918 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
5919 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 5920 Move to window.h and renamed [see window.h changes].
0416870b
KS
5921 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
5922 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
5923 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
5924 Use WINDOW_TOTAL_LINES.
0416870b
KS
5925 (frame_update_line_height): Remove prototype.
5926
5927 * buffer.h (struct buffer): Rename members measured in columns:
5928 left_margin_width to left_margin_cols, right_margin_width to
5929 right_margin_cols. All uses changed.
5930 New members left_fringe_width, right_fringe_width,
5931 fringes_outside_margins for per-buffer fringe settings.
5932 New members scroll_bar_width and vertical_scroll_bar_type for
5933 per-buffer scroll bar settings.
5934
5935 * buffer.c (init_buffer_once): Set buffer_defaults and
5936 buffer_local_flags for new buffer-local variables
5937 left_fringe_width, right_fringe_width, fringes_outside_margins,
5938 scroll_bar_width, and vertical_scroll_bar_type.
5939 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
5940 default-* variables for them.
5941
5942 * dispnew.c: Make (many) trivial substitutions for renamed and
5943 new macros in dispextern.h, frame.h and window.h.
5944 (mode_line_string): No need to adjust width for mode lines, as it
5945 is already adjusted by the caller.
5946 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 5947
0416870b
KS
5948 * frame.c: Make (many) trivial substitutions for renamed and
5949 new macros in dispextern.h, frame.h and window.h.
5950 (make_frame): Initialize left_fringe_width, right_fringe_width,
5951 fringe_cols, scroll_bar_actual_width, border_width,
5952 internal_border_width, column_width, line_height, x_pixels_diff,
5953 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
5954 members with values suitable for a non-window frames.
5955
5956 * gtkutil.c: Make (many) trivial substitutions for renamed and
5957 new macros in dispextern.h, frame.h and window.h.
9018a88e 5958
0416870b
KS
5959 * indent.c: Make (few) trivial substitutions for renamed and
5960 new macros in dispextern.h, frame.h and window.h.
5961
5962 * keyboard.c: Make (many) trivial substitutions for renamed and
5963 new macros in dispextern.h, frame.h and window.h.
5964 (make_lispy_event): Use window positions returned from
5965 window_from_coordinates when constructing the lisp event for
5966 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
5967 (incorrect) values locally.
5968 (make_lispy_movement): Use window positions returned from
5969 window_from_coordinates when constructing the lisp event, rather
5970 than calculating (incorrect) values locally.
5971
5972 * scroll.c: Make (some) trivial substitutions for renamed and
5973 new macros in dispextern.h, frame.h and window.h.
5974
5975 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
5976 scroll-bars.
5977
5978 * sysdep.c: Make (few) trivial substitutions for renamed and
5979 new macros in dispextern.h, frame.h and window.h.
5980
5981 * term.c: Make (some) trivial substitutions for renamed and
5982 new macros in dispextern.h, frame.h and window.h.
5983
5984 * widget.c: Make (few) trivial substitutions for renamed and
5985 new macros in dispextern.h, frame.h and window.h.
5986
5987 * window.c: Make (many) trivial substitutions for renamed and
5988 new macros in dispextern.h, frame.h and window.h.
5989 (make_window): Initialize new members
5990 left_margin_cols, right_margin_cols, left_fringe_width,
5991 right_fringe_width, fringes_outside_margins, scroll_bar_width,
5992 and vertical_scroll_bar_type.
5993 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 5994 and per-window fringes and scroll-bars.
0416870b 5995 Fix bug related to incorrectly adjusting coordinates by
9018a88e 5996 frame's internal_border_width (the effect normally negible since
0416870b
KS
5997 the internal_border_width is typically 0 or 1 pixel, but very
5998 noticeable for an internal_border_width of e.g. 25 pixels).
5999 Upon successful return (other than ON_NOTHING), the coordinates
6000 are now always properly converted to window relative for the
6001 given display element.
6002 (window_from_coordinates): Add new parameters wx and wy to
6003 return the window relative x and y position in the returned
6004 window and part. A null arg means, don't return the position.
6005 All callers changed.
6006 (adjust_window_margins): New function which may reduce the width
6007 of the display margins if a window's text area is too small after
6008 resizing or splitting windows.
6009 (size_window): Fix bug that did not account for display margin
6010 widths when checking the minimum width of a window; use
6011 adjust_window_margins.
6012 (set_window_buffer): Call Fset_window_fringes and
6013 Fset_window_scroll_bars to setup per-window elements.
6014 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
6015 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
6016 (e.g. after splitting a window or resizing the frame).
6017 All callers changed.
0416870b
KS
6018 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
6019 (Fsplit_window): Duplicate original window's display margin,
6020 fringe, and scroll-bar settings; then call Fset_window_buffer with
6021 KEEP_MARGINS non-nil. This fixes a bug which caused a split
6022 window to only preserve the display margins in one of the windows.
c4b8aebc 6023 When splitting horizontally, call adjust_window_margins on both
0416870b 6024 windows to ensure that the text area of the new windows is non too
f9711de4 6025 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
6026 width of the split window was less than the width of the display
6027 margins.
9018a88e
SM
6028 (window_box_text_cols): Renamed from window_internal_width.
6029 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
6030 Fix bug that caused vertical separator to be subtracted also on
6031 window frames. Fix another bug that did not reduce the returned
6032 value by the columns used for display margins.
6033 (window_scroll_line_based): Fix bug related to scrolling too much
6034 when display margins are present (implicitly fixed by the fix to
6035 window_box_text_cols).
6036 (scroll_left, scroll_right): Fix bug related to scrolling too far
6037 by default when display margins are present (implicitly fixed by
6038 the fix to window_box_text_cols).
6039 (struct saved_window): Rename members left to left_col, top to
6040 top_line, width to total_cols, height to total_lines, orig_top to
6041 orig_top_line, orig_height to orig_total_lines. All uses changed.
6042 New members left_margin_cols, right_margin_cols,
6043 left_fringe_width, right_fringe_width, fringes_outside_margins,
6044 scroll_bar_width, and vertical_scroll_bar_type for saving
6045 per-window display elements.
6046 (Fset_window_configuration): Restore display margins, fringes,
6047 and scroll bar settings. This fixes a bug which caused display
6048 margins to be discarded when saving and restoring a window
6049 configuration.
6050 (save_window_save): Save display margins, fringes, and scroll bar
6051 settings. This fixes a bug which caused display margins to be
6052 discarded when saving and restoring a window configuration.
6053 (Fset_window_margins): Do nothing if display margins are not
6054 really changed. Otherwise, call adjust_window_margins to ensure
6055 the text area doesn't get too narrow. This fixes a bug which
f9711de4 6056 could cause Emacs to trap if setting display margins wider than
0416870b
KS
6057 the width of the window.
6058 (Fset_window_fringes): New defun to allow user to specifically set
6059 this window's fringe widths and position vs. display margins.
6060 (Fwindow_fringes): New defun to return window's actual fringe
6061 settings.
6062 (Fset_window_scroll_bars): New defun to allow user to specifically
6063 set this window's scroll bar width and position.
6064 (Fwindow_scroll_bars): New defun to return window's actual scroll
6065 bar settings.
6066 (compare_window_configurations): Also compare display margins,
6067 fringes, and scroll bar settings.
6068 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
6069
6070 * xdisp.c: Make (many) trivial substitutions for renamed and
6071 new macros in dispextern.h, frame.h and window.h.
6072 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 6073 and new fringe vs. display margin position. Note that returned
0416870b
KS
6074 value is no longer guaranteed to be a whole multiple of the frame
6075 column width, since per-window fringes may now be any width.
6076 (window_box_left_offset): New function like window_box_left, but
6077 value is relative to left border of window (rather than frame).
6078 (window_box_right_offset): New function like window_box_right,
6079 but value is relative to left border of window.
6080 (window_box_left): Adapt to per-window fringes and scroll bars,
6081 and new fringe vs. display margin position. Simplify by using
6082 WINDOW_LEFT_EDGE_X and window_box_left_offset.
6083 (window_box): Allow null args for unnecessary return values;
6084 change/simplify relevant callers.
6085 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
6086 and new fringe vs. display margin position.
6087 Use window_box_left_offset and window_box_right_offset
0416870b 6088 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
6089 scroll bars, and new fringe vs. display margin position.
6090 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
6091 (draw_fringe_bitmap): Rework to handle per-window fringes and new
6092 fringe vs. display margin position.
6093 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
6094 (redisplay_window): Adapt to per-window scroll bars.
6095 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
6096 bars, and new fringe vs. display margin position.
6097 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 6098 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
6099 bars, and new fringe vs. display margin position. Fix bug which
6100 increased total width of full_width rows by width of scroll bars
6101 although window's total width already includes that.
6102 (x_fix_overlapping_area): Simplify using window_box_left_offset.
6103 (expose_area): Simplify using window_box_left_offset.
6104 (x_draw_vertical_border): Handle per-window scroll bar settings,
6105 mixing windows with left, right and no scroll bars.
6106
6107 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
6108 where it's used in x_list_fonts (for clarity).
6109 (frame_update_line_height): Remove unused function; functionality
6110 is now done directly when setting the default font in x_set_font.
6111
6112 * xfns.c: Make (many) trivial substitutions for renamed and
6113 new macros in dispextern.h, frame.h and window.h.
6114
6115 * xmenu.c: Make (some) trivial substitutions for renamed and
6116 new macros in dispextern.h, frame.h and window.h.
6117
6118 * xterm.h (struct x_output): Move members left_pos, top_pos,
6119 border_width, pixel_height, pixel_width, line_height,
6120 internal_border_width, vertical_scroll_bar_extra,
6121 left_fringe_width, right_fringe_width, fringe_cols,
6122 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6123 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6124 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6125 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6126 (PIXEL_WIDTH, PIXEL_HEIGHT)
6127 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6128 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6129 frame.h and renamed [see frame.h changes].
6130 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6131 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6132 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6133 and renamed [see frame.h changes].
9018a88e 6134
0416870b
KS
6135 * xterm.c: Make (several) trivial substitutions for renamed and
6136 new macros in dispextern.h, frame.h and window.h.
6137 (x_draw_glyph_string_box): Adapt to per-window fringes and
6138 scroll-bars.
6139 (scroll_run): Adapt to new fringe position.
6140 (glyph_rect): Use window coordinates returned from
6141 window_from_coordinates rather than frame_to_window_pixel_xy.
6142 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6143 scroll-bars.
6144 (handle_one_xevent): Simplify a USE_GTK conditional.
6145 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6146 (fringes are now inside margins, i.e. always in the clipping area).
6147 All callers changed.
6148 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6149 directly, then call compute_fringe_widths. Don't call
6150 frame_update_line_height.
6151
6152 * w32term.h (struct w32_output): Move members left_pos, top_pos,
6153 border_width, pixel_height, pixel_width, line_height,
6154 internal_border_width, vertical_scroll_bar_extra,
6155 left_fringe_width, right_fringe_width, fringe_cols,
6156 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6157 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6158 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6159 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6160 (PIXEL_WIDTH, PIXEL_HEIGHT)
6161 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6162 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6163 frame.h and renamed [see frame.h changes].
6164 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6165 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6166 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6167 and renamed [see frame.h changes].
9018a88e 6168
0416870b
KS
6169 * w32term.c: Make (several) trivial substitutions for renamed and
6170 new macros in dispextern.h, frame.h and window.h.
6171 (x_draw_glyph_string_box): Adapt to per-window fringes and
6172 scroll-bars.
6173 (glyph_rect): Use window coordinates returned from
6174 window_from_coordinates rather than frame_to_window_pixel_xy.
6175 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6176 scroll-bars.
6177 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
6178 (fringes are now inside margins, i.e. always in the clipping area).
6179 All callers changed.
6180 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6181 directly, then call compute_fringe_widths. Don't call
6182 frame_update_line_height.
6183
6184 * w32console.c: Make (few) trivial substitutions for renamed and
6185 new macros in dispextern.h, frame.h and window.h.
6186
6187 * w32fns.c: Make (many) trivial substitutions for renamed and
6188 new macros in dispextern.h, frame.h and window.h.
6189
6190 * w32menu.c: Make (few) trivial substitutions for renamed and
6191 new macros in dispextern.h, frame.h and window.h.
6192
6193 * macterm.h (struct mac_output): Move members left_pos, top_pos,
6194 border_width, pixel_height, pixel_width, line_height,
6195 internal_border_width, vertical_scroll_bar_extra,
6196 left_fringe_width, right_fringe_width, fringe_cols,
6197 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6198 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
6199 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6200 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6201 (PIXEL_WIDTH, PIXEL_HEIGHT)
6202 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6203 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6204 frame.h and renamed [see frame.h changes].
6205 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6206 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6207 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6208 and renamed [see frame.h changes].
9018a88e 6209
0416870b
KS
6210 * macterm.c: Make (several) trivial substitutions for renamed and
6211 new macros in dispextern.h, frame.h and window.h.
6212 (x_draw_glyph_string_box): Adapt to per-window fringes and
6213 scroll-bars.
6214 (glyph_rect): Use window coordinates returned from
6215 window_from_coordinates rather than frame_to_window_pixel_xy.
6216 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6217 scroll-bars.
6218 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6219 (fringes are now inside margins, i.e. always in the clipping area).
6220 All callers changed.
6221 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6222 directly, then call compute_fringe_widths. Don't call
6223 frame_update_line_height.
6224
6225 * macfns.c: Make (several) trivial substitutions for renamed and
6226 new macros in dispextern.h, frame.h and window.h.
9018a88e 6227 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
6228
6229 * macmenu.c: Make (few) trivial substitutions for renamed and
6230 new macros in dispextern.h, frame.h and window.h.
6231
6232 * msdos.h (struct x_output): Remove members left_pos, top_pos,
6233 and line_height, and use corresponding new members in struct
6234 frame. All uses changed.
6235 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
6236 superseeded by corresponding macros in frame.h.
6237
6238 * msdos.c: Make (several) trivial substitutions for renamed and
6239 new macros in dispextern.h, frame.h and window.h.
6240 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 6241 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
6242 (internal_terminal_init): No need to initialize line_height here;
6243 it now defaults to 1.
6244
9018a88e
SM
62452003-05-24 Stefan Monnier <monnier@cs.yale.edu>
6246
6247 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
6248 dropping `down' events.
6249
016bd3c0
AS
62502003-05-24 Andreas Schwab <schwab@suse.de>
6251
6252 * coding.c (find_safe_codings): Fix last change.
6253
4dacadcc
TTN
62542003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
6255
6256 * xfns.c (x_window): Fix typo from 2003-05-21 change.
6257
319830ce
SM
62582003-05-23 Stefan Monnier <monnier@cs.yale.edu>
6259
9018a88e
SM
6260 * xdisp.c (display_mode_element): Increase max depth.
6261 Simplify the error handling code. Use a different error string
6262 for the case where we hit the depth limit.
6263
319830ce
SM
6264 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
6265
6266 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
6267
62682003-05-21 Stefan Monnier <monnier@cs.yale.edu>
6269
6270 * intervals.c (get_local_map): Don't get char-property of previous
6271 point any more: get_pos_property already does it and better.
6272
c67de8ba
DL
62732003-05-21 Dave Love <fx@gnu.org>
6274
6275 [Merged from unicode branch.]
6276
6277 * xfns.c (x_window, x_window): Use use_xim.
6278
6279 * xterm.c (use_xim): Initialize.
6280 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6281 (x_term_init): Maybe set use_xim.
6282
6283 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6284
edd3ff1d
JR
62852003-05-21 Jason Rumney <jasonr@gnu.org>
6286
6287 * unexw32.c (_start): Remove _fmode initialization.
6288
6289 * emacs.c (main) [WINDOWSNT]: Move it here.
6290
463f55ee
DL
62912003-05-20 Dave Love <fx@gnu.org>
6292
6293 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
6294
af253914
RS
62952003-05-19 Richard M. Stallman <rms@gnu.org>
6296
6297 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
6298 as value for QCfont attribute.
6299 (realize_default_face): lface should already exist; crash if not.
6300 Specify 0 for FORCE_P when calling set_lface_from_font_name.
6301
6302 * frame.c (Fignore_event): Doc fix.
6303
1d211019
KH
63042003-05-19 Kenichi Handa <handa@m17n.org>
6305
6306 * coding.c (decode_coding_string): Handle post-read-conversion
6307 even if the coding doesn't require decoding.
6308
4dd68254
RS
63092003-05-18 Richard M. Stallman <rms@gnu.org>
6310
6311 * callproc.c (Fcall_process_region): Doc fix.
6312
14d87dc9
SM
63132003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6314
deca5d96
SM
6315 * lread.c (Fload): Print a message if package is obsolete.
6316
14d87dc9
SM
6317 * window.c (Fselect_window): Add optional `norecord' arg.
6318 (select_window_1): Fold into Fselect_window.
6319 (select_window_norecord): New function.
6320 (temp_output_buffer_show): Use it. Preserve current buffer.
6321
6322 * window.h (Fselect_window): Update declaration.
6323
6324 * window.c (delete_window, Fother_window, Fset_window_configuration):
6325 * minibuf.c (read_minibuf):
6326 * macterm.c (x_new_focus_frame):
6327 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
6328 * callint.c (Fcall_interactively):
6329 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
6330
6331 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
6332
78f52183
DK
63332003-05-17 David Kastrup <dak@gnu.org>
6334
6335 * process.c (read_process_output): Back out change from 2003-03-09.
6336
14d87dc9
SM
63372003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6338
6339 * editfns.c (get_pos_property): Don't assume that `object' = nil.
6340
6341 * textprop.c (text_property_stickiness): New arg `buffer'.
6342
6343 * intervals.h (text_property_stickiness): New arg `buffer'.
6344 (get_pos_property): Declare.
6345
6346 * intervals.c (get_local_map): Use get_pos_property, to obey
6347 stickiness and empty overlays.
6348 (create_root_interval, graft_intervals_into_buffer): Use BEG.
6349 (merge_properties, intervals_equal, merge_properties_sticky):
6350 Use XCAR, XCDR.
6351 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
6352
1fd1cc2f
RS
63532003-05-17 Richard M. Stallman <rms@gnu.org>
6354
4f9f637a
RS
6355 * minibuf.c (read_minibuf): If buffer is empty, record the default
6356 in the history.
6357 (Fminibuffer_complete_word): When deleting the overlap, take account
6358 of its real position.
6359
6360 * fns.c (map_char_table): Fix previous change.
6361
1fd1cc2f
RS
6362 * syntax.c (find_defun_start):
6363 When open_paren_in_column_0_is_defun_start,
6364 return beginning of buffer.
6365
6366 * lisp.h (map_char_table): Declare added arg.
6367
6368 * fns.c (map_char_table): New arg TABLE gets the master table.
6369 All calls changed.
6370 Process default and inheritance, resorting to Faref if necessary.
6371
6372 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6373 (Faccessible_keymaps): Pass new arg to map_char_table.
6374
6375 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
6376
6377 * casetab.c (set_case_table): Pass new arg to map_char_table.
6378
6379 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
6380
6381 * lisp.h (specbinding_func): New typedef.
6382 (struct specbinding): Use specbinding_func, to put the `volatile'
6383 in the right place.
6384
6385 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
6386 to avoid GCC warning.
14d87dc9 6387
b4bd27c5
RS
63882003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
6389
14d87dc9 6390 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 6391
35fb885d
SM
63922003-05-15 Stefan Monnier <monnier@cs.yale.edu>
6393
6394 * keyboard.c (apply_modifiers): Don't fill the other cache.
6395
9a274fbd
SM
63962003-05-14 Stefan Monnier <monnier@cs.yale.edu>
6397
c55b5fad
SM
6398 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
6399
9a274fbd
SM
6400 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
6401 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
6402 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
6403 (Fset_window_configuration, Fcurrent_window_configuration)
6404 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
6405 (Fpos_visible_in_window_p, mark_window_cursors_off)
6406 (window_internal_height, window_internal_width, Frecenter)
6407 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
6408 (replace_buffer_in_all_windows, init_window_once, init_window)
6409 (syms_of_window, keys_of_window): Move from lisp.h.
6410 * lisp.h: Move window.c declarations to window.h.
6411
6412 * bytecode.c: Include window.h.
6413 * emacs.c: Include window.h.
6414
14d87dc9 6415 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
6416 (keyremap): Add `parent' field.
6417 (keyremap_step): Use it. Remove `parent' argument.
6418 (read_key_sequence): Setup and use the new `parent' field.
6419
fd93e331
SM
64202003-05-11 Stefan Monnier <monnier@cs.yale.edu>
6421
6422 * keyboard.c (adjust_point_for_property): Ensure termination.
6423
1c4001a1
SM
64242003-05-10 Stefan Monnier <monnier@cs.yale.edu>
6425
6426 * keyboard.c (follow_key): Remove dead variable `did_meta'.
6427 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
6428 duplicated handling of function-key-map and key-translation-map
6429 in read_key_sequence.
6430 (read_key_sequence): Use them.
6431
6432 * keyboard.c (adjust_point_for_property): Try harder to move point
6433 to the non-sticky end of an invisible property.
6434
6435 * xdisp.c (single_display_prop_intangible_p): Make `space' display
6436 property intangible as well.
6437
780379b1
AS
64382003-05-10 Andreas Schwab <schwab@suse.de>
6439
6440 * xmenu.c (single_menu_item): Change last parameter to void* to
6441 avoid warning.
6442
ca2de342
RS
64432003-05-09 Richard M. Stallman <rms@gnu.org>
6444
6445 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
6446 Bind Qinhibit_modification_hooks to t so there will be no GC.
6447 Rename local `tem' to `save_deactivate_mark'.
6448
6449 * eval.c (specpdl_ptr): Declare volatile.
6450 (unbind_to): Copy the whole binding and decrement specpdl_ptr
6451 before doing the work of unbinding it.
6452
6453 * lisp.h (struct specbinding): Declare elements volatile.
6454 (specpdl_ptr): Declare volatile.
6455
6456 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
6457
6458 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
6459 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
6460
347003be
DL
64612003-05-08 Dave Love <fx@gnu.org>
6462
6463 * coding.c (Vlast_coding_system_used): Doc fix.
6464
5adcec23
JR
64652003-05-07 Jason Rumney <jasonr@gnu.org>
6466
6467 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
6468 when system does not support them.
6469
5fe3b8a4
SM
64702003-05-05 Stefan Monnier <monnier@cs.yale.edu>
6471
6472 * fileio.c (Qwrite_region_annotate_functions): New var.
6473 (build_annotations): Use it to process the global part of the hook.
6474 (syms_of_fileio): Init and staticpro it.
6475
6476 * keyboard.c (safe_run_hooks_error): Display a message instead of
6477 silently ignoring the error.
6478
64792003-05-03 Stefan Monnier <monnier@cs.yale.edu>
6480
6481 * keyboard.c (input_available_signal): Mark static.
6482 (menu_bar_items): Use map_keymap.
6483 (menu_bar_one_keymap): Remove.
6484 (menu_bar_item): Adjust arglist (for use in map_keymap).
6485 Properly hide a second binding when not both are keymaps.
6486
6487 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
6488 (single_keymap_panes): Use it and map_keymap.
6489 (single_menu_item): Use skp as well.
6490
6491 * keymap.h (map_keymap_function_t): New type.
6492 (map_keymap): Declare.
6493
6494 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
6495 (map_keymap_call, Fmap_keymap): New functions.
6496 (syms_of_keymap): Defsubr map-keymap.
6497
4b1b4443
JD
64982003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6499
6500 * gtkutil.c (create_dialog, make_widget_for_menu_item)
6501 (make_menu_item, create_menus, xg_update_menu_item): Don't call
6502 ..._with_mnemonic functions for menu items.
6503
1f816871
KH
65042003-05-01 Kenichi Handa <handa@m17n.org>
6505
6506 * coding.c (coding_system_accept_latin_extra_p): Delete this
6507 function.
6508 (find_safe_codings): Pay attention to
6509 the property tranlsation-table-for-encode of each codings.
6510 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
6511
5ed6ba5b
SM
65122003-05-01 Stefan Monnier <monnier@cs.yale.edu>
6513
6514 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
6515
32c06229
SM
65162003-04-30 Stefan Monnier <monnier@cs.yale.edu>
6517
6518 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
6519
6520 * lisp.h (CHECK): Wrap args in parenthesis.
6521 (specbind): Fix doc: symbol = Qnil is not supported any more.
6522
6523 * bytecode.c (Fbyte_code) <unwind-protect>:
6524 Use Fprogn rather than 0 and Qnil.
6525
6526 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
6527 `double', and `triple' modifiers as well.
6528
ed3c3314
RS
65292003-04-30 Richard M. Stallman <rms@gnu.org>
6530
6531 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
6532
6533 * alloc.c (abort_on_gc): New variable.
6534 (Fgarbage_collect): Abort if abort_on_gc is set.
6535
6536 * lisp.h (abort_on_gc): Add decl.
6537
6538 * eval.c (Fsignal): Clear abort_on_gc.
6539
6540 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 6541 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
6542
6543 * xdisp.c (move_it_vertically_backward): Do the final big else
6544 even if nlines is 0.
6545
6546 * xdisp.c (redisplay_internal): Finish the per-frame loop
6547 even if redisplay is suspended by input.
6548
0b325c12
AC
65492003-04-24 Andrew Choi <akochoi@shaw.ca>
6550
6551 * macterm.c (x_list_fonts): Return all fonts that match if
6552 maxnames = -1.
6553
4e837cd0
KH
65542003-04-25 Kenichi Handa <handa@m17n.org>
6555
6556 * syntax.c (skip_chars): Fix previous change.
6557
9af7511a
KH
65582003-04-24 Kenichi Handa <handa@m17n.org>
6559
6560 * syntax.c (skip_chars): Make the code faster by using the common
6561 technique of *p, *stop, and *endp.
6562
e3b2c21f
JD
65632003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6564
6565 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 6566 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
6567 being updated.
6568
32c06229
SM
65692003-04-19 Stefan Monnier <monnier@cs.yale.edu>
6570
6571 * eval.c (Fapply): Undo last change and add a comment about why.
6572
c6464167
MB
65732003-04-18 Miles Bader <miles@gnu.org>
6574
6575 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
6576 pickier PARSE_MULTIBYTE_SEQ.
6577
e509f168
SM
65782003-04-17 Stefan Monnier <monnier@cs.yale.edu>
6579
6580 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
6581 Use XCDR, XCAR, CONSP.
6582 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
6583 (Fapply): Remove unnecessary GCPRO.
6584
6585 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
6586
6587 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
6588
6589 * buffer.h: Don't hardcode BEG==1.
6590
6591 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
6592
5ceea398
RS
65932003-04-16 Richard M. Stallman <rms@gnu.org>
6594
6595 * xdisp.c (try_window, try_window_reusing_current_matrix):
6596 When at end of window, set window_end_pos to Z-ZV.
6597
6598 * buffer.c (Foverlay_recenter): Doc fix.
6599
e509f168
SM
66002003-04-14 Stefan Monnier <monnier@cs.yale.edu>
6601
6602 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
6603
d243e605
AC
66042003-04-14 Andrew Choi <akochoi@shaw.ca>
6605
6606 * macterm.c (mac_check_for_quit_char): Don't check more often than
6607 once a second.
6608
6901b111
SM
66092003-04-11 Stefan Monnier <monnier@cs.yale.edu>
6610
6611 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
6612 specially, so that they can't hide an implicit switch-frame event.
6613 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
6614 (head_table): Use switch-frame as event_kind for select-window.
6615 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
6616
6617 * editfns.c (Fformat): Lisp_Object/int mixup.
6618 (format2): Remove unused var numargs.
6619
e301806f 66202003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 6621
6901b111 6622 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
6623 (Qafter_insert_file_set_coding): New variable.
6624 (syms_of_fileio): Initialize and staticpro it. Delete declaration
6625 for after-insert-file-adjust-coding-function.
6626 (Finsert_file_contents): Call Qafter_insert_file_set_coding
6627 instead of Vafter_insert_file_adjust_coding_function.
6628
38914424
KH
66292003-04-11 Kenichi Handa <handa@m17n.org>
6630
6631 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
6632
6633 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
6634 string. Callers changed.
6635
66362003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 6637
6901b111 6638 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 6639 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
6640 (Finsert_file_contents):
6641 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
6642 decode-format.
6643
f979dc05
JD
66442003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6645
6646 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
6647 get GtkAdjustment as widget now is a GtkRange.
6648
6649 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
6650 GtkRange to avoid memory leak.
6651
f8c6b4c2 66522003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 6653
50ebc53d
KH
6654 * xfaces.c (Vface_font_rescale_alist): New variable.
6655 (struct font_name): New member rescale_ratio.
6656 (font_rescale_ratio): New function.
6901b111 6657 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
6658 (better_font_p): On comparing point sized, pay attention to
6659 recale_ratio member of fonts.
6660 (build_scalable_font_name): Reflect font->rescale_ratio in the
6661 font name.
6901b111 6662 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 6663
cb98871c
KH
6664 * lread.c (read1): Before calling index, check if the 2nd
6665 arguemnt is in ASCII range.
6666
4773b8ca
RS
66672003-04-08 Richard M. Stallman <rms@gnu.org>
6668
b0ada147
RS
6669 * fileio.c (Ffile_symlink_p): Doc fix.
6670
6671 * editfns.c (Fformat): Translate positions of text properties
6672 in the format string to apply them to the result.
6673
4773b8ca
RS
6674 * fileio.c (Finsert_file_contents): Doc fix.
6675 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
6676
66772003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 6678
4773b8ca
RS
6679 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
6680
e8f25745 66812003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 6682
e8f25745
ST
6683 * mac.c (init_mac_osx_environment): Switch libexec and bin so
6684 that self-contained application finds libexec files.
6685
f8c6b4c2 66862003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 6687
6901b111
SM
6688 * coding.c (code_convert_region_unwind):
6689 Set Vlast_coding_system_used to the argument.
2310d84c
KH
6690 (code_convert_region): If post-read-conversion function changed
6691 the value of last-coding-sytem, keep the new value in
6692 coding->symbol so that it won't be overridden.
6693 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
6694 (coding_system_accept_latin_extra_p): New function.
6695 (find_safe_codings): Pay attention to characters registered in
6696 latin-extra-code-table.
2310d84c 6697
39c9a034
TTN
66982003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6699
6700 * Makefile.in (md5.o): Add missing dependency info.
6701
eb67c5d6
RS
67022003-04-06 Richard M. Stallman <rms@gnu.org>
6703
6704 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6705
6706 * marker.c (verify_bytepos): New function.
6707
6708 * intervals.c (set_intervals_multibyte_1): When becoming
6709 multibyte, adjust right and left child sizes to a whole set of
6710 characters. If an interval gets zero total-length, delete it.
6711 If an interval consists of just its children, delete one of them.
6712
6713 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6714 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 6715
eb67c5d6
RS
6716 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6717 All calls deleted.
6718 (lisp_malloc): Do the work here directly.
6719
b1f81fc5
JB
67202003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
6721
6722 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
6723 char tables.
6724
67252003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
6726
6727 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
6728 destructively change "%S" to "%s".
6729
774666fb
MB
67302003-04-03 Miles Bader <miles@gnu.org>
6731
6732 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
6733 always set.
6734
19c37f01
DL
67352003-04-01 Dave Love <fx@gnu.org>
6736
6737 * xfns.c (xpm_lookup_color): Grok "opaque".
6738
2f4b24c3
AC
67392003-03-31 Andrew Choi <akochoi@shaw.ca>
6740
6741 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
6742 parent window ID.
6743
6744 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
6745
6746 * macterm.h (struct mac_output): Define x_pixels_diff and
6747 y_pixels_diff.
b1f81fc5 6748
9443fcf6
JB
67492003-03-31 Juanma Barranquero <lektu@terra.es>
6750
6751 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
6752 blockinput.h and files included from it.
6753
e072891b
KS
67542003-03-31 Kim F. Storm <storm@cua.dk>
6755
6756 The following changes consolidates the common code related to
6757 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
6758 files into frame.c.
9443fcf6 6759
e072891b
KS
6760 * frame.c: Include blockinput.h.
6761 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
6762 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
6763 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
6764 related vars here.
6765 (struct frame_parm_table, frame_parms): New table for describing
6766 frame parameters and their associated Q-variable.
6767 The order of the parameters corresponds to the sequence of the
6768 frame_parm_handlers table in redisplay_interface.
6769 (x_fullscreen_move, x_set_frame_parameters)
6770 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
6771 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
6772 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6773 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
6774 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
6775 Generic functions for processing of frame parameters.
6776 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
6777 (display_x_get_resource, x_get_resource_string): Functions for
6778 generic access to X resources.
6779 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6780 (x_default_parameter, Fx_parse_geometry): Functions for generic
6781 access to frame parameters.
6901b111
SM
6782 (x_figure_window_size): Generic calculation of frame size.
6783 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
6784 (syms_of_frame): Intern and staticpro frame parameter variables.
6785 Defvar_lisp Vx_resource_class and Vx_resource_name here.
6786 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 6787
e072891b
KS
6788 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
6789 parameter related vars defined in frame.c.
6790 (EMACS_CLASS): Define here.
6791 (enum FULLSCREEN_*): Define here.
6792 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
6793 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
6794 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
6795 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
6796 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
6797 (x_set_visibility, x_set_autoraise, x_set_autolower)
6798 (x_set_unsplittable, x_set_vertical_scroll_bars)
6799 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
6800 (x_figure_window_size): Add prototypes.
6801
6802 * dispextern.h (frame_parm_handler): New typedef.
6803 (struct redisplay_interface): New member frame_parm_handlers.
6804 (enum resource_types): Move declaration here.
6805 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6806 (x_default_parameter): Add prototypes.
6807
6808 * window.c: Remove extern decl for frame parameter vars.
6809 (change_window_heights): New generic function;
6810 replaces x_change_window_heights. All users changed.
6811
6812 * window.h (change_window_heights): Add prototype.
6813
6814 * xfaces.c: Remove extern decl for frame parameter vars.
6815
6816 * xterm.h (EMACS_CLASS): Remove. Use generic define.
6817 (struct w32_display_info): Fix type of xrdb member.
6818 (enum FULLSCREEN_*): Remove.
6819 Remove prototypes for generic functions (in frame.h).
6820
6821 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6822 parameters now defined in frame.h and frame.c.
f63fd14e 6823 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6824 (enum x_frame_parms): Remove (bogus, unused enum).
6825 (check_x_display_info): Make non-static (for frame.c).
6826 (struct x_frame_parm_table, x_frame_parms): Remove.
6827 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6828 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6829 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6830 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6831 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6832 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6833 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6834 Remove. Use generic functions instead.
6835 (enum resource_types): Remove.
6836 (x_set_scroll_bar_default_width): New global function (for frame.c).
6837 (Fx_create_frame): Depend on x_figure_window_size to add space for
6838 toolbar and setup size_hint_flags.
6839 (x_frame_parm_handlers): New table for redisplay_interface.
6840 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 6841
e072891b 6842 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 6843 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
6844 (x_redisplay_interface): Add x_frame_parm_handlers member.
6845
6846 * w32gui.h (XrmDatabase): New (dummy) typedef.
6847
6848 * w32term.h (EMACS_CLASS): Remove. Use generic define.
6849 (struct w32_display_info): Fix type of xrdb member.
6850 (enum FULLSCREEN_*): Remove.
6851 (x_fullscreen_adjust): Remove prototype.
6852
6853 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6854 parameters now defined in frame.h and frame.c.
f63fd14e 6855 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6856 (enum x_frame_parms): Remove (bogus, unused enum).
6857 (check_x_display_info): Make non-static (for frame.c).
6858 (struct x_frame_parm_table, x_frame_parms): Remove.
6859 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6860 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6861 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6862 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6863 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6864 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6865 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6866 Remove. Use generic functions instead.
6867 (enum resource_types): Remove.
6868 (x_set_scroll_bar_default_width): New global function (for frame.c).
6869 (Fx_create_frame): Depend on x_figure_window_size to add space for
6870 toolbar and setup size_hint_flags.
6871 (w32_frame_parm_handlers): New table for redisplay_interface.
6872 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 6873
e072891b
KS
6874 * w32term.c: Remove unnecessary extern declarations.
6875 (x_fullscreen_adjust): Remove. Use generic instead.
6876 (x_redisplay_interface): Add w32_frame_parm_handlers member.
6877
6878 * w32reg.c (x_get_string_resource): Use XrmDatabase.
6879
6880 * macgui.h (XrmDatabase): New (dummy) typedef.
6881
6882 * macterm.h (EMACS_CLASS): Remove.
6883 (struct mac_display_info): Add xrdb member.
6884 (struct mac_output): Add want_fullscreen member.
6885
6886 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6887 parameters now defined in frame.h and frame.c.
f63fd14e 6888 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6889 (check_x_display_info): Make non-static (for frame.c).
6890 (struct x_frame_parm_table, x_frame_parms): Remove.
6891 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6892 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6893 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6894 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6895 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6896 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6897 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6898 Remove. Use generic functions instead.
6899 (enum resource_types): Remove.
6900 (x_set_scroll_bar_default_width): New global function (for frame.c).
6901 (mac_frame_parm_handlers): New table for redisplay_interface.
6902 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 6903
e072891b
KS
6904 * macterm.c: Remove unnecessary extern declarations.
6905 (x_redisplay_interface): Add mac_frame_parm_handlers member.
6906
3e6a560b
KS
6907 * Makefile.in (frame.o): Add dependency on blockinput.h and files
6908 included from it (atimer.h and systime.h).
6909
7b7b454e
AS
69102003-03-30 Andreas Schwab <schwab@suse.de>
6911
6912 * xdisp.c (x_insert_glyphs): Fix swapped width and height
6913 parameters for shift_glyphs_for_insert.
6914
6915 * macterm.c (x_redisplay_interface): Add missing entry for
6916 draw_vertical_window_border.
6917
beb402de
KG
69182003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6919
6920 * fileio.c (Fexpand_file_name): In the no-handler case, after
6921 expanding, look again for a handler and invoke it. This is needed
6922 for filenames like "/foo/../user@host:/bar/../baz" -- the first
6923 expansion produces "/user@host:/bar/../baz" which needs to be
6924 expanded again for the finame result "/user@host:/baz".
6925
b676f356
JD
69262003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6927
6928 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
6929 of area to be redrawn for better performance.
6930
3c671a56
SM
69312003-03-28 Stefan Monnier <monnier@cs.yale.edu>
6932
6933 * xterm.c (take_vertical_position_into_account): Remove.
6934 (xt_action_hook): Call set_vertical_scroll_bar if needed.
6935 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
6936 (xm_scroll_callback, x_create_toolkit_scroll_bar)
6937 (x_set_toolkit_scroll_bar_thumb): Simplify.
6938 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
6939 (XTread_socket): Remove unused var.
6940 (x_make_frame_invisible): Replace goto with else.
6941
6942 * xdisp.c (set_vertical_scroll_bar): New fun.
6943 (redisplay_window): Use it.
6944
84f2e615
RS
69452003-03-26 Richard M. Stallman <rms@gnu.org>
6946
6947 * xdisp.c (update_tool_bar): Recompute tool bar if
6948 update_mode_lines is set. Set w->update_mode_line
6949 only if the tool bar contents actually change.
6950 (update_menu_bar): Undo previous change.
6951
70b6104c
JD
69522003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6953
5fd6f727
JD
6954 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
6955 (xg_frame_set_char_size): Calculate scroll bar width before frame
6956 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
6957 (xg_separator_p): Check for all documented separator types.
6958 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
6959 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
6960
70b6104c
JD
6961 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
6962 so tool bar gets updated.
6963
d9b36d19
SM
69642003-03-26 Stefan Monnier <monnier@cs.yale.edu>
6965
6966 * data.c (store_symval_forwarding): Re-instate part of the code
6967 that was deleted with too much enthusiasm.
6968
69692003-03-25 Stefan Monnier <monnier@cs.yale.edu>
6970
6971 * data.c (store_symval_forwarding): Delete special read-only
6972 hack for type == -1, since we now use ->constant instead.
6973 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
6974
6975 * buffer.c (overlays_in): Declare static.
6976 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
6977 `constant' field rather than the variable's `type' field.
6978
365fa1b3
AC
69792003-03-24 Andrew Choi <akochoi@shaw.ca>
6980
6981 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
6982
6983 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
6984
6985 * fns.c [MAC_OSX]: Do not redefine vector.
6986
6987 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
6988
6989 * macgui.h: Remove definition of No_Cursor.
6990
d9b36d19 6991 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
6992
6993 * xdisp.c: Define No_Cursor.
6994 (x_write_glyphs, notice_overwritten_cursor)
6995 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
6996 (note_mouse_highlight): Remove Mac-specific code.
6997 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 6998
c0bcce6f
JPW
69992003-03-24 John Paul Wallington <jpw@gnu.org>
7000
7001 * xdisp.c (redisplay_window): If mini window's buffer is not
7002 empty, then redisplay it like other windows.
7003
a526b96c
KS
70042003-03-23 Kim F. Storm <storm@cua.dk>
7005
7006 * w32term.c (w32_draw_window_cursor): Fix last change.
7007
37ab321e
KH
70082003-03-23 Kenichi Handa <handa@m17n.org>
7009
a526b96c
KS
7010 * alloc.c (make_string_from_bytes, make_specified_string):
7011 Add `const' for the arg CONTENTS.
37ab321e
KH
7012
7013 * lisp.h (make_string_from_bytes, make_specified_string):
7014 Prototypes adjusted.
7015
7863d625
JD
70162003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7017
a526b96c 7018 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 7019
7863d625
JD
7020 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
7021 (XG_SB_RANGE): New define.
7022
7023 * gtkutil.c (xg_fixed_handle_expose): New function.
7024 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
7025 expose events.
7026 (xg_update_scrollbar_pos): Take two more arguments, left and width
7027 of scroll bar including borders.
7028 Clear left and right part outside scroll bar separately as some
7029 themes have bars that are not an even number of pixels.
d9b36d19 7030 Don't set reallocate_redraws, don't call
7863d625
JD
7031 gdk_window_process_all_updates.
7032 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
7033 so no need to change it. Calculate size and value with XG_SB_RANGE.
7034
d9b36d19
SM
7035 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
7036 Pass left and width of scroll bar including borders to
7863d625
JD
7037 xg_update_scrollbar_pos.
7038
af0ad939
TTN
70392003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
7040
7041 * Makefile.in: Make sure space precedes end-of-line backslashes.
7042
b22139fd
KS
70432003-03-22 Kim F. Storm <storm@cua.dk>
7044
7045 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
7046 Add generic versions here. Remove system specific versions
7047 defined elsewhere.
7048
7049 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
7050 Add prototypes.
7051
6e6410cf
KS
7052 * xterm.h (STORE_NATIVE_RECT): New macro.
7053
5c9cc435
KS
70542003-03-21 Kim F. Storm <storm@cua.dk>
7055
00c64fab
SM
7056 * xdisp.c (get_glyph_string_clip_rect):
7057 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
7058
7059 * dispextern.h (struct redisplay_interface): Add active_p
7060 argument to draw_window_cursor member. All uses changed.
7061
acd37560
KS
70622003-03-21 Kim F. Storm <storm@cua.dk>
7063
7064 The following changes consolidate code related to writing and
7065 inserting glyphs, exposing frame, the tool bar, the mouse face,
7066 the output cursor, and help echo from xterm.c, w32term.c and
7067 macterm.c into xdisp.c. It also generalizes the use of the
7068 window_part enum instead of using numeric values throughout.
af0ad939 7069
acd37560
KS
7070 * xdisp.c: Consolidate gui-independent code here.
7071 Include keymap.h.
7072 (Qhelp_echo): Import.
7073 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
7074 (help_echo_string, help_echo_window, help_echo_object)
7075 (previous_help_echo_string, help_echo_pos): Declare here.
7076 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
7077 (estimate_mode_line_height): Define here. Handle windowing
7078 systems directly (without using estimate_mode_line_height_hook).
7079 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
7080 (update_window_cursor, update_cursor_in_window_tree)
7081 (fast_find_position, fast_find_string_pos)
7082 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
7083 (expose_area, expose_line, expose_overlaps, expose_window)
7084 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
7085 declared static as they are only used locally in xdisp.c.
7086 (draw_glyphs): Rename from x_draw_glyphs and make static.
7087 (tool_bar_item_info, notice_overwritten_cursor): Make static.
7088 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7089 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 7090 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
7091 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7092 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
7093 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
7094 (note_mouse_highlight, x_clear_window_mouse_face)
7095 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
7096 (x_intersect_rectangles): New generic functions for use by xdisp.c
7097 and GUI front-ends.
7098 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
7099 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
7100
7101 * dispextern.h (Display_Info): Generic typedef for *_display_info.
7102 (NativeRectangle): Generic typedef for rectangle type.
7103 (enum window_part): Move here from window.c.
7104 (struct redisplay_interface): New members flush_display_optional,
7105 define_frame_cursor, clear_frame_area, draw_window_cursor,
7106 draw_vertical_window_border, shift_glyphs_for_insert.
7107 Rename member clear_mouse_face to clear_window_mouse_face.
7108 (estimate_mode_line_height_hook): Remove hook.
7109 (auto_raise_tool_bar_buttons_p): Don't declare extern.
7110 (tool_bar_item_info): Remove prototype.
7111 (help_echo_string, help_echo_window, help_echo_object)
7112 (previous_help_echo_string, help_echo_pos)
7113 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
7114 (x_stretch_cursor_p, output_cursor): Declare extern.
7115 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
7116 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
7117 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7118 (display_and_set_cursor, set_output_cursor, x_cursor_to)
7119 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
7120 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7121 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
7122 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
7123 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
7124 Add prototypes.
7125 (mode_line_string, marginal_area_string): Fix prototypes.
7126
7127 * window.c (enum window_part): Move to dispextern.h.
7128 (coordinates_in_window): Use enum window_part member names
7129 instead of numbers to describe return value.
7130 (struct check_window_data): Change part member to window_part.
7131 (check_window_containing): Return window_part unaltered.
7132 (window_from_coordinates): Change part arg from int to enum
7133 window_part. Allow part arg to be null. All users changed.
7134
7135 * window.h (window_from_coordinates): Fix prototype.
7136
7137 * term.c (estimate_mode_line_height): Move to xdisp.c.
7138
7139 * keyboard.c (make_lispy_event): Use enum window_part.
7140
7141 * dispnew.c (mode_line_string, marginal_area_string): Use enum
7142 window_part instead of int in arg list. Users changed.
7143
7144 * xterm.h (No_Cursor): Declare as None for X.
7145 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 7146
acd37560
KS
7147 * xterm.c: Remove consolidated defines and code.
7148 (BETWEEN): Remove unused macro.
7149 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
7150 (x_define_frame_cursor, x_clear_frame_area)
7151 (x_draw_window_cursor): New X-specific functions for RIF.
7152 (x_redisplay_interface): Add new members.
7153
7154 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
7155
7156 * w32term.h (struct w32_output): Remove cross_cursor member.
7157
7158 * w32term.c: Remove consolidated defines and code.
7159 (BETWEEN): Remove unused macro.
7160 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
7161 (w32_define_frame_cursor, w32_clear_frame_area)
7162 (w32_draw_window_cursor): New W32-specific functions for RIF.
7163 (w32_redisplay_interface): Add new members.
7164
a64387ee 7165 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
7166 (XRectangle): Add X compatible rectangle type.
7167 (NativeRectangle): Declare as RECT for W32.
7168 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7169
7170 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
7171
7172 * w32console.c: Remove consolidated defines and code.
af0ad939 7173
acd37560
KS
7174 * msdos.h (Display_Info): Add generic typedef.
7175
7176 * msdos.c: Remove consolidated defines and code.
7177 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
7178
7179 * macterm.h (struct mac_output): Replace member cross_cursor by
7180 hand_cursor.
7181 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
7182
7183 * macterm.c: Remove consolidated defines and code.
7184 (BETWEEN): Remove unused macro.
7185 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
7186 (mac_define_frame_cursor, mac_clear_frame_area)
7187 (mac_draw_window_cursor): New Mac-specific functions for RIF.
7188 (x_redisplay_interface): Add new members.
7189
7190 * macgui.h (No_Cursor): Define as 0 for Mac.
7191 (XRectangle): Add X compatible rectangle type.
7192 (NativeRectangle): Declare as Rect for Mac.
7193 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7194
204ccab1
KS
7195 * macfns.c (x_set_mouse_color): Setup hand_cursor.
7196 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 7197
9443fcf6 7198 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
7199 included from it. Add dependency on keymap.h.
7200
7201 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
7202
8ba01a70 72032003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
7204
7205 * fileio.c (Fexpand_file_name): Fix previous change.
7206
8ba01a70 72072003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
7208
7209 * fileio.c (Ffile_name_directory): Reconstruct file name by
7210 make_specified_string.
7211 (Ffile_name_nondirectory, Ffile_name_as_directory)
7212 (Fdirectory_file_name, Fexpand_file_name)
7213 (Fsubstitute_in_file_name): Likewise.
7214 (Fread_file_name): Compare decoded homedir with DIR and
7215 DEFAULT_FILENAME.
7216
7217 * alloc.c (make_specified_string): If NCHARS is negative, count
7218 the number of characters.
7219
19536747
JD
72202003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7221
de38ae5a
JD
7222 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
7223 all widgets.
7224
19536747
JD
7225 * gtkutil.h: Removed xg_ignore_next_thumb.
7226
37ab321e 72272003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
7228
7229 * coding.c (Vchar_coding_system_table): Remove this variable.
7230 (Vcoding_system_safe_chars): New variable.
7231 (intersection): Remove this function.
7232 (find_safe_codings): Don't use Vchar_coding_system_table, but try
7233 all codings in SAFE_CODINGS.
00c64fab 7234 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
7235 find_safe_codings. Get generic coding systems from
7236 Vcoding_system_safe_chars.
7237 (Fdefine_coding_system_internal): New function.
7238 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
7239 Initialize and staticpro Vcoding_system_safe_chars.
7240
17097258
JD
72412003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7242
2a2071c3
JD
7243 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
7244 equal old values before updating.
7245
17097258
JD
7246 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
7247
7248 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
7249
72502003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7251
7252 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
7253 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
7254 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
7255 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
7256 (xg_create_scroll_bar): Pass bar to button event callback.
7257 (xg_find_top_left_in_fixed): New function.
7258 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
7259 whole scroll bar area. Get old position with
7260 xg_find_top_left_in_fixed, calculate and only clear needed areas.
7261 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
7262 dragging is in progress. Calculate whole as for Motif.
7263 Remove code that saved last values. Call gtk_range functions to
7264 set scroll bar sizes.
7265
7266 * gtkutil.h: Removed xg_ignore_next_thumb.
7267
8cb9dfbf
JB
72682003-03-17 Juanma Barranquero <lektu@terra.es>
7269
7270 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
7271 and files included from it.
7272
00c64fab
SM
72732003-03-18 Stefan Monnier <monnier@cs.yale.edu>
7274
7275 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
7276 multiple occurrences of the same keymap under different prefixes.
7277 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
7278
c45bb3b2
JR
72792003-03-16 Jason Rumney <jasonr@gnu.org>
7280
7281 * w32gui.h: Use HDC for Display.
7282
7283 * w32term.c (w32_encode_char): Prevent double-byte chars from
7284 crashing Emacs.
7285
7286 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
7287 as binary.
7288
2a6d0874
JB
72892003-03-16 Juanma Barranquero <lektu@terra.es>
7290
7291 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
7292
03eb5fab
KS
72932003-03-16 Kim F. Storm <storm@cua.dk>
7294
7295 The following changes consolidate some of the gui-independent
7296 parts of the processing and drawing of "glyph strings" from
7297 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 7298
03eb5fab
KS
7299 * dispextern.h (struct glyph): Reduce face_id member from 22 to
7300 21 bits (this reduces number of faces from 4M to 2M).
7301 Replace W32 specific w32_font_type member (2 bits) by generic
7302 font_type member (3 bits) for portability.
7303 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
7304 (enum draw_glyphs_face): Define here.
7305 (struct glyph_string): Define here. Merge W32 and X versions.
7306 (struct redisplay_interface): New members per_char_metric,
7307 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
7308 (VCENTER_BASELINE_OFFSET): Define here.
7309 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
7310 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
7311
7312 * xdisp.c: Consolidate gui-independent "glyph string" code here.
7313 (dump_glyph_string): Moved here.
7314 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
7315 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
7316 (fill_composite_glyph_string, fill_glyph_string)
7317 (fill_image_glyph_string, fill_stretch_glyph_string)
7318 (left_overwritten, left_overwriting, right_overwritten)
7319 (right_overwriting, get_char_face_and_encoding)
7320 (set_glyph_string_background_width, compute_overhangs_and_x)
7321 (append_glyph, append_composite_glyph, produce_image_glyph)
7322 (take_vertical_position_into_account, append_stretch_glyph)
7323 (produce_stretch_glyph): New generic functions (based on X version).
7324 Call platform specific functions through rif.
7325 (INIT_GLYPH_STRING): New macro, hides W32 details.
7326 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
7327 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
7328 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
7329 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
7330 (notice_overwritten_cursor):
7331 Generic functions exported to platform modules. Users changed.
7332
7333 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
7334 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
7335 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 7336 New macros for consolidated code.
2a6d0874 7337
03eb5fab
KS
7338 * xterm.c: Remove consolidated defines and code.
7339 (x_per_char_metric, x_encode_char)
7340 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
7341 (x_redisplay_interface): Add new members.
7342
7343 * w32gui.h (Display): Add dummy typedef for consolidation.
7344 (XChar2b): Define alias for wchar_t for consolidation.
7345 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7346
7347 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 7348 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
7349 New macros for consolidation.
7350
fad49844 7351 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
7352 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
7353 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
7354 (w32_per_char_metric): Change font_type arg to int for RIF.
7355 (w32_encode_char): Return int according to RIF requirements.
7356 (w32_compute_glyph_string_overhangs): Adapt to RIF.
7357 (w32_get_glyph_overhangs): New function for RIF. Uses generic
7358 x_get_glyph_overhangs.
7359 (w32_redisplay_interface): Add new members.
7360
7361 * macgui.h (XChar2b): Move typedef here for consolidation.
7362 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7363
7364 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
7365 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
7366 consolidation.
7367
7368 * macterm.c: Remove consolidated defines and code.
7369 (mac_per_char_metric): New function for RIF.
00c64fab 7370 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
7371 (mac_compute_glyph_string_overhangs): Adapt for RIF.
7372 (x_redisplay_interface): Add new members.
7373
00c64fab
SM
73742003-03-15 Stefan Monnier <monnier@cs.yale.edu>
7375
7376 * keymap.c (Vmenu_events): New var.
7377 (syms_of_keymap): Initialize it.
7378 (where_is_internal): Check more carefully what is a menu event.
7379
225c7a07
RS
73802003-03-14 Richard M. Stallman <rms@gnu.org>
7381
7382 * lread.c (read1): After #!, exit loop on eof.
7383
cea9be54
JD
73842003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7385
9ea0e54d
JD
7386 * gtkutil.h: Add declaration for xg_frame_cleared.
7387
0cb35f4e
JD
7388 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
7389
cea9be54
JD
7390 * gtkutil.c (struct xg_last_sb_pos): New structure.
7391 (handle_fixed_child): New function.
7392 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
7393 and force a redraw on them.
7394 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
7395 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
7396 so we can avoid unneeded redraws.
7397 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
7398 and force a redraw on the scroll bar.
7399 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
7400 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 7401 (xg_frame_cleared): New function.
cea9be54 7402
20b853f3
KH
74032003-03-13 Kenichi Handa <handa@m17n.org>
7404
7405 * coding.c (Fdetect_coding_region): Fix docstring.
7406 (Fdetect_coding_string): Fix docstring.
7407
7a555aff
AS
74082003-03-13 Andreas Schwab <schwab@suse.de>
7409
25cc0080
AS
7410 * gtkutil.c: Add prototype for create_menus.
7411
30225431
AS
7412 * data.c (long_to_cons): Fix type of top.
7413
7414 * xselect.c (selection_data_to_lisp_data): Use int instead of
7415 long for an integer of size 4.
7416
7a555aff 7417 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 7418 (xg_tool_bar_help_callback): Likewise.
7a555aff 7419
a3e4741f
AS
74202003-03-12 Andreas Schwab <schwab@suse.de>
7421
7422 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
7423
9668be7c
KS
74242003-03-12 Kim F. Storm <storm@cua.dk>
7425
03eb5fab 7426 The following changes consolidate the fringe handling from
9668be7c 7427 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 7428
9668be7c
KS
7429 * xdisp.c: Consolidate fringe handling code here.
7430 (left_bits, right_bits, continued_bits, continuation_bits)
7431 (ov_bits, zv_bits): Define fringe bitmaps.
7432 (fringe_bitmaps): New array holding fringe bitmaps.
7433 (draw_fringe_bitmap): Draw a specific bitmap; call display
7434 specific drawing routine via rif->draw_fringe_bitmap.
7435 (draw_row_fringe_bitmaps): Generic replacement for
7436 x_draw_row_fringe_bitmaps; all callers changed.
7437 (compute_fringe_widths): Generic replacement for
7438 x_compute_fringe_widths; all callers changed.
7439
7440 * dispextern.h (enum fringe_bitmap_type): Define here.
7441 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
7442 (fringe_bitmaps): Declare extern.
7443 (struct redisplay_interface): New member draw_fringe_bitmap.
7444 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
7445
7446 * xterm.c: Remove generic fringe code.
7447 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7448 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7449
7450 * w32term.c: Remove generic fringe code.
7451 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
7452 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 7453
9668be7c
KS
7454 * macterm.c: Remove generic fringe code.
7455 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7456 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7457
00a88f32
SM
74582003-03-11 Stefan Monnier <monnier@cs.yale.edu>
7459
7460 * print.c (Fprin1_to_string): Return unibyte string if possible.
7461
1d1de695
DK
74622003-03-09 David Kastrup <dak@gnu.org>
7463
7464 * process.c (read_process_output): We have allocated enough space
7465 for readmax and carryover, so actually use the alloted space.
7466
257f40f2
JD
74672003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7468
7469 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
7470 toolkit scrollbar click.
7471
7472 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
7473 for USE_GTK.
7474 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
7475 also.
7476 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
7477 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 7478
257f40f2
JD
7479 * gtkutil.h: Declare xg_get_scroll_id_for_window.
7480
7481 * gtkutil.c (xg_get_scroll_id_for_window): New function.
7482 (xg_tool_bar_item_expose_callback): New function.
7483 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
7484 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
7485 on the tool bar widget.
7486 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
7487 to expose on the tool bar item widgets.
7488
15213141
JD
74892003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7490
26b74a0b 7491 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 7492 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
7493 deleted from the image cache).
7494
15213141
JD
7495 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
7496 the event isn't for a frame (i.e. for dialogs).
7497
20b853f3 74982003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
7499
7500 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
7501 composition components reaches the limit, terminate composing.
7502 (COMPOSITION_OK): New macro.
00a88f32 7503 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
7504 composition is found.
7505 (coding_restore_composition): Adjust the number of composition
7506 components if it is not sane.
7507
c9029fe5
JB
75082003-03-06 Juanma Barranquero <lektu@terra.es>
7509
7510 * w32term.h (struct w32_display_info): Add xrdb member to support
7511 passing resources via -xrm on Windows.
7512
7513 * w32term.c (w32_make_rdb): New function.
7514 (w32_term_init): Use it to initialize xrdb member of w32_display_info
7515 struct. Delete leftover code.
7516
7517 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
7518 for resources passed on the command line.
7519
7520 * w32reg.c (w32_get_rdb_resource): New function.
7521 (x_get_string_resource): Use it, so resources passed with -xrm
7522 supercede the ones in the registry.
7523
9d00001f
JD
75242003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7525
7526 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
7527 instead of x_top_window_to_frame.
7528
ca2417b9
JD
75292003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7530
7531 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
7532 when restarting Emacs.
7533
5b20caf0
RS
75342003-03-03 Richard M. Stallman <rms@gnu.org>
7535
7536 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
7537 to run kill-buffer-query-functions.
7538 (Qkill_buffer_query_functions): New var.
7539 (syms_of_buffer): Init and staticpro it.
7540
58e91b77
JD
75412003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7542
7543 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
7544
932357b4
KS
75452003-02-25 Kim F. Storm <storm@cua.dk>
7546
7547 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
7548 If centering point failed to make whole line visible and vscroll
7549 is non-zero, disable vscroll and try centering point again.
7550
7551 * lread.c (read1): Accept `single space' syntax like (? x).
7552
bb8db7e1
JD
75532003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7554
7555 * keyboard.c (cancel_hourglass_unwind): Surround with
7556 #ifdef HAVE_X_WINDOWS
7557
47d77aab
KH
75582003-02-25 Kenichi Handa <handa@m17n.org>
7559
7560 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
7561 process only when "subprocesses" is defined.
7562
6a097c0c
SM
75632003-02-24 Stefan Monnier <monnier@cs.yale.edu>
7564
7565 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
7566
0b063c27
JB
75672003-02-24 Juanma Barranquero <lektu@terra.es>
7568
d1135afc
JB
7569 * callint.c (fix_command): Declare as static void and move before
7570 Fcall_interactively.
7571
0b063c27
JB
7572 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
7573 (syms_of_xdisp): Don't initialize Qwhen.
7574
0af912f0
JD
75752003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7576
7577 * keyboard.c (cancel_hourglass_unwind): New function.
7578 (command_loop_1): Cancel hourglass with unwind-protect.
7579
120d0a23
RS
75802003-02-23 Richard M. Stallman <rms@gnu.org>
7581
7582 * callint.c (fix_command): New subroutine, from Fcall_interactively.
7583 Detect (when ... (region-beginning)) etc.
7584 (Fcall_interactively): Call fix_command.
7585 (Qif, Qwhen): New variables.
7586 (syms_of_callint): Init and staticpro them.
0b063c27 7587
120d0a23
RS
7588 * regex.c (print_partial_compiled_pattern): Output to stderr.
7589
4ece81a6
KG
75902003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7591
7592 * dired.c (directory_files_internal): Don't expand directory.
7593 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
7594 instead. From Lars Hansen <larsh@math.ku.dk>.
7595
e52bd6b7
SM
75962003-02-22 Stefan Monnier <monnier@cs.yale.edu>
7597
7598 * fns.c (string_to_multibyte): Remove unused var i.
7599 (Flanginfo): Fix int/Lisp_Object mixup.
7600 (void_call2): New fun.
7601 (Fmap_char_table): Use it in place of call2.
7602
7603 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
7604
7605 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
7606
7607 * keymap.c (copy_keymap_1): Make it static.
7608
7609 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
7610
c33ef7c4
JB
76112003-02-22 David Ponce <david@dponce.com>
7612
7613 * lread.c (Fload): Don't check STRING_MULTIBYTE.
7614
16782258
JD
76152003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7616
7617 * process.h: Removed subtty field from struct Lisp_Process.
7618
7619 * process.c (create_process): Remove setting of subtty.
7620 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
7621 (Fprocess_running_child_p, process_send_signal):
7622 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
7623 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
7624
3abeca61
KG
76252003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7626
7627 * keymap.c (Fdefine_key): Doc fix.
7628
92a8ce63
JB
76292003-02-21 Juanma Barranquero <lektu@terra.es>
7630
7631 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
7632
7633 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
7634 POLLING_PROBLEM_IN_SELECT.
7635
7636 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
7637 Delete #undef of POLLING_PROBLEM_IN_SELECT.
7638
7639 * s/hpux10-20.h: New file.
7640
e52bd6b7
SM
7641 * process.c (wait_reading_process_input):
7642 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 7643
20f1ef2e
KH
76442003-02-20 Kenichi Handa <handa@m17n.org>
7645
32d0a9dc
KH
7646 * fontset.c (check_fontset_name): If NAME is nil, return the
7647 default fontset.
7648 (override_font_info): New function.
e52bd6b7 7649 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
7650 (Ffontset_info): If FONTSET is not the default fontset, merge
7651 FONTSET onto the copy of the default fontset, and work on that
7652 copy. Document that NAME nil means the default fontset.
7653 (Ffontset_font): Document that NAME nil means the default fontset.
7654
20f1ef2e
KH
7655 * process.c (setup_process_coding_systems): If the process's
7656 in/out descriptor is -1, do nothing.
7657
77d1daf2
AS
76582003-02-19 Andreas Schwab <schwab@suse.de>
7659
e52bd6b7
SM
7660 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
7661 Add prototypes.
77d1daf2 7662
f9a45bb3
KH
76632003-02-19 Kenichi Handa <handa@m17n.org>
7664
7665 * xfaces.c (try_alternative_families): Try all scalable fonts if
7666 Vscalable_fonts_allowed is not Qt.
7667
72ecb43c
JD
76682003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7669
7670 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
7671
ee5be7c3
JD
76722003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7673
7674 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
7675 names.
7676
7677 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 7678 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
7679 x_face_list_fonts.
7680 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
7681 (Fx_list_fonts): Set maxnames to -1 to get all font names.
7682
4cd519a7
KS
76832003-02-18 Kim F. Storm <storm@cua.dk>
7684
068f9882
KS
7685 * lread.c (read1): Fix last change.
7686 "`" is not always special. Allow "?" after a character constant.
4cd519a7 7687
7290a344
AC
76882003-02-18 Andrew Choi <akochoi@shaw.ca>
7689
7690 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7691
1f7fa69b
AS
76922003-02-18 Andreas Schwab <schwab@suse.de>
7693
7694 * window.c (window_scroll_pixel_based): Move outside a
7695 multi-glyph character before setting new window start.
7696
7697 * xdisp.c (in_display_vector_p): New function.
7698 * dispextern.h (in_display_vector_p): Declare.
7699
23e21195
KS
77002003-02-18 Kim F. Storm <storm@cua.dk>
7701
7702 * lread.c (read1): Fix and relax read syntax.
7703 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7704 Only recognize "," after dotted-pair dot if inside backquote.
7705 Never include "`" or "," (inside backquote) in a symbol.
7706 Allow dotted-pair dot after a character constant.
7707 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 7708
f098b121
JD
77092003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7710
7711 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7712 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7713 icons. Set name of tool bar to emacs-toolbar.
7714 (update_frame_tool_bar): Connect expose event to
7715 xg_tool_bar_expose_callback.
7716
63020c46
RS
77172003-02-17 Richard M. Stallman <rms@gnu.org>
7718
7719 * keyboard.c (this_command_key_count_reset): New variable.
7720 Initiatize to 0 where this_command_key_count is set.
7721 (read_char): Save and restore this_command_key_count_reset
7722 around input method code.
7723 (read_char): If this_command_key_count_reset, echo reread commands.
7724 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
7725
fb4452cc
KH
77262003-02-17 Kenichi Handa <handa@m17n.org>
7727
7728 * fns.c (string_to_multibyte): Always return a multibyte string.
7729
bd11cc09
JR
77302003-02-16 Jason Rumney <jasonr@gnu.org>
7731
e52bd6b7
SM
7732 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
7733 Negative max_fonts parameter means list all.
bd11cc09 7734
4cdf4bde
DL
77352003-02-14 Dave Love <fx@gnu.org>
7736
7737 * fns.c (Flanginfo): Doc fix.
7738
023b93f6
KS
77392003-02-13 Kim F. Storm <storm@cua.dk>
7740
37cd4238
KS
7741 * lread.c (read_escape): Interpret \s as a SPACE character, except
7742 for \s-X in a character constant which still is the super modifier.
7743 (read1): Signal an `invalid read syntax' error if a character
7744 constant is immediately followed by a digit or symbol character.
7745
140a6b7e
KS
7746 * search.c (Fmatch_data): Doc fix. Explicitly state that
7747 match-data is undefined if last search failed.
7748
023b93f6
KS
7749 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
7750 All uses changed.
7751
7d5c86e5
JB
77522003-02-12 Juanma Barranquero <lektu@terra.es>
7753
7754 * eval.c (Fdefmacro): Fix typo.
7755
295fff2c
KS
77562003-02-12 Kim F. Storm <storm@cua.dk>
7757
7758 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
7759 macro is a string, convert meta modifiers in string when copying
7760 the string into a vector.
7761
60f3202d
KS
77622003-02-11 Kim F. Storm <storm@cua.dk>
7763
7764 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
7765
61cb0b53
KH
77662003-02-11 Kenichi Handa <handa@m17n.org>
7767
7768 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
7769
7392e23c
KS
77702003-02-10 Kim F. Storm <storm@cua.dk>
7771
7772 * process.c: Doc fixes.
7773 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
7774
ce4254bd
KH
77752003-02-10 Kenichi Handa <handa@m17n.org>
7776
9c7a329a
KH
7777 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
7778
ce4254bd
KH
7779 * process.c (QCfilter_multibyte): New variable.
7780 (setup_process_coding_systems): New function.
e52bd6b7
SM
7781 (Fset_process_buffer, Fset_process_filter):
7782 Call setup_process_coding_systems.
ce4254bd
KH
7783 (Fstart_process): Initialize the member `filter_multibyte' of
7784 struct Lisp_Process.
7785 (create_process): Call setup_process_coding_systems.
7786 (Fmake_network_process): New keyward `:filter-multibyte'.
7787 Initialize the member `filter_multibyte' of struct Lisp_Process.
7788 Call setup_process_coding_systems.
7789 (server_accept_connection): Call setup_process_coding_systems.
7790 (read_process_output): If the process has a filter, decide the
7791 multibyteness of a string to given to the filter by
7792 `filter_multibyte' member of the process. If the process doesn't
7793 have a filter and the result of conversion is unibyte, use
7794 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
7795 multibyte form.
7796 (Fset_process_coding_system): Call setup_process_coding_systems.
7797 (Fset_process_filter_multibyte): New function.
7798 (Fprocess_filter_multibyte_p): New function.
7799 (syms_of_process): Intern and staticpro QCfilter_multibyte.
7800 Defsubr Sset_process_filter_multibyte and
7801 Sprocess_filter_multibyte_p.
7802
7803 * process.h (struct Lisp_Process): New member filter_multibyte.
7804
7805 * lisp.h (setup_process_coding_systems): Add prototype.
7806
7807 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
7808 process, update coding systems for the process.
7809
b08d5f59
KH
78102003-02-09 Kenichi Handa <handa@m17n.org>
7811
7812 * fns.c (string_to_multibyte): New function.
7813 (Fstring_to_multibyte): New function.
7814 (syms_of_fns): Defsubr it.
7815
0dfd93c0
AS
78162003-02-08 Andreas Schwab <schwab@suse.de>
7817
7818 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
7819 instead of the substitution.
7820
7b76ca1c
JD
78212003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7822
7823 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
7824
7825 * xmenu.c (menu_position_func): Adjust menu popup position so that
7826 the menu is fully visible.
7b76ca1c 7827
2436a4e4
JD
78282003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7829
7830 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
7831 (x_make_frame_invisible, x_wm_set_icon_position):
7832 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
7833
7834 * xfns.c (x_set_name, x_set_title): Ditto.
7835
37d1e680
RS
78362003-02-04 Richard M. Stallman <rms@gnu.org>
7837
7838 * keyboard.c (echo_now): Update before_command_echo_length.
7839 (Freset_this_command_lengths): Reset this_command_key_count etc.
7840 immediately rather than arranging to do it later.
7841 (before_command_key_count_1, before_command_echo_length_1)
7842 (before_command_restore_flag): Vars deleted.
7843 (add_command_key): Don't handle before_command_restore_flag.
7844 (read_char, record_menu_key): Don't update before_command_key_count or
7845 before_command_echo_length.
7846 (read_char): Don't handle before_command_restore_flag.
7847
7848 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
7849 in direct-output clauses if it wouldn't be called in the ordinary case.
7850
578846a3
KS
78512003-02-04 Kim F. Storm <storm@cua.dk>
7852
7853 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
7854
49853a4d
JD
78552003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7856
7857 * gtkutil.c (remove_from_container): Copying list is not needed.
7858 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
7859 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
7860 on list returned from gtk_container_get_children to avoid memory leak.
7861
8b53dc06
JR
78622003-02-01 Jason Rumney <jasonr@gnu.org>
7863
5d54d177
JR
7864 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
7865 local malloc.
7866 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
7867 definitions in xpm.h.
7868 (init_xpm_functions): New function.
f63fd14e 7869 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
7870 (init_external_image_libraries): Try to load libXpm.dll.
7871
8b53dc06
JR
7872 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
7873 timestamp.
7874
b222e415
DL
78752003-01-31 Dave Love <fx@gnu.org>
7876
7877 * syntax.c (Fskip_chars_forward)
7878 (open-paren-in-column-0-is-defun-start): Doc fix.
7879
c60ee5e7
JB
78802003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
7881
7882 * fileio.c: Support // at start of name for Cygwin (just added proper
7883 preprocessor tests).
7884
7885 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
7886
7887 * Makefile.in: Use @EXEEXT@ for Cygwin.
7888
7889 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
7890
7891 * s/cygwin.h: Added for Cygwin port.
7892
53b37591
JB
78932003-01-31 Juanma Barranquero <lektu@terra.es>
7894
7895 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
7896 when including gif_lib.h.
fe929957 7897 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
7898 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
7899 Windows. Disable color table lookups. Call library functions
53b37591 7900 through pointers determined at runtime.
fe929957
JB
7901 (init_external_image_libraries): Try to load libungif.dll and
7902 libtiff.dll.
53b37591 7903
45415a8f
KH
79042003-01-31 Kenichi Handa <handa@m17n.org>
7905
7906 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 7907 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 7908
a97e4138
JD
79092003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7910
e52bd6b7 7911 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 7912
6eed9bed
DL
79132003-01-30 Dave Love <fx@gnu.org>
7914
7915 * alloc.c (Vgc_elapsed, gcs_done): New variables.
7916 (Fgarbage_collect): Use them.
7917 (init_alloc, syms_of_alloc): Set them up.
7918
100dcd40
JB
79192003-01-30 Juanma Barranquero <lektu@terra.es>
7920
7921 * w32fns.c (init_external_image_libraries): Add missing operator.
7922
fbd852af
JR
79232003-01-29 Jason Rumney <jasonr@gnu.org>
7924
7925 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
7926 an alternative name for jpeg.dll.
7927
8a2d8020
KH
79282003-01-29 Kenichi Handa <handa@m17n.org>
7929
7930 * xdisp.c (set_cursor_from_row): Pay attention to string display
7931 properties.
7932
058c18c7
AC
79332003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7934
7935 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
7936 <escape>.
7937 (keycode_to_xkeysym_table): Reformat and add more comments.
7938 (XTread_socket): Drop special case for backspace.
7939
385f11cf
AC
79402003-01-28 Andrew Choi <akochoi@shaw.ca>
7941
7942 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
7943 values in old-style RGB specs.
7944
c922a224
JB
79452003-01-27 Juanma Barranquero <lektu@terra.es>
7946
7947 * w32fns.c (init_external_image_libraries): Try alternate names for the
7948 jpeg dll.
7949
0a1d6de0
JD
79502003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7951
7952 * gtkutil.c (create_dialog, xg_separator_p)
7953 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
7954 before calling strcmp or strlen.
7955
a97e4138 79562003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
7957
7958 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
7959 and handle image load failure.
7960
28908312
JR
79612003-01-26 Jason Rumney <jasonr@gnu.org>
7962
7963 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
7964 New functions.
f63fd14e
JB
7965 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
7966 Disable color table lookups. Call jpeg library functions
28908312
JR
7967 through pointers determined at runtime.
7968 (init_external_image_libraries): Try to load jpeg.dll.
7969
84e47416
RS
79702003-01-25 Richard M. Stallman <rms@gnu.org>
7971
7972 * lisp.h: Declare format2 instead of format1.
7973
7974 * fileio.c (barf_or_query_if_file_exists):
7975 Call format2 instead of format1.
7976
7977 * editfns.c (format2): New function, replaces format1
7978 but takes exactly two Lisp Objects as format args.
7979
7980 * buffer.c (Fkill_buffer): Call format2 instead of format1.
7981
a97e4138 79822003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
7983
7984 * xterm.h: Change to return value of x_dispatch_event to int.
7985
7986 * xterm.c (x_filter_event): New function.
7987 (event_handler_gdk, XTread_socket): Call x_filter_event.
7988 (x_dispatch_event): Change to return value of finish.
7989 (event_handler_gdk): Use return value from x_dispatch_event.
7990
7991 * xfns.c (x_window): Call create_frame_xic for GTK version to
7992 initialize input methods.
7993
7994 * gtkutil.h: Add (void) prototypes.
7995
7996 * gtkutil.c (create_menus): Remove code that puts the help menu to
7997 the right.
7998
54eefef1
JR
79992003-01-25 Jason Rumney <jasonr@gnu.org>
8000
8001 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
8002 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
8003 (png_load): Adjust colors for Windows. Use Windows
8004 bitmaps. Disable color table lookups.
c262430d
JR
8005 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
8006 (init_png_functions): New function.
8007 (png_read_from_memory, png_load): Call png library functions
8008 through pointers determined at runtime.
8009 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
8010 (init_external_image_libraries): New function.
8011 (init_xfns): Call it.
54eefef1 8012
1a9e275b
AS
80132003-01-24 Andreas Schwab <schwab@suse.de>
8014
8015 * minibuf.c (Fminibuffer_message): Verify type of parameter.
8016
a97e4138 80172003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
8018
8019 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
8020 of static initializer.
8021
422eec7e
DL
80222003-01-24 Dave Love <fx@gnu.org>
8023
8024 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
8025 architectures.
8026
8027 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
8028 Use __alignof__.
8029
2a026b04
KH
80302003-01-24 Kenichi Handa <handa@m17n.org>
8031
8032 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 8033 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
8034 (command_loop_1): Call adjust_point_for_property with proper
8035 second arg.
8036
a18bb28d
JR
80372003-01-22 Jason Rumney <jasonr@gnu.org>
8038
8039 Sync changes with xterm.c and xfns.c.
8040
8041 * w32term.c (x_draw_glyph_string_foreground)
8042 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8043
8044 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
8045 phys_cursor's hpos is overwritten. This is still not completely
8046 correct, as it doesn't really make sense to use hpos at all to
8047 get the cursor glyph (as that is relative to the width of the
8048 characters on the line, which may have changed during the update).
8049
8050 * w32term.c (notice_overwritten_cursor): Handle the special case
8051 of the cursor being in the first blank non-text line at the
8052 end of a window.
8053
8054 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
8055 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
8056 Compute from the x position returned by x_draw_glyphs.
8057
8058 (x_display_and_set_cursor): Don't set phys_cursor_width here,
8059 except for NO_CURSOR and system caret, to make phys_cursor_width
8060 contain what its name suggests.
8061 (notice_overwritten_cursor): Consider the cursor image erased if
8062 the output area intersects the cursor image in y-direction.
8063
6a097c0c
SM
8064 * w32term.c (note_mode_line_or_margin_highlight): Rename from
8065 note_mode_line_highlight and extend.
a18bb28d
JR
8066
8067 * w32term.c (last_window): New variable.
8068 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
8069 (note_mouse_movement): Remove reimplemented code in #if 0.
8070
8071 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
8072 not update_mode_lines, and always set it to 1.
8073
ac6e47ef
JR
80742003-01-21 Jason Rumney <jasonr@gnu.org>
8075
8076 * w32fns.c (IDC_HAND): Define it if system headers don't.
8077
80782003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8079
8080 * w32term.h (struct w32_output): New member hand_cursor.
8081 (WM_EMACS_SETCURSOR): New message definition.
8082
8083 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
8084 function w32_define_cursor.
8085 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
8086 position, change member name output_data.x to output_data.w32 and
8087 add function w32_define_cursor.
8088 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
8089 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
8090 (w32_initialize_display_info):
8091 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
8092
8093 * w32fns.c (Vx_hand_shape): New variable.
8094 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
8095 WM_EMACS_SETCURSOR.
8096 (x-create-frame): Setup Cursor types.
8097
ceb39a17
JB
80982003-01-21 David Ponce <david@dponce.com>
8099
ac6e47ef 8100 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 8101 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 8102 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 8103 2002-09-30.)
ac6e47ef
JR
8104 (w32_draw_relief_rect): Declare all args.
8105 (w32_define_cursor): New.
8106
8107 * w32fns.c (w32_load_cursor): New function.
8108 (w32_init_class): Use it.
8109 (x_put_x_image): Declare all args.
8110
46cf0bed
JB
81112003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8112
8113 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
8114
a97e4138 81152003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
8116
8117 * gtkutil.c: Must include stdio.h before termhooks.h
8118
83fc9c63
DL
81192003-01-21 Dave Love <fx@gnu.org>
8120
8121 * alloc.c (Fgc_status): Print zombie list.
8122 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8123 Fix assignment of zombies.
8124 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8125 Don't take car of non-cons.
8126
8127 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8128
8129 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8130
fe04b8c8
JR
81312003-01-20 David Ponce <david@dponce.com>
8132
8133 * w32menu.c (digest_single_submenu): Declare all args.
8134
8135 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
8136 changes in xmenu.c:
8137
8138 (parse_single_submenu): Use individual keymap's prompt
8139 string as pane name, if there is one.
8140 (set_frame_menubar): Save menu_items_n_panes from each call to
8141 parse_single_submenu and use it when calling digest_single_submenu.
8142
539e69a9
ST
81432003-01-20 Steven Tamm <steventamm@mac.com>
8144
8145 * macterm.c (XTread_socket): Checks for valid, visible window
8146 before sending a scroll-wheel event.
8147
675d000f
RS
81482003-01-20 Richard M. Stallman <rms@gnu.org>
8149
8150 * xdisp.c (redisplay_window): If mini window's buffer is not
8151 a minibuffer, then redisplay it like other windows.
8152
a97e4138 81532003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
8154
8155 * gtkutil.c (xg_create_frame_widgets): Check if there is an
8156 external tool bar before setting tool bar height.
8157
048addec
JD
81582003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8159
8160 * xterm.c (handle_one_xevent): Surround popup_activated
8161 with #ifdef:s for non-toolkit version.
8162
8163 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
8164 (gtkutil.o): New file.
8165 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
8166 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
8167
8168 * gtkutil.c: New file for GTK version.
8169
8170 * gtkutil.h: New file for GTK version.
8171
8172 * xterm.h: Add xt_or_gtk_widget.
8173 Include gtk files for USE_GTK.
8174 (struct x_output): Add toolbar_height.
8175 (struct x_output): Add GTK widgets and Gdk size_hints.
8176 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
8177 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
8178 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
8179
8180 * xterm.c: Include gtkutil.h for USE_GTK.
8181 Declare extern void free_frame_menubar for USE_GTK.
8182 (note_mouse_highlight): Check popup_activated for USE_GTK.
8183 (xt_action_hook): Don't compile if USE_GTK.
8184 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
8185 (xg_scroll_callback): New function.
8186 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
8187 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
8188 for USE_GTK.
8189 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
8190 xg_show_scroll_bar for USE_GTK.
8191 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
8192 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
8193 (event_handler_gdk): New function for USE_GTK.
8194 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
8195 (handle_one_xevent): Make sure widget is mapped before
8196 calling x_real_positions for USE_GTK.
8197 (XTread_socket): Add GTK event loop for USE_GTK.
8198 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
8199 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
8200 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
8201 (x_iconify_frame): Add code for USE_GTK.
8202 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
8203 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
8204 is in gtkutil.c.
8205 (x_term_init): Add initialization for GTK.
8206 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
8207
8208 * xmenu.c: Include gtkutil.h for USE_GTK.
8209 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
8210 (single_menu_item, single_menu_item, Fx_popup_dialog):
8211 Check for USE_GTK.
048addec
JD
8212 (popup_widget_loop): New function for USE_GTK.
8213 (x_activate_menubar): Add code for USE_GTK.
8214 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
8215 (menu_highlight_callback, menubar_selection_callback):
8216 Add USE_GTK versions.
048addec
JD
8217 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
8218 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
8219 (free_frame_menubar): Only compile if not USE_GTK. GTK version
8220 is in gtkutil.c.
8221 (popup_selection_callback): New version for USE_GTK.
8222 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 8223 one USE_X_TOOLKIT version.
048addec
JD
8224 (xmenu_show): Call create_and_show_popup_menu.
8225 (dialog_selection_callback): New version for USE_GTK.
8226 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 8227 one USE_X_TOOLKIT version.
048addec
JD
8228 (xdialog_show): Call create_and_show_dialog.
8229
8230 * xfns.c: Include gtkutil for USE_GTK.
8231 (x_window_to_frame, x_any_window_to_frame)
8232 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8233 (x_top_window_to_frame): Add code for USE_GTK.
8234 (x_set_background_color): Call xg_set_background_color for GTK.
8235 (x_set_menu_bar_lines): Check for USE_GTK.
8236 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
8237 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
8238 (x_window): Call xg_create_frame_widgets for USE_GTK.
8239 (Fx_create_frame): Check for USE_GTK
8240 (Fx_file_dialog): New implementation for USE_GTK.
8241
8242 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
8243 (update_menu_bar): Add check for USE_GTK.
8244 (update_tool_bar): Add check for USE_GTK and external tool bar.
8245 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
8246 (redisplay_internal): Add check for USE_GTK and popup_activated.
8247 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
8248 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
8249 (display_menu_bar): Add check for USE_GTK
8250
8251 * lisp.h: Declare Vx_resource_name extern.
8252
a64387ee 8253 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
8254 for USE_GTK.
8255 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
8256
8257 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
8258 (FRAME_EXTERNAL_TOOL_BAR): New macro.
8259 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
8260
8261 * fileio.c (Fread_file_name): Add check for USE_GTK.
8262
6bdb309a
SM
8263 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
8264 Add check for USE_GTK.
048addec
JD
8265
8266 * config.in: Added HAVE_GTK
8267
8268 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
8269
82702003-01-18 Stefan Monnier <monnier@cs.yale.edu>
8271
8272 * charset.h (Funibyte_char_to_multibyte): Export.
8273
82742003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8275
8276 * xmenu.c (mouse_position_for_popup): New function.
8277 (Fx_popup_menu): Call mouse_position_for_popup for X and
8278 mouse_position_hook for others.
8279
82802003-01-17 Kim F. Storm <storm@cua.dk>
8281
8282 * editfns.c (Finsert): Mention `string-make-multibyte' and
8283 `string-as-multibyte' in doc string.
8284
82852003-01-17 Kenichi Handa <handa@m17n.org>
8286
8287 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 8288
048addec
JD
8289 * editfns.c (Fformat): Convert an unibyte char argument that is
8290 formatted by "%c" to multibyte if the total result must be a
8291 multibyte string.
cd7df9c0 8292
048addec 82932003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 8294
048addec
JD
8295 * process.c (set-process-filter): Document unibyte/multibyte-ness
8296 of string argument.
56210ecd 8297
048addec 82982003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 8299
048addec 8300 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 8301
048addec
JD
8302 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
8303 (re_search_2): Likewise.
6df8b9fe 8304
048addec 83052003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 8306
048addec
JD
8307 * xdisp.c (message_dolog): Fix bug of the case that *Message*
8308 buffer is unibyte.
292ddc31 8309
048addec 83102003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 8311
048addec 8312 * fns.c (Fsubstring): Clarify doc string.
292ddc31 8313
048addec
JD
8314 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
8315 (Fprevious_char_property_change)
8316 (Fnext_single_char_property_change)
8317 (Fprevious_single_char_property_change, Fnext_property_change)
8318 (Fnext_single_property_change, Fprevious_property_change)
8319 (Fprevious_single_property_change, Fadd_text_properties)
8320 (Fput_text_property, Fset_text_properties)
8321 (Fremove_text_properties, Fremove_list_of_text_properties)
8322 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 8323
048addec 83242003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 8325
048addec
JD
8326 * process.h (struct Lisp_Process): New member plist replaces old
8327 member private_vars. All uses changed.
63e4e4c6 8328
048addec 8329 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 8330 (QCplist): Rename from QCvars. Change all uses.
048addec 8331 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 8332 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 8333 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 8334 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 8335
048addec 83362003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 8337
6bdb309a 8338 * m/delta.h: Remove (obsolete).
e833850f 8339
048addec 83402003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 8341
048addec
JD
8342 * fileio.c (Fdelete_directory, Fdelete_file): Document the
8343 behaviour in front of symlinks.
8344 (Fdelete_file): Raise an error on directories.
817cb127 8345
048addec 83462003-01-13 Dave Love <fx@gnu.org>
817cb127 8347
048addec 8348 * fns.c (Freverse): Use QUIT.
3e8cf2ea 8349
048addec 83502003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 8351
048addec
JD
8352 * minibuf.c (minibuffer_completion_contents):
8353 Error if point is inside prompt.
3e8cf2ea 8354
048addec
JD
8355 * keyboard.c (command_loop_1): Don't redisplay directly
8356 if there's a post-command-hook.
3e8cf2ea 8357
048addec
JD
8358 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
8359 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 8360
048addec 83612003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 8362
048addec 8363 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 8364
048addec
JD
8365 * process.c (QCvars): New variable.
8366 (syms_of_process): Intern and staticpro it.
8367 (Fset_process_contact): Removed function.
8368 (Fprocess_variable, Fset_process_variable): New functions.
8369 (syms_of_process): Defsubr them.
8370 (Fstart_process): Initialize private_vars plist to nil.
8371 (Fmake_network_process): New arg :vars to setup the private
8372 variables for new network process.
8373 (server_accept_connection): Copy server's private variables to
8374 client process.
2c10f029 8375
048addec
JD
8376 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
8377 crashes). Code rewritten and simplified. Now directly aligns the
8378 pointer and recalculates pure_bytes_used, rather than aligning the
8379 size and adjusting the pointer.
b8a76c6c 8380
048addec 83812003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 8382
048addec
JD
8383 * process.c (Fset_process_contact): New function.
8384 (syms_of_process): defsubr it.
8385 (make-network-process): Update doc.
3a8d0899 8386
048addec 83872003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 8388
048addec
JD
8389 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
8390 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 8391
048addec 83922003-01-10 Dave Love <fx@gnu.org>
4abc7470 8393
048addec 8394 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 8395
048addec 83962003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 8397
048addec
JD
8398 * process.c (Fmake_network_process): Convert new port number
8399 to host byte order for `:service t' case. From Mario Lang.
bf338245 8400
048addec 84012003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 8402
048addec
JD
8403 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
8404 instead of XtAppProcessEvent.
bf338245 8405
048addec
JD
8406 * xterm.c (handle_one_xevent): New function.
8407 (x_dispatch_event): New function.
8408 (XTread_socket): Call handle_one_xevent.
bf338245 8409
048addec 8410 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 8411
048addec
JD
8412 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
8413 call XQueryPointer to get coordinates.
8414 (popup_get_selection): Do not set popup_activated_flag to zero,
8415 let popup_deactivate_callback do that. Needed for Motif.
8416 Call x_dispatch_event instead of XtDispatchEvent.
8417 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 8418
048addec 84192003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 8420
6bdb309a 8421 * process.c (server_accept_connection): Fix recording of new
048addec
JD
8422 connection's local address in :local property of contact info.
8423 (Fmake_network_process): Record local network address for new
8424 client processes in :local property of contact info.
6bdb309a 8425 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 8426
048addec 84272003-01-07 Dave Love <fx@gnu.org>
00e3ab56 8428
048addec 8429 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 8430
048addec 84312003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 8432
048addec 8433 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 8434
048addec
JD
8435 * eval.c (Fuser_variable_p): Doc change. For custom variables,
8436 use the same test as for custom-variable-p.
8c6d74c6 8437
048addec 84382003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 8439
048addec
JD
8440 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
8441 Count LAST_LINE_MISFIT in scroll margin for end of window.
8442 Move label too_near_end before setting SCROLL_MARGIN_POS.
8443 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 8444
048addec
JD
8445 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
8446 scroll_conservatively case. If scrolling that much doesn't change
8447 STARTP, move it down one line.
e833850f 8448
048addec
JD
8449 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
8450 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 8451
048addec
JD
8452 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
8453 selected frame.
8c6d74c6 8454
048addec
JD
8455 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
8456 (syms_of_keymap): staticpro them.
8457 (Fapropos_internal): Initialize them and clear them out.
8458 Don't GCPRO them.
8c6d74c6 8459
048addec
JD
8460 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
8461 Doc fixes.
8c6d74c6 8462
048addec
JD
8463 * lisp.h: New misc type Lisp_Save_Value.
8464 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
8465 (XSAVE_VALUE): New macro.
8466 (struct Lisp_Save_Value): New data type.
8467 (union Lisp_Misc): Add u_save_value alternative.
8468 (make_save_value): Declared.
8c6d74c6 8469
048addec 8470 * alloc.c (make_save_value): New function.
8c6d74c6 8471
048addec
JD
8472 * xterm.c (x_catch_errors): Save dpy using make_save_value.
8473 (x_catch_errors_unwind): Call XSync.
8c6d74c6 8474
048addec 84752003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 8476
048addec 8477 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 8478
048addec
JD
8479 * keyboard.c (command_loop_1): Call adjust_point_for_property
8480 in direct action cases for Qforward_char and Qbackward_char.
8481 Set already_adjusted so it won't be done twice.
8c6d74c6 8482
048addec 84832002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 8484
048addec
JD
8485 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
8486 type definition of size_t.
8c609cff 8487
048addec 84882003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 8489
048addec
JD
8490 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
8491 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 8492
048addec 84932002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 8494
048addec
JD
8495 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
8496 to default to t.
fa634a5e 8497
048addec 84982002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 8499
048addec 8500 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 8501
048addec 85022002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 8503
048addec
JD
8504 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
8505 allow building in a different directory than source. Uses some
8506 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 8507
048addec 85082002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 8509
048addec
JD
8510 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
8511 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
8512 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
8513 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 8514
048addec 85152002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 8516
048addec
JD
8517 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
8518 <scroll-down-aggressively>: Doc fix.
2155ecf3 8519
048addec
JD
8520 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
8521 string as pane name, if there is one.
8522 (set_frame_menubar): Save menu_items_n_panes from each call to
8523 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 8524
048addec
JD
8525 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
8526 Don't try to make last line fully visible if it is past end of window.
61f1d295 8527
048addec 85282002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 8529
048addec
JD
8530 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
8531 (mac_menu_show): Add support for hierarchical popup menus.
8532 (add_menu_item): Remove indentation support.
8533 (fill_submenu, fill_menu): Create hierarchical menus
8534 instead of using indentation.
0b17a217 8535
048addec 85362002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 8537
048addec
JD
8538 * xdisp.c (try_cursor_movement): Don't call try_window here.
8539 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 8540
048addec 8541 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 8542
048addec 85432002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 8544
048addec
JD
8545 * macterm.c (XTread_socket): Call KeyTranslate for control and
8546 meta to deal correctly shifted non-alpha characters, like C-S-5
8547 being treated like C-%. Does not look for shift key to deal
8548 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 8549
048addec 85502002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 8551
048addec
JD
8552 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
8553 If it is non-nil, run timers. Use an unwind-protect to requeue
8554 the events that were read ahead.
8555 (popup_get_selection_unwind): New subroutine.
8556 (popup_get_selection_queue): File-scope variable now holds that queue.
8557 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
8558 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
8559 Use an unwind-protect to pop down the dialog box.
8560 (xdialog_show_unwind): New subroutine implements that.
f02cac82 8561
048addec
JD
8562 * xdisp.c (row_containing_pos): Change exit test using last_y.
8563 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 8564
048addec
JD
8565 * lread.c (load_error_handler): New function.
8566 (Fload): Handle errors in Fsubstitute_in_file_name.
8567 Don't expect Fsignal to return.
f02cac82 8568
048addec
JD
8569 * eval.c: Errors and throws work right with interrupt blocking.
8570 (struct catchtag): New elt interrupt_input_blocked.
8571 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
8572 (internal_catch, Fcondition_case, internal_condition_case)
8573 (internal_condition_case_1, internal_condition_case_2): Save it.
8574 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 8575
048addec 8576 * editfns.c (Fformat): Add parens.
f02cac82 8577
048addec
JD
8578 * dired.c (file_name_completion): Fix that change.
8579 Delete special quit-handling code; just use QUIT.
f02cac82 8580
048addec 85812002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 8582
048addec
JD
8583 * dired.c (file_name_completion): Close directory on error
8584 just as in directory_files_internal.
1a590729 8585
048addec 85862002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 8587
048addec
JD
8588 * window.c (Fset_window_configuration): Set old_point to correct
8589 value when new_current_buffer == current_buffer.
f02cac82 8590
048addec 85912002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 8592
048addec
JD
8593 Revisited my earlier fix for the following entry in etc/PROBLEMS:
8594 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8595 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 8596
048addec
JD
8597 These changes were in part based upon suggestions made by Peter
8598 'Luna' Runestig [peter@runestig.com].
9785d95b 8599
048addec
JD
8600 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
8601 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 8602 g_b_init_get_sid_identifier_authority ): Add several static
048addec 8603 global variables.
9785d95b 8604
048addec
JD
8605 * w32.c (globals_of_w32): New function. Used to initialize those
8606 global variables that must always be initialized on startup even
8607 when the global variable initialized is non zero. Its primary
8608 purpose at this time is to set the global variables
8609 g_b_init_is_windows_9x, g_b_init_open_process_token,
8610 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
8611 g_b_init_get_sid_identifier_authority to 0 on startup.
8612 Called from main.
9785d95b 8613
048addec
JD
8614 * w32.c (is_windows_9x): Perform initialization only if
8615 g_b_init_is_windows_9x is equal to 0. On initialization set
8616 g_b_init_is_windows_9x equal to 1.
2308af15 8617
048addec
JD
8618 * w32.c (open_process_token): Perform initialization only if
8619 g_b_init_open_process_token is equal to 0. On initialization set
8620 g_b_init_open_process_token equal to 1.
2308af15 8621
048addec
JD
8622 * w32.c (get_token_information): Perform initialization only if
8623 g_b_init_get_token_information is equal to 0. On initialization
8624 set g_b_init_get_token_information equal to 1.
9785d95b 8625
048addec
JD
8626 * w32.c (lookup_account_sid): Perform initialization only if
8627 g_b_init_lookup_account_sid is equal to 0. On initialization
8628 set g_b_init_lookup_account_sid equal to 1.
9785d95b 8629
048addec
JD
8630 * w32.c (get_sid_identifier_authority): Perform initialization
8631 only if g_b_init_get_sid_identifier_authority is equal to 0.
8632 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 8633
f63fd14e 8634 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
8635 those global variables that must always be initialized on startup
8636 even when the global variable initialized is non zero.
8637 Its primary purpose at this time is to initialize the global variable
8638 track_mouse_event_fn.
9785d95b 8639
a64387ee 8640 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 8641 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 8642
048addec 8643 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 8644
f63fd14e 8645 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
8646 initialize those global variables that must always be initialized
8647 on startup even when the global variable initialized is non zero.
8648 Its primary purpose at this time is to initialize the global
8649 variables get_menu_item_info and set_menu_item_info.
9785d95b 8650
048addec
JD
8651 * w32menu.c (initialize_frame_menubar): Remove initialization of
8652 get_menu_item_info and set_menu_item_info.
9785d95b 8653
048addec 8654 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 8655
048addec
JD
8656 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
8657 Declare them.
9785d95b 8658
048addec
JD
8659 * emacs.c (main): Call globals_of_w32 prior to calling
8660 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
8661 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
8662 is defined.
9785d95b 8663
048addec
JD
8664 * w32term.c (x_update_window_begin): Fix Windows API error
8665 detected by BoundsChecker. Test to determine if
8666 w32_system_caret_hwnd is NULL prior to attempting to use
8667 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 8668
048addec
JD
8669 * w32term.c (x_update_window_end): Fix Windows API error
8670 detected by BoundsChecker. Test to determine if
8671 w32_system_caret_hwnd is NULL prior to attempting to use
8672 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 8673
048addec 86742002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 8675
048addec
JD
8676 * coding.c (coding_system_require_warning): New variable.
8677 (syms_of_coding): DEFVAR it.
b6da19ef 8678
048addec 8679 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 8680
048addec
JD
8681 * fileio.c (choose_write_coding_system): Even if
8682 Vcoding_system_for_write is non-nil, if
8683 coding_system_require_warning is nonzero, call
8684 Vselect_safe_coding_system_function.
bfcf6dbe 8685
048addec 86862002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 8687
048addec
JD
8688 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
8689 (lisp): Add font-core.
2c568af5 8690
048addec 86912002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 8692
048addec
JD
8693 * textprop.c (text_read_only): New arg `propval'.
8694 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8695 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 8696
048addec 86972002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 8698
048addec 8699 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 8700
048addec 87012002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 8702
048addec
JD
8703 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8704 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8705 Be more careful about when help_events are generated.
96720f09 8706
048addec 87072002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 8708
048addec
JD
8709 * macterm.c (mac_check_for_quit_char): Correctly set the
8710 modifiers of the event to 0.
8711 * mac.c (sys_select): Duplicate rfds before calling select to
8712 ensure that rfds survive the while loop.
e5ae1c49 8713
048addec 87142002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 8715
048addec
JD
8716 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8717 row_containing_pos returned NULL.
2eb46b2d 8718
048addec 87192002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 8720
6bdb309a 8721 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 8722 non-blocking.
6bdb309a 8723 (sys_select): Fix sys_select to not use a timeout larger than
048addec 8724 the one given.
b11f1d8a 8725
048addec 87262002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 8727
048addec 8728 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 8729
048addec 87302002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 8731
048addec
JD
8732 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
8733 as the last thing.
a4ac5b17 8734
048addec 87352002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 8736
048addec 8737 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 8738
048addec 87392002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 8740
048addec
JD
8741 * editfns.c (Fformat): Handle precision in string conversion
8742 specifiers like libc functions do (ie, print at most that many
8743 characters).
85cce843 8744
048addec 87452002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 8746
048addec
JD
8747 * xdisp.c (row_containing_pos): Check more carefully
8748 whether charpos is really in the row before returning it.
0d4d26a7 8749
048addec 87502002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 8751
048addec 8752 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 8753
048addec
JD
8754 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
8755 each stack frame. This may change as it could be time consuming.
0d4d26a7 8756
048addec
JD
8757 * macterm.c (mac_check_for_quit_char, quit_char_comp)
8758 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 8759 (mac_initialize): Add code to check for pressing of quit_char
048addec 8760 in the OS event queue.
b11f1d8a 8761
048addec
JD
8762 * mac.c (sys_select): Call mac_check_for_quit_char every second
8763 while blocking on select.
0d4d26a7 8764
048addec
JD
8765 * mac.c (sys_read): Use sys_select to test for input first
8766 before calling read, to allow C-g to break.
9252f7bc 8767
048addec 87682002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 8769
048addec 8770 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 8771
048addec 8772 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 8773
048addec 8774 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 8775
048addec
JD
8776 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
8777 autoload.
9252f7bc 8778
048addec 8779 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 8780
048addec 8781 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 8782
048addec 87832002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 8784
048addec 8785 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 8786
048addec 87872002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 8788
048addec 8789 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8790
048addec 8791 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8792
048addec 8793 * alloca.c: Don't use #error.
02d588e2 8794
048addec 87952002-12-03 Dave Love <fx@gnu.org>
02d588e2 8796
048addec
JD
8797 * buffer.c (Qucs_set_table_for_input): New.
8798 (Fget_buffer_create): Use it.
8799 (Qset_buffer_major_mode_hook): Deleted.
8800 (Fset_buffer_major_mode): Revert previous change.
8801 (init_buffer_once): Intern ucs-set-table-for-input.
8802 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
8803 Add &Qucs_set_table_for_input.
451e2697 8804
048addec 88052002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 8806
048addec
JD
8807 * callint.c (Fcall_interactively): Use next_event only if less
8808 than key_count.
72742a99 8809
048addec 88102002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 8811
048addec
JD
8812 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
8813 names to 255 characters.
72742a99 8814
048addec
JD
8815 * macterm.c (XTread_socket): If all frames have been collapsed,
8816 expand the first one before handling drag-and-drop events.
72742a99 8817
048addec
JD
8818 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
8819 which is detected by autoconf.
40e6ff95 8820
048addec 88212002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 8822
048addec
JD
8823 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
8824 offset in two hints table to allow prebinding to be redone and
8825 allow the executable to be stripped.
c02138c6 8826
048addec 88272002-11-29 Dave Love <fx@gnu.org>
c02138c6 8828
048addec
JD
8829 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
8830 already provided.
0e47bbf7 8831
048addec 88322002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 8833
048addec
JD
8834 * xdisp.c (start_display): Check more intelligently for
8835 whether the line is continued.
8836 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 8837
048addec 88382002-11-28 Dave Love <fx@gnu.org>
44129dcb 8839
048addec
JD
8840 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
8841 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 8842
048addec 88432002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 8844
048addec
JD
8845 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
8846 more descriptive error output from lread.c:Fload upon most require
8847 cycles during boostrapping.
1637fd2c 8848
048addec 88492002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 8850
048addec
JD
8851 * fileio.c (Finsert_file_contents): Give a more appropriate error
8852 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 8853
048addec
JD
8854 * dired.c (Ffile_attributes): Don't return negative file sizes for
8855 files bigger than 2Gb when off_t is 32 bit.
540c2788 8856
048addec 88572002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 8858
048addec 8859 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 8860
048addec
JD
8861 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
8862 Test GETPGRP_VOID instead.
8863 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 8864
048addec
JD
8865 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
8866 Don't define.
8867 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 8868
048addec 8869 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 8870
048addec 88712002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 8872
048addec
JD
8873 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
8874 supported.
4042a81a 8875
048addec 88762002-11-25 Dave Love <fx@gnu.org>
4042a81a 8877
048addec 8878 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 8879
048addec 8880 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 8881
048addec 88822002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 8883
048addec 8884 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 8885
048addec 88862002-11-24 Steven Tamm <steventamm@mac.com>
82122254 8887
048addec
JD
8888 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
8889 determine the size of pointers alloced in unexed space instead
8890 of using possibly invalid emacs_zone pointers. This fixes the
8891 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 8892
048addec 88932002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 8894
048addec 8895 * search.c (Fstring_match): Doc fix.
c1ee53bc 8896
048addec
JD
8897 * callint.c (Fcall_interactively): If a command fails because
8898 `*' detects a read-only buffer, but RECORD_FLAG is set,
8899 record it anyway if the args don't actually do tty input.
5598c32e 8900
048addec 89012002-11-22 Dave Love <fx@gnu.org>
5598c32e 8902
048addec 8903 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 8904
048addec
JD
8905 * keyboard.c (interrupt_signal): Provide forward declaration.
8906 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 8907
048addec 8908 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 8909
048addec 89102002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 8911
048addec
JD
8912 * eval.c (interactive_p): Skip any number of bytecode
8913 and special form frames, in any order.
516eea8e 8914
048addec 89152002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 8916
048addec
JD
8917 * w32fns.c (convert_mono_to_color_image): New function.
8918 (xbm_load, xbm_load_image): Use it when foreground or background
8919 is explicitly set.
04dbfa08 8920
048addec 89212002-11-19 Dave Love <fx@gnu.org>
04dbfa08 8922
048addec 8923 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 8924
048addec 89252002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 8926
048addec
JD
8927 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
8928 (XPutPixel): Swap blue and red.
8929 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
8930 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8931 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
8932 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 8933
048addec 89342002-11-18 Dave Love <fx@gnu.org>
d824beee 8935
048addec 8936 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 8937
048addec 8938 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 8939
048addec 8940 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 8941
048addec
JD
8942 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
8943 malloc, realloc, calloc.
d824beee 8944
048addec
JD
8945 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
8946 (bcmp): Don't define.
d824beee 8947
048addec 8948 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 8949
048addec 8950 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 8951
048addec 8952 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 8953
048addec 8954 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 8955
048addec
JD
8956 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
8957 Don't include alloca.h.
d824beee 8958
048addec 8959 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 8960
048addec 8961 * regex.c (_GNU_SOURCE): Don't define.
1998560a 8962
048addec 8963 * process.c (_GNU_SOURCE): Don't define.
1998560a 8964
048addec 8965 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 8966
048addec 89672002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 8968
048addec 8969 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 8970
048addec 89712002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 8972
048addec
JD
8973 * dispextern.h (struct face): Add `overstrike' field.
8974 * xterm.c (x_draw_glyph_string_foreground)
8975 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8976 * xfaces.c (load_face_font): Set `face->overstrike' based on
8977 result from choose_face_font.
8978 (best_matching_font, choose_face_font): Add `needs_overstrike'
8979 argument, and use it to return whether overstriking is desirable
8980 for this face/font combo.
8981 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 8982
048addec 89832002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 8984
048addec
JD
8985 This change is my fix for the following entry in etc/PROBLEMS:
8986 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8987 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 8988
048addec
JD
8989 * w32.c: Added wrapper functions around the win32 API functions
8990 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
8991 GetSidIdentifierAuthority. These wrapper functions serve two
8992 purposes:
8993 1. They ensure that the wrapped function can never be called
8994 when Emacs is running on an operating system on which they are
8995 not supported (Microsoft Windows 95 / 98 / ME).
8996 2. They call the wrapped functions via function pointers rather
8997 than calling them directly. This avoids taking advantage of the
8998 undocumented fact that although these functions are not supported
8999 in the 9x branch of Microsoft Windows, the functions do exist in
9000 the version of advapi32.dll that is found in the 9x branch of
9001 Microsoft Windows.
f60ae425 9002
6bdb309a 9003 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
9004 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
9005 and GetSidIdentifierAuthority with calls to the newly added
9006 wrapper functions.
f60ae425 9007
048addec
JD
9008 * w32.h: Added extern declarations for the following functions:
9009 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
9010 syms_of_w32menu, and void syms_of_fontset.
f60ae425 9011
6bdb309a 9012 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
9013 function pointer track_mouse_event_fn in the handler for the
9014 WM_SETFOCUS message.
3582b6a3 9015
6bdb309a 9016 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
9017 reinitialize the function pointers set_menu_item_info and
9018 get_menu_item_info.
f60ae425 9019
048addec 90202002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 9021
048addec
JD
9022 * sound.c: Added a partial implementation of play-sound-internal
9023 for Microsoft Windows. Added various #ifdef / #else / #endif
9024 code blocks to separate the code that will compile under
9025 Microsoft Windows from the code that is specific to Gnu/Linux.
9026 Moved several blocks of code around to make this separation of code
9027 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 9028
048addec 9029 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 9030
048addec
JD
9031 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
9032 added support for play-sound-internal under Windows would be
9033 included in the build of Emacs.
517f42a0 9034
048addec 90352002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 9036
048addec 9037 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 9038
048addec 9039 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 9040
048addec 90412002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 9042
048addec
JD
9043 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
9044 (adjust_point_for_property): Move out of display and invisible even if
9045 we were already inside before (in case a property was added while
9046 we weren't looking). Be more careful when handling invisible props.
9047 Skip invisible text as if it really wasn't there at all.
aab83f91 9048
048addec 90492002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 9050
048addec
JD
9051 * w32term.c (x_draw_image_foreground)
9052 (w32_draw_image_foreground_1): Use standard copy and invert
9053 operations to draw images.
aab83f91 9054
048addec
JD
9055 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
9056 depth of 1.
9057 (xbm_read_bitmap_data): Invert bits as xbm is read in.
9058 (XPutPixel): Don't invert bits here.
a4478a76 9059
048addec 90602002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 9061
048addec
JD
9062 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
9063 (w32_draw_image_foreground_1): Handle image masks.
9064 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 9065
048addec
JD
9066 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
9067 (x_from_xcolors): Adjust RGB values for W32.
9068 (image_background, image_background_transparent)
9069 (postprocess_image, x_to_xcolors, x_disable_image)
9070 (x_build_heuristic_mask): Adapt for W32 and enable.
9071 (x_create_x_image_and_pixmap): Mark images with palettes as such.
9072 (xbm_load): Remove unused variable.
03670a65 9073
048addec 90742002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 9075
048addec 9076 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 9077
048addec 90782002-11-14 Dave Love <fx@gnu.org>
59daa29a 9079
048addec 9080 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 9081
048addec
JD
9082 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
9083 * xmenu.c (unuse_menu_items, digest_single_submenu):
9084 * xfns.c (x_put_x_image):
9085 * xdisp.c (message2_nolog, set_message):
9086 * undo.c (record_point):
9087 * terminfo.c (tparam):
9088 * syntax.c (scan_sexps_forward):
9089 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9090 * composite.c (update_compositions):
9091 * cm.c (calccost, cmgoto):
9092 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 9093
048addec 9094 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 9095
048addec
JD
9096 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
9097 Don't declare.
59daa29a 9098
048addec 9099 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 9100
048addec
JD
9101 * fns.c (Fcopy_sequence): Doc fix.
9102 (Fmap_char_table): Cast `call2'.
3947677c 9103
048addec
JD
91042002-11-14 Francesco Potorti` <pot@gnu.org>
9105
9106 * s/sol2-8.h: New file.
9107
91082002-11-14 Kim F. Storm <storm@cua.dk>
9109
9110 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
9111 dependency on `risky-local-variable' and the :propertize form.
9112
91132002-11-12 Stefan Monnier <monnier@cs.yale.edu>
9114
9115 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
9116
9117 * syntax.c (scan_sexps_forward): Undo last patch.
9118 Use a more obvious fix: check eob before updating the syntax table.
9119
91202002-11-09 Stefan Monnier <monnier@cs.yale.edu>
9121
9122 * syntax.c (scan_sexps_forward): Update syntax table before reading
9123 a char rather than after so we don't update the table past eob.
9124
91252002-11-09 Dave Love <fx@gnu.org>
9126
9127 * buffer.c (Fset_buffer_major_mode): Fix last change.
9128
9129 * regex.c (regexec): Fix pmatch declaration.
9130
9131 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
9132
9133 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
9134 to self-inserting characters.
9135 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
9136
9137 * coding.c (Vtranslation_table_for_input): New.
9138 (syms_of_coding): DEFVAR it.
9139
91402002-11-08 Juanma Barranquero <lektu@terra.es>
9141
9142 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
9143 window.
9144
91452002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9146
6bdb309a 9147 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
9148 cp, and i.
9149
91502002-11-06 Dave Love <fx@gnu.org>
9151
9152 * buffer.c (Qset_buffer_major_mode_hook): New.
9153 (Fset_buffer_major_mode): Use it.
9154
91552002-11-06 Richard M. Stallman <rms@gnu.org>
9156
9157 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
9158 and stop_polling.
9159
9160 * process.c (wait_reading_process_input):
9161 Test POLLING_PROBLEM_IN_SELECT, not hpux.
9162 Avoid initialization for auto Lisp_Object var.
9163
9164 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
9165
9166 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
9167
91682002-11-05 Richard M. Stallman <rms@gnu.org>
9169
9170 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
9171
9172 * callint.c (Fcall_interactively): New local filter_specs.
9173 (Fcall_interactively): Check for progn as well as let.
9174 Add a gcpro.
9175 (Qprogn): New variable.
9176 (syms_of_callint): Staticpro and init Qprogn.
9177
91782002-11-04 John Paul Wallington <jpw@shootybangbang.com>
9179
9180 * lread.c (Feval_buffer): Doc fix.
9181
91822002-11-04 Dave Love <fx@gnu.org>
9183
9184 * keyboard.c (read_char): Always translate iff
9185 Vkeyboard_translate_table is a char table and c is valid.
9186
9187 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9188 and fix C types.
9189
91902002-11-03 Stefan Monnier <monnier@cs.yale.edu>
9191
9192 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
9193
9194 * editfns.c (get_pos_property): Don't hardcode Qfield.
9195
9196 * keyboard.c (adjust_point_for_property): Handle `display' prop on
9197 overlays. Also handle `invisible' prop.
9198
91992002-11-02 Stefan Monnier <monnier@cs.yale.edu>
9200
9201 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
9202 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
9203
92042002-11-01 Andreas Schwab <schwab@suse.de>
9205
9206 * editfns.c (Fmessage): Revert last change to properly handle %%.
9207
92082002-11-01 Stefan Monnier <monnier@cs.yale.edu>
9209
9210 * xmenu.c (unuse_menu_items): New fun.
9211 (menu_items_inuse): New var.
9212 (syms_of_xmenu): Initialize it.
9213 (init_menu_items): Use it to detect re-entrance.
9214 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
9215 (Fx_popup_menu): Remove spurious XSETFRAME.
9216
9217 * editfns.c (find_field): Make an exception for nil fields.
9218
92192002-11-01 Dave Love <fx@gnu.org>
9220
9221 * m/gec63.h: Deleted.
9222
92232002-10-31 Dave Love <fx@gnu.org>
9224
9225 * xterm.c (XTread_socket): Fix last change.
9226 (xaw_scroll_callback): Cast call_data to long to avoid warning.
9227
92282002-10-31 Stefan Monnier <monnier@cs.yale.edu>
9229
9230 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
9231
92322002-10-30 Stefan Monnier <monnier@cs.yale.edu>
9233
9234 * editfns.c (overlays_around, get_pos_property): New funs.
9235 (find_field): Use them.
9236 Also be careful not to modify POS before its last use.
9237 (Fmessage): Don't Fformat if there's nothing to format.
9238
92392002-10-30 Dave Love <fx@gnu.org>
9240
9241 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
9242 [HAVE_PTY_H]; Include pty.h.
9243
9244 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
9245
9246 * xterm.c (Qeql): Declare.
9247 (Vx_keysym_table): New.
9248 (syms_of_xterm): Initialize it.
9249 (XTread_socket): Use it. Deal with ASCII keysyms.
9250 (XSetIMValues) [HAVE_X11R6]: Prototype.
9251
9252 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
9253 (lispy_kana_keys): Comment out.
9254 (make_lispy_event) [XK_kana_A]: Comment out.
9255 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
9256 Fix sprintf call.
9257
9258 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
9259 regexp.h change).
9260 (TERMINFO, LIBS_TERMCAP): Define.
9261
9262 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
9263 (bcmp): Define conditional on HAVE_BCMP.
9264 (NO_SIOCTL_H): Don't define.
9265 (TIOCSIGSEND): Don't make conditional on IRIX6.
9266
9267 * s/sol2-5.h: Don't include strings.h.
9268 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
9269
9270 * s/irix6-0.h (IRIX6): Don't define.
9271 (bcopy, bcmp, bzero): Don't undef.
9272
9273 * s/irix6-5.h: Don't include strings.h.
9274 (IRIX6): Don't define.
9275 (bcopy, bcmp, bzero): Don't undef.
9276
9277 * syntax.c (Fforward_comment): Doc fix.
9278
92792002-10-29 Kim F. Storm <storm@cua.dk>
9280
9281 * process.c (Fsignal_process): Allow PROCESS to be specified by
9282 name in addition to pid (as integer or string).
9283
92842002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
9285
9286 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
9287 environments.
9288
92892002-10-27 Kim F. Storm <storm@cua.dk>
9290
9291 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9292
9293 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
9294
9295 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
9296
9297 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9298
92992002-10-26 Richard M. Stallman <rms@gnu.org>
9300
9301 * editfns.c (Fformat): Detect invalid format letters for floats.
9302
93032002-10-25 Kenichi Handa <handa@m17n.org>
9304
9305 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
9306 (x_set_title): Likewise.
9307
93082002-10-25 Juanma Barranquero <lektu@terra.es>
9309
9310 * macgui.h:
9311 * w32gui.h: Remove definition of XColor.
9312
9313 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
9314
93152002-10-24 Kim F. Storm <storm@cua.dk>
9316
9317 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
9318 Callers changed (supply dummy arg).
9319
9320 * lisp.h (get_window_cursor_type): Update prototype.
9321
9322 * w32term.c (x_display_and_set_cursor): Get active_cursor from
9323 get_window_cursor_type to track system caret.
9324
93252002-10-24 Kim F. Storm <storm@cua.dk>
9326
9327 * process.c (Fformat_network_address): New function.
9328 (syms_of_process): Defsubr it.
9329 (list_processes_1): Use it to format :local/:remote address if
f9711de4 9330 service/host is not set; before Emacs would crash in that case.
048addec
JD
9331 (Fmake_network_process): Don't use Ffind_operation_coding_system
9332 to setup coding system if host or service is not set.
9333
93342002-10-23 Juanma Barranquero <lektu@terra.es>
9335
9336 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
9337
9338 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
9339 COLORREF.
9340
9341 * macgui.h:
9342 * w32gui.h: Add definition of XColor.
9343
9344 * macfns.c:
9345 * w32fns.c:
9346 * xfaces.c: Remove definition of XColor.
9347
93482002-10-22 Stefan Monnier <monnier@cs.yale.edu>
9349
9350 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
9351
9352 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
9353 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
9354 window if it is dedicated.
9355 (Fshrink_window): Add preserve_before as was done for enlarge_window.
9356 (Vspecial_display_function): Update docstring.
9357
9358 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
9359 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
9360 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
9361
93622002-10-21 Stefan Monnier <monnier@cs.yale.edu>
9363
9364 * casefiddle.c (casify_region): Don't treat a prefix char as part
9365 of a word when at the beginning.
9366
93672002-10-17 Juanma Barranquero <lektu@terra.es>
9368
9369 * lread.c (syms_of_lread): Fix typos.
9370
93712002-10-17 Dave Love <fx@gnu.org>
9372
9373 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
9374
93752002-10-16 Richard M. Stallman <rms@gnu.org>
9376
9377 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
9378
93792002-10-14 Juanma Barranquero <lektu@terra.es>
9380
9381 * w16select.c (syms_of_win16select): Fix docstring for
9382 `selection-coding-system'.
9383
9384 * w32select.c (syms_of_w32select): Likewise.
9385
93862002-10-14 Stefan Monnier <monnier@cs.yale.edu>
9387
9388 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
9389 a backslash-quoted char.
9390 (scan_lists, scan_sexps_forward): Pacify the compiler.
9391
93922002-10-13 Richard M. Stallman <rms@gnu.org>
9393
9394 * window.c (window_scroll): Set immediate_quit.
9395
9396 * print.c (print): When backquote form is the car of a list,
9397 output in old style. Use old_backquote_output to output all
9398 comma forms inside it in old style too.
9399
9400 * buffer.h (struct buffer): Move `undo_list' down below `name'.
9401
94022002-10-11 Markus Rost <rost@math.ohio-state.edu>
9403
9404 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
9405 batch mode).
9406
9407 * lread.c (Fload): Doc fix (load-suffixes).
9408
94092002-10-10 Steven Tamm <steventamm@mac.com>
9410
9411 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
9412 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
9413 Also switch the default to Qnil from Qt.
9414
94152002-10-08 Kenichi Handa <handa@m17n.org>
9416
9417 * coding.c (code_convert_region): When we need more GAP for
9418 conversion, pay attention to the case that coding->produced is not
9419 greater than coding->consumed.
9420
94212002-10-07 Richard M. Stallman <rms@gnu.org>
9422
9423 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
9424
94252002-10-06 Andrew Choi <akochoi@shaw.ca>
9426
9427 * macmenu.c (mac_menu_show): Add j to count menu items; match
9428 menu_item_selection to it to find selected item.
9429
94302002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9431
9432 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
9433 cases. The correct fix is to pass ReparentNotify to Xt.
9434 The shell widget interprets ConfigureNotify differently depending
9435 on if it has been reparented or not.
9436
94372002-10-05 Markus Rost <rost@math.ohio-state.edu>
9438
9439 * editfns.c (Fformat_time_string): Doc fix.
9440
94412002-10-05 John Paul Wallington <jpw@shootybangbang.com>
9442
9443 * fns.c (Flength): Doc fix.
9444
94452002-10-04 Stefan Monnier <monnier@cs.yale.edu>
9446
9447 * keyboard.c (keyremap): New struct.
9448 (read_key_sequence): Use it: globally replace keytran_foo with
9449 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
9450 keytran_next and fkey_next to just `next'.
9451
94522002-10-04 Steven Tamm <steventamm@mac.com>
9453
9454 * macterm.c (keycode_to_xkeysym_table): Change return to be
9455 treated like an X keysym.
9456
94572002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9458
9459 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
9460 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
9461 This is to also handle x/y changes that occur because of a resize.
9462
94632002-10-02 John Paul Wallington <jpw@shootybangbang.com>
9464
9465 * frame.c (Vdelete_frame_functions): New variable.
9466 (syms_of_frame): Initialize and defvar it.
9467 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
9468 it when frame's `tooltip' parameter is non-nil.
9469
9470 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
9471
9472 * w32fns.c (x_create_tip_frame): Likewise.
9473
9474 * macfns.c (x_create_tip_frame): Likewise.
9475
94762002-09-30 Kenichi Handa <handa@m17n.org>
9477
9478 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
9479 -1 before calling ccl_driver.
9480
9481 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
9482 Only when it is non-nil, handle composition sequence.
9483 (setup_coding_system) <0>: Don't force composition handling.
9484
9485 * Makefile.in (lisp, shortlisp): Add utf-16.elc
9486
94872002-09-29 Richard M. Stallman <rms@gnu.org>
9488
9489 * search.c (Freplace_match): Adjust match data for the substitution
9490 just made in the buffer.
9491
9492 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
9493 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
9494
94952002-09-27 Richard M. Stallman <rms@gnu.org>
9496
9497 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
9498 (read_char): Use them. Do all exits thru the end of the function.
9499
95002002-09-27 Kenichi Handa <handa@etl.go.jp>
9501
9502 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
9503 is nil.
9504
95052002-09-26 Richard M. Stallman <rms@gnu.org>
9506
9507 * regex.h (__restrict_arr): Don't define if already defined.
9508
9509 * coding.c (run_pre_post_conversion_on_str):
9510 Save and restore Vdeactivate_mark.
9511
95122002-09-26 John Paul Wallington <jpw@shootybangbang.com>
9513
9514 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
9515
95162002-09-26 Kenichi Handa <handa@etl.go.jp>
9517
9518 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
9519 nonzero, try face's family at first. Otherwise try FAMILY at first.
9520 (choose_face_font): If C is a single byte char or latin-1, call
9521 try_font_list with PREFER_FACE_FAMILY 1.
9522
95232002-09-21 Richard M. Stallman <rms@gnu.org>
9524
9525 * window.c (select_window_1): Don't select frame.
9526 Set frame's selected window only when frame itself is selected.
9527 (Fselect_window): Doc fix.
9528
95292002-09-18 Kim F. Storm <storm@cua.dk>
9530
9531 * process.c (make-network-process): Doc fix (there is no
9532 network-server-log-function hook).
9533
95342002-09-18 Richard M. Stallman <rms@gnu.org>
9535
9536 * print.c (print): Clear out the unused parts of Vprint_number_table.
9537 (syms_of_print): Doc fix for `print-number-table'.
9538
9539 * unexelf.c (unexec): Undo previous change.
9540
95412002-09-17 Andreas Schwab <schwab@suse.de>
9542
9543 * m/alpha.h [LINUX]: Don't define DATA_START.
9544
95452002-09-16 Dave Love <fx@gnu.org>
9546
9547 * unexelf.c (unexec): Deal with .got, reinstating change from
9548 25-08-1999.
9549
95502002-09-13 Richard M. Stallman <rms@gnu.org>
9551
9552 * s/sol2-6.h (UNEXEC): Comment out definition.
9553
9554 * unexsol.c (unexec): Don't downcase first letter of error msg.
9555
9556 * xfaces.c (Fcolor_supported_p): Just one arg is required.
9557
95582002-09-12 Markus Rost <rost@math.ohio-state.edu>
9559
9560 * unexsol.c: Include buffer.h, charset.h, coding.h.
9561
95622002-09-11 Richard M. Stallman <rms@gnu.org>
9563
9564 * unexsol.c: Don't use report_file_error; do it by hand
9565 using dlerror.
9566
9567 * process.c (wait_reading_process_input, both versions):
9568 Before calling turn_on_atimers, call stop_polling.
9569
9570 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
9571
9572 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
9573 we go to too_near_end, call clear_glyph_matrix.
9574 (redisplay_window): After make_cursor_line_fully_visible,
9575 call clear_glyph_matrix and bypass `goto done'.
9576
9577 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
9578 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
9579
95802002-09-10 Richard M. Stallman <rms@gnu.org>
9581
9582 * fileio.c (Fdo_auto_save): Catch error making directory.
9583 Only call push_message if we need to.
9584 At the same time, make an unwind-protect to pop it.
9585 Rename local message_p to old_message_p.
9586 (do_auto_save_make_dir, do_auto_save_eh): New functions.
9587 (do_auto_save_unwind): Don't call pop_message.
9588
9589 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
9590
9591 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
9592
9593 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
9594
9595 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
9596
95972002-09-10 Stefan Monnier <monnier@cs.yale.edu>
9598
9599 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
9600 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
9601 (re_match_2_internal): Be more careful with infinite loops.
9602
96032002-09-10 Kim F. Storm <storm@cua.dk>
9604
9605 * macros.c (end_kbd_macro): New function.
9606 (Fend_kbd_macro): Use it.
9607
9608 * macros.h (end_kbd_macro): Declare extern.
9609
9610 * keyboard.c (Fdiscard_input): If defining keyboard macro,
9611 end and save it instead of discarding it.
9612
96132002-09-09 Markus Rost <rost@math.ohio-state.edu>
9614
9615 * s/sol2-6.h: Fix typo. Add comment.
9616
96172002-09-09 Richard M. Stallman <rms@gnu.org>
9618
9619 * regex.c (regnum_t): Use signed int, not unsigned int.
9620
9621 * s/sol2-6.h: New file.
9622
9623 * s/sol2-5.h (UNEXEC): Definition deleted.
9624
96252002-09-08 Kim F. Storm <storm@cua.dk>
9626
9627 * macros.c (executing_macro_index): Change type to EMACS_INT.
9628 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
9629
9630 * macros.h (executing_macro_index): Change type to EMACS_INT.
9631
96322002-09-06 Richard M. Stallman <rms@gnu.org>
9633
9634 * casetab.c (set_case_table): Make canon table point to eqv table.
9635
96362002-09-06 Juanma Barranquero <lektu@terra.es>
9637
9638 * coding.c (syms_of_coding): Fix spacing.
9639
9640 * composite.c (Fcompose_region_internal)
9641 (Fcompose_string_internal): Likewise.
9642
9643 * data.c (Flsh): Likewise.
9644
9645 * fontset.c (Fset_fontset_font): Likewise.
9646
9647 * macfns.c (Fx_server_max_request_size): Likewise.
9648
9649 * w16select.c (syms_of_win16select): Likewise.
9650
9651 * w32select.c (syms_of_w32select): Likewise.
9652
9653 * xselect.c (syms_of_xselect): Likewise.
9654
96552002-09-05 Richard M. Stallman <rms@gnu.org>
9656
9657 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
9658 call EXTEND_RANGE_TABLE and return a proper value.
9659 (set_image_of_range): Don't call set_image_of_range_1
9660 if no TRANSLATE or if range includes all of Latin-1.
9661 Only call it for the Latin-1 part of the range.
9662 For other cases, make two separate ranges,
9663 one for the original specified characters and one for
9664 their case-conversions.
9665
96662002-09-04 Richard M. Stallman <rms@gnu.org>
9667
9668 * s/sol2-5.h (UNEXEC): Use unexsol.o.
9669
9670 * window.c (displayed_window_lines): Correct for one-off bug
9671 in HEIGHT on non-window displays.
9672
9673 * regex.c (set_image_of_range_1): New function.
9674 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
9675 Return a value to indicate running out of memory.
9676 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
9677 (extend_range_table_work_area): New subroutine.
9678 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
9679 Different calling conventions, and used from set_image_of_range{,_1}.
9680 (IMMEDIATE_QUIT_CHECK): Definitions moved.
9681
96822002-09-04 Juanma Barranquero <lektu@terra.es>
9683
9684 * makefile.w32-in: All dependencies updated.
9685
96862002-09-01 Richard M. Stallman <rms@gnu.org>
9687
9688 * unexsol.c: New file.
9689
9690 * xfns.c (Qbox): Declare external, don't define.
9691
9692 * xdisp.c (redisplay_window) <force-start case>:
9693 If point is on semi-visible last line, reposition
9694 it at previous line.
9695
9696 * alloc.c (display_malloc_warning): Use display-warning.
9697 (malloc_warning_1): Function deleted.
9698
9699 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9700
9701 * lread.c (read1): Handle #! by skipping the line.
9702
97032002-08-31 Richard M. Stallman <rms@gnu.org>
9704
9705 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9706 Don't include LDFLAGS.
9707 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9708
97092002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9710
9711 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9712 member of x_display_info unless we compile for some window system.
9713
97142002-08-31 Kim F. Storm <storm@cua.dk>
9715
9716 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9717 (get_window_cursor_type): Don't use them.
9718 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9719
97202002-08-30 Kenichi Handa <handa@etl.go.jp>
9721
9722 * xdisp.c (get_next_display_element): Fix previous change.
9723
97242002-08-30 Andrew Choi <akochoi@shaw.ca>
9725
9726 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
9727 (expose_window): Use it to fix the display of overlapping
9728 rows (merge code from xterm.c).
9729
9730 * macfns.c (Qbox): Add extern declaration.
9731
97322002-08-30 Juanma Barranquero <lektu@terra.es>
9733
9734 * w32fns.c (Qbox): Make extern.
9735 (syms_of_w32fns): Remove initialization of Qbox.
9736
97372002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
9738
9739 * xfns.c (Fx_open_connection): Fix error message.
9740
97412002-08-30 Kim F. Storm <storm@cua.dk>
9742
9743 The following changes consolidates the handling of the cursor
9744 type in xdisp.c, moving duplicate code and functionality from
9745 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
9746
9747 * frame.h (enum text_cursor_kinds): Consolidated here.
9748 Added DEFAULT_CURSOR value.
9749 (struct frame) <desired_cursor, cursor_width>
9750 <blink_off_cursor, blink_off_cursor_width>: New fields.
9751 Consolidated from output_x, output_w32 and output_mac structs.
9752 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9753 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
9754
9755 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
9756 Variables consolidated here.
9757 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
9758 (Vcursor_in_non_selected_windows): Renamed from
9759 cursor_in_non_selected_windows and changed to Lisp_Object.
9760 (syms_of_xdisp): Define and staticpro new and moved variables.
9761 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
9762 consolidated here. Recognize Qhollow setting.
9763 (set_frame_cursor_types): New function to set frame cursor types
9764 based on the frame parameters.
9765 (get_window_cursor_type): New function to calculate new cursor
9766 type and width for the specified window. Based on duplicated
9767 code consolidated here.
9768 Enhancements: cursor-in-non-selected-windows may be a cursor type,
9769 check buffer-local alternate-cursor-type and blink-cursor-alist
9770 before using built-in blink off methods.
9771
9772 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
9773
9774 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
9775 (get_specified_cursor_type, get_window_cursor_type)
9776 (set_frame_cursor_types): Added prototypes.
9777
9778 * macfns.c (x_specified_cursor_type): Removed.
9779 (x_set_cursor_type): Use set_frame_cursor_types.
9780 (Qbar, Qbox): Removed.
9781 (syms_of_macfns): Don't intern or staticpro them.
9782
9783 * macterm.c (x_specified_cursor_type): Remove prototype.
9784 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9785 (x_display_and_set_cursor): Use get_window_cursor_type.
9786 Remove unused local variables cursor_non_selected, active_cursor.
9787 Redraw cursor if hbar cursor width changes.
9788 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
9789
9790 * macterm.h (enum text_cursor_kinds): Removed.
9791 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
9792 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9793 (FRAME_DESIRED_CURSOR): Macro removed.
9794
9795 * w32fns.c (Vblink_cursor_alist): Removed.
9796 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9797 (syms_of_w32fns): Don't intern, staticpro, or define them.
9798 (x_specified_cursor_type): Removed.
9799 (x_set_cursor_type): Use set_frame_cursor_types.
9800
9801 * w32term.c (x_specified_cursor_type): Remove prototype.
9802 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9803 (x_display_and_set_cursor): Use get_window_cursor_type.
9804 Remove unused local variables cursor_off_state.
9805 Redraw cursor if hbar cursor width changes.
9806 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
9807
9808 * w32term.h (enum text_cursor_kinds): Removed.
9809 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
9810 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9811 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9812 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9813 (struct w32_display_info) <x_highlight_frame>: Renamed member from
9814 w32_highlight_frame.
9815
9816 * xfns.c (Vblink_cursor_alist): Removed.
9817 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9818 (syms_of_xfns): Don't intern, staticpro, or define them.
9819 (x_specified_cursor_type): Removed.
9820 (x_set_cursor_type): Use set_frame_cursor_types.
9821
9822 * xterm.c (x_specified_cursor_type): Remove prototype.
9823 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9824 (x_display_and_set_cursor): Use get_window_cursor_type.
9825 Remove unused local variables cursor_off_state.
9826 Redraw cursor if hbar cursor width changes.
9827
9828 * xterm.h (enum text_cursor_kinds): Removed.
9829 (struct output_x) <current_cursor, desired_cursor, cursor_width>
9830 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9831 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9832 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9833 (x_specified_cursor_type): Remove prototype.
9834
98352002-08-28 Richard M. Stallman <rms@gnu.org>
9836
9837 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9838 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9839 (Vblink_cursor_alist): New variable.
9840 (syms_of_w32fns): Initialize and defvar it.
9841 (x_specified_cursor_type): Recognize Qbox for filled box.
9842 Exceptions are hollow boxes.
9843 (Qbox, Qhollow): New variables.
9844 (syms_of_w32fns): Initialize and staticpro them.
9845
9846 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9847 New macros.
9848 (struct w32_output): New fields blink_off_cursor,
9849 blink_off_cursor_width.
9850 (FRAME_CURSOR_WIDTH): New macro.
9851
9852 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9853 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9854
9855 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9856 for bar cursor.
9857
9858 * w32term.c (expose_overlaps): New function.
9859 (expose_window): Use it to fix the display of overlapping rows.
9860
98612002-08-28 Simon Josefsson <jas@extundo.com>
9862
9863 * xfns.c (Fx_open_connection): Improve help when X connection
9864 fails, xhost is insecure and xauth is better.
9865
98662002-08-28 Juanma Barranquero <lektu@terra.es>
9867
9868 * makefile.w32-in: Add missing dependencies on w32term.h and
9869 composite.h.
9870
9871 * emacs.c (USAGE1): Add missing newline.
9872
98732002-08-27 Andrew Choi <akochoi@shaw.ca>
9874
9875 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
9876
98772002-08-27 Richard M. Stallman <rms@gnu.org>
9878
9879 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9880 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9881 (Vblink_cursor_alist): New variable.
9882 (syms_of_xfns): Initialize and defvar it.
9883 (x_specified_cursor_type): Recognize Qbox for filled box.
9884 Exceptions are hollow boxes.
9885 (Qbox, Qhollow): New variables.
9886 (syms_of_xfns): Initialize and staticpro them.
9887
9888 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9889 New macros.
9890 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
9891
9892 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9893 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9894
9895 * emacs.c (main): Handle --script.
9896 (USAGE1): Mention --script.
9897 (standard_args): Define sort order for --script.
9898
98992002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
9900
9901 * xdisp.c (redisplay_updating_p): Variable removed.
9902 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
9903 New variables.
9904 (init_iterator): Don't free realized faces if
9905 inhibit_free_realized_faces is set.
9906 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
9907 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
9908 initialize Qinhibit_free_realized_faces.
9909
9910 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
9911 when iterator is adding glyphs to a glyph matrix.
9912
99132002-08-27 Kenichi Handa <handa@etl.go.jp>
9914
9915 * xdisp.c (get_next_display_element): In unibyte case, don't use
9916 octal form for such eight-bit characters that can be converted to
9917 multibyte char.
9918
99192002-08-26 Kim F. Storm <storm@cua.dk>
9920
9921 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
9922 and background colors. From Joe Buehler (tiny change).
9923
99242002-08-26 Miles Bader <miles@gnu.org>
9925
9926 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
9927
99282002-08-25 Andrew Choi <akochoi@shaw.ca>
9929
9930 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
9931 defined instead of MAC_OSX.
9932
9933 * s/darwin.h (select): Define select to sys_select only if
9934 HAVE_CARBON is defined.
9935 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
9936 (DONT_REOPEN_PTY): #def it.
9937
9938 * macterm.c (XTread_socket): Remove code to call
9939 SendEventToEventTarget for keys with command modifiers when
9940 mac_command_key_is_meta is nil.
9941
99422002-08-24 Andreas Schwab <schwab@suse.de>
9943
9944 * eval.c (Fdefvar): Fix last change.
9945
99462002-08-23 Richard M. Stallman <rms@gnu.org>
9947
9948 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
9949 Record variables in load history as (defvar . VAR).
9950 (Fdefvar): Don't record in load history if no initial value.
9951 (Qdefvar): New variable.
9952 (syms_of_eval): Init and staticpro it.
9953
9954 * lread.c (syms_of_lread): Doc fix.
9955 (build_load_history): Use Fmember to see if a definition
9956 is already in the Vload_history element.
9957
9958 * process.c (Fstart_process): Remove /: from program name.
9959
9960 * emacs.c (decode_env_path): Don't add /: if file name handler
9961 has a `safe-magic' property.
9962
9963 * callproc.c (Fcall_process): Remove /: from program name.
9964
99652002-08-23 Stefan Monnier <monnier@cs.yale.edu>
9966
9967 * regex.c (PATFETCH): Remove the translating fetch.
9968 (PATFETCH_RAW): Rename to PATFETCH.
9969 (set_image_of_range): New fun.
9970 (SET_RANGE_TABLE_WORK_AREA): Use it.
9971 (regex_compile): Don't translate the pattern chars so eagerly.
9972 Only do it when inserting an `exactn' bytecode or when handling
9973 a char-range.
9974 (mutually_exclusive_p): Avoid empty statement.
9975
99762002-08-22 Kim F. Storm <storm@cua.dk>
9977
9978 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
9979 end up on a partially visible line; this reverts a specific part
9980 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
9981 display error which has been reported several times now.
9982 However it introduces the problem that changes was supposed to fix.
9983 See my comments in the source if you want to debug this further.
9984
99852002-08-20 Kenichi Handa <handa@etl.go.jp>
9986
9987 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9988
99892002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
9990
9991 * msdos.c (croak): Add `void' to definition.
9992
c1380aa6 9993 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
9994 Don't define them, they are defined in msdos.c.
9995
9996 * mem-limits.h [MSDOS]: Declare etext.
9997
9998 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
9999 `const' since CORRECT_DIR_SEPS modifies its target.
10000
100012002-08-19 Kim F. Storm <storm@cua.dk>
10002
2fb0ce67 10003 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
10004 KEEP-RECORD to avoid clearing lossage when we just want to clear
10005 the current key sequence (kmacro needs this).
10006
100072002-08-19 Kenichi Handa <handa@localhost>
10008
10009 * composite.c (run_composition_function): Call FUNC if it is fboundp.
10010
10011 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
10012 cons, return Qnil.
10013
100142002-08-17 Richard M. Stallman <rms@gnu.org>
10015
10016 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
10017
10018 * sysdep.c [!VMS]: Include sys/files.h.
10019
10020 * editfns.c (save_restriction_restore): Defend from unchained marker.
10021
10022 * buffer.c (overlays_at): Handle extending vec uniformly.
10023 (overlays_in): Handle extending vec from length 0 as in overlays_at.
10024
100252002-08-15 Andrew Choi <akochoi@shaw.ca>
10026
10027 * mac.c (init_mac_osx_environment): New function.
10028
10029 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
10030
100312002-08-14 Kim F. Storm <storm@cua.dk>
10032
10033 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
10034 executing macro before appending to it (when used from Lisp).
10035 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
10036 which is called prior to each iteration of macro (for kmacro.el).
10037 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
10038
10039 * lisp.h (Fexecute_kbd_macro): Update prototype.
10040
10041 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
10042
100432002-08-14 Kenichi Handa <handa@etl.go.jp>
10044
10045 * xselect.c (QUTF8_STRING): New variable.
10046 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
10047 (x_atom_to_symbol): Likewise.
10048 (x_get_local_selection): New argument local_request. If it is
10049 nonzero, call handler_fn with the second arg nil.
10050 (x_handle_selection_request): Call x_get_local_selection with
10051 local_request 0.
10052 (lisp_data_to_selection_data): Don't encode the string here.
10053 (Fx_get_selection_internal): Call x_get_local_selection with
10054 local_request 1.
10055 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
10056
10057 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
10058
10059 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
10060
100612002-08-13 Richard M. Stallman <rms@gnu.org>
10062
10063 * minibuf.c (Fminibufferp): New function.
10064 (syms_of_minibuf): Defsubr it.
10065 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
10066
100672002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
10068
10069 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
10070
100712002-08-12 Richard M. Stallman <rms@gnu.org>
10072
10073 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
10074 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
10075 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
10076 already.
10077
10078 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
10079
100802002-08-11 Andrew Choi <akochoi@shaw.ca>
10081
10082 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
10083 (Vmac_pass_command_to_system): New variable.
10084 (Vmac_pass_control_to_system): New variable.
10085 (do_mouse_moved): Check wp with is_emacs_window.
10086 (XTread_socket): Check window_ptr with is_emacs_window.
10087 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
10088 events back to Mac Toolbox for processing, depending on values of
10089 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
10090 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
10091 Vmac_pass_control_to_system.
10092
100932002-08-10 Kenichi Handa <handa@etl.go.jp>
10094
10095 * coding.c (unencodable_char_position): New function.
10096 (Funencodable_char_position): New function.
10097 (syms_of_coding): Defsubr Funencodable_char_position.
10098
100992002-08-10 Andrew Choi <akochoi@shaw.ca>
10100
10101 * mac.c (sys_select) [MAC_OSX]: New function.
10102
10103 * macterm.c (MakeMeTheFrontProcess): New function.
10104 (mac_initialize): Call MakeMeTheFrontProcess.
10105
10106 * s/darwin.h: Define select to sys_select.
10107
101082002-08-09 Richard M. Stallman <rms@gnu.org>
10109
10110 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
10111
101122002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
10113
10114 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
10115 end of the buffer.
10116
101172002-08-08 Ken Raeburn <raeburn@mit.edu>
10118
10119 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
10120
10121 * puresize.h (BASE_PURESIZE): Increase to 910000.
10122
101232002-08-08 Kenichi Handa <handa@etl.go.jp>
10124
10125 * coding.c (Ffind_operation_coding_system): For write-region, if
10126 VISIT is a filename, make it the target.
10127
101282002-08-07 Richard M. Stallman <rms@gnu.org>
10129
10130 * alloc.c (mark_object): Detect long lists for debugging.
10131 (mark_object_loop_halt): New variable.
10132
10133 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
10134
10135 * data.c (Fmake_variable_frame_local): Doc fix.
10136
101372002-08-01 David Ponce <david@dponce.com>
10138
10139 * w32menu.c (local_heap, local_alloc, local_free): New macros.
10140 (malloc_widget_value, free_widget_value)
10141 (w32_free_submenu_strings): Use them.
10142
10143 (push_submenu_start, push_submenu_end, push_left_right_boundary)
10144 (push_menu_pane, push_menu_item, single_keymap_panes)
10145 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
10146 (single_submenu, set_frame_menubar)
10147 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
10148
10149 (Fx_popup_menu): Don't show pop up menu until preceding one is
10150 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
10151
10152 * w32menu.c: Changes adapted from xmenu.c
10153 (set_frame_menubar): First parse all submenus,
10154 then make widget_value trees from them.
10155 Don't allocate any widget_value objects
10156 until we are done with the parsing.
10157 (parse_single_submenu): New function.
10158 (digest_single_submenu): New function.
10159 (single_submenu): Function deleted, replaced by those two.
10160
101612002-08-04 Andrew Choi <akochoi@shaw.ca>
10162
10163 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
10164 returns a valid window pointer before proceeding for keyDown and
10165 autoKey events.
10166
101672002-08-03 Andrew Choi <akochoi@shaw.ca>
10168
10169 * macterm.c (USE_CARBON_EVENTS): New macro.
10170 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
10171 (x_iconify_frame): Call CollapseWindow.
10172 (Vmac_reverse_ctrl_meta): New variable.
10173 (Vmac_wheel_button_is_mouse_2): New variable.
10174 (init_mac_drag_n_drop): New function.
10175 (mac_do_receive_drag): New function.
10176 (mac_handle_service_event): New function.
10177 (init_service_handler): New function.
10178 (mac_to_emacs_modifiers): New function.
10179 (mac_event_to_emacs_modifiers): New function.
10180 (mac_get_mouse_btn): New function.
10181 (mac_convert_event_ref): New function.
10182 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
10183 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
10184 mac_get_mouse_btn.
10185 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
10186
10187 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
10188 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
10189 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
10190 TOOL_BAR_EVENT for MAC_OS as well.
10191 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
10192 as for WINDOWS_NT.
10193 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
10194
10195 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
10196
101972002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
10198
10199 * xdisp.c (forward_to_next_line_start): Fix a condition that
10200 lead to a newline being skipped.
10201
102022002-08-02 Andrew Choi <akochoi@shaw.ca>
10203
10204 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
10205
102062002-08-01 Richard M. Stallman <rms@gnu.org>
10207
10208 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
10209
102102002-07-31 Andrew Choi <akochoi@shaw.ca>
10211
10212 * macfns.c: #undef init_process before #define-ing it.
10213
10214 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
10215 HAVE_CARBON is defined.
10216
102172002-07-31 Richard M. Stallman <rms@gnu.org>
10218
10219 * xmenu.c (set_frame_menubar): First parse all submenus,
10220 then make widget_value trees from them.
10221 Don't allocate any widget_value objects
10222 until we are done with the parsing.
10223 (parse_single_submenu): New function.
10224 (digest_single_submenu): New function.
10225 (single_submenu): Function deleted, replaced by those two.
10226
102272002-07-30 Juanma Barranquero <lektu@terra.es>
10228
10229 * w32proc.c (syms_of_ntproc): Fix docstring of
10230 `w32-get-true-file-attributes'.
10231
102322002-07-28 Richard M. Stallman <rms@gnu.org>
10233
10234 * s/hpux8.h (HPUX8): Define this before including hpux.h.
10235 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
10236
10237 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
10238
10239 * keyboard.c (make_lispy_event):
10240 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
10241 Explicitly clear up_modifier in event->modifiers.
10242
102432002-07-27 Richard M. Stallman <rms@gnu.org>
10244
10245 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
10246
10247 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10248 for bar cursor.
10249
102502002-07-26 Kenichi Handa <handa@etl.go.jp>
10251
10252 * coding.c (detect_coding_iso2022): While checking a byte sequence
10253 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
10254 it in the normal loop.
10255
102562002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
10257
10258 * xterm.c (expose_overlaps): New function.
10259 (expose_window): Use it to fix the display of overlapping rows.
10260
10261 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
10262
102632002-07-23 Ken Raeburn <raeburn@gnu.org>
10264
10265 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
10266 since it only depends on XUINT.
10267
10268 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
10269 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
10270 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
10271 Macros deleted.
3947677c 10272
77d1daf2
AS
10273 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
10274 its value over other approaches.
10275 * sysdep.c (start_of_data): Don't define the function if a macro
10276 form has been defined.
8a8e19a3 10277
048addec
JD
102782002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
10279
10280 * xdisp.c (redisplay_updating_p): New variable.
10281 (init_iterator): Don't free realized faces when
10282 redisplay_updating_p is set.
10283 (redisplay_internal): Set redisplay_updating_p while updating
10284 the display.
10285
102862002-07-23 Richard M. Stallman <rms@gnu.org>
10287
10288 * editfns.c (Fmessage): Treat "" like nil.
10289
102902002-07-23 Kenichi Handa <handa@etl.go.jp>
10291
10292 * xdisp.c (face_before_or_after_it_pos):
10293 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10294
102952002-07-22 Juanma Barranquero <lektu@terra.es>
10296
10297 * callproc.c (init_callproc) [DOS_NT]:
10298 Initialize Vshared_game_score_directory to nil.
10299 (syms_of_callproc) [DOS_NT]: Likewise.
10300
103012002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
10302
10303 * xdisp.c (display_line): Replace an abort with xassert.
10304
103052002-07-21 Richard M. Stallman <rms@gnu.org>
10306
10307 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
10308 and END_UNCHANGED when setting buffer_unchanged_p.
10309 Use current_matrix_up_to_date_p to decide whether to use
10310 try_cursor_movement.
10311
10312 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
10313
10314 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
10315
10316 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
10317 Set to nil if dir does not exist.
10318 (syms_of_callproc): Init unconditionally and simply.
10319
10320 * buffer.c (Fbuffer_list): Doc fix.
10321
103222002-07-21 Ken Raeburn <raeburn@gnu.org>
10323
10324 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
10325
10326 * buffer.c (mmap_realloc): When shrinking, make sure number of
10327 pages to unmap is rounded towards zero.
10328
10329 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
10330 (XSETINT): Deleted.
10331
10332 * m/att3b.h (XINT): Don't define.
10333 (VALBITS, VALMASK, XTYPE): Deleted.
10334 (DATA_SEG_BITS): Define.
10335 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
10336 ARRAY_MARK_FLAG): Deleted.
10337 (DATA_SEG_BITS): Define.
10338 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
10339 (DATA_SEG_BITS): Define.
10340
103412002-07-20 Richard M. Stallman <rms@gnu.org>
10342
10343 * print.c (print_error_message): New args CONTEXT and CALLER.
10344 Calls changed.
10345
10346 * lisp.h (print_error_message): Declare new args.
10347
10348 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
10349 and CONTEXT to print_error_message, don't print them here.
10350 For a Quit, don't use Vsignaling_function.
10351 Call message_log_maybe_newline.
10352
10353 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
10354
103552002-07-20 Kim F. Storm <storm@cua.dk>
10356
10357 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
10358
103592002-07-19 Ken Raeburn <raeburn@gnu.org>
10360
10361 * bytecode.c (struct byte_stack): Pointers into byte string now
10362 point to const.
10363 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
10364 const.
10365 * charset.h (BCOPY_SHORT): Source pointer now points to const.
10366 * coding.c (encode_eol, detect_coding, detect_eol):
10367 (decode_coding, encode_coding, detect_coding_system):
10368 Source strings now treated as const.
10369 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
10370 modify Lisp string contents.
10371 * coding.h (decode_coding, encode_coding, detect_coding,
10372 detect_eol): Declarations updated.
10373 * composite.c (compose_chars_in_text): Treat Lisp string contents
10374 as const.
10375 * dispnew.c (safe_bcopy): Source pointer now points to const.
10376 * lisp.h (STRING_COPYIN): New macro.
10377 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
10378 (internal_with_output_to_temp_buffer): Declarations updated.
10379 * print.c (temp_output_buffer_setup):
10380 (internal_with_output_to_temp_buffer): Buffer name argument is now
10381 pointer to const.
10382 * sound.c (struct sound_device): Function pointer field "write"
10383 buffer argument now points to const.
10384 (vox_write): Buffer argument points to const.
10385 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
10386 contents as const.
10387 * sysdep.c (emacs_write): Buffer pointer now const.
10388 * term.c (encode_terminal_code): Buffer pointer now const.
10389 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
10390 (x_face_list_fonts, x_update_menu_appearance):
10391 (hash_string_case_insensitive): Treat Lisp string contents as const.
10392
103932002-07-19 Juanma Barranquero <lektu@terra.es>
10394
048addec
JD
10395 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
10396
10397 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
10398 (Ffile_name_as_directory): Fix argument name in docstring.
10399 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
10400
104012002-07-18 Richard M. Stallman <rms@gnu.org>
10402
10403 * data.c (Fdefalias): Doc fix.
10404
104052002-07-17 Dave Love <fx@gnu.org>
10406
10407 * intervals.h (text_property_stickiness): Use P_.
10408
10409 * ccl.c: Remove `emacs' conditionals.
10410 (ccl_backtrace_table): Fix size spec.
10411 (ccl_driver): Fix type errors.
10412
104132002-07-16 Ken Raeburn <raeburn@gnu.org>
10414
10415 * alloc.c (xstrdup, make_string, make_unibyte_string)
10416 (make_multibyte_string, build_string): String pointer args now
10417 point to const.
10418 * charset.c (find_charset_in_text, c_string_width):
10419 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
10420 * fileio.c (report_file_error):
10421 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
10422 (count_combining_before, count_combining_after, insert_1_both):
10423 (insert, insert_and_inherit, insert_string):
10424 (insert_before_markers, insert_before_markers_and_inherit):
10425 * lread.c (intern, oblookup, hash_string):
10426 * minibuf.c (temp_echo_area_glyphs):
10427 * search.c (fast_c_string_match_ignore_case):
10428 * sysdep.c (emacs_open, set_file_times):
10429 * xfaces.c (xstricmp):
10430 * xdisp.c (store_frame_title, string_char_and_length):
10431 (message_dolog, message2, message2_nolog, set_message): Likewise.
10432 (set_message_1): Cast message string argument to const pointer.
10433 * editfns.c (general_insert_function): Insertion function now
10434 takes pointer to const for input data.
10435 * charset.h (find_charset_in_text, c_string_width):
10436 (parse_str_as_multibyte): Declarations updated.
10437 * dispextern.h (xstricmp): Declaration updated.
10438 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
10439 (count_size_as_multibyte, count_combining_before):
10440 (count_combining_after, insert_1, insert_1_both, message_dolog):
10441 (insert, insert_and_inherit, insert_before_markers)
10442 (insert_before_markers_and_inherit, set_message, message2):
10443 (message2_dolog, build_string, make_string, make_unibyte_string):
10444 (make_multibyte_string, intern, oblookup, report_file_error):
10445 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
10446 (emacs_open, xstrdup): Declarations updated.
10447 * systime.h (set_file_times): Declaration updated.
10448
10449 * charset.c (find_charset_in_text, lisp_string_width): Use const
10450 for pointer to lisp string data.
10451 * charset.h (FETCH_STRING_CHAR_ADVANCE):
10452 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
10453 * coding.c (Ffind_coding_systems_region_interval):
10454 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
10455 (Fmake_directory_internal, Fdelete_directory):
10456 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
10457 * fontset.c (font_family_registry, fs_query_fontset):
10458 (list_fontsets):
10459 * frame.c (Fframe_parameter):
10460 * keyboard.c (cmd_error_internal):
10461 * keymap.c (Fdescribe_buffer_bindings):
10462 * lread.c (complete_filename_p, openp):
10463 * minibuf.c (Fminibuffer_complete_word):
10464 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
10465 (face_before_or_after_it_pos, next_element_from_string):
10466 (get_overlay_arrow_glyph_row, display_mode_element):
10467 (decode_mode_spec_coding):
10468 * xterm.c (same_x_server): Likewise.
10469
10470 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
10471 settings of non-existent fields.
10472
10473 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
10474 copy a lisp value.
10475
10476 * lread.c (Fintern_soft): Use string macros instead of
10477 Lisp_String fields.
10478 * keyboard.c (echo_char, parse_modifiers_uncached):
10479 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
10480 * textprop.c (validate_interval_range, interval_of): Likewise.
10481
10482 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
10483
10484 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10485 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
10486 XSTRING()->size_byte.
10487
10488 * lisp.h (SDATA, SREF): Produce rvalue.
10489 (SSET): New macro.
10490 * alloc.c (make_event_array): Use SSET for storing into a string.
10491 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
10492 a string.
10493 * casefiddle.c (casify_object): Use SSET.
10494 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10495 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
10496 address of string contents.
10497 * data.c (Faref): Use SDATA.
10498 (Faset): Use SDATA, SSET.
10499 * dired.c (directory_files_internal): Use SSET.
10500 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
10501 (Fread_file_name): Use SREF, SSET.
10502 * fns.c (concat): Use SSET.
10503 (concat, Fdelete): Use SDATA.
10504 * insdel.c (insert_from_string_1): Use SDATA.
10505 * keyboard.c (Fevent_convert_list): Use SREF.
10506 * lread.c (Fload): Use SDATA, SSET.
10507 * macfns.c (validate_x_resource_name): Use SSET.
10508 * process.c (status_message): Use SSET.
10509 * search.c (wordify): Use SDATA.
10510 (Freplace_match): Use SREF.
10511 * w32fns.c (validate_x_resource_name): Use SSET.
10512 * xfns.c (validate_x_resource_name): Use SSET.
10513 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
10514
105152002-07-16 Richard M. Stallman <rms@gnu.org>
10516
10517 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
10518
10519 * xdisp.c (reconsider_clip_changes):
10520 Don't test prevent_redisplay_optimizations_p.
10521 (redisplay_internal): Test prevent_redisplay_optimizations_p
10522 along with clip_changed in some cases.
10523 (try_window_id): Likewise.
10524 (redisplay_window): New local var buffer_unchanged_p.
10525
10526 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
10527
10528 * process.c (create_process): Test USG_SUBTTY_WORKS.
10529 (process_send_signal): Clean up handling of GID.
10530 Detect errors in ioctls meant to set GID.
10531
10532 * window.c (temp_output_buffer_show):
10533 Don't set prevent_redisplay_optimizations_p.
10534
105352002-07-15 Juanma Barranquero <lektu@terra.es>
10536
10537 * eval.c (Fdefvaralias): Add docstring argument.
10538
105392002-07-15 Ken Raeburn <raeburn@gnu.org>
10540
10541 * lisp.h (STRING_INTERVALS): Produce rvalue.
10542 (STRING_SET_INTERVALS): New macro.
10543 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
10544 * fns.c (Fstring_as_multibyte): Likewise.
10545 * intervals.c (balance_possible_root_interval, delete_interval)
10546 (create_root_interval, copy_intervals_to_string): Likewise.
10547 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
10548 instead of 0.
10549
105502002-07-14 Ken Raeburn <raeburn@gnu.org>
10551
10552 * lisp.h (STRING_SET_CHARS): New macro.
10553 (SCHARS, SBYTES): Produce rvalues.
10554 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
10555 * fns.c (concat): Likewise.
10556 * lread.c (read_vector): Likewise.
10557
10558 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
10559 (STRING_SET_UNIBYTE): New macro.
10560 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
10561 length of -1) changed to use STRING_SET_UNIBYTE.
10562 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
10563 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
10564 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
10565 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
10566 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
10567 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
10568 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
10569 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
10570 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
10571 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
10572 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
10573 STRING_BYTES or indirection changed to SCHARS, SBYTES,
10574 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
10575 unchanged for now.
10576
105772002-07-13 Kim F. Storm <storm@cua.dk>
10578
10579 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
10580
105812002-07-12 Richard M. Stallman <rms@gnu.org>
10582
10583 * fileio.c (Fwrite_region): Doc fix.
10584
10585 * print.c (print_error_message): Don't handle Vsignaling_function here.
10586
10587 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
10588 (command_loop_1): Avoid certain actions after memory-full error.
10589
10590 * eval.c (Fsignal): Don't call cancel_hourglass.
10591 For a memory-full error, don't call Vsignal_hook_function
10592 and don't set Vsignaling_function.
10593
10594 * process.c (process_send_signal): Add abort call.
10595
105962002-07-11 Markus Rost <rost@math.ohio-state.edu>
10597
10598 * keymap.c (Fkey_binding): Fix typo.
10599
106002002-07-11 Richard M. Stallman <rms@gnu.org>
10601
10602 * alloc.c (Vmemory_full): New variable.
10603 (Vmemory_signal_data): Renamed from memory_signal_data.
10604 Uses changed.
10605 (syms_of_alloc): Defvar them.
10606 (memory_full, buffer_memory_full): Set Vmemory_full.
10607
10608 * lisp.h (Vmemory_full): Add declaration.
10609 (current_column, indented_beyond_p): Change declaration.
10610
10611 * indent.c (last_known_column): Declare as double, not float.
10612 (current_column, current_column_1, string_display_width)
10613 (position_indentation): Return `double'.
10614 (indented_beyond_p): Arg `column' is `double'. Callers changed.
10615
10616 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
10617 (back_to_previous_visible_line_start)
10618 (reseat_at_next_visible_line_start, next_element_from_buffer):
10619 Use `double', not `float', when calling indented_beyond_p.
10620
10621 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
10622
10623 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
10624
106252002-07-11 Juanma Barranquero <lektu@terra.es>
10626
10627 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
10628 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
10629 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
10630 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
10631 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
10632 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
10633
106342002-07-10 Juanma Barranquero <lektu@terra.es>
10635
d814862a
JB
10636 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
10637 All callers changed.
048addec
JD
10638
106392002-07-09 Stefan Monnier <monnier@cs.yale.edu>
10640
10641 * data.c (Fdefalias): Add an optional `docstring' argument.
10642 (set_internal, Fsetq_default): Use XCAR/XCDR.
10643
10644 * composite.c (HASH_VALUE, HASH_KEY):
10645 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
10646
106472002-07-09 Kenichi Handa <handa@etl.go.jp>
10648
10649 * callproc.c (Fcall_process): Fix previous change.
10650
106512002-07-07 Stefan Monnier <monnier@cs.yale.edu>
10652
10653 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10654 Add support for hash-tables.
10655 (Ftry_completion): Return t even if the string appears multiple times.
10656
10657 * fns.c (Fnconc): Use XCDR.
10658 (Fprovide): Use CONSP and XCDR.
10659 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10660 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
10661 (Fmake_hash_table): Accept `:size nil'.
10662 (Fmakehash): Delete: moved to subr.el.
10663 (syms_of_fns): Don't defsubr makehash.
10664
10665 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10666 (HASH_TABLE_SIZE): Move from fns.c.
10667
106682002-07-07 Richard M. Stallman <rms@gnu.org>
10669
10670 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
10671 Instead just return 0 when there is something to be done.
10672 (try_scrolling): If make_cursor_line_fully_visible returns 0,
10673 retry scrolling as if cursor were off the bottom.
10674 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
10675 return CURSOR_MOVEMENT_MUST_SCROLL.
10676 (redisplay_window): If make_cursor_line_fully_visible returns 0,
10677 go to try_to_scroll.
10678
10679 * buffer.c (Fbuffer_local_value): Store current value into its binding
10680 so we get the up-to-date value for the binding that is loaded.
10681
10682 * eval.c (Fdefmacro): Doc fix.
10683
106842002-07-05 Dave Love <fx@gnu.org>
10685
10686 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
10687 correctly.
10688
10689 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10690 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10691 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10692 CCL_LookupCharConstTbl.
10693 (syms_of_ccl): Defvar translation-hash-table-vector.
10694
106952002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10696
10697 * xdisp.c: Remove unused variable `face'.
10698
106992002-07-04 Juanma Barranquero <lektu@terra.es>
10700
10701 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10702 obsolescence information.
10703
107042002-07-03 Andrew Choi <akochoi@shaw.ca>
10705
10706 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10707 pattern. Search cache first.
10708 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10709 for Japanese font.
10710 (XLoadQueryFont): Use it.
10711
107122002-07-02 Richard M. Stallman <rms@gnu.org>
10713
10714 * keymap.c (Fdefine_key): Doc fix.
10715
10716 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10717
107182002-07-02 Juanma Barranquero <lektu@terra.es>
10719
10720 * keymap.c (syms_of_keymap): Fix typo.
10721
107222002-07-01 Andrew Choi <akochoi@shaw.ca>
10723
10724 * s/darwin.h: Define POSIX_SIGNALS.
10725
10726 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
10727 and FSRefMakePath to convert FSSpec returned with Apple Event to
10728 Posix pathname.
10729 (mac_initialize) [TARGET_API_MAC_CARBON]:
10730 Call init_required_apple_events and disable the `Quit' menu item
10731 provided automatically by the Carbon Toolbox.
10732
107332002-07-01 Dave Love <fx@gnu.org>
10734
10735 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10736 for K&R.
10737
10738 * xterm.c: Fix prototype for K&R.
10739
10740 * term.c (costs_set): Declare static, non-initialized for pcc.
10741
107422002-07-01 Richard M. Stallman <rms@gnu.org>
10743
10744 * keyboard.c (timer_last_idleness_start_time): New variable.
10745 (timer_start_idle): Set that.
10746 (read_key_sequence): Use that to reset timer_idleness_start_time
10747 to previous value.
10748
10749 * window.c (Frecenter): With arg, set optional_new_start.
10750
10751 * xdisp.c (redisplay_internal): Make optional_new_start really work.
10752
10753 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
10754 buffer for completion.
10755
107562002-06-29 Ken Raeburn <raeburn@gnu.org>
10757
10758 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
10759
107602002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10761
10762 * keyboard.c (readable_filtered_events): New function that filters
10763 FOCUS_IN_EVENT depending on parameter.
10764 (readable_events): Calls readable_filtered_events, not filtering
10765 FOCUS_IN_EVENT.
10766 (get_filtered_input_pending): New function, filtering parameter passed
10767 to readable_filtered_events.
10768 (get_input_pending): Calls get_filtered_input_pending, not filtering
10769 FOCUS_IN_EVENT.
10770 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
10771 FOCUS_IN_EVENT.
10772
10773 * xterm.h (struct x_output): Add focus_state.
10774
10775 * xterm.c (x_focus_changed): New function.
10776 (x_detect_focus_change): New function.
10777 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
10778 EnterNotify and LeaveNotify to track X focus changes.
10779
107802002-06-28 Andreas Schwab <schwab@suse.de>
10781
10782 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
10783
107842002-06-27 Kim F. Storm <storm@cua.dk>
10785
10786 * xdisp.c: (mode_line_string_list, mode_line_string_face)
10787 (mode_line_string_face_prop): New variables.
10788 (store_mode_line_string): New function.
10789 (display_mode_element): Use store_mode_line_string to
10790 add mode-line string elements to mode_line_string_list
10791 when mode_line_string_list is non-nil.
10792 (Fformat_mode_line): Now returns propertized string by
10793 default. New arg NO-PROPS to ignore properties.
10794 (decode_mode_spec): Only add two dashes for %- in propertized
10795 mode-line string.
10796 (syms_of_xdisp): Init and staticpro mode_line_string_list.
10797
107982002-06-27 Stefan Monnier <monnier@cs.yale.edu>
10799
10800 * minibuf.c (minibuffer_completion_contents): Add return type.
10801
108022002-06-27 Juanma Barranquero <lektu@terra.es>
10803
10804 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
10805
108062002-06-26 Juanma Barranquero <lektu@terra.es>
10807
10808 * fileio.c (read_file_name_cleanup): Add missing return.
10809
108102002-06-26 Richard M. Stallman <rms@gnu.org>
10811
10812 * window.c (Frecenter): Don't set force_start flag.
10813
10814 * minibuf.c (do_completion, Fminibuffer_complete_word)
10815 (Fminibuffer_completion_help): Complete just the text before point.
10816 (minibuffer_completion_contents): New function.
10817
10818 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
10819
10820 * frame.c (frames_bury_buffer): Function deleted.
10821
108222002-06-25 Miles Bader <miles@gnu.org>
10823
10824 * callint.c (Fcall_interactively): When checking to see if doprnt hit
10825 the end of callint_message, allow for a terminating '\0'.
10826
108272002-06-24 Juanma Barranquero <lektu@terra.es>
10828
10829 * w32select.c: Include composite.h
10830
10831 * w16select.c: Likewise.
10832
108332002-06-24 Kenichi Handa <handa@etl.go.jp>
10834
10835 * callproc.c (Fcall_process): If code detection is necessary,
10836 call detect_coding directly here.
10837
10838 * coding.c (detect_eol): Preserve coding->cmp_data.
10839
10840 * w16select.c (Fw16_get_clipboard_data):
10841 * w32fns.c (w32_to_x_font):
10842 * w32select.c (Fw32_get_clipboard_data):
10843 * xselect.c (selection_data_to_lisp_data):
10844 * xterm.c (XTread_socket): Disable composition handling.
10845
108462002-06-24 Stefan Monnier <monnier@cs.yale.edu>
10847
10848 * print.c (temp_output_buffer_setup): Kill all local variables.
10849
108502002-06-22 Stefan Monnier <monnier@cs.yale.edu>
10851
10852 * lread.c (Fread): Remove redundant and imprecise declaration.
10853
10854 * xfns.c (check_x_display_info): Use check_x_frame.
10855
10856 * .gdbinit (xprintsym): Use the new `xname' field.
10857 (xsymbol): Use it.
10858
108592002-06-22 Jason Rumney <jasonr@gnu.org>
10860
10861 * w32fns.c (file_dialog_callback): New function.
10862 (Fx_file_dialog): Allow selecting directories as well as files.
10863
108642002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10865
10866 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 10867 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
10868
108692002-06-17 Andrew Choi <akochoi@shaw.ca>
10870
10871 * macterm.c (mac_scroll_area): Set foreground and backcolor to
10872 black and white before scrolling. Restore frame background and
10873 foreground color after scrolling.
10874 (do_window_update): Call XClearWindow before calling expose_frame.
10875 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
10876 FRAME_FOREGROUND_PIXEL of frame.
10877
10878 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10879 test Mac command key as <ALT> key.
10880
108812002-06-17 Stefan Monnier <monnier@cs.yale.edu>
10882
10883 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
10884
10885 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
10886 Lookup keys in function-key-map immediately so that key-translation-map
10887 can be applied earlier.
10888 Remove function_key_possible and key_translation_possible, replaced
10889 by checking `keytran_start < t'.
10890
10891 * .gdbinit (xsymbol): Use the new `xname' field.
10892
108932002-06-17 Andrew Choi <akochoi@shaw.ca>
10894
10895 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10896 test Mac command key as <ALT> key.
10897
10898 * mac.c (do_applescript): Call initialize_applescript if necessary
10899 when first called. Dispose of result_desc only when there is no error.
10900 (Fdo_applescript): Use %d format specifier instead of %ld.
10901
109022002-06-16 Andrew Choi <akochoi@shaw.ca>
10903
10904 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
10905 of FrontWindow for cases keyDown and autoKey.
10906
10907 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
10908 Vdefault_fontset to Monaco with mac-roman coding.
10909
10910 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
10911 init_process before and after inclusion of Carbon/Carbon.h, resp.
10912
10913 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
10914 cursor_gc.
10915 (add_font_name_table_entry): New function.
10916 (init_font_name_table): Use add_font_name_table_entry; add italic,
10917 bold, and bold-italic entries for truetype fonts.
10918
10919 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
10920 for Mac too.
10921 (try_font_list) [MAC_OS]: If no font matches given registry, try
10922 fonts with any registry matching face_family.
10923 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
10924
10925 * s/darwin.h: If autoconf detects the Ncurses library, define
10926 LIBS_TERMCAP to -lncurses to use it.
10927
109282002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
10929
10930 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
10931
109322002-06-15 Richard M. Stallman <rms@gnu.org>
10933
10934 * window.c (Fset_window_configuration): Explicitly preserve
10935 the point value that new_current_buffer had at the start.
10936
109372002-06-14 Juanma Barranquero <lektu@terra.es>
10938
10939 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
10940 Fix typos.
10941
109422002-06-14 Kim F. Storm <storm@cua.dk>
10943
10944 * insdel.c (insert_1_both, insert_from_string_1)
10945 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
10946 insert happened in the end_unchanged region. Otherwise, the
10947 redisplay may be confused and duplicate the last line in the
10948 buffer [seen after save-buffer when require-final-newline==t].
10949
109502002-06-13 Jason Rumney <jasonr@gnu.org>
10951
10952 * w32.c (init_environment): Remove EMACSLOCKDIR.
10953 (stat): Swap _S_IFDIR and _S_IFREG.
10954
109552002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10956
10957 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
10958 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
10959 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
10960 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
10961 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
10962 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
10963 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
10964 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
10965 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
10966 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
10967 SELECTION_REQUEST_EVENT, selection_clear_event to
10968 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
10969 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
10970 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
10971 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
10972 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
10973 no_event to NO_EVENT.
10974
109752002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10976
10977 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
10978
109792002-06-12 Stefan Monnier <monnier@cs.yale.edu>
10980
10981 * intervals.c (textget): Don't forget to `return'.
10982 (lookup_char_property): Use XCAR/XCDR.
10983
109842002-06-12 Juanma Barranquero <lektu@terra.es>
10985
10986 * xdisp.c (Fformat_mode_line): Fix typo.
10987
109882002-06-12 Kim F. Storm <storm@cua.dk>
10989
10990 * xdisp.c (Fformat_mode_line): New function.
10991 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
10992 (store_frame_title_char, store_frame_title): Use unconditionally.
10993 (init_xdisp): Defsubr Fformat_mode_line.
10994 Initialize frame_title_buf etc. unconditionally.
10995
109962002-06-11 Stefan Monnier <monnier@cs.yale.edu>
10997
10998 * keyboard.c (read_key_sequence):
10999 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
11000 things through those maps after downcasing events.
11001 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
11002 applies after function-key-map.
11003 Make sure that keytran can be done in the middle in the sequence.
11004 Be careful not to throw away events past the one we downcase.
11005
11006 * lread.c (read_integer): Remove unused var `tem'.
11007 (read1): Fix int/Lisp_Object mixup.
11008
11009 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
11010
110112002-06-11 Richard M. Stallman <rms@gnu.org>
11012
11013 * keyboard.c (readable_events): Ignore any number of
11014 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
11015
110162002-06-09 Miles Bader <miles@gnu.org>
11017
11018 * xfaces.c (Ftty_supports_face_attributes_p): New function.
11019 (parse_rgb_list, tty_lookup_color): New functions.
11020 (tty_defined_color): Use `tty_lookup_color' to do all the work.
11021 (color_distance, Fcolor_distance): New functions.
11022 (TTY_SAME_COLOR_THRESHOLD): New macro.
11023 (Qtty_color_standard_values): New variable.
11024 (syms_of_xfaces): Initialize new vars & functions.
11025
110262002-06-08 Colin Walters <walters@verbum.org>
11027
11028 * textprop.c (Vchar_property_alias_alist): New variable.
11029 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
11030
11031 * intervals.c (lookup_char_property): New function for looking up
11032 overlay and text properties, created from textget.
11033 (textget): Use it.
11034
11035 * intervals.h (lookup_char_property): Declare.
11036 (Vchar_property_alias_alist): Declare.
11037
11038 * buffer.c (Foverlay_get): Use lookup_char_property.
11039
110402002-06-07 Sam Steingold <sds@gnu.org>
11041
11042 * xselect.c (lisp_data_to_selection_data): Fix last change:
11043 *data_ret is not a Lisp string, while unibyte_string is.
11044
110452002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
11046
11047 * xselect.c (lisp_data_to_selection_data): Fix last change:
11048 set size_ret.
11049
110502002-06-07 Andreas Schwab <schwab@suse.de>
11051
11052 * m/amdx86-64.h: New file.
11053
110542002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
11055
11056 * fns.c (Fstring_make_unibyte): Doc fix.
11057
11058 * xselect.c (lisp_data_to_selection_data): If the requested type
11059 is STRING, call string_make_unibyte to encode the selected text
11060 as a string.
11061
11062 * window.c (Fset_window_hscroll): Doc fix.
11063
110642002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11065
11066 * fileio.c (choose_write_coding_system):
11067 Call select-safe-coding-system properly.
11068
110692002-06-03 Richard M. Stallman <rms@gnu.org>
11070
11071 * xdisp.c (message_with_string): Error if STRING is not a string.
11072
11073 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
11074
11075 * fileio.c (choose_write_coding_system): Pass FILE arg to
11076 Vselect_safe_coding_system_function.
11077
110782002-06-03 Ken Raeburn <raeburn@gnu.org>
11079
11080 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
11081
110822002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
11083
11084 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
11085 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
11086 * keymap.c (describe_command): Likewise.
11087 * minibuf.c (read_minibuf): Likewise.
11088
11089 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
11090 Cast `current_column' return value to int.
11091 (back_to_previous_visible_line_start)
11092 (reseat_at_next_visible_line_start, next_element_from_buffer):
11093 Cast `indented_beyond_p' 3rd arg to float.
11094
11095 * indent.c (last_known_column): Now a float.
11096 (current_column_1, position_indentation, current_column)
11097 (string_display_width): Return float.
11098 (Fcurrent_column): Cast `current_column' return value to int.
11099 (Fcurrent_indentation): Cast `position_indentation' retval to int.
11100 (indented_beyond_p): Third arg now a float.
11101 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
11102
11103 * lisp.h (current_column): Now returns float.
11104 (indented_beyond_p): 3rd arg now a float.
11105
111062002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
11107
11108 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
11109 is Qcompound_text_with_extensions.
11110
11111 * xselect.c (lisp_data_to_selection_data): Always set selection
11112 type as string if x_encode_text returns streingp non-NULL.
11113
11114 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
11115
111162002-05-30 Richard M. Stallman <rms@gnu.org>
11117
11118 * window.c (Fset_window_configuration): Correct the handling
11119 of point in current buffer, to work with multiple windows.
11120
111212002-05-29 Colin Walters <walters@verbum.org>
11122
11123 * lread.c (Fread_from_string): Don't depend on order of evaluation
11124 for C function parameters.
11125
111262002-05-28 Richard M. Stallman <rms@gnu.org>
11127
11128 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
11129 way for blinked-off state and for a nonselected window.
11130
11131 * window.c (window_scroll_pixel_based): Don't call Fbolp;
11132 instead, see if the new start pos is at beginning of line.
11133
11134 * fileio.c (Fwrite_region): If START is a string, don't
11135 make any annotations.
11136
11137 * eval.c (syms_of_eval): Doc fix.
11138
111392002-05-28 Colin Walters <walters@debian.org>
11140
11141 * emacs.c (USAGE1): Add --no-splash.
11142 (standard_args): Ditto.
11143
111442002-05-28 Colin Walters <walters@gnu.org>
11145
11146 * lread.c (readchar_count): New variable.
11147 (readchar): Increment it.
11148 (unreadchar): Decrement it.
11149 (read_multibyte): Decrement it.
11150 (Vread_with_symbol_positions): New variable.
11151 (Vread_symbol_positions_list): New variable.
11152 (read_internal_start): New function, created from Fread and
11153 Fread_from_string. Handle Vread_symbol_positions_list and
11154 Vread_with_symbol_positions.
11155 (readevalloop, Fread, Fread_from_string): Use it.
11156 (read1): Use readchar_count to add symbol positions to
11157 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
11158 (syms_of_lread): DEFVAR_LISP and initialize them.
11159
11160 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
11161 (substitute_object_recurse, substitute_object_in_subtree)
11162 (substitute_in_interval): Prototype.
11163 (read_multibyte): Return c if it's less than zero.
11164
111652002-05-28 Kim F. Storm <storm@cua.dk>
11166
11167 * fileio.c (Fread_file_name_internal): Added brute-force
11168 speed up for using predicate file-directory-p.
11169
111702002-05-28 Kim F. Storm <storm@cua.dk>
11171
11172 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
11173 New variables.
11174 (syms_of_fileio): DEFVAR_LISP them.
11175 (read_file_name_cleanup): New unwind function.
11176 (Fread_file_name_internal): Only return completions satifying
11177 Vread_file_name_predicate. Temporarily unwind protect and rebind
11178 default-directory while checking completions against the predicate.
11179 (Fread_file_name): Added PREDICATE argument. Specbind it to
11180 Vread_file_name_predicate during completion.
11181 Call Vread_file_name_function to read the file name if non-nil.
11182
11183 * lisp.h (Fread_file_name): Now has 6 args.
11184
11185 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
11186 predicate for Fread_file_name when reading directory name.
11187 Supply Qnil for predicate in other calls to Fread_file_name.
11188
111892002-05-26 Miles Bader <miles@gnu.org>
11190
11191 * term.c (tty_capable_p): New function.
11192 * dispextern.h (tty_capable_p): New function declaration.
11193 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
11194 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
11195
111962002-05-23 Stefan Monnier <monnier@cs.yale.edu>
11197
11198 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
11199 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
11200 (Vwrite_region_annotate_functions): Docstring fix.
11201
112022002-05-23 Kim F. Storm <storm@cua.dk>
11203
11204 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
11205 phys_cursor's hpos is overwritten. This is still not completely
11206 correct, as it doesn't really make sense to use hpos at all to
11207 get the cursor glyph (as that is relative to the width of the
11208 characters on the line, which may have changed during the update).
11209
112102002-05-22 Jason Rumney <jasonr@gnu.org>
11211
11212 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
11213 Lisp_Object.
11214 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
11215 Use modified enumfont_t struct.
11216
11217 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11218
11219 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
11220 Handle the `hbar' cursor type.
11221 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11222
11223 * w32fns.c (Qhbar): New variable.
11224 (x_specified_cursor_type): Use it.
11225
112262002-05-21 Ken Raeburn <raeburn@gnu.org>
11227
11228 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
11229 now, when the address is needed.
11230
112312002-05-21 Colin Walters <walters@gnu.org>
11232
11233 * Makefile.in (shortlisp): Add font-core.el.
11234
112352002-05-20 Richard M. Stallman <rms@gnu.org>
11236
11237 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
11238
11239 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
11240 equivalent key bindings here.
11241
112422002-05-20 Ken Raeburn <raeburn@gnu.org>
11243
11244 Change symbol structure to contain a lisp object for the symbol
11245 name:
11246 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
11247 object field named "xname".
11248 (SYMBOL_NAME): New macro.
11249 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
11250 name field.
11251 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
11252 (mark_object, gc_sweep): Use symbol xname field and XSTRING
11253 instead of name field.
11254 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
11255 SYMBOL_NAME instead of XSYMBOL and name field.
11256 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
11257 instead of XSYMBOL and name field.
11258 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
11259 and SYMBOL_NAME instead of XSYMBOL and name field.
11260 * coding.c (Fread_coding_system, code_convert_region1)
11261 (code_convert_string1, code_convert_string_norecord)
11262 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
11263 XSYMBOL and name field.
11264 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
11265 (Fmake_variable_buffer_local, Fmake_local_variable)
11266 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
11267 of XSYMBOL and name field.
11268 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
11269 XSYMBOL and name field.
11270 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
11271 instead of XSYMBOL and name field.
11272 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
11273 XSYMBOL and name field.
11274 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
11275 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11276 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
11277 instead of XSYMBOL and name field.
11278 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
11279 (parse_modifiers, apply_modifiers, Fevent_convert_list)
11280 (parse_solitary_modifier, Fexecute_extended_command):
11281 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11282 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
11283 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
11284 of XSYMBOL and name field.
11285 (describe_command, describe_translation): Use SYMBOL_NAME and
11286 assignment instead of XSYMBOL and name field and XSETSTRING.
11287 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
11288 instead of XSYMBOL and name field.
11289 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
11290 name field and XSETSTRING.
11291 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11292 of XSYMBOL and name field.
11293 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
11294 assignment instead of XSYMBOL and name field and XSETSTRING.
11295 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
11296 XSTRING instead of XSYMBOL and name field.
11297 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
11298 and XSTRING instead of XSYMBOL and name field.
11299 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
11300 and XSTRING instead of XSYMBOL and name field.
11301 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
11302 XSTRING instead of XSYMBOL and name field.
11303 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11304 of XSYMBOL and name field.
11305 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
11306 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11307
113082002-05-19 Ken Raeburn <raeburn@gnu.org>
11309
11310 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
11311 and XCDR real rvalues in most configurations.
11312
11313 * buffer.c (fix_overlays_in_range, fix_overlays_before):
11314 Don't take the address of the cdr part of a cons cell; instead, track
11315 the parent cell and call XSETCDR, or set the variable for the head
11316 of the list if we haven't started down the list yet.
11317
113182002-05-19 Richard M. Stallman <rms@gnu.org>
11319
11320 * doc.c (reread_doc_file): Don't ask for confirmation.
11321
113222002-05-18 Jason Rumney <jasonr@gnu.org>
11323
11324 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
11325 (xbm_load_image): Use it.
11326 (xbm_load): Ditto.
11327 (xbm_read_bitmap_data): Reverted to xfns.c version.
11328 From David Ponce <david@dponce.com>.
11329
113302002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
11331
11332 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
11333 2.02 and later.
11334
113352002-05-16 Juanma Barranquero <lektu@terra.es>
11336
11337 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
11338
113392002-05-15 Stefan Monnier <monnier@cs.yale.edu>
11340
11341 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
11342 meaningful test.
11343 (read_char_minibuf_menu_prompt): Fix typo.
11344
113452002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11346
11347 * eval.c (Fcommandp): Doc fix.
11348
113492002-05-13 Stefan Monnier <monnier@cs.yale.edu>
11350
11351 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
11352 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
11353 (Fset_keymap_parent): Gcpro a bit more.
11354 (access_keymap): Gcpro around meta_map call and around the main loop.
11355 (get_keyelt): Gcpro when following indirect references.
11356 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
11357 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
11358 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
11359 Remove useless ad-hoc remap code.
11360
113612002-05-13 Richard M. Stallman <rms@gnu.org>
11362
11363 * search.c (search_buffer): Give up boyer moore search if inverse
11364 translation change charset_base.
11365
113662002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
11367
11368 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
11369 characters is carried over from the previous block of text, adjust
11370 coding->produced to account for the extra character.
11371
113722002-05-11 Andreas Schwab <schwab@suse.de>
11373
11374 * coding.c (intersection): Keep the elements of the returned list
11375 in the same order as in the first list.
11376
113772002-05-11 Kim F. Storm <storm@cua.dk>
11378
11379 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
11380 only update cmm_size if realloc actually succeeds.
11381 Testing with initial size of 2 elements revealed that using
11382 realloc on GNU/Linux would cause a random trap in xmalloc
11383 later on, so I rewrote the code to use malloc/bcopy/free instead
11384 of realloc.
11385
113862002-05-10 Jason Rumney <jasonr@gnu.org>
11387
11388 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
11389
113902002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
11391
11392 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
11393 parens, to ensure correct evaluation order.
11394
113952002-05-10 Kim F. Storm <storm@cua.dk>
11396
11397 * keymap.c (Vemulation_mode_map_alists): New variable.
11398 (syms_of_keymap): DEFVAR_LISP it.
11399 (current_minor_maps): Process keymap alists in that list before
11400 minor-mode-overriding-map-alist and minor-mode-map-alist.
11401
114022002-05-09 Richard M. Stallman <rms@gnu.org>
11403
11404 * search.c (Freplace_match): Doc fix.
11405
114062002-05-09 Kim F. Storm <storm@cua.dk>
11407
11408 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11409 Enlarge cursor rectangle drawn around image with non-zero relief.
11410
11411 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
11412 Enlarge cursor rectangle drawn around image with non-zero relief.
11413
11414 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11415 Enlarge cursor rectangle drawn around image with non-zero relief.
11416
114172002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
11418
11419 * xselect.c (lisp_data_to_selection_data): Don't set selection
11420 type if comes from the Lisp object's car. If the selection
11421 contains a pure ASCII text, always return QSTRING as its type.
11422
114232002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11424
11425 * mac.c (mac-cut-function): Doc fix.
11426
114272002-05-05 Richard M. Stallman <rms@gnu.org>
11428
11429 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
11430
114312002-05-04 Jason Rumney <jasonr@gnu.org>
11432
11433 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
11434 for event-click-count.
11435
11436 * process.c (init_process): Only add server subfeature if we can
11437 use non-blocking I/O.
11438
114392002-05-04 Andrew Choi <akochoi@shaw.ca>
11440
11441 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
11442 repeatedly.
11443
114442002-05-03 Jason Rumney <jasonr@gnu.org>
11445
11446 * process.c (Fmake_network_process): Only support server sockets
11447 when we can make them non-blocking.
11448
11449 * s/ms-w32.h (HAVE_SELECT): Define.
11450
11451 * w32.h (FILE_NDELAY): New flag.
11452
11453 * w32.c (sys_getpeername, fcntl): New functions.
11454 (_sys_read_ahead): Temporarily block on non-blocking sockets.
11455
11456 * w32proc.c: include sys/file.h.
11457
114582002-05-03 Colin Walters <walters@verbum.org>
11459
11460 * callproc.c (Vgame_score_directory): Renamed to
11461 Vshared_game_score_directory.
11462
114632002-04-30 Richard M. Stallman <rms@gnu.org>
11464
11465 * s/gnu.h [emacs]: Include stdio.h.
11466 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
11467
11468 * eval.c (do_autoload): Error if called while preparing to dump.
11469
11470 * fns.c (Frequire): Error if need to load while preparing to dump.
11471
114722002-04-28 Colin Walters <walters@verbum.org>
11473
11474 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
11475 Default to "~/.emacs.d/games".
11476
114772002-04-29 Stefan Monnier <monnier@cs.yale.edu>
11478
11479 * lread.c (openp): Change arg exec_only to predicate.
11480 (build_load_history): Use XCAR/XCDR.
11481 (Flocate_file_internal): New fun.
11482 (syms_of_lread): Defsubr it.
11483 (Fload): Update call to openp.
11484
11485 * lisp.h (openp): Update prototype.
11486
11487 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
11488 * w32proc.c (sys_spawnve):
11489 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
11490 * w32.c (check_windows_init_file):
11491 * sound.c (Fplay_sound_internal):
11492 * process.c (Fstart_process):
11493 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
11494 * mac.c (run_mac_command):
11495 * emacs.c (init_cmdargs):
11496 * callproc.c (Fcall_process): Update call to openp.
11497
11498 * textprop.c (remove_properties): Don't use XCAR without CONSP.
11499
11500 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
11501
115022002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11503
11504 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
11505 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
11506
115072002-04-28 Richard M. Stallman <rms@gnu.org>
11508
11509 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
11510
11511 * eval.c (Fcommandp): New arg for_call_interactively.
11512 * lisp.h (Fcommandp): Declare new arg.
11513
115142002-04-28 Jason Rumney <jasonr@gnu.org>
11515
11516 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
11517
11518 * w32.c (stat, fstat): Use file index information to generate
11519 inodes for directories where available.
11520
115212002-04-26 Andrew Choi <akochoi@shaw.ca>
11522
11523 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
11524 [HAVE_CARBON]: Include Mac object files.
11525
11526 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
11527 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
11528 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
11529 MAC_OSX, and MAC_OS instead of macintosh.
11530
11531 * editfns.c [MAC_OS8]: Include stdio.h.
11532
11533 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
11534
11535 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
11536 Apple Monaco.
11537
11538 * process.c: Declare QCfamily and QCfilter as extern.
11539 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
11540 calling select.
11541
11542 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
11543
11544 * tparam.c [MAC_OSX]: Don't define BC and UP.
11545
11546 * config.in [HAVE_CARBON]: Add.
11547
11548 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
11549 Move here from mac/src and mac/inc.
11550
11551 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
11552
115532002-04-26 Gerd Moellmann <gerd@gnu.org>
11554
11555 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
11556 Compute phys_cursor_width from the x position returned
11557 by x_draw_glyhs, which is cheaper.
11558 (x_display_and_set_cursor): Compute the buffer-local value
11559 of `cursor-in-non-selected-windows' only when needed.
11560
115612002-04-25 Gerd Moellmann <gerd@gnu.org>
11562
11563 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
11564 cursor on a stretch glyph has a width that depends on
11565 x_stretch_cursor_p.
11566
115672002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11568
11569 * abbrev.c (abbrev-start-location): Doc fix.
11570
11571 * indent.c (Fvertical_motion): Fix last change.
11572
115732002-04-25 Gerd Moellmann <gerd@gnu.org>
11574
11575 * indent.c (Fvertical_motion): Move to the start of the line
11576 containing PT before moving up or down.
11577
115782002-04-24 Gerd Moellmann <gerd@gnu.org>
11579
11580 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
11581 case of writing a whole row, more or less analogous to the case of
11582 writing only parts of a row.
11583
11584 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
11585 0 for NO_CURSOR.
11586
11587 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
11588
115892002-04-23 Colin Walters <walters@verbum.org>
11590
11591 * buffer.c (syms_of_buffer): Doc fix.
11592
115932002-04-23 Gerd Moellmann <gerd@gnu.org>
11594
11595 * xterm.c (notice_overwritten_cursor): Handle the special case
11596 of the cursor being in the first blank non-text line at the
11597 end of a window.
11598
11599 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11600 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11601 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
11602 bar cursors only, to make phys_cursor_width contain what its name
11603 suggests.
11604 (notice_overwritten_cursor): Consider the cursor image erased if
11605 the output area intersects the cursor image in y-direction.
11606
116072002-04-23 Simon Marshall <simon@gnu.org>
11608
11609 * xfns.c (x_set_mouse_color): Change default for cross_cursor
11610 to XC_hand2.
11611
116122002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11613
11614 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
11615
116162002-04-22 Kim F. Storm <storm@cua.dk>
11617
11618 * textprop.c (remove_properties): Fixed trap for malformed plist.
11619
116202002-04-22 Richard M. Stallman <rms@gnu.org>
11621
11622 * cmds.c (Fend_of_line): Handle intangible text in mid line.
11623
11624 * window.c (make_window): Initialize height_fixed_p,
11625 last_cursor_off_p, and p->cursor_off_p slots.
11626
116272002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11628
11629 * fns.c (use-dialog-box): Doc fix.
11630
116312002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11632
11633 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
11634 variables `row', `i' and `area'.
11635 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
11636 toolkit library.
11637
116382002-04-19 Stefan Monnier <monnier@cs.yale.edu>
11639
11640 * xfaces.c (clear_font_table): Don't free the default font of
11641 a frame even if it's on another display.
11642 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
11643 that could be Qt.
11644
116452002-04-19 Juanma Barranquero <lektu@terra.es>
11646
11647 * indent.c (Fmove_to_column): Remove unused local variable
11648 `next_boundary_byte'.
11649 (current_column_1): Likewise.
11650
116512002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11652
11653 * msdos.c (Qhbar): New variable.
11654 (syms_of_msdos): Intern and staticpro it.
11655 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
11656 cursor type.
11657
116582002-04-19 Dave Lambert <dlambert@acm.org>
11659
11660 Theses change implement an underscore-like (`hbar') cursor.
11661
11662 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11663
11664 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
11665 Handle the `hbar' cursor type.
11666 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11667
11668 * xfns.c (Qhbar): New variable.
11669 (syms_of_xfns): Intern and staticpro it.
11670 (x_specified_cursor_type): Handle `hbar' cursor.
11671
11672 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
11673 not defined.
11674
116752002-04-18 Richard M. Stallman <rms@gnu.org>
11676
11677 * textprop.c (remove_properties): New arg LIST allows scanning
11678 either a list or a plist.
11679 (interval_has_some_properties_list): New function, like
11680 interval_has_some_properties using list instead of plist.
11681 All callers changed.
11682 (Fremove_list_of_text_properties): New function.
11683 (syms_of_textprop): Defsubr it.
11684
116852002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11686
11687 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
11688
116892002-04-17 Juanma Barranquero <lektu@terra.es>
11690
11691 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11692
116932002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11694
11695 * window.c (coordinates_in_window): Don't report on margin area
11696 if its width is zero.
11697
116982002-04-16 Jason Rumney <jasonr@gnu.org>
11699
11700 * w32fns.c (Fx_file_dialog): Decode file name before using.
11701
11702 * w32term.c (construct_drag_n_drop): Likewise.
11703
117042002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11705
11706 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11707 store load-history in pure space.
11708
11709 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11710
117112002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11712
11713 * xterm.c (Qlatin_1, Qutf_8): New vars.
11714 (syms_of_xterm): Initialize them.
11715 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11716 decoding the output of X*LookupString.
11717 Always use latin-1 to decode the output of XLookupString.
11718 Try Xutf8LookupString if XmbLookupString failed.
11719
11720 * region-cache.c (new_region_cache): Use BEG.
11721
117222002-04-16 Gerd Moellmann <gerd@gnu.org>
11723
11724 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
11725 configuration files.
11726 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
11727 returns 0.
11728
117292002-04-15 Andreas Schwab <schwab@suse.de>
11730
11731 * config.in: Regenerated using autoheader.
11732
11733 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
11734 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
11735 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
11736 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
11737 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
11738 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
11739 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
11740 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
11741 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
11742 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
11743 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
11744 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
11745 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
11746 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
11747 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
11748 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
11749 STACK_DIRECTION, now set by autoconf.
11750
117512002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11752
11753 * dispnew.c (marginal_area_string): Sort arguments.
11754
11755 * dispextern.h (marginal_area_string): Add prototype.
11756
117572002-04-13 Richard M. Stallman <rms@gnu.org>
11758
11759 * fileio.c (Finsert_file_contents):
11760 Don't call temp_output_buffer_setup--do just part, by hand.
11761
11762 * coding.c (run_pre_post_conversion_on_str):
11763 Don't call temp_output_buffer_setup--do just part, by hand.
11764
11765 * keyboard.c (command_loop_1): Don't call start_hourglass
11766 or cancel_hourglass when executing a macro.
11767
11768 * marker.c (count_markers): New function.
11769
11770 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
11771 grow without limit. Move recently used elements to the front.
11772
117732002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11774
11775 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
11776
117772002-04-12 Gerd Moellmann <gerd@gnu.org>
11778
11779 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
11780 rows marginal areas.
11781 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
11782 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11783
11784 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
11785
117862002-04-12 Dave Love <fx@gnu.org>
11787
11788 * dispnew.c (marginal_area_string): New.
11789
11790 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
11791 (Qleft_margin, Qright_margin): Declare.
11792 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
11793
11794 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
11795 note_mode_line_highlight and extended.
11796
11797 * keyboard.c (Qleft_margin, Qright_margin): Declare.
11798 (make_lispy_event): Deal with mouse events in margins.
11799
118002002-04-12 Stefan Monnier <monnier@cs.yale.edu>
11801
11802 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
11803
11804 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
11805 than deactivating the mark if tmm is set to `lambda'.
11806 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
11807 Use a single event for HELP_EVENT.
11808 (Fexecute_extended_command): Save last_point_position.
11809
118102002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11811
11812 * lisp.h (Fpropertize): Add prototype.
11813
11814 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
11815
118162002-04-10 Colin Walters <walters@verbum.org>
11817
11818 * config.in: Add HAVE_SHARED_GAME_DIR.
11819
11820 * callproc.c: (Vgame_score_directory): New variable.
11821 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
11822
118232002-04-10 Richard M. Stallman <rms@gnu.org>
11824
11825 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
11826
118272002-04-09 Stefan Monnier <monnier@cs.yale.edu>
11828
11829 * minibuf.c (read_minibuf): Use empty_string.
11830 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
11831 Short-circuit the search as soon as it "failed".
11832 (Fall_completions): Allow lambda forms and lists of strings for alist.
11833 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
11834 when require_match is nil.
11835 (Ftest_completion): Rename from `test_completion' and export to elisp.
11836 Call the predicate also when alist is a list.
11837 Obey Vcompletion_regexp_list.
11838 (do_completion, Fminibuffer_complete_and_exit): Use it.
11839 (Fassoc_string): Rename from `assoc_for_completion'.
11840 Allow list of strings as well and export to elisp.
11841
118422002-04-08 Stefan Monnier <monnier@cs.yale.edu>
11843
11844 * puresize.h (BASE_PURESIZE): Increase to 900KB.
11845
118462002-04-08 Juanma Barranquero <lektu@terra.es>
11847
11848 * w32.c (sys_accept): Don't hide variable `s'.
11849
118502002-04-05 Gerd Moellmann <gerd@gnu.org>
11851
11852 * callint.c (Fcall_interactively): Use INTEGERP instead of
11853 NUMBERP for checking Vhistory_length.
11854
118552002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11856
11857 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
11858 Doc fix to reflect it.
11859
118602002-04-04 Richard M. Stallman <rms@gnu.org>
11861
11862 * xdisp.c (display_mode_element): New arg RISKY.
11863 Disregard text props found or specified within a variable
11864 that isn't marked risky-local-variable.
11865 (Qrisky_local_variable): New variable.
11866 (syms_of_xdisp): Init and staticpro it.
11867
118682002-04-04 Stefan Monnier <monnier@cs.yale.edu>
11869
11870 * undo.c (record_point): New fun.
11871 (record_delete, record_insert): Use it.
11872
118732002-04-03 Juanma Barranquero <lektu@terra.es>
11874
11875 * doc.c (Fdocumentation): Add missing parentheses.
11876 (Fdocumentation_property): Likewise.
11877
118782002-04-03 Stefan Monnier <monnier@cs.yale.edu>
11879
11880 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
11881 data is 0, just return nil.
11882
118832002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
11884
11885 * msdos.c (syms_of_msdos): Fix last change with
11886 mouse_autoselect_window.
11887
118882002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11889
11890 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
11891 mouse_autoselect_window.
11892
118932002-04-02 Stefan Monnier <monnier@cs.yale.edu>
11894
11895 * keyboard.c (make_lispy_event): Handle unknown keysyms together
11896 with system-specific keysyms. Use it also for unknown function keys.
11897
11898 * doc.c (reread_doc_file): Return whether reload was attempted.
11899 (Fdocumentation, Fdocumentation_property): Don't try to reload
11900 if the doc is 0 and only ask once.
11901
11902 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
11903
119042002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
11905
11906 * keyboard.c (read_char): If the event was Qselect_window,
11907 restore timer_idleness_start_time to its previous value.
11908
11909 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
11910
119112002-04-01 Stefan Monnier <monnier@cs.yale.edu>
11912
11913 * region-cache.c (new_region_cache): Use BEG.
11914
11915 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
11916 Use BEG and BEG_BYTE.
11917
11918 * doc.c (get_doc_string): Return nil if the location is wrong.
11919 (reread_doc_file): New fun.
11920 (Fdocumentation, Fdocumentation_property):
11921 Call it if get_doc_string fails.
11922 (Fsnarf_documentation): Make it work for a dumped Emacs.
11923
11924 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
11925 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
11926
11927 * charset.c (Fstring): Allow 0 arguments.
11928
11929 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
11930
11931 * process.c (DATAGRAM_CONN_P, list_processes_1)
11932 (Fprocess_datagram_address, Fset_process_datagram_address)
11933 (Fset_network_process_options, server_accept_connection):
11934 Fix some int/Lisp_Object confusions (thank you union types).
11935
119362002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11937
11938 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
11939
11940 * w32term.c: Likewise.
11941 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
11942
11943 * keyboard.c (Qselect_window): New symbol.
11944 (head_table): Use it.
11945 (keys_of_keyboard): Bound select-window event to handle-select-window.
11946 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
11947
11948 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
11949 (last_window): New variable.
11950 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
11951 (note_mouse_movement): Remove reimplemented code in #if 0.
11952 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
11953 Emacs windows.
11954
11955 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
11956
119572002-03-31 Gerd Moellmann <gerd@gnu.org>
11958
11959 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
11960 Callers changed.
11961
119622002-03-30 Richard M. Stallman <rms@gnu.org>
11963
11964 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
11965 loop whenever it stops making progress.
11966
11967 * widget.c (set_frame_size): Don't call change_frame_size.
11968
119692002-03-30 Gerd Moellmann <gerd@gnu.org>
11970
11971 * dispnew.c (direct_output_for_insert):
11972 Call mark_window_display_accurate.
11973
119742002-03-29 Jason Rumney <jasonr@gnu.org>
11975
11976 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
11977
119782002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
11979
11980 * Makefile.in (lread.o): Depend on coding.h.
11981
11982 * lread.c (openp, Fload): Encode the file name before passing it
11983 to `stat', `access', and `emacs_open'.
11984 (openp): GCPRO the encoded file name. Don't recompute Lisp
11985 strings unnecessarily.
11986
119872002-03-29 Kim F. Storm <storm@cua.dk>
11988
11989 * fns.c (Flax_plist_put): Doc fix.
11990
119912002-03-28 Miles Bader <miles@gnu.org>
11992
11993 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
11994
119952002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11996
11997 * process.c (set-network-process-options): Add usage.
11998 (make-network-process): Doc fix.
11999
120002002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
12001
12002 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
12003
120042002-03-26 Richard M. Stallman <rms@gnu.org>
12005
12006 * fns.c (Fsubstring_no_properties): New function.
12007 (Flax_plist_get, Flax_plist_put): New functions.
12008 (syms_of_fns): defsubr them.
12009
12010 * xdisp.c (update_menu_bar): Test only update_mode_lines;
12011 don't test or alter w->update_mode_line.
12012
12013 * window.c (Fdisplay_buffer): Doc fix.
12014
120152002-03-24 Richard M. Stallman <rms@gnu.org>
12016
12017 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
12018
120192002-03-24 Gerd Moellmann <gerd@gnu.org>
12020
12021 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
12022 (Fdefmacro): Handle `(declare ...)'.
12023 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
12024 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
12025
120262002-03-24 Jason Rumney <jasonr@gnu.org>
12027
12028 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
12029 (xbm_file_p): Add prototypes.
12030 (xbm_format, xbm_image_p): Sync with xfns.c.
12031 (reflect_byte): New function.
12032 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
12033 (xbm_load_image): Create bitmaps with a depth of 1.
12034 (init_xfns): Enable XBM images.
12035
120362002-03-23 Jason Rumney <jasonr@gnu.org>
12037
12038 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
12039 correctly. Do not pass up_modifier to keyboard buffer.
12040
12041 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
12042
120432002-03-22 Stefan Monnier <monnier@cs.yale.edu>
12044
12045 * Makefile.in (bootstrapclean): New target.
12046 (bootstrap-temacs, bootstrap-doc): Remove.
12047 (bootstrap-emacs): Use a bog-standard `temacs'.
12048 Don't bother to build a DOC file.
12049
12050 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
12051
12052 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
12053 in temacs even if !CANNOT_DUMP.
12054 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
12055
12056 * alloc.c (check_pure_size): Only output a warning.
12057
120582002-03-22 Jason Rumney <jasonr@gnu.org>
12059
12060 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
12061 supported.
12062
12063 * w32term.c (zv_bits): Declare as short, for word alignment.
12064 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
12065 (syms_of_w32term): Define x-use-underline-position-properties.
12066
12067 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
12068 (clear_image_cache): Block input, fix logic, clear matrices in
12069 all frames that share this cache.
12070
120712002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
12072
12073 * emacs.c (main): Update the Copyright year in the blurb printed
12074 by "emacs --version".
12075
12076 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
12077
12078 * xterm.c (XTread_socket): If XK_ISO_Lock and
12079 XK_ISO_Last_Group_Lock are defined, handle keysyms between
12080 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
12081
120822002-03-21 Kim F. Storm <storm@cua.dk>
12083
12084 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
12085 menu-bar bindings in keymap and local-map properties _are_ used.
12086 But try keymap property first in accordance with 2002-01-03 patch.
12087 Added comment describing why this is not always reliable.
12088 (tool_bar_items): Ditto for tool-bar.
12089
120902002-03-21 Jason Rumney <jasonr@gnu.org>
12091
12092 * w32fns.c (x_clear_image_1): Disable color table code.
12093
120942002-03-21 Kim F. Storm <storm@cua.dk>
12095
12096 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
12097 removed the wrong version of the DEFUN macro; fixed it.
12098
12099 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
12100 Fmember rather than Fmemq).
12101 (Fprovide): Check that subfeatures is a list.
12102
12103 * process.c (QCfeature, QCdatagram): Removed variables.
12104 (QCtype, Qdatagram): New variables.
12105 (network_process_featurep): Removed function.
12106 (Fmake_network_process): Removed :feature check.
12107 Use :type 'datagram instead of :datagram t to create a datagram
12108 socket. This allows us to add other connection types (e.g. raw
12109 sockets) later in a consistent manner.
12110 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
12111 supported subfeatures for feature make-network-process.
12112 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
12113 Intern and staticpro QCtype and Qdatagram.
12114 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
12115
12116 * xfns.c: (QCtype): Remove duplicate declaration and
12117 initialization (is now declared in process.c).
12118
12119 * w32fns.c: (QCtype): Remove duplicate declaration and
12120 initialization (is now declared in process.c).
12121
121222002-03-21 Richard M. Stallman <rms@gnu.org>
12123
12124 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
12125 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
12126 when jumping to `fail' to avoid undoing reg changes in the
12127 last iteration of the loop.
12128 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
12129
12130 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
12131 Depend on process.h.
12132
121332002-03-20 Jason Rumney <jasonr@gnu.org>
12134
12135 Most of the following changes are still conditional on HAVE_IMAGES
12136 which is not set by default on Windows.
12137
12138 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
12139
12140 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
12141 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
12142 (four_corners_best, x_clear_image_1, x_clear_image)
12143 (x_alloc_image_color, postprocess_image)
12144 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
12145 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
12146 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
12147
12148 * w32gui.h (struct XImage): Define.
12149
12150 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
12151 extract mouse co-ordinates.
12152
121532002-03-20 Jason Rumney <jasonr@gnu.org>
12154
12155 * w32.c (init_winsock): Dynamically load new server and UDP
12156 socket functions.
12157 (socket_to_fd): New function.
12158 (sys_socket): Use it.
12159 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
12160 (sys_recvfrom, sys_sendto): New wrapper functions.
12161
12162 * process.c (QCfamily, QCfilter): Remove duplicate declaration
12163 and initialization.
12164
12165 * makefile.w32-in (LIBS): Remove $(WSOCK32).
12166
121672002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
12168
12169 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
12170 Don't use "sun" as a variable, it's a predefined constant on Sun
12171 machines.
12172
121732002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12174
12175 * bytecode.c (Fbyte_code): Revert last change.
12176
121772002-03-19 Kim F. Storm <storm@cua.dk>
12178
12179 * makefile.w32-in (LIBS): Add $(WSOCK32).
12180 From David Ponce <dponce@voila.fr>.
12181
121822002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12183
12184 * process.c (wait_reading_process_input): Move variables `pname'
12185 and `pnamelen' down where they are used.
12186
12187 * bytecode.c (Fbyte_code): Discard unused computed value to
12188 prevent gcc warning.
12189
12190 * lisp.h (Fplist_member): Add prototype.
12191
121922002-03-18 Kim F. Storm <storm@cua.dk>
12193
12194 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
12195 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
12196
12197 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
12198 Remove explicit GNU_LINUX settings for datagram support.
12199
122002002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12201
12202 * process.c (Fmake_network_process): Remove unused variable `sa'.
12203 Doc fix. Add usage:.
12204 (set_socket_options): Remove unused variables `optnum' and `opttype'.
12205
122062002-03-17 Richard M. Stallman <rms@gnu.org>
12207
12208 * xdisp.c (cursor_type_changed): New variable.
12209 (redisplay_internal): Redisplay all windows if cursor_type_changed.
12210 Clear it when clearing windows_or_buffers_changed.
12211 (try_cursor_movement, redisplay_window, try_window_id)
12212 (try_window_reusing_current_matrix): Test cursor_type_changed
12213 along with windows_or_buffers_changed.
12214
12215 * window.h (cursor_type_changed): New variable.
12216
12217 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
12218 not update_mode_lines, and always set it to 1.
12219
12220 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
12221 if no frames needed redrawing.
12222
122232002-03-17 Kim F. Storm <storm@cua.dk>
12224
12225 The following changes add support for network server processes,
12226 datagram connections, and local (unix) sockets.
12227
12228 * process.h (struct Lisp_Process): New member log.
12229 Doc fix: Member command used to indicate stopped network process.
12230 Doc fix: Member childp contains plist for network process.
12231 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
12232
12233 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
12234 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
12235 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
12236 New variables.
12237 (NETCONN1_P): New macro.
12238 (DATAGRAM_SOCKETS): New conditional symbol.
12239 (datagram_address): New array.
12240 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
12241 (status_message): Use concat3.
12242 (Fprocess_status): Add `listen' status to doc string. Return `stop'
12243 for a stopped network process.
12244 (Fset_process_buffer): Update contact plist for network process.
12245 (Fset_process_filter): Ditto. Don't enable input for stopped
12246 network processes. Server must listen, even if filter is t.
12247 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
12248 New functions.
12249 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
12250 (Fprocess_contact): Added KEY argument. Handle datagrams.
12251 (list_processes_1): Optionally show only processes with the query
12252 on exit flag set. Dynamically adjust column widths. Omit tty
12253 column if not needed. Report stopped network processes.
12254 Identify server and datagram network processes.
12255 (Flist_processes): New optional arg `query-only'.
12256 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
12257 (conv_lisp_to_sockaddr, set_socket_options)
12258 (network_process_featurep, unwind_request_sigio): New helper functions.
12259 (Fprocess_datagram_address, Fset_process_datagram_address):
12260 (Fset_network_process_options): New lisp functions.
12261 (Fopen_network_stream): Removed. Now defined in simple.el.
12262 (Fmake_network_process): New lisp function. Code is based on previous
12263 Fopen_network_stream, but heavily reworked with new property list based
12264 argument list, support for datagrams, server processes, and local
12265 sockets in addition to old client-only functionality.
12266 (server_accept_connection): New function.
12267 (wait_reading_process_input): Use it to handle incoming connects.
12268 Do not enable input on a new connection if process is stopped.
f63fd14e 12269 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
12270 (send_process): Handle datagram sockets.
12271 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
12272 network process is indicated by setting command field to t .
12273 (Fprocess_send_eof): No-op if datagram connection.
12274 (Fstatus_notify): Don't read input for a stream server socket or a
12275 stopped network process.
12276 (init_process): Initialize datagram_address array.
12277 (syms_of_process): Intern and staticpro new variables, defsubr new
12278 functions.
12279
122802002-03-16 Jason Rumney <jasonr@gnu.org>
12281
12282 * w32fns.c (w32_to_all_x_charsets): Return correct type in
12283 startup case.
12284
122852002-03-16 Richard M. Stallman <rms@gnu.org>
12286
12287 * xdisp.c (redisplay_internal, redisplay_windows):
12288 Use list_of_error to call internal_condition_case_1.
12289 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
12290 so as to catch all errors with no possibility of debugger redisplay.
12291 (list_of_error): New variable.
12292 (syms_of_xdisp): Init and staticpro it.
12293
12294 * print.c (print_object): Delete `\ ' from printed rep of frame.
12295
122962002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
12297
12298 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
12299 until its implementation is fixed.
12300
123012002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12302
12303 * xfns.c (png_load): Remove unused variable `gamma_str'.
12304
123052002-03-14 Richard M. Stallman <rms@gnu.org>
12306
12307 * xfns.c (x_real_positions): Handle failure in XQueryTree.
12308
123092002-03-14 Miles Bader <miles@gnu.org>
12310
12311 * intervals.c (adjust_for_invis_intang): New function.
12312 (set_point_both): Use `adjust_for_invis_intang' to do most of the
12313 work for dealing with invisible+intangible regions. Do so before
12314 and after both forward and backward movements, to handle both
12315 front-sticky and rear-sticky cases.
12316 * textprop.c (text_property_stickiness): Function moved here from
12317 `editfns.c'.
12318 * intervals.h (text_property_stickiness): New declaration.
12319 * editfns.c (char_property_eq): Function removed.
12320 (text_property_stickiness): Function moved to `textprop.c'.
12321
123222002-03-13 Jason Rumney <jasonr@gnu.org>
12323
12324 * config.in: Add STRFTIME_NO_POSIX2.
12325
12326 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
12327 and %OX when underlying strftime does not.
12328
123292002-03-13 Stefan Monnier <monnier@cs.yale.edu>
12330
12331 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
12332 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
12333 line) to avoid annoying flicker.
12334 (xm_scroll_callback): Get rid of the now unnecessary kludge.
12335 (XTread_socket): Mark it static.
12336
12337 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
12338
123392002-03-13 Kim F. Storm <storm@cua.dk>
12340
12341 * puresize.h (BASE_PURESIZE): Increase to 775000.
12342
123432002-03-12 Juanma Barranquero <lektu@terra.es>
12344
12345 * editfns.c (syms_of_editfns): Fix typo.
12346
123472002-03-12 Gerd Moellmann <gerd@gnu.org>
12348
12349 * xsmfns.c: Include stdio.h because termhooks.h needs it.
12350 Include termopt.h for interrupt_input.
12351
123522002-03-11 Andreas Schwab <schwab@suse.de>
12353
12354 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
12355
123562002-03-11 Gerd Moellmann <gerd@gnu.org>
12357
12358 * xterm.c (note_mouse_movement): Put code for
12359 x_autoselect_window_p in #if 0.
12360
12361 * lread.c (Fload): Don't assume that message_with_string uses the
12362 string it is given like a C string.
12363
123642002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12365
12366 * xterm.h (x_session_check_input, x_session_initialize): Declared.
12367
12368 * xterm.c: (XTread_socket): Add call to x_session_check_input and
12369 x_session_have_connection.
12370 (x_initialize): Add call to x_session_initialize.
12371
12372 * termhooks.h (enum event_kind): Add save_session_event.
12373
12374 * keyboard.c: Add Emacs event save_session_event.
12375
12376 * emacs.c (main): Add call to syms_of_xsmfns.
12377
12378 * lisp.h: Declare syms_of_xsmfns as extern.
12379
12380 * config.in: Add HAVE_X_SM.
12381
12382 * Makefile.in (LIBXT): Add -lSM -lICE
12383 if HAVE_X_SM and not USE_X_TOOLKIT.
12384 (XOBJ): New file xsmfns.c added.
12385
12386 * xsmfns.c: New file for X session management.
12387
123882002-03-09 Jason Rumney <jasonr@gnu.org>
12389
12390 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
12391 read-only when setting modified time.
12392
123932002-03-08 Gerd Moellmann <gerd@gnu.org>
12394
12395 * xdisp.c (move_it_vertically_backward): At the end of the function,
12396 when moving forward by lines, treat terminal frames specially.
12397
12398 * keyboard.c (echo_char): Make sure to add a separator between
12399 keys even if echo_dash hasn't been called.
12400
12401 * xdisp.c: Use new string macros.
12402 (update_echo_area): Pass number of bytes to message3 instead of
12403 number of chars.
12404 (set_message_1): Don't access a string's size_byte directly.
12405 (decode_mode_spec_coding): Use number of bytes of eoltype string
12406 instead number of chars.
12407
12408 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
12409
124102002-03-08 Juanma Barranquero <lektu@terra.es>
12411
12412 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
12413 24-bit.
12414
124152002-03-06 Jason Rumney <jasonr@gnu.org>
12416
12417 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
12418
124192002-03-06 Gerd Moellmann <gerd@gnu.org>
12420
12421 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
12422 (cancel_echoing, echo_length, echo_truncate): Changed to
12423 work with new kboard definition.
12424 (echo_now): Use message3_nolog instead of message2_nolog.
12425
12426 * alloc.c (mark_kboards): Mark echo_string.
12427
12428 * keyboard.h (ECHOBUFSIZE): Removed.
12429 (struct kboard): Member echoptr removed, member echobuf renamed
12430 to echo_string.
12431
12432 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
12433 message3 instead of message2 to display the message using STRING's
12434 text properties.
12435
124362002-03-05 Andreas Schwab <schwab@suse.de>
12437
12438 * xdisp.c (hscroll_margin): Change to EMACS_INT.
12439
124402002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
12441
12442 * frame.c (default-frame-alist): Explain that setting it doesn't
12443 affect existing frames.
12444
124452002-03-05 Stefan Monnier <monnier@cs.yale.edu>
12446
12447 * indent.c (skip_invisible): Fix my brain fart.
12448
12449 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
12450
124512002-03-04 Stefan Monnier <monnier@cs.yale.edu>
12452
12453 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
12454 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
12455 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
12456 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
12457 and variables to use EMACS_INT instead of just int.
12458
12459 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
12460
124612002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
12462
12463 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
12464 environment, pass it down with corrected value.
12465
124662002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12467
12468 * lread.c (read_filtered_event): Do not call start_hourglass
12469 before returning.
12470
124712002-03-04 Juanma Barranquero <lektu@terra.es>
12472
12473 * w32term.c (x_display_and_set_cursor): Fix typo.
12474
124752002-03-03 Richard M. Stallman <rms@gnu.org>
12476
12477 * fileio.c (Fmake_temp_name): Doc fix.
12478
124792002-03-03 Gary Wong <gtw@gnu.org>
12480
12481 * termcap.c [!emacs]: Replace ospeed for building standalone
12482 libtermcap, for binary compatibility.
12483
12484 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
12485
124862002-03-03 Richard M. Stallman <rms@gnu.org>
12487
12488 * xrdb.c (file_p): Rename arg `path' to `filename'.
12489
12490 * abbrev.c (Fexpand_abbrev): Increment plist as use count
12491 only if it is an integer.
12492
12493 * xfns.c (png_load): Set screen_gamma based on f->gamma.
12494 If png_get_sRGB gives an answer, call png_set_gamma
12495 using the default image gamma value.
12496
12497 * lread.c (read1): When reading from a file, default string to
12498 multibyte only if it has some multibyte characters.
12499
12500 * print.c (print_object): Output multibyte chars 128...255
12501 using \x even if ! print_escape_multibyte.
12502
12503 * xdisp.c (display_mode_element): Move the places where
12504 bytepos, charpos, this, and lisp_string are set.
12505 Use lisp_string to set bytepos.
12506
12507 * xdisp.c (redisplay_internal):
12508 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
12509
12510 * xdisp.c (display_mode_element): Merge properties specified with
12511 :propertize onto those that come with the string.
12512
125132002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
12514
12515 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
12516 automatic-hscrolling. Users changed.
12517 <hscroll-margin>: Renamed from automatic-hscroll-margin.
12518 Users changed.
12519 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
12520
125212002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12522
12523 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
12524
125252002-03-02 Kim F. Storm <storm@cua.dk>
12526
12527 * window.c (Fminibuffer_selected_window): New function.
12528 (syms_of_window): Defsubr it.
12529
125302002-03-01 Kim F. Storm <storm@cua.dk>
12531
12532 * window.h (struct window): New member phys_cursor_width.
12533
12534 * window.c (make_window, replace_window): Init phys_cursor_width.
12535
12536 * xterm.c (x_display_and_set_cursor): Blink box cursor using
12537 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12538
12539 * w32term.c (x_display_and_set_cursor): Blink box cursor using
12540 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12541
12542 * lisp.h (GCPRO6): New macro.
12543
12544 * process.c (Fopen_network_stream): Use GCPRO6.
12545
125462002-03-01 Kim F. Storm <storm@cua.dk>
12547
12548 * process.c (Qconnect, Qfailed): New variables.
12549 (syms_of_process): Intern and staticpro them.
12550 (Fprocess_status): Document connect and failed return values.
12551 [NON_BLOCKING_CONNECT]: New conditional.
12552 (connect_wait_mask, num_pending_connects): New variables.
12553 (status_message): Convert Qfailed status.
12554 (Fopen_network_stream): Added support for non-blocking connect.
12555 New optional args: filter, sentinel, non_blocking. Doc updated.
12556 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
12557 (deactivate_process): Handle pending non-blocking connect.
12558 (wait_reading_process_input): Poll for status of non-blocking
12559 connects. Exec sentinel directly when connect succeeds.
12560 (status_notify): Don't read process output if not yet connected.
12561
125622002-02-28 Kim F. Storm <storm@cua.dk>
12563
12564 * window.c: (minibuf_selected_window): Renamed from
12565 Vminibuf_selected_window. Users changed.
12566 (syms_of_window): Staticpro it.
12567
125682002-02-26 Kim F. Storm <storm@cua.dk>
12569
12570 The following changes add a new Vminibuf_selected_window variable
12571 which is similar to Vminibuf_scroll_window, but which is only set
12572 on entry to the minibuffer (from a non-minibuffer window):
12573
12574 * window.c: (Vminibuf_selected_window): New variable.
12575 (struct save_window_data): New member minibuf_selected_window.
12576 (Fset_window_configuration): Restore Vminibuf_selected_window.
12577 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
12578 Set minibuf_scroll_window member to nil if minibuf_level is 0.
12579 (compare_window_configurations): Compare minibuf_selected_window.
12580
12581 * window.h: (Vminibuf_selected_window): Declare extern.
12582
12583 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
12584 entry to minibuffer or on entry from a non-minibuffer window.
12585
12586 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
12587 Vminibuf_selected_window instead of Vminibuf_scroll_window.
12588
12589 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
12590 instead of Vminibuf_scroll_window when deciding in which window
12591 the region should be highlighted. Consequently, the region remains
12592 highlighteded even when a completion buffer is also displayed.
12593
125942002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
12595
12596 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
12597
12598 * xselect.c (Qcompound_text_with_extensions): Renamed from
12599 Qcompound_text_no_extensions.
12600 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
12601
126022002-02-26 Juanma Barranquero <lektu@terra.es>
12603
12604 * w32proc.c (syms_of_ntproc): Doc fix.
12605
126062002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12607
12608 * intervals.h: Include "dispextern.h" unconditionally.
12609
126102002-02-24 Jason Rumney <jasonr@gnu.org>
12611
12612 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
12613 and disp-table.elc.
12614 (lisp): Add emacs-lisp/backquote.elc.
12615
126162002-02-24 Kim F. Storm <storm@cua.dk>
12617
12618 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
12619 The validation of the event type was too strict as it didn't
12620 allow string events; buffer names are used in bindings for
12621 menu-bar-select-buffer (see `menu-bar-update-buffers').
12622
126232002-02-23 Kim F. Storm <storm@cua.dk>
12624
12625 The following changes rework my patch of 2002-02-06 which
12626 added command remapping by entering the commands directly into
12627 the keymaps. Now, command remapping uses an explicit `remap'
12628 prefix in the keymaps, i.e. [remap COMMAND].
12629
12630 * keymap.c (Qremap, remap_command_vector): New variables.
12631 (is_command_symbol): Removed function.
12632 (Fdefine_key): No longer accept a symbol for KEY.
12633 Added validation of [remap COMMAND] argument for KEY.
12634 The DEF is no longer required to be a symbol when remapping a command.
12635 (Fremap_command): New function to remap command through keymaps.
12636 (Flookup_key): Perform command remapping initiated by
12637 Fremap_command directly for speed.
12638 (Fkey_binding): Use Fremap_command for command remapping.
12639 (where_is_internal): Handle new command remapping representation.
12640 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
12641 staticpro them. Defsubr Fremap_command.
12642
12643 * keymap.h (Fremap_command): Declare extern.
12644 (is_command_symbol): Remove extern.
12645
12646 * keyboard.c (command_loop_1): Use Fremap_command for command
12647 remapping; now try command remapping for all symbols.
12648
126492002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12650
12651 * coding.h (run_pre_post_conversion_on_str): Add prototype.
12652
126532002-02-23 Jason Rumney <jasonr@gnu.org>
12654
12655 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
12656 on the string before encoding it.
12657 (Fw32_get_clipboard_data): Run post-read-conversion on the string
12658 after decoding it.
12659
12660 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
12661
126622002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12663
12664 * w32term.c (enter_timestamp): Remove unused static variable to
12665 prevent warning.
12666
12667 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
12668
126692002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12670
12671 * w16select.c (Fw16_get_clipboard_data): Fix last change.
12672
12673 * xselect.c (selection_data_to_lisp_data): Fix last change.
12674
126752002-02-22 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32term.h (struct w32_output): New member menu_command_in_progress.
12678
12679 * w32menu.c (menubar_selection_callback): Free the menu and
12680 clear the menu_command_in_progress flag.
12681
12682 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
12683 (menu_free_timer): New variable.
12684 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
12685 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
12686 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
12687 menu command is in progress.
12688 <WM_COMMAND>: Set the menu_command_in_progress flag.
12689 Kill any menu_free_timer that is running.
12690
12691 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12692 Call ExtTextOutA rather than ExtTextOut.
12693
126942002-02-22 Eli Zaretskii <eliz@gnu.org>
12695
12696 * puresize.h (BASE_PURESIZE): Increase to 755000.
12697
126982002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12699
12700 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12701 on the string before encoding it.
12702 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12703 after decoding it.
12704
127052002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12706
12707 Support for ICCCM Extended Segments in X selections:
12708
12709 * xselect.c <Qcompound_text_no_extensions>: New variable.
12710 (syms_of_xselect): Intern and staticpro it.
12711 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12712 selection text.
12713 (lisp_data_to_selection_data): If next-selection-coding-system is
12714 compound-text-no-extensions, set the type of selection to be
12715 compound-text.
12716
12717 * xterm.h (x_encode_text): Update prototype.
12718
12719 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12720 callers changed. If SELECTIONP is non-zero, run the
12721 pre-write-conversion function before encoding the selection text.
12722
127232002-02-21 Kim F. Storm <storm@cua.dk>
12724
12725 * frame.c (syms_of_frame): Change mouse-highlight default to t.
12726
12727 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
12728 Correct composing of language-change event.
12729
127302002-02-20 Kim F. Storm <storm@cua.dk>
12731
12732 * keyboard.c (menu_bar_items): Don't include keymap or local-map
12733 bindings at PT when building menu (the menu is not updated often
12734 enough for this to work reliable).
12735 (tool_bar_items): Likewise.
12736 (current_active_maps): Removed unused (and buggy) function.
12737
127382002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12739
12740 * xfns.c (gif_load): Use correct width and height for GIF images.
12741
127422002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
12743
12744 * floatfns.c (Fatan): Accept an optional second arg and call
12745 atan2 if passed 2 args.
12746
127472002-02-18 Jason Rumney <jasonr@gnu.org>
12748
12749 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
12750
127512002-02-17 Jason Rumney <jasonr@gnu.org>
12752
12753 * w32term.c (x_autoselect_window_p): New variable.
12754 (syms_of_w32term): DEFVAR_BOOL and initialize it.
12755 (note_mouse_movement): Use it.
12756
12757 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
12758
12759 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
12760
12761 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12762 New variables.
12763 (syms_of_w32fns): Intern and staticpro them.
12764 (x_frame_parms) <"fullscreen">: New parameter.
12765 (x_fullscreen_move, x_set_fullscreen): New functions.
12766 (x_set_frame_parameters): Support Qfullscreen.
12767 (x_real_positions): Save x/y_pixels_diff frame params.
12768 (x_figure_window_size): Support full-screen frames.
12769 (Fx_create_frame): Default the fullscreen parameter.
12770
12771 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
12772 (x_fullscreen_adjust): New functions.
12773 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
12774 fullscreen. Call x_check_fullscreen_move, and set the
12775 want_fullscreen member of output_data.w32
12776 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
12777
12778 * w32term.h: New enum for FULLSCREEN_* constants.
12779 (struct w32_output): New members want_fullscreen, x_pixels_diff,
12780 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
12781 (x-fullscreen-adjust): New prototype.
12782
127832002-02-17 Kim F. Storm <storm@cua.dk>
12784
12785 * frame.c: (Vmouse_highlight): New variable.
12786 (syms_of_frame): DEFVAR_LISP it.
12787
12788 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 12789
048addec 12790 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 12791
048addec
JD
12792 * xterm.c (disable_mouse_highlight): Removed variable.
12793 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12794 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12795 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
12796 and on after keyboard input.
12797 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 12798
048addec 12799 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 12800
048addec
JD
12801 * msdos.c (disable_mouse_highlight): Removed variable.
12802 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12803 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12804 (internal_terminal_init): Initialize mouse_face_hidden.
12805 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
12806 and on after keyboard input.
4f1b1854 12807
048addec 12808 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 12809
048addec
JD
12810 * w32term.c (disable_mouse_highlight): Removed variable.
12811 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
12812 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12813 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
12814 and on after keyboard input.
12815 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 12816
048addec 128172002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 12818
048addec
JD
12819 * msdos.c (last_mouse_window): New variable.
12820 (dos_rawgetc): Fix last change--if the mouse is in the same window
12821 as recorded in last_mouse_window, don't select this window.
5cb6905d 12822
048addec 12823 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 12824
048addec
JD
12825 * msdos.c (x_autoselect_window_p): New variable.
12826 (syms_of_msdos): Defvar it.
12827 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
12828 which the last mouse movement occured, unless it is already selected.
437dfb9f 12829
048addec
JD
12830 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
12831 New variables.
12832 (syms_of_xdisp): DEVFAR them.
12833 (hscroll_window_tree): Use automatic_hscroll_margin and
12834 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 12835
048addec 128362002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 12837
048addec
JD
12838 * xterm.c (x-autoselect-window): New variable.
12839 (note_mouse_movement): Use it.
9f696a00 12840
048addec 12841 * keyboard.c: Do not include "systime.h" twice.
d57966d7 12842
048addec 128432002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 12844
bfa02563 12845 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 12846
048addec 12847 * alloc.c (NSTATICS): Increase to 1280.
74779f52 12848
048addec 128492002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 12850
048addec 12851 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 12852
048addec
JD
12853 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
12854 (Vx_super_keysym): New variables.
12855 (syms_of_xterm): DEFVAR_LISP them.
12856 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
12857 variables to determine which keys to use for the various modifiers.
a474d59c 12858
048addec 128592002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 12860
048addec
JD
12861 * window.c: (Vmode_line_in_non_selected_windows): Removed.
12862 (mode_line_in_non_selected_windows): New variable.
12863 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 12864
048addec
JD
12865 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
12866 Use mode_line_in_non_selected_windows.
12867 (mode_line_in_non_selected_windows): Declare extern.
12868 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 12869
048addec 128702002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 12871
048addec
JD
12872 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
12873 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
12874 (Fclear_this_command_keys): Doc fixes.
2d10309f 12875
048addec
JD
12876 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
12877 (update_face_from_frame_parameter): Increment face_change_count
12878 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 12879
048addec
JD
12880 * xdisp.c (QCpropertize): New variable.
12881 (mode_line_proptrans_alist): New variable.
12882 (display_mode_element): New arg PROPS; all calls changed.
12883 Implement this, for strings.
12884 Handle literal output of strings by sharing the
12885 main-line code for strings, using local var `literal'.
12886 Handle :propertize feature.
12887 (syms_of_xdisp): Initialze and staticpro QCpropertize and
12888 mode_line_proptrans_alist.
0b1e6b54 12889
048addec 128902002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 12891
048addec
JD
12892 * window.c: (Vmode_line_in_non_selected_windows): New variable.
12893 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 12894
048addec
JD
12895 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
12896 (CURRENT_MODE_LINE_FACE_ID): Use it.
12897 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 12898
048addec
JD
12899 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
12900 to get mode line face.
e17144de 12901
048addec 129022002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12903
048addec
JD
12904 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
12905 variables; cus-start.el doesn't need them anymore.
44368f8f 12906
048addec 129072002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 12908
048addec
JD
12909 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
12910 reduction. This fixes a display problem where stray newlines were
12911 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 12912
048addec 129132002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12914
048addec 12915 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 12916
048addec 12917 * xdisp.c (display_mode_lines): Fix last change.
453c5510 12918
048addec 129192002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 12920
048addec
JD
12921 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
12922 match each other.
12923 (w32_load_system_font): Prevent Cleartype fonts from loading.
12924 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 12925
048addec 129262002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 12927
048addec
JD
12928 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
12929 (CURRENT_MODE_LINE_HEIGHT): Use it.
12930 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12931
048addec
JD
12932 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
12933 (pos_visible_p, handle_face_prop): Likewise.
12934 (display_mode_lines): Likewise, but for the real selected window.
12935 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12936
048addec
JD
12937 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
12938 in non-selected windows.
12939 (realize_basic_faces): Realize it.
12940 (syms_of_term): Intern and staticpro it.
308dd672 12941
048addec 129422002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 12943
048addec
JD
12944 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
12945 Changed mail addresses to emacs-devel@gnu.org.
308dd672 12946
048addec 129472002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 12948
048addec
JD
12949 * fileio.c (Fsubstitute_in_file_name): If the file name includes
12950 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 12951
048addec 12952 * floatfns.c (Fround): Doc fix.
3c1e6b46 12953
048addec 129542002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 12955
048addec 12956 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 12957
048addec 129582002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 12959
048addec 12960 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 12961
048addec 129622002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 12963
048addec
JD
12964 * keymap.c (where_is_internal): Only check whether definition is
12965 remapped if it fulfills is_command_symbol.
0065bb74 12966
048addec 129672002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 12968
048addec 12969 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 12970
048addec 12971 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 12972
048addec 129732002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 12974
048addec
JD
12975 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
12976 defining command remapping. Doc updated.
12977 (Flookup_key): Remap command through keymap if KEY is a symbol.
12978 (is_command_symbol): New function.
12979 (Fkey_binding): Use it. New optional argument NO-REMAP.
12980 Doc updated. Callers changed. Perform command remapping via
12981 recursive call unless that arg is non-nil.
12982 (where_is_internal): New argument no_remap. Callers changed.
12983 Call recursively to find original key bindings for a remapped
12984 comand unless that arg is non-nil.
12985 (Fwhere_is_internal): New optional argument NO-REMAP.
12986 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 12987
048addec
JD
12988 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
12989 (is_command_symbol): Added prototype.
0d8466cc 12990
048addec
JD
12991 * keyboard.c (Vthis_original_command): New variable.
12992 (syms_of_keyboard): DEFVAR_LISP it.
12993 (command_loop_1): Set it, and perform command remapping.
15fff01d 12994
048addec 129952002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 12996
048addec 12997 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 12998
048addec 129992002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 13000
048addec 13001 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 13002
048addec 130032002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 13004
048addec 13005 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 13006
048addec 130072002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 13008
048addec 13009 * filelock.c (S_ISLNK): Define if not defined.
3a232704 13010
048addec 130112002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 13012
048addec 13013 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 13014
048addec
JD
13015 * lread.c (read1): Redesign strategy for force_multibyte and
13016 force_singlebyte. Now is_multibyte records whether read_buffer
13017 is multibyte. Encountering any multibyte character makes it so.
4e02881b 13018
048addec 130192002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 13020
048addec
JD
13021 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
13022 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 13023
048addec 130242002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 13025
048addec
JD
13026 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
13027 latter never being defined on GNU/Linux.
749f499f 13028
048addec 130292002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 13030
048addec
JD
13031 * xfaces.c (realize_default_face): Don't set the weight and slant of
13032 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 13033
048addec 130342002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 13035
048addec
JD
13036 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
13037 Call cancel_hourglass unconditionally.
d0fd26dd 13038
048addec
JD
13039 * eval.c (Fsignal): Remove duplicated declaration of
13040 the variable `display_hourglass_p'.
b4c45162 13041
048addec 130422002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 13043
048addec 13044 * editfns.c (region_limit): Nicer error message.
c95eaa61 13045
048addec
JD
13046 * coding.c (decode_composition_emacs_mule):
13047 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 13048
048addec
JD
13049 * callint.c (check_mark): New arg to specify clearer error message.
13050 Callers changed.
c95eaa61 13051
048addec 130522002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 13053
048addec 13054 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 13055
048addec 130562002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 13057
048addec
JD
13058 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
13059 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
13060 Fix doc-strings.
c95eaa61 13061
048addec 130622002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 13063
048addec 13064 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 13065
048addec
JD
13066 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
13067 and scroll_up_aggressively.
c95eaa61 13068
048addec 130692002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 13070
048addec 13071 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 13072
048addec 130732002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 13074
048addec
JD
13075 * textprop.c (Fnext_property_change, Fnext_single_property_change)
13076 (Fprevious_property_change, Fprevious_single_property_change):
13077 Stay within the narrowed-buffer boundaries.
e2c3786a 13078
048addec 130792002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 13080
048addec
JD
13081 * term.c (Ftty_display_color_cells): New function.
13082 (syms_of_term): Defsubr it.
13083 (Ftty_display_color_cells, Ftty_display_color_p): Change the
13084 argument name to DISPLAY. Doc fix.
bf794306 13085
048addec
JD
13086 * dispextern.h: Add prototype for set_tty_color_mode and
13087 tty_setup_colors.
bf794306 13088
048addec 130892002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 13090
048addec
JD
13091 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
13092 If region left to draw is not what was expected, mark the frame as
13093 garbaged.
62582985 13094
048addec
JD
13095 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
13096 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 13097
048addec 130982002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 13099
048addec
JD
13100 * w32term.c (x_update_window_begin): Only hide caret if
13101 w32_use_visible_system_caret is set.
13102 (x_update_window_end): Only show caret if
13103 w32_use_visible_system_caret is set.
13104 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 13105
048addec 13106 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 13107
048addec 131082002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 13109
048addec
JD
13110 * unexelf.c (unexec): Define n so as to cause compilation error
13111 for the code where people have often written n instead of nn.
1e9a6186 13112
048addec 13113 * .gdbinit (hookpost-run): Defined.
1e9a6186 13114
048addec 131152002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 13116
048addec 13117 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 13118
048addec 131192002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 13120
048addec
JD
13121 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
13122 if fullscreen is being set.
7c75be36 13123
048addec 131242002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 13125
048addec
JD
13126 * minibuf.c (Fminibuffer_contents)
13127 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
13128 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 13129
048addec 131302002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 13131
048addec 13132 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 13133
048addec 131342002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 13135
048addec
JD
13136 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
13137 height before comparison.
13138 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 13139
048addec 131402002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 13141
048addec
JD
13142 * w32term.c (w32_system_caret_width): Remove.
13143 (w32_use_visible_system_caret): New user flag.
13144 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
13145 Windows reports a screen reader running.
13146 (x_update_window_begin): Hide the system caret.
13147 (x_update_window_end): Show the system caret.
13148 (x_display_and_set_cursor): Don't draw a cursor when
13149 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 13150
048addec
JD
13151 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
13152 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
13153 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
13154 the user requests it. Use system default width when creating.
13155 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 13156
048addec
JD
13157 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
13158 New window messages.
905cc05a 13159
048addec 131602002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 13161
048addec 13162 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 13163
048addec 131642002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 13165
048addec 13166 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 13167
048addec 131682002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 13169
048addec 13170 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 13171
048addec 131722002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 13173
048addec
JD
13174 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
13175 that Windows returns. If a double check fails, try to guess how
13176 ExtTextOut is going to act.
4d0fa4f3 13177
048addec
JD
13178 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
13179 in place of stricmp.
13180 (w32_list_synthesized_fonts): Removed.
13181 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
13182 (struct enumfont_t): New element; list.
13183 (enum_font_cb2): List all style and charset variations of a font.
13184 (Fw32_select_font): New optional argument; include_proportional.
13185 Exclude vertical fonts. Exclude proportional fonts unless
13186 include_proportional is non-nil.
13187 (w32_enable_synthesized_fonts): Change to a boolean.
13188 (Fw32_send_sys_command): Doc fix.
493faf20 13189
048addec 131902002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 13191
048addec
JD
13192 * dispnew.c (update_frame): Move the variable `tem' to the block
13193 where it is used.
4971e491 13194
048addec 131952002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 13196
048addec
JD
13197 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
13198 call to face-set-after-frame-default.
4971e491 13199
048addec 132002002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 13201
048addec
JD
13202 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
13203 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 13204
048addec 132052002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 13206
048addec
JD
13207 * window.c (enlarge_window): When exceeding size of parent,
13208 directly delete all the siblings instead of trying to resize it.
201c831a 13209
048addec 132102002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 13211
048addec 13212 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 13213
048addec 132142002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 13215
048addec 13216 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 13217
048addec 132182002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 13219
048addec
JD
13220 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
13221 is invisible. This can happen if cursor is on top line of a
13222 window, and we switch to a buffer with a header line.
d77fbc16 13223
048addec 13224 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 13225
048addec 132262002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 13227
048addec
JD
13228 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
13229 `dont_resize' only when used.
61e3b944 13230
048addec 13231 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 13232
048addec 132332002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 13234
048addec
JD
13235 * xdisp.c (display_mode_element): When computing charpos, depend
13236 on multibyteness of elt, not the text in field.
8af01033 13237
048addec 132382002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 13239
048addec
JD
13240 * buffer.c (Fkill_all_local_variables):
13241 Increment `update_mode_lines' only once.
7363986a 13242
048addec 132432002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 13244
048addec
JD
13245 * lisp.h (adjust_after_replace_noundo)
13246 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 13247
048addec 13248 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 13249
048addec 132502002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 13251
048addec
JD
13252 Support for the --color command-line argument and tty-color-mode
13253 frame parameter:
f1a85b89 13254
048addec
JD
13255 * term.c (tty_default_color_capabilities, tty_setup_colors)
13256 (set_tty_color_mode): New functions.
13257 (term_init): Call tty_default_color_capabilities.
13258 (Qtty_color_mode_alist): New variable.
13259 (syms_of_term): Intern and staticpro it.
f1a85b89 13260
048addec
JD
13261 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
13262 frames.
13263 (do_switch_frame): For termcap frames, switch the tty
13264 color mode as specified by the frame's parameters.
13265 (Qtty_color_mode): New variable.
13266 (syms_of_frame): Intern and staticpro it.
3a62677f 13267
048addec
JD
13268 * emacs.c (USAGE2): Add the --color option.
13269 (standard_args): Ditto.
72244db2 13270
048addec
JD
132712002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13272
13273 * xterm.h (struct x_output): New members want_fullscreen,
13274 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
13275 y_pixels_outer_diff.
13276 New enum for FULLSCREEN_* constants.
13277 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
13278 is NULL.
13279 (x_fullscreen_adjust): Add prototype.
3a62677f 13280
048addec
JD
13281 * emacs.c (USAGE2): Add the new full-screen arguments.
13282 (standard_args): Ditto.
3a62677f 13283
048addec
JD
13284 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13285 New variables.
13286 (syms_of_xfns): Intern and staticpro them.
13287 (x_frame_parms) <"fullscreen">: New parameter.
13288 (x_fullscreen_move, x_set_fullscreen): New functions.
13289 (x_set_frame_parameters): Support for Qfullscreen.
13290 (x_real_positions): More accurate computation of the frame position.
13291 (x_figure_window_size): Support full-screen frames.
13292 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 13293
048addec
JD
13294 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
13295 (XTread_socket) <Expose>: Call x_check_fullscreen.
13296 <ConfigureNotify>: Don't resize to fullscreen.
13297 Call x_check_fullscreen_move, and set the want_fullscreen member of
13298 output_data.x.
3a62677f 13299
048addec 133002002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 13301
048addec
JD
13302 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
13303 for mice with more than 3 buttons.
b8523839 13304
048addec
JD
13305 * w32term.c (parse_button): New parameter xbutton. Callers changed.
13306 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 13307
048addec
JD
13308 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
13309 (syms_of_w32fns): DEFVAR_BOOL it.
13310 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 13311
048addec 133122002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 13313
048addec 13314 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 13315
048addec 133162002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 13317
048addec 13318 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 13319
048addec 133202002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 13321
048addec
JD
13322 * .gdbinit (xbuffer): Remove address operator since data is now a
13323 pointer.
c93674bb 13324
048addec 133252002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 13326
048addec 13327 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 13328
048addec 13329 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 13330
048addec 133312002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 13332
048addec
JD
13333 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
13334 when checking for multiple frames.
91175673 13335
048addec 133362002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 13337
048addec
JD
13338 * window.c (delete_window): Rewrite the code for changing the
13339 selected window to handle the case where WINDOW is not a leaf.
91175673 13340
048addec 133412002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 13342
048addec
JD
13343 * process.c (send_process): Set src_multibyte to 1 after the call
13344 top setup_coding_system, not before the call.
e0fead5d 13345
048addec 133462002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 13347
048addec
JD
13348 * xmenu.c (set_frame_menubar, xmenu_show):
13349 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 13350
048addec
JD
13351 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
13352 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 13353
048addec 133542002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 13355
048addec 13356 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 13357
048addec 13358 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 13359
048addec 13360 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 13361
048addec 133622002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 13363
048addec
JD
13364 * insdel.c (make_gap_larger): Make sure buffer size does not
13365 overflow range of int.
62854fe2 13366
048addec 133672002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 13368
048addec
JD
13369 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13370 OVERLAPS_P.
656f46bb 13371
048addec 13372 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 13373
048addec
JD
13374 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
13375 to the left or to the right of the pointer, put it against
13376 the left screen edge.
13377 (x_frame_parms): Add missing braces around initializer.
036e218d 13378
048addec
JD
13379 * w32term.c (x_setup_relief_colors): Don't compute an image's
13380 background color if it doesn't have a Pixmap.
13381 (notice_overwritten_cursor): Don't depend on
13382 output_cursor and updated_area. Compare pixel coordinates with
13383 window's cursor pixel coordinates.
13384 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13385 Call notice_overwritten_cursor with new arg list.
13386 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13387 unconditionally.
13388 (x_draw_image_relief): Use predefined macro instead of
13389 constant when the value of `tool_bar_button_relief' is negative.
036e218d 13390
048addec 13391 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 13392
048addec 133932002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 13394
048addec 13395 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 13396
048addec 133972002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 13398
048addec
JD
13399 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
13400 (Fkey_binding): Try the `keymap' property map first.
13401 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
13402 minor mode bindings.
90647b07 13403
048addec 134042002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 13405
048addec 13406 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 13407
048addec 134082002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 13409
048addec
JD
13410 * keyboard.c (read_key_sequence): Handle the keymap property
13411 before minor mode maps.
9fbc32aa 13412
048addec
JD
13413 * editfns.c (Fformat): Update thissize from field_width
13414 based on the actual width, in the string case.
036e218d 13415
048addec 134162002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 13417
048addec
JD
13418 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
13419 when used as truth value to prevent gcc warnings.
9fbc32aa 13420
048addec
JD
13421 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
13422 * w32proc.c: Include <config.h>.
9fbc32aa 13423
048addec 134242002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 13425
048addec
JD
13426 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
13427 not EMACS_INT, to make them compatible with DEFVAR_INT.
13428 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 13429
048addec 134302002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13431
048addec
JD
13432 * print.c (print_object): Test print_escape_nonascii only for
13433 unibyte strings.
13434 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
13435 when outputting to a multibyte buffer.
9fbc32aa 13436
048addec 134372001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13438
048addec
JD
13439 * print.c (print_object): In multibyte string, use hex escapes.
13440 Use octal only for unibyte strings.
13441 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 13442
048addec
JD
13443 * lread.c (read_escape): New arg BYTEREP for reporting whether
13444 escape forces unibyte or multibyte.
13445 (read1): When reading a string, take note of that info.
0142178a 13446
048addec 134472001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 13448
048addec
JD
13449 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
13450 comparison to test lisp value returned by Fget.
d4824a5d 13451
048addec 134522001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 13453
048addec 13454 * lisp.h (max_specpdl_size): Add declaration.
b1356234 13455
048addec 13456 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 13457
048addec
JD
13458 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
13459 Handle modifier bits. Correct typo in error message.
99e380ee 13460
048addec 134612001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 13462
048addec
JD
13463 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
13464 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
13465 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13466 Update calls to Fdefine_abbrev.
13467 (write_abbrev): Update for changed data format.
13468 Don't list "system" abbrevs.
13469 (Fexpand_abbrev): Update use count with new data format.
13470 (describe_abbrev): Update for changed data format.
13471 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 13472
048addec 13473 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 13474
048addec 13475 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 13476
048addec
JD
13477 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
13478 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 13479
048addec
JD
13480 * keymap.c (Flookup_key): Error message if key has wrong data type.
13481 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
13482 (exclude_key): New variable.
59a86c99 13483
048addec 134842001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 13485
048addec
JD
13486 * xterm.c (x_setup_relief_colors): Don't compute an image's
13487 background color if it doesn't have a Pixmap.
eb77a5f4 13488
048addec
JD
13489 * xterm.c (notice_overwritten_cursor): Don't depend on
13490 output_cursor and updated_area. Compare pixel coordinates with
13491 window's cursor pixel coordinates.
13492 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13493 Call notice_overwritten_cursor with new arg list.
13494 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13495 unconditionally.
eb77a5f4 13496
048addec
JD
13497 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
13498 height of the cursor line to the amount to scroll.
eb77a5f4 13499
048addec 135002001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 13501
048addec
JD
13502 * intervals.c (set_point_both): The position after an invisible,
13503 intangible character is not an acceptable stopping point.
bb313871 13504
048addec 135052001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 13506
048addec
JD
13507 * window.c (enlarge_window): In new preserve_before code, convert
13508 CURBEG from lisp object to integer before doing arithmetic.
6052529b 13509
048addec 135102001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 13511
048addec 13512 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 13513
048addec 135142001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 13515
048addec
JD
13516 * keyboard.c (record_char): Ignore duplicate help-echo events only
13517 separated by mouse-movement. When tracking mouse, only record
13518 first and last mouse-movement event in same window.
13519 Don't record mouse-movement events in keyboard macros.
3ce081f5 13520
048addec 135212001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 13522
048addec
JD
13523 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
13524 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 13525
048addec
JD
13526 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
13527 instead of Fstring_as_unibyte.
9fabb2f5 13528
048addec 135292001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 13530
048addec 13531 The following changes remove mocklisp support:
9fabb2f5 13532
048addec 13533 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 13534
048addec
JD
13535 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
13536 `Qmocklisp' and `Qmocklisp_arguments'.
13537 Remove prototype of syms_of_mocklisp.
2fa0eedf 13538
048addec 13539 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 13540
048addec
JD
13541 * callint.c: Do not include mocklisp.h.
13542 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 13543
048addec
JD
13544 * eval.c: Remove variables `Qmocklisp_arguments',
13545 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
13546 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
13547 Do not test for mocklisp case.
13548 (Fwhile): Remove unused variable `tem'.
13549 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 13550
048addec 13551 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 13552
048addec 13553 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 13554
048addec 13555 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 13556
048addec 135572001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 13558
048addec
JD
13559 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
13560 to the left or to the right of the pointer, put it against
13561 the left screen edge.
6108b49c 13562
048addec 135632001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 13564
048addec
JD
13565 * Makefile.in (distclean): Remove .gdbinit if we are building
13566 outside the source tree.
5eea19a4 13567
048addec 135682001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 13569
048addec 13570 * w32.c (emacs_root_dir): New function.
5eea19a4 13571
048addec 13572 * msdos.c (emacs_root_dir): New function.
5eea19a4 13573
048addec
JD
13574 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
13575 of the current drive as the fallback for default_directory.
438e57dd 13576
048addec
JD
13577 * dired.c (file_name_completion): Run the elements of
13578 completion-ignored-extensions through ENCODE_FILE.
438e57dd 13579
048addec
JD
13580 * lisp.h (scmp): Remove prototype, since it's now a static
13581 function private to dired.c.
c88e5347 13582
048addec 135832001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 13584
048addec
JD
13585 * dired.c (scmp): Function moved from minibuf.c.
13586 Delete multibyte handling--used only on encoded strings.
59ce1461 13587
048addec 13588 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 13589
048addec 13590 * fns.c (merge): Add QUIT call.
59ce1461 13591
048addec 135922001-12-18 Dave Love <fx@gnu.org>
8727d588 13593
048addec
JD
13594 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
13595 language/georgian.el.
8727d588 13596
048addec 135972001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 13598
048addec
JD
13599 * Makefile.in (lisp, shortlisp): Synchronize with changes to
13600 lisp/Makefile.in:DONTCOMPILE.
cc63037e 13601
048addec 136022001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 13603
048addec
JD
13604 * xdisp.c (window_box_height): Do not return negative values.
13605 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 13606
048addec 13607 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 13608
048addec 13609 * term.c (keys): Likewise.
deece6f5 13610
048addec 13611 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 13612
048addec 136132001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 13614
048addec
JD
13615 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
13616 patch (COMPOSING_P, not COMPOSING).
28ff4293 13617
048addec 136182001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 13619
048addec 13620 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 13621
048addec
JD
13622 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
13623 before calling decode_coding.
9b46de40 13624
048addec 13625 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 13626
048addec
JD
13627 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
13628 instead of only for COMPOSITION_DISABLED.
9b46de40 13629
048addec 136302001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 13631
048addec 13632 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 13633
048addec 13634 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 13635
048addec
JD
13636 * buffer.h (struct buffer): New field `display_error_modiff'.
13637 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 13638
048addec 13639 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 13640
048addec
JD
13641 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
13642 Call redisplay_window, but not if display_error_modiff field says no.
13643 (redisplay_window_error): New function.
13644 (displayed_buffer): New variable.
13645 (redisplay_internal, redisplay_windows): Call the new functions
13646 instead of redisplay_window directly.
2cd23960 13647
048addec 136482001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 13649
048addec 13650 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 13651
048addec 136522001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 13653
048addec 13654 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 13655 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 13656 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 13657
048addec 136582001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 13659
048addec
JD
13660 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
13661 parameter have a numeric value all the time.
f6fa0866 13662
048addec 13663 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 13664
048addec 136652001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 13666
048addec 13667 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 13668
048addec
JD
13669 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
13670 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 13671
048addec 136722001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 13673
048addec
JD
13674 * xdisp.c (move_it_vertically_backward): Change heuristic
13675 for the case that we didn't move far enough initially.
91c153e2 13676
048addec
JD
13677 * window.c (Frecenter): Simplify computation in the case of window
13678 system frames and ARG < 0; use window_box_height.
65b7d3e7 13679
048addec 136802001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 13681
048addec
JD
13682 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
13683 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 13684
048addec 136852001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 13686
048addec
JD
13687 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
13688 arg is negative.
be676094 13689
048addec 136902001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 13691
048addec
JD
13692 * m/hp800.h: Split the __hpux conditional into the parts
13693 that are right for GNU/Linux too and the parts that are not.
13694 Use the former if GNU_LINUX.
13695 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 13696
048addec 13697 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 13698
048addec 136992001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 13700
048addec
JD
13701 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13702 `new style' [w/`doc:' keyword].
032a857d 13703
048addec 137042001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 13705
048addec
JD
13706 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13707 before using.
b6270150 13708
048addec 137092001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 13710
048addec
JD
13711 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13712 keyword].
98cbb9fa 13713
048addec 137142001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 13715
048addec 13716 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 13717
048addec 13718 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 13719
048addec 137202001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 13721
048addec
JD
13722 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
13723 Add comment to explain where the struct came from.
13724 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
13725 (add_menu_item): Process pop-up menus first to avoid memory leak.
13726 (add_menu_item, w32_menu_display_help): Use `help' field as
13727 Lisp_Object.
13728 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 13729
048addec 137302001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 13731
048addec 13732 * COPYING: Moved back.
fa336b91 13733
048addec
JD
13734 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
13735 Add parentheses around && within ||.
077907d4 13736
048addec 13737 * indent.c (compute_motion): Likewise.
aa2af83a 13738
048addec 13739 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 13740
048addec
JD
13741 * coding.c (setup_coding_system, shrink_encoding_region)
13742 (Fdecode_sjis_char): Likewise.
60a653f1 13743
048addec 137442001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 13745
048addec
JD
13746 * xdisp.c (display_mode_element): Don't read past end of string if
13747 it ends with '%'.
60a653f1 13748
048addec
JD
13749 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
13750 can hold.
60a653f1 13751
048addec
JD
13752 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
13753 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
13754 type changed to Lisp_Object.
13755 (syms_of_data): DEFVAR_LISP them.
60a653f1 13756
048addec 137572001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 13758
048addec
JD
13759 * callproc.c (init_callproc): Set Vdata_directory based on the source
13760 location whenever Emacs was run uninstalled.
60a653f1 13761
048addec 137622001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 13763
048addec
JD
13764 * config.in (HAVE_WORKING_VFORK): New #undefs.
13765 * process.c (create_process):
13766 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
13767 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
13768 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
13769 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
13770 * m/intel386.h (HAVE_VFORK): Likewise.
13771 * m/mips-siemens.h (HAVE_VFORK): Likewise.
13772 * m/mips.h (HAVE_VFORK): Likewise.
13773 * s/freebsd.h (vfork): Remove #define.
13774 * s/lynxos.h (HAVE_VFORK): Remove #undef.
13775 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 13776
048addec 137772001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 13778
048addec
JD
13779 * s/hpux10.h (random): Add undef.
13780 (HAVE_RANDOM): Define it just once.
60a653f1 13781
048addec 137822001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13783
048addec 13784 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 13785
048addec 137862001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13787
048addec
JD
13788 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
13789 scroll bars of the frame before deleting the frame itself. If the
13790 frame has a widget, delete the frame with XtDestroyWidget, and do
13791 not call XDestroyWindow before that.
60a653f1 13792
048addec 137932001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 13794
048addec 13795 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13796
048addec 13797 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13798
048addec 137992001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 13800
048addec
JD
13801 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
13802 excessively large.
60a653f1 13803
048addec
JD
13804 * insdel.c (make_gap_larger): New function.
13805 (make_gap_smaller): New function.
13806 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
13807 Call make_gap_smaller if arg is negative.
60a653f1 13808
048addec 138092001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13810
048addec
JD
13811 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
13812 Pass a dummy argument when calling interrupt_signal.
13813 (parse_menu_item): Mark disabled items before checking for empty def.
13814 (read_char_minibuf_menu_prompt): Make safety more visible.
13815 (read_key_sequence): Add a `first_unbound' variable.
13816 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
13817 unbound prefix as soon as we can detect it.
60a653f1 13818
048addec
JD
13819 * doc.c (Fsnarf_documentation): Add prototype.
13820 (get_doc_string): Handle negative arguments.
13821 (Fdocumentation): Use AREF and ASIZE.
13822 Move the calls to get_doc_string to a single place.
13823 Don't confuse an interactive-spec for a docstring reference.
13824 (Fdocumentation_property): Take advantage of the fact that
13825 get_doc_string now ignores the sign of the docstring position.
60a653f1 13826
048addec 13827 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 13828
048addec 138292001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13830
a64387ee 13831 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 13832
048addec 138332001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13834
048addec
JD
13835 * xterm.c (x_draw_image_relief): Use predefined macro instead of
13836 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 13837
048addec 138382001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 13839
048addec
JD
13840 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
13841 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 13842
048addec 13843 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 13844
048addec 138452001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13846
048addec 13847 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 13848
048addec 138492001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 13850
048addec 13851 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 13852
048addec 138532001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 13854
f63fd14e 13855 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 13856
048addec
JD
13857 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
13858 [!WM_MOUSELEAVE]: Define.
60a653f1 13859
048addec
JD
13860 * w32menu.c (current_popup_menu, get_menu_item_info):
13861 (set_menu_item_info): New vars.
13862 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
13863 (w32_menu_show): Set current_popup_menu.
13864 (add_menu_item): Allocate new strings for owner-drawn menu items
13865 and help strings.
13866 Use owner-draw for disabled menu items again.
13867 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
13868 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 13869
048addec
JD
13870 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
13871 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
13872 <WM_EXITMENULOOP>: Free menu strings.
13873 <WM_MOUSELEAVE>: Stop tracking mouse.
13874 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 13875
048addec
JD
13876 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
13877 and mouse face.
60a653f1 13878
048addec 138792001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 13880
048addec
JD
13881 The following changes add left-fringe and right-fringe
13882 frame parameters to adjust fringe widths, or remove one or
13883 both fringes.
60a653f1 13884
048addec
JD
13885 * frame.h (struct frame): Remove trunc_area_pixel_width and
13886 trunc_area_cols fields.
13887 (Qleft_fringe, Qright_fringe): Declare.
13888 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 13889
048addec
JD
13890 * frame.c (Qleft_fringe, Qright_fringe): New vars.
13891 (syms_of_frame): Initialize them.
60a653f1 13892
048addec
JD
13893 * window.c (coordinates_in_window): Handle separate left and right
13894 fringe widths.
60a653f1 13895
048addec
JD
13896 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
13897 and fringe_cols fields.
13898 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
13899 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
13900 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
13901 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
13902 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
13903 (x_compute_fringe_widths): Add prototype.
60a653f1 13904
048addec
JD
13905 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
13906 fill fringe evenly with small dashes.
f63fd14e 13907 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
13908 clip the new ZV bitmap to avoid jitter between rows.
13909 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
13910 background. Don't draw fringe bitmaps if fringe width is zero.
13911 (x_compute_fringe_widths): New function.
13912 (x_new_font, x_set_window_size_1): Use it.
60a653f1 13913
048addec
JD
13914 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
13915 (x_set_frame_parameters): Process `font' parameter before other
13916 parameters as fringe widths depend on it.
13917 (x_set_fringe_width): New function.
13918 (x_figure_window_size): Use x_compute_fringe_widths.
13919 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
13920 parameters.
60a653f1 13921
048addec
JD
13922 * widget.c (set_frame_size): Use x_compute_fringe_widths.
13923 (EmacsFrameSetCharSize): Ditto.
60a653f1 13924
048addec
JD
13925 * w32term.h: Merged changes from xterm.h.
13926 * w32term.c: Merged changes from xterm.c.
13927 * w32fns.c: Merged changes from xfns.c.
60a653f1 13928
048addec 139292001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13930
048addec 13931 * COPYING: Removed.
60a653f1 13932
048addec 139332001-11-29 Dave Love <fx@gnu.org>
60a653f1 13934
048addec
JD
13935 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
13936 extra extra slot.
13937 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 13938
048addec 139392001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13940
048addec
JD
13941 * fileio.c (file-name-coding-system)
13942 (default-file-name-coding-system): Doc fix (links to referenced
13943 variables added).
60a653f1 13944
048addec 139452001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13946
048addec
JD
13947 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
13948 Add dummy uses of gcproN variables.
60a653f1 13949
048addec
JD
13950 * category.c (describe_category, describe_category_1)
13951 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
13952 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 13953
048addec 139542001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 13955
048addec 13956 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 13957
048addec
JD
13958 * Makefile.in (lispdir): New variable, referring to build dir.
13959 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 13960
048addec 139612001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 13962
048addec
JD
13963 * w32menu.c (w32_menu_display_help): Actually add the new argument
13964 OWNER.
60a653f1 13965
048addec 139662001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 13967
048addec
JD
13968 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
13969 menu items. From David Ponce <dponce@wanadoo.fr>.
13970 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
13971 conditionally.
f63fd14e 13972 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 13973 help event in the owner frame's keyboard buffer.
60a653f1 13974
048addec
JD
13975 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
13976 (Fx_show_tip): Don't subtract last width from row width.
13977
13978 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
13979 (w32_read_socket): Use EQ to compare frames.
60a653f1 13980
048addec 139812001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 13982
048addec
JD
13983 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13984 OVERLAPS_P.
60a653f1 13985
048addec 139862001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13987
048addec
JD
13988 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
13989 `gcpro3' and `gcpro4'.
60a653f1 13990
048addec 13991 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 13992
048addec 139932001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13994
048addec 13995 * ccl.c: Use AREF and ASIZE.
60a653f1 13996
048addec 139972001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13998
048addec
JD
13999 * lisp.h (run_hook_list_with_args): Remove.
14000 (LIST_END_P): Fix call to wrong_type_argument.
14001 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 14002
048addec 140032001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14004
048addec
JD
14005 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
14006 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 14007
048addec
JD
14008 * eval.c: Use AREF and ASIZE.
14009 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 14010
048addec
JD
14011 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
14012 which match the end of the file-name.
14013 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
14014 is not a valid env var, but leave it as is instead.
60a653f1 14015
048addec
JD
14016 * keymap.c (access_keymap): Handle t bindings like nil bindings.
14017 Make nil bindings in char-tables transparent.
14018 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 14019
048addec 140202001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 14021
048addec
JD
14022 * textprop.c (set_text_properties_1): Allow START, END in either order.
14023 Do nothing if range is empty.
60a653f1 14024
048addec 14025 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 14026
048addec
JD
14027 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
14028 (clean): Not here.
60a653f1 14029
048addec 140302001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14031
048addec
JD
14032 * textprop.c (set_text_properties_1): Clearly mark that the
14033 interval should not be empty.
60a653f1 14034
048addec
JD
14035 * intervals.c (graft_intervals_into_buffer):
14036 Don't call set_text_properties_1 on an empty interval.
60a653f1 14037
048addec 140382001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 14039
048addec 14040 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 14041
048addec
JD
14042 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
14043 don't lose the data in it.
60a653f1 14044
048addec 140452001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 14046
048addec 14047 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 14048
c62aec78 14049 * buffer.c (Fkill_buffer): Likewise.
60a653f1 14050
c62aec78 14051 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 14052
048addec 140532001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14054
048addec 14055 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 14056
048addec 140572001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14058
048addec
JD
14059 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
14060 Niemitalo <kon@iki.fi>.
60a653f1 14061
048addec 140622001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 14063
048addec 14064 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 14065
048addec
JD
14066 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
14067 (Fx_show_tip): Block input during frame creation.
14068 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 14069
048addec 140702001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 14071
048addec
JD
14072 * lread.c (Fload): Detect recursive load error for more than 3
14073 nestings of the same file.
14074 (Vrecursive_load_depth_limit): Variable deleted.
14075 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 14076
048addec 140772001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 14078
048addec
JD
14079 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
14080 mouse position if either left or top is not specified.
60a653f1 14081
048addec
JD
14082 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
14083 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
14084 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
14085 (my_create_tip_window): Assign tip_window.
14086 (x_create_tip_frame): Use same defaults as X.
14087 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 14088 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 14089
048addec
JD
14090 * w32term.c (x_after_update_window_line): Doc fix.
14091 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
14092 frames.
14093 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 14094
048addec
JD
14095 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
14096 for all Windowed systems.
60a653f1 14097
048addec 140982001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14099
048addec
JD
14100 * msdos.c (IT_clear_screen): If the frame's faces are not yet
14101 realized, use the initial screen colors to clear the screen.
60a653f1 14102
048addec 141032001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14104
048addec
JD
14105 * textprop.c (Fset_text_properties): Remove unused variables
14106 `unchanged', `prev_changed', `s' and `len'.
60a653f1 14107
048addec
JD
14108 * search.c (Freplace_match): Remove unused variable `inslen'.
14109
14110 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
14111
141122001-11-22 Jason Rumney <jasonr@gnu.org>
14113
14114 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
14115 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
14116 (my_create_tip_window): New function.
14117 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
14118 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
14119
141202001-11-20 Jason Rumney <jasonr@gnu.org>
14121
14122 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
14123 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
14124
14125 * w32fns.c (Vw32_system_coding_system): Remove.
14126 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
14127
141282001-11-19 Stefan Monnier <monnier@cs.yale.edu>
14129
14130 * fileio.c (Fwrite_region): Move choose_write_coding_system to
14131 after build_annotations.
14132
14133 * syntax.c (describe_syntax): Add dummy arg.
14134 (describe_syntax_1): Update call to describe_vector.
14135
14136 * category.c (describe_category): Add dummy arg.
14137 (describe_category_1): Update call to describe_vector.
14138
14139 * keymap.c (Fdescribe_vector): Add `describer' parameter.
14140 (describe_command, describe_translation): Add dummy second param.
14141 (describe_map): Call elt_describer with two arguments.
14142 (describe_vector_princ): Add `fun' parameter.
14143 Call it instead of the hardcoded `princ'.
14144 (describe_vector): Add arg `args'.
14145 Pass it as a new second argument to elt_describer.
60a653f1 14146
048addec 14147 * keymap.h (describe_vector): Update prototype.
60a653f1 14148
048addec
JD
14149 * frame.c: Don't include keymap.h any more.
14150 (keys_of_frame): Remove.
60a653f1 14151
048addec 14152 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 14153
048addec 14154 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 14155
048addec 141562001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 14157
048addec
JD
14158 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
14159 if defined, 0 otherwise.
14160 (MAP_FAILED): Define if not defined and use it to test mmap failure.
14161 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 14162
048addec 141632001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 14164
048addec 14165 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 14166
048addec 141672001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 14168
048addec
JD
14169 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
14170 (x_draw_bar_cursor): If the background color of the glyph under
14171 the cursor equals the frame's cursor color, use the glyph's
14172 foreground color for drawing the bar cursor.
14173 (x_after_update_window_line): Clear internal border in different
14174 circumstances.
14175 (w32_set_vertical_scroll_bar): Check for width and height > 0.
14176 (w32_draw_relief_rect): Correct relief by 1 pixel.
14177 (x_set_glyph_string_background_width):
14178 Set extends_to_end_of_line_p if the row's fill_line_p is set and
14179 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
14180 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
14181 if cursor_in_non_selected_windows is false.
14182 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
14183 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
14184 Notice if cursor gets overwritten.
14185 (notice_overwritten_cursor): Renamed from
14186 note_overwritten_text_cursor. Rewritten to take glyph widths
14187 into account, and to take X positions as parameters.
14188 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14189 around call to x_draw_glyphs.
14190 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14191 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14192 color to use for image glyph reliefs.
14193 (x_draw_image_relief): Accept zero tool_bar_button_relief.
14194 (glyph_rect): Remove unused variable `area'.
60a653f1 14195
048addec
JD
14196 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
14197 some items.
14198 (x_set_internal_border_width): Set frame garbaged when window
14199 doesn't exist yet.
14200 (Fx_create_frame): Accept zero tool_bar_button_relief.
14201 (x_clear_image_1, four_corners_best, image_background)
14202 (image_background_transparent): New functions.
14203 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
14204 (gs_format): Add `:background' entry.
14205 (lookup_image): Set IMG's background color if specified.
14206 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14207 when appropriate.
14208 (x_clear_image_1): Reset `background_valid' and
14209 `background_transparent_valid' fields.
14210 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14211 calculating it here. Set IMG's background_transparent field.
14212 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14213 (enum png_keyword_index): Add PNG_BACKGROUND.
14214 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14215 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14216 (enum gif_keyword_index): Add GIF_BACKGROUND.
14217 (enum gs_keyword_index): Add GS_BACKGROUND.
14218 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
14219 Pre-calculate image background color where necessary.
14220 (x_create_x_image_and_pixmap, xbm_load, gs_load):
14221 Use display info's n_cbits entry for screen depth.
14222 (Fx_show_tip): Remove unused variables `buffer', `top',
14223 `left', `max_width' and `max_height'.
60a653f1 14224
048addec 14225 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 14226
048addec 142272001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 14228
048addec 14229 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 14230
048addec 142312001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14232
048addec 14233 * frame.c (Fframe_live_p): Doc fix.
60a653f1 14234
048addec 142352001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 14236
048addec
JD
14237 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
14238 (message_dolog_marker3): New static variables hold three markers.
14239 (syms_of_xdisp): Initialize and staticpro them.
14240 (message_dolog): Use message_dolog_marker1..3 instead of
14241 allocating markers each time. Unchain them when done.
60a653f1 14242
048addec 142432001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14244
048addec 14245 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 14246
048addec 142472001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 14248
048addec 14249 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 14250
048addec 142512001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14252
048addec 14253 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 14254
048addec 142552001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 14256
048addec 14257 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 14258
048addec 142592001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 14260
048addec
JD
14261 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
14262 with invalid position.
60a653f1 14263
048addec 142642001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 14265
048addec 14266 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 14267
048addec
JD
14268 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
14269 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
14270 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 14271
048addec 14272 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 14273
048addec 142742001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14275
048addec
JD
14276 * fileio.c (build_annotations): Split off the tail.
14277 (build_annotations_2): New fun. Extracted from build_annotations.
14278 (Fwrite_region): Split the call to build_annotations into two
14279 calls to build_annotations and build_annotations_2.
077907d4 14280
048addec 142812001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 14282
048addec
JD
14283 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
14284 clear_waiting_for_input with argument.
1756e2fb 14285
048addec 14286 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 14287
048addec 14288 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 14289
048addec 14290 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 14291
048addec 14292 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 14293
048addec 142942001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 14295
048addec
JD
14296 * fileio.c (choose_write_coding_system): New fun, extracted
14297 from Fwrite_region.
14298 (Fwrite_region): Use it.
fa336b91 14299
048addec
JD
14300 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
14301 (funcall_lambda, run_hook_with_args): Make static and add prototype.
14302 (ml_apply, find_handler_clause): Add prototype.
fa336b91 14303
048addec 143042001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 14305
048addec 14306 * config.in: Add #undef HAVE_COFF_H.
fa336b91 14307
048addec
JD
14308 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
14309 Required for ISC 4.1.
fa336b91 14310
048addec 143112001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 14312
048addec
JD
14313 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
14314 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 14315
048addec 143162001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 14317
048addec
JD
14318 The following changes are made to clean up the various internal
14319 references to the fringes to actually use the term `fringe' for
14320 them. Previously, they were called `flags areas', `bitmap areas',
14321 `left/right side of windows', or implicitly as `flags' or
14322 `bitmaps':
fa336b91 14323
048addec 14324 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 14325 Comments fixed. Use renamed symbols.
06e8f738 14326
f63fd14e 14327 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 14328
048addec
JD
14329 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
14330 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
14331 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 14332
048addec 14333 * msdos.c: Comment fix.
9ce647f4 14334
048addec 14335 * w32fns.c: Use renamed symbols.
9b784ab8 14336
f63fd14e 14337 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
14338 (fringe_bitmap_type): Renamed from bitmap_type.
14339 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14340 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
14341 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 14342
f63fd14e 14343 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
14344 (fringes_extra): Renamed from flags_areas_extra.
14345 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14346 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14347 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14348 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14349 (FRAME_X_LEFT_FRINGE_WIDTH):
14350 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14351 (FRAME_X_RIGHT_FRINGE_WIDTH):
14352 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 14353
048addec 14354 * widget.c: Use renamed symbols.
9f7e52b4 14355
f63fd14e 14356 * window.c: Comment fixes. Use renamed symbols.
048addec 14357 (coordinates-in-window-p): Doc fix.
fa336b91 14358
f63fd14e 14359 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 14360
048addec 14361 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 14362
048addec 14363 * xfns.c: Use renamed symbols.
89512fcd 14364
f63fd14e 14365 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
14366 (fringe_bitmap_type): Renamed from bitmap_type.
14367 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14368 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
14369 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 14370
f63fd14e 14371 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
14372 (fringes_extra): Renamed from flags_areas_extra.
14373 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14374 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14375 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14376 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14377 (FRAME_X_LEFT_FRINGE_WIDTH):
14378 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14379 (FRAME_X_RIGHT_FRINGE_WIDTH):
14380 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
14381
143822001-11-15 Jason Rumney <jasonr@gnu.org>
14383
14384 * w32menu.c (add-menu-item): Make help_echo and radio buttons
14385 work for most menu items. From David Ponce
14386 <david.ponce@wanadoo.fr>.
14387
143882001-11-15 Gerd Moellmann <gerd@gnu.org>
14389
14390 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
14391 Some x_set_* function expect to be called even if old and new
14392 value are equal.
14393
14394 * xdisp.c (build_desired_tool_bar_string): Accept zero
14395 tool_bar_button_relief.
14396
14397 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
14398
14399 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
14400
14401 * xterm.c (x_draw_bar_cursor): If the background color of the
14402 glyph under the cursor equals the frame's cursor color, use
14403 the glyph's foreground color for drawing the bar cursor.
14404
14405 * dispnew.c (direct_output_forward_char): Fix character/byte
14406 position comparison.
7d18891d 14407
048addec 144082001-11-15 Miles Bader <miles@gnu.org>
d2936d21 14409
048addec
JD
14410 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
14411 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
14412 Update arguments to find_field.
14413 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
14414 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
14415 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
14416 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 14417
048addec 144182001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 14419
048addec 14420 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 14421
048addec
JD
14422 * dispextern.h (image_background, image_background_transparent):
14423 Conditionalize on HAVE_X_WINDOWS.
7d18891d 14424
048addec 144252001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 14426
048addec 14427 * print.c (Fprin1_to_string): Doc fix.
7d18891d 14428
048addec 14429 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 14430
048addec 14431 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 14432
048addec 14433 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 14434
048addec 14435 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 14436
048addec 14437 * eval.c (syms_of_eval): Doc fix.
7d18891d 14438
048addec 14439 * coding.c (syms_of_coding): Doc fix.
7d18891d 14440
048addec 14441 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 14442
048addec 14443 * dispnew.c (syms_of_display): Doc fix.
9474c847 14444
048addec 14445 * category.c (Fget_unused_category): Doc fix.
9474c847 14446
048addec 14447 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 14448
048addec 144492001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 14450
048addec 14451 * print.c (prin1, print): Doc fix.
e3059a5d 14452
048addec 144532001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 14454
048addec
JD
14455 * fontset.h: Remove declarations of variables
14456 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 14457
048addec
JD
14458 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
14459 `Vclip_large_size_font'.
eae936e2 14460
048addec 144612001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 14462
048addec 14463 * w32fns.c: Doc fix.
ddb67bdc 14464
048addec 144652001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 14466
048addec 14467 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 14468
048addec 14469 * fns.c: Doc fix.
6e1b91d7 14470
048addec 14471 * emacs.c: Doc fix.
1c1d3d69 14472
048addec 14473 * coding.c: Doc fix.
1c1d3d69 14474
048addec
JD
14475 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
14476 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
14477 `new style' [w/`doc:' keyword].
b6f4c7ba 14478
048addec 144792001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 14480
048addec
JD
14481 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
14482 LeaveNotify events. Only FocusIn and FocusOut do that now.
14483 (x_display_and_set_cursor): Do display hollow cursors in active
14484 minibuffer windows when they are not selected.
b6f4c7ba 14485
048addec 144862001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 14487
048addec 14488 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
14489 * w32term.c: Change doc-string comments to `new style'
14490 [w/`doc:' keyword]. Doc fixes.
a89f435d 14491
048addec
JD
14492 * w32fns.c: Don't define max.
14493 (Fx_open_connection): Only execute once.
a4cd0cd7 14494
048addec 144952001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 14496
048addec
JD
14497 * ccl.c: Change macros to use do-while block instead of if-else.
14498 Use braces to follow GNU Coding Standards.
eafb659a 14499
048addec 145002001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 14501
048addec 14502 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 14503
048addec 14504 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 14505
048addec
JD
14506 * insdel.c (replace_range): Use adjust_markers_for_replace
14507 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 14508
048addec 14509 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 14510
048addec
JD
14511 * textprop.c (set_text_properties_1): New subroutine
14512 broken out of set_text_properties.
14513 (set_text_properties): Use set_text_properties_1.
91823618 14514
048addec
JD
14515 * intervals.c (graft_intervals_into_buffer):
14516 Use set_text_properties_1 to clear out properties.
91823618 14517
048addec
JD
14518 * search.c (Freplace_match): Use replace_range to insert
14519 and delete. Don't request property inheritance from
14520 surrounding text.
86928dfb 14521
048addec 145222001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 14523
048addec 14524 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 14525 vertical fonts. Allow them if face name is explicitly specified.
048addec 14526 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 14527
048addec 145282001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 14529
048addec
JD
14530 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
14531 instead of malloc/free.
a78e0303 14532
048addec 145332001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 14534
048addec
JD
14535 * xfaces.c (merge_face_vectors): Use braces to follow GNU
14536 Coding Standards.
14537 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 14538
048addec 14539 * buffer.c (Fbury_buffer): Likewise.
0c99b139 14540
048addec 14541 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 14542
048addec
JD
14543 * coding.c (encode_coding): Use precomputed value of `src'.
14544 (encode_coding): Remove unused variable `src_end'.
14545 (code_convert_region): Remove unused variables `count'.
830ddd77 14546
048addec 145472001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 14548
048addec
JD
14549 * w32term.c (x_display_and_set_cursor): Do not move system caret
14550 if cursor_glyph is NULL.
55c6d645 14551
048addec 145522001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 14553
048addec 14554 * keymap.c (access_keymap): Fix compilation error.
5de38842 14555
048addec 145562001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 14557
048addec 14558 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 14559
048addec 145602001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 14561
048addec
JD
14562 * intervals.c (graft_intervals_into_buffer):
14563 Remove #ifdef'd-out code.
14564 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 14565
048addec
JD
14566 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
14567 code (eval-current-buffer).
14568 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 14569
048addec 145702001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 14571
048addec 14572 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 14573
048addec 145742001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 14575
048addec 14576 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 14577
048addec
JD
14578 * keyboard.c (make_lispy_event): Check integerness and fix
14579 Lisp_Object/int mixup.
17893c65 14580
048addec 145812001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 14582
048addec 14583 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 14584
048addec
JD
14585 * fontset.c (fontset_font_pattern): Remove unused variable
14586 `family_registry'.
d5360cc7 14587
048addec 14588 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 14589
048addec 145902001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 14591
048addec 14592 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 14593
048addec
JD
14594 * buffer.c (Fkill_buffer): Don't delete auto save file
14595 if buffer is modified.
d9d54213 14596
048addec 145972001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 14598
048addec
JD
14599 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
14600 CHECK_NUMBER_CDR.
b116830b 14601
048addec 146022001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 14603
048addec 14604 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 14605
048addec 146062001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 14607
048addec 14608 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 14609
048addec 146102001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 14611
048addec 14612 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 14613
048addec 146142001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 14615
048addec
JD
14616 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
14617 the program image directly.
982f6c7e 14618
048addec 146192001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 14620
048addec 14621 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 14622
048addec 146232001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 14624
048addec
JD
14625 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
14626 and CHECK_BUFFER.
d31053f9 14627
048addec
JD
14628 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
14629 (record_char): Likewise.
d31053f9 14630
048addec
JD
14631 * keyboard.c (make_lispy_event): Don't insist a drag event must
14632 move to a different buffer position. Instead, check for moving at
14633 least double_click_fuzz.
982f6c7e 14634
048addec 14635 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 14636
048addec 14637 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 14638
048addec
JD
14639 * indent.c (current_column_1, Fmove_to_column): Separate the code
14640 for display-table glyphs from the code for buffer text, to fix
14641 bugs in the former.
830047fd 14642
048addec 146432001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 14644
048addec
JD
14645 * buffer.c (Fbuffer_local_value): New function.
14646 (syms_of_buffer): Defsubr it.
2df5238c 14647
048addec
JD
14648 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
14649 value of `cursor-in-non-selected-windows'.
4e397688 14650
048addec
JD
14651 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
14652 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
14653 (syms_of_xdisp): Initialize it.
48b0f3ae 14654
048addec 146552001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 14656
048addec 14657 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 14658
048addec
JD
14659 * coding.c: Change doc-string comments to `new style' [w/`doc:'
14660 keyword].
3ecaf7e5 14661
048addec
JD
14662 * eval.c (top_level_value, top_level_set): Remove commented and
14663 #ifdef'd-out code.
14664 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 14665
048addec 146662001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 14667
048addec 14668 * xfns.c: Include unistd.h, if it exists.
8db2e33b 14669
048addec 14670 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 14671
048addec 14672 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 14673
048addec 146742001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 14675
048addec
JD
14676 * lisp.h (CHECK_STRING_CAR): New macro.
14677 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
14678 treating XCAR and XCDR as lvalues.
14679 (openp): Use CHECK_STRING_CAR.
14680 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 14681
048addec 146822001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 14683
048addec
JD
14684 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
14685 (SIGMASKTYPE): Define.
1b1acc13 14686
048addec 14687 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 14688
048addec 146892001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 14690
048addec
JD
14691 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14692 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14693 Fix typos in comments.
6cb16f95 14694
048addec
JD
14695 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14696 and #ifdef'd-out code.
14697 Fix and reindent comments.
6cb16f95 14698
048addec 14699 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 14700
048addec
JD
14701 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14702 argument `i' in macros.
6cb16f95 14703
048addec
JD
14704 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14705 `i' in macros.
7e9d3c2f 14706
048addec
JD
14707 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14708 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14709 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14710 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14711 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14712 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14713 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14714 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14715 in macros.
7e9d3c2f 14716
048addec
JD
14717 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14718 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14719 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14720 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
14721 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
14722 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
14723 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
14724 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
14725 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
14726 (remove unused second argument).
7e9d3c2f 14727
048addec 147282001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14729
048addec
JD
14730 * syntax.c (describe_syntax): New wrapper.
14731 (Finternal_describe_syntax_value): Rename from describe_syntax.
14732 Don't insert space at front and \n at the end.
14733 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 14734
048addec
JD
14735 * regex.c (re_wctype): Try to fix some warnings.
14736 (regcomp, regexec): Don't forget the __restrict.
9ba48103 14737
048addec 147382001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 14739
048addec 14740 * textprop.c (Fget_char_property): Doc fix.
9ba48103 14741
048addec 147422001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 14743
048addec 14744 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 14745
048addec 14746 * data.c (Fsetq_default): Ditto.
c22e59e1 14747
048addec 14748 * callint.c (Finteractive): Ditto.
9271ed2c 14749
048addec 147502001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14751
048addec
JD
14752 * macros.c: Don't include keymap.h any more.
14753
147542001-11-01 Richard M. Stallman <rms@gnu.org>
14755
14756 * data.c (Fmake_local_variable): Doc fix.
14757
14758 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
14759 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 14760
048addec 14761 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
14762 bindings along with or instead of the buffer local map.
14763 Make the overriding maps override what they should.
14764
f00691a3 147652001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
14766
14767 * window.c (grow_mini_window): Fix typo in comment.
14768
27188d11
GM
147692001-11-01 Gerd Moellmann <gerd@gnu.org>
14770
7b49b9d2
GM
14771 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
14772 (XTset_vertical_scroll_bar): Likewise.
14773
43f7c3ea
GM
14774 * xfns.c (x_build_heuristic_mask): Use four_corners_best
14775 instead of IMAGE_BACKGROUND.
c22e59e1 14776
b350c2e5
GM
14777 * xfns.c (four_corners_best): Reindent.
14778
c22e59e1 14779 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
14780 Handle :box so that it is possible to specify sexprs.
14781
bf00d461
EZ
147822001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
14783
14784 * s/hpux11.h: New file.
14785
f00691a3 147862001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 14787
2b209b97
PJ
14788 * emacs.c (USAGE1): Show command line option --no-window-system
14789 instead of --no-windows in usage.
14790 (standard_args): Rename --no-windows to --no-window-system.
14791 (bug_reporting_address): Follow Emacs coding conventions.
14792
9dbc9081
PJ
14793 * eval.c (Fcommandp): Doc fix.
14794 Change doc-string comments to `new style' [w/`doc:' keyword].
14795
4e10df59
PJ
14796 * frame.c (Fframe_live_p): Doc fix.
14797
14798 * buffer.c (selective-display-ellipses): Doc fix.
14799
dd387b25
GM
148002001-10-31 Gerd Moellmann <gerd@gnu.org>
14801
fe957e65
GM
14802 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
14803
dd387b25
GM
14804 * xfaces.c (realize_x_face): If C is not a single-byte character,
14805 set the face's colors_copied_bitwise_p instead of the defaulted_p
14806 members which have a different meaning.
14807 (free_face_colors): Do nothing for a face whose colors have been
14808 copied bitwise.
14809
c22e59e1 14810 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 14811
f00691a3 148122001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 14813
687784e8
PJ
14814 * marker.c, mocklisp.c: Change doc-string comments to `new style'
14815 [w/`doc:' keyword].
2e1280f8 14816
b9d9a9b9
GM
148172001-10-31 Gerd Moellmann <gerd@gnu.org>
14818
14819 * fns.c (require_unwind): Return Lisp_Object.
14820
f00691a3 148212001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 14822
fa1361cb
PJ
14823 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
14824 (last-input-char): Revert doc-string to be the same as the
14825 doc-string of `last-input-event'.
14826
6c465a15 14827 * xdisp.c: Fix typos in comments.
48400103 14828
eafa3196
GM
148292001-10-31 Gerd Moellmann <gerd@gnu.org>
14830
14831 * window.c (grow_mini_window): Handle case that the root
14832 window is already smaller than the nominal mininum height.
14833
747d3f2a
SM
148342001-10-30 Stefan Monnier <monnier@cs.yale.edu>
14835
bf9bb76f
SM
14836 * emacs.c (main): Don't call keys_of_macros any more.
14837
14838 * lisp.h (keys_of_macros): Remove.
14839
14840 * macros.c (keys_of_macros): Remove.
14841
747d3f2a
SM
14842 * xfaces.c (Fface_attribute_relative_p): Declare args.
14843
5e905a57
JR
148442001-10-30 Jason Rumney <jasonr@gnu.org>
14845
14846 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
14847 (enum_font_cb2): Ignore fonts with vertical orientation.
14848
3a426197
RS
148492001-10-30 Richard M. Stallman <rms@gnu.org>
14850
14851 * keyboard.c (Finput_pending_p): Doc fix.
14852
a742d646
GM
148532001-10-30 Gerd Moellmann <gerd@gnu.org>
14854
259cf6bc
GM
14855 * xterm.c (x_after_update_window_line): Don't run the code
14856 clearing in borders for rows whose visible height is 0.
14857
3f99f948
GM
14858 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
14859 resized_p flag is set. If not set, use the much less flickering
14860 method previously used.
14861
14862 * dispnew.c (change_frame_size_1): Set frame's resized_p.
14863
14864 * frame.h (struct frame) <resized_p>: New member.
14865
b4a3be43
GM
14866 * lread.c (to_multibyte): Ensure read_buffer is at least twice
14867 as large as the number of bytes to convert.
747d3f2a 14868
a742d646
GM
14869 * lread.c (to_multibyte): New function.
14870 (read1): Use it.
14871
cacbb9e9
EZ
148722001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
14873
14874 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
14875
99cb6b2f
GM
148762001-10-30 Gerd Moellmann <gerd@gnu.org>
14877
327f42ee 14878 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
14879 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
14880 if the row's fill_line_p is set and drawing the last glyph with
14881 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 14882
99cb6b2f
GM
14883 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
14884
8e8223e2
SM
148852001-10-29 Stefan Monnier <monnier@cs.yale.edu>
14886
14887 * xmenu.c: Include coding.h and charset.h.
14888 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
14889 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
14890 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
14891 Explicitly set wv->help. Use `TRUE' rather than `True'.
14892 (menu_help_callback): Use empty_string.
14893
14894 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
14895 (Fx_popup_dialog): Explicitly init f.
14896 (w32_menu_display_help): Use empty_string.
14897
4d083a8f
RS
148982001-10-29 Richard M. Stallman <rms@gnu.org>
14899
b2304472
RS
14900 * fns.c (Frequire): Detect recursive try to require the same
14901 feature 3 or more levels deep, and get error.
14902 (require_unwind): New subroutine.
14903 (require_nesting_list): New variable.
14904 (syms_of_fns): Init and staticpro it.
14905
4d083a8f
RS
14906 * print.c (print_object): Clarify indication of insertion type.
14907
2fe41216
EZ
149082001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
14909
90480000
EZ
14910 * coding.c (syms_of_coding): Document that locale-coding-system is
14911 used for decoding input on X.
14912
2fe41216
EZ
14913 * window.c (Fscroll_left, Fscroll_right): Doc fix.
14914
f00691a3 149152001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
14916
14917 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
14918 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
14919
60ebcfe8
GM
149202001-10-29 Gerd Moellmann <gerd@gnu.org>
14921
9a7bdceb
GM
14922 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
14923 use NO_CURSOR if cursor_in_non_selected_windows is false.
14924
3f08fcd2
GM
14925 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
14926 the slant attribute if FRAME is t.
14927
0ccfdad2
GM
14928 * xfns.c (x_set_internal_border_width): Set frame garbaged
14929 when X window doesn't exist yet.
14930
ef253080
GM
14931 * xterm.c (x_after_update_window_line): Clear internal border
14932 in different circumstances.
b116830b 14933
60ebcfe8
GM
14934 * xterm.c (XTread_socket) <KeyPress>: Don't use
14935 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
14936 <handa@etl.go.jp>.
14937
73d25f9c
EZ
149382001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
14939
14940 * m/ibms390.h: New file. From Adam Thornton
14941 <athornton@sinenomine.net>.
14942
cac1daf0
GM
149432001-10-28 Gerd Moellmann <gerd@gnu.org>
14944
053b3256 14945 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 14946
cac1daf0
GM
14947 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
14948 a loop counter.
14949
f00691a3 149502001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 14951
f9711de4 14952 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 14953
4707d2d0
PJ
14954 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
14955 keyword].
14956 Fix typos in comments.
b116830b 14957
d883731c
PJ
14958 * emacs.c (bug_reporting_address): New function.
14959 Use it when displaying usage message.
14960
04012254
PJ
14961 * minibuf.c (read_minibuf): Remove unused external declaration of
14962 variable `Qread_only'.
14963
13b1a09c
PJ
14964 * keymap.c (access_keymap): Remove unused variable `charset'.
14965
5bbf4378
MB
149662001-10-28 Miles Bader <miles@gnu.org>
14967
14968 * xfaces.c (merge_face_heights): Handle TO being relative as well.
14969 Remove #ifdef'd-out code.
14970 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
14971 (syms_of_xfaces): Initialize them.
14972
1ce1e4ee
JR
149732001-10-27 Jason Rumney <jasonr@gnu.org>
14974
14975 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
14976 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
14977 position using the system caret.
14978
14979 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
14980 (w32_system_caret_height, w32_system_caret_x)
14981 (w32_system_caret_y): New variables for tracking system caret.
14982 (w32_initialize): Initialize them.
c2d53558 14983 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 14984
c2d53558
SM
14985 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
14986 New messages types.
1ce1e4ee
JR
14987
14988 * w32term.c (note_mouse_highlight): Clear old help_echo.
14989
f00691a3 149902001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 14991
bb4600a4
PJ
14992 * xterm.c: Fix typo in a comment.
14993
7db35a48
PJ
14994 * emacs.c: Fix typos in comments.
14995 Remove unnecessary spaces.
14996 Change doc-string comments to `new style' [w/`doc:' keyword].
14997 (USAGE2): Fix typos in usage string.
14998
a7248e4f
PJ
14999 * xterm.c: Fix typo in a comment.
15000
4e30ce42
PJ
15001 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
15002 emacs.c.
15003
62725a92
GM
150042001-10-27 Gerd Moellmann <gerd@gnu.org>
15005
798dbe1f 15006 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 15007 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
15008 farther backward when target_y was not reached.
15009
62725a92
GM
15010 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
15011 Display errno only if non-zero.
15012 (sound_warning): New function.
15013 (vox_configure): Don't treat failing to set sample rate as error.
15014 (various places): Improve error messages.
15015
d4e34d24
EZ
150162001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
15017
944e6f60
EZ
15018 * fileio.c (Faccess_file): Run the argument filename through
15019 Fexpand_file_name, before using it.
15020
d4e34d24
EZ
15021 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
15022 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
15023
38d2af0c
GM
150242001-10-26 Gerd Moellmann <gerd@gnu.org>
15025
da80a8d5
GM
15026 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
15027
38d2af0c
GM
15028 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15029 Fix clearing in the case of scroll bars on the right.
c2d53558 15030
45de4a6f 150312001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
15032
15033 * w32gui.h (XImage): Add a dummy typedef.
15034
fbd5ceb2
GM
150352001-10-26 Gerd Moellmann <gerd@gnu.org>
15036
c2d53558 15037 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 15038
b23236fb
EZ
150392001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
15040
15041 * frame.c (Fframe_parameter): Fix last change.
15042
5d991fc4
EZ
15043 * fileio.c: Revert last change (which removed old commented-out
15044 version of expand-file-name). Add a comment that explains why
15045 this old version should not be removed.
15046
879eadc3
GM
150472001-10-25 Gerd Moellmann <gerd@gnu.org>
15048
75700ff2
GM
15049 * frame.c (Fframe_parameter): Fix a bug whereby some
15050 ``artificial'' frame parameters, like `minibuffer' were not
15051 obtained by calling Fframe_parameters.
15052
dfe92a6a
GM
15053 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
15054 cursor differently.
15055
879eadc3
GM
15056 * xdisp.c (move_it_vertically_backward): Compute line height
15057 differently. Add heuristic to try to be more compatible to 20.x.
15058
e1010ebe
SM
150592001-10-25 Stefan Monnier <monnier@cs.yale.edu>
15060
d73a471b
SM
15061 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
15062
d6da5a06
GM
15063 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
15064 boolean.
e1010ebe 15065
f66bd220
MB
150662001-10-25 Miles Bader <miles@gnu.org>
15067
15068 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
15069 BG is a pointer to a structure, not a structure.
15070 (gif_format, png_format): Add missing commas.
15071
d436d538
RS
150722001-10-24 Richard M. Stallman <rms@gnu.org>
15073
15074 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 15075 (syms_of_xfaces): Defsubr it.
d436d538 15076
f00691a3 150772001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
15078
15079 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
15080 variable `area'.
15081
f00691a3 150822001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 15083
c2d53558 15084 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 15085
e2a57b34
MB
150862001-10-25 Miles Bader <miles@gnu.org>
15087
15088 * dispextern.h (struct image): Add `background',
15089 `background_valid', and `background_transparent' fields.
15090 (image_background, image_background_transparent): New declarations.
15091 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
15092 * xfns.c (image_background, image_background_transparent)
15093 (four_corners_best): New functions.
c2d53558 15094 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
15095 (gs_format): Add `:background' entry.
15096 (lookup_image): Set IMG's background color if specified.
15097 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15098 when appropriate.
15099 (x_clear_image_1): Reset `background_valid' and
15100 `background_transparent_valid' fields.
15101 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15102 calculating it here. Set IMG's background_transparent field.
15103 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15104 (enum png_keyword_index): Add PNG_BACKGROUND.
15105 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15106 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15107 (enum gif_keyword_index): Add GIF_BACKGROUND.
15108 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 15109 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
15110 Pre-calculate image background color where necessary.
15111 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15112 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15113 color to use for image glyph reliefs.
15114
b547b6e8
GM
151152001-10-24 Gerd Moellmann <gerd@gnu.org>
15116
d9e3b8c6
GM
15117 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
15118 in full-width rows.
c2d53558 15119
b547b6e8
GM
15120 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15121 Fix clearing of area not covered by scroll bar.
15122
f00691a3 151232001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
15124
15125 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
15126 and `real_start'.
c2d53558 15127 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
15128 (glyph_rect): Remove unused variable `area'.
15129
76cb5e06
GM
151302001-10-24 Gerd Moellmann <gerd@gnu.org>
15131
bdbdebff 15132 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
15133
15134 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
15135 (row_containing_pos): Take additional argument DY.
15136 Treat rows ending in middle of char differently.
62e33982
GM
15137 (display_line): Handle tabs on window systems differently.
15138
15139 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
15140 with additional argument.
15141
15142 * dispextern.h (row_containing_pos): Adjust prototype.
15143
76cb5e06
GM
15144 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
15145 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
15146 (try_window_id, try_window_reusing_current_matrix)
15147 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 15148 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 15149
f00691a3 151502001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 15151
c9e60620
PJ
15152 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
15153 gnuemacs).
15154 (HAVE_BOXES): Fix typo in comment.
15155 (push_menu_pane): Fix typo in comment.
15156
3b552d56
PJ
15157 * xdisp.c: (display_prop_string_p): Remove unused local declaration
15158 of `Qwhen'.
15159 (single_display_prop_string_p): Remove unused local declarations
15160 of `Qwhen' and `Qmargin'.
15161 (string_buffer_position): Remove unused variable `around'.
15162 (store_frame_title): Remove unused variable `width'.
15163
15c565ac
PJ
15164 * window.c: Don't define max.
15165 (coordinates_in_window): Remove unused variable `uy'.
15166
a8818eb9
PJ
15167 * widget.c: Don't define max.
15168
996fee11
PJ
15169 * process.c: Don't define max.
15170 (create_process): Remove unused variable `buffer'.
15171
496e1a5b
GM
151722001-10-23 Gerd Moellmann <gerd@gnu.org>
15173
c2d53558 15174 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 15175
5905ae8b
EZ
151762001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
15177
15178 * xfaces.c (Finternal_set_lisp_face_attribute)
15179 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
15180 frame is on a windowed display.
15181
24db49fb
GM
151822001-10-23 Gerd Moellmann <gerd@gnu.org>
15183
c2d53558
SM
15184 * dispnew.c (sync_window_with_frame_matrix_rows):
15185 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
15186 of marginal areas.
15187
c2d53558 15188 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 15189
f0487f05
EZ
151902001-10-23 Andreas Schwab <schwab@suse.de>
15191
15192 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
15193 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
15194
f0a48a01
GM
151952001-10-23 Gerd Moellmann <gerd@gnu.org>
15196
c2d53558 15197 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
15198 REAL_END. Notice if cursor gets overwritten.
15199 (notice_overwritten_cursor): Take X positions as parameters.
15200 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15201 around call to x_draw_glyphs.
15202
f00691a3 152032001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 15204
fc11dff0
PJ
15205 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
15206 instead of C) and usage.
a50a10a0 15207
fc11dff0
PJ
15208 * editfns.c (char-to-string): Fix argument names (use CHAR instead
15209 of C) and usage.
a50a10a0
PJ
15210
15211 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
15212 `left', `max_width' and `max_height'.
15213
8738febd
GM
152142001-10-23 Gerd Moellmann <gerd@gnu.org>
15215
15216 * xdisp.c (display_line): For a tab continued to the next line,
15217 set row's ends_in_middle_of_char_p.
15218
653c329b
GM
152192001-10-22 Gerd Moellmann <gerd@gnu.org>
15220
15221 * xdisp.c (display_line): Fix computation of continuation lines
15222 width for TABs.
15223
f00691a3 152242001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 15225
7ba51063
PJ
15226 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
15227 `Qlaplace'.
15228
f958c5ac
PJ
15229 * fileio.c: Remove unused code.
15230
eb360291
MB
152312001-10-22 Miles Bader <miles@gnu.org>
15232
15233 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
15234 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
15235 Remove `DOC_STRINGS_IN_COMMENTS' cases.
15236
98515cf0
JR
152372001-10-21 Jason Rumney <jasonr@gnu.org>
15238
15239 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
15240
93026d88
EZ
152412001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
15242
15243 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
15244 (Finsert_string): Avoid the multi-line string literals warning.
15245
c9a95b79
MB
152462001-10-22 Miles Bader <miles@gnu.org>
15247
15248 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
15249 (Fdocumentation): Don't use it.
15250 (syms_of_doc): Don't initialize it.
15251
15252 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
15253 * print.c (Fwith_output_to_temp_buffer): Likewise.
15254 * window.c (Fsave_window_excursion): Likewise.
c2d53558 15255 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 15256 (Fsave_restriction): Likewise.
c2d53558
SM
15257 * eval.c (Frun_hooks, Frun_hook_with_args)
15258 (Frun_hook_with_args_until_failure)
15259 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
15260 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
15261 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
15262 (Funwind_protect, Fcondition_case): Likewise.
15263 * coding.c (Ffind_operation_coding_system): Likewise.
15264 * keyboard.c (Ftrack_mouse): Likewise.
15265
a3b10252
MB
152662001-10-21 Miles Bader <miles@gnu.org>
15267
c2d53558 15268 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
15269 (Fmake_hash_table): Add usage: string to doc string.
15270 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 15271 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
15272 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
15273 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
15274 (Fml_prefix_argument_loop): Likewise.
15275
f00691a3 152762001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 15277
c2d53558 15278 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 15279
c6f73eec
PJ
15280 * sysdep.c (init_sys_modes): Change doc-string comments to `new
15281 style' [w/`doc:' keyword].
15282
15283 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
15284 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
15285 comments to `new style' [w/`doc:' keyword].
15286
3cf3436e
JR
152872001-10-21 Jason Rumney <jasonr@gnu.org>
15288
15289 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
15290
c169b8f1
JR
15291 * w32term.c (remember_mouse_glyph): New function.
15292 (w32_mouse_position): Use it.
15293 (note_mouse_movement): If the mouse moved off the glyph, remember
15294 its new position.
c2d53558 15295
4fdd691b
JR
15296 * w32term.h (struct w32_output): Correct spelling of x_compatible.
15297 (w32_display_info): Add mouse_face_overlay.
15298
c169b8f1
JR
15299 * w32term.c (notice_overwritten_cursor): Renamed from
15300 note_overwritten_text_cursor. Rewritten to take glyph widths into
15301 account.
15302 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
15303 (fast_find_string_pos): New function.
15304 (fast_find_position): Return the correct vpos. Add parameter
15305 STOP. In the final row, stop before glyphs having STOP as object.
15306 Don't consider glyphs that are not from a buffer.
15307 (fast_find_position) [0]: Add a presumably more correct version
15308 for after 21.1.
15309 (expose_window_tree, expose_frame): Don't compute intersections here.
15310 (expose_window): Do it here instead.
15311 (expose_window_tree, expose_window, expose_line): Return 1 when
15312 overwriting mouse-face.
15313 (expose_window): If W is the window currently being updated, mark
15314 the frame garbaged.
15315 (expose_frame): If mouse-face was overwritten, redo it.
15316 (x_use_underline_position_properties): New variable.
15317 (syms_of_xterm): DEFVAR_BOOL it.
15318 (x_draw_glyph_string): Add comment to use it in future.
15319 (x_draw_glyph_string): Restore clipping after drawing box.
15320 Fix a computation of the underline position.
15321 (w32_get_glyph_string_clip_rect): Minor cleanup.
15322 (x_fill_stretch_glyph_string): Remove an assertion.
15323 (x_produce_glyphs): Don't convert multibyte characters
15324 to unibyte characters in unibyte buffers.
15325 (cursor_in_mouse_face_p): New function.
15326 (x_draw_stretch_glyph_string): Use it to choose a different GC
15327 when drawing a cursor within highlighted text. Don't draw
15328 background again if it has already been drawn.
15329 (x_draw_glyph_string_box): Don't draw a full-width
15330 box just because the glyph row's full_width_p flag is set.
15331 (x_draw_glyphs): Fix computation of rightmost x for
15332 full-width rows.
15333 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
15334 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 15335 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
15336 (x_update_window_end): Handle overwritten mouse face
15337 also for tool bar windows.
15338 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
15339 DRAW is DRAW_IMAGE_RAISED.
15340 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
15341 actually redrawn. Make the function static.
15342 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
15343 optimize away highlighting if we pass over that same overlay again.
15344 (note_mouse_highlight): Call mouse_face_overlay_overlaps
15345 to detect a case where we have to highlight a different region
15346 despite not having left the currently highlighted region.
15347 Set mouse_face_overlay in the x_display_info. Avoid changing the
15348 mouse pointer shape when show_mouse_face has already done it, or
15349 there is no need. Handle mouse-face and help-echo in strings.
15350 (glyph_rect): New function.
15351 (w32_mouse_position): Use it to raise the threshold for mouse
15352 movement event generation.
15353 (w32_initialize_display_info): Initialize the x_display_info's
15354 mouse_face_overlay.
15355 (w32_set_vertical_scroll_bar): Don't clear a zero height
15356 or width area.
15357 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
15358 a widget to zero height.
15359
3cf3436e 15360 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 15361 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
15362 equivalents in menu_items.
15363 (w32_menu_show): Don't overwrite an item's name with its key
15364 description in case the description is a multibyte string.
15365 (single_submenu): Some cleanup.
15366
15367 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
15368 (postprocess_image): New function.
15369 (lookup_image): Call it for all image types except PostScript.
15370 (x_kill_gs_process): Call postprocess_image.
15371 (tiff_error_handler, tiff_warning_handler): New functions.
15372 (tiff_load): Install them as handlers.
15373 (x_kill_gs_process): Recognize if someone has cleared the image
15374 cache under us.
15375 (valid_image_p): Protect better against invalid image
15376 specifications. Previous code could signal an error.
15377 (Fx_hide_tip, Fshow_tip): Doc fix.
15378 (Fv_max_tooltip_size): New variable.
15379 (syns_of_xfns): DEFVAR_LISP it.
15380 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 15381 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
15382 window_width. Use a maximum tooltip size specified by
15383 Vx_max_tooltip_size, if that has valid contents.
15384 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
15385 Make sure the tooltip is completely visible.
15386 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
15387 (Fx_create_frame): Adjust the frame's height for presence
15388 of the tool bar before calling x_figure_window_size.
15389 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
15390 when the window gets smaller.
15391 (x_set_foreground_color): Set frame's cursor_pixel.
15392 (x_set_foreground_color, x_set_background_color): Cleaned up.
15393 (x_set_font): Handle case of x_new_fontset returning the same name
15394 as before, although there was a change in fontsets.
15395
386ca361
MB
153962001-10-21 Miles Bader <miles@gnu.org>
15397
c2d53558 15398 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
15399 (Flogxor): Add usage: string to doc string.
15400 * charset.c (Fstring): Likewise.
15401 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
15402 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
15403
f00691a3 154042001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 15405
03be2694
PJ
15406 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
15407
15408 * alloc.c: Reindent DEFUNs with doc: keywords.
15409
15410 * abbrev.c (Finsert_abbrev_table_description): Reindent.
15411
14ff1ee0
PJ
15412 * frame.c: Change doc-string comments to `new style' [w/`doc:'
15413 keyword].
15414
2f147815 15415See ChangeLog.9 for earlier changes.
6922b018
KH
15416
15417;; Local Variables:
49b3bd82 15418;; coding: iso-2022-7bit
6922b018 15419;; End:
2a34a036 15420
2f147815 15421 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
15422 Copying and distribution of this file, with or without modification,
15423 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
15424
15425;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4