2005-09-10 Chong Yidong <cyd@stupidchicken.com>
[bpt/emacs.git] / src / ChangeLog
CommitLineData
67b8391b
EZ
12005-09-10 Eli Zaretskii <eliz@gnu.org>
2
a17b5ed1
EZ
3 * buffer.c (init_buffer): Fix error message for failed call to
4 get_current_dir_name.
5 (get_current_dir_name): Remove prototype.
6
7 * xsmfns.c: (get_current_dir_name): Remove prototype.
8
9 * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]: Add
10 prototype.
11
ed326e35 12 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 13 Don't #undef NULL after including blockinput.h.
ed326e35 14
67b8391b
EZ
15 * config.in: Regenerated.
16
c187839d
EZ
172005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
18
19 Remove the MAXPATHLEN limitations:
20
1486d036
EZ
21 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
22 New function.
c187839d
EZ
23
24 * buffer.c (init_buffer): Use it.
25
26 * xsmfns.c (smc_save_yourself_CB): Ditto.
27
ae8a5689
KS
282005-09-09 Kim F. Storm <storm@cua.dk>
29
39cac6b3
KS
30 * doc.c (Fsubstitute_command_keys): Lookup key binding for
31 commands that are remapped from some other command.
32
aeb55c44
KS
33 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
34 flag in disabled rows below the window.
35
ae8a5689
KS
36 * frame.h (struct frame): New member updated_p.
37
38 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
39 member. Remove local `updated' array and associated variables.
40
821f6dae
KS
412005-09-07 Kim F. Storm <storm@cua.dk>
42
6e5395f2
KS
43 * xdisp.c (handle_display_prop): Respect overlay window property.
44
821f6dae
KS
45 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
46 Fixes crash reported by YAMAMOTO Mitsuharu.
47
9655b404
YM
482005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
49
50 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
51 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
52 (xlfdpat_block_match_1, xlfdpat_match): New functions.
53 (xlfdpat_block_match): New macro.
54 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
55 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
56 (add_font_name_table_entry): Increase font_name_table_size more
57 rapidly.
58 (mac_c_string_match): Remove function.
59 (mac_do_list_fonts): Use XLFD pattern match instead of regular
60 expression match.
61
62 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
63
d7ea8b71
RS
642005-09-03 Richard M. Stallman <rms@gnu.org>
65
66 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
67 (move_it_in_display_line_to): Stop after last char on line even
68 on a windowing terminal, if that's the specified stop position.
69
70 * fns.c (Fsort): Doc fix.
71
72 * editfns.c (Fpropertize): Don't insist that properties be symbols.
73
1550ae60
SM
742005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
75
76 * dired.c (directory_files_internal_unwind, directory_files_internal)
77 (file_name_completion): Use a Save_Value object rather than a cons of
78 two 16bit ints to store the DIR*.
79 (directory_files_internal, file_name_completion): Handle both EINTR and
80 EAGAIN consistently after `readdir'.
81
bdb4d6d8
SM
822005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
83
1550ae60
SM
84 * intervals.c (update_interval): Add position info in error.
85
bdb4d6d8
SM
86 * dispnew.c (window_to_frame_hpos, update_window):
87 Avoid gcc warning about unused variable `f'.
88
6bcc3ca4
JR
892005-08-31 Jason Rumney <jasonr@gnu.org>
90
91 * w32menu.c (add_menu_item): If unicode_append_menu returns an
92 error, revert to using AppendMenu.
93
07c5948c
YM
942005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
95
bdb4d6d8
SM
96 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
97 All uses changed.
07c5948c
YM
98 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
99 cases.
100 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
101 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
102 Use posix_pathname_to_fsspec.
07c5948c
YM
103 [MAC_OS] (xpm_load_image): Fill in background_transparent field
104 while we have mask.
105
106 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
107
108 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
109
5a774522
SM
1102005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
111
112 * syntax.c (update_syntax_table): Properly reproduce the special +1
113 setting of e_property at the end of the buffer when bumping into the
114 INTERVALS_AT_ONCE limit.
115
0fb57cc0
EZ
1162005-08-27 Eli Zaretskii <eliz@gnu.org>
117
118 * emacs.c (USAGE1): Fix the description of the -Q option.
119
5a774522
SM
1202005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
121
122 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
123
4e6b8c5a
KS
1242005-08-26 Kim F. Storm <storm@cua.dk>
125
126 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
127 Don't move PT to new window start.
128
1f98fbb4
YM
1292005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
130
131 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
132 ICONIFY/DEICONIFY_EVENT.
133
5a774522
SM
134 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
135 Restore background color.
1f98fbb4
YM
136 (mac_handle_visibility_change): New function.
137 (x_make_frame_invisible, x_iconify_frame)
138 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
139 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 140 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
141 (x_make_frame_visible): Don't reposition window if it is iconified
142 or asked for visible before. Select and uncollapse window when it
143 is made visible.
144 (x_make_frame_invisible): Don't reset x_highlight_frame.
145 (x_iconify_frame): Likewise. Make invisible frame visible before
146 it is iconified.
147 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
148 (do_window_update): Don't change visibility of invisible frame.
149
16691d29
JL
1502005-08-22 Juri Linkov <juri@jurta.org>
151
152 * term.c (turn_on_face): Check for TS_set_foreground and
153 TS_set_background depending on standout_mode. Simplify.
154
7c3f805b
KS
1552005-08-21 Kim F. Storm <storm@cua.dk>
156
0f467468
KS
157 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
158 bitmaps on fully visible rows.
159
7c3f805b
KS
160 * fringe.c (update_window_fringes): Replace FORCE_P arg with
161 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
162 and return 0.
163
164 * xdisp.c (redisplay_window): Call update_window_fringes with
165 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
166
40b388f9
RS
1672005-08-20 Richard M. Stallman <rms@gnu.org>
168
169 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
170 (resize_mini_window): Set w->start, and PT, so as to display the tail
171 end of the buffer, if it doesn't all fit.
172
581360f0
KS
1732005-08-18 Kim F. Storm <storm@cua.dk>
174
175 * xdisp.c (calc_pixel_width_or_height): Use actual display
176 resolution when available instead of Vdisplay_pixels_per_inch.
177
0eefa6fb
KS
1782005-08-17 Kim F. Storm <storm@cua.dk>
179
180 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
181
182 * dispnew.c (buffer_posn_from_coords): Check that target row is
183 within matrix.
184
ada192ba
JD
1852005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
186
187 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
188 xg_set_frame_icon and call it.
189
190 * gtkutil.c (xg_set_frame_icon): New function.
191
0eefa6fb 192 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 193
ab89a403
KS
1942005-08-16 Kim F. Storm <storm@cua.dk>
195
196 * dispnew.c (increment_row_positions): Skip non-enabled rows.
197
198 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
199 (Fcurrent_window_configuration): Use VECSIZE macro instead.
200
8d34b5e1
RS
2012005-08-15 Richard M. Stallman <rms@gnu.org>
202
203 * xdisp.c (message3_nolog): Clear echo_message_buffer.
204
71e37f3c
KS
2052005-08-15 Kim F. Storm <storm@cua.dk>
206
0781c303
KS
207 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
208
71e37f3c
KS
209 * process.c (deactivate_process, status_notify, read_process_output)
210 (update_status, status_convert, decode_status, allocate_pty)
211 (make_process, remove_process, list_processes_1)
212 (create_process_1, unwind_request_sigio, read_process_output)
213 (send_process, keyboard_bit_set): Declare static.
214 (Fdelete_process): Simplify. Pass process to status_notify, so we
215 don't try to read output from it.
216 (status_notify): New arg deleting_process--don't try to read
217 output from that process.
218
219 * lisp.h (deactivate_process, status_notify, read_process_output):
220 Remove prototypes.
221
0bf14bfd
RS
2222005-08-14 Richard M. Stallman <rms@gnu.org>
223
bdb4d6d8
SM
224 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
225 define_image_type.
0bf14bfd 226
6c7eb721
JD
2272005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
228
229 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
230 (xg_get_image_for_pixmap): Move some code to
231 xg_get_pixbuf_from_pix_and_mask, and call it.
232
233 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
234
235 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
236 to get an GTK icon and set it with GTK functions to avoid having GTK
237 override an icon set with just X functions.
238
6e2d14c8
RS
2392005-08-11 Richard M. Stallman <rms@gnu.org>
240
bdb4d6d8
SM
241 * image.c (syms_of_image): Init image_types here, and call
242 define_image_type.
6e2d14c8
RS
243 (init_image): Not here.
244
61298e17
RS
2452005-08-09 Richard M. Stallman <rms@gnu.org>
246
247 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
248
249 * lisp.h (QUIT): Throw t to Vthrow_on_input.
250
5a9807a8
TTN
2512005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
252
253 * floatfns.c (Fexpt): Use floats for negative exponent.
254
93469010
JD
2552005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
256
257 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
258 should not be there, causing menu display errors with GTK 2.6.9.
259
44edd521
RS
2602005-08-07 Richard M. Stallman <rms@gnu.org>
261
8b6a9551
RS
262 * floatfns.c (Fexpt): Undo previous change.
263
44edd521
RS
264 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
265 so it can be used with various state vectors.
266
267 * emacs.c (endif): Convert -script into -scriptload.
268 (standard_args): Add -scriptload. Allow -basic-display with one dash.
269
270 * fns.c (syms_of_fns): Add `emacs' to features.
271
272 * term.c (set_terminal_modes): If no TS_termcap_modes string,
273 output newlines to scroll the old screen contents off the screen.
274
cac87e30
TTN
2752005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
276
2a205424
TTN
277 * floatfns.c (Fexpt): Use floats for negative exponent.
278 Reported by D Goel.
cac87e30 279
31b7cc74
JB
2802005-08-02 Richard M. Stallman <rms@gnu.org>
281
282 * frame.c (Fframe_char_width): Doc fix.
283
e2b64074
JB
2842005-07-30 Juanma Barranquero <lekktu@gmail.com>
285
286 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
287 Defvar it.
288
0962822d
JB
2892005-07-28 Juanma Barranquero <lekktu@gmail.com>
290
291 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
292 (my_create_window, my_create_tip_window): Make static.
293
294 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
295 (my_set_foreground_window, my_destroy_window): Make static.
296
9eff9fe3
PE
2972005-07-26 Paul Eggert <eggert@cs.ucla.edu>
298
299 Merge gnulib getopt implementation into Emacs.
300
301 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
302 now part of lib-src.
303
1c9916a1
SM
3042005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
305
306 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
307
94c7f257
JR
3082005-07-25 Jason Rumney <jasonr@gnu.org>
309
310 * w32menu.c (w32_menu_display_help): Suppress tooltip when
311 navigating menus with the keyboard.
312
bf0bf758
RS
3132005-07-23 Richard M. Stallman <rms@gnu.org>
314
315 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
316
317 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
318 gc_relative_threshold, one by one.
319
320 * keyboard.c (read_char): Test gc_cons_threshold.
321 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
322
323 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
324 gc_relative_threshold, one by one.
325
326 * alloc.c (gc_cons_threshold): Not static.
327 (gc_cons_combined_threshold): Var deleted.
328 (gc_relative_threshold): New variable.
329 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
330 instead of gc_cons_combined_threshold.
331
1c9916a1 332 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
333 (gc_cons_combined_threshold): Declaration deleted.
334
99f963e4
YM
3352005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
336
337 * mac.c: Don't include stdlib.h or string.h.
338 (Fdo_applescript, Fmac_file_name_to_posix)
339 (Fmac_file_name_to_posix): Doc fixes.
340 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
341 (Fmac_code_convert_string): Likewise.
342 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
343 if the executable is not contained in a bundle.
344
345 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
346 (gray_width, gray_height): Remove defines.
347 (gray_bits, gray_bitmap_width, gray_bitmap_height)
348 (gray_bitmap_bits): Remove variables.
349 (lispy_function_keys): Remove extern.
350 (free_frame_menubar): Add extern.
351 (x_window_to_frame): Remove function.
352 (unwind_create_tip_frame): Add declaration.
353 (x_set_name_internal): New function.
354 (x_set_name, x_set_title): Use it.
355 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
356 (Fx_display_pixel_height, Fx_display_planes)
357 (Fx_display_color_cells, Fx_server_max_request_size)
358 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
359 (Fx_display_mm_height, Fx_display_mm_width)
360 (Fx_display_backing_store, Fx_display_visual_class)
361 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
362
363 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
364
bdb4d6d8 365 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
366 (Fx_get_selection_internal, Fx_selection_owner_p)
367 (Fx_selection_exists_p): Doc fixes.
368 (syms_of_macselect) <selection-converter-alist>: Likewise.
369
1d256714
JB
3702005-07-21 Juanma Barranquero <lekktu@gmail.com>
371
372 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
373
374 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
375 (Fccl_execute_on_string): Likewise; add usage info.
376
377 * composite.c (Fcompose_region_internal)
378 (Fcompose_string_internal):
379 Improve argument/docstring consistency.
380
381 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
382 Fix typos in docstrings.
383
384 * textprop.c (Fnext_char_property_change)
385 (Fprevious_char_property_change): Doc fixes.
386
387 * window.c (Fset_window_margins, Fset_window_fringes):
388 Improve argument/docstring consistency.
389
390 * xfaces.c (Finternal_lisp_face_p): Doc fix.
391
538f78c3
AS
3922005-07-21 Andreas Schwab <schwab@suse.de>
393
394 * eval.c (restore_stack_limits): Return a value.
395
a5b5bf44
JB
3962005-07-20 Juanma Barranquero <lekktu@gmail.com>
397
398 * eval.c (Fdefvar): Doc fix.
399
ae643123
KS
4002005-07-20 Kim F. Storm <storm@cua.dk>
401
0ed4bf15
KS
402 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
403 Use make_save_value to unwind protect stream.
404
405 * lread.c (Fload, load_unwind):
406 Use make_save_value to unwind protect stream.
ae643123 407
82fc29a1
JB
4082005-07-19 Juanma Barranquero <lekktu@gmail.com>
409
410 * eval.c (Fprog2, Fcalled_interactively_p),
411 (syms_of_eval) <debug-on-quit>: Doc fixes.
412 (syms_of_eval) <max-specpdl-size>:
413 (Finteractive_p): Fix typos in docstrings.
414
73b90087
KS
4152005-07-19 Kim F. Storm <storm@cua.dk>
416
417 * w32fns.c (Vx_hand_shape): Variable removed.
418 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
419
dfc434d0
KH
4202005-07-19 Kenichi Handa <handa@m17n.org>
421
bdb4d6d8 422 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 423
bcd98331
SM
4242005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
427
2a85a754
KS
4282005-07-18 Kim F. Storm <storm@cua.dk>
429
430 * frame.h (struct frame): New member already_hscrolled_p.
431
432 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
433 to avoid redisplay looping hscrolling back and forth ad infinitum.
434
426179e1
JL
4352005-07-18 Juri Linkov <juri@jurta.org>
436
437 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
438 * keymap.c (Fminor_mode_key_binding):
439 * macterm.c (mac-emulate-three-button-mouse):
440 Delete duplicate duplicate words.
441
9f4a578d
KR
4422005-07-18 Ken Raeburn <raeburn@gnu.org>
443
444 * minibuf.c (Ftest_completion): Fix odd syntax in test.
445
d005338b
YM
4462005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
447
bcd98331 448 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
449
450 * macgui.h (struct _XGC): New struct.
451 (GC): Use it.
452 (GCForeground, GCBackground, GCFont): Use X11 mask values.
453 (XCreateGC, XParseGeometry): Move externs to macterm.h.
454
bcd98331 455 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 456 (XSetFont): Add declaration.
bcd98331
SM
457 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
458 Remove functions.
459 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
460 New defines.
d005338b
YM
461 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
462 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
463 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
464 Use them.
d005338b
YM
465 (mac_erase_rectangle): New function.
466 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
467 (x_draw_stretch_glyph_string): Use it.
468 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
469 (XSetBackground, XSetFont): Adjust for new GC implementation.
470 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
471 (XTset_vertical_scroll_bar): Clear area under scroll bar.
472
473 * macterm.h (struct mac_display_info): Change types of
474 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
475 (XCreateGC, XParseGeometry): Move externs from macgui.h.
476
477 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
478
9b0c2c56
RS
4792005-07-16 Richard M. Stallman <rms@gnu.org>
480
481 * buffer.c (Fmake_overlay): Doc fix.
482
2e9c1c6d
EZ
4832005-07-16 Eli Zaretskii <eliz@gnu.org>
484
485 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
486 Vw32_valid_locale_ids, and Vw32_valid_codepages.
487
407289a4
YM
4882005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
489
bcd98331
SM
490 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
491 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 492
e4b477a1
RS
4932005-07-15 Richard M. Stallman <rms@gnu.org>
494
495 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
496
a8613adf
KS
4972005-07-15 Kim F. Storm <storm@cua.dk>
498
499 * xdisp.c: Fix redisplay loop in last change.
500 (IT_POS_VALID_AFTER_MOVE_P): New macro.
501 (move_it_vertically_backward, move_it_by_lines): Use it.
502
2d5324c5
JR
5032005-07-14 Jason Rumney <jasonr@gnu.org>
504
505 * w32.c (init_environment): Default HOME directory to user's
506 appdata directory if possible.
507
3ed70dc4
KS
5082005-07-14 Kim F. Storm <storm@cua.dk>
509
7b9389b0
KS
510 * .gdbinit (pitx): Fix output format. Print string charpos.
511
3ed70dc4
KS
512 * lread.c (syms_of_lread): Initialize seen_list.
513
514 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
515
516 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
517 Staticpro re_match_object.
518
ef029e5a
YM
5192005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
520
521 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
522 dereference.
523
524 * macterm.c (mac_window_to_frame): Remove duplicate define.
525
16ef9c56
KH
5262005-07-14 Kenichi Handa <handa@m17n.org>
527
528 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 529 (code_convert_region): Adjust for the above change.
16ef9c56
KH
530 (set_conversion_work_buffer): If the work buffer is already in
531 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 532 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
533 (run_pre_write_conversin_on_c_str): Likewise.
534
098e1273
KS
5352005-07-13 Kim F. Storm <storm@cua.dk>
536
010b9a45
KS
537 * xdisp.c (start_display): Don't reseat to next visible line start
538 if current start position is in a string or image.
539 (move_it_vertically_backward): Be sure to move out of strings and
540 images when moving it2 forward.
541 (move_it_by_lines): When moving forward, move to next buffer
542 position if we end up in a string or image. When moving backward,
543 count rows moved over when moving to start of current row in case
544 row starts in middle of a string or image. Also move further
545 backward if we end up in a string or image.
bcd98331 546 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
547 move backward to set cursor on start of an overlay string.
548 (cursor_row_p): Row is ok if cursor is at newline from string, but
549 string starts on this line (so we always position cursor at start
550 of string).
551
552 * indent.c (Fvertical_motion): If start position is on an image,
553 don't move back if we move too far (that's almost certain to happen).
554
098e1273
KS
555 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
556 row in minibuffer windows.
557 (try_window): Don't check margins in minibuffer windows.
558
c229fb15
YM
5592005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
560
561 * macterm.c: Don't include stdlib.h or composite.h.
562 (x_use_underline_position_properties, last_mouse_press_frame)
563 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
564 (syms_of_macterm, mac_initialize): Don't initialize them.
565 (waiting_for_input, initial_argv, initial_argc)
566 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
567 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
568 (extra_keyboard_modifiers): Fix type in extern.
569 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
570 (x_scroll_bar_report_motion): Add argument types to declaration.
571 (mac_compute_glyph_string_overhangs): Add declaration.
572 (disable_mouse_highlight): Remove unused variable.
573 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
574 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
575 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
576 All callers changed.
c229fb15
YM
577 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
578 timestamp.
579 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
580 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
581 only when its width is less than the height.
582 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
583 (font_name_table, font_name_table_size, font_name_count):
584 Make static.
c229fb15
YM
585 (drag_and_drop_file_list): Remove variable. Previous use is now
586 local to function.
587 (do_ae_open_documents): Move DRAG_N_DROP event construction part
588 from XTread_socket.
bcd98331
SM
589 (XTread_socket): Consolidate setting of event timestamp.
590 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
591 Support extra_keyboard_modifiers.
592
593 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
594 beginning with that for ASCII.
595
69d05d83
SM
5962005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
597
598 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
599 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
600 (syms_of_alloc): Declare gc-cons-percentage.
601
602 * eval.c (Feval, Ffuncall):
603 * keyboard.c (read_char):
604 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
605
606 * lisp.h (gc_cons_combined_threshold): Declare.
607
5c7f9de1
KS
6082005-07-12 Kim F. Storm <storm@cua.dk>
609
610 * coding.c (Qprocess_argument):
611 * coding.h (Qprocess_argument): Remove unused var.
612
613 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
614
c37efb7a
YM
6152005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
616
617 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
618 Endian.h.
619 [!MAC_OSX] (fchmod, fchown): New functions.
620 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
621 Use SBYTES and EndianU32_BtoN.
622 (mac_get_object_from_code): Return 4 byte string even if argument
623 is 0. Use make_unibyte_string and EndianU32_NtoB.
624 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
625 (Fmac_set_file_type): Fix documents and argument declarations.
626 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
627
a4429c5b
SM
6282005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
629
630 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
631
a2d7e722
JD
6322005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
633
634 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
635 Lucid if X_I18N, font otherwise.
636
9a4183e9
ST
6372005-07-10 Steven Tamm <steventamm@mac.com>
638
a4429c5b
SM
639 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
640 (Fmac_set_file_type, Fmac_set_file_creator): Add.
641 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 642
51f74c37
RS
6432005-07-10 Richard M. Stallman <rms@gnu.org>
644
645 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
646 (syms_of_lread): Set up eval-buffer-list.
647 (Feval_buffer, Feval_region): Bind eval-buffer-list.
648
93c7da4c
RS
6492005-07-08 Richard M. Stallman <rms@gnu.org>
650
651 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
652
64af5917
KS
6532005-07-08 Kim F. Storm <storm@cua.dk>
654
655 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
656 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
657
a96b333c
KS
6582005-07-07 Kim F. Storm <storm@cua.dk>
659
660 * window.c (Frecenter): Fix last change (set iarg before use).
661
dc2204be
RS
6622005-07-06 Richard M. Stallman <rms@gnu.org>
663
664 * window.c (Frecenter): When arg is inside the scroll margin,
665 move it out of the margin.
666
3fb1d72b
JR
6672005-07-06 Jason Rumney <jasonr@gnu.org>
668
669 * w32console.c (initialize_w32_display): Detect when the console
670 dimensions are insane, and default to 80x25 instead.
a4429c5b 671 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 672
dd15724d
YM
6732005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
674
675 * macterm.c (mac_draw_vertical_window_border): Use foreground of
676 VERTICAL_BORDER_FACE_ID for vertical border line.
677 (mac_encode_char): Call check_ccl_update in advance.
678 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
679 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
680 Don't assume that font family length is less than 32.
dd15724d
YM
681 (x_compute_min_glyph_bounds): Make static.
682 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 683
68003d6b
LK
6842005-07-04 Lute Kamstra <lute@gnu.org>
685
dc2204be 686 * Update FSF's address in GPL notices.
68003d6b 687
3d393029
RS
6882005-07-03 Richard M. Stallman <rms@gnu.org>
689
690 * xdisp.c (try_window): Fix previous change in how it handles
691 a partially-visible line or one only partly past the margin.
692
693 * window.c (window_scroll_pixel_based): Take account
694 of this_scroll_margin when finding point when scrolling up.
695
6962005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
697
698 * window.c (window_scroll_pixel_based, window_scroll_line_based):
699 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
700 (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
701
d6951bb4
EZ
7022005-07-02 Juri Linkov <juri@jurta.org>
703
704 * w32term.c (w32_draw_vertical_window_border): Use foreground of
705 VERTICAL_BORDER_FACE_ID for vertical border line.
706
b016179b
EZ
7072005-07-02 Eli Zaretskii <eliz@gnu.org>
708
709 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
710 fchmod so that chmod doesn't get called on MSDOS before the file
711 is closed.
712
c2baa2b6
JR
7132005-07-01 Jason Rumney <jasonr@gnu.org>
714
715 * w32term.c (cleartype_active): New flag for enabling sub-pixel
716 workaround.
717 (w32_initialize): Initialize it.
718 (w32_native_per_char_metric): Allow a couple of extra pixels when
719 Cleartype is active.
720
721 * w32term.c (w32_initialize): Move check for screen reader here
722 from syms_of_w32term.
723
a6d0ae55
JD
7242005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
725
726 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
727 is not zero.
728
711877f3
MY
7292005-07-01 Masatake YAMATO <jet@gyve.org>
730
a4429c5b 731 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 732
63f7ffb3
JL
7332005-06-30 Juri Linkov <juri@jurta.org>
734
735 * xdisp.c (x_draw_vertical_border): If left fringe is not present
736 decrease x coord of vertical border by 1 pixel to not occupy text
737 area of the right window.
738
739 * xterm.c (x_draw_vertical_window_border): Use foreground of
740 VERTICAL_BORDER_FACE_ID for vertical border line.
741
742 * term.c (turn_on_face): In standout mode apply specified
743 fg to bg, and specified bg to fg (this makes the logic of
744 inversion on terminal consistent with X).
745
b26860ad
JB
7462005-06-29 Juanma Barranquero <lekktu@gmail.com>
747
748 * eval.c (user_variable_p_eh): New function.
749 (Fuser_variable_p): Use it. Clarify docstring.
750 Return t for aliases of user options, nil for alias loops.
751
3a1f1d79
RS
7522005-06-27 Richard M. Stallman <rms@gnu.org>
753
754 * eval.c (Fdefvar): Improve error message.
755
92de1e01
YM
7562005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
757
758 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
759 change.
760
69410484
JB
7612005-06-27 Juanma Barranquero <lekktu@gmail.com>
762
763 * eval.c (Fdefvar): Don't try to set constant symbols.
764
09352e8f
RS
7652005-06-25 Richard M. Stallman <rms@gnu.org>
766
a68d870b
RS
767 * macfns.c (Fx_show_tip): Pass new arg to try_window.
768
769 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
770
771 * xfns.c (Fx_show_tip): Pass new arg to try_window.
772
773 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
774 (redisplay_window): Handle try_window reporting point in scroll margin.
775
776 * dispextern.h (try_window): Declare new arg.
777
778 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
779 Use fchmod to copy the file modes.
780 (Frename_file): Don't copy UID and GID here;
781 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
782
df13531d
RS
783 * eval.c (call_debugger): Take full care of extending stack limits
784 to make space for the debugger, and restore the change afterward.
785 Bind debug-on-error to nil.
786 (restore_stack_limits): New subroutine.
787 (Fsignal): Extend specpdl bound along with eval depth bound,
788 for calling edebug. Don't do either one, for calling debugger.
789 (find_handler_clause): Don't bind debug-on-error here.
790 Don't unbind anything either.
791 Temporarily advance max_specpdl_size for calling
792 internal_with_output_to_temp_buffer.
793 (grow_specpdl): Don't alter max_specpdl_size before signaling
794 an error.
795 (syms_of_eval) <max-specpdl-size>: Doc fix.
796
09352e8f
RS
797 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
798
90296dd3
EZ
7992005-06-24 Eli Zaretskii <eliz@gnu.org>
800
801 * fileio.c (Frename_file): Undo last change: no need to ifdef away
802 chown on DOS_NT platforms.
803
804 * w32.c (sys_chown): New function.
805
806 * s/ms-w32.h (chown): New; define to sys_chown.
807
c4f6ca24
JB
8082005-06-24 Juanma Barranquero <lekktu@gmail.com>
809
3338c0ad
JB
810 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
811 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
812
9a1505e9 813 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 814
528b6abc
RS
8152005-06-23 Richard M. Stallman <rms@gnu.org>
816
817 * xdisp.c (get_next_display_element): Finish reversing the tests of
818 Vnobreak_char_display.
819
9a1505e9 820 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 821 All uses changed.
9a1505e9 822 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
823 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
824
825 * fileio.c (Frename_file): Preserve owner and group, if possible,
826 when copying.
827
1d1c7e75
JB
8282005-06-23 Juanma Barranquero <lekktu@gmail.com>
829
253b2298
JB
830 * abbrev.c (Funexpand_abbrev):
831 * category.c (Fmake_category_set):
832 * dispnew.c (Fsleep_for, Fsit_for):
833 * editfns.c (Fsubst_char_in_region):
834 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
835 * frame.c (make_frame_without_minibuffer):
836 * lread.c (read_vector):
837 * macfns.c (check_x_frame):
838 * process.c (Fstop_process, Fcontinue_process):
839 * search.c (Freplace_match):
840 * syntax.c (Fstring_to_syntax):
841 * w32fns.c (check_x_frame, check_x_display_info):
842 * xfaces.c (x_supports_face_attributes_p):
843 * xselect.c (Fx_own_selection_internal): Follow error conventions.
844
1d1c7e75
JB
845 * image.c (fn_png_init_io): Don't define it.
846 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
847 (png_read_from_file): New function, based on png_read_from_memory.
848 (png_load): Use it, instead of fn_png_init_io.
849
d1fab151
KS
8502005-06-23 Kim F. Storm <storm@cua.dk>
851
852 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 853 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
854 Add commentary explaining evaporate arg (for internal use only).
855 (unwind_set_match_data): Add comment on evaporate use.
856
53abc3bf
MB
8572005-06-22 Miles Bader <miles@gnu.org>
858
a4429c5b 859 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
860 (realize_basic_faces, syms_of_xfaces): Update references to it.
861 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
862 to `VERTICAL_BORDER_FACE_ID'.
863 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
864
36a3b076
JL
8652005-06-21 Juri Linkov <juri@jurta.org>
866
867 * dispextern.h: Add extern Qframe_set_background_mode.
868
869 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
870 Qframe_set_background_mode.
871
872 * frame.c (Fmodify_frame_parameters):
873 Call frame-set-background-mode after changing the background color
874 on non-window non-dos branch.
875
23873c96
JB
8762005-06-21 Juanma Barranquero <lekktu@gmail.com>
877
878 * fns.c (Fchar_table_range):
879 * process.c (Fmake_network_process): Fix spellings.
880
b7d1f38f
KS
8812005-06-20 Kim F. Storm <storm@cua.dk>
882
883 * fns.c (Fsort): Doc fix.
884
b4e49aee
MB
8852005-06-20 Miles Bader <miles@gnu.org>
886
887 * xfaces.c (Qvertical_divider): New variable.
888 (realize_basic_faces): Realize its face.
889 (syms_of_xfaces): Initialize it.
890
891 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
892
893 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
894 window-separator on ttys using `vertical-divider' face by default.
895
b7da00ba
RS
8962005-06-17 Richard M. Stallman <rms@gnu.org>
897
a4429c5b
SM
898 * xdisp.c (get_next_display_element):
899 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
900
901 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
902 (Ftty_no_underline): New function.
903 (syms_of_term): defsubr it.
b7d1f38f 904
b7da00ba
RS
905 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
906
907 * dispnew.c (spec_glyph_lookup_face): New function.
908 (build_frame_matrix_from_leaf_window): Use it.
909
910 * dispextern.h (spec_glyph_lookup_face): Add declaration.
911
912 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
913
9142005-06-12 Richard M. Stallman <rms@gnu.org>
915
916 * keyboard.c (read_char): After catching a longjmp,
917 call restore_getcjmp.
918
289824a3
JB
9192005-06-17 Juanma Barranquero <lekktu@gmail.com>
920
921 * xselect.c (lisp_data_to_selection_data): Fix spelling.
922
95085023
YM
9232005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
924
925 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
926 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
927 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
928 events.
929 (XTread_socket): Don't pass keyboard events with the option
930 modifier to the system when Vmac_command_key_is_meta is nil or
931 Vmac_option_modifier is non-nil.
932 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
933 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
934 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
935 handler function.
936 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
937 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
938 handler part to mac_handle_mouse_event.
939
4a9308b8
JB
9402005-06-14 Juanma Barranquero <lekktu@gmail.com>
941
942 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
943 NEW-ALIAS and BASE-VARIABLE, respectively.
944
5aa6db57
SM
9452005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
946
947 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
948 (get_phys_cursor_geometry, format_mode_line_unwind_data)
949 (get_line_height_property, x_produce_glyphs): Remove unused vars.
950
951 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
952
0e0dddda
EZ
9532005-06-13 Eli Zaretskii <eliz@gnu.org>
954
955 * w32term.c (x_use_underline_position_properties): New variable.
956 (x_draw_glyph_string): Remind in a comment to change doc string of
957 x-use-underline-position-properties if/when underline positioning
958 is implemented.
959 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
960 and initialize it to nil.
961
7f2b4738
JR
9622005-06-12 Jason Rumney <jasonr@gnu.org>
963
964 * w32fns.c (NEWOPENFILENAME): New struct.
965 (Fx_file_dialog): Use it to trick the system into giving us up to
966 date dialogs on systems that are documented to support it.
967 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
968
a1e8cad6
EZ
9692005-06-12 Eli Zaretskii <eliz@gnu.org>
970
971 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
972 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
973
099a3eea
EZ
9742005-06-11 Eli Zaretskii <eliz@gnu.org>
975
2e09fef1
EZ
976 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
977 to CreateDIBSection to avoid a compiler warning.
978 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
979 warning.
980 (png_load): Cast return values of fn_png_create_read_struct and
981 fn_png_create_info_struct, to avoid compiler warnings on W32.
982 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
983 to avoid compiler warnings.
984 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
985 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
986 avoid a compiler warning.
987 (tiff_load): Cast return values of fn_TIFFOpen and
988 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
989 to IMAGE_BACKGROUND to avoid a compiler warning.
990 (gif_load): Cast return values of fn_DGifOpenFileName and
991 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
992 IMAGE_BACKGROUND to avoid a compiler warning.
993 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
994 before redefining.
995
099a3eea
EZ
996 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
997 the call to CreateDIBSection, to avoid a compiler warning.
998
d11f8e1a
JR
9992005-06-11 Jason Rumney <jasonr@gnu.org>
1000
1001 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
1002 minibuffer.
1003 * macfns.c (Fx_file_dialog): Likewise.
1004
cd4344a3
EZ
10052005-06-10 Eli Zaretskii <eliz@gnu.org>
1006
1007 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
1008
578c1340
JB
10092005-06-10 Juanma Barranquero <lekktu@gmail.com>
1010
1011 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
1012 * w32fns.c (syms_of_w32fns): Fix spellings.
1013
4162f25f
EZ
10142005-06-10 Eli Zaretskii <eliz@gnu.org>
1015
1016 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
1017 `verbose'; print diagnostic messages only if it is non-zero.
1018 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
1019 in the environment.
1020 (copy_executable_and_dump_data): Print section names with %.8s.
1021
121c59a3
MY
10222005-06-10 Masatake YAMATO <jet@gyve.org>
1023
1024 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
1025 when mouse_face is not given.
121c59a3 1026
c869384d
LT
10272005-06-09 Luc Teirlinck <teirllm@auburn.edu>
1028
1029 * window.c (Fselect_window): Adapt call to Fselect_frame.
1030
1031 * lisp.h: Update EXFUN of Fselect_frame.
1032
1033 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
1034
6ecf436d
LT
1035 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
1036 no_enter.
1037 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
1038 Adapt to above change.
1039
c14ec135
JB
10402005-06-10 Juanma Barranquero <lekktu@gmail.com>
1041
1042 * fns.c (Fmemq, Fmaphash): Doc fixes.
1043
9fed2905
JB
10442005-06-09 Juanma Barranquero <lekktu@gmail.com>
1045
1046 * xfaces.c (Fdisplay_supports_face_attributes_p):
1047 Fix typo in docstring.
1048
427c5b1b
ST
10492005-06-08 Steven Tamm <steventamm@mac.com>
1050
1051 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
1052 used by gcc4 on intel mac.
1053
b7aae902
KS
10542005-06-09 Kim F. Storm <storm@cua.dk>
1055
1056 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
1057 in REUSE list if non-nil; free them if equal to evaporate.
1058 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
1059 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
1060 (restore_search_regs): Rename from restore_match_data. Uses changed.
1061 (unwind_set_match_data): New function.
1062 (record_unwind_save_match_data): New function like save-match-data.
1063
1064 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
1065 (record_unwind_save_match_data): Add prototype.
1066 (restore_search_regs): Rename from restore_match_data.
1067
1068 * composite.c (compose_chars_in_text):
1069 * eval.c (do_autoload):
1070 * macmenu.c (set_frame_menubar):
1071 * process.c (read_process_output, exec_sentinel):
1072 * xmenu.c (set_frame_menubar):
1073 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
1074 * w32menu.c (set_frame_menubar):
1075 Use record_unwind_save_match_data.
1076
547d2b37
RS
10772005-06-08 Richard M. Stallman <rms@gnu.org>
1078
1079 * xdisp.c (get_next_display_element): Alter previous change:
1080 Distinguish Vshow_nonbreak_escape = t or not t.
1081 For t, use escape_glyph once again, as before previous change.
1082 Use space or hyphen for display, instead of the non-ASCII char.
1083 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
1084
1085 * process.c (Fstart_process): Don't touch command_channel_p slot.
1086
99598737 1087 * process.h (struct process): Delete command_channel_p.
547d2b37 1088
602907ae
MY
10892005-06-07 Masatake YAMATO <jet@gyve.org>
1090
5aa6db57
SM
1091 * xdisp.c (note_mode_line_or_margin_highlight):
1092 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 1093 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
1094 is not ON_MODE_LINE nor ON_HEADER_LINE.
1095
8b793bed
KS
10962005-06-07 Kim F. Storm <storm@cua.dk>
1097
1098 * process.c: Improve commentary for adaptive read buffering.
1099
3d031334
SM
11002005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
1101
1102 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
1103 if available.
1104
16d2e704
JD
11052005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1106
5aa6db57
SM
1107 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
1108 New functions for popping down menus on C-g.
16d2e704
JD
1109 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
1110
1111 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
1112 non-static.
1113
9fed2905 1114 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 1115
b6cc2ad0
EZ
11162005-06-06 Eli Zaretskii <eliz@gnu.org>
1117
9a1505e9 1118 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 1119
5aa6db57 1120 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
1121
1122 * w32proc.c (RVA_TO_PTR): New macro.
1123
1124 * w32heap.c (RVA_TO_PTR): No need to #undef now.
1125
1126 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
1127 Depend on w32heap.h.
1128
24e55feb
LT
11292005-06-06 Luc Teirlinck <teirllm@auburn.edu>
1130
1131 * keyboard.c (command_loop_1): Update Vthis_original_command.
1132
ce6e10af
RS
11332005-06-06 Richard M. Stallman <rms@gnu.org>
1134
1135 * xmenu.c (popup_get_selection): Undo previous change.
1136
c476bcb0
JL
11372005-06-06 Juri Linkov <juri@jurta.org>
1138
1139 * xdisp.c (Qno_break_space): New variable.
1140 (syms_of_xdisp): Initialize it.
1141 (get_next_display_element): Add no-break space and soft hypen
1142 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
1143 Use `no-break-space' face for no-break spaces.
1144
5494d7bc
JD
11452005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1146
1147 * window.c (delete_window): Handle the case where a h/vchild has
1148 a h/vchild.
1149
a0c38328
EZ
11502005-06-05 Eli Zaretskii <eliz@gnu.org>
1151
1152 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
1153 call to pfn_setsockopt, cast optval to `const char *'.
1154
91018229
EZ
11552005-06-04 Eli Zaretskii <eliz@gnu.org>
1156
1a8fb426
EZ
1157 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
1158 (open_unc_volume): Cast return value of map_w32_filename, to avoid
1159 compiler warnings.
1160
b6f0a397
EZ
1161 * s/ms-w32.h (fileno): Don't define if already defined.
1162
17a7c5c2 1163 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 1164
91018229
EZ
1165 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
1166
196ac78c
RS
11672005-06-04 Richard M. Stallman <rms@gnu.org>
1168
1169 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
1170
b8987570
JD
11712005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1172
1173 * macmenu.c (cleanup_popup_menu): New function.
1174 (Fx_popup_menu): unwind protect cleanup_popup_menu in case
1175 mac_menu_show Quit:s.
1176 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
1177 a dialog).
1178
555228aa
KS
11792005-06-04 Kim F. Storm <storm@cua.dk>
1180
1181 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
1182
1183 * callproc.c (Fcall_process): Don't use alloca to gradually
1184 increase size of buf, as it effectively uses twice the necessary
1185 space on the stack. Instead, pre-allocate buf of full size, and
1186 gradually increase the read size.
1187
1188 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
1189
1190 * eval.c (unbind_to): Preserve value of Vquit_flag.
1191
1192 * xterm.c (handle_one_xevent): Also ignore mouse motion just
1193 before a button release event.
1194
6312e5f7
JB
11952005-06-03 Juanma Barranquero <lekktu@gmail.com>
1196
1197 * xfaces.c (Finternal_lisp_face_equal_p): Really report
1198 on faces in a frame, if the argument FRAME is non-nil.
1199 Improve argument/docstring consistency.
1200
0493f7be
KS
12012005-06-02 Kim F. Storm <storm@cua.dk>
1202
1203 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
1204 (x_consider_frame_title, Fformat_mode_line): Save offset into
1205 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
1206
89fe657e
KS
12072005-06-01 Kim F. Storm <storm@cua.dk>
1208
1209 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
1210
02a6375c
YM
12112005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1212
1213 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
1214 resolution fields for scalable fonts to 0.
1215
1216 * xfaces.c (build_scalable_font_name): Round pixel size to the
1217 nearest integer.
1218
95d4fad8
KS
12192005-06-01 Kim F. Storm <storm@cua.dk>
1220
1221 * xdisp.c (display_mode_line): Support nested calls to redisplay
1222 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
1223
3c1b433a
SM
12242005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1225
1226 * fileio.c (Finsert_file_contents):
1227 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
1228
13cc7d61
KS
12292005-05-31 Kim F. Storm <storm@cua.dk>
1230
1231 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
1232 (mode_line_noprop_ptr): Rename from frame_title_*.
1233 (store_mode_line_noprop_char): Rename from store_frame_title_char.
1234 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 1235 (mode_line_target): New enum to specify current output target
13cc7d61
KS
1236 for mode line formatting.
1237 (display_mode_element): Test it rather than frame_title_ptr and
1238 mode_line_string_list to determine where output should go.
1239 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
1240 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
1241 (format_mode_line_unwind_data, unwind_format_mode_line):
1242 New functions for unwind protection in mode line formatting.
13cc7d61 1243 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
1244 to support nested calls to format-mode-line and redisplay.
1245 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 1246 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
1247 support nested calls to format-mode-line and redisplay.
1248 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 1249 Don't trim trailing dashes.
13cc7d61
KS
1250 (decode_mode_spec): Don't make infinite number of trailing dashes
1251 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
1252 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
1253 mode_line_string_face_prop, and Vmode_line_unwind_vector.
1254 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
1255 Initialize mode_line_target to MODE_LINE_DISPLAY.
1256
c16b1394
RS
12572005-05-29 Richard M. Stallman <rms@gnu.org>
1258
1259 * buffer.c (Fbuffer_local_value): Call indirect_variable.
1260
edfaeb4e
MY
12612005-05-28 Masatake YAMATO <jet@gyve.org>
1262
1263 * xdisp.c (note_mode_line_or_margin_highlight): Change the
1264 pointer to a hand cursor when hoovering over a mouse-face.
1265
7cf49add
KH
12662005-05-27 Kenichi Handa <handa@m17n.org>
1267
1268 * xterm.c (x_encode_char): Call check_ccl_update in advance.
1269
1270 * ccl.c: Now an element of Vccl_program_table is a vector of
1271 length 4, not 3.
3c1b433a
SM
1272 (ccl_get_compiled_code): New arg idx. Caller changed.
1273 Adjust for the change of Vccl_program_table.
1274 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
1275 (check_ccl_update): New function.
1276 (Fregister_ccl_program): Use ASET to set an element of a vector.
1277 Adjusted for the change of Vccl_program_table.
1278
1279 * ccl.h (struct ccl_program): New member idx.
1280 (check_ccl_update): Extern it.
1281
5e2ad10b
JB
12822005-05-27 Juanma Barranquero <lekktu@gmail.com>
1283
3c1b433a 1284 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
1285 (syms_of_image): Defvar it.
1286 (lookup_image_type): Use it.
1287
5e2ad10b
JB
1288 * buffer.c (Fbuffer_local_value): Make argument name match its use
1289 in docstring.
1290
6e604a9b
JB
12912005-05-26 Juanma Barranquero <lekktu@gmail.com>
1292
1293 * keyboard.c (Frecursive_edit): Fix typo in docstring.
1294 (Fposn_at_x_y): Make argument name match its use in docstring.
1295
59244a3f
LK
12962005-05-26 Lute Kamstra <lute@gnu.org>
1297
1298 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
1299
55ce5058
MY
13002005-05-24 Masatake YAMATO <jet@gyve.org>
1301
1302 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
1303 as loop sentinels.
1304
cb5db137
NR
13052005-05-24 Nick Roberts <nickrob@snap.net.nz>
1306
1307 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
1308 select frame title ("Question"/"Information").
1309 (xdialog_show): Use it.
1310
13dcfc35
NR
1311 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
1312
1313 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
1314
d3393daa
NR
1315 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
1316 a third argument (Qnil).
1317
1318 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
1319
1320 * editfns.c (Fmessage_box): Use "Information" for frame title.
1321
71d4fba1
TTN
13222005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
1323
1324 * termcap.c [VMS]: Include <starlet.h>.
1325
359e4563
MY
13262005-05-23 Masatake YAMATO <jet@gyve.org>
1327
6e604a9b
JB
1328 * xdisp.c (note_mode_line_or_margin_highlight): Add code
1329 for mouse-face. Change the type of the first argument from `window'
1330 to `Lisp_Object'.
359e4563
MY
1331 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
1332 window instead of w.
1333
edceb51c
AS
13342005-05-22 Andreas Schwab <schwab@suse.de>
1335
41c4895c 1336 * process.c (send_process): Move misplaced volatile.
edceb51c 1337
5c213fcc
RS
13382005-05-21 Richard M. Stallman <rms@gnu.org>
1339
1340 * xdisp.c (display_mode_element): If we're processing a list and
1341 padding is specified, put it after the last element.
1342
aa4060b9
EZ
13432005-05-21 Eli Zaretskii <eliz@gnu.org>
1344
1345 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
1346 "superroot" on DOS_NT systems.
1347
a2c9aee6
EZ
13482005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
1349
1350 * process.c (send_process): Restore the SIGPIPE handler if we
1351 catch a SIGPIPE.
1352
09e8eb5b
JB
13532005-05-20 Juanma Barranquero <lekktu@gmail.com>
1354
1355 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
1356 misleading comments).
1357 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
1358
f3fbdb1f
LK
13592005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1360
1361 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
1362 Correct the right value.
1363
639ec765
NR
13642005-05-19 Nick Roberts <nickrob@snap.net.nz>
1365
240d926e 1366 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
1367 post-command-idle-hook and post-command-idle-delay.
1368 (command_loop_1): Don't try to execute post-command-idle-hook.
1369
03d42907
KS
13702005-05-16 Kim F. Storm <storm@cua.dk>
1371
1cb83e13
KS
1372 * xdisp.c (handle_display_prop): Handle empty replacement.
1373 (handle_single_display_spec): Return -1 for empty replacement.
1374
1375 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
1376
03d42907
KS
1377 * .gdbinit (pitx): Print more info about iterator.
1378
0da46b6e
AS
13792005-05-16 Andreas Schwab <schwab@suse.de>
1380
3c1b433a 1381 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 1382
d06ba294
RS
13832005-05-14 Richard M. Stallman <rms@gnu.org>
1384
1385 * xdisp.c (message3): Call cancel_echoing.
1386
1387 * alloc.c (Fmemory_full_p): New function.
1388 (syms_of_alloc): defsubr it.
1389
1390 * process.c (send_process_trap): Unblock SIGPIPE.
1391 (send_process): Reset SIGPIPE handler before reporting error.
1392
90713743
NR
13932005-05-14 Nick Roberts <nickrob@snap.net.nz>
1394
1395 * emacs.c (syms_of_emacs): Fix doc string for system-type.
1396
68780e2a
RS
13972005-05-13 Richard M. Stallman <rms@gnu.org>
1398
1399 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
1400 (Finsert_file_contents): If we read 0 bytes from a special file,
1401 unlock the visited file if we locked it.
1402 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 1403 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 1404
5063dbbf
YM
14052005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1406
1407 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
1408
3c1b433a
SM
1409 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
1410 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
1411 redisplay from being paused by them.
1412
1413 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
1414 [!MAC_OSX] (target_ticks): Remove variable.
1415 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
1416 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
1417 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 1418 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
1419 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
1420 handling using Time Manager routines.
3c1b433a
SM
1421 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
1422 New variables.
5063dbbf
YM
1423 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
1424 (setitimer): New functions.
1425
1426 * macfns.c, macmenu.c: Don't include signal.h.
1427
1428 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
1429 Rename from get_control_part_bound. All callers changed.
1430 (x_scroll_bar_clear): New function.
1431 (x_clear_frame): Use it.
1432 (XTset_vertical_scroll_bar): Don't call Draw1Control.
1433 (x_scroll_bar_handle_click): Change type of second argument from
1434 int to ControlPartCode.
1435 (check_alarm): Remove declaration.
02a6375c
YM
1436 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
1437 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
1438
14392005-05-13 Nozomu Ando <nand@mac.com>
1440
1441 * unexmacosx.c: Include assert.h.
1442 (MACOSX_MALLOC_MULT16): New define.
1443 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
1444 ptr is in unexec regions by checking it is multiple of 16.
1445 (unexec_malloc_header_t): New typedef.
1446 (unexec_malloc, unexec_realloc, unexec_free): Store and use
1447 allocated size information in unexec_malloc_header.
1448
d101bf56
RS
14492005-05-10 Richard M. Stallman <rms@gnu.org>
1450
1451 * xterm.c (noinclude): Add #undef.
1452
1453 * image.c, xfns.c, xmenu.c: Don't include signal.h.
1454
2f60660a
JB
14552005-05-09 Juanma Barranquero <lekktu@gmail.com>
1456
f1701e65
JB
1457 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
1458 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
1459 Doc fixes.
1460
2f60660a
JB
1461 * dired.c (Ffile_name_completion): Make argument name
1462 match its use in docstring.
1463
9f29e806
LT
14642005-05-08 Luc Teirlinck <teirllm@auburn.edu>
1465
1466 * eval.c (Fdefvaralias): Remove any pre-existing
1467 variable-documentation property of the alias.
1468
a790bcd4
TTN
14692005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
1470
1471 * xfns.c (start_hourglass): Do nothing when running on a tty.
1472
d5fb8dab
JB
14732005-05-07 Juanma Barranquero <lekktu@gmail.com>
1474
1475 * fns.c (Fchar_table_range): Fix typos in docstring.
1476
7ec64183
SM
14772005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1478
1479 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
1480
6ff95f1d
EZ
14812005-05-06 Eli Zaretskii <eliz@gnu.org>
1482
2c6b25c7
EZ
1483 * lread.c (Flocate_file_internal): Doc fix.
1484
6ff95f1d
EZ
1485 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
1486
17d28d26
YM
14872005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1488
1489 * macselect.c (x_own_selection): Accept Lisp string as result of
1490 selection converter function.
1491 (x_clear_frame_selections): Don't call x-lost-selection-functions
1492 if Emacs is not owner of the selection.
1493 (Vmac_services_selection): Put variable and initialization in
1494 #ifdef MAC_OSX.
1495 (syms_of_macselect) [MAC_OSX]: Set default value of
1496 Vmac_services_selection to PRIMARY.
1497
7ec64183
SM
1498 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
1499 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
1500 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
1501 (install_scroll_bar_timer, set_scroll_bar_timer)
1502 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
1503 (get_control_part_bound, x_scroll_bar_handle_press)
1504 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
1505 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
1506 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
1507 (scroll_bar_timer_event_posted_p): New variables.
1508 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
1509 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
1510 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
1511 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
1512 Initialize track_top and track_height to nil.
1513 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
1514 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
1515 (XTset_vertical_scroll_bar): Don't make space between scroll bar
1516 and associated window.
1517 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
1518 from window config.
7ec64183
SM
1519 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1520 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
1521 Recalculate them if they are nil.
1522 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
1523 clicked control is a scroll bar.
1524 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
1525 event handler functions. Don't add modifiers to scroll bar click
7ec64183 1526 events. Call scroll bar release handler when window is deactivated.
17d28d26 1527 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
1528 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
1529 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 1530
7ec64183
SM
1531 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1532 New members track_top and track_height.
17d28d26
YM
1533
1534 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
1535 init_process when including sys/select.h.
1536
643b4cf5
LT
15372005-05-05 Luc Teirlinck <teirllm@auburn.edu>
1538
1539 * eval.c (Fdefvaralias): Doc fix.
1540
1541 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
1542
99bda128
KS
15432005-05-05 Kim F. Storm <storm@cua.dk>
1544
1545 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
1546 default value.
1547 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
1548 Fix type of cursor-in-non-selected-windows.
1549
3a3563e9
JD
15502005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1551
1552 * mac.c: #undef init_process so not to conflict with system headers.
1553
0124c5bd
RS
15542005-05-02 Richard M. Stallman <rms@gnu.org>
1555
1556 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
1557
1558 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
1559
1560 * xdisp.c (Vcursor_in_non_selected_windows)
1561 (Qcursor_in_non_selected_windows): Vars deleted.
1562 (syms_of_xdisp): Don't initialize them.
1563 (get_window_cursor_type): Use cursor_in_non_selected_windows
1564 buffer slot.
1565
4b3f161f
KS
15662005-05-02 Kim F. Storm <storm@cua.dk>
1567
e40527dc
KS
1568 * macros.c (executing_kbd_macro_index): Rename from
1569 executing_macro_index. All uses changed.
1570 (executing_kbd_macro_iterations): Rename from
1571 executing_macro_iterations. All uses changed.
1572 (executing_kbd_macro): Rename from executing_macro.
1573 All uses changed.
1574 (syms_of_macros): Rename Lisp var executing-macro-index to
1575 executing-kbd-macro-index.
1576
4b3f161f
KS
1577 * xdisp.c (move_it_in_display_line_to): Fix last change.
1578
4d49edf6
LT
15792005-05-01 Luc Teirlinck <teirllm@auburn.edu>
1580
f6b1b15a
LT
1581 * xmenu.c (Fx_popup_menu): Doc fix.
1582
4d49edf6
LT
1583 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
1584
4a766fe6
JR
15852005-05-02 Jason Rumney <jasonr@gnu.org>
1586
1587 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
1588
c924d3ff
TTN
15892005-05-02 Nozomu Ando <nand@mac.com>
1590
1591 * sysselect.h: Fix typo.
1592
b161ea4e 15932005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 1594
b161ea4e
NR
1595 * charset.c (Fchars_in_region): Remove as obsolete.
1596
d37e919d 15972005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
1598
1599 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 1600 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 1601 glyph.
5c2e5a5e 1602
bec0b768
LT
16032005-05-01 Luc Teirlinck <teirllm@auburn.edu>
1604
1605 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
1606
ebbfa918
RS
16072005-05-01 Richard M. Stallman <rms@gnu.org>
1608
1609 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
1610 If user cancels the menu, quit unless FOR_CLICK.
1611
7ec64183 1612 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
1613 All uses changed.
1614 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
1615 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
1616 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
1617 * commands.h (Vexecuting_kbd_macro): Likewise.
1618
a72c2d97
TTN
16192005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
1620
1621 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
1622
7e995a23
RS
16232005-04-30 Richard M. Stallman <rms@gnu.org>
1624
1625 * fileio.c (Ffind_file_name_handler): Handle the `operations'
1626 property of the file name handler.
1627 (Qoperations): New variable.
1628 (syms_of_fileio): Initialize and staticpro it.
1629
1630 * xdisp.c (set_message_1): Delete xassert.
1631
7a92caf8
YM
16322005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1633
7ec64183 1634 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
1635
1636 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
1637
1638 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
1639 before/after including Carbon.h if there is a working mktime.
1640
5ae91803
KS
16412005-04-28 Kim F. Storm <storm@cua.dk>
1642
1643 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
1644 Fix cyclic alias check. If alias loop is detected, signal
1645 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
1646
d79b6c21
LK
16472005-04-28 Lute Kamstra <lute@gnu.org>
1648
1649 * eval.c (do_autoload): Record only autoloads in the autoload
1650 property of symbols.
1651
8c75afbf
NR
16522005-04-28 Nick Roberts <nickrob@snap.net.nz>
1653
1654 * emacs.c (USAGE1): Add --basic-display and --quick options.
1655
832e294f
KS
16562005-04-27 Kim F. Storm <storm@cua.dk>
1657
1658 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
1659
f03f317a
RS
16602005-04-26 Richard M. Stallman <rms@gnu.org>
1661
c019856e
RS
1662 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
1663 (syms_of_window): Doc fixes.
1664
f03f317a
RS
1665 * indent.c (Fvertical_motion): Undo previous change.
1666
38f60cd9
KH
16672005-04-26 Kenichi Handa <handa@m17n.org>
1668
1669 * fns.c (char_table_range): New function.
1670 (Fchar_table_range): Signal an error if characters in the range
1671 have inconsistent values. Don't check the parent.
1672
87ede5a1
KH
16732005-04-25 Kenichi Handa <handa@m17n.org>
1674
1675 * fontset.c (fontset_set): Fix previous change.
1676
a6390474
RS
16772005-04-24 Richard M. Stallman <rms@gnu.org>
1678
1679 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
1680
7fce7dfe
EZ
16812005-04-24 Eli Zaretskii <eliz@gnu.org>
1682
cf1982d9
EZ
1683 * regex.c (re_search_2, re_match_2_internal): Convert second arg
1684 of RE_TRANSLATE to int, to shut up GCC warnings.
1685
7fce7dfe
EZ
1686 * fileio.c (Fcopy_file): Doc fix.
1687 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
1688 not needed.
1689
49ed33c7
YM
16902005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1691
1692 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
1693 (SOME_MACHINE_OBJECTS): Likewise.
1694 (mac.o): Depend on ccl.h.
1695 (macselect.o): New target.
1696
7ec64183
SM
1697 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
1698 Call syms_of_macselect.
49ed33c7
YM
1699
1700 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
1701
7ec64183 1702 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
1703 (QCLIPBOARD): Remove variable.
1704 (syms_of_mac): Don't initialize it.
1705 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
1706 Remove functions.
1707 (syms_of_mac): Don't defsubr them.
1708 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
1709 (QHFS_plus_D, QHFS_plus_C): New variables.
1710 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
1711 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
1712 (cfstring_create_normalized): New functions.
1713 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
1714 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1715
7ec64183
SM
1716 * macterm.c (handling_window_update, terminate_flag):
1717 Remove variables.
1718 (do_window_update, do_ae_quit_application, XTread_socket):
1719 Don't use them.
49ed33c7
YM
1720 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
1721 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
1722 (init_service_handler): Move to macselect.c. Remove declarations.
1723 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
1724 (Qapplication, Qabout): New variables.
1725 (syms_of_mac): Initialize them.
1726 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
1727 (Qperform): New variables.
1728 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 1729 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
1730 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
1731 (mac_store_application_menu_event, init_menu_bar): New functions.
1732 [USE_CARBON_EVENTS] (mac_handle_command_event)
1733 (init_command_handler): New functions.
1734 (mac_handle_window_event): Return noErr on window update event.
1735 (do_ae_quit_application): Call mac_store_application_menu_event.
1736 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
1737 and init_menu_bar.
1738
1739 * macterm.h (x_clear_frame_selections): Add extern.
1740
1741 * macselect.c: New file for selection processing on Mac OS.
1742
469bc679
RS
17432005-04-23 Richard M. Stallman <rms@gnu.org>
1744
1745 * fileio.c (Fcopy_file): New arg MUSTBENEW.
1746 (Frename_file): Pass new arg to Fcopy_file.
1747
1748 * window.c (window_size_fixed): Variable deleted.
1749 (syms_of_window): Initialize window-size-fixed to nil.
1750 But don't DEFVAR window_size_fixed.
1751
d379c558
AS
17522005-04-23 Andreas Schwab <schwab@suse.de>
1753
1754 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
1755 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
1756 use lib64 instead of lib.
1757 (_LP64) [_ARCH_PPC64]: Define if not defined.
1758
007d105b
TTN
17592005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
1760
1761 * s/ms-w32.h (HAVE_PWD_H): Define.
1762
b9c15916
KH
17632005-04-22 Kenichi Handa <handa@m17n.org>
1764
1765 * fns.c (copy_sub_char_table): Explicitly copy the default value
1766 of the sub-chartable.
1767
1768 * fontset.c (fontset_set): When a sub-chartable is created,
1769 explicitly sets the defalt value.
1770
1ba52906
KS
17712005-04-22 Kim F. Storm <storm@cua.dk>
1772
1773 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
1774 (Fsafe_plist_get): Rename to Fplist_get.
1775 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
1776 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
1777
1778 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
1779
1780 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
1781 (note_mode_line_or_margin_highlight, note_mouse_highlight):
1782 Use Fplist_get instead of Fsafe_plist_get.
1783
1784 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
1785
e235145c
MB
17862005-04-21 Miles Bader <miles@gnu.org>
1787
1788 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
1789
766c5349
TTN
17902005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
1791
c164a7e6
TTN
1792 * sysdep.c: Remove reference to defunct vms-pwd.h.
1793 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
1794 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
1795
766c5349
TTN
1796 * config.in: Regenerate.
1797
2b048bf5
KH
17982005-04-20 Kenichi Handa <handa@m17n.org>
1799
1800 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
1801 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
1802 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
1803
1804 * alloc.c (make_sub_char_table): Argument changed to initial
1805 value of the slots.
1806
1807 * data.c (Faref): Handle special slots used as default values of
1808 ascii, eight-bit-control, eight-bit-control. Don't ignore a
1809 default value set for a group of characters.
1810 (Faset): Signal an error if IDXVAL is not a valid character code.
1811 Make a sub-chartable with correct initial value.
1812
1813 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
1814 values for ascii, eight-bit-control, eight-bit-graphic.
1815 Don't call Faref with charset-id.
2b048bf5
KH
1816 (Fset_char_table_default): Document how to treat normal character
1817 argument. Handle special slots used as default values of ascii,
1818 eight-bit-control, eight-bit-control. Make a sub chartable if
1819 necessary.
1820
b0a35939
KH
18212005-04-20 Kenichi Handa <handa@m17n.org>
1822
1823 * search.c (boyer_moore): Fix previous change.
1824
98dde726
KS
18252005-04-19 Kim F. Storm <storm@cua.dk>
1826
1827 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
1828 face unless last visible char and first invisible char have the
1829 same face. Also use default face if saved_face_id is undefined.
1830
327a3376
YM
18312005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1832
1833 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
1834 `full_name'.
1835 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
1836 mac_scriptcode member.
1837
1838 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
1839 (syms_of_mac): Don't initialize them.
1840 (Vmac_charset_info_alist): New variable.
1841 (syms_of_mac): Defvar it.
1842 (create_text_encoding_info_alist): New function.
1843 (decode_mac_font_name, mac_to_x_fontname)
1844 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
1845 code the correspondence among XLFD charsets, Mac script codes, and
1846 Emacs coding systems. Use Vmac_charset_info_alist and result of
1847 create_text_encoding_info_alist instead.
1848 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
1849 routines also on Mac OS Classic.
7ec64183
SM
1850 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
1851 Use add_font_name_table_entry.
327a3376
YM
1852 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
1853 specified. Derive unspecified scalable fields from specified one.
1854 (x_list_fonts): Consider Valternate_fontname_alist.
1855 (kDefaultFontSize): Change value from 9 to 12.
1856 (XLoadQueryFont): Get decoded font family, font face, and charset
1857 from x_font_name_to_mac_font_name. Set full name of loaded font.
1858 (mac_unload_font): Free `full_name' member.
1859 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
1860 NULL. Copy full_name member of struct MacFontStruct to that of
1861 struct font_info.
1862
d0636839
KS
18632005-04-19 Kim F. Storm <storm@cua.dk>
1864
5827e9d4
KS
1865 * xdisp.c (handle_stop): Set saved_face_id to current face if
1866 selective_display_ellipsis_p so ellipsis will be shown in same
1867 face as preceding text.
1868 (setup_for_ellipsis): Don't set saved_face_id here.
1869 (next_element_from_display_vector): Default to saved_face_id.
1870
d0636839
KS
1871 * fns.c (Fsafe_get): New function.
1872 (syms_of_fns): Defsubr it.
1873
1874 * lisp.h (Fsafe_get): EXFUN it.
1875
1876 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
1877 loops in case of bad face property lists. Limit number of face
1878 alias lookups to 10 (in case of face alias loops).
1879
e5c78c9d
KS
18802005-04-18 Kim F. Storm <storm@cua.dk>
1881
1882 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
1883 It replaces the corresponding member from struct window, as a
1884 window may now show multiple overlay arrows.
1885 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
1886
1887 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
1888 Compare overlay_arrow_bitmap than overlay_arrow_p members.
1889
1890 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
1891 rather than from window.
1892 (update_window_fringes): Compare overlay_arrow_bitmap rather than
1893 overlay_arrow_p members.
1894 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
1895 if not default.
1896
1897 * window.h (struct window): Remove member overlay_arrow_bitmap.
1898
1899 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
1900
1901 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
1902 Calls changed. Don't check for overlay-arrow-bitmap property here.
1903 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
1904 fringe is present, return Lisp integer for bitmap (or -1 for default).
1905 Fix value of overlay-arrow-bitmap property to be a symbol, use
1906 lookup_fringe_bitmap to parse it.
1907 (display_line): Change call to overlay_arrow_at_row. Store integer
1908 return value as overlay bitmap in row rather than window.
1909 Only show overlay arrow if row displays text, or if no other overlay
1910 arrow is seen in window (if overlay marker is at point-max).
1911
7d603e3f
TTN
19122005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1913
1914 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
1915
9942fa0c
LK
19162005-04-18 Lute Kamstra <lute@gnu.org>
1917
1918 * lread.c (Vloads_in_progress): Static.
1919 * fns.c (Vloads_in_progress): Remove extern.
1920 (load_in_progress): Add extern.
1921 (Frequire): Use load_in_progress instead of Vloads_in_progress.
1922
999cdb8f
TTN
19232005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
1924
1925 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
1926
3f4413f8
YM
19272005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1928
1929 * macterm.c (XTread_socket): Don't beep on keyboard input even if
1930 no frame is visible.
1931
60ec7b7e
DN
19322005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1933
1934 * term.c (struct keys): Add support for shifted keys.
1935
a8a1c0ee
RS
19362005-04-16 Richard M. Stallman <rms@gnu.org>
1937
1938 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
1939 (set_message): Call with_echo_area_buffer with WHICH = 0.
1940 (set_message_1): Erase the echo area buffer first thing.
1941 (echo_area_display): Don't clear echo_message_buffer.
1942
f3cf04d3
YM
19432005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1944
1945 * Makefile.in (mac.o): Depend on charset.h and coding.h.
1946
1947 * mac.c: Include charset.h and coding.h.
1948 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 1949 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
1950 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
1951
1952 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
1953
1954 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
1955
1956 * macterm.c (x_autoselect_window_p): Remove variable.
1957 (last_window): New variable.
7ec64183
SM
1958 (XTreassert_line_highlight, x_change_line_highlight):
1959 Remove declarations.
f3cf04d3
YM
1960 (mac_focus_changed, x_detect_focus_change): New functions and
1961 declarations.
1962 (XTextExtents16, front_emacs_window): Remove function.
1963 (mac_focus_frame): New function.
1964 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
1965 (mac_check_for_quit_char): Use it instead of front_emacs_window.
1966 (x_scroll_bar_report_motion): Obtain window from control owner.
1967 (x_make_frame_invisible): Set window manager size hint.
1968 (do_mouse_moved): Remove function.
1969 (XTread_socket): Move its contents here. Generate select-window
1970 event on mouse movement if needed. Use x_detect_focus_change on
1971 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
1972 window rectangle when dnd items are dropped.
1973 Don't activate/deactivate root control.
f3cf04d3
YM
1974 (frame_highlight, frame_unhighlight): Activate/deactivate root
1975 control here.
1976 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
1977
1978 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
1979 New extern.
1980
9e5b2858
LT
19812005-04-15 Luc Teirlinck <teirllm@auburn.edu>
1982
1983 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
1984 (lisp): Use it.
1985 (SOME_MACHINE_LISP): Add tooltip.
1986
42c6741e
YM
19872005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1988
7ec64183
SM
1989 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
1990 Don't include TextEncodingConverter.h.
42c6741e
YM
1991 (mac_system_script_code, Vmac_system_locale): New variables.
1992 (syms_of_mac): Defvar them.
1993 (mac_get_system_locale): New function.
1994
7ec64183
SM
1995 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
1996 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 1997 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
1998 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
1999 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
2000
2001 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
2002 TextEncodingConverter.h.
2003
0614c575
ST
20042005-04-13 Steven Tamm <steventamm@mac.com>
2005
7e26f91b
KS
2006 * macterm.c (syms_of_macterm): Remove redundant definition of
2007 mac-pass-control-to-system.
0614c575 2008
203eb0aa
SM
20092005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
2010
2011 * window.c (Fset_window_configuration): Be careful when you choose
2012 among several possible points for the new_current_buffer.
2013
a56e6111
YM
20142005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2015
2016 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
2017 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
2018 (Qlanguage_change) [MAC_OS]: New variable.
2019 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 2020 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
2021
2022 * macterm.c (mac_keyboard_text_encoding)
2023 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
2024 (XTread_socket): Store language-change event if keyboard script change
2025 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 2026 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 2027
7e26f91b 2028 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 2029
6695c528
RS
20302005-04-10 Richard M. Stallman <rms@gnu.org>
2031
2032 * emacs.c (standard_args): Rename --bare-bones to --quick.
2033 Add -D aka --basic-display.
2034
2035 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
2036
18e2d91f
RS
20372005-04-09 Richard M. Stallman <rms@gnu.org>
2038
2039 * keymap.c (where_is_internal): Convert a string used as event type
2040 into "(any string)".
2041
2042 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
2043 * fns.c (Vloads_in_progress): Add extern.
2044 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
2045
20462005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
2047
2048 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
2049
1cf21850
LK
20502005-04-09 Lute Kamstra <lute@gnu.org>
2051
2052 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
2053 within the accessible part of the buffer.
2054
bfd93240
KS
20552005-04-09 Kim F. Storm <storm@cua.dk>
2056
2057 * lread.c (readevalloop): Add args START and END as region in
2058 current buffer to read. Callers changed.
2059 When specified, narrow to this region only when reading,
2060 not during eval. Track next point to read from during eval.
2061 Also restore point to "real" buffer position before eval.
2062 (Feval_region): Don't save excursion and restriction here, and
2063 don't narrow to region. Just pass region to readevalloop.
2064 Note: Point is now preserved even when PRINTFLAG is nil.
2065
9ba27690
KS
20662005-04-08 Kim F. Storm <storm@cua.dk>
2067
2068 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
2069
73f0d996
KS
20702005-04-06 Kim F. Storm <storm@cua.dk>
2071
2072 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
2073
369f76bb
YM
20742005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2075
2076 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
2077 (Fmac_get_preference): Doc fix.
2078
203eb0aa
SM
2079 * macfns.c (Fx_create_frame, x_create_tip_frame):
2080 Add "fontset-mac" to fallback font/fontsets.
369f76bb 2081
2ba613a6
KS
20822005-04-04 Kim F. Storm <storm@cua.dk>
2083
4d5ddddc
KS
2084 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
2085
2ba613a6
KS
2086 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
2087 Call it again after autoload.
2088
1673df2e
JD
20892005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2090
2091 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
2092 mallopt.
2093
2094 * ralloc.c (r_alloc_init): Ditto.
2095
41639988
KH
20962005-04-01 Kenichi Handa <handa@m17n.org>
2097
1cf21850
LK
2098 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
2099 (Vascii_eqv_table): Extern them.
41639988
KH
2100
2101 * casetab.c (set_case_table): If standard is nonzero, setup
2102 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
2103
2104 * search.c (looking_at_1): Use current_buffer->case_canon_table,
2105 not DOWNCASE_TABLE.
2106 (string_match_1): Likewise.
2107 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
2108 Vascii_downcase_table.
2109 (fast_string_match_ignore_case): Likewise.
2110 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
2111 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
2112 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
2113 simple_translate.
2114
6ca53601
SM
21152005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2116
2117 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
2118 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
2119 Use XtNtopShadowPixel and XtNbottomShadowPixel.
2120 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
2121 really work and that breaks with some versions of Xaw3d.
2122
fafbb99d 21232005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
2124
2125 * coding.c (syms_of_coding): Fix previous change.
2126
6ca53601
SM
21272005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
2128
2129 * fileio.c (search_embedded_absfilename): Fix last change.
2130
bf762c98
KH
21312005-03-25 Kenichi Handa <handa@m17n.org>
2132
2133 * coding.c (syms_of_coding): Suggest to use set-coding-category in
2134 the docstring of coding-category-list.
2135
f793f885
KS
21362005-03-31 Kim F. Storm <storm@cua.dk>
2137
2138 * keyboard.c (Qmouse_fixup_help_message): New var.
2139 (syms_of_keyboard): Intern and staticpro it.
2140 (show_help_echo): Apply mouse-fixup-help-message to help string.
2141
c364fe19
KS
21422005-03-30 Kim F. Storm <storm@cua.dk>
2143
2144 * xdisp.c (display_line): Allow multiple overlay arrows in window.
2145
c70a4df6
SM
21462005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2147
2148 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
2149 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
2150 (Ffile_name_absolute_p): Use it.
2151 (search_embedded_absfilename): New fun, extracted from
2152 Fsubstitute_in_file_name. Use file_name_absolute_p.
2153 Free the pw data after use.
2154 (Fsubstitute_in_file_name): Use it.
2155 After cutting a prefix, re-check file-name-handler.
2156
6e7d0438
JR
21572005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
2158
6ca53601 2159 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
2160
2161 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
2162 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
2163
65671706
SM
21642005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2165
2166 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
2167 Use Fexit_minibuffer.
2168 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
2169
0de4dad4
SM
21702005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
2171
781da985
SM
2172 * dired.c (Ffile_attributes): Add a missing gcpro.
2173
0de4dad4
SM
2174 * alloc.c (make_number): The arg can be bigger than `int'.
2175 * lisp.h (make_number): Make prototype more precise.
2176
2177 * process.c, dired.c (Vfile_name_coding_system)
2178 (Vdefault_file_name_coding_system):
2179 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
2180 (Vdefault_file_name_coding_system): Remove unused declarations.
2181
ff18668f
JD
21822005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2183
2184 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
2185 if it failed to pop up (Gnome "show pointer on ctrl" option makes
2186 menus fail to pop up).
2187
0de4dad4 21882005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
2189
2190 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 2191 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 2192
8df0ffbe
KS
21932005-03-22 Kim F. Storm <storm@cua.dk>
2194
2195 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
2196 * dispextern.h (lookup_derived_face): Fix prototype.
2197 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
2198
2199 * xdisp.c (handle_single_display_spec): Derive left-fringe and
2200 right-fringe face from fringe face.
2201
2202 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
2203 Derive face from fringe face.
2204
6ca30ba4
JD
22052005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2206
2207 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
2208
d615870a
DK
22092005-03-22 David Kastrup <dak@gnu.org>
2210
2211 * textprop.c (Fnext_char_property_change)
66347da7 2212 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
2213 (Fnext_single_char_property_change)
2214 (Fprevious_single_char_property_change): Check that limit is a
2215 number in strings.
2216 (Fnext_single_char_property_change): Coerce position to integer.
2217 (Fprevious_single_char_property_change): Same here.
2218
32b939ea
TTN
22192005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
2220
2221 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
2222
6027e473
SM
22232005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
2224
2225 * frame.c (Fignore_event): Remove.
2226 (syms_of_frame): Don't defsubr it.
2227
2228 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
2229 redundant `ignore-event'.
2230
730f4d72
EZ
22312005-03-19 Eli Zaretskii <eliz@gnu.org>
2232
2233 * unexec.c (write_segment, unexec): Move these functions to avoid
2234 forward references (which cause errors with "gcc -gcoff").
2235
c7f6afd5
JD
22362005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2237
6027e473 2238 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 2239 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 2240
c7f6afd5
JD
2241 * xrdb.c (x_load_resources): Use different char *helv when I18N
2242 is present.
2243
db328182
KH
22442005-03-17 Kenichi Handa <handa@m17n.org>
2245
66347da7 2246 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 2247
211f2210
SM
22482005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2249
2250 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
2251 Use xic_create_fontsetname even for non-Motif menus.
2252 Don't forget to free the fontsetname.
2253
2254 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
2255
c7bd5d57
RS
22562005-03-17 Richard M. Stallman <rms@gnu.org>
2257
2258 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
2259
2260 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
2261 (Fmake_symbolic_link): Use G to read the new file name.
2262
2263 * callint.c (Finteractive): Document G option.
2264 (Fcall_interactively): Implement G option.
2265
2266 * buffer.c (buffer_lisp_local_variables): New function,
2267 broken out from Fbuffer_local_variables.
2268 (clone_per_buffer_values): Use buffer_lisp_local_variables.
2269
888953f1
SM
22702005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2271
3c916d65
SM
2272 * xfns.c (xic_create_fontsetname): Add `motif' argument.
2273 Always return a freshly allocated string.
2274 (xic_create_xfontset): Adjust call.
2275
2276 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
2277 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
2278 (dump_realized_face): Fix warning.
2279
9f9e5275
SM
2280 * emacs.c (Fkill_emacs): YAILOM.
2281
888953f1
SM
2282 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
2283
48502d68
YM
22842005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2285
2286 * mac.c (HASHKEY_TERMINAL): Remove.
2287 (HASHKEY_MAX_NID): New macro.
2288 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
2289 argument.
888953f1 2290 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
2291 (xrm_create_database, xrm_q_put_resource)
2292 (xrm_merge_string_database, xrm_q_get_resource_1)
2293 (xrm_q_get_resource): Change resource database representation so
2294 that it may not use multiple hash tables for a single database.
2295 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
2296
d5161e8c
SM
22972005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
2298
11a646cd
SM
2299 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
2300
2301 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
2302 locale-coding-system, as was already done for WINDOWSNT.
2303
d5161e8c
SM
2304 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
2305 translation for chars in the 0-255 range.
2306
568b6e41
LK
23072005-03-16 Lute Kamstra <lute@gnu.org>
2308
2309 * floatfns.c (Ffloor): Doc fix.
2310
469fb3cf
YM
23112005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2312
2313 * mac.c: Include macterm.h instead of directly including Carbon.h.
2314 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
2315 (Qarray, Qdictionary): New variables.
2316 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
2317 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
2318 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
2319 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
2320 in callback for CFDictionaryApplyFunction.
2321 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
2322 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
2323 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
2324 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
2325 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
2326 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
2327 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 2328 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
2329 (parse_binding, parse_component, parse_resource_name, parse_value)
2330 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
2331 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
2332 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
2333 New functions.
469fb3cf
YM
2334
2335 * macfns.c (mac_get_rdb_resource): Remove function.
2336 (x_get_string_resource): Use xrm_get_resource.
2337
2338 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
2339
2340 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
2341 name_list_element.
2342 (mac_make_rdb): Create resource database from preferences and
2343 argument string.
2344 (mac_term_init): Save resource database to cddr part of
2345 name_list_element.
2346
2347 * macterm.h (xrm_merge_string_database, xrm_get_resource)
2348 (xrm_get_preference_database): Add externs.
2349 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
2350 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
2351 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
2352
2353 * process.c (init_process): Change `#ifdef DARWIN' to `#if
2354 defined (DARWIN) || defined (MAC_OSX)'
2355
2356 * s/darwin.h (DARWIN): Don't define.
2357
6a3fac90
YM
23582005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2359
2360 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
2361 Remove unused variables.
2362 (syms_of_macfns): Don't initialize them. Likewise for
2363 Qface_set_after_frame_default. Defvar and initialize
2364 Vx_window_horizontal_drag_shape.
2365 (x_set_mouse_color): Change mouse pointer shape.
2366 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 2367 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
2368 (hourglass_started): New function (from xfns.c).
2369 (start_hourglass, cancel_hourglass): Put function body in #ifdef
2370 MAC_OSX.
2371 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
2372 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 2373 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
2374
2375 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
2376 Controls.h. Use ThemeCursor instead of CursHandle.
2377
d5161e8c
SM
2378 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
2379 Remove functions and declarations.
2380 (mac_set_colors): Take argument for saving background color.
2381 All callers changed.
6a3fac90
YM
2382 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
2383 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
2384 background color.
2385 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
2386 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
2387 Use SetThemeCursor.
6a3fac90
YM
2388 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
2389 indicator control to the upper-right corner of the window.
2390 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
2391 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
2392 (do_window_update): Update controls after updating content area.
2393 (mac_handle_window_event): Remove unused extern.
2394 (XTread_socket): Check both control handle and control part code
2395 to determine whether a scroll bar is clicked. Activate/deactivate
2396 root control instead of contained scroll bar controls.
2397 (make_mac_terminal_frame): Use ThemeCursor constants.
2398
d5161e8c
SM
2399 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
2400 New member hourglass_control.
6a3fac90 2401 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 2402 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 2403
a7321976
YM
24042005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2405
2406 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 2407 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
2408 laptops, and fn + `enter' on laptops.
2409
f7b758bd
SM
24102005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2411
2412 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
2413 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
2414 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
2415
2416 * xfns.c (xic_defaut_fontset): New constant.
2417 (xic_create_fontsetname): New function.
2418 Extracted from create_frame_xic. Try to generate a slightly
2419 better fontset.
2420 (xic_create_xfontset): Use it.
2421 (create_frame_xic): Simplify.
2422
dac24db4
SM
24232005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
2424
2425 * fileio.c (Fmake_symbolic_link): Fix last change.
2426
e0402468
RS
24272005-03-11 Richard M. Stallman <rms@gnu.org>
2428
2429 * fileio.c (Frename_file, Fadd_name_to_file)
2430 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
2431 expand the basename of FILE relative to it.
2432
fa815b14
KH
24332005-03-11 Kenichi Handa <handa@m17n.org>
2434
2435 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
2436 before calling setup_coding_system so that autoloading of a coding
2437 system work.
2438
817d354b
JD
24392005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2440
68a505ef
JD
2441 * xfns.c (hourglass_started): New function.
2442
2443 * dispextern.h: Declare hourglass_started.
2444
2445 * keyboard.c (Fexecute_extended_command): Restart hourglass
2446 after call to Fcompleting_read if already started.
2447
817d354b
JD
2448 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
2449 GTK main loop is entered in xterm.c, thus doing the redraw.
2450
b0a6f45c
KS
24512005-03-10 Kim F. Storm <storm@cua.dk>
2452
2453 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
2454
ee5d57b0
KH
24552005-03-08 Kenichi Handa <handa@m17n.org>
2456
2457 * frame.c (x_set_font): Call set_default_ascii_font if an
2458 available font is found.
2459
2460 * fontset.c (set_default_ascii_font): New function.
dac24db4 2461 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
2462
2463 * fontset.h (set_default_ascii_font): Extern it.
2464
f30c4a5c
KS
24652005-03-07 Kim F. Storm <storm@cua.dk>
2466
3fb26a86
KS
2467 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
2468 (clear_image_cache_count): New var.
2469 (redisplay_internal): Don't clear face and image caches in the
2470 middle of redisplay; do it afterwards.
2471
a54595d4
KS
2472 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
2473
f30c4a5c
KS
2474 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
2475 is valid. If not, clear phys_cursor_on_p and return.
2476
3d182f9d
AS
24772005-03-07 Andreas Schwab <schwab@suse.de>
2478
2479 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
2480
85d964de
RS
24812005-03-06 Richard M. Stallman <rms@gnu.org>
2482
2483 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
2484
2485 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
2486 (Feval, Ffuncall): Use CHECK_CONS_LIST.
2487
2488 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
2489
2490 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
2491 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
2492
3ff96c81
JL
24932005-03-05 Juri Linkov <juri@jurta.org>
2494
2495 * emacs.c (USAGE1): Replace Info node name "command arguments"
2496 with "emacs invocation".
2497 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
2498 allow arguments `--color' and `MODE' to be separated by space.
2499 Add --no-blinking-cursor, -nbc.
2500 (standard_args): Add -nbc, --no-blinking-cursor.
2501
64eb0083
TTN
25022005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
2503
2504 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
2505 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
2506 * fileio.c (Fexpand_file_name) [VMS]:
2507 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
2508 * doc.c (munge_doc_file_name) [VMS]: Likewise.
2509 (Fsnarf_documentation): Call munge_doc_file_name.
2510
ad708ae5
TTN
25112005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
2512
2513 * s/vms.h (FILE_SYSTEM_CASE): New macro.
2514 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
2515 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
2516
ba025f6d
YM
25172005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2518
2519 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
2520 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 2521
dac24db4 2522 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
2523
2524 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
2525 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 2526 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
2527 (mac_clear_font_name_table): Move extern to macterm.h.
2528
2529 * macfns.c (install_window_handler): Move extern to macterm.h.
2530 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
2531 valid. Don't check !NILP (dir) because it is already checked with
2532 CHECK_STRING.
2533 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 2534 specifying the default location and obtaining the selected filename.
ba025f6d
YM
2535
2536 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
2537
2313f861 2538 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
2539 are included via Carbon.h.
2540
dac24db4
SM
2541 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
2542 Define USE_CARBON_EVENTS to 1.
2313f861 2543 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
2544 (x_free_frame_resources): Call remove_window_handler for
2545 non-tooltip windows.
2546 [TARGET_API_MAC_CARBON]: Don't include headers that are included
2547 via Carbon.h.
2548 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
2549 (mac_do_receive_dragUPP): New variables.
2550 (mac_handle_service_event, init_service_handler): Put declarations
2551 and definitions in #ifdef MAC_OSX.
2552 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
2553 drag-and-drop handler functions and register them.
2554 (remove_window_handler): New function.
dac24db4
SM
2555 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
2556 Use fsspec_to_posix_pathname.
ba025f6d
YM
2557 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
2558 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
2559 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
2560 Set default cursors.
ba025f6d
YM
2561 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
2562 init_service_handler or init_quit_char_handler.
2563 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
2564
2565 * macterm.h (install_window_handler, remove_window_handler)
2566 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
2567 (mac_clear_font_name_table): New externs.
ad708ae5 2568
c1558952
TTN
25692005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
2570
2571 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
2572 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
2573 (Fexpand_file_name): Likewise.
2574
fa439170
TTN
25752005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
2576
2577 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
2578 no longer special-case VMS. Add bogus return value.
2579
db2dacf6
KS
25802005-03-02 Kim F. Storm <storm@cua.dk>
2581
2582 * dispextern.h (XASSERTS): Define to 0 if not already defined.
2583 (xassert) [!XASSERTS]: Define dummy version.
2584
0870514c
KS
25852005-03-02 Kim F. Storm <storm@cua.dk>
2586
2587 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
2588 Reported by David Kastrup.
2589
6b640092
KS
25902005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
2591
2592 * xdisp.c (get_next_display_element): Fix control and escape
2593 glyph from display vector.
2594
f4a5a485
SM
25952005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
2596
2597 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
2598
85d964de
RS
25992005-02-27 Richard M. Stallman <rms@gnu.org>
2600
2601 * xdisp.c (fast_find_position): Rename END to BEG.
2602 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
2603
6e8db3ea
JD
26042005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2605
f4a5a485 2606 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
2607 gtk_window_resize and x_wm_set_size_hint.
2608
0f465b55
KS
26092005-02-25 Kim F. Storm <storm@cua.dk>
2610
2611 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
2612
2613 * xdisp.c (init_from_display_pos): Don't read past end of
2614 it->overlay_strings array.
2615
d5fb8dab 26162005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
2617
2618 * buffer.c (syms_of_buffer): Fix typo.
2619
b02c3eed
LK
26202005-02-23 Lute Kamstra <lute@gnu.org>
2621
2622 * buffer.c (Foverlay_buffer): Doc fix.
2623
c8500765
KS
26242005-02-22 Kim F. Storm <storm@cua.dk>
2625
b686dd59
KS
2626 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
2627 and symbol keys in alists and hash tables.
2628
c8500765
KS
2629 * xdisp.c (fast_find_position): Fix search for start of overlay.
2630
81c85b53
KS
26312005-02-21 Kim F. Storm <storm@cua.dk>
2632
2633 * window.c (window_scroll_pixel_based): When scrolling backwards,
2634 handle partial visible line at end of window even when we hit PT.
2635
f4a5a485 26362005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
2637
2638 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
2639
0dd5a842
KS
26402005-02-21 Kim F. Storm <storm@cua.dk>
2641
2642 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
2643 I think those asserts are bogus if buffer contains invisible text
2644 or images.
2645
d5fb8dab 26462005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
2647
2648 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
2649
0fba9f25
KS
26502005-02-20 Kim F. Storm <storm@cua.dk>
2651
2652 * xdisp.c (pos_visible_p): Be sure to move to the specified
2653 position. Always get the full ascent / descent of the
2654 corresponding row, to return reliable rtop and rbot values.
2655 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
2656 Must look one character back, as back_to_previous_line_start
2657 returns position after the newline.
2658 (move_it_vertically_backward): Fix heuristic for when to move further
2659 back in case line_height * 2/3 is larger than window height.
2660 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
2661 as it does not do anything anymore. Add arg current_matrix_p to
2662 use current matrix rather than desired matrix when set.
2663 (try_cursor_movement): Don't scroll to make cursor row fully
2664 visible if cursor didn't move. This avoids unexpected recentering
2665 in case of blinking cursor or accepting process output.
2666 Use current matrix to check cursor row visibility.
2667 (redisplay_window): Fix whether to recenter or move to top in case
2668 cursor line is taller than window height.
2669 (find_first_unchanged_at_end_row): Stop search if we reach a row
2670 which not enabled (instead of abort).
2671
b1c2adc3
KS
26722005-02-18 Kim F. Storm <storm@cua.dk>
2673
c2ee48fb
KS
2674 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
2675 to be nil in a :box attribute value list; customize prints that
2676 as lisp value when no box color is specified.
2677
b1c2adc3
KS
2678 * .gdbinit (pitx, pit): Pretty print display iterator.
2679 (prowx, prow): Pretty print glyph row.
2680 (pcursorx, pcursor): Pretty print a window cursor.
2681 (pwinx, pwin): Pretty print struct window.
2682
f102186f
SM
26832005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2684
2685 * alloc.c (BLOCK_BYTES): Harmless typo.
2686
9b516537
AS
26872005-02-17 Andreas Schwab <schwab@suse.de>
2688
2689 * xfns.c (hack_wm_protocols): Use correct type for last parameter
2690 of XGetWindowProperty to avoid aliasing issues.
2691 (Fx_window_property): Likewise.
2692
2693 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 2694 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
2695
2696 * xterm.c (handle_one_xevent): Use union of struct input_event and
2697 struct selection_input_event to avoid aliasing issues.
2698 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
2699
886b1418
KS
27002005-02-17 Kim F. Storm <storm@cua.dk>
2701
2702 * dispextern.h (enum it_method): New enum.
2703 (GET_FROM_*): Its members.
2704 (struct it): Change member method from function pointer to enum.
2705
2706 * xdisp.c (check_it, init_from_display_pos, handle_stop)
2707 (setup_for_ellipsis, handle_single_display_spec)
2708 (handle_composition_prop, next_overlay_string)
2709 (get_overlay_strings, reseat_1, reseat_to_string)
2710 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
2711 (in_display_vector_p, display_line, get_next_display_element):
2712 Change it->method from function pointer to enum.
2713 (get_next_element): New array to map it->method to function.
2714 (get_next_display_element): Use it.
2715 (set_iterator_to_next): Use switch instead of if/else chain.
2716
99ee2c6a 27172005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
2718
2719 * w32select.c: Summary: Thorough rework to implement Unicode
2720 clipboard operations and delayed rendering.
2721
2722 Drop last_clipboard_text and related code, keep track of
f4a5a485 2723 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
2724
2725 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
2726 (clipboard_owner, modifying_clipboard, cfg_coding_system)
2727 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
2728 (current_coding_system, current_requires_encoding)
f4a5a485
SM
2729 (current_num_nls, current_clipboard_type, current_lcid):
2730 New static variables.
52c7f9ee
JR
2731
2732 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
2733 (render, render_all, run_protected, lisp_error_handler)
2734 (owner_callback, create_owner, setup_config)
f4a5a485
SM
2735 (enum_locale_callback, cp_from_locale, coding_from_cp):
2736 New local functions.
52c7f9ee
JR
2737
2738 (term_w32select, globals_of_w32select): New global functions.
2739
2740 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
2741 clipboard_owner instead. Use delayed rendering and provide
2742 all text formats. Provide CF_LOCALE if necessary.
2743
2744 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
2745 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
2746 available. Force DOS line-ends for decoding.
2747
2748 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
2749
2750 (syms_of_w32select): Init and register new variables.
2751
2752 * w32.h: Add prototypes for globals_of_w32select and
2753 term_w32select. Make the neighboring K&R declarations into
2754 prototypes, too.
2755
2756 * emacs.c: Include w32.h to get function prototypes.
2757 (main): Call globals_of_w32select.
2758
886b1418 2759 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
2760
2761 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
2762
86e61586
KS
27632005-02-16 Kim F. Storm <storm@cua.dk>
2764
2765 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
2766 at end of display vector.
2767
6407f07b
RS
27682005-02-15 Richard M. Stallman <rms@gnu.org>
2769
2770 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
2771 for mode and header lines.
2772
2773 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
2774
2775 * keymap.h (describe_map_tree): Change decl.
2776
2777 * keyboard.c (command_loop_1): Always use safe_run_hooks
2778 to run Qdeferred_action_function.
2779
2780 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
2781 (describe_map, describe_vector): Likewise. When it's 1,
2782 don't omit shadowed bindings, instead mark them as shadowed.
2783
2784 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
2785 for describe_map_tree. Pass 1 for MENTION_SHADOW.
2786
2787 * data.c (Fsetq_default): Allow no arg case.
2788
3bb917bf
KH
27892005-02-14 Kenichi Handa <handa@m17n.org>
2790
2791 * coding.c (encode_coding_string): Always return a unibyte string.
2792 If NOCOPY is nonzero and there's no need of encoding, make STR
2793 unibyte directly.
2794
2795 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
2796 multibyte string, signal an error instead of aborting.
2797
e31d908f
DN
27982005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
2799
2800 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
2801
48e029b6
KS
28022005-02-12 Kim F. Storm <storm@cua.dk>
2803
2804 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
2805
c10bb00a
KS
28062005-02-10 Kim F. Storm <storm@cua.dk>
2807
2808 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
2809 if it moves outside window or it doesn't display text.
2810
9ca0f64a
KS
28112005-02-09 Kim F. Storm <storm@cua.dk>
2812
2813 * undo.c (Fprimitive_undo): Check that undo function does not
2814 switch buffer.
2815
b8d6f4af
JD
28162005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2817
2818 * xselect.c (selection_data_to_lisp_data): For the special case
2819 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
2820 (x_property_data_to_lisp, selection_data_to_lisp_data):
2821 Comment update: data must be array of int for format == 32.
b8d6f4af 2822
3419757d
SM
28232005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
2824
2825 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
2826
3a441526
JD
28272005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2828
fc34503b
JD
2829 * xfns.c (Fx_change_window_property): Use long array when format is 32.
2830 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
2831 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
2832 (x_set_tool_bar_lines): Check that width and height is greater than
2833 zero before clearing area.
fc34503b
JD
2834
2835 * xselect.c (x_reply_selection_request): Pass long array to
2836 XChangeProperty so that 64 bit longs are handeled correctly.
2837 (x_get_window_property): If format is 32 and long is bigger than 32
2838 bits convert data from XGetWindowProperty from long array to int array.
2839 (lisp_data_to_selection_data): When the input is a vector and the
2840 format is 32, allocate a long array even if long is bigger than 32 bits.
2841 (x_fill_property_data): Use char, short and long as the man page
2842 for XChangeProperty specifies. This way the data returned is OK for
2843 both 32 and 64 bit machines.
2844 (x_handle_dnd_message): Calculate size correctly even for 64 bit
2845 machines.
2846 (Fx_send_client_event): Undo change from 2005-02-05,
2847 x_fill_property_data now handles that case.
2848
3419757d 2849 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
2850 reason for the approach in the code.
2851
82ec225b
KS
28522005-02-07 Kim F. Storm <storm@cua.dk>
2853
2854 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
2855
ba2c991c
RS
28562005-02-06 Richard M. Stallman <rms@gnu.org>
2857
2858 * eval.c (Frun_hook_with_args)
2859 (Frun_hook_with_args_until_success)
2860 (Frun_hook_with_args_until_failure): Doc fixes.
2861
e120ea40
AS
28622005-02-05 Andreas Schwab <schwab@suse.de>
2863
3419757d 2864 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 2865
31f16913
JD
28662005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2867
2868 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
2869 the longs in a XClientMessageEvent correctly when long is 64 bits.
2870
6082a820
EZ
28712005-02-05 Eli Zaretskii <eliz@gnu.org>
2872
2873 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
2874 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
2875
0e95095b
JD
28762005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2877
2878 * xmenu.c (menubar_selection_callback): Force out GTK buffered
2879 events so the menu event comes after them. This is to prevent sit-for
2880 from exiting on buffered events directly after a menu selection,
2881 lisp code for Help => About Emacs uses sit-for.
2882
2883 * gtkutil.c (create_menus): Connect selection-done event instead of
2884 the deactivate event to deactivate_cb. This will make the last
2885 leave event come before the call to deactivate_cb, so the leave
2886 event does not make sit-for exit after a menu selection.
2887
5bb6a3c1
KS
28882005-02-03 Kim F. Storm <storm@cua.dk>
2889
2890 * dispnew.c (build_frame_matrix_from_leaf_window)
2891 [!GLYPH_DEBUG]: Fix xassert.
2892
2893 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
2894
2895 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
2896
e9859e26
YM
28972005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2898
2899 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
2900 the compiling OS version.
2901
2902 * macfns.c (x_create_tip_frame): Likewise.
2903
3419757d 2904 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 2905
4e07258f
RS
29062005-02-03 Richard M. Stallman <rms@gnu.org>
2907
2908 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
2909
2910 * xdisp.c (echo_area_display): Clear echo_message_buffer.
2911
2912 * buffer.c (Fbury_buffer): Doc fix.
2913
4a34b529
ST
29142005-02-02 Steven Tamm <steventamm@mac.com>
2915
7e26f91b 2916 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 2917 xassert being uncondition, but predicate is.
7e26f91b 2918 * dispnew.c (update_window): Fix compile error due to
f6c62d96 2919 xassert being uncondition, but predicate is.
4a34b529 2920
d78f30b8
MB
29212005-02-02 Miles Bader <miles@gnu.org>
2922
2923 * dispextern.h (xassert): Enable unconditionally.
2924
b044278d
KS
29252005-02-02 Kim F. Storm <storm@cua.dk>
2926
2927 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
2928
56072160
KH
29292005-02-02 Kenichi Handa <handa@m17n.org>
2930
2931 * casefiddle.c (casify_object): Enable changing characters of
2932 different byte length.
2933 (casify_region): Fix loop condition, args to replace_range_2, and
2934 update opoint_byte.
2935
f4a5a485 2936 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 2937
5e1674c5
KS
29382005-02-01 Kim F. Storm <storm@cua.dk>
2939
2940 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
2941 stack before calling handle_display_prop.
2942
fb89c330
KS
29432005-01-31 Kim F. Storm <storm@cua.dk>
2944
2945 * undo.c (Qapply): New lisp var.
2946 (syms_of_undo): Intern and staticpro it.
2947 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
2948 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
2949
2950 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2951
7bf72fa6
JH
29522005-01-30 Jesper Harder <harder@phys.au.dk>
2953
a050b1a9
KS
2954 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
2955 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 2956
03c64f2e
LT
29572005-01-29 Luc Teirlinck <teirllm@auburn.edu>
2958
2959 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 2960 Increase value to 3 Meg.
03c64f2e 2961
49b8b5dc
JD
29622005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2963
2964 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
2965 button events are not received otherwise.
2966
5a92a9eb
RS
29672005-01-29 Richard M. Stallman <rms@gnu.org>
2968
2969 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2970
2971 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
2972
5c243ee4
SM
29732005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2974
2975 * keymap.c (access_keymap): YAILOM.
2976
caf533af
KS
29772005-01-27 Kim F. Storm <storm@cua.dk>
2978
2979 * xdisp.c (get_phys_cursor_geometry): New function to calculate
2980 phys cursor position and size for hollow cursor. Position is
2981 aligned with get_glyph_string_clip_rect and ensures that a hollow
2982 cursor is shown, even when the actual glyph is not visible.
2983
2984 * dispextern.h (get_phys_cursor_geometry): Add prototype.
2985
2986 * xterm.c (x_clip_to_row): Ensure y >= 0.
2987 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2988
2989 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2990
2991 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
2992
043f7f73
SM
29932005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
2994
2995 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
2996
889f3641
KS
29972005-01-27 Kim F. Storm <storm@cua.dk>
2998
2999 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
3000 glyph, even when row is only partially visible and actual cursor
3001 position is not visible.
3002
29099c2f
RS
30032005-01-24 Richard M. Stallman <rms@gnu.org>
3004
3005 * xterm.c (x_error_quitter): No longer static, and moved after
3006 x_error_handler.
3007
6adb6f01
KS
30082005-01-24 Kim F. Storm <storm@cua.dk>
3009
3010 * xdisp.c (move_it_by_lines): If we move forward after going too
3011 far back, cancel move if end position is same as start position.
3012
4d904fa0
ST
30132005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3014
3015 * dispextern.h (struct glyph_string): New members clip_head and
3016 clip_tail.
6adb6f01 3017
4d904fa0
ST
3018 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
3019 region to the area between clip_head and clip_tail.
3020 (draw_glyphs): Record the area that need to be actually redrawn to
3021 the new variables clip_head and clip_tail when there are
3022 overhangs. Set values of these variables to the corresponding
3023 members in struct glyph_string. Refine x coordinates for
3024 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 3025
4d904fa0
ST
3026 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
3027
3028 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
3029 QDTextBounds.
3030 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 3031 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 3032 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 3033 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 3034
f2417699
KS
30352005-01-24 Kim F. Storm <storm@cua.dk>
3036
6f67f013
KS
3037 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
3038 direction if window height was smaller than next-screen-context-lines.
3039 Now always scroll at least one line in the requested direction.
3040 Ensure that we actually do scroll backwards when requested to do so.
3041
f2417699
KS
3042 * xdisp.c (redisplay_window): Only try to make cursor line fully
3043 visible once (to avoid redisplay loop).
3044
a354b72c
KS
30452005-01-23 Kim F. Storm <storm@cua.dk>
3046
6b3d88f7 3047 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 3048 partially visible rows.
6b3d88f7
KS
3049 (window_scroll_pixel_based): Adapt to that change.
3050
5c20cae2
KS
3051 * window.c (window_scroll_pixel_based): Force moving to next line
3052 if scrolling doesn't move start point, e.g. if looking at tall image.
3053
a354b72c 3054 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
3055 Clear last_height before calling line_bottom_y to get real height.
3056 Fix calculation of y.
a354b72c 3057
d9e7c622
ST
30582005-01-22 Steven Tamm <steventamm@mac.com>
3059
3060 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 3061 (DARWIN): Define.
7e26f91b 3062
d9e7c622
ST
3063 * process.c (init_process): Default process-connection-type to
3064 nil on darwin 6 or less, t if it is 7 or higher. This way the
3065 broken pty behavior is still allowed on darwin 6 for interactive
3066 processes for people that know what they are doing.
3067
d00e399a
KS
30682005-01-22 Kim F. Storm <storm@cua.dk>
3069
3070 * window.c (auto_window_vscroll_p): New boolean.
3071 (syms_of_window): DEFVAR_BOOL it.
3072 (Fpos_visible_in_window_p): Extend return value to include RTOP
3073 and RBOT values if FULLY is nil.
3074 (window_scroll_pixel_based): Adjust vscroll for partially visible
3075 rows if auto_window_vscroll_p is set.
3076 (Fset_window_vscroll): Do nothing if vscroll is not modified.
3077
3078 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
3079 to return number of partially invisible pixels at top and bottom
3080 of the dislay row at POS.
3081
3082 * lisp.h (pos_visible_p): Fix prototype.
3083
f95a20e7
RS
30842005-01-21 Richard M. Stallman <rms@gnu.org>
3085
3086 * fileio.c (Fcopy_file): Doc fix.
3087
eee141ce
JD
30882005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3089
3090 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
3091 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
3092 start of function for older compilers.
3093
6f771c32
RS
30942005-01-20 Richard M. Stallman <rms@gnu.org>
3095
3096 * editfns.c (Fmessage): If arg is "", return "" (as before).
3097
3098 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
3099
3100 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
3101 variable.
3102
a15252fd
ST
31032005-01-20 Steven Tamm <steventamm@mac.com>
3104
043f7f73 3105 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
3106 (init_editfns): Assign new variable operating-system-release
3107 based on call to uname if available.
043f7f73 3108 (get_operating_system_release): Add function to
d00e399a 3109 allow c-level access to operating system release.
a15252fd
ST
3110
3111 * config.h: Regenerated.
3112
043f7f73
SM
3113 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
3114 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
3115 using ptys as '7'.
3116
3d6a4b2d
KS
31172005-01-20 Kim F. Storm <storm@cua.dk>
3118
62fc9b0f
KS
3119 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
3120
c310aca4
KS
3121 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
3122 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
3123
3124 * macterm.c (x_draw_glyph_string_box): Likewise.
3125
3126 * w32term.c (x_draw_glyph_string_box): Likewise.
3127
3d6a4b2d
KS
3128 * indent.c (Fvertical_motion): Temporarily disable selective display.
3129
27c8be45
KS
31302005-01-19 Kim F. Storm <storm@cua.dk>
3131
77db5cf3
KS
3132 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
3133 image property.
3134
27c8be45
KS
3135 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
3136
81f498dc
KS
31372005-01-18 Kim F. Storm <storm@cua.dk>
3138
3139 * xdisp.c (fast_find_position): Backtrack to find first row if
3140 charpos is inside a display overlay that spans multiple lines.
3141
1cdb0707
KH
31422005-01-18 Kenichi Handa <handa@m17n.org>
3143
3144 * coding.c (decode_coding_iso2022): Translate invalid codes if
3145 translation-table is specified.
3146
677159ce
KS
31472005-01-18 Kim F. Storm <storm@cua.dk>
3148
3149 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
3150 change. If handle_display_prop indicates newline is replaced by
3151 image or text, move back to start of relevant overlay or interval
3152 and continue scan from there. Simplify.
3153
977284cc
KS
31542005-01-17 Kim F. Storm <storm@cua.dk>
3155
043f7f73
SM
3156 * dispnew.c (mode_line_string, marginal_area_string):
3157 Fix off-by-one error in search for glyph.
977284cc 3158
e24531b7
KS
31592005-01-16 Kim F. Storm <storm@cua.dk>
3160
3161 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
3162
5ddd7664
ST
31632005-01-16 Steven Tamm <steventamm@mac.com>
3164
043f7f73 3165 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 3166
fc2ff44b
AS
31672005-01-16 Andreas Schwab <schwab@suse.de>
3168
3169 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
3170
50af5100
JD
31712005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3172
3173 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
3174 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
3175
a2d5fca0
JD
31762005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3177
3178 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
3179 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
3180 New flags for readable_events.
043f7f73 3181 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
3182 (tracking_off): Call readable_events and get_input_pending with
3183 flag READABLE_EVENTS_DO_TIMERS_NOW.
3184 (readable_events): Move code from old readable_filtered_events here,
3185 but check new READABLE_EVENTS_* in argument flags instead of previous
3186 two boolean arguments do_timers_now and filter_events.
3187 If we are doing mouse tracking and the mouse moved, return only if
3188 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
3189 (swallow_events): Call get_input_pending with flag
3190 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 3191 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
3192 here. Replace boolean arguments do_timers_now, filter_events with
3193 flags, and pass flags to readable_events. Document new
3194 READABLE_EVENTS_* flags.
3195 (detect_input_pending_ignore_squeezables): New function.
3196 (detect_input_pending_run_timers): Call get_input_pending with flag
3197 READABLE_EVENTS_DO_TIMERS_NOW.
3198 (Finput_pending_p): Call get_input_pending with flags
3199 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
3200
3201 * dispnew.c (update_window, update_frame_1): Replace calls to
3202 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 3203 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
3204 mouse movements.
3205
3206 * lisp.h: Declare detect_input_pending_ignore_squeezables.
3207
42afbcda
ST
32082005-01-15 Steven Tamm <steventamm@mac.com>
3209
e24531b7
KS
3210 * macterm.c (Vmac_use_core_graphics): Declare variable for
3211 mac-allow-anti-aliasing.
3212 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 3213 (mac_draw_string_common): Use core graphics text rendering if
0530c679 3214 mac-allow-anti-aliasing is enabled.
743d0696 3215
42afbcda
ST
3216 * macfns.c (Fx_file_dialog): Save As dialog includes only the
3217 file name in the text box.
3218
9cdd4884
ST
32192005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3220
043f7f73
SM
3221 * macfns.c (x_set_foreground_color, x_set_background_color):
3222 Sync with xfns.c.
9cdd4884
ST
3223 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
3224 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
3225 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
3226
88948d55
KS
32272005-01-14 Kim F. Storm <storm@cua.dk>
3228
3229 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
3230
20d6de82
RS
32312005-01-13 Richard M. Stallman <rms@gnu.org>
3232
3233 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
3234 if Voverriding_terminal_local_map is non-nil.
3235
3236 * keyboard.c (syms_of_keyboard): Doc fix.
3237
f75a592e
KS
32382005-01-13 Kim F. Storm <storm@cua.dk>
3239
3240 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 3241 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 3242
28f94a34
RS
32432005-01-12 Richard M. Stallman <rms@gnu.org>
3244
3245 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
3246 face property for characters that don't specify one.
3247
3248 * fns.c (Frequire): Record in load-history unconditionally.
3249
57a230b1
KS
32502005-01-10 Kim F. Storm <storm@cua.dk>
3251
3252 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
3253
3254 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
3255 Callers changed.
3256 Add support to merge with lisp face id too (if face_name is t).
3257
3258 * xdisp.c (get_next_display_element, next_element_from_display_vector):
3259 Don't lookup lface_id from display table glyphs here; instead use
3260 merge_faces to merge the lisp face id into current face.
3261
8ab2c119
KS
32622005-01-09 Kim F. Storm <storm@cua.dk>
3263
3264 * dispextern.h (struct it): New member dpvec_face_id.
3265 (merge_into_realized_face): Add prototype.
3266
3267 * xfaces.c (merge_into_realized_face): New function. Used to
3268 merge escape-glyph face or face from display table into current face.
3269
3270 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
3271 (syms_of_xdisp): DEFVAR_LISP it.
3272 (escape_glyph_face): Remove var.
3273 (redisplay_window): Don't initialize it.
3274 (setup_for_ellipsis, get_next_display_element):
3275 Set it->dpvec_face_id to -1.
3276 (get_next_display_element): Test Vshow_nonbreak_escape.
3277 Do not setup escape_glyph_face.
3278 Properly merge escape-glyph face or face from display table with
043f7f73
SM
3279 current face for escape and control characters.
3280 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
3281 element of display vector.
3282 (next_element_from_display_vector): If it->dpvec_face_id is set,
3283 use that instead of lface_id from glyph itself.
3284
e0910857
JD
32852005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3286
3287 * xterm.h (struct x_output): New member, toolbar_detached.
3288
3289 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
3290 38.
3291 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
3292 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
3293 (xg_create_tool_bar): Initialize toolbar_detached.
3294 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
3295 toolbar_detached is zero.
3296
ff59904a
JD
32972005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3298
9b85e63d
JD
3299 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
3300 gtk_menu_popup if not for_click, so callbacks for the menu are called.
3301
ff59904a
JD
3302 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
3303 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 3304 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
3305
3306 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 3307 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
3308 XFLOAT_DATA to get extract number from Lisp object.
3309
f9a23a6f
KS
33102005-01-07 Kim F. Storm <storm@cua.dk>
3311
3312 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
3313 Set stop_charpos to current charpos instead of 0.
3314
28f94a34
RS
33152005-01-06 Nick Roberts <nickrob@snap.net.nz>
3316
3317 * xdisp.c (Fformat_mode_line): First arg now required.
3318
a6fffcdc
ST
33192005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3320
3321 * macterm.c (XLoadQueryFont): Correctly handle 0 size
3322 font widths that are returned from some Japanese fonts.
3323
c35b0c6b
KS
33242005-01-06 Kim F. Storm <storm@cua.dk>
3325
3326 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
3327 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
3328 (destroy_fringe_bitmap): Set fringe_faces element to nil.
3329 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
3330 fringe_faces array and init elements to nil.
3331 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
3332 non-persistent face id.
3333 (mark_fringe_data): New function for GC.
3334
3335 * alloc.c (mark_fringe_data): Declare extern.
3336 (Fgarbage_collect): Call mark_fringe_data.
3337
3338 * alloc.c (overrun_check_free): Invalidate freed memory if
3339 XMALLOC_CLEAR_FREE_MEMORY is defined.
3340
e0e76ab9
ST
33412005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3342
3343 * macfns.c: Include sys/param.h.
3344 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
3345 and function.
3346 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
3347 of filename string. Set event callback function when creating
3348 dialog boxes. Add code conversions for filenames. Don't dispose
3349 apple event descriptor record if failed to create it.
3350
3351 * macterm.c: Include sys/param.h.
3352 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
3353 kEventWindowUpdate.
3354 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
3355 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
3356 of FSSpec from apple event descriptor record.
3357 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
3358 size of filename string.
3359 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
3360 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
3361 file dialog is in action.
043f7f73
SM
3362 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
3363 Reject only when there are no filename items. Set background color
e0e76ab9 3364 before (un)highlighting the window below the dragged items.
2313f861 3365 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 3366
043bc640
KH
33672005-01-05 Romain Francoise <romain@orebokech.com>
3368
3369 * term.c (encode_terminal_code): Fix buffer size computation.
3370
dd496df6
RS
33712005-01-04 Richard M. Stallman <rms@gnu.org>
3372
3373 * xdisp.c (Fformat_mode_line): Doc fix.
3374
026cdede
SM
33752005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3376
3377 * alloc.c (refill_memory_reserve): Move.
3378 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
3379 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
3380
d57c7572
RS
33812005-01-03 Richard M. Stallman <rms@gnu.org>
3382
3383 * window.c (window_scroll_pixel_based): Don't correct preserve_y
3384 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
3385
b14f868c
JR
33862005-01-03 Jason Rumney <jasonr@gnu.org>
3387
3388 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
3389 fontp->space_width to FONT_WIDTH so they are valid.
3390
3391 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 3392 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
3393 their appropriate values.
3394
3395 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
3396 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
3397 fontp->space_width.
3398
e169f939
ST
33992005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3400
3401 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
3402 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
3403 metrics for max and min bounds.
3404 (x_load_font): Correctly calculate average font width metrics.
3405
19996af4
RS
34062005-01-02 Richard M. Stallman <rms@gnu.org>
3407
3408 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
3409
42d02da0
JD
34102004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3411
3412 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
3413
1db7dd46
RS
34142004-12-31 Richard M. Stallman <rms@gnu.org>
3415
b437860a
RS
3416 * xdisp.c (setup_for_ellipsis, get_next_display_element):
3417 Set it->ellipsis_p to 1 or 0.
3418 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 3419 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
3420 (cursor_row_p): If PT's at the end of the ellipsis the row
3421 ends within, don't display cursor on this row.
3422
3423 * dispextern.h (struct it): New element ellipsis_p.
3424 (struct glyph_row): New element ends_in_ellipsis_p.
3425
3426 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
3427 position if we're reading from something other than the buffer.
3428
1db7dd46
RS
3429 * window.c (window_scroll_pixel_based): Only look at
3430 Vscroll_preserve_screen_position if the old PT can't be kept.
3431 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3432
1225f637
KS
34332004-12-30 Kim F. Storm <storm@cua.dk>
3434
3435 * xdisp.c (get_line_height_property): New function extracted from
3436 original calc_line_height_property.
3437 (calc_line_height_property): Rework. Handle t and (nil . ratio).
3438 (x_produce_glyphs): Use them to handle line-height and
3439 line-spacing according to new height spec.
3440 (Qtotal): Remove.
33b2f4ea 3441 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 3442
c243063e
KH
34432004-12-30 Kenichi Handa <handa@m17n.org>
3444
3445 * fileio.c (Finsert_file_contents): Don't use
3446 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 3447 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
3448
3449 * fontset.h (struct font_info): New members space_width and
3450 average_width.
3451
3452 * frame.h (struct frame): New member space_width.
3453 (FRAME_SPACE_WIDTH): New macro.
3454
3455 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
3456
3457 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
3458 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 3459 fontp->space_width.
043f7f73 3460 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
3461 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
3462
3463 * xdisp.c (x_produce_glyphs): Calculate tab width by
3464 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
3465
456e761b
ST
34662004-12-29 Sanghyuk Suh <han9kin@mac.com>
3467
3468 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 3469 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 3470
188577ce
LT
34712004-12-29 Luc Teirlinck <teirllm@auburn.edu>
3472
3473 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
3474
99ec74b9
RS
34752004-12-29 Richard M. Stallman <rms@gnu.org>
3476
3477 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
3478
30c92fab
ST
34792004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3480
3481 * macfns.c (install_window_handler): Modify extern to return OSErr
3482 value.
3483 (mac_window): Handle return value of install_window_handler.
3484
3485 * macterm.c (reflect_byte): Remove function.
3486 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
3487 Lookup table instead.
3488 (mac_do_font_lists): Simplify calculation of the longest
3489 nonspecial string.
3490 (init_mac_drag_n_drop): Remove function and declaration.
3491 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
3492 init_mac_drag_n_drop.
3493 (mac_do_track_drag): New function and declaration.
3494 (install_window_handler): Return OSErr value.
043f7f73
SM
3495 (install_window_handler) [TARGET_API_MAC_CARBON]:
3496 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 3497 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
3498 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
3499 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 3500
4b982924
DN
35012004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
3502
3503 * coding.c (decode_coding): Fix previous change.
3504
93fdf45f
RS
35052004-12-28 Richard M. Stallman <rms@gnu.org>
3506
3507 * xdisp.c (back_to_previous_visible_line_start):
3508 Don't call handle_display_prop.
3509
5bdca8af
DN
35102004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
3511
3512 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
3513 (decode_coding_emacs_mule, encode_coding_emacs_mule)
3514 (decode_coding_iso2022, encode_designation_at_bol)
3515 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
3516 (decode_coding): Constify arguments and local vars.
3517
33385c6f
JD
35182004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3519
3520 * xmenu.c (popup_get_selection): Only pop down dialogs
3521 on C-g and Escape.
95bdef2e 3522 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
3523 (create_and_show_popup_menu, create_and_show_dialog):
3524 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 3525
b15325b2
ST
35262004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3527
3528 * dispextern.h: Change HAVE_CARBON to MAC_OS.
3529 (struct glyph_string): Likewise.
a2c7e69a 3530
b15325b2
ST
3531 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
3532 mac_initialize.
a2c7e69a 3533
b15325b2
ST
3534 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
3535 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 3536
b15325b2 3537 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 3538
b15325b2
ST
3539 * frame.c (x_set_frame_parameters, x_report_frame_params)
3540 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
3541 (x_set_border_width, Vdefault_frame_scroll_bars):
3542 Change HAVE_CARBON to MAC_OS.
a2c7e69a 3543
b15325b2
ST
3544 * image.c [MAC_OS]: Include sys/stat.h.
3545 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
3546 QuickTimeComponents.h.
a2c7e69a 3547
b15325b2
ST
3548 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
3549 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 3550 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
3551 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
3552 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
3553 (mac_clear_font_name_table): Add extern.
3554 (Fmac_clear_font_name_table): New defun.
3555 (syms_of_mac): Defsubr it.
3556 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
3557 [MAC_OSX] (select_and_poll_event): New function.
3558 [MAC_OSX] (sys_select): Use it.
3559 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
3560 [MAC_OSX && SELECT_USE_CFSOCKET]
3561 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
3562 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
3563 RunLoop for simultaneously monitoring two kinds of inputs, window
3564 events and process outputs, without periodically polling.
a2c7e69a 3565
b15325b2
ST
3566 * macfns.c (mac_initialized): Remove extern.
3567 (stricmp): Put in #if 0. All callers changed to use xstricmp in
3568 xfaces.c.
043f7f73
SM
3569 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
3570 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
3571 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
3572 (mac_get_rdb_resource): New function (from w32reg.c).
3573 (x_get_string_resource): Use it.
3574 (install_window_handler): Add extern.
3575 (mac_window): New function.
043f7f73
SM
3576 (Fx_create_frame): Use it instead of make_mac_frame.
3577 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
3578 (Fx_open_connection, Fx_close_connection): New defuns.
3579 (syms_of_macfns): Defsubr them.
043f7f73
SM
3580 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
3581 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
3582 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
3583 (x_create_tip_frame): Don't call ShowWindow.
3584 (Fx_show_tip): Call ShowWindow.
3585 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
3586 TARGET_API_MAC_CARBON'.
3587 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
3588 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 3589
043f7f73 3590 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
3591 (Window): Typedef to WindowPtr and move outside `#if
3592 TARGET_API_MAC_CARBON'.
3593 (XSizeHints): New struct.
a2c7e69a 3594
b15325b2
ST
3595 * macterm.c (x_update_begin, x_update_end)
3596 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
3597 frame.
3598 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
3599 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
3600 (construct_mouse_click): Put in #if 0.
3601 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
3602 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
3603 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
3604 (activate_scroll_bars, deactivate_scroll_bars)
3605 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
3606 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
3607 if the position is neither user-specified nor program-specified.
3608 (x_free_frame_resources): Free size_hints.
043f7f73 3609 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
3610 (mac_clear_font_name_table): New function.
3611 (mac_do_list_fonts): Initialize font_name_table if needed.
3612 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
3613 around mac_do_list_fonts.
3614 (mac_unload_font): New function.
3615 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
3616 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
3617 and definitions with #if TARGET_API_MAC_CARBON.
3618 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
3619 (install_window_handler): Add decl.
3620 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
3621 window. Use UpdateControls. Get the rectangle that should be
3622 updated and restrict the target of expose_frame to it.
043f7f73 3623 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
3624 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
3625 (do_zoom_window): Don't use x_set_window_size.
3626 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
3627 (install_window_handler): New function.
3628 [!USE_CARBON_EVENTS] (mouse_region): New variable.
3629 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
3630 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
3631 GetEventDispatcherTarget inside BLOCK_INPUT.
3632 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
3633 Update mouse_region when mouse is moved.
3634 (make_mac_frame): Remove.
043f7f73
SM
3635 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
3636 Initialize mouse pointer shapes. Change values of f->left_pos and
3637 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
3638 Don't call ShowWindow.
b15325b2
ST
3639 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
3640 Vinvocation_name and Vsystem_name.
3641 (mac_make_rdb): New function (from w32term.c).
3642 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
3643 already been opened. Don't pass argument to
3644 mac_initialize_display_info. Don't set dpyinfo->height/width.
3645 Add entries to x_display_list and x_display_name_list.
3646 (x_delete_display): New function.
3647 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
3648 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
3649
b15325b2
ST
3650 * macterm.h (check_mac): Add extern.
3651 (struct mac_output): New member size_hints.
3652 (FRAME_SIZE_HINTS): New macro.
3653 (mac_unload_font): Add extern.
a2c7e69a 3654
b15325b2 3655 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 3656
1d1c7e75 3657 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 3658
92d2947b
RS
36592004-12-27 Richard M. Stallman <rms@gnu.org>
3660
043f7f73 3661 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
3662 (syms_of_buffer): Don't defsubr it.
3663
3664 * process.c (list_processes_1): Set undo_list instead
3665 of calling Fbuffer_disable_undo.
3666
043f7f73 3667 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 3668 single_display_prop_string_p.
043f7f73 3669 (single_display_spec_intangible_p): Rename from
92d2947b 3670 single_display_prop_intangible_p.
043f7f73 3671 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
3672 Rewritten to be easier to understand.
3673
a2c7e69a 3674 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
3675 and variables get just NAME.
3676
3677 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
3678
3679 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
3680 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
3681 (Qdefvar): Var deleted.
3682 (syms_of_eval): Don't initialze it.
3683
3684 * lread.c (syms_of_lread) <load-history>: Doc fix.
3685
9f6fcdc5
JD
36862004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3687
3688 * xmenu.c (popup_get_selection): Pop down on C-g.
3689 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
3690 pops down menu on C-g.
3691 (xdialog_show): If dialog popped down and no button in the dialog was
3692 pushed, call Fsignal to quit.
3693 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
3694 Fsignal to quit.
3695
1d1c7e75 3696 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
3697
3698 * gtkutil.c (xg_initialize): Install bindings for C-g so that
3699 dialogs and menus pop down.
3700
d8ca23a0
KH
37012004-12-27 Kenichi Handa <handa@m17n.org>
3702
3703 * coding.c (code_convert_region): Fix calculation of `ratio'.
3704
857ae68b
JD
37052004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3706
133c0116
JD
3707 * gtkutil.c (update_frame_tool_bar): Make the value of
3708 tool-bar-button-margin control margins of images in tool bar.
3709
857ae68b
JD
3710 * alloc.c (check_depth): New variable.
3711 (overrun_check_malloc, overrun_check_realloc): Only add
3712 overhead and write check pattern if check_depth is 1 (to handle
3713 recursive calls). Increase/decrease check_depth in entry/exit.
3714 (overrun_check_free): Only check for overhead if check_depth is 1.
3715 Increase/decrease check_depth in entry/exit.
3716
bd55c35c
JD
37172004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3718
3719 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
3720 before touching input_available_clear_time, to avoid accessing it
3721 from multiple threads.
3722
66354420
JR
37232004-12-23 Jason Rumney <jasonr@gnu.org>
3724
3725 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
3726 of JPEG library.
3727
55f4edbc
RS
37282004-12-22 Richard M. Stallman <rms@gnu.org>
3729
3730 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
3731
3732 * lisp.h (Vundo_outer_limit): Fix decl.
3733
3734 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
3735 Uses changed.
3736 (syms_of_undo): Initialize appropriately.
3737 (truncate_undo_list): If it's nil, there's no limit.
3738
7a0ea9e3
KH
37392004-12-22 Kenichi Handa <handa@m17n.org>
3740
3741 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
3742
fda2922a
RS
37432004-12-21 Richard M. Stallman <rms@gnu.org>
3744
3745 * eval.c (unwind_to_catch): Clear immediate_quit.
3746
3747 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
3748 specially as `\ ' and `\-'.
3749
3750 * keyboard.c (kbd_buffer_store_event_hold):
3751 In the code for while-no-input, handle immediate_quit.
3752
3753 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
3754 Call that at the very start.
043f7f73 3755 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
3756 (syms_of_alloc): Don't define undo-limit,
3757 undo-strong-limit and undo-outer-limit here.
3758
3759 * undo.c (truncate_undo_list): Return void.
3760 Take just one argument, the buffer.
3761 Make it current, and inhibit recursive GC.
3762 Access and update the undo list directly; return void.
3763 Refer to the undo...limit variables directly.
3764 Test undo_outer_limit only after counting the whole current command.
3765 When it's exceeded, call the function in undo-outer-limit-function.
3766 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
3767 (Vundo_outer_limit_function): New variable.
3768 (syms_of_undo): Define undo-limit, undo-strong-limit
3769 and undo-outer-limit here, and undo-outer-limit-function.
3770 Doc fixes.
3771
3772 * lisp.h (truncate_undo_list): Update decl.
3773
37742004-12-21 Piet van Oostrum <piet@cs.uu.nl>
3775
3776 * fileio.c (Fread_file_name): Delete duplicates in
3777 file-name-history when history_delete_duplicates is true.
3778
68c69027
ST
37792004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3780
3781 * macterm.c (mac_do_list_fonts): Fix memory leak
3782
134579f2
RS
37832004-12-20 Richard M. Stallman <rms@gnu.org>
3784
3785 * regex.c (re_match_2_internal) <symend, wordend>:
3786 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
3787
fbe6152f
ST
37882004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3789
043f7f73
SM
3790 * macterm.c (endif, x_font_name_to_mac_font_name):
3791 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
3792 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
3793 quickly finding a specific font without needing regexps.
3794
fecad3f6
JD
37952004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3796
333f1b6f
JD
3797 * syssignal.h: Declare main_thread.
3798 (SIGNAL_THREAD_CHECK): New macro.
3799
3800 * keyboard.c (input_available_signal): Move thread checking code
3801 to macro SIGNAL_THREAD_CHECK and call that macro.
3802 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
3803
3804 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
3805
3806 * emacs.c: Define main_thread.
3807 (main): Initialize main_thread.
3808 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
3809 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
3810
3811 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
3812
3813 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
3814
3815 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
3816
043f7f73
SM
3817 * process.c (send_process_trap, sigchld_handler):
3818 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
3819
3820 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
3821
3822 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
3823
fecad3f6
JD
3824 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
3825 returning when xg_ignore_gtk_scrollbar is true.
3826
2a84c6da
KS
38272004-12-14 Kim F. Storm <storm@cua.dk>
3828
3829 * keyboard.c (read_char): Save and restore echo_string when
3830 handling input method.
3831
d9c1ce9d
RS
38322004-12-13 Richard M. Stallman <rms@gnu.org>
3833
3834 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
3835
3836 * keyboard.c (Vthrow_on_input): New variable.
3837 (syms_of_keyboard): Defvar and initialize it.
3838 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
3839
3840 * lisp.h (QUIT): Check for Vthrow_on_input.
3841 (Vthrow_on_input): Declare it.
3842
a6495ed5
KS
38432004-12-13 Kim F. Storm <storm@cua.dk>
3844
3845 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
3846 vector.
3847
24a0e22f
RS
38482004-12-12 Richard M. Stallman <rms@gnu.org>
3849
3850 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
3851
3852 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
3853 (Ftry_completion): Really use outer `zero'; eliminate inner one.
3854
d6d31e57
KH
38552004-12-12 Kenichi Handa <handa@m17n.org>
3856
3857 * term.c (encode_terminal_code): Fix previous change.
3858
6f8ffb88
SM
38592004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
3860
fb6f5cbf
SM
3861 * keyboard.c (handle_async_input): Remove pthread mutex handling.
3862 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
3863
6f8ffb88
SM
3864 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
3865 in macro arguments.
3866
3867 * minibuf.c (Ftry_completion, Fall_completions): Don't use
3868 XFASTINT blindly.
3869
3870 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
3871
c83c9f9d
JD
38722004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3873
2f25767f
JD
3874 * w32term.c (x_calc_absolute_position): Remove calculation of
3875 difference between inner and outer window. Don't subtract difference
3876 for left and top calculations.
3877
c83c9f9d
JD
3878 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
3879 for left and top calculations. Remove call to x_real_positions.
24a0e22f 3880 [Bug report by Drew Adams in November]
c83c9f9d
JD
3881 (x_check_expected_move): Do not set change_gravity to 1 when calling
3882 x_set_offset.
3883
cc1caa4e
RS
38842004-12-08 Richard M. Stallman <rms@gnu.org>
3885
3886 * xdisp.c (get_next_display_element): Use `escape-glyph' for
3887 control chars and escaped octal codes.
3888 (Qescape_glyph): New variable.
3889 (syms_of_xdisp): Initialize it.
3890 (escape_glyph_face): New variable.
3891 (redisplay_window): Initialize it.
3892
e0e30823
RS
38932004-12-07 Paul Eggert <eggert@cs.ucla.edu>
3894
3895 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
3896 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
3897
f415cacd
JD
38982004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3899
cf435f39
JD
3900 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
3901 reset_malloc_hooks.
3902
6f8ffb88
SM
3903 * keyboard.c (handle_async_input, input_available_signal):
3904 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 3905
f415cacd
JD
3906 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
3907
043f7f73 39082004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
3909
3910 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
3911
3912 * config.in: Regenerate.
3913
ded997c1
JD
39142004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3915
453a4f1b
JD
3916 * xmenu.c (Fx_popup_menu): Correct documentation about position.
3917 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
3918 if not given by a mouse click to correspond with x-popup-menu
3919 documentation.
3920
9a38524c
JD
3921 * config.in: Regenerate.
3922
aa477689
JD
3923 * gtkutil.c: Include signal.h and syssignal.h.
3924 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
3925
3926 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
3927 new variables main_thread and alloc_mutex,
3928 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
3929 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
3930 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
3931 (UN)BLOCK_INPUT.
3932 (emacs_blocked_free, emacs_blocked_malloc)
3933 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
3934 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
3935 (reset_malloc_hooks): New function.
3936
3937 * lisp.h: Declare reset_malloc_hooks.
3938
3939 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
3940
3941 * keyboard.c: Conditionally include pthread.h
6f8ffb88 3942 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
3943 thread, block signal, send signal to main thread and return.
3944
ded997c1 3945 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 3946 Set current folder in file chooser if default_filename is a directory.
ded997c1 3947
c72b0edd
SM
39482004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
3949
3950 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
3951 Remove redundant correctness checks.
3952 (regex_compile): Fix up error codes for \{..\} expressions.
3953
c721eee5
RS
39542004-12-05 Richard M. Stallman <rms@gnu.org>
3955
3956 * regex.c (regex_compile): Fix end-of-pattern case for space.
3957
d8f96db8
ST
39582004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3959
6108209e
KS
3960 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
3961 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 3962 crashes with invalid characters.
6108209e
KS
3963 * macmenu.c (add_menu_item): Use it.
3964 * image.c (image_load_quartz2d): Likewise.
3965 * macfns.c (x_set_name, x_set_title): Likewise.
3966 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
3967 creating them each time for labels.
d8f96db8 3968
ab67e8b6
RS
39692004-12-02 Richard M. Stallman <rms@gnu.org>
3970
3971 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
3972 don't use it here.
3973
3974 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
3975 (interactive_p): Skip Scalled_interactively_p frames
3976 like Sinteractive_p frames.
b8217ea6 3977 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
3978
3979 * data.c (Fmake_variable_buffer_local): Doc fix.
3980 (Fmake_local_variable): Doc fix.
3981
3982 * insdel.c (insert_from_string_before_markers)
3983 (insert_from_string): Don't modify buffer on empty insertion.
3984
3985 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
3986
f86bdc80
ST
39872004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3988
3989 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
3990 menu text as UTF8 fails.
3991
1cae6d39
KS
39922004-12-01 Kim F. Storm <storm@cua.dk>
3993
3994 * alloc.c: Add commentary for last change.
3995 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
3996 sizeof(size_t) != 4.
3997 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
3998 Use them. Also clear header and trailer of freed memory.
3999 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
4000 (string_overrun_cookie): Rename from string_overrun_pattern.
4001 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
4002
77ea0764
AS
40032004-12-01 Andreas Schwab <schwab@suse.de>
4004
4005 * lisp.h: Declare string_to_multibyte.
4006
2d5cd4e6
KH
40072004-12-01 Kenichi Handa <handa@m17n.org>
4008
4009 * w32console.c (w32con_write_glyphs): Decide coding here.
4010 Adjusted for the change of encode_terminal_code.
4011
4012 * term.c (encode_terminal_code): Don't make it "static".
4013
25a0994a
KH
40142004-11-30 Kenichi Handa <handa@m17n.org>
4015
19b1f29a 4016 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 4017 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
4018 characters at once, and return a pointer to the result of encoding.
4019 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
4020 (insert_glyphs): Likewise.
4021 (term_init): Initialize encode_terminal_bufsize to 0.
4022
4023 * coding.c (Vcode_conversion_workbuf_name): New variable.
4024 (syms_of_coding): Initialize and staticpro it.
4025 (set_conversion_work_buffer): New function.
4026 (run_pre_post_conversion_on_str): Use it.
4027 (run_pre_write_conversin_on_c_str): New function.
4028
4029 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
4030
fc7a70cc
ST
40312004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4032
4033 * keyboard.c: Don't undef SIGIO
4034 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
4035 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
4036 (macfns.o): Don't depend on ccl.h.
4037 * macfns.c (mac_frame_parm_handlers): Set handlers for
4038 Qleft_fringe and Qright_fringe.
4039 * macterm.c (mac_fill_rectangle_to_pixmap)
4040 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
4041 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
4042 Put in #if 0.
4043 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
4044 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
4045 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
4046 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4047 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
4048 XDrawImageString. Always draw background and foreground separately.
4049 (x_draw_image_foreground): Use clipping instead of computing the
4050 intersection rectangle.
4051 (x_draw_image_glyph_string): Don't draw an image with mask to a
4052 pixmap.
4053 (x_redisplay_interface): Set flush_display_optional member to 0.
4054 (XTread_socket): Correctly reset the TEConverter
4055 object.
4056
fc368889
KS
40572004-11-30 Kim F. Storm <storm@cua.dk>
4058
4059 * lisp.h: New defines to enable buffer overrun checking.
4060 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
4061 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
4062
4063 * alloc.c: Add more checks for buffer overruns.
4064 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
4065 xmalloc_overrun_check_trailer, overrun_check_malloc)
4066 overrun_check_realloc, overrun_check_free): Add.
4067 (GC_STRING_EXTRA, string_overrun_pattern): Add.
4068 (check_sblock, allocate_string_data, compact_small_strings):
4069 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
4070 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
4071 (check_string_free_list): Add.
4072 (allocate_string, sweep_strings): Call check_string_free_list.
4073
4074 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
4075 XMALLOC_OVERRUN_CHECK to avoid crash during load.
4076
0af8cfe1
KS
40772004-11-29 Kim F. Storm <storm@cua.dk>
4078
4079 * fns.c (concat): Use SAFE_ALLOCA.
4080
77220eeb
SM
40812004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
4082
4083 * sysdep.c (emacs_write): Don't use QUIT.
4084
a778cf63
KH
40852004-11-29 Kenichi Handa <handa@m17n.org>
4086
4087 * buffer.c (init_buffer): Set current_buffer->directory to a
4088 multibyte string made by string_to_multibyte.
4089
77220eeb 4090 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 4091
e3177e43
AS
40922004-11-27 Andreas Schwab <schwab@suse.de>
4093
4094 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
4095
4096 * s/gnu-linux.h: Enable no-op gcpros on ia64.
4097 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
4098
77220eeb
SM
4099 * filelock.c (lock_file_1): Call get_boot_time early.
4100 Increase buffer size.
e3177e43 4101
ca5e6fef
EZ
41022004-11-27 Eli Zaretskii <eliz@gnu.org>
4103
4104 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
4105 is not defined.
4106
e2811828
KS
41072004-11-27 Kim F. Storm <storm@cua.dk>
4108
4109 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
4110 marker out of doc string.
4111
7a262394
SM
41122004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
4113
4114 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
4115 which was not mentioned in the log.
4116
f33cc5a9
KS
41172004-11-26 Kim F. Storm <storm@cua.dk>
4118
048bb03f
KS
4119 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
4120 angle bitmaps at top/bottom line.
4121
52eb0373 4122 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
4123 set it when it->method is set to next_element_from_display_vector.
4124 (setup_for_ellipsis): Add LEN argument. Callers changed.
4125 Set it->saved_face_id.
4126 (get_next_display_element): Use loop instead of recursion.
4127 Set it->saved_face_id. Combine duplicate code for ctr chars.
4128 (next_element_from_display_vector): Do not set it->saved_face_id.
4129 (next_element_from_ellipsis): Use setup_for_ellipsis.
4130
670e8906
EZ
41312004-11-26 Eli Zaretskii <eliz@gnu.org>
4132
4133 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
4134 prevent compiler warnings.
4135
275464e7
SM
41362004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
4137
1bf0e604
SM
4138 * keyboard.c (command_loop_1): Print a message describing the key
4139 the user just pressed when this key has no binding.
4140
275464e7
SM
4141 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
4142 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
4143
4144 * lread.c (readchar): Check QUIT when `getc' is interrupted.
4145
261b01c6
RS
41462004-11-24 Richard M. Stallman <rms@gnu.org>
4147
4148 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
4149
4150 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
4151
a5bd504e
KS
41522004-11-24 Kim F. Storm <storm@cua.dk>
4153
4154 * xdisp.c (move_it_in_display_line_to, display_line):
4155 Restore saved_face_id also when truncate-lines or hscrolled.
4156
255e4140
JD
41572004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4158
4159 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
4160 x-use-old-gtk-file-dialog.
4161
4162 * xfns.c: Define x_use_old_gtk_file_dialog.
4163 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
4164 outside ifdef USE_GTK.
4165
cab27d04
SM
41662004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
4167
4168 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
4169 Don't use XFASTINT blindly.
4170
4171 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
4172
4173 * indent.c (skip_invisible): Avoid non-idempotent side-effects
4174 in macro arguments.
4175
4176 * keymap.c (Flookup_key): Check INTEGERP before XINT.
4177
4178 * lread.c (oblookup): Don't use XFASTINT blindly.
4179
4180 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
4181 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
4182
11e0be49
KS
41832004-11-23 Kim F. Storm <storm@cua.dk>
4184
4d721114
KS
4185 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
4186 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
4187
11e0be49
KS
4188 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
4189 signal_p is zero and face name is unknown.
4190 (Fx_list_fonts): Don't signal error in lookup_named_face.
4191 (Fface_font): Signal error in lookup_named_face.
4192 (ascii_face_of_lisp_face): Likewise.
4193
4194 * dispextern.h (lookup_named_face): Fix prototype.
4195
4196 * xdisp.c (handle_single_display_prop): Don't signal error in
4197 lookup_named_face for unknown fringe face name.
4198 (highlight_trailing_whitespace): Don't signal error in
4199 lookup_named_face if trailing-whitespace face unknown.
4200 (calc_line_height_property): Don't signal error in
4201 lookup_named_face if specified face name is unknown.
4202
4203 * fringe.c (update_window_fringes): Show top row indicator if
4204 window has header-line. Don't show arrow at bob and eob
4205 if the boundary indicators are not used.
4206 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
4207
4208 * window.c (set_window_buffer): Clear display_error_modiff.
4209
0960a582
KS
42102004-11-22 Kim F. Storm <storm@cua.dk>
4211
4212 * fringe.c (update_window_fringes): Provide sensible fall-back
4213 value for non-nil indicate-buffer-boundaries setting.
4214
b0e9bb28
MR
42152004-11-22 Markus Rost <rost@ias.edu>
4216
4217 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
4218
d0bce91e
SM
42192004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
4220
4221 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
4222
e1814672
KS
42232004-11-21 Kim F. Storm <storm@cua.dk>
4224
b7fd3518
KS
4225 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
4226
4227 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
4228 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4229
4230 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
4231 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4232
4233 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
4234 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
4235
d0bce91e
SM
4236 * xdisp.c (move_it_in_display_line_to, display_line):
4237 Restore saved_face_id if overflow-newline-into-fringe is enabled and
4238 line is continued before or in middle of element from display vector.
f01d4d05 4239
f1a61389
KS
4240 * indent.c (Fvertical_motion): Fix last change. Use another
4241 method to detect if iterator moved too far ahead after reseat.
4242
e1814672
KS
4243 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
4244 expand matrix width for overflow in zero-width area.
4245 (append_glyph, append_composite_glyph, produce_image_glyph)
4246 (append_stretch_glyph): Use it to avoid loop in redisplay.
4247 (note_mode_line_or_margin_highlight): Don't let help-echo from
4248 string override help-echo from image map.
4249
2dafe1c9
LT
42502004-11-20 Luc Teirlinck <teirllm@auburn.edu>
4251
d0bce91e 4252 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
4253 * callint.c (Fcall_interactively): Ditto.
4254
fd6866c8 42552004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
4256
4257 * minibuf.c (Fminibuffer_complete_and_exit):
4258 Fixup the case of the completed value, for case-indep completion.
4259
dedbac89
RS
42602004-11-20 Richard M. Stallman <rms@gnu.org>
4261
fd6866c8
RS
4262 * lisp.h (Fread_from_minibuffer): Add arg in decl.
4263
9d00469f 4264 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 4265 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 4266
dedbac89 4267 * search.c (Vsearch_spaces_regexp):
d0bce91e 4268 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 4269
2f672bb5
TTN
42702004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
4271
4272 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
4273
f31a9a68
RS
42742004-11-19 Richard M. Stallman <rms@gnu.org>
4275
4276 * search.c (Vsearch_whitespace_regexp): New variable.
4277 (syms_of_search): Defvar it.
4278 (compile_pattern_1): Call re_set_whitespace_regexp with it.
4279 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
4280 is non-nil.
6de891db
RS
4281 (struct regexp_cache): New element whitespace_regexp.
4282 (syms_of_search): Initialize whitespace_regexp elements.
4283 (compile_pattern): Compare whitespace_regexp elements.
4284 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
4285
4286 * regex.c (regex_compile): Substitute whitespace_regexp
4287 for spaces, if it is nonzero.
4288 (whitespace_regexp): New variable.
4289 (re_set_whitespace_regexp): New function.
4290
cbc34cb3
KS
42912004-11-19 Kim F. Storm <storm@cua.dk>
4292
4293 * indent.c (Fvertical_motion): Fix last change.
4294
b54a7539
KS
42952004-11-18 Kim F. Storm <storm@cua.dk>
4296
4297 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
4298 Instead, move back again if reseating moves too far ahead.
4299
43002004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
4301
4302 * xdisp.c (message3): Call clear_message.
4303
5ff504fe
KS
43042004-11-17 Kim F. Storm <storm@cua.dk>
4305
4306 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
4307
5ae53dcf
JD
43082004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4309
d0bce91e 4310 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 4311
6abf3a27 4312 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
4313 (x_menu_set_in_use): Also set popup_activated_flag.
4314
5ff504fe 4315 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
4316 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
4317
52eb0373 4318 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 4319
ee31cd78
RS
43202004-11-16 Richard M. Stallman <rms@gnu.org>
4321
6abf3a27
SM
4322 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
4323 Use map-keymap-internal to implement that.
ee31cd78
RS
4324
4325 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
4326
6abf3a27
SM
43272004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
4328
4329 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
4330 a window before using XWINDOW.
4331
4332 * window.c (make_window, Fselect_window, make_dummy_parent)
4333 (save_window_save):
4334 * frame.c (make_frame):
4335 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
4336
4337 * lisp.h (NILP): Use EQ rather than XFASTINT.
4338
b4d61105
KS
43392004-11-16 Kim F. Storm <storm@cua.dk>
4340
6abf3a27 4341 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 4342
b4d61105
KS
4343 * indent.c (Fvertical_motion): Fix last change. Only reseat when
4344 moving backwards.
4345
43462004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
4347
4348 * dispextern.h: Extern reseat_at_previous_visible_line_start.
4349
ab5b02b0
KH
43502004-11-16 Kenichi Handa <handa@m17n.org>
4351
4352 * xdisp.c (display_mode_element): Fix previous change (calculate
4353 end position of substring to display correctly).
4354
c482cf97
KS
43552004-11-16 Kim F. Storm <storm@cua.dk>
4356
4357 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
4358 Reported by Andrew M. Scott.
4359
9f89426b
KS
43602004-11-15 Kim F. Storm <storm@cua.dk>
4361
4362 * fns.c (Fsafe_plist_get): New defun.
4363 (syms_of_fns): Defsubr it.
4364
4365 * lisp.h (Fsafe_plist_get): Add EXFUN.
4366
4367 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
4368 Use Fsafe_plist_get.
4369 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4370 Fix image map element parsing. Use Fsafe_plist_get.
4371
27418463
RS
43722004-11-15 Richard M. Stallman <rms@gnu.org>
4373
4374 * xdisp.c (get_next_display_element): Fix previous change.
4375
a130b901
JD
43762004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4377
ef614e04
JD
4378 * window.c (shrink_windows): Handle special case of one window left
4379 when trying to shrink the final reminder. Grow windows if
4380 total_removed is less than total_shrink.
4381
a130b901
JD
4382 * xmenu.c (pop_down_menu): Remove global variable current_menu,
4383 extract pointer from arg with XSAVE_VALUE.
46303896
KS
4384 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
4385 Construct arg to record_unwind_protect with make_save_value.
a130b901 4386
d9a03ad2
RS
43872004-11-13 Richard M. Stallman <rms@gnu.org>
4388
4389 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
4390 (get_next_display_element): Fix previous change to apply only to \n.
4391
4392 * indent.c (Fvertical_motion): Scan to PT from start of line to
4393 make iterator consistent.
4394
4395 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
4396
b3935289
JD
43972004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4398
4399 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
4400
4401 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
4402 Record unwind with clean_up_file_dialog.
4403
78819ebb
KS
4404 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
4405 Declare.
b3935289
JD
4406
4407 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
4408
af89e871
JD
44092004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4410
457a8155 4411 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 4412 (xg_file_sel_destroy): Remove.
46303896
KS
4413 (xg_file_response_cb, pop_down_file_dialog)
4414 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 4415 New functions.
6abf3a27
SM
4416 (xg_get_file_with_chooser, xg_get_file_with_selection):
4417 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
4418 Move common code to xg_get_file_name. Return widget created.
4419 (xg_get_file_name): Set name, transient for, modal and destroy
4420 with parent here. Connect response signal to xg_file_response_cb,
4421 connect delete-event to gtk_true. Record pop_down_file_dialog
4422 for unwind. Do event loop and call x_menu_wait_for_event in loop.
4423 (xg_create_widget): Make dialogs modal.
4424
af89e871
JD
4425 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
4426 Lisp_Object.
4427 (popup_get_selection): Move unwind protect ...
4428 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
4429 Move destroy of widget to pop_down_menu.
4430 (popup_widget_loop): Move unwind protect ...
4431 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
4432 Move destroy of widget to pop_down_menu.
4433 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 4434 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
4435 x_mouse_leave and grabbed = 0 to pop_down_menu.
4436
5596fbf1
KS
44372004-11-13 Kim F. Storm <storm@cua.dk>
4438
4439 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
4440 (syms_of_xdisp): DEFVAR_BOOL it.
4441 (make_cursor_line_fully_visible, try_cursor_movement)
4442 (try_window_id): Use it.
4443
b9de078a
KS
44442004-11-12 Kim F. Storm <storm@cua.dk>
4445
381f7091
KS
4446 * dispextern.h (struct glyph_row): New member extra_line_spacing.
4447 (struct it): New member max_extra_line_spacing.
4448 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
4449 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
4450 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
4451 part of last line is only extra line spacing (so the text on the
52eb0373 4452 line is fully visible). Use helper macros.
381f7091
KS
4453 Add W arg (to use them). All callers changed.
4454 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
4455 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
4456
6abf3a27
SM
4457 * window.c (window_scroll_pixel_based, Frecenter):
4458 Use move_it_vertically_backward directly.
381f7091
KS
4459 (Frecenter): Fix calculation of new start pos for negative arg.
4460 Before, the new start pos was sometimes chosen too far back, so
4461 the last line became only partially visible, and thus would be
4462 either only semi-visible or automatically scrolled to the middle
4463 of the window by redisplay.
4464
4465 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
4466 (move_it_vertically_backward): Don't recure to move further back.
4467 (move_it_vertically): Remove superfluous condition.
4468 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 4469 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
4470 (display_tool_bar_line): Clear row->extra_line_spacing.
4471 (try_scrolling): Use move_it_vertically_backward directly.
4472 (redisplay_window): Likewise.
4473 (compute_line_metrics): Set row->extra_line_spacing.
4474 (display_line, display_string): Likewise.
4475 (x_produce_glyphs): Update it->max_extra_line_spacing.
4476
b9de078a
KS
4477 * xmenu.c (pop_down_menu): Return nil.
4478
c3438661
JD
44792004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4480
4481 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 4482 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 4483 to handle timers.
df00f436
JD
4484 (popup_widget_loop): Add argument do_timers.
4485 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
4486 do_timers to popup_widget_loop.
c3438661
JD
4487 (xmenu_show): Call XMenuActivateSetWaitFunction so that
4488 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 4489 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 4490 popup_get_selection.
f1d1cd24
JD
4491 (pop_down_menu): New function.
4492 (popup_get_selection, popup_widget_loop): Unwind protect to
4493 pop_down_menu.
4494 (popup_widget_loop): Add argument widget.
4495 (create_and_show_popup_menu, create_and_show_dialog): Pass new
4496 argument widget to popup_widget_loop.
c3438661 4497
32e2fb04
SM
44982004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
4499
4500 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
4501
0faf6806
KS
45022004-11-09 Kim F. Storm <storm@cua.dk>
4503
4504 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
4505 Fix various comments referring to XEvents instead of input events.
4506 (x_queue_event): Fix format strings.
4507 (x_stop_queuing_selection_requests): Likewise.
4508
4509 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
4510 (pint2hrstr): Add extra braces to silence compiler.
4511
4512 * print.c (print_object): Fix format string.
4513
4514 * lread.c (read1): Fix next_char matching.
4515
4516 * lisp.h (Fdelete): Add EXFUN.
4517 (replace_range_2): Add prototype.
4518
4519 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
4520
4521 * intervals.h (NULL_INTERVAL_P): Add separate version when
4522 ENABLE_CHECKING is not defined to silence compiler.
4523 (compare_string_intervals): Add prototype.
4524
4525 * fringe.c (destroy_fringe_bitmap): Fix return type.
4526 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
4527
4528 * emacs.c (Fdump_emacs): Fix format string.
4529
4530 * doc.c: Include <ctype.h>.
4531 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
4532
4533 * data.c (store_symval_forwarding): Remove unused variables.
4534
4535 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
4536
16bf4e32
JD
45372004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4538
4539 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
4540 to ${OLDXMENU}.
4541
cdb805a9
KS
45422004-11-09 Kim F. Storm <storm@cua.dk>
4543
4544 * process.c (Fmake_network_process): Remove kludge for interrupted
4545 connects on BSD. If connect is interrupted, just close socket and
4546 start over rather than sleeping and retry with same socket.
4547
d87a9ab8 45482004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 4549
a8b16c80
JD
4550 * .cvsignore: Add buildobj.lst.
4551
d87a9ab8
JD
4552 * doc.c: New variable Vbuild_files.
4553 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 4554 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
4555 that are in Vbuild_files.
4556 (syms_of_doc): Defvar Vbuild_files.
4557
4558 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
4559 and w32*.o.
4560 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 4561 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
4562
4563 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
4564 is linked.
4565
b6709e77
KS
45662004-11-09 Kim F. Storm <storm@cua.dk>
4567
4568 * fringe.c (update_window_fringes): Update fringe bitmaps if
4569 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
4570 also update previous row to get rid of misc. artifacts.
4571
bae9677d
KS
45722004-11-08 Kim F. Storm <storm@cua.dk>
4573
4574 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 4575 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 4576
3f8ea68c
EZ
45772004-11-08 Eli Zaretskii <eliz@gnu.org>
4578
4579 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
4580 Don't include <sys/time.h> explicitly.
4581 Include <stdio.h> unconditionally, not just on MacOS.
4582
a653f812
KH
45832004-11-08 Kenichi Handa <handa@m17n.org>
4584
4585 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
4586 don't pay attention to '\' before '*'.
4587 (fontset_pattern_regexp): Change the meaning of the second arg.
4588 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
4589 (check_fontset_name): Try NAME as literal at first, and if it
4590 failes, try NAME as pattern.
4591
c37caf9d
JD
45922004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4593
4594 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
4595
b72915a7
AS
45962004-11-07 Andreas Schwab <schwab@suse.de>
4597
78819ebb
KS
4598 * lisp.h (Fmsdos_downcase_filename): Declare.
4599 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
4600 * fileio.c: Likewise.
4601
238a44a8
JD
46022004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4603
4604 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
4605 comparisons with integers instead of Lisp_Object address.
4606 (Fmsdos_set_keyboard): Declare argument allkeys.
4607
4608 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
4609
78819ebb 4610 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
4611 int/Lisp_Object mixup.
4612
4613 * fileio.c: Ditto.
4614
31141c13
ST
46152004-11-06 Steven Tamm <steventamm@mac.com>
4616
4617 * editfns.c: Need to include sys/time.h before resource.h on darwin.
4618
f28c1bd9
RS
46192004-11-06 Richard M. Stallman <rms@gnu.org>
4620
4621 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
4622
4623 * xfaces.c (merge_named_face): GCPRO the face_name in the
4624 named_merge_point struct that we make.
4625 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
4626
4627 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
4628 before deciding whether to inactivate mark.
4629
59dede22
EZ
46302004-11-06 Lars Brinkhoff <lars@nocrew.org>
4631
4632 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
4633 * editfns.c (Fget_internal_run_time): New function.
4634 (syms_of_data): Defsubr it.
4635 * fns.c (sxhash): As far as possible, merge calculation of
4636 hash code for symbols and strings.
59dede22 4637
27540e81
EZ
46382004-11-06 Eli Zaretskii <eliz@gnu.org>
4639
4640 * frame.c (syms_of_frame): Fix the example in the doc string.
4641
df470e3b
JD
46422004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4643
4644 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
4645
4646 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
4647 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 4648
4cc8522c
LT
46492004-11-05 Luc Teirlinck <teirllm@auburn.edu>
4650
4651 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
4652
d4a42098
KS
46532004-11-05 Kim F. Storm <storm@cua.dk>
4654
a8490886
KS
4655 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
4656
d4a42098
KS
4657 * fileio.c (Ffile_modes): Doc fix.
4658 (auto_save_1): Check for Ffile_modes nil value.
4659
36a2b04c
KS
46602004-11-05 Kim F. Storm <storm@cua.dk>
4661
4662 * xselect.c (struct selection_event_queue, selection_queue)
4663 (x_queue_selection_requests, x_queue_event)
4664 (x_start_queuing_selection_requests)
4665 (x_stop_queuing_selection_requests): Add new queue for selection
4666 input events to replace previous XEvent queue in xterm.c.
4667 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
4668 (x_reply_selection_request): Adapt to new queue.
4669 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
4670 (x_handle_selection_request, x_handle_selection_clear): Make static.
4671 (x_handle_selection_event): New function. May queue selection events.
4672 (wait_for_property_change_unwind): Use save_value instead of cons.
4673 Clear property_change_reply_object.
4674 (wait_for_property_change): Abort if already waiting.
4675 Use save_value instead of cons for unwind data.
4676 (x_handle_property_notify): Skip events already arrived, but don't
4677 free them, as "arrived" field is checked by wait_for_property_change,
4678 and it will be freed by unwind or explicit unexpect_property_change.
4679 (x_get_foreign_selection): Add to new queue.
4680 (receive_incremental_selection): Don't unexpect wait_object when done
4681 as it has already been freed by previous wait_for_property_change.
4682
4683 * xterm.h (x_start_queuing_selection_requests)
4684 (x_stop_queuing_selection_requests, x_handle_selection_request)
4685 (x_handle_selection_clear): Remove prototypes.
4686 (x_handle_selection_event): Add prototype.
4687
4688 * xterm.c (handle_one_xevent): Don't queue X selection events
4689 here, it may be too late if we start queuing after we have already
4690 stored some selection events into the kbd buffer.
4691 (struct selection_event_queue, queue, x_queue_selection_requests)
4692 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
4693 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
4694 (x_catch_errors_unwind): Block input around final XSync.
4695
4696 * keyboard.h (kbd_buffer_unget_event): Add prototype.
4697
4698 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
4699 (kbd_buffer_unget_event): New function.
4700 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
4701 and use x_handle_selection_event.
4702 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
4703
9c3ad9e1
JD
47042004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4705
4706 * xselect.c (TRACE3): New debug macro.
4707 (x_reply_selection_request): Use it.
4708 (receive_incremental_selection): In call to TRACE0, the name of
4709 a symbol is in xname.
4710
a33b89de
KS
47112004-11-05 Kim F. Storm <storm@cua.dk>
4712
4713 * fontset.c (fontset_pattern_regexp): Use unsigned char.
4714
a872928c
JD
47152004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4716
88208bb8
JD
4717 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
4718
78819ebb 4719 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
4720
4721 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 4722 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
4723 * xfns.c (syms_of_xfns): ... to here.
4724
a872928c
JD
4725 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
4726 it doesn't start with /.
4727
b912921c
KH
47282004-11-04 Kenichi Handa <handa@m17n.org>
4729
4730 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
4731 treat it as a literal character.
4732
c524d9a6
KS
47332004-11-03 Kim F. Storm <storm@cua.dk>
4734
4735 * .gdbinit (ppt): New function.
4736
8cfd0f36
JD
47372004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4738
a11e1dce
JD
4739 * xterm.c (x_window_to_scroll_bar): Only call
4740 xg_get_scroll_id_for_window if toolkit scroll bars are used.
4741
8cfd0f36
JD
4742 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
4743 of save.
4744
a93563fd
AS
47452004-11-02 Andreas Schwab <schwab@suse.de>
4746
4747 * window.c (Fscroll_right): Fix last change.
4748
2b2d59d8
KS
47492004-11-02 Kim F. Storm <storm@cua.dk>
4750
4751 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
4752
47532004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4754
4755 * callproc.c (Fcall_process): Block input around vfork.
4756
ca28104d
KS
47572004-11-02 Kim F. Storm <storm@cua.dk>
4758
4759 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
4760 (syms_of_eval): Defsubr it.
4761
29bb7127
RS
47622004-11-02 Richard M. Stallman <rms@gnu.org>
4763
4764 * insdel.c (replace_range_2): New function.
4765
4766 * casefiddle.c (casify_region): Handle changes in byte-length
4767 using replace_range_2.
4768
4769 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
4770
b6189c3b 4771 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
4772 Subtract 1 from pos when checking previous newline for invisibility.
4773
4774 * window.c (window_scroll_pixel_based): Update preserve_y
4775 for header line if any.
4776 (Fscroll_left, Fscroll_right): Don't call interactive_p;
4777 use a new second argument instead.
4778
4779 * eval.c (Fcall_interactive_p): New function.
4780 (interactive_p): Don't test INTERACTIVE here.
4781 (Finteractive_p): Doc fix.
4782
4783 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
4784
b6189c3b 47852004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
4786
4787 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 4788 comparing font names.
a3fe4aaf 4789
2a00cdb4
JD
47902004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4791
f9d64bb3
JD
4792 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
4793 Fx_file_dialog if only directories should be read.
4794
4795 * lisp.h: Fx_file_dialog takes 5 parameters.
4796
32e2fb04
SM
4797 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
4798 Add parameter only_dir_p.
f9d64bb3
JD
4799 In Motif version, don't put DEFAULT_FILENAME in filter part of the
4800 dialog, just text field part. Do not add DEFAULT_FILENAME
4801 to list of files if it isn't there.
4802 In GTK version, pass only_dir_p parameter to xg_get_file_name.
4803
32e2fb04
SM
4804 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
4805 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
4806 a save dialog, add option kNavDontConfirmReplacement, change title
4807 to "Enter name", change text for save button to "Ok".
4808
32e2fb04
SM
4809 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
4810 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
4811
4812 * gtkutil.c (xg_get_file_with_chooser)
4813 (xg_get_file_with_selection): New functions, only defined ifdef
4814 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
4815 respectively.
4816 (xg_get_file_name): Add parameter only_dir_p.
4817 Call xg_get_file_with_chooser or xg_get_file_with_selection
4818 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
4819 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
4820
4821 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
4822
2a00cdb4
JD
4823 * config.in: Rebuild (added HAVE_GTK_FILE_*).
4824
f6749d5d
KS
48252004-11-01 Kim F. Storm <storm@cua.dk>
4826
32e2fb04
SM
4827 * process.c (connect_wait_mask, num_pending_connects):
4828 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 4829 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
4830 (IF_NON_BLOCKING_CONNECT): New helper macro.
4831 (wait_reading_process_output): Only declare and use local vars
4832 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 4833
1a99fe1a
JR
48342004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
4835
4836 * w32term.c (x_scroll_run): Delete region objects after use.
4837
fcdb28b4
JD
48382004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4839
495ef86b
JD
4840 * xmenu.c: Add prototypes for forward function declarations.
4841 (popup_get_selection): Remove parameter do_timers, remove call to
4842 timer_check.
32e2fb04
SM
4843 (create_and_show_popup_menu, create_and_show_dialog):
4844 Remove parameter do_timers from call to popup_get_selection.
495ef86b 4845
12e6566a
JD
4846 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
4847 tool_bar_items and assign the result to f->tool_bar_items if
4848 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
4849 tool_bar_items to assignment of result.
4850
fcdb28b4
JD
4851 * atimer.c (alarm_signal_handler): Do not call set_alarm if
4852 pending_atmers is non-zero.
4853
1a1a0c4c
KS
48542004-10-31 Kim F. Storm <storm@cua.dk>
4855
4856 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
4857
a36f1680
JW
48582004-10-28 Will <will@glozer.net>
4859
1d1c7e75 4860 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
4861 key via a 'mac-option-modifier' variable.
4862
32e2fb04 48632004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
4864
4865 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
4866 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
4867 (x_handle_selection_request, x_handle_selection_clear)
4868 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
4869
4f71c13f
RS
48702004-10-28 Richard M. Stallman <rms@gnu.org>
4871
4872 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
4873
4874 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
4875
068f3848
SM
48762004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
4877
4878 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
4879 comment-starter over a 1-char one.
4880
4660a9e3
RS
48812004-10-27 Richard M. Stallman <rms@gnu.org>
4882
4883 * xdisp.c (get_next_display_element): In mode lines,
4884 treat newline and tab like other control characters.
4885
4886 * editfns.c (Fmessage): Doc fix.
4887
4888 * indent.c (vmotion): When moving up, check the newline before.
4889 Make prevline an int, not a Lisp_Object.
4890
233f3db6
KS
48912004-10-27 Kim F. Storm <storm@cua.dk>
4892
4893 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
4894 Only allocate info and discarded tables once.
4895
4896 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
4897 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
4898 (SAFE_FREE): Test it to determine if we need to unwind to free.
4899 Remove size arg. All users changed.
4900 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
4901
1442465d
JD
49022004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4903
4904 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
4905 (xg_destroy_widgets): Rename from remove_from_container.
4906 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
4907 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
4908 instead of remove_from_container.
4909 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
4910 (free_frame_tool_bar): Add comment.
4911
4912 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
4913 is not NULL before strcmp.
4914
c8636435
KS
49152004-10-26 Kim F. Storm <storm@cua.dk>
4916
4917 * callint.c (Fcall_interactively): Add 'U' code to get the
4918 up-event discarded by a previous 'k' or 'K' argument.
4919
5629f29b
DK
49202004-10-26 David Kastrup <dak@gnu.org>
4921
4922 * buffer.c (syms_of_buffer): Fix a few typos.
4923
4f2f546e
JD
49242004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4925
4926 * xsmfns.c: Put empty line between comment and function body.
4927 Use two spaces before comment end.
4928
fc1062f5
KH
49292004-10-25 Kenichi Handa <handa@m17n.org>
4930
4931 * fontset.c (fontset_pattern_regexp): Optimize for the case that
4932 PATTERN is full XLFD.
4933
be13f5e5
KH
49342004-10-24 Kenichi Handa <handa@m17n.org>
4935
4936 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
4937
4938 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
4939 (regex_compile): Return REG_ERANGEX if appropriate.
4940
d0ee2ed3
KH
49412004-10-22 Kenichi Handa <handa@m17n.org>
4942
4943 * editfns.c (Ftranslate_region_internal): New function.
4944 (syms_of_editfns): Defsubr it.
4945
63ea8ea5
JD
49462004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4947
4948 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
4949
9ba27690 49502004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 4951
068f3848
SM
4952 * xterm.h (x_output): New member `xic_base_fontname'.
4953 (FRAME_XIC_BASE_FONTNAME): New macro.
4954 (xic_free_xfontset): Declare.
c27ed90a 4955
068f3848
SM
4956 * xfns.c (xic_create_xfontset): Share fontsets between frames
4957 based on base_fontname.
4958 (xic_free_xfontset): New function.
4959 (free_frame_xic): Use it.
4960 (xic_set_xfontset): Ditto.
c27ed90a 4961
068f3848 4962 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
4963
4964
59508699
JR
49652004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
4966
4967 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
4968
dede2792
JD
49692004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4970
3aca2078
JD
4971 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
4972 XSync.
4973
dede2792
JD
4974 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
4975 New variables and constant.
4976 (main): Calculate heap_bss_diff. If we are dumping and the
4977 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
4978 and exec ourself again.
4979 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
4980 print a warning.
4981
4982 * lastfile.c: Make my_endbss and my_endbss_static available on all
4983 platforms.
4984
4985 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
4986 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
4987
1dc5ba01
LT
49882004-10-19 Luc Teirlinck <teirllm@auburn.edu>
4989
4990 * data.c (Flocal_variable_if_set_p): Doc fix.
4991
950090be
JR
49922004-10-19 Jason Rumney <jasonr@gnu.org>
4993
4994 * w32.c (init_environment): Set emacs_dir correctly when running
4995 emacs from the build directory.
4996
8550b998
RS
49972004-10-19 Richard M. Stallman <rms@gnu.org>
4998
4999 * editfns.c (Fdelete_and_extract_region):
5000 If region is empty, return null string.
5001
08dedea6
JD
50022004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5003
1dc5ba01 5004 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 5005 and canon_width.
068f3848 5006 (xg_frame_cleared): Remove.
08dedea6 5007
068f3848
SM
5008 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
5009 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
5010 (xg_create_scroll_bar): Put an event box widget between
5011 the scroll bar widget and the edit widget.
5012 (xg_show_scroll_bar): Show the parent widget (the event box).
5013 (xg_remove_scroll_bar): Destroy parent (the event box) also.
5014 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
5015 Move the parent (the event box) widget inside the fixed widget.
5016 Move window clear to xterm.c.
5017
068f3848 5018 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 5019
08dedea6 5020 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
5021 (x_scroll_bar_create, XTset_vertical_scroll_bar):
5022 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
5023 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
5024
8550b998 50252004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
5026
5027 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 5028
84338890
JD
50292004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5030
5031 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
5032 gdk_window_clear and move gdk_window_process_all_updates after
5033 clear so events are sent to the X server in correct order.
5034
6e1b0d8c
KH
50352004-10-18 Kenichi Handa <handa@m17n.org>
5036
5037 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
5038 comparing font names.
8550b998 5039 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
5040 (list_fontsets): Likewise.
5041
5042 * search.c (fast_string_match_ignore_case): New function.
5043
5044 * lisp.h (fast_string_match_ignore_case): Extern it.
5045
345e75a8
KS
50462004-10-17 Kim F. Storm <storm@cua.dk>
5047
5048 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
5049 than bitmap if there is not left fringe.
5050 (get_overlay_arrow_glyph_row): Also used on windows system.
5051 (display_line): Display overlay string if no left fringe.
5052
be13cbb7
JR
50532004-10-16 Jason Rumney <jasonr@gnu.org>
5054
5055 * w32fns.c (w32_font_match): Encode font name being matched.
5056
c2e2ede7
RS
50572004-10-16 Richard M. Stallman <rms@gnu.org>
5058
5059 * window.c (Fspecial_display_p): Doc fix.
5060
043f7f73 50612004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
5062
5063 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
5064 Don't ignore menus, because where-is-internal already does it for us.
5065
699a0392
KS
50662004-10-15 Kim F. Storm <storm@cua.dk>
5067
b3c7a89b
KS
5068 * xdisp.c (redisplay_window): Only update fringes and vertical
5069 border on window frames.
699a0392 5070
4e382b0f
AS
50712004-10-14 Andreas Schwab <schwab@suse.de>
5072
5073 * m/ia64.h (DATA_SEG_BITS): Don't define.
5074
329a7be2
KS
50752004-10-14 Kim F. Storm <storm@cua.dk>
5076
5077 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 5078 in some X versions.
329a7be2 5079
982241b1
SM
50802004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5081
5082 * fns.c (map_char_table): Add missing gcpros.
5083
9238467d
SM
50842004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
5085
5086 * keymap.c (get_keymap): An autoload form is not a keymap.
5087
5088 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
5089
4440e3ca
KS
50902004-10-13 Kim F. Storm <storm@cua.dk>
5091
7cfdabde
KS
5092 * callproc.c (Fcall_process): Simplify handling of display arg.
5093 Resume `display_on_the_fly' once a coding system is determined.
5094
4440e3ca
KS
5095 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
5096
1c8dec6a
KS
50972004-10-12 Kim F. Storm <storm@cua.dk>
5098
5099 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
5100 caller, such as call-process, is not going to poll for input.
5101 (calc_line_height_property): Handle case where it->object is nil.
5102
5103 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
5104
170b174c
KH
51052004-10-12 Kenichi Handa <handa@m17n.org>
5106
9238467d
SM
5107 * xdisp.c (get_next_display_element):
5108 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
5109 chars in octal in unibyte buffer.
5110
b583964c
KS
51112004-10-12 Kim F. Storm <storm@cua.dk>
5112
5113 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
5114 are no ordinary bindings.
5115
29fabd8c
JD
51162004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5117
9238467d 5118 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 5119
c3f4c690
ST
51202004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5121
9238467d
SM
5122 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
5123 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 5124 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
5125 terminal frame.
5126 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
5127 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
5128 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
5129 Make a cancel file-open dialog be like C-g.
9238467d
SM
5130 * mac.c (mktime): Use emacs_mktime.
5131 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
5132 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 5133
9688f9eb
KS
51342004-10-10 Kim F. Storm <storm@cua.dk>
5135
5136 * keyboard.c (timer_resume_idle): New function to resume idle
5137 timer without resetting timers on the idle list.
52eb0373 5138 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
5139 (timer_start_idle, timer_stop_idle): Declare static.
5140 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
5141
5142 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
5143
f7f3a65f
ST
51442004-10-08 Steven Tamm <steventamm@mac.com>
5145
9238467d 5146 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 5147 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 5148 NULL where 0 should be used.
f7f3a65f
ST
5149 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
5150 objc/malloc.h
9238467d 5151 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 5152
3c7d999a
KS
51532004-10-07 Kim F. Storm <storm@cua.dk>
5154
5155 * xdisp.c (redisplay_window): Fix flicker on vertical line between
5156 windows. Update vertical line after drawing window fringes, but
5157 only if actually drawing any bitmaps--or there is no fringe.
5158
5159 * xterm.c (x_update_window_end): Likewise.
5160 * macterm.c (x_update_window_end): Likewise.
5161 * w32term.c (x_update_window_end): Likewise.
5162
5163 * fringe.c (draw_window_fringes): Return value now indicates if
5164 any fringe bitmaps were redrawn (or there are no fringes).
5165
5166 * dispextern.h (draw_window_fringes): Update prototype.
5167
bf06c82f
ST
51682004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5169
5170 * macfns.c (mac_get_window_bounds): Add extern.
5171 (x_real_positions): Use mac_get_window_bounds.
5172
5173 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
5174 xmenu.c (YAILOM).
3c7d999a 5175
bf06c82f
ST
5176 * macterm.c [!MAC_OSX]: Include Windows.h.
5177 (front_emacs_window): Rename from mac_front_window. All uses
5178 changed. Return the frontmost non-tooltip emacs window.
5179 (mac_get_window_bounds): New function.
5180 (x_calc_absolute_position): Use the difference of width and height
5181 between the inner and outer window.
5182 (x_set_offset): Specify window position by the coordinae of the
5183 outer window. Adjust the position if the title bar is completely
5184 outside the screen.
5185 (app_is_suspended, app_sleep_time): Remove unused variables.
5186 (do_app_resume, do_app_suspend): Remove their contents because
5187 window-activate/deactivate events will do the job.
5188 (do_zoom_window): Remove unused variables. Make compliant to the
5189 standard way of zooming. Set f->left_pos and f->top_pos.
5190 (XTread_socket): Don't use argument `expected'. Don't use
5191 FrontWindow to determine the clicked window. Exclude unprocessed
5192 mouseUp cases in the early stage. Add parentheses to fix operator
5193 precedence.
5194 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
5195
4cbbf6b7 51962004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
5197
5198 * config.in: Regenerate.
5199
5200 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
5201 HAVE_EXECSHIELD.
5202
b90ee8b5
JD
52032004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5204
5205 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
5206 a row if Alt or Meta has been found for that row. Also stop scanning
5207 for Keysyms for that row.
5208
904db1a2
KS
52092004-10-04 Kim F. Storm <storm@cua.dk>
5210
0207b8ad
KS
5211 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
5212 to list. Include overlay arrow bitmap in return value.
5213
25f7220c
KS
5214 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
5215 bars with fractional column width. If scroll bar separates two
5216 windows, move it towards the window it belongs to. Only update
5217 the padding area below the scroll bar widget when necessary,
5218 i.e. when scroll bar widget is created, moved, or resized.
5219
562020fe
KS
5220 * xdisp.c (define_frame_cursor1): Do not change frame cursor
5221 while tracking/dragging mouse.
5222 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
5223
37e34af7
KS
5224 * window.c (coordinates_in_window): Relax check for cursor
5225 on vertial border between mode lines.
5226 (Fset_window_fringes): Do not allow negative widths.
5227 (Fset_window_scroll_bars): Likewise.
5228
904db1a2
KS
5229 * .gdbinit (pp): Shorthand for p ARG + pr.
5230 (ff): New command: flush frame updates (X only).
5231
38fe4f64
MA
52322004-10-03 Michael Albinus <michael.albinus@gmx.de>
5233
5234 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
5235
9de36315
KH
52362004-09-30 Kenichi Handa <handa@m17n.org>
5237
07c381ad 5238 * process.c (send_process): Free composition data.
9de36315 5239
07c381ad 5240 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
5241
5242 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
5243 compositions to encode.
5244 (encode_coding_string): Likewise. Free composition data.
5245
d5fb8dab 52462004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
5247
5248 * coding.c (code_convert_region): Free composition data.
9de36315 5249
f2a54fbc
KS
52502004-09-29 Kim F. Storm <storm@cua.dk>
5251
dc5d6435
KS
5252 * fringe.c: Remove limit on number of bitmaps.
5253 (fringe_bitmaps, fringe_faces): Change to pointers.
5254 (max_fringe_bitmaps): New var.
5255 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
5256 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
5257
5258 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
5259 (struct glyph_row): Reorder fringe_bitmap related fields.
5260 (struct it): Likewise.
5261
5262 * w32term.c (fringe_bmp): Change to pointer.
5263 (max_fringe_bmp): New var.
5264 (w32_define_fringe_bitmap): Expand fringe_bmp.
5265 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
5266 (w32_destroy_fringe_bitmap): Likewise.
5267
52682004-09-29 Kim F. Storm <storm@cua.dk>
5269
5270 * fringe.c: Simplify last change.
f2a54fbc
KS
5271 (lookup_fringe_bitmap): New function.
5272 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
5273 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
5274 Keep standard bitmaps in Vfringe_bitmaps.
5275 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
5276 (Fset_fringe_bitmap_face): Likewise.
5277
5278 * dispextern.h (lookup_fringe_bitmap): Add prototype.
5279 (valid_fringe_bitmap_p): Remove prototype.
5280
5281 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
5282
841a8bca
KS
52832004-09-29 Kim F. Storm <storm@cua.dk>
5284
1f2da365
KS
5285 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
5286 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
5287
841a8bca
KS
5288 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
5289
5290 * fringe.c (Vfringe_bitmaps): New variable.
5291 (syms_of_fringe): DEFVAR_LISP it.
5292 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
5293 Change arg to Lisp_Object and fail if not an integer.
5294 (get_fringe_bitmap_name, resolve_fringe_bitmap)
5295 (destroy_fringe_bitmap): New functions.
9238467d
SM
5296 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
5297 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
5298 clear its fringe property.
5299 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
5300 Fdestroy_fringe_bitmap.
5301 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
5302 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
5303 and set fringe property. Signal error if no free slots.
5304 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
5305 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
5306
5307 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
5308 symbols with a fringe property.
5309
4d965590
KS
53102004-09-27 Kim F. Storm <storm@cua.dk>
5311
5312 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
5313 Doc fix. Format may now be a symbol or alist, not a cons.
5314
5315 * fringe.c (update_window_fringes): Handle new formats of
5316 indicate-buffer-boundaries (symbol or alist). No longer
5317 allow a simple cons.
5318 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
5319
e888c2b3
JD
53202004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5321
9238467d 5322 * config.in: Rebuild.
e888c2b3 5323
83f1cb94
JD
53242004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5325
5326 * config.in: Rebuild.
5327
dd3b1d60 5328 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 5329
2c51754c
SM
53302004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
5331
5332 * xterm.c (x_term_init): Work around a bug in some X servers.
5333
3df5f8aa
RS
53342004-09-18 Richard M. Stallman <rms@gnu.org>
5335
557ca2c1
RS
5336 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
5337
3df5f8aa
RS
5338 * xdisp.c (try_window_reusing_current_matrix):
5339 Handle the case where we reach the old displayed text,
5340 out of sync with the old line boundary.
5341
9238467d 53422004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
5343
5344 * fileio.c (Finsert_file_contents): Fix case of replacement in a
5345 narrowed buffer.
5346
bfa02563
KS
53472004-09-14 Kim F. Storm <storm@cua.dk>
5348
a25fe164
KS
5349 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
5350
bfa02563
KS
5351 * xfaces.c (Qface_no_inherit): New var.
5352 (syms_of_xfaces): Intern and staticpro it.
5353 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
5354 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
5355 Don't increment face_change_count when face has non-nil
5356 face-no-inherit property.
5357
126f9c02
SM
53582004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
5359
892a8eb5
SM
5360 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
5361 (Fbyte_code): Remove dead code after `wrong_type_argument'.
5362
126f9c02 5363 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 5364 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 5365
c0ad3b38
KS
53662004-09-12 Kim F. Storm <storm@cua.dk>
5367
5368 * editfns.c (Fformat): Handle format strings with multiple text
5369 properties. Reverse text property list from the format string,
5370 so the positions are in increasing order.
5371
844fc085
JD
53722004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5373
5374 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
5375 x_uncatch_errors so that possible protocol errors are delivered.
5376
b106731c
EZ
53772004-09-10 Eli Zaretskii <eliz@gnu.org>
5378
21065c92
EZ
5379 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
5380 blockinput.h.
5381 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
5382 charset.h, and coding.h
9238467d 5383 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
5384 (term.o): Depend on window.h and keymap.h.
5385 (abbrev.o): Depend on syntax.h.
5386 (callint.o): Depend on keymap.h.
5387 (casefiddle.o): Depend on charset.h and keymap.h.
5388 (category.o): Depend on keymap.h.
5389 (coding.o): Depend on dispextern.h.
5390 (cmds.o): Depend on keyboard.h and keymap.h.
5391 (dispnew.o): Depend on indent.h and intervals.h.
5392 (doc.o): Depend on keymap.h.
5393 (editfns.o): Depend on frame.h.
5394 (emacs.o): Depend on dispextern.h.
5395 (fileio.o): Don't depend on ccl.h.
5396 (filelock.o): Depend on charset.h and coding.h.
5397 (frame.o): Depend on w32term.h and macterm.h.
5398 (insdel.o): Depend on region-cache.h.
5399 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
5400 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
5401 (search.o): Depend on $(INTERVALS_SRC).
5402 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
5403 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
5404 xterm.h, w32term.h, and macterm.h.
5405 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
5406 w32term.h, and macterm.h.
5407 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
5408 region-cache.h, xterm.h, w32term.h, and macterm.h.
5409 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
5410 (data.o): Depend on frame.h.
5411 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
5412 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
5413 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
5414 (intervals.o): Depend on keymap.h.
5415
9238467d
SM
5416 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
5417 Add debugging print-out to termscript.
b106731c 5418
64b7122d
RS
54192004-09-09 Richard M. Stallman <rms@gnu.org>
5420
5421 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
5422
5670531e
RS
54232004-09-08 Richard M. Stallman <rms@gnu.org>
5424
6cb4a892
RS
5425 * window.c (Fset_window_buffer): Doc fix.
5426
5670531e
RS
5427 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
5428
7e388eb7
JL
54292004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
5430
5431 * minibuf.c (history_delete_duplicates): New variable.
5432 (read_minibuf): Use it.
5433 (syms_of_minibuf): Create the corresponding lisp variable.
5434
370e3587
KS
54352004-09-08 Kim F. Storm <storm@cua.dk>
5436
5437 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
5438 overlay just before point.
5439
f844ba4e
LT
54402004-09-07 Luc Teirlinck <teirllm@auburn.edu>
5441
5442 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
5443 * buffer.c (reset_buffer, init_buffer_once):
5444 Handle auto_save_file_format field.
f844ba4e
LT
5445 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
5446 `buffer-auto-save-file-format'.
f844ba4e
LT
5447 * fileio.c: Delete declaration for removed Vauto_save_file_format.
5448 (build_annotations): Adapt to replacement of
5449 `auto-save-file-format' with the new buffer-local variable
5450 `buffer-auto-save-file-format'.
5451 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
5452
f0f90717
JR
54532004-09-07 Jason Rumney <jasonr@gnu.org>
5454
5455 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
5456
9238467d
SM
5457 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
5458 Handle Unicode menu titles.
f0f90717 5459
4e14f66c
KS
54602004-09-07 Kim F. Storm <storm@cua.dk>
5461
5462 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
5463 property from text property or overlay strings at point.
5464
9238467d 54652004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
5466
5467 * xmenu.c (update_submenu_strings): YAILOM.
5468 (set_frame_menubar): Make sure last_i is initialized.
5469
1f06d367
JR
54702004-09-03 Jason Rumney <jasonr@gnu.org>
5471
1806714a 5472 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
5473 (digest_single_submenu): Set lname and lkey in widget_value
5474 instead of name and key.
5475 (update_submenu_strings): New function.
5476 (set_frame_menubar): Remove call to inhibit_garbage_collection,
5477 call update_submenu_strings.
5478
5479 * w32menu.c (globals_of_w32menu): Check for Unicode API.
5480 (digest_single_submenu, w32_menu_show): Encode menu strings as
5481 UTF-8 if Unicode API is available.
5482 (utf8to16): New function.
5483 (add_menu_item): Use it when calling Unicode API.
1806714a 5484
46540080
KS
54852004-09-03 Kim F. Storm <storm@cua.dk>
5486
5487 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
5488 in overlay or text-property strings; set cursor on corresponding
5489 glyph rather than at end of the string.
5490
9277ba61 54912004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 5492
9277ba61 5493 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
5494 set a new one before obtaining the global coordinate.
5495 Use FRAME_MAC_WINDOW.
5496 (x_set_name, x_set_title): Encode title to UTF8.
5497 Use SetWindowTitleWithCFString.
9277ba61
ST
5498 (Fx_server_version): Get correct OS version.
5499
1806714a
SM
5500 * macmenu.c (add_menu_item): Remove unused variable `i'.
5501 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
5502
5503 * macterm.c (x_update_end): Move SetPortWindowPort to inside
5504 BLOCK_INPUT.
5505 (x_set_offset): Use FRAME_MAC_WINDOW.
5506
5507 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
5508 nontext_cursor if it is on a scroll bar.
5509
5510 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
5511 Carbon support.
1806714a
SM
5512 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
5513 Use LIBS_CARBON.
9277ba61 5514
b10daec7
JD
55152004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5516
5517 * xfns.c (x_set_name_internal): New function. Check if we shall call
5518 xfree before ENCODE_UTF_8.
5519 (x_set_name, x_set_title): Call x_set_name_internal.
5520
f7e22385
JR
55212004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
5522
5523 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
5524 reload it.
5525
2bf436c3
JD
55262004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5527
1806714a 5528 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
5529 (single_submenu): Set lname and lkey in widget_value
5530 instead of name and key.
5531 (update_submenu_strings): New function.
5532 (set_frame_menubar): Remove call to inhibit_garbage_collection,
5533 call update_submenu_strings.
5534
2bf436c3
JD
5535 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
5536 instead of name and key.
5537 (update_submenu_strings): New function.
5538 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 5539 call update_submenu_strings.
2bf436c3
JD
5540
5541 * gtkutil.h (_widget_value): Added lname and lkey.
5542
11715f92
ST
55432004-08-30 Steven Tamm <steventamm@mac.com>
5544
5545 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
5546 by using different names for inner loop variables.
5547
5500be54
JD
55482004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5549
059cd329
JD
5550 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
5551 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
5552
5500be54
JD
5553 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
5554 tool bar items is 0.
5555
383418e5
ST
55562004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5557
5558 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
5559 strings in menu items.
5560 (single_submenu): Use ENCODE_MENU_STRING
5561 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
5562 button release isn't passed to event loop
5563 (add_menu_item): Use SetMenuItemWithCFString
5564
6eb3ee72
ST
55652004-08-26 Steven Tamm <steventamm@mac.com>
5566
5567 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
5568 tool-bar/menu click.
5569 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 5570
10b43ac3
JD
55712004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5572
2728b5d0
JD
5573 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
5574
10b43ac3
JD
5575 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5576 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
5577 (x_top_window_to_frame): Return 0 if wdesc is None.
5578
2ee3b79e
RS
55792004-08-22 Richard M. Stallman <rms@gnu.org>
5580
5581 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
5582 HAVE_TERMIOS]: If there's no char for this signal, drop through
5583 and use system calls.
5584
5585 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
5586
9a1ba2ea
KS
55872004-08-20 Kim F. Storm <storm@cua.dk>
5588
5589 * process.c (wait_reading_process_output): Rename from
5590 wait_reading_process_input. All uses changed.
5591 (wait_reading_process_output_1): Rename from
5592 wait_reading_process_input_1. All uses changed.
5593
5594 * dispnew.c (Fsleep_for): Remove obsolete code.
5595
295f3b30
KH
55962004-08-20 Kenichi Handa <handa@m17n.org>
5597
5598 * syntax.c (skip_chars): Fix for unibyte case.
5599
27615979
SM
56002004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5601
5602 * syntax.c (char_quoted): Mixup byte/char pos.
5603 (back_comment): Fixup globals in all cases.
5604
00267f94
JD
56052004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5606
5607 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
5608 passing it to gtk_window_set_title.
5609
2439909e
KS
56102004-08-19 Kim F. Storm <storm@cua.dk>
5611
6ba0f14c
KS
5612 * process.c (wait_reading_process_input): Clean up.
5613 Add wait_for_cell, wait_proc, and just_wait_proc args
5614 to avoid overloading `read_kbd' and `do_display' args.
5615 Change read_kbd arg to int. All callers changed.
5616
2439909e
KS
5617 * process.c (process_send_signal): Use CDISABLE.
5618
5619 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
5620
101c421e
KS
56212004-08-18 Kim F. Storm <storm@cua.dk>
5622
5623 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
5624 forward to wait_reading_process_input via DO_DISPLAY arg.
5625 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
5626 object, only process output from that process; also inhibit
5627 running timers if DO_DISPLAY==-2.
5628
c438dc33
KS
56292004-08-17 Kim F. Storm <storm@cua.dk>
5630
5631 * process.c (process_send_signal): Fix last change--use
5632 _POSIX_VDISABLE instead of CVDISABLE when available.
5633
8afc13c6
RS
56342004-08-16 Richard M. Stallman <rms@gnu.org>
5635
5636 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
5637 Set VQUIT and VINTR chars to the standard ones if they are unset.
5638 [AIX]: Don't do that here. And don't force VINTR to standard
5639 when SIGNALS_VIA_CHARACTERS.
5640
c438dc33 5641 * process.c (process_send_signal)
8afc13c6
RS
5642 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
5643 Do nothing if the character is CVDISABLE.
5644
5645 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
5646
c438dc33 5647 * intervals.c (move_if_not_intangible):
8afc13c6
RS
5648 Force POSITION to be between BEGV and ZV.
5649
6dad1714
JPW
56502004-08-14 John Paul Wallington <jpw@gnu.org>
5651
5652 * buffer.c (Frestore_buffer_modified_p): Doc fix.
5653
5654 * fileio.c (Fread_file_name): Doc fix.
5655
5656 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
5657
2bd77330
LT
56582004-08-09 Luc Teirlinck <teirllm@auburn.edu>
5659
5660 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
5661
c90e7e43
LT
56622004-08-08 Luc Teirlinck <teirllm@auburn.edu>
5663
5664 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 5665 Qdisabled_command_hook.
c90e7e43 5666 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 5667 Qdisabled_command_hook.
c90e7e43
LT
5668 (syms_of_keyboard): Ditto.
5669
81909a1a
LT
56702004-08-07 Luc Teirlinck <teirllm@auburn.edu>
5671
5672 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
5673 (syms_of_keymap) <key-translation-map>: Doc fixes.
5674
0cedd530
SM
56752004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
5676
1725a7c9
SM
5677 * window.c (window_list_1): YAILOM.
5678
0cedd530
SM
5679 * fileio.c (make_temp_name): Handle multibyte prefixes.
5680
2515a131
LT
56812004-08-06 Luc Teirlinck <teirllm@auburn.edu>
5682
5683 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5684 Doc fix.
5685
c8b20fb7
KH
56862004-08-03 Kenichi Handa <handa@m17n.org>
5687
5688 * coding.c (decode_coding_string): Adjust coding->consumed, and
5689 etc. with shrinked_bytes.
5690
fb8b092b
KS
56912004-08-03 Kim F. Storm <storm@cua.dk>
5692
5693 * indent.c (compute_motion): Fix check for full width window
5694 in non-window case. Do not count left truncation glyph on
5695 window systems.
5696
df133612
LT
56972004-08-02 Luc Teirlinck <teirllm@auburn.edu>
5698
5699 * data.c (Finteractive_form): Doc fix.
5700
0f7a93c1
KS
57012004-08-02 Kim F. Storm <storm@cua.dk>
5702
5703 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
5704 properly accounting for continuation glyph on non-window systems.
5705 (Fcompute_motion): Use actual window width if WIDTH is nil, and
5706 actual window width/height if TOPOS is nil, properly accounting for
5707 continuation glyphs on non-window systems, and optional header lines.
5708 (vmotion): Let compute_motion calculate actual window width.
5709
5710 * window.c (window_scroll_line_based): Let compute_motion
5711 calculate actual window width.
5712
f491e1ed
KS
57132004-08-02 Kim F. Storm <storm@cua.dk>
5714
5715 * process.c (read_process_output): Use whole read buffer.
5716 Don't trigger adaptive read buffering on errors.
5717
83f64226
LT
57182004-07-31 Luc Teirlinck <teirllm@auburn.edu>
5719
5720 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
5721
1d1c7e75 5722 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
5723
5724 * callint.c (Fcall_interactively): Doc fix.
5725
8afc13c6
RS
57262004-07-30 Richard M. Stallman <rms@gnu.org>
5727
5728 * abbrev.c (Fexpand_abbrev): Undo previous change.
5729
7c111482
KS
57302004-07-30 Kim F. Storm <storm@cua.dk>
5731
5732 * editfns.c (Fformat): Allocate extra (dummy) element in info.
5733
ee945d08
LT
57342004-07-28 Luc Teirlinck <teirllm@auburn.edu>
5735
5736 * eval.c (Fdefvar, Fdefconst): Doc fixes.
5737
3f911c94
KS
57382004-07-27 Kim F. Storm <storm@cua.dk>
5739
5740 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
5741 we have ensured that the glyph fits on the current line (or returned
5742 MOVE_LINE_CONTINUED otherwise).
5743
f29ff8c7
KS
57442004-07-26 Kim F. Storm <storm@cua.dk>
5745
5746 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
5747 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
5748 if target position is at end of display line but char is not a newline.
5749
81159bb9
RS
57502004-07-25 Richard M. Stallman <rms@gnu.org>
5751
ab431b61
RS
5752 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
5753 instead of ON_VERTICAL_BORDER, when on scroll bar.
5754 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
5755
5756 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
5757
f29ff8c7 5758 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
5759 Take account of FRAME_INTERNAL_BORDER_WIDTH.
5760
5761 * alloc.c (check_cons_list): New function (contents commented out).
5762
fc820cc5
LT
57632004-07-24 Luc Teirlinck <teirllm@auburn.edu>
5764
5765 * xfaces.c (Fcolor_supported_p): Doc fix.
5766
5767 * frame.c (Fselect_frame, Fset_frame_selected_window)
5768 (Fframe_visible_p, Fraise_frame): Doc fixes.
5769
289978b5
LT
57702004-07-24 Richard M. Stallman <rms@gnu.org>
5771
78819ebb 5772 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
5773
5774 * fileio.c (Fwrite_region): Doc fix.
5775
5776 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
5777
5778 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
5779 only when a real abbrev is present.
5780
289978b5
LT
5781 * xfns.c (x_icon_verify): New function.
5782 (Fx_create_frame): Use it.
5783
d5fb8dab 57842004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
5785
5786 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
5787
36f826d4
KS
57882004-07-21 Kim F. Storm <storm@cua.dk>
5789
5790 * window.h (struct glyph_matrix): New members nrows_scale_factor
5791 and ncols_scale_factor.
5792
5793 * window.c (make_window): Initialize nrows_scale_factor and
5794 ncols_scale_factor members.
5795
5796 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
5797 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
5798 (required_matrix_height): Apply nrows_scale_factor.
5799 (required_matrix_width): Apply ncols_scale_factor.
5800
5801 * xdisp.c (display_line): Increment nrows_scale_factor and set
5802 fonts_changed_p if past last allocated row.
5803 (append_glyph, append_composite_glyph, produce_image_glyph)
5804 (append_stretch_glyph): Increment ncols_scale_factor and set
5805 fonts_changed_p if current area is full.
5806
5fc1c546
JD
58072004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5808
5809 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
5810
cb7516e5
LT
58112004-07-19 Luc Teirlinck <teirllm@auburn.edu>
5812
5813 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
5814 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
5815 (Fset_window_start, Fscroll_up, Fscroll_down)
5816 (Fother_window_for_scrolling, Fscroll_other_window)
5817 (Fsave_window_excursion, Fset_window_vscroll)
5818 (syms_of_window) <window-size-fixed>: Doc fixes.
5819
b6189c3b 58202004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
5821
5822 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
5823 ENCODE_SYSTEM for filenames.
5824
bfcf6608
ST
58252004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5826
5827 * mac.c (sys_select): Block input around call to
5828 ReceiveNextEvent to prevent breakage. Correctly handle
5829 blocking on event queue only by calling ReceiveNextEvent
5830 instead of select (since GUI events aren't on an fd).
5831 (sys_read): Remove function
5832 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
5833
e082ac9d
ST
58342004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5835
5836 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 5837 polling instead of 1 sec timeouts (like solaris).
e082ac9d 5838
cb7516e5 5839 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
5840 frame creation.
5841
5842 * keyboard.c: Undef SIGIO on Carbon
5843
5844 * atimer.c (alarm_signal_handler): Call alarm handlers after
5845 scheduling.
5846
5847 * eval.c (Feval): Remove quit_char test
5848
5849 * process.c (wait_reading_process_input): Remove clearing
5850 stdin for select call on process input.
5851
4b9da0fb
LT
58522004-07-18 Luc Teirlinck <teirllm@auburn.edu>
5853
1204e81c
LT
5854 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
5855 capitalization error in docstring.
4b9da0fb 5856
26503ad2
JB
58572004-07-17 Juanma Barranquero <lektu@terra.es>
5858
5859 * keyboard.c (not_single_kboard_state): Do nothing unless
5860 MULTI_KBOARD is defined.
5861
3751eb00
RS
58622004-07-17 Richard M. Stallman <rms@gnu.org>
5863
5864 * window.c (coordinates_in_window): Inside the window but outside
5865 its box to the L or R, return ON_VERTICAL_BORDER.
5866 (window_list_1): Rotate the list to start with WINDOW.
5867
5868 * print.c (print_preprocess): Test for print_depth at limit
5869 before entering in being_printed.
5870
5871 * keyboard.c (not_single_kboard_state): New function.
5872 (stuff_buffered_input): Now no-op only if no SIGTSTP.
5873
5874 * frame.c (Fdelete_frame): If we're in single_bboard_state on
5875 this kboard, and we delete its last frame, go to any_kboard_state.
5876
5877 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
5878
b6189c3b 58792004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
5880
5881 * w32fns.c (Fx_file_dialog): Encode strings in system coding
5882 system before passing them to OS functions for display.
5883
0f6af254
DK
58842004-07-15 David Kastrup <dak@gnu.org>
5885
f9253326
KS
5886 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
5887 Apparently fixes an abort condition.
0f6af254 5888
386c8f42
LT
58892004-07-14 Luc Teirlinck <teirllm@auburn.edu>
5890
5891 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
5892 instead of a cons.
5893
366511da
MB
58942004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
5895
5896 * keyboard.c (echo_dash): Do nothing if there already is a dash
5897 at the end of the echo string.
5898
f85409d3
KS
58992004-07-12 Kim F. Storm <storm@cua.dk>
5900
5901 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
5902 if GC_MARK_STACK.
5903
0ba2e87b
LT
59042004-07-10 Luc Teirlinck <teirllm@auburn.edu>
5905
da38045d
LT
5906 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
5907
0ba2e87b
LT
5908 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
5909 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
5910 (Freplace_buffer_in_windows, Fset_window_buffer)
5911 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
5912 (syms_of_window): Expand docstring of `display-buffer-function'.
5913
5668fbb8
LT
59142004-07-09 Luc Teirlinck <teirllm@auburn.edu>
5915
5916 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
5917 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
5918 that time values of the type (HIGH . LOW) are considered obsolete.
5919
a085bf9d
LT
59202004-07-06 Luc Teirlinck <teirllm@auburn.edu>
5921
669de2fb
LT
5922 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
5923 docstring.
5924
bac66325 5925 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 5926
8e975df9
JPW
59272004-07-06 John Paul Wallington <jpw@gnu.org>
5928
5929 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
5930
fa164e6a
JPW
5931 * fns.c (Fclear_string): Signal an error if STRING is not a string.
5932
2bac9bb1
JD
59332004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5934
5935 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
5936 instead of CGMainDisplayID (only in OSX 10.2 and later).
5937
316ef0dc
JPW
59382004-07-04 John Paul Wallington <jpw@gnu.org>
5939
5940 * fileio.c (read_file_name_completion_ignore_case): New variable.
5941 (syms_of_fileio): Declare and initialise it.
5942 (Fread_file_name): Bind `completion-ignore-case' to respect it.
5943
2a1a35c6
EZ
59442004-07-03 Eli Zaretskii <eliz@gnu.org>
5945
5946 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
5947 for event.x and event.y.
5948
33a72331
KH
59492004-07-01 Kenichi Handa <handa@m17n.org>
5950
5951 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
5952 after getting a new string by pre-write-conversion.
5953
9238467d 59542004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
5955
5956 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
5957 (x_calc_absolute_position): Remove unused var `child'.
5958
5959 * xfaces.c (x_supports_face_attributes_p)
5960 (Fdisplay_supports_face_attributes_p): YAILOM.
5961 (tty_supports_face_attributes_p): Remove unused var `i'.
5962
5963 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
5964 back_unibyte_ok.
5965
5966 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
5967
5968 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
5969
5970 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
5971
f96ec754
AS
59722004-06-30 Andreas Schwab <schwab@suse.de>
5973
5974 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
5975 (Finit_image_library): Pass LIBRARIES through to
5976 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
5977 (lookup_image_type): Pass Qnil as second argument to
5978 Finit_image_library.
5979
78819ebb 5980 * lisp.h (Finit_image_library): Declare.
f96ec754 5981
59feca74 59822004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 5983
31983645
AS
5984 * macterm.c (do_window_activate, do_window_deactivate): Remove.
5985 (XTread_socket): Send mouse button events to the toolbox
5986 dispatcher even when the mouse is grabbed. Don't process window
5987 activate events for non-Emacs windows. Replace function calls to
5988 do_window_activate and do_window_deactivate with their contents.
5989 Reset mouse grabbing status when a window is deactivated.
59feca74 5990
c61278bb
ST
59912004-06-29 Steven Tamm <steventamm@mac.com>
5992
5993 * macterm.c (mac_get_emulated_btn)
5994 (mac_event_to_emacs_modifiers): Fix emulated mouse button
5995 support to correctly mask out modifiers.
5996
c3762cbd
DK
59972004-06-29 David Kastrup <dak@gnu.org>
5998
5999 * search.c (Fset_match_data): Allow buffer before end of list
6000 which can happen if set-match-data is using a pre-consed list.
6001
c61278bb 60022004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
6003
6004 * macterm.c (XTread_socket): Correctly set the frame position
6005 after the window is moved.
6006
74cdfe05
JD
60072004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6008
6009 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
6010 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
6011 (xg_get_image_for_pixmap): Add workaround for monochrome displays
6012 so insensitive and activated icons look ok.
74cdfe05 6013
ef544dc8
JR
60142004-06-27 Jason Rumney <jasonr@gnu.org>
6015
6016 * w32fns.c (file_dialog_callback): Disable edit control if set
6017 to directories only on CDN_INITDONE message.
6018 (Fx_file_dialog): Default to directories only when prompt starts
6019 with "Dired".
6020
7b7990cc
KS
60212004-06-25 Kim F. Storm <storm@cua.dk>
6022
6023 * alloc.c (allocate_misc): Update total_free_markers.
6024 (free_misc): New function.
6025 (safe_alloca_unwind, free_marker): Use it.
6026
6027 * lisp.h (free_misc): Add prototype.
6028
6029 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
6030
d8c379f8
RS
60312004-06-24 Richard M. Stallman <rms@gnu.org>
6032
6033 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
6034 (syms_of_emacs): Lisp variables deleted.
6035
559cdd07
DK
60362004-06-23 David Kastrup <dak@gnu.org>
6037
94939b84
DK
6038 * search.c (Freplace_match): Adjust the match-data more thoroughly
6039 when replacing strings in the buffer.
6040 (Fmatch_data): When INTEGERS is non-nil and the last match was in
6041 a buffer, add the buffer as last element to the match data.
6042 (Fset_match_data): If an additional element of the match-data is a
6043 buffer, restore it to last_thing_searched.
c8d09ad8 6044 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
6045 (restore_match_data): Restore it again.
6046
dce417e7
LT
60472004-06-23 Luc Teirlinck <teirllm@auburn.edu>
6048
6049 * keymap.c (Ftext_char_description): Doc fix.
6050 * doc.c (Fsnarf_documentation): Doc fix.
6051
ef54b2d0
KS
60522004-06-22 Kim F. Storm <storm@cua.dk>
6053
b5bc4d05
KS
6054 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
6055
ef54b2d0
KS
6056 * lisp.h (struct Lisp_Save_Value): New member dogc.
6057 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
6058 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
6059 (SAFE_FREE_LISP): New macro.
6060
6061 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
6062 (make_save_value): Init new dogc member.
6063 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
6064
6065 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
6066 SAFE_FREE_LISP macros.
6067
3d33d993
KS
60682004-06-22 Kim F. Storm <storm@cua.dk>
6069
6070 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
6071 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
6072 in that memory area are unknown to GC. Add comments.
6073
6074 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
6075
5c917f98
KS
60762004-06-21 Kim F. Storm <storm@cua.dk>
6077
6078 * lisp.h (MAX_ALLOCA): Define here.
6079 (safe_alloca_unwind): Add prototype.
6080 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
6081
6082 * alloc.c (safe_alloca_unwind): New function.
6083
6084 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
6085
6086 * charset.c (Fstring): Use SAFE_ALLOCA.
6087
6088 * coding.c (MAX_ALLOCA): Remove define.
6089
6090 * data.c (MAX_ALLOCA): Remove define.
6091 (Faset): Use SAFE_ALLOCA.
6092
6093 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
6094
6095 * fns.c (string_make_multibyte, string_to_multibyte)
6096 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
6097 (MAX_ALLOCA): Remove define.
6098 (Fbase64_encode_region, Fbase64_encode_string)
6099 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
6100 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
6101 memory leak if encoding fails.
6102
6103 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
6104
9a09408e
EZ
61052004-06-21 Eli Zaretskii <eliz@gnu.org>
6106
6107 * print.c (Fwith_output_to_temp_buffer): Doc fix.
6108
376de739
RS
61092004-06-20 Richard M. Stallman <rms@gnu.org>
6110
6111 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
6112
6113 * search.c (match_limit): Cleaner err msg when no match data available.
6114
6115 * window.c (syms_of_window): Doc fix.
6116
6117 * keyboard.c (command_loop_1): Handle values `only' and `identity'
6118 for Vtransient_mark_mode.
6119
6120 * buffer.c (syms_of_buffer): Doc fix.
6121
acd81db9
DK
61222004-06-21 David Kastrup <dak@gnu.org>
6123
6124 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
6125 and unbinding of `case-fold-search' according to
6126 `completion-ignore-case' around calls of string-match and
6127 predicates, respectively. Should give satisfactory performance
6128 in all relevant cases.
6129
f303762d
JD
61302004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6131
95911c74
JD
6132 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
6133 clip_x/y_origin.
6134
a6cb6b78
JD
6135 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
6136
f303762d
JD
6137 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
6138
6139 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
6140 on Mac OSX.
6141
bbdb2684
LT
61422004-06-16 Luc Teirlinck <teirllm@auburn.edu>
6143
6144 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
6145
5ea48b1c
KS
61462004-06-16 Kim F. Storm <storm@cua.dk>
6147
6148 * dispextern.h (Vimage_types): Remove extern.
6149
803aac3e
MB
61502004-06-16 Miles Bader <miles@gnu.org>
6151
6152 * image.c (lookup_image_type): Initialize image type if necessary.
6153
cdc97764
KS
61542004-06-15 Kim F. Storm <storm@cua.dk>
6155
c4a5739c
KS
6156 * xdisp.c (try_cursor_movement): Exclude header line from scroll
6157 margin at top of window.
6158 (try_window_reusing_current_matrix): Calculate proper cursor position
6159 after scrolling up with non-zero scroll margin, as the old cursor
6160 position corresponds to value of PT before executing this command.
6161 (try_window_id): Consider scroll margin at bottom of window too;
6162 otherwise we fail to scroll when hl-line-mode is enabled.
6163
cdc97764
KS
6164 * syntax.c (skip_chars): Only recognize [:class:] when it has the
6165 proper format and class is a lower-case word.
6166
5b166323
JD
61672004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6168
6169 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 6170 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
6171 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
6172 xg_get_gdk_pixmap_and_mask.
cdc97764 6173
5b166323
JD
6174 * xterm.h (struct x_display_info): Typo in comment fixed.
6175
1ebd4f78
JB
61762004-06-14 Juanma Barranquero <lektu@terra.es>
6177
6178 * dispextern.h (Vimage_types): Make it conditional on
6179 HAVE_WINDOW_SYSTEM.
6180
6181 * image.c (Vimage_types): Move from xdisp.c.
6182 (Vimage_type_cache): New variable.
6183 (define_image_type): New argument indicating whether an image
6184 library was loaded; cache loaded status and return t on success,
6185 nil otherwise.
6186 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
6187 (w32_delayed_load): New function to load an image library from a
6188 list of possible filenames.
6189 (init_xpm_functions, init_png_functions, init_jpeg_functions)
6190 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 6191 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
6192 (Finit_image_library): New function, extracted from `init_image'.
6193 Try to initialize an image library on demand and cache whether we
6194 were successful or not.
6195 (syms_of_image): Initialize `Vimage_types' and
6196 `Vimage_type_cache'. Add recognized image types to Vimage_types.
6197 Export `init-image-library'.
6198 (init_image): Remove initialization of all image types, except xbm
6199 and pbm.
6200
6201 * xdisp.c (Vimage_types): Delete (moved to image.c).
6202
904ee128
AS
62032004-06-14 Andreas Schwab <schwab@suse.de>
6204
6205 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
6206 Avoid calling specbind when completion-regexp-list is empty.
6207
092de21d
RS
62082004-06-13 Richard M. Stallman <rms@gnu.org>
6209
6210 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
6211 (re_wctype, re_iswctype, re_wctype_to_bit):
6212 Non-function definitions moved here from regex.c.
1ebd4f78 6213
092de21d
RS
6214 * regex.c (re_wctype, re_iswctype): Function defs longer static.
6215 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
6216 (re_wctype, re_iswctype, re_wctype_to_bit):
6217 Non-function definitions moved to regex.h.
6218
6219 * window.c (Fselect_window): Doc fix.
6220
6221 * syntax.c: Include regex.h.
6222 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
6223 If requested, make a list of classes, then check the scanned
6224 chars for membership in them.
6225 (in_classes): New function.
6226 Doc fix.
6227
6228 * keyboard.c (cmd_error): Don't call any_kboard_state
6229 if inside a recursive edit level.
6230
9ba27690 62312004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
6232
6233 * keyboard.c (command_loop): Call any_kboard_state before
6234 command_loop_2 when at top level.
6235
3ebc0939
AS
62362004-06-13 Andreas Schwab <schwab@suse.de>
6237
cea5d0d4
AS
6238 * print.c (print_object): Always use %ld for printing EMACS_INT.
6239
6240 * keyboard.c (cancel_hourglass_unwind): Return a value.
6241 (modify_event_symbol): Always use %ld for printing EMACS_INT.
6242 (Fexecute_extended_command): Likewise.
6243
6244 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
6245 avoid clashes.
6246 (SYNTAX): Likewise.
6247 (SYNTAX_WITH_FLAGS): Likewise.
6248 (SYNTAX_MATCH): Likewise.
6249
6250 * syntax.c (char_quoted): Avoid warning about undefined operation.
6251 (find_defun_start): Likewise.
6252 (scan_lists): Likewise.
6253 (INC_FROM): Likewise.
6254 (scan_sexps_forward): Likewise.
6255
be8c4ce4
AS
6256 * image.c: Include <ctype.h>.
6257
3ebc0939
AS
6258 * xfaces.c (face_attr_equal_p): Declare parameters.
6259
6fb41b5b
KH
62602004-06-13 Kenichi Handa <handa@m17n.org>
6261
6262 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
6263
fc3095ce
EZ
62642004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
6265
6266 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
6267
66189a40
KH
62682004-06-12 Kenichi Handa <handa@m17n.org>
6269
6270 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
6271 ccl_prog_stack_struct and update it.
6272 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
6273 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
6274 ccl->eof_ic on EOF.
6275 (ccl_debug_hook): New function.
6276 (struct ccl_prog_stack): New member eof_ic.
6277 (ccl_driver): Handle EOF in subrountine call correctly.
6278
62792004-06-11 Kenichi Handa <handa@m17n.org>
6280
a9b43336 6281 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 6282
1da71023
KS
62832004-06-11 Kim F. Storm <storm@cua.dk>
6284
6285 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
6286
e9efcef4
JB
62872004-06-11 Juanma Barranquero <lektu@terra.es>
6288
6289 * keyboard.c (Fposn_at_point): Doc fix.
6290
9b9ceb61
DK
62912004-06-11 David Kastrup <dak@gnu.org>
6292
6293 * search.c (match_limit): Don't flag an error if match-data
6294 exceeding the allocated search_regs.num_regs gets requested, just
6295 return Qnil.
6296
6e87ac8f
MB
62972004-06-08 Miles Bader <miles@gnu.org>
6298
6299 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
6300
0b0dea7b
JB
63012004-06-07 Juanma Barranquero <lektu@terra.es>
6302
6303 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
6304 (Fcurrent_time_string, Fcurrent_time_zone)
6305 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
6306
a0a23346
MB
63072004-06-07 Miles Bader <miles@gnu.org>
6308
08384afd 6309 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
6310 (push_named_merge_point): New function.
6311 (merge_named_face): New function.
6312 (merge_face_ref, face_at_buffer_position, face_at_string_position):
6313 Use `merge_named_face'.
6314 (merge_face_inheritance): Function removed.
c8d09ad8 6315 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
6316 Add new `err_msgs' and `named_merge_points' args. Return error
6317 status. Only print error messages if ERR_MSGS is true. Don't try to
6318 do :inherit attribute validation.
6319 (merge_face_heights): Handle `unspecified' in both directions.
6320 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
6321 Call `merge_face_ref' instead of `merge_face_inheritance'.
6322 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
6323 (compute_char_face, face_at_buffer_position)
6324 (face_at_string_position): Call `merge_face_ref' instead of
6325 `merge_face_vector_with_property'.
6326
12d5b185
KH
63272004-06-07 Kenichi Handa <handa@m17n.org>
6328
6329 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
6330 the necessary places.
6331
2e2d7ee6
KS
63322004-06-07 Kim F. Storm <storm@cua.dk>
6333
6334 * process.c (Fdelete_process): Undo 2004-05-28 change.
6335 Instead, call status_notify also for network process.
6336 (status_message): Use process instead of status as arg.
6337 Give messages "deleted" or "connection broken by remote peer" for
6338 an exited network process.
6339 (status_notify): Change call to status_message.
6340 (read_process_output): Increase readmax to 4096. Do not increase
6341 buffer size for datagram channels (default is now large enough).
6342
fcf0d299
ST
63432004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
6344
6345 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
6346 problem due to newly defined variable.
6347
0722292b
MB
63482004-06-06 Miles Bader <miles@gnu.org>
6349
6350 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
6351 immediately if non-interactive or not initialized.
6352
ddfb8369
RS
63532004-06-05 Richard M. Stallman <rms@gnu.org>
6354
6355 * minibuf.c (Fcompleting_read): Doc fix.
6356
57015754
AS
63572004-06-05 Andreas Schwab <schwab@suse.de>
6358
6359 * macfns.c (x_create_tip_frame): Fix declaration after statement.
6360
23715ea6
JB
63612004-06-05 Juanma Barranquero <lektu@terra.es>
6362
6363 * keymap.c (Fdescribe_vector): Fix docstring.
6364 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
6365
8e330b22
MB
63662004-06-05 Miles Bader <miles@gnu.org>
6367
6368 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
6369 attributes have different values than the default face.
6370
9742a3a6
EZ
63712004-06-04 Eli Zaretskii <eliz@gnu.org>
6372
6373 * xfaces.c (x_supports_face_attributes_p): Make this function
6374 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
6375 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
6376 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 6377
9717e36c
MB
63782004-06-04 Miles Bader <miles@gnu.org>
6379
6380 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
6381 from Ftty_supports_face_attributes_p.
6382 (x_supports_face_attributes_p): New function.
6383 (Ftty_supports_face_attributes_p): Function deleted.
6384 (Fdisplay_supports_face_attributes_p): New function.
6385 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 6386 (face_attr_equal_p): New function.
9717e36c
MB
6387 (lface_equal_p): Use it.
6388
52deb19f
JB
63892004-06-03 Juanma Barranquero <lektu@terra.es>
6390
6391 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
6392 (Vw32_color_map): Fix typo in docstring.
6393 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
6394 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
6395 Make argument names match their use in docstring.
6396
86d373e6
JB
63972004-06-02 Juanma Barranquero <lektu@terra.es>
6398
6399 Work around bugs/problems with MinGW builds of graphics libraries
6400 called from MSVC builds of Emacs.
6401
6402 * image.c (lookup_image): Make pointer to img static.
6403 (png_read_from_memory): Disable "global" optimization.
6404
2fb0ce67
SM
64052004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
6406
c8d09ad8
SM
6407 * eval.c (Fcondition_case): Fix usage. Simplify.
6408
2fb0ce67
SM
6409 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
6410
50bf7673
ST
64112004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6412
6413 * macfns.c: Don't include ccl.h.
6414 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
6415 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
6416 TextUtils.h.
c8d09ad8 6417 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
6418 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
6419 display height/width.
6420 (compute_tip_xy, Vx_max_tooltip_size): Declare.
6421 (unwind_create_tip_frame, compute_tip_xy): New functions.
6422 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
6423 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
6424 and last_show_tip_args.
2fb0ce67 6425
50bf7673
ST
6426 * macgui.h [!MAC_OSX]: Include Gestalt.h.
6427 (Cursor, No_Cursor): New defines.
c8d09ad8 6428 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
6429 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
6430
6431 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
6432
6433 * macterm.c: Don't include Gestalt.h.
6434 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
6435 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
6436 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
6437 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
6438 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
6439 (construct_mouse_click, XTmouse_position)
6440 (x_scroll_bar_report_motion, x_calc_absolute_position)
6441 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
6442 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
6443 (note_mouse_movement): Clear the mouse face and reset the pointer
6444 shape when the pointer goes outside the frame without grabbing.
6445 (mac_front_window): New function.
6446 (mac_window_to_frame): New macro.
6447 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
6448 (do_window_activate, do_window_deactivate, do_app_resume)
6449 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
6450 (do_zoom_window, mac_do_receive_drag, XTread_socket)
6451 (mac_check_for_quit_char): Use mac_front_window and/or
6452 mac_window_to_frame.
6453 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
6454 scroll-bar click event.
6455 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 6456 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 6457 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 6458 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
6459 (do_window_update): Don't do anything if the updated window is the
6460 tooltip window.
6461 (do_mouse_moved): Handle mouse movement events here (previously in
6462 XTread_socket). Clear the mouse face if
6463 dpyinfo->mouse_face_hidden is set.
6464 (do_os_event, do_events): Remove (now in XTread_socket).
6465 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
6466 Loop until all the events in the queue are processed.
6467 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
6468 contents of do_os_event and do_events. Remove mouse movement
6469 handling (now in do_mouse_moved). Add the case where
6470 Vmouse_highlight has an integer value.
6471 (NewMacWindow): Remove.
6472 (make_mac_frame): Do what NewMacWindow previously did. Don't do
6473 excess initializations.
6474 (make_mac_terminal_frame): Previous initializations in
6475 make_mac_frame are moved here.
c8d09ad8
SM
6476 (mac_initialize_display_info):
6477 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
6478
6479 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
6480 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
6481
08fd1251
RS
64822004-05-29 Richard M. Stallman <rms@gnu.org>
6483
6484 * lisp.h (truncate_undo_list): Update decl.
6485
6486 * alloc.c (undo_outer_limit): New variable.
6487 (syms_of_alloc): Defvar it.
6488 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
6489
6490 * undo.c (truncate_undo_list): New arg LIMITSIZE.
6491
6492 * alloc.c (lisp_align_malloc): Check for base == 0
6493 regardless of HAVE_POSIX_MEMALIGN.
6494 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
6495
227ef0ff
SM
64962004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6497
6498 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
6499 (marker_blocks_pending_free): Remove.
6500 (Fgarbage_collect): Sweep after cleaning up undo-lists.
6501 Mark the undo lists after claning them up.
6502 Don't free block in marker_blocks_pending_free.
6503 (mark_buffer): Don't mark undo_list.
6504 (gc_sweep): Sweep hash-tables and strings first.
6505 Do free marker blocks that are empty.
6506
034a6113
SM
65072004-05-28 Jim Blandy <jimb@redhat.com>
6508
6509 * regex.c (print_partial_compiled_pattern): Add missing 'break'
6510 after 'case wordend'. For symbeg and symend, print to stderr,
6511 like the other cases.
6512
33594a8d
NF
65132004-05-28 Noah Friedman <friedman@splode.com>
6514
6515 * process.c (Fdelete_process): Do not call remove_process.
6516
ce50a847
SM
65172004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
6518
6519 * alloc.c (struct backtrace): Remove.
6520 (Fgarbage_collect): Use the new mark_backtrace.
6521
6522 * eval.c (mark_backtrace): New function.
6523
6524 * minibuf.c (run_exit_minibuf_hook): New function.
6525 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
6526 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
6527
1e8dae36
KS
65282004-05-27 Kim F. Storm <storm@cua.dk>
6529
6530 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
6531 over display properties, e.g. images, that replace buffer text.
6532
846faa3b
KS
65332004-05-25 Kim F. Storm <storm@cua.dk>
6534
6535 * alloc.c (marker_blocks_pending_free): New var.
6536 (gc_sweep): Store free marker blocks on that list.
6537 (Fgarbage_collect): Free them after undo-list cleanup.
6538
6539 * process.c (wait_reading_process_input): Check connect_wait_mask
6540 before actually accepting connection in case it has already been
6541 accepted due to recursion.
6542
b6189c3b 65432004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 6544
ce50a847
SM
6545 * coding.c (Fset_safe_terminal_coding_system_internal):
6546 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 6547
71d5a208
RS
65482004-05-22 Richard M. Stallman <rms@gnu.org>
6549
6550 * alloc.c (Fmake_string): Doc fix.
6551
6552 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
6553 and the alist pairs too.
6554
6555 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
6556
6557 * emacs.c (main): Update copyright year.
6558
6559 * fileio.c (Fread_file_name): Expand DIR if not absolute.
6560
6561 * insdel.c (del_range_2, replace_range): Don't write an anchor
6562 if the gap is empty.
6563
6564 * xdisp.c (try_scrolling): If scroll-up-aggressively or
6565 scroll-down-aggressively is small but positive, put point
6566 near the screen edge.
6567
f63fd14e
JB
65682004-05-22 Juanma Barranquero <lektu@terra.es>
6569
6570 * keymap.c (Fdefine_key): Doc fix.
6571
4d12067c
KS
65722004-05-22 Kim F. Storm <storm@cua.dk>
6573
6574 * alloc.c (struct backtrace): Add debug_on_exit member.
6575 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
6576 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
6577 the removed cons cells.
6578 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
6579 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
6580 any cons cells pointing to unallocated stings.
6581 Do not lisp_free any marker blocks, as there may still be pointers
6582 to them from buffer undo lists at this stage of GC.
6583
6584 * keyboard.c (struct backtrace): Add debug_on_exit member.
6585 (Fcommand_execute): Clear it.
6586
931285e2
LT
65872004-05-20 Luc Teirlinck <teirllm@auburn.edu>
6588
6589 * intervals.c (lookup_char_property): Do not prematurely return nil.
6590
669fa600
SM
65912004-05-19 Jim Blandy <jimb@redhat.com>
6592
6593 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 6594 beginning and end of symbols.
4d12067c 6595
669fa600
SM
6596 * regex.c (enum syntaxcode): Add Ssymbol.
6597 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
6598 (re_opcode_t): New opcodes `symbeg' and `symend'.
6599 (print_partial_compiled_pattern): Print the new opcodes properly.
6600 (regex_compile): Parse the new operators.
ce50a847 6601 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
6602 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
6603 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
6604 (re_match_2_internal): Match symbeg and symend.
6605
6606 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
6607
0d8c2e5c
KS
66082004-05-19 Kim F. Storm <storm@cua.dk>
6609
6610 * .gdbinit (xsymbol): Fix last change.
6611
669fa600
SM
66122004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
6613
6614 * .gdbinit (xprintstr): New fun.
6615 (xstring, xprintsym): Use it.
6616
6617 * w32proc.c (create_child): Use INTMASK.
6618
6619 * alloc.c (Fgarbage_collect): Do all the marking before flushing
6620 unmarked elements of the undo list.
6621
9a6a4c40
DP
66222004-05-18 David Ponce <david@dponce.com>
6623
6624 * print.c (print): Reset print_depth before to call print_object.
6625
f3c4ec74
JR
66262004-05-18 Jason Rumney <jasonr@gnu.org>
6627
6628 * w32console.c: Prefix RIF functions with w32con_ to avoid
6629 namespace clash with functions in term.c and w32term.c.
6630
6631 * w32menu.c (add_menu_item, w32_menu_display_help)
6632 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
6633
0d8c2e5c 6634 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 6635
6be49c3a
EZ
66362004-05-18 Eli Zaretskii <eliz@gnu.org>
6637
4d0b9a0a
EZ
6638 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
6639
6be49c3a
EZ
6640 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
6641 with make_number.
6642 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
6643 with XINT.
6644
0bc90bba
KS
66452004-05-18 Kim F. Storm <storm@cua.dk>
6646
89d19988
KS
6647 * blockinput.h (INPUT_BLOCKED_P): New macros.
6648
6649 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
6650 (Ftop_level): Unblock input if blocked.
6651
0bc90bba
KS
6652 * buffer.h (GET_OVERLAYS_AT): New macro.
6653 * msdos.c (IT_note_mouse_highlight): Use it.
6654 * textprop.c (get_char_property_and_overlay): Use it.
6655 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
6656 * xfaces.c (face_at_buffer_position): Use it.
6657
6658 * print.c (print_object): Increase buf size.
6659
653bd0f6
JR
66602004-05-17 Jason Rumney <jasonr@gnu.org>
6661
6662 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
6663 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
6664 Lisp_Object using i member.
6665 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
6666 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
6667 consistently.
6668
6669 * w32proc.c (create_child): Use make_number instead of masking pid.
6670
6671 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
6672 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
6673 Use EQ to compare Lisp_Objects.
6674 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
6675
6676 * w32term.c (w32_num_mouse_buttons): Rename from
6677 Vw32_num_mouse_buttons and make it an int.
6678
6679 * w32.c (init_environment): Use it.
6680
6681 * w32fns.c (w32_wnd_proc): Likewise.
6682
6683 * w32proc.c (w32_pipe_read_delay): Rename from
6684 Vw32_pipe_read_delay and make it an int.
6685
6686 * w32.c (_sys_read_ahead): Use it.
6687
6688 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
6689
6690 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
6691
6692 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
6693 (key_event): Don't mix Lisp_Object and int.
6694
6695 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
6696
6697 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
6698 modifiers in language change event.
6699
54b53ba7
KS
67002004-05-17 Kim F. Storm <storm@cua.dk>
6701
6702 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
6703 Such objects may be freed markers which still exist on an undo list.
6704
6e86a75d
JB
67052004-05-16 Juanma Barranquero <lektu@terra.es>
6706
6707 * data.c (Fset_default): Make argument names match their use in
6708 docstring.
6709
fc80da24
AS
67102004-05-15 Andreas Schwab <schwab@suse.de>
6711
6712 * emacs.c (gdb_array_mark_flag): Define.
6713 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
6714
c1380aa6
EZ
67152004-05-15 Eli Zaretskii <eliz@gnu.org>
6716
6717 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
6718 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
6719 defined for the MS-DOS build.
6720
89458937
SM
67212004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
6722
6723 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
6724
08020f9a
KH
67252004-05-14 Kenichi Handa <handa@m17n.org>
6726
6727 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
6728
a433994a
ST
67292004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6730
6731 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
6732 section to frame.c section.
6733 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 6734 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 6735
a433994a 6736 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 6737
a433994a 6738 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 6739
a433994a
ST
6740 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
6741 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
6742 (XTread_socket): Fix int/Lisp_Object mixup.
6743 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 6744
a433994a
ST
6745 * macterm.h (struct frame, struct face, struct image)
6746 (display_x_get_resource, Fx_display_color_p)
89458937
SM
6747 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
6748 Add prototypes.
a433994a 6749
b51a51b9
KS
67502004-05-14 Kim F. Storm <storm@cua.dk>
6751
6752 * process.c (wait_reading_process_input): Make reentrant.
6753 Make Available and Connecting non-static. Save and restore value
6754 of waiting_for_user_input_p.
6755
2bde1dd8
KS
67562004-05-13 Kim F. Storm <storm@cua.dk>
6757
6758 * keyboard.c (mark_kboards): Don't mark x and y members
6759 that are overloaded in selection request events.
6760
a267ab4d
SM
67612004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
6762
6763 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
6764
eb15ce9e
GM
67652004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
6766
6767 * window.c (Fdisplay_buffer, Fsplit_window)
6768 (split-height-threshold): Doc fix.
6769
7fc92635
JB
67702004-05-13 Juanma Barranquero <lektu@terra.es>
6771
6772 * xfaces.c (Ftty_supports_face_attributes_p)
6773 (Finternal_copy_lisp_face): Fix typo in docstring.
6774 (Finternal_get_lisp_face_attribute): Fix docstring.
6775
1ec2a572
JD
67762004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6777
6778 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
6779
ae9292e0
ST
67802004-05-11 Steven Tamm <steventamm@mac.com>
6781
6782 * macfns.c (Fx_create_frame): Default to using tool-bar by
6783 setting tool-bar-lines to 1 in default-frame-alist.
6784
67852004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
6786
6787 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
6788 (xpm_get_color_table_v, xpm_make_color_table_h)
6789 (xpm_put_color_table_h, xpm_get_color_table_h)
6790 (xpm_str_to_color_key, xpm_load_image, xpm_load)
6791 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 6792 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 6793
fe97e8df
ST
67942004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6795
a267ab4d 6796 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
6797 instead of FRAME_X_P
6798
b47e779e
KS
67992004-05-11 Kim F. Storm <storm@cua.dk>
6800
6801 * process.c (read_process_output): Grow decoding_buf when needed;
6802 this could cause a crash in allocate_string and compact_small_strings.
6803
cdc9b845
EZ
68042004-04-29 Jim Blandy <jimb@redhat.com>
6805
6806 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
6807 against proper opcode.
6808
aa7094ba
JB
68092004-05-10 Juanma Barranquero <lektu@terra.es>
6810
6811 * process.c (Fstart_process): Fix docstring.
6812
6813 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
6814 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
6815 (Fsplit_char, Fchar_charset): Make argument names match their use
6816 in docstring.
6817
e109331a
RS
68182004-05-10 Richard M. Stallman <rms@gnu.org>
6819
6820 * print.c (print_preprocess): Use being_printed, loop_count and
6821 halftail to detect overdeep nesting and cyclic cdr chains.
6822
9a28b921
AS
68232004-05-10 Andreas Schwab <schwab@suse.de>
6824
78819ebb 6825 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
6826
6827 * fileio.c (Frename_file): Remove extra argument in call to
6828 Fmake_symbolic_link.
6829
e2c02c1a
KS
68302004-05-10 Kim F. Storm <storm@cua.dk>
6831
6832 * xdisp.c (calc_line_height_property): Use string position when
6833 object is a string.
6834
cfe9d13e
KH
68352004-05-10 Kenichi Handa <handa@m17n.org>
6836
a57e8159
KH
6837 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
6838 inhibit-modification-hooks to t temporarily before calling
6839 Ferase_buffer.
6840
6841 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
6842 inhibit-modification-hooks to t temporarily before calling
6843 Ferase_buffer.
6844
6845 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
6846 inhibit-modification-hooks to t temporarily before calling
6847 Ferase_buffer.
6848
cfe9d13e
KH
6849 * fns.c (count_combining): Delete it.
6850 (concat): Don't check combining bytes.
6851
ceb96489
JR
68522004-05-09 Jason Rumney <jasonr@gnu.org>
6853
6854 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
6855 (globals_of_w32fns): Set it.
6856
b6189c3b 68572004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
6858
6859 * data.c (Fquo): Simplify.
6860
28712a21
JB
68612004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
6862
6863 * data.c (Fquo): If any argument is float, do the computation in
6864 floating point.
6865
0f0af7a8
JB
68662004-05-08 Juanma Barranquero <lektu@terra.es>
6867
88214ef6
JB
6868 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
6869 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
6870 Fix spelling of Emacs on docstring.
6871 (Fset_process_coding_system, Fprocess_coding_system)
6872 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
6873 Make argument names match their use in docstring.
6874 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
6875 Fix docstring.
6876
0f0af7a8
JB
6877 * editfns.c (Finsert_buffer_substring): Make argument names match their
6878 use in docstring.
6879
6880 * syntax.c (Fmodify_syntax_entry): Fix docstring.
6881
2a316a84
ST
68822004-05-07 Steven Tamm <steventamm@mac.com>
6883
6884 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
6885 around call to ReceiveEvent to avoid certain crashes.
6886
68872004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 6888
2a316a84
ST
6889 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
6890 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
6891 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
6892 Save/restore the current graphics port and device handle when
6893 drawing into an offscreen graphics world.
6894
6895 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
6896 (gif_load): Likewise.
6897
ab80314b
JB
68982004-05-07 Juanma Barranquero <lektu@terra.es>
6899
6900 * window.c (Fset_window_buffer): Fix docstring.
6901
70646bb5
TTN
69022004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
6903
6904 * emacs.c (main) [VMS]: Fix var ref.
6905
b6189c3b 69062004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
6907
6908 * data.c (Fsetq_default): Fix docstring.
6909
279d3293
JR
69102004-05-06 Jason Rumney <jasonr@gnu.org>
6911
6912 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
6913 to avoid name clash.
6914
f72b5416
JD
69152004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6916
6917 * fileio.c (barf_or_query_if_file_exists): Use lstat.
6918 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 6919 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 6920
6ab66799
KS
69212004-05-04 Kim F. Storm <storm@cua.dk>
6922
6923 * xdisp.c (Qtotal): New var.
6924 (syms_of_xdisp): Intern and staticpro it.
6925 (calc_line_height_property): New arg total. Set it if
6926 line-spacing property has format (total . VALUE).
6927 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
6928 Handle total line-spacing property.
6929
ab2d724b
JD
69302004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6931
6932 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
6933 "under" scroll bar when size/position changes.
6934
238add5e
JR
69352004-05-03 Jason Rumney <jasonr@gnu.org>
6936
6937 * makefile.nt: Remove.
6938
1644f4e4
EZ
69392004-05-02 Eli Zaretskii <eliz@gnu.org>
6940
a267ab4d
SM
6941 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
6942 Avoid compiler warnings.
05fdbeb8 6943
1644f4e4
EZ
6944 * Makefile.in (region-cache.o): Depend on config.h.
6945
b6189c3b 69462004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
6947
6948 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
6949 with continuation lines, too.
6950
2b98b088
TTN
69512004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
6952
6953 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
6954
d9bf7950
SM
69552004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
6956
6957 * xdisp.c (calc_line_height_property): YAILOM (yet another
6958 int/Lisp_Object mixup).
6959
affa509c
EZ
69602004-05-01 Eli Zaretskii <eliz@gnu.org>
6961
6962 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
6963 undo bad effect of pack(4) in some versions of system headers.
6964
07c07cfe
JR
69652004-05-01 Jason Rumney <jasonr@gnu.org>
6966
6967 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
6968
e71caa4e
KS
69692004-04-30 Kim F. Storm <storm@cua.dk>
6970
6971 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 6972 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
6973
6974 * dispextern.h (struct it): Remove member use_default_face.
6975 Add members override_ascent, override_descent, override_boff.
6976
6977 * xdisp.c (init_iterator): Handle line-spacing float value.
6978 Initialize override_ascent member.
6979 (append_space_for_newline): Reset override_ascent.
6980 Remove use_default_face.
6981 (calc_line_height_property): New function to calculate value of
6982 line-height and line-spacing properties. Look at overlays, too.
6983 Set override_ascent, override_descent, override_boff members when
6984 using another face than the current face. Float values are now
6985 relative to the frame default font, by default; accept a cons
6986 of ratio and face name to specify value relative to a specific face.
6987 (x_produce_glyphs): Use calc_line_height_property.
6988 Use override_ascent etc. when set to handle different face heights.
6989 A negative line-spacing property value is interpreted as a total
6990 line height, rather than inter-line spacing.
6991 (note_mouse_highlight): Allocate room for 40 overlays initially.
6992
0fddae66
SM
69932004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
6994
6995 * data.c (Fsubr_name): New fun.
6996 (syms_of_data): Defsubr it.
6997
712d23dc
KS
69982004-04-29 Kim F. Storm <storm@cua.dk>
6999
7000 * xdisp.c (null_glyph_slice): New var.
7001 (append_glyph, append_composite_glyph, append_stretch_glyph):
7002 Use it to initialize glyph slice.
7003
033ad8c6
SM
70042004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
7005
7006 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
7007 (on_hot_spot_p): Make sure we always return a value.
7008 (Flookup_image_map): Remove unused var ix and iy.
7009 (note_mode_line_or_margin_highlight): Remove unused var `image'.
7010
93397360
EZ
70112004-04-27 Eli Zaretskii <eliz@gnu.org>
7012
7013 * msdos.c (init_environment): If one of the TMP... environment
7014 variables is set to a drive letter without a trailing slash,
7015 append a slash.
7016
0c54865e
EZ
70172004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
7018
7019 * editfns.c (lisp_time_argument): Provide externally.
7020
7021 * fileio.c (Fset_file_times): New function.
7022 (syms_of_fileio): Intern and staticpro it.
7023
d3b111bd
KS
70242004-04-27 Kim F. Storm <storm@cua.dk>
7025
07dc1231
KS
7026 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
7027 header line strings.
7028
360fe9d2
KS
7029 * dispextern.h (struct it): New member use_default_face.
7030
d3b111bd
KS
7031 * xdisp.c (Qline_height): New variable.
7032 (syms_of_xdisp): Intern and staticpro it.
7033 (append_space_for_newline): Partially undo 2004-04-25 change;
7034 add default_face_p arg, and restore callers.
7035 Clear it->use_default_face after use.
7036 (x_produce_glyphs): Set default font for ascii char if
7037 it->use_default_font is set. Change line-spacing property to set
7038 just extra line spacing. Handle new line-height property.
7039
0448588b
AS
70402004-04-26 Andreas Schwab <schwab@suse.de>
7041
7042 * print.c (print_object): Print non-ascii characters in bool
7043 vector representation as octal escapes.
7044
7045 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
7046 * print.c (print_object): Use it instead of BITS_PER_CHAR for
7047 bool vectors.
7048 * lread.c (read1): Likewise.
7049 * alloc.c (Fmake_bool_vector): Likewise.
7050 * data.c (Faref, Faset): Likewise.
7051 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
7052 (mapcar1): Likewise.
d3b111bd 7053
536d6baa
ST
70542004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
7055
7e26f91b 7056 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 7057
ae11577a
MB
70582004-04-26 Miles Bader <miles@gnu.org>
7059
7060 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
7061
e198ba87
JB
70622004-04-26 Juanma Barranquero <lektu@terra.es>
7063
7064 * buffer.c (Fpop_to_buffer): Fix docstring.
7065
f3d5f92d 70662004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 7067
f3d5f92d
ST
7068 * lread.c (init_lread): Don't display missing lisp directory
7069 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 7070 may be built without correct installation path.
f3d5f92d 7071
03e35edc
KS
70722004-04-25 Kim F. Storm <storm@cua.dk>
7073
9ff3aa31
KS
7074 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
7075
7076 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
7077
03e35edc
KS
7078 * xdisp.c (append_space_for_newline): Rename from append_space.
7079 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
7080 (x_produce_glyphs): Handle line-spacing property on newline char.
7081 If value is t, adjust ascent and descent to fit current row height.
7082 If value is an integer or float, set extra_line_spacing to integer
7083 value, or to float value x current line height.
7084
f24814e0
KH
70852004-04-23 Kenichi Handa <handa@m17n.org>
7086
7087 * fontset.c (Finternal_char_font): If POSITION is nil, return
7088 font for displaying CH with the default face.
7089
d814862a
JB
70902004-04-23 Juanma Barranquero <lektu@terra.es>
7091
7092 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
7093
063a45c5
SM
70942004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7095
7096 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
7097 Don't make assumptions about the relative place of i and val.
7098 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
7099
ae7ab2d3
KS
71002004-04-21 Kim F. Storm <storm@cua.dk>
7101
7102 * dispextern.h (struct glyph_slice): New struct.
7103 (struct glyph): New member slice.
7104 (GLYPH_SLICE_EQUAL_P): New macro.
7105 (GLYPH_EQUAL_P): Use it.
7106 (struct glyph_string): New member slice.
7107 (struct it_slice): New struct.
7108 (struct it): New member slice, add member to stack too.
7109 New member constrain_row_ascent_descent_p.
7110 (image_ascent): Add prototype.
7111
7112 * dispnew.c (buffer_posn_from_coords): Return full image width
7113 and height even for image slices (posn is relative to full image).
7114 (marginal_area_string): Adjust x0,y0 for image slice.
7115
7116 * image.c (image_ascent): Add slice arg; calculate ascent for
7117 image slice (or full image).
7118
7119 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
7120 (syms_of_keyboard): Defsubr them.
7121
7122 * lisp.h (pos_visible_p): Fix prototype.
7123
c62aec78 7124 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
7125 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7126 (x_draw_image_foreground, x_draw_image_relief)
7127 (x_draw_image_foreground_1, x_draw_image_glyph_string):
7128 Draw sliced images.
7129
7130 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
7131 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7132 (x_draw_image_foreground, x_draw_image_relief)
7133 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
7134 Draw sliced images.
7135
7136 * w32term.h (image_ascent): Remove prototype.
7137
7138 * window.c (Fpos_visible_in_window_p): Return pixel position if
7139 PARTIALLY arg is non-nil. Simplify. Doc fix.
7140 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
7141 to return/set vscroll in pixels.
7142
7143 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
7144
7145 * xdisp.c (Qslice): New variable.
7146 (syms_of_xdisp): Intern and staticpro it.
7147 (pos_visible_p): Return pixel position in new x and y args.
7148 (init_iterator): Reset it->slice info.
7149 (handle_display_prop): Parse (slice ...) property.
7150 (push_it, pop_it): Save/restore slice info.
7151 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
7152 force repositioning of tall row if window is vscrolled, as that
7153 would reset vscroll.
7154 (append_space): Set it->constrain_row_ascent_descent_p to avoid
7155 increasing row height if row is non-empty.
7156 (fill_image_glyph_string): Copy slice info.
7157 (take_vertical_position_into_account): Simplify.
7158 (produce_image_glyph): Handle iterator slice info, setup glyph
7159 slice info. Do not force minimum line height.
7160 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
7161 do not increase height (ascent/descent) of non-empty row when
7162 adding normal character glyph; instead reduce glyph ascent/descent
7163 appropriately; if row is higher than current glyph, adjust glyph
7164 descent/ascent to reposition glyph within the existing row.
7165 Likewise, when char is newline, only set ascent/descent if row is
7166 currently empty.
7167 (note_mouse_highlight): Handle hotspots with sliced image.
7168
7169 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
7170 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
7171 (x_draw_image_foreground, x_draw_image_relief)
7172 (x_draw_image_foreground_1, x_draw_image_glyph_string):
7173 Draw sliced images.
7174
7175 * xterm.h (image_ascent): Remove prototype.
7176
d58f8753
SM
71772004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
7178
7179 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
7180
4ce2719d
JPW
71812004-04-20 John Paul Wallington <jpw@gnu.org>
7182
7183 * fns.c (Fassoc, Feql): Fix indentation.
7184
d58f8753 7185 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 7186
95f8c3b9
JPW
71872004-04-19 John Paul Wallington <jpw@gnu.org>
7188
7189 * fns.c (Feql): New function.
d58f8753 7190 (syms_of_fns): Defsubr it.
95f8c3b9 7191
b7e85537
JR
71922004-04-18 Jason Rumney <jasonr@gnu.org>
7193
7194 * w32select.c (Fw32_set_clipboard_data): Get sequence number
7195 after closing the clipboard.
7196
5a72efd4
LT
71972004-04-16 Luc Teirlinck <teirllm@auburn.edu>
7198
7199 * buffer.c (Fbuffer_base_buffer): Doc fix.
7200
20dc8583
KS
72012004-04-17 Kim F. Storm <storm@cua.dk>
7202
60962ec4
KS
7203 * keymap.c (Fkey_description): Add optional PREFIX arg.
7204 Combine prefix with KEYS to make up the full key sequence to describe.
7205 Correlate meta_prefix_char and following (simple) key to describe
7206 as meta modifier. All callers changed.
7207 (describe_map): Rename arg `keys' to `prefix'. Remove local
7208 `elt_prefix' var. Use Fkey_description with prefix instead of
7209 elt_prefix combined with Fsingle_key_description.
7210 (describe_vector): Declare static. Replace arg `elt_prefix' with
7211 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 7212 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
7213 Fsingle_key_description.
7214
7215 * keymap.h (Fkey_description): Fix prototype.
7216 (describe_vector): Remove prototype.
7217
409368b9
KS
7218 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
7219
20dc8583
KS
7220 * image.c (PNG_BG_COLOR_SHIFT): Remove.
7221 (png_load): Fix calculation of transparent background color on X
7222 and W32 platforms.
7223
75c5501b
JB
72242004-04-16 Juanma Barranquero <lektu@terra.es>
7225
7226 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
7227 not too large before computing how much to scroll.
7228
da879ae8
SM
72292004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
7230
7231 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
7232
d01ca4a8
LT
72332004-04-14 Luc Teirlinck <teirllm@auburn.edu>
7234
7235 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
7236 Add hyperlink to Elisp manual to the docstring.
7237
572943b3
SM
72382004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
7239
7240 * callint.c (fix_command): Use XDCR.
7241
5e30a0fb
NR
72422004-04-14 Nick Roberts <nick@nick.uklinux.net>
7243
7244 * window.c (Fget_lru_window): Doc fix.
7245
a27ddfaf
KS
72462004-04-14 Kim F. Storm <storm@cua.dk>
7247
7248 * editfns.c (Fformat): Fix allocation size of precision array.
7249
7250 * dispnew.c (update_window): Only set changed_p if
7251 scrolling_window actually did scroll.
7252 (scrolling_window): Only return 1 if we actually did scroll.
7253
7254 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
7255 height to glyph height when cursor row is not fully visible.
7256 (make_cursor_line_fully_visible): Add FORCE_P arg to return
7257 failure in case row is higher than window. Callers changed.
7258 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
7259 Try to scroll partially visible, higher-than-window cursor row.
7260 (redisplay_window): Always try to scroll partially visible,
7261 higher-than-window cursor row - both initially and again with
7262 centering_position = 0.
7263 Clear desired matrix before retrying with centering_position = 0.
7264
da879ae8
SM
72652004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7266
7267 * syntax.c (scan_lists): Simplify backward string scan.
7268 Fix off-by-one boundary check for string and comment fences.
7269
5fc16e8e
SM
72702004-04-13 Joe Buehler <jbuehler@hekimian.com>
7271
7272 * sheap.c, unexcw.c: New files.
7273
c9aac8e6
LT
72742004-04-12 Luc Teirlinck <teirllm@auburn.edu>
7275
7276 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
7277 base buffer has been killed. Correct the error message if the
7278 base buffer does not exist.
7279
1e88a355
SM
72802004-04-12 Joe Buehler <jbuehler@hekimian.com>
7281
7282 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
7283 Cygwin itself. Add support for Xaw3d scrollbars.
7284
7285 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
7286
7287 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
7288
7289 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
7290 before Cygwin unexec.
7291
7292 * Makefile.in: Link changes for Cygwin unexec() support.
7293
8dbff9a0
AS
72942004-04-12 Andreas Schwab <schwab@suse.de>
7295
7296 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
7297
54dffe35
LT
72982004-04-11 Luc Teirlinck <teirllm@auburn.edu>
7299
7300 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
7301 IGNORE argument equals NAME. Doc fix.
7302
99a72bdf
MY
73032004-04-11 Masatake YAMATO <jet@gyve.org>
7304
1e88a355 7305 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
7306 empty if they are backwards.
7307
40899d7b
SM
73082004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7309
7310 * xfaces.c (face_color_supported_p): Fix compilation without X11.
7311
f8f853de
SM
73122004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
7313
7314 * doc.c (Fsnarf_documentation): Ignore new file name entries.
7315
c953fe1b
KS
73162004-04-06 Kim F. Storm <storm@cua.dk>
7317
661e85c1
KS
7318 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
7319 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
7320
7321 * w32term.c (w32_read_socket): Set mouse_face_hidden after
7322 clearing highlight.
7323
7324 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
7325
7326 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
7327 clearing highlight.
7328
c953fe1b
KS
7329 * indent.c (vmotion): Do not reserve one column for continuation
7330 marks on window frames.
7331
c1994268
EZ
73322004-04-04 Eli Zaretskii <eliz@gnu.org>
7333
7334 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
7335 from GCC.
7336
9f691b0d
SM
73372004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
7338
7339 * .gdbinit-union: Remove.
7340
7341 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
7342 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
7343 ($nonvalbits): Remove.
7344 ($valmask): Set it by calling xreload to avoid redundancy.
7345
7346 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
7347 (gdb_emacs_intbits): Remove.
7348
7a8560d7
JD
73492004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7350
9f691b0d 7351 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 7352
3c8111fc
KH
73532004-03-30 Kenichi Handa <handa@m17n.org>
7354
7355 * editfns.c (Fformat): Fix initialization of the array info.
7356
48a0bce4
KS
73572004-03-30 Kim F. Storm <storm@cua.dk>
7358
7359 * xterm.c (x_mouse_click_focus_ignore_position): New var.
7360 (syms_of_xterm): DEFVAR_BOOL it.
7361 (ignore_next_mouse_click_timeout): New var.
7362 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
7363 Use it to filter mouse clicks following focus event.
7364
1cd0066c
KS
73652004-03-29 David Ponce <david@dponce.com>
7366
7367 * callint.c (Fcall_interactively): Fix last change.
7368
adb3b353
SM
73692004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7370
7371 * eval.c (Fcommandp): Simplify.
7372
7373 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
7374 Extend to handle all kinds of functions.
7375
7376 * lisp.h (Finteractive_form): Declare.
7377
7378 * callint.c (Fcall_interactively): Use it.
7379
6fc4c9c9
KS
73802004-03-26 Kim F. Storm <storm@cua.dk>
7381
7382 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
7383 to catch errors in calc_pixel_width_or_height during redisplay.
7384
abdb9b83
MY
73852004-03-26 Masatake YAMATO <jet@gyve.org>
7386
b17856dd 7387 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 7388
b17856dd 7389 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 7390
b17856dd 7391 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 7392
b17856dd 7393 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 7394
e8a84b6c
JD
73952004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7396
b17856dd 7397 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 7398
36a3fd05
RS
73992004-03-19 Richard M. Stallman <rms@gnu.org>
7400
7401 * s/sol2-6.h: Delete previous change.
7402
ab24c127
KS
74032004-03-19 Kim F. Storm <storm@cua.dk>
7404
7405 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
7406 to_charpos corresponds to newline in right fringe. Use local
7407 BUFFER_POS_REACHED_P macro.
7408
992126de
JD
74092004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7410
7411 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
7412 to compile on non-window system.
7413
45dbfc84
KS
74142004-03-19 Kim F. Storm <storm@cua.dk>
7415
7416 * dispextern.h (calc_pixel_width_or_height): Add prototype.
7417
7418 * image.c (Qcenter): Move to xdisp.c.
7419
7420 * xdisp.c (Qcenter): Declare here.
adb3b353 7421 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
7422 (handle_single_display_prop): Allow space display property on all
7423 platforms.
7424 (display_mode_line): Set mode_line_p before displaying line.
7425 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
7426 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 7427 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
7428 width/height. Return width or height for image specs.
7429 (produce_stretch_glyph): Improve handling of :align-to. Is now
7430 relative to left of text area by default, but other base offsets
7431 can be specified -- also for text lines.
7432
7433 * term.c (produce_glyphs): Handle IT_STRETCH.
7434 (produce_stretch_glyph): New function to handle space width and
7435 align-to display properties on non-window systems.
7436
37264101
SM
74372004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7438
7439 * fileio.c (Fread_file_name): Set completion-ignore-case for
7440 case-insensitive systems.
7441
73bc43da
MY
74422004-03-14 Masatake YAMATO <jet@gyve.org>
7443
7444 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
7445 when keymap and cursor are setup.
7446
d5fb8dab 74472004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 7448
b17856dd 7449 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 7450
e4b1b5ab
KS
74512004-03-14 Kim F. Storm <storm@cua.dk>
7452
7453 * dispextern.h (x_find_image_file): Add prototype.
7454
7455 * image.c (x_find_image_file): Make extern.
7456
7457 * xfns.c (x_find_image_file): Remove prototype.
7458
a6eeaa81 74592004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 7460
37264101 7461 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 7462
37264101 7463 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 7464
e69cfac2
RS
74652004-03-12 Richard M. Stallman <rms@gnu.org>
7466
7467 * fns.c (internal_equal): New arg PROPS controls comparing
7468 text properties. All callers changed.
7469 (Fequal_including_properties): New function.
7470 (syms_of_fns): defsubr it.
7471
45034953
KS
74722004-03-12 Kim F. Storm <storm@cua.dk>
7473
7474 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 7475
45034953
KS
7476 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
7477 (image_background, image_background_transparent): Fix prototypes.
7478
37264101 7479 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
7480
7481 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
7482 (x_query_font, x_find_ccl_program, x_set_window_size)
7483 (x_make_frame_visible, mac_initialize, XCreatePixmap)
7484 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
7485 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
7486
7487 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
7488 (x_query_font, x_find_ccl_program, x_set_window_size)
7489 (x_make_frame_visible, mac_initialize, XCreatePixmap)
7490 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
7491 (mac_draw_line_to_pixmap): Add prototypes.
7492
74932004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7494
7495 * macterm.c (XTread_socket): Fix mouse click on tool bar.
7496
a12d3d87
KS
74972004-03-11 Kim F. Storm <storm@cua.dk>
7498
d3ab1cf1
KS
7499 * dispextern.h: Move image related prototypes from xfns.c section
7500 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
7501 HAVE_X_WINDOWS.
37264101 7502
37de9f51 7503 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 7504 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
7505 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
7506 (GTK_OBJ) [USE_GTK]: New declaration.
7507 (obj): Add $(GTK_OBJ) to list.
7508
d5fb8dab 75092004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 7510
7e26f91b 7511 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
7512
7513 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 7514 defined in image.c.
5243c06a 7515
c0f97789
KS
75162004-03-11 Kim F. Storm <storm@cua.dk>
7517
7518 The following changes consolidates the identical/similar image
7519 support code previously found in xfns.c, w32fns.c, and macfns.c
7520 into a new file image.c.
7521
7522 * makefile.w32-in (OBJ1): Add image.o.
7523 ($(BLD)/image.$(O)): Add dependencies.
7524
7525 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
7526 (image.o): Add dependencies.
37264101 7527
c0f97789
KS
7528 * image.c: New file with consolidated image support code.
7529 (COLOR_TABLE_SUPPORT): New define to control whether
7530 color table support is available (X only).
7531 (Bitmap_Record): Common name for x_bitmap_record,
7532 w32_bitmap_record, and mac_bitmap_record.
7533 (XImagePtr): Common name for pointer to XImage or equivalent.
7534 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
7535 to XImagePtr on X+MAC, and to HDC on W32.
7536 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
7537 (NO_PIXMAP): Common name for "None" or equivalent.
7538 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
7539 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
7540 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
7541 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
7542 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
7543 (XDrawLine): Define on MAC for code sharing.
7544 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
7545 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
7546 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
7547 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
7548 (x_reference_bitmap, x_create_bitmap_from_data)
7549 (x_create_bitmap_from_file, x_destroy_bitmap)
7550 (x_destroy_all_bitmaps, x_create_bitmap_mask)
7551 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7552 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
7553 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
7554 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
7555 (define_image_type, lookup_image_type, valid_image_p)
7556 (image_error, enum image_value_type, struct image_keyword)
7557 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
7558 (make_image, free_image, prepare_image_for_display, image_ascent)
7559 (four_corners_best, image_background, image_background_transparent)
7560 (x_clear_image_1, x_clear_image, x_alloc_image_color)
7561 (make_image_cache, free_image_cache, clear_image_cache)
7562 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
7563 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
7564 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
7565 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
7566 (init_image_func_pointer, image_load_quartz2d)
7567 (struct ct_color, init_color_table, free_color_table)
7568 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
7569 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
7570 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
7571 (x_disable_image, x_build_heuristic_mask)
7572 (XBM support, XPM support, PBM support, PNG support, JPEG support)
7573 (TIFF support, GIF support, Ghostscript support): Consolidate image
7574 code from xfns.c, w32fns.c, and macfns.c.
7575 (syms_of_image): Consolidate image related symbol setup here.
7576 (init_image): Consolidate image related initializations here.
37264101 7577
c0f97789
KS
7578 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
7579 and init_image. Remove call to init_xfns.
7580
37264101
SM
7581 * macterm.h (struct mac_bitmap_record): Add file member.
7582 Not currently used, but simplifies code sharing.
c0f97789
KS
7583
7584 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
7585 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
7586 (x_reference_bitmap, x_create_bitmap_from_data)
7587 (x_create_bitmap_from_file, x_destroy_bitmap)
7588 (x_destroy_all_bitmaps, x_create_bitmap_mask)
7589 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7590 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
7591 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
7592 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
7593 (define_image_type, lookup_image_type, valid_image_p)
7594 (image_error, enum image_value_type, struct image_keyword)
7595 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
7596 (make_image, free_image, prepare_image_for_display, image_ascent)
7597 (four_corners_best, image_background, image_background_transparent)
7598 (x_clear_image_1, x_clear_image, x_alloc_image_color)
7599 (make_image_cache, free_image_cache, clear_image_cache)
7600 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
7601 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
7602 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
7603 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
7604 (init_image_func_pointer, image_load_quartz2d)
7605 (struct ct_color, init_color_table, free_color_table)
7606 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
7607 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
7608 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
7609 (x_disable_image, x_build_heuristic_mask)
7610 (XBM support, XPM support, PBM support, PNG support, JPEG support)
7611 (TIFF support, GIF support, Ghostscript support): Merge with image
7612 code from xfns.c and macfns.c into image.c.
7613 (syms_of_xfns): Move image related symbols to image.c.
7614 (init_external_image_libraries, init_xfns): Remove; initialization
7615 moved to init_image in image.c.
7616
7617 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
7618 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
7619 (x_reference_bitmap, x_create_bitmap_from_data)
7620 (x_create_bitmap_from_file, x_destroy_bitmap)
7621 (x_destroy_all_bitmaps, x_create_bitmap_mask)
7622 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
7623 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
7624 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
7625 (define_image_type, lookup_image_type, valid_image_p)
7626 (image_error, enum image_value_type, struct image_keyword)
7627 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
7628 (make_image, free_image, prepare_image_for_display, image_ascent)
7629 (four_corners_best, image_background, image_background_transparent)
7630 (x_clear_image_1, x_clear_image, x_alloc_image_color)
7631 (make_image_cache, free_image_cache, clear_image_cache)
7632 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
7633 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
7634 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
7635 (struct ct_color, init_color_table, free_color_table)
7636 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
7637 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
7638 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
7639 (x_disable_image, x_build_heuristic_mask)
7640 (XBM support, XPM support, PBM support, PNG support, JPEG support)
7641 (TIFF support, GIF support, Ghostscript support): Merge with image
7642 code from xfns.c and macfns.c into image.c.
7643 (syms_of_xfns): Move image related symbols to image.c.
7644 (init_external_image_libraries, init_xfns): Remove; initialization
7645 moved to init_image in image.c.
7646
7647 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
7648 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
7649 (x_reference_bitmap, x_create_bitmap_from_data)
7650 (x_create_bitmap_from_file, x_destroy_bitmap)
7651 (x_destroy_all_bitmaps, x_create_bitmap_mask)
7652 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
7653 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
7654 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
7655 (define_image_type, lookup_image_type, valid_image_p)
7656 (image_error, enum image_value_type, struct image_keyword)
7657 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
7658 (make_image, free_image, prepare_image_for_display, image_ascent)
7659 (four_corners_best, image_background, image_background_transparent)
7660 (x_clear_image_1, x_clear_image, x_alloc_image_color)
7661 (make_image_cache, free_image_cache, clear_image_cache)
7662 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
7663 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
7664 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
7665 (struct ct_color, init_color_table, free_color_table)
7666 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
7667 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
7668 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
7669 (x_disable_image, x_build_heuristic_mask)
7670 (XBM support, XPM support, PBM support, PNG support, JPEG support)
7671 (TIFF support, GIF support, Ghostscript support): Merge with
7672 w32fns.c and macfns.c image code into image.c.
7673 (syms_of_xfns): Move image related symbols to image.c.
7674 (init_xfns): Remove; initialization moved to init_image in image.c.
7675
7676 * lisp.h (syms_of_image, init_image): Add protoypes.
7677 (init_xfns): Remove prototype.
7678
7679 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
7680 (x_reference_bitmap, x_create_bitmap_from_data)
7681 (x_create_bitmap_from_file, x_destroy_bitmap)
7682 (x_create_bitmap_mask): Move prototypes from dispextern.h.
7683 (gamma_correct) [MAC_OS]: Add prototype.
7684
7685 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
7686 (x_reference_bitmap, x_create_bitmap_from_data)
7687 (x_create_bitmap_from_file, x_destroy_bitmap)
7688 (x_create_bitmap_mask): Move prototypes to dispextern.h.
7689
6eced09c
KH
76902004-03-09 Kenichi Handa <handa@etlken2>
7691
7692 * coding.c (decode_coding_emacs_mule): Handle insufficent source
7693 correctly.
7694
9a7e95f3
RS
76952004-03-04 Richard M. Stallman <rms@gnu.org>
7696
04a6e76b
RS
7697 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
7698
9a7e95f3
RS
7699 * window.c (Fdisplay_buffer): Doc fix.
7700
7701 * buffer.c (Fpop_to_buffer): Doc fix.
7702
6c2488df
KS
77032004-03-03 Kim F. Storm <storm@cua.dk>
7704
7705 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
7706
d8d95bc7
SM
77072004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
7708
7709 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
7710
357589bf
RS
77112004-03-02 Richard M. Stallman <rms@gnu.org>
7712
7713 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
7714
409949b5
KH
77152004-03-02 Kenichi Handa <handa@m17n.org>
7716
7717 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
7718
d24bc50f
KS
77192004-03-02 Kim F. Storm <storm@cua.dk>
7720
7721 * window.h (struct window): New member overlay_arrow_bitmap.
7722
7723 * window.c (make_window): Initialize overlay_arrow_bitmap.
7724
7725 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
7726 implement and integrate multiple overlay arrows with redisplay.
7727 (syms_of_xdisp): DEFVAR_LISP and initialize it.
7728 (last_arrow_position, last_arrow_string): Replace by properties.
7729 (Qlast_arrow_position, Qlast_arrow_string)
7730 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
7731 (syms_of_xdisp): Intern and staticpro them.
7732 (overlay_arrow_string_or_property, update_overlay_arrows)
7733 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
7734 (overlay_arrow_at_row): New functions for multiple overlay arrows.
7735 (redisplay_internal): Use them instead of directly accessing
7736 Voverlay_arrow_position etc. for multiple overlay arrows.
7737 (mark_window_display_accurate): Use update_overlay_arrows.
7738 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
7739 (try_window_id): Use overlay_arrows_changed_p.
7740 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
7741 (display_line): Use overlay_arrow_at_row to check multiple
7742 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 7743 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
7744 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
7745 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
7746
7747 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
7748 (update_window_fringes): Remove unused code.
7749
c1464661
JR
77502004-03-01 Jason Rumney <jasonr@gnu.org>
7751
7752 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
7753
a64387ee
JB
77542004-03-01 Juanma Barranquero <lektu@terra.es>
7755
7756 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
7757
7758 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
7759
334faa08
JD
77602004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7761
7762 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
7763 how many colors can be displayed.
7764
bb62616f
KH
77652004-03-01 Kenichi Handa <handa@m17n.org>
7766
7767 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
7768 correctly.
7769
0fd16104
KS
77702004-02-28 Kim F. Storm <storm@cua.dk>
7771
7772 * dispnew.c (update_window): Update header line also if there are
7773 no other changes in window (move code after set_cursor label).
7774
7775 * lisp.h (mark_window_display_accurate): Remove prototype.
7776
7777 * window.c (window_loop, Fforce_window_update): Force mode line
7778 updates by setting prevent_redisplay_optimizations_p and
7779 update_mode_lines.
7780
b59dd9c8
JD
77812004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7782
d8d95bc7 7783 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
7784
7785 * xterm.c (x_calc_absolute_position): Call x_real_positions
7786 to get WM window sizes and use those to calculate position.
d8d95bc7 7787 (x_set_offset): Remove code commented out.
b59dd9c8 7788
a874691c
MB
77892004-02-28 Miles Bader <miles@gnu.org>
7790
7791 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
7792
3e0c6482
KS
77932004-02-28 Kim F. Storm <storm@cua.dk>
7794
7795 * keyboard.c (kbd_buffer_store_event_hold): New function to store
7796 an event into kbd fifo, but with special handling of quit event;
7797 a quit event is saved for later, and further events are discarded
7798 until the saved quit event has been processed.
7799 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
7800 (gen_help_event): Store help event in kbd fifo.
7801 (NREAD_INPUT_EVENTS): Remove.
7802 (read_avail_input): Adapt to new read_socket_hook interface.
7803 Remove allocation and initialization of local input_event buffer,
7804 as read_socket_hook stores events directly in fifo. Allocate and
7805 initialize local hold_quit event to handle postponed quit event
7806 (and store it if set by kbd_buffer_store_event_hold).
7807
7808 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
7809 (gen_help_event): Fix prototype.
7810
a64387ee 7811 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 7812 numcharsp args. Add hold_quit arg.
f63fd14e 7813 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
7814 directly in fifo using kbd_buffer_store_event_hold.
7815
7816 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
7817 (read_input_waiting): Adapt to new read_socket_hook interface.
7818 Remove allocation and initialization of local input_event buffer,
7819 as read_socket_hook stores events directly in fifo. Allocate and
7820 initialize local hold_quit event to handle postponed quit event
7821 (and store it if set by kbd_buffer_store_event_hold).
7822
a64387ee 7823 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
7824
7825 * termhooks.h (read_socket_hook): Fix prototype.
7826
7827 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
7828 numcharsp args. Add hold_quit arg.
f63fd14e 7829 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
7830 directly in fifo using kbd_buffer_store_event_hold.
7831
7832 * w32inevt.h (w32_console_mouse_position): Fix prototype.
7833
7834 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
7835 Add hold_quit arg. Rework to use just one, local, inev
7836 input_event. Store inev directly in fifo using
3e0c6482
KS
7837 kbd_buffer_store_event_hold. Update count in one place.
7838 Postpone call to gen_help_event until inev is stored; use new
7839 local do_help for this.
7840 Remove local emacs_event in handing of ButtonPress event; just use
7841 inev instead (so no reason to copy it later).
7842
7843 * xsmfns.c (x_session_check_input): Remove numchars arg.
7844
d8d95bc7
SM
7845 * xterm.c (x_focus_changed, x_detect_focus_change):
7846 Remove numchars arg. Always store event into bufp arg.
7847 Return nothing. Callers changed accordingly.
3e0c6482
KS
7848 (glyph_rect): Simplify.
7849 (STORE_KEYSYM_FOR_DEBUG): New macro.
7850 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
7851 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
7852 (current_hold_quit) [USE_GTK]: Add.
7853 (event_handler_gdk): Adapt to new handle_one_xevent.
7854 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
7855 Add hold_quit arg. Rework to use just one, local, inev
7856 input_event. Store inev directly in fifo using
3e0c6482
KS
7857 kbd_buffer_store_event_hold. Update count in one place.
7858 Postpone call to gen_help_event until inev is stored; use new
7859 local do_help for this.
7860 Simplify handling of keysyms (consolidate common code). Fix bug
7861 where count was updated with nchars instead of nbytes.
7862 Remove local emacs_event in handing of ButtonPress event; just use
7863 inev instead (so no reason to copy it later).
7864 Remove `out' label. Rename label `ret' to `done'; add various
7865 `goto done' to clarify code flow in deeply nested blocks.
7866 (x_dispatch_event): Simplify as handle_one_xevent now calls
7867 kbd_buffer_store_event itself.
f63fd14e 7868 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
7869 arg. Call handle_one_xevent with new arglist. Store event from
7870 x_session_check_input in fifo.
7871 [USE_GTK]: Setup current_hold_quit.
7872 Decrement handling_signal before unblocking input.
7873 (x_initialize) [USE_GTK]: Initialize current_count.
7874
7875 * xterm.h (x_session_check_input): Fix prototype.
7876
e3564461 78772004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 7878
d8d95bc7 7879 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 7880
e3564461
ST
7881 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
7882 macgui.h).
a64387ee 7883
e3564461 7884 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 7885
e3564461
ST
7886 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
7887 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
7888 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
7889 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
7890 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
7891 (Bitmap): Remove typedef.
7892 (Pixmap): Change int to GWorldPtr.
7893
d8d95bc7 7894 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 7895
d8d95bc7
SM
7896 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
7897 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
7898 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
7899 long representation.
7900 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
7901 colors used for masks.
7902 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 7903
e3564461
ST
7904 * macfns.c: Include sys/types.h and sys/stat.h.
7905 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
7906 Include QuickTime/QuickTime.h.
7907 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
7908 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
7909 functions defined in macterm.c.
7910 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
7911 (ZPixmap): New #define for compatibility with xfns.c.
7912 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
7913 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
7914 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
7915 New functions.
e3564461 7916 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
7917 (x_destroy_x_image, unwind_create_frame, x_disable_image)
7918 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
7919 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
7920 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
7921 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
7922 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
7923 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
7924 long mixup.
7925 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
7926 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
7927 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
7928 (x_set_cursor_type, Fxw_color_values, valid_image_p)
7929 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
7930 (x_alloc_image_color, clear_image_cache, lookup_image)
7931 (x_find_image_file, xbm_read_bitmap_file_data)
7932 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
7933 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
7934 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
7935 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
7936 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 7937 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
7938 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
7939 #if 0.
7940 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
7941 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
7942 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
7943 New functions (from xfns.c).
e3564461
ST
7944 (Fx_create_frame): Record unwind_create_frame.
7945 (Fxw_display_color_p): Use dpyinfo->color_p.
7946 (Fx_display_grayscale_p, Fx_display_planes): Don't use
7947 dpyinfo->n_cbits.
7948 (Fx_display_color_cells): Use dpyinfo->n_planes;
7949 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
7950 (Qheuristic, cross_disabled_images, emboss_matrix)
7951 (laplace_matrix): New variables (from xfns.c).
7952 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
7953 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
7954 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
7955 (image_background_transparent): New function (from xfns.c).
7956 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7957 (image_load_quicktime): Add declaration.
7958 [MAC_OSX] (image_load_quartz2d): Likewise.
7959 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
7960 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 7961 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
7962 (xbm_load_image_from_file, x_laplace_read_row)
7963 (x_laplace_write_row, pbm_read_file): Remove functions.
7964 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
7965 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
7966 (colors_in_color_table): Sync with xfns.c (although not used).
7967 (lookup_rgb_color): Don't lookup color table. Just do gamma
7968 correction.
7969 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
7970 (x_disable_image): New function (from xfns.c).
7971 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
7972 (x_build_heuristic_mask): Sync with xfns.c.
7973 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7974 (HAVE_PBM): Remove #ifdef.
7975 (pbm_load): Sync with xfns.c. Set img->width and img->height
7976 before IMAGE_BACKGROUND.
d8d95bc7 7977 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
7978 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
7979 Don't enclose with #if HAVE_PNG.
7980 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
7981 symbol _CGImageCreateWithPNGDataProvider is defined.
7982 Otherwise use image_load_quicktime.
e3564461 7983 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
7984 [HAVE_PNG] (png_load): Sync with xfns.c.
7985 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
7986 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
7987 HAVE_JPEG.
7988 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
7989 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
7990 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
7991 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
7992 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
7993 (tiff_image_p, tiff_load): Don't enclose declarations with #if
7994 HAVE_TIFF.
7995 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
7996 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
7997 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
7998 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
7999 New functions (from xfns.c).
e3564461 8000 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 8001 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
8002 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
8003 Don't enclose with #if HAVE_GIF.
8004 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
8005 animated gif. Otherwise use image_load_quicktime.
8006 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
8007 gif_DrawText to avoid conflict with QuickdrawText.h.
8008 [HAVE_GIF] (gif_load): Sync with xfns.c.
8009 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
8010 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
8011 Ghostscript is not supported yet).
8012 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
8013 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
8014 cross_disabled_images (from xfns.c). Remove #if 0 for supported
8015 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
8016 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
8017 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
8018 HAVE_PNG. Call EnterMovies to support animated gifs.
8019 Call init_image_func_pointer to bind a symbol
e3564461 8020 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 8021
d8d95bc7 8022 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
8023 (x_draw_bar_cursor): Sync declaration with xterm.c.
8024 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
8025 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
8026 graphics).
8027 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
8028 (mac_draw_line_to_pixmap, XCreatePixmap)
8029 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
8030 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
8031 New functions.
8032 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
8033 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
8034 Cast bits to char *.
e3564461
ST
8035 (reflect_byte): New function (from w32fns.c).
8036 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
8037 due to byte alignment.
d8d95bc7
SM
8038 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
8039 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
8040 (XSetForeground): Remove static (now used in macfns.c).
8041 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
8042 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
8043 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
8044 (x_draw_glyph_string_box, x_draw_image_foreground)
8045 (x_draw_image_foreground_1, x_draw_image_glyph_string)
8046 (x_draw_stretch_glyph_string, x_draw_glyph_string)
8047 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
8048 Sync with xterm.c.
8049 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
8050 than the xterm.c version when a strictly horizontal or vertical
8051 line is drawn.
8052 (XTset_terminal_window): Add static.
8053 (x_make_frame_visible): Add UNBLOCK_INPUT.
8054 (x_free_frame_resources): New funcion (from xterm.c).
8055 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
8056 occurs in tool bar area.
d8d95bc7
SM
8057 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
8058 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
8059 Initialize image cache.
8060 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
8061 Enclose unused functions with #if 0.
8062 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
8063 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 8064 from a mac font name to an XLFD font name according to its script code.
e3564461 8065 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 8066 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
8067 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
8068 whose name starts with `.'.
8069 (init_font_name_table): Use decode_mac_font_name. Add both
8070 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
8071 of a font is smJapanese.
8072 (mac_do_list_fonts): New function to list fonts that match a given
8073 pattern.
8074 (x_list_fonts, XLoadQueryFont): Use it.
8075 (XLoadQueryFont): Set rbearing field for each variable width
8076 character to avoid needless redraw.
8077 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
8078
446f5f3d
KS
80792004-02-26 Kim F. Storm <storm@cua.dk>
8080
af617d0f
KS
8081 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
8082 as read_socket_hook handler on X aborts if buffer is too small
8083 and W32 handler doesn't always check buffer limit.
8084
446f5f3d
KS
8085 * xdisp.c (handle_single_display_prop): Handle left-fringe and
8086 right-fringe similar to a display margin image. Specifically,
8087 the characters having the fringe prop are no longer shown, and
8088 we use IT_IMAGE/next_element_from_image with image_id = -1 to
8089 do this. Set fringe bitmap face_id in it->face_id.
8090 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
8091 still realize it->face (i.e. the fringe bitmap face).
8092
7d8a0b55
MB
80932004-02-25 Miles Bader <miles@gnu.org>
8094
8095 * xdisp.c (check_it): Check string/string_pos consistency.
8096 (init_iterator): Initialize string-related fields properly.
8097
80982004-02-11 Miles Bader <miles@gnu.org>
8099
8100 * xdisp.c (produce_image_glyph): Force negative descents to zero.
8101
81022004-02-10 Miles Bader <miles@gnu.org>
8103
8104 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
8105 BLOCK_INPUT can be nested, so it doesn't make much sense.
8106
a64387ee 81072004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
8108
8109 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
8110 (xbm_read_bitmap_data): Use unsigned char for image data.
8111
92f5fba2
LT
81122004-02-23 Luc Teirlinck <teirllm@auburn.edu>
8113
8114 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
8115
8565fb3d
JR
81162004-02-22 Jason Rumney <jasonr@gnu.org>
8117
8118 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
8119 correctly over other bitmaps.
8120
a6eeaa81 81212004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
8122
8123 * emacs.c (USAGE1): Split into two halves.
8124 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
8125 (USAGE3): Rename from USAGE2.
8126 (USAGE4): Rename from USAGE3.
f8125c39 8127
4effffca
EZ
81282004-02-21 Juri Linkov <juri@jurta.org>
8129
8130 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
8131 Fix --multibyte. Move --help, --version to USAGE2. Add alias
8132 --file. Fix -f, -l. Sort options. Untabify.
8133 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
8134
923c1e6f
LT
81352004-02-19 Luc Teirlinck <teirllm@auburn.edu>
8136
8137 * category.c (Fdefine_category, Fcategory_docstring)
8138 (Fget_unused_category, Fset_category_table)
8139 (Fcategory_set_mnemonics): Doc fixes.
8140
b0e225fd
KS
81412004-02-20 Kim F. Storm <storm@cua.dk>
8142
8143 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
8144 The following changes are relative to the 2004-01-21 revision.
8145 (NREAD_INPUT_EVENTS): Define as max number of input events to read
8146 in one call to read_socket_hook. Value is 8.
8147 (read_avail_input): Separate and rework handling of read_socket_hook
8148 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
8149 in read_socket_hook case, and repeat if full buffer is read.
8150 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
8151 In non-read_socket_hook case, just use a single input_event, and
8152 call kbd_buffer_store_event on the fly for each character.
8153
b15aa9f9
SM
81542004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8155
8156 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
8157 Remove unused `gu' alternative.
8158
83c9aa95
AS
81592004-02-19 Andreas Schwab <schwab@suse.de>
8160
8161 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
8162 warning.
8163
cc808173
KS
81642004-02-18 Kim F. Storm <storm@cua.dk>
8165
8166 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
8167 Fix last change.
8168
ab90a54d
KS
81692004-02-17 Kim F. Storm <storm@cua.dk>
8170
b26f249f
KS
8171 * xdisp.c (fast_find_position): Fix return value of new version;
8172 it was inverted compared to the 21.1 version.
8173 (get_window_cursor_type): Don't look at glyph if NULL.
8174 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 8175
ab90a54d
KS
8176 * keyboard.c: Rework previous change; it didn't consider that the
8177 buf array was allocated on the stack.
8178 (prev_read): Remove variable.
8179 (read_avail_input_buf): New static event buffer array.
b9568dfc 8180 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 8181 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
8182 Use in_read_avail_input to handle re-entrance; when re-entered,
8183 fully initialize and use tmp_buf array instead of read_avail_input_buf.
8184 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
8185 is always cleared on entry. To ensure that, we clear (just) the
8186 entries that were used before we return.
8187 (init_keyboard): Initialize read_avail_input_buf here.
8188
b6189c3b 81892004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
8190
8191 * cmds.c (Fend_of_line): Doc fix.
8192
7b5368c1
EZ
81932004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
8194
8195 * keyboard.c (prev_read): New static variable.
8196 (read_avail_input): Use it to zero out only those slots in buf[]
8197 that were used last time we were called.
8198
a6eeaa81 81992004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
8200
8201 * Makefile.in (obj): Move fringe.o from here...
8202 (XOBJ, MAC_OBJ): ...to here.
8203
159c348e
SE
82042004-02-16 Stephen Eglen <stephen@gnu.org>
8205
8206 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
8207
d2f14999
SM
82082004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
8209
b15aa9f9
SM
8210 * data.c (Fbyteorder):
8211 * fringe.c (Fdefine_fringe_bitmap):
8212 * xdisp.c (handle_single_display_prop):
d2f14999
SM
8213 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
8214
8d50508a
JR
82152004-02-16 Jason Rumney <jasonr@gnu.org>
8216
8217 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
8218
dd4497dc
ST
82192004-02-15 Steven Tamm <steventamm@mac.com>
8220
8221 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
8222 controlling emulation of a three button mouse with option and
8223 command keys.
7e26f91b 8224 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 8225 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 8226
c9159cb3
KS
82272004-02-15 Kim F. Storm <storm@cua.dk>
8228
2cc52658
KS
8229 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
8230
c9159cb3
KS
8231 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
8232 Perform byte-swapping.
8233
12fde2dc
KS
82342004-02-14 Kim F. Storm <storm@cua.dk>
8235
8236 * dispextern.h (struct draw_fringe_bitmap_params): Change member
8237 bits from char to short to facilitate wider bitmaps.
8238 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
8239 member.
8240
8241 * fringe.c (struct fringe_bitmap): Change member bits from char to
8242 short to facilitate 16 bits wide bitmaps. Modify all standard
8243 bitmaps accordingly.
8244 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
8245 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
8246 (draw_fringe_bitmap): Ditto.
8247 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
8248 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
8249 handle up to 16 bits wide bitmaps.
8250 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 8251 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
8252
8253 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
8254 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
8255 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
8256
8257 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
8258 so it is no longer necessary to expand them here.
8259
8260 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
8261
9d7271e8
KS
82622004-02-12 Kim F. Storm <storm@cua.dk>
8263
8264 * window.c (Fwindow_fringes): Doc fix.
8265
706c1e4f
JD
82662004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8267
8268 * xselect.c (x_get_foreign_selection): Add new optional parameter
8269 time_stamp.
8270 (Fx_get_selection_internal): Ditto, pass time_stamp to
8271 x_get_foreign_selection.
8272
8273 * data.c (Fbyteorder): New function.
8274
c2d12b5d
JD
82752004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8276
8277 * atimer.c: Move include stdio.h to same place as in other files.
8278
8279 * region-cache.c: Ditto.
8280
8281 * sysdep.c: Ditto.
8282
8283 * xfaces.c: Ditto.
8284
4c1947b9
SS
82852004-02-09 Sam Steingold <sds@gnu.org>
8286
89458937 8287 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 8288
82722af3
KS
82892004-02-09 Kim F. Storm <storm@cua.dk>
8290
8291 * fringe.c: New file. Move original fringe related declarations
8292 and code from dispextern.h and xdisp.c here.
8293 Rework code to support user defined fringe bitmaps, redefining
8294 standard bitmaps, ability to overlay user defined bitmap with
8295 overlay arrow bitmap, and add faces to bitmaps.
8296 (Voverflow_newline_into_fringe): Declare here.
8297 (enum fringe_bitmap_align): New enum.
8298 (..._bits): All bitmaps are now defined without bitswapping; that
8299 is now done in init_fringe_once (if necessary).
8300 (standard_bitmaps): New array with specifications for the
8301 standard fringe bitmaps.
8302 (fringe_faces): New array.
8303 (valid_fringe_bitmap_id_p): New function.
8304 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
8305 (draw_fringe_bitmap): New function which draws fringe bitmap,
8306 possibly overlaying bitmap with cursor in right fringe or the
8307 overlay arrow in the left fringe.
8308 (update_window_fringes): Do not handle overlay arrow here.
8309 Compare and copy fringe bitmap faces.
8310 (init_fringe_bitmap): New function.
8311 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
8312 define and destroy user defined fringe bitmaps.
8313 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
8314 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
8315 (syms_of_fringe): New function. Defsubr new DEFUNs.
8316 DEFVAR_LISP Voverflow_newline_into_fringe.
8317 (init_fringe_once, init_fringe): New functions.
8318 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 8319
82722af3
KS
8320 * Makefile.in (obj): Add fringe.o.
8321 (fringe.o): New dependencies.
8322
8323 * dispextern.h (FRINGE_ID_BITS): New definition for number of
8324 bits allocated to hold a fringe number. Increase number of bits
8325 from 4 to 8 to allow user defined fringe bitmaps.
8326 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
8327 left_user_fringe_face_id, right_user_fringe_bitmap,
8328 right_user_fringe_face_id.
8329 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
8330 Move to new file fringe.c.
8331 (MAX_FRINGE_BITMAPS): Define here.
8332 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
8333 and overlay_p. Change member which to int.
8334 (struct redisplay_interface): New members define_fringe_bitmap
8335 and destroy_fringe_bitmap.
8336 (valid_fringe_bitmap_id_p): Add prototype.
8337 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
8338
8339 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
8340 arrows.
8341 (update_frame): Do flush_display if force_flush_display_p to
8342 ensure display (specifically fringes) are updated in a timely
8343 manner when resizing the frame by dragging the mouse.
8344 (update_window_line): Update row if overlay arrow changed.
8345 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
8346 or overlay arrow changed.
8347
8348 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
8349 syms_of_fringe, and init_fringe.
8350
8351 * frame.h (struct frame): New member force_flush_display_p.
8352
8353 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
8354 Add prototypes.
8355
a3993cc8 8356 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 8357 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
8358 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
8359 Use cursor color for displaying cursor in fringe.
82722af3
KS
8360 (x_redisplay_interface): Add null handlers for
8361 define_fringe_bitmap and destroy_fringe_bitmap functions.
8362
8363 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
8364 xterm.c to handle overlayed fringe bitmaps and to use cursor color
8365 for displaying cursor in fringe.
8366 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
8367 specific functions to define and destroy fringe bitmaps in fringe_bmp.
8368 (w32_redisplay_interface): Add them to redisplay_interface.
8369 (w32_term_init): Call w32_init_fringe instead of explicitly
8370 defining fringe bitmaps in fringe_bmp array.
8371 (x_delete_display): Call w32_reset_fringes instead of explicitly
8372 destroying fringe bitmaps in fringe_bmp array.
8373
8374 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
8375 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
8376 (continued_bits, continuation_bits, ov_bits, first_line_bits)
8377 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
8378 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
8379 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
8380 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
8381 Move fringe handling vars and code to new file fringe.c.
8382 (handle_display_prop): Handle left-fringe and right-fringe
8383 display properties; store user fringe bitmaps in iterator.
8384 (move_it_in_display_line_to): Handle cursor in fringe at eob.
8385 (clear_garbaged_frames): Set force_flush_display_p if resized.
8386 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
8387 (display_line): Handle cursor in fringe at eob.
8388 (display_line): Set row user fringe bitmaps from iterator.
8389
8390 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
8391 Use cursor color for displaying cursor in fringe.
8392 (x_redisplay_interface): Add null handlers for
8393 define_fringe_bitmap and destroy_fringe_bitmap functions.
8394
030400eb
JD
83952004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8396
8397 * macfns.c (Fx_change_window_property): Make doc string and
8398 parameters same as for X version.
8399
8400 * w32fns.c (Fx_change_window_property): Ditto.
8401
3af55251
KS
84022004-02-07 Kim F. Storm <storm@cua.dk>
8403
ec110e9e
KS
8404 * xdisp.c (hscroll_window_tree): Position cursor near to right
8405 margin in hscrolled window when jumping to end of line (rather
8406 than centering cursor).
8407
3af55251
KS
8408 * process.c (wait_reading_process_input): Don't do adaptive read
8409 buffering if waiting for a specific process.
8410
b0c138ce
LT
84112004-02-05 Luc Teirlinck <teirllm@auburn.edu>
8412
8413 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
8414 (Fread_minibuffer, Feval_minibuffer)
8415 (Fread_string, Fread_no_blanks_input)
8416 (Fcompleting_read): Doc fixes.
8417 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
8418 completion-regexp-list. Define Qcase_fold_search and staticpro it.
8419 (read_minibuf): Fix initial comment.
8420 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 8421 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
8422 checking completion-regexp-list.
8423 (Fdisplay_completion_list): Make it handle arguments that are
8424 symbols. Doc fix.
8425
9676f5ad 84262004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 8427
9676f5ad 8428 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 8429
9676f5ad
JD
8430 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
8431 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 8432 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 8433 format. Remove unused variable cons.
5b698285
JD
8434
8435 * xselect.c: Include stdio,h.
8436
fc1d15f6
KH
84372004-02-05 Kenichi Handa <handa@m17n.org>
8438
ebaff4af
KH
8439 * fns.c (Fset_char_table_range): Fix previous change.
8440
fc1d15f6
KH
8441 * buffer.c (Fset_buffer_multibyte): Fix docstring.
8442
9676f5ad
JD
84432004-02-04 Luc Teirlinck <teirllm@auburn.edu>
8444
8445 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
8446
da75761f
SM
84472004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
8448
8449 * keymap.c (Vmouse_events): Rename from Vmenu_events.
8450 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
8451
13c5d120
KH
84522004-02-04 Kenichi Handa <handa@m17n.org>
8453
8454 * fns.c (Fset_char_table_range): Handle charsets ascii,
8455 eight-bit-control, and eight-bit-graphic correctly.
8456
2883d842
JR
84572004-02-03 Jason Rumney <jasonr@gnu.org>
8458
8459 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
8460
8461 * w32fns.c (x_to_w32_font): Likewise.
8462
69eff41f
JD
84632004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8464
8465 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
8466 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
8467
8468 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
8469 ClientMessages.
8470
8471 * xselect.c: Include termhooks.h and X11/Xproto.h
8472 (x_check_property_data, x_fill_property_data)
8473 (x_property_data_to_lisp, mouse_position_for_drop)
8474 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 8475 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
8476 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
8477
da75761f 8478 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
8479 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
8480 OUTER_P.
8481 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
8482 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
8483 if vector_ret_p is true.
8484 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 8485
a6eeaa81 84862004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
8487
8488 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
8489 basename of FILE relative to it, not FILE itself.
8490
09721b31
KH
84912004-02-02 Kenichi Handa <handa@m17n.org>
8492
8493 * coding.c (coding_restore_composition): Check invalid
8494 composition data more rigidly.
8495
eb996101
LT
84962004-01-30 Luc Teirlinck <teirllm@auburn.edu>
8497
8498 * fileio.c (Fread_file_name_internal): Correctly handle the case
8499 where insert-default-directory is nil.
8500 (Fread_file_name): Always return an empty string if the user exits
8501 with an empty minibuffer. Adapt the docstring accordingly.
8502 (syms_of_fileio): Adapt the docstring of insert-default-directory
8503 to the change in Fread_file_name.
8504
a6eeaa81 85052004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
8506
8507 * alloca.c [!alloca]: Fix the prototype for xfree.
8508
13f52ed8
KH
85092004-01-29 Kenichi Handa <handa@m17n.org>
8510
8511 * fns.c (string_char_to_byte): Optimize for ASCII only string.
8512 (string_byte_to_char): Likewise.
8513
d57625a0
JR
85142004-01-28 Peter Runestig <peter@runestig.com>
8515
8516 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
8517
a64387ee 85182004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
8519
8520 * unexmacosx.c (unexec_copy): Do not copy more than was
8521 requested to prevent overwriting during unexec.
8522
eb37b8fd
JD
85232004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8524
ce38070a
JD
8525 * process.c (sigchld_handler): Add comment about not calling malloc.
8526
eb37b8fd
JD
8527 * process.h: Add extern to synch_process_termsig.
8528
a64387ee 85292004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 8530
da75761f
SM
8531 * macterm.c (make_mac_frame, make_mac_terminal_frame):
8532 Move setting of scroll bars from make_mac_frame to
8533 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 8534
d62a265d
RS
85352004-01-26 Richard M. Stallman <rms@gnu.org>
8536
8537 * search.c (Freplace_match): Handle nonexistent
8538 back-references properly.
8539
85402004-01-03 Richard M. Stallman <rms@gnu.org>
8541
8542 * window.c (decode_any_window): New function.
8543 (Fwindow_height, Fwindow_width, Fwindow_edges)
8544 (Fwindow_pixel_edges, Fwindow_inside_edges)
8545 (Fwindow_inside_pixel_edges): Use decode_any_window.
8546
ff236419
JD
85472004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8548
8549 * process.h: synch_process_termsig new variable.
8550
8551 * callproc.c: Define synch_process_termsig.
8552 (Fcall_process): Initiate synch_process_termsig to zero and
8553 check if non-zero and get signal name after subprocess has ended.
8554
8555 * process.c (sigchld_handler): Set synch_process_termsig
8556 if terminated by a signal. synch_process_death setting removed.
8557
8558 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
8559
41b867ea
AS
85602004-01-26 Andreas Schwab <schwab@suse.de>
8561
8562 * print.c (print_preprocess): Declare size as EMACS_INT to not
8563 lose bits.
8564 (print_object): Likewise.
8565 * alloc.c (Fpurecopy): Likewise.
8566
a08084ff
LT
85672004-01-25 Luc Teirlinck <teirllm@auburn.edu>
8568
8569 * window.c (Fwindow_minibuffer_p): Doc fix.
8570
b19ac475
JY
85712004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
8572
8573 * editfns.c (Fformat): Make both passes accept the same set of flags.
8574
fe905025
KH
85752004-01-23 Kenichi Handa <handa@m17n.org>
8576
8577 * fns.c (Fmd5): If OBJECT is a buffer different from the current
8578 one, set buffer to OBJECT temporarily.
8579
438fc6c0
SM
85802004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
8581
455316e2
SM
8582 * keyboard.c (kbd_buffer_gcpro): Remove.
8583 (kbd_buffer_store_event, clear_event, Fdiscard_input)
8584 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
8585 Don't initialize and/or maintain the variable any more. It was made
8586 redundant by my commit of 2003-06-15.
8587
438fc6c0
SM
8588 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
8589
5335a4ee
JD
85902004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8591
8592 * lisp.h: Add undef DECL_ALIGN.
8593
dcdaeebc
SM
85942004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
8595
8596 * process.c (wait_reading_process_input) [SYNC_INPUT]:
8597 Check interrupt_input_pending explicitly.
8598
8599 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
8600
8601 * keyboard.c (handle_async_input): New fun,
8602 extracted from input_available_signal.
8603 (input_available_signal, reinvoke_input_signal): Use it.
8604
9076a823
SM
86052004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
8606
d7107586
SM
8607 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
8608
8609 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
8610 manipulation macros for when tags are in the lower bits.
8611 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
8612 (DECL_ALIGN): New macro.
8613 (DEFUN): Use it.
8614
8615 * lisp.h [ENABLE_CHECKING]: Don't force union type.
8616
8617 * s/darwin.h (__attribute__): Remove outdated workaround.
8618
8619 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
8620
8621 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
8622 Don't check range of malloc address.
8623 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
8624
9076a823
SM
8625 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
8626
8627 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
8628
ba029065
KH
86292004-01-19 Kenichi Handa <handa@m17n.org>
8630
8631 * fontset.c (fontset_font_pattern): Fix previous change.
8632
7af0e8d7
MB
86332004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
8634
8635 * xdisp.c (Voverflow_newline_into_fringe)
8636 (move_it_in_display_line_to, redisplay_internal)
8637 (update_window_fringes, redisplay_window, display_line, window):
8638 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
8639 that it compiles without a window-system.
8640 * dispnew.c (direct_output_for_insert, update_window): Likewise.
8641
77a9cf69
KS
86422004-01-16 Kim F. Storm <storm@cua.dk>
8643
8644 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
8645
a64387ee 8646 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
8647 buffer_local_flags for indicate_buffer_boundaries.
8648 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
8649 default- variable for it.
8650
8651 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
8652 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 8653 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
8654 overflowing newlines into right fringe.
8655 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
8656 and indicate_bottom_line_p for buffer boundaries and scrolling.
8657 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
8658 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
8659 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
8660 and HOLLOW_SQUARE_BITMAP.
8661 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
8662 Add prototypes.
8663
8664 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
8665 instead of related indicator fields.
8666 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
8667 (direct_output_for_insert): Handle exact width lines like
8668 contined lines. Call update_window_fringes.
8669 (update_window): Call update_window_fringes.
8670 (scrolling_window): Don't skip desired rows with changed bitmaps.
8671 Check if fringe bitmaps changes when assigning scrolled rows.
8672
8673 * xdisp.c (Voverflow_newline_into_fringe): New variable.
8674 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
8675 (move_it_in_display_line_to): Overflow newline into fringe for
8676 rows that are exactly as wide as the window.
8677 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
8678 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
8679 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
8680 (fringe_bitmaps): Add new bitmaps.
8681 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
8682 Select proper bitmap for cursor in fringe when appropriate.
8683 Handle alignment of bitmap to top or bottom of row.
8684 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
8685 done by update_window_fringes.
8686 (update_window_fringes, draw_window_fringes): New functions.
8687 (redisplay_internal): Call update_window_fringes in case only
8688 cursor row is updated.
8689 (redisplay_window): Call update_window_fringes.
8690 Explicitly call draw_window_fringes if redisplay was done using
8691 the current matrix or the overlay arrow is in the window.
8692 (try_window_reusing_current_matrix): Mark scrolled rows for
8693 fringe update (to update buffer-boundaries / scrolling icons).
8694 (find_last_unchanged_at_beg_row): Handle exact width lines line
8695 continued lines.
8696 (display_line): Overflow newline into fringe for rows that are
8697 exactly as wide as the window. Don't append space for newline
d7107586 8698 in this case.
77a9cf69
KS
8699 (notice_overwritten_cursor): Explicitly clear cursor bitmap
8700 in fringe as if it had been overwritten.
8701 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 8702 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
8703 void-text-area-pointer as user options.
8704 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 8705
77a9cf69
KS
8706 * xterm.c (x_update_window_end): Call draw_window_fringes.
8707 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
8708 in row instead of actually drawing fringe bitmaps.
8709 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
8710 (x_draw_window_cursor): Draw cursor in fringe.
8711
8712 * w32term.c (x_update_window_end): Call draw_window_fringes.
8713 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
8714 in row instead of actually drawing fringe bitmaps.
8715 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
8716 (w32_draw_window_cursor): Draw cursor in fringe.
8717
8718 * macterm.c (x_update_window_end): Call draw_window_fringes.
8719 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
8720 in row instead of actually drawing fringe bitmaps.
8721 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
8722 (mac_draw_window_cursor): Draw cursor in fringe.
8723
a633a954
JD
87242004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8725
8726 * xterm.c (handle_one_xevent): Don't handle characters that are part
8727 of an old style (XLookupString) compose sequence.
8728
80460525
KH
87292004-01-15 Kenichi Handa <handa@m17n.org>
8730
8731 * search.c (Freplace_match): Use make_multibyte_string or
8732 make_unibyte_string according to the buffer multibyteness.
8733
7fc34f85
SM
87342004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
8735
8736 * alloc.c (struct interval_block, struct string_block)
8737 (struct symbol_block, struct marker_block, live_string_p)
8738 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
8739 Better preserve alignment for objects in blocks.
8740 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
8741
8742 * lread.c (defvar_per_buffer): Remove dead declaration.
8743
8744 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
8745 space size.
8746
66070bd1
JD
87472004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8748
8749 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
8750 if a key press should pop down. Only pop down if a key is pressed
8751 outside the menu/dialog.
8752 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
8753 popup_get_selection.
8754 (create_and_show_dialog): Pass 1 for down_on_keypress to
8755 popup_get_selection.
8756
de7515d6
JD
87572004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8758
8759 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
8760 BLOCK/UNBLOCK_INPUT.
8761
160b1b50
JD
87622004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8763
8764 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
8765 specified.
8766
3a9f36e6
KH
87672004-01-08 Kenichi Handa <handa@m17n.org>
8768
8769 * editfns.c (Fformat): Fix '&' to '&&'.
8770
3803eb32
AS
87712004-01-08 Andreas Schwab <schwab@suse.de>
8772
8773 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
8774 size if PSEUDOVECTOR_FLAG is set.
8775
9da88f37
KH
87762004-01-07 Kenichi Handa <handa@m17n.org>
8777
74ac5074
KH
8778 * charset.c (Fdeclare_equiv_charset): Fix docstring.
8779
9da88f37
KH
8780 * fontset.c (fontset_ref_via_base): Fix previous change.
8781
05faee07
KS
87822004-01-07 Kim F. Storm <storm@cua.dk>
8783
8784 * process.c (read_process_output): Only activate adaptive
8785 buffering if we read less than 256 bytes at a time.
8786
634910c8
KS
87872004-01-06 Kim F. Storm <storm@cua.dk>
8788
8789 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
8790 object and image object. Return glyph width and height.
8791 (mode_line_string, marginal_area_string): Ditto.
8792
8793 * dispextern.h (buffer_posn_from_coords, mode_line_string)
8794 (marginal_area_string): Fix prototypes.
8795
8796 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 8797 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
8798 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
8799
8800 * keyboard.c (make_lispy_position): Use modified mode_line_string,
8801 buffer_posn_from_coords, and marginal_area_string functions to
8802 include both string object and image object in the lispy position.
8803 Also add actual glyph width and height to position.
8804 (read_key_sequence): Use real buffer position from mouse
8805 event to find keymap property even when click is in marginal area.
8806
8807 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
8808 mode_line_string and marginal_area_string functions to handle
8809 both string object and image object properties.
d7107586 8810
57951c2e
AS
88112004-01-06 Andreas Schwab <schwab@suse.de>
8812
8813 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
8814 character.
8815
181e6a61
AS
88162004-01-02 Andreas Schwab <schwab@suse.de>
8817
d7107586
SM
8818 * macterm.c (emacs_options, x_initialized, same_x_server):
8819 Remove unused (and duplicated) definitions.
181e6a61 8820
31e0fbdd
KS
88212004-01-02 Kim F. Storm <storm@cua.dk>
8822
8823 * process.h (struct Lisp_Process): New members for adaptive read
8824 buffering: adaptive_read_buffering, read_output_delay, and
8825 read_output_skip.
8826
8827 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
8828 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
8829 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
8830 (process_output_delay_count, process_output_skip): New vars.
8831 (Vprocess_adaptive_read_buffering): New variable.
8832 (make_process): Initialize adaptive read buffering members.
8833 (Fstart_process): Set adaptive_read_buffering member.
8834 (deactivate_process): Cleanup adaptive read buffering.
8835 (wait_reading_process_input): Temporarily omit delayed
8836 subprocesses from the set of file descriptors to read from;
8837 adjust the select timeout if we skipped any subprocesses.
8838 (read_process_output): Increase adaptive read buffering delay if
8839 we read less than a full buffer; reduce delay when we read a
8840 full buffer.
8841 (send_process): Simplify using local Lisp_Process var.
8842 Reset adaptive read buffering delay after write.
8843 (init_process): Initialize process_output_delay_count and
8844 process_output_skip.
8845 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
8846
68c6a789
JR
88472004-01-01 Jason Rumney <jasonr@gnu.org>
8848
d7107586 8849 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 8850
3f70fe82
LT
88512003-12-30 Luc Teirlinck <teirllm@auburn.edu>
8852
8853 * print.c (Ferror_message_string): Add hyperlink in the docstring
8854 to the definition of `signal' in the Elisp manual.
8855 * eval.c (Fsignal): Ditto.
8856
b6189c3b 88572003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
8858
8859 * fns.c (internal_equal): Return t for two NaN arguments.
8860
7abd90ea
RS
88612003-12-29 Richard M. Stallman <rms@gnu.org>
8862
8863 * data.c (store_symval_forwarding): Handle setting
8864 default-fill-column, etc., by changing the value in
8865 buffers that use the default.
8866
8867 * minibuf.c (Fset_minibuffer_window): Doc fix.
8868
8869 * fileio.c (choose_write_coding_system): Ignore auto_saving
8870 if using the visited file for auto saves.
8871 (Fwrite_region): Don't update SAVE_MODIFF
8872 if auto-saving in visited file.
8873
3e7cfcdc
KH
88742003-12-29 Kenichi Handa <handa@m17n.org>
8875
8876 * dispextern.h (face_font_available_p): Extern it.
8877
8878 * fontset.c (Voverriding_fontspec_alist): New variable.
8879 (lookup_overriding_fontspec): New function.
d7107586 8880 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
8881 (fontset_font_pattern): Likewise.
8882 (regulalize_fontname): New function.
8883 (Fset_fontset_font): Call regulalize_fontname.
8884 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
8885 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
8886 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
8887
8888 * xfaces.c (face_font_available_p): New function.
8889
7abd90ea
RS
88902003-12-28 Richard M. Stallman <rms@gnu.org>
8891
8892 * buffer.c (Fother_buffer): Don't crash if BUF is nil
8893 or if its name is nil.
8894
8895 * buffer.c (Fkill_buffer): Don't delete auto-save file
8896 if it's the same as the visited file.
8897
de1d1a40
LT
88982003-12-28 Luc Teirlinck <teirllm@auburn.edu>
8899
8900 * coding.c (Fcheck_coding_system): Doc fix.
8901
204fb75e
KS
89022003-12-28 Kim F. Storm <storm@cua.dk>
8903
8904 * Makefile.in (eval.o): Depend on dispextern.h.
8905
8906 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
8907 image glyph using image's ascent.
8908 (mode_line_string): Return image glyph as object clicked on.
8909 Adjust y0 for image glyph using image's ascent.
8910
8911 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
8912 (struct glyph): New members, ascent and descent. Used to save
8913 this glyph's ascent and descent, instead of having.
8914 (struct glyph): Declare member face_id using FACE_ID_BITS.
8915 (find_hot_spot): Add prototype.
8916
8917 * keyboard.c (Qimage): Remove extern (now in lisp.h).
8918 (QCmap): Declare extern.
8919 (make_lispy_position): When position is inside image hot-spot,
8920 use hot-spot element's id as posn element.
8921
8922 * lisp.h (IMAGEP): New macro to test for image object type.
8923 (Qimage): Declare extern.
8924
8925 * macfns.c (Qimage): Remove extern (now in lisp.h).
8926 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8927
8928 * macterm.c (Qface, Qmouse_face): Remove unused externs.
8929
8930 * w32fns.c (Qimage): Remove extern (now in lisp.h).
8931 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8932
8933 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
8934
8935 * w32term.c (Qface, Qmouse_face): Remove unused externs.
8936
8937 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
8938 pointer types.
8939 (Qrelative_width, Qalign_to): Remove unused variables.
8940 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
8941 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
8942 image maps.
d7107586 8943 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
8944 new dx and dy args.
8945 Remove buffer_only_p arg (always 0). Simplify code accordingly.
8946 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
8947 than row's ascent and height, to get sensible height on tall rows.
8948 (build_desired_tool_bar_string): Remove Qimage extern.
8949 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
8950 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
8951 image glyph is alone on the last line.
8952 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 8953 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 8954 (on_hot_spot_p): New function to check if position is inside an
d7107586 8955 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
8956 (find_hot_spot): New function to search for image hot-spot.
8957 (Flookup_image_map): New defun to search for image hot-spot.
8958 (define_frame_cursor1): New aux function to determine frame pointer.
8959 (note_mode_line_or_margin_highlight, note_mouse_highlight):
8960 Handle `pointer' text property and :pointer image property to
8961 control frame pointer shape. Detect image hot-spots for pointer
8962 and help_echo properties. Use define_frame_cursor1.
8963 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 8964 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
8965 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
8966
8967 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
8968
8969 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
8970 (Qimage): Remove extern (now in lisp.h).
8971 (valid_image_p, parse_image_spec): Use IMAGEP macro.
8972
8973 * xmenu.c (show_help_event): Remove unused code.
8974
8975 * xterm.c (Qface, Qmouse_face): Remove unused externs.
8976 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
8977 row's ascent and descent, to get a sensible height on tall rows.
8978
fc052137
LT
89792003-12-25 Luc Teirlinck <teirllm@auburn.edu>
8980
8981 * minibuf.c (Fcompleting_read): Undo previous change.
8982
a64387ee 89832003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
8984
8985 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
8986 Arguments GCPRO'ed in call to file name handler.
8987
56ffd194
TTN
89882003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
8989
8990 * termcap.c (tgetst1): Scan for "%pN"; if all
8991 N are continuous in [1,9], remove all "%pN".
8992
5202d23d
JD
89932003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8994
f26fab36
JD
8995 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
8996
5202d23d
JD
8997 * xfaces.c (lface_fully_specified_p): Take into account that
8998 MAC OS always have unspecified stipple.
8999
8babaa59
TTN
90002003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9001
9002 * tparam.c (tparam1): Add handling for `%pN', which
9003 means use param N for the next substitution.
9004
2d176448
TTN
90052003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9006
9007 * xfaces.c (Fcolor_gray_p): Fix omission bug:
9008 In case `frame' is nil, consult the selected frame.
9009 (Fcolor_supported_p): Likewise.
9010
adb0708c
LT
90112003-12-23 Luc Teirlinck <teirllm@auburn.edu>
9012
000eeb15
LT
9013 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
9014 Doc fixes.
0dc72b11
LT
9015
9016 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
9017 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
9018 (Fread_from_minibuffer): Delete code moved into read_minibuf.
9019 Doc fix.
9020 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
9021 read_minibuf.
9022 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 9023 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 9024
2e4d132b
KH
90252003-12-03 Kenichi Handa <handa@m17n.org>
9026
9027 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
9028 encoding sequence.
9029
3999c705
KH
90302003-12-01 Kenichi Handa <handa@m17n.org>
9031
9032 * composite.c (syms_of_composite): Don't make the compostion hash
9033 table week.
9034
d344ecbb
LT
90352003-11-30 Luc Teirlinck <teirllm@auburn.edu>
9036
9037 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
9038 * textprop.c (Fget_char_property_and_overlay): New function.
9039 (syms_of_textprop): Defsubr it.
9040
03d6484e
JD
90412003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9042
019b1f0e
JD
9043 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
9044 to compile on terminal configuration.
9045
03d6484e
JD
9046 * fileio.c (Fread_file_name): Check use_file_dialog also before
9047 calling Fx_file_dialog.
9048
1d1c7e75 9049 * fns.c (use_file_dialog): New variable.
03d6484e
JD
9050 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
9051
442d3fd0
KS
90522003-11-29 Kim F. Storm <storm@cua.dk>
9053
9054 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
9055 (syms_of_msdos): Don't intern and staticpro them.
9056
0f6a07a8
KS
90572003-11-27 Kim F. Storm <storm@cua.dk>
9058
9059 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
9060 coordinates relative to glyph at posn. If glyph is an image,
9061 return that as object at posn. Callers changed.
9062 (mode_line_string, marginal_area_string): Calculate and return
9063 pixel coordinates relative to glyph. Callers changed.
9064
9065 * dispextern.h (buffer_posn_from_coords, mode_line_string)
9066 (marginal_area_string): Fix prototypes.
9067 (window_box_left_offset, window_box_right_offset): Add prototypes.
9068
9069 * frame.h (get_specified_cursor_type, get_window_cursor_type):
9070 Remove prototypes.
9071
9072 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
9073
9074 * keyboard.c (make_lispy_position): Add x and y coordinates
9075 relative to the current glyph as 7th element of position.
9076 If glyph is an image, return it in the object element.
9077 (read_key_sequence): Skip checks for keymap property in cases
9078 where POSN_STRING is not a string (e.g. an image).
9079
9080 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
9081 (Vshow_text_cursor_in_void): New variable.
9082 (glyph_to_pixel_coords): Don't use negative hpos.
9083 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
9084 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 9085 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
9086 (calc_pixel_width_or_height): New aux function, implementing
9087 pixel based artihmetic for glyph widths and heights.
9088 (produce_stretch_glyph): Use calc_pixel_width_or_height for
9089 :width, :height, :align-to, and :ascent, thus allowing these to
9090 be specified in pixels as well as multiples of characters.
9091 Don't produce stretch glyphs with zero width or height.
9092 (get_specified_cursor_type): Declare static.
9093 (get_window_cursor_type): Declare static. Add glyph arg to be
9094 able to know when cursor is on an image; always substitute
9095 hollow-box cursor for filled-box cursor on images, to avoid
9096 negative images and flicker when blinking the cursor.
9097 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
9098 (note_mode_line_or_margin_highlight): Use non-text cursor rather
9099 than vertical scroll-bar cursor in display margins.
9100 (note_mouse_highlight): Use non-text cursor rather than text
9101 cursor in fringes and over images in the text area.
9102 Use non-text cursor when mouse pointer is outside editable text,
9103 i.e. in the void after end-of-line or end-of-buffer; this was
9104 already done for W32, but is now standard for all systems --
9105 user can toggle show-text-cursor-in-void to get old behaviour.
9106 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
9107 Vdisplay_pixels_per_inch.
9108
00498bfc
AS
91092003-11-25 Andreas Schwab <schwab@suse.de>
9110
9111 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
9112 EMACS_INT to not lose bits.
9113 (Ffillarray): Don't set bits beyond the size of a bool vector.
9114
edaa824d
KS
91152003-11-25 Kim F. Storm <storm@cua.dk>
9116
9117 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
9118 define this defun on systems that cannot use stderr as lvalue.
9119
74d6f539
GM
91202003-11-24 Gerd Moellmann <gerd@gnu.org>
9121
9122 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
9123 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
9124 ld's default is incompatible with unexec.
9125
6a1ff3ba
KS
91262003-11-23 Kim F. Storm <storm@cua.dk>
9127
63dc7c6b
KS
9128 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
9129 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
9130 (Fforce_window_update): New defun.
9131 (syms_of_window): Defsubr it.
9132 (Fset_window_margins, Fset_window_fringes): Doc fix.
9133
6a1ff3ba
KS
9134 * print.c (Fredirect_debugging_output): New defun.
9135 (syms_of_print): Defsubr it.
9136
aef109b7
LT
91372003-11-22 Luc Teirlinck <teirllm@auburn.edu>
9138
9139 * fns.c (Fset_char_table_parent): Doc fix.
9140
6a1ff3ba 91412003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
9142
9143 * dispnew.c (buffer_posn_from_coords): Return actual row/column
9144 for glyph clicked on, rather than (unused) pixel positions.
9145 (mode_line_string, marginal_area_string): Change X and Y args to
9146 pointers for returning actual row/column for glyph clicked on.
9147 Simplify and optimize loops.
9148
aef109b7
LT
9149 * dispextern.h (mode_line_string, marginal_area_string):
9150 Update prototypes.
63ccbe21
KS
9151
9152 * keyboard.c (make_lispy_position): New function for generating
9153 mouse click positions from frame and pixel coordinates.
9154 Enhanced to return buffer position and actual row/column for
9155 events outside the text area using updated mode_line_string and
9156 marginal_area_string functions.
9157 Return left-fringe and right-fringe clicks as such, rather than
9158 clicks in text area.
9159 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
9160 pixel_to_glyph_coords, as we never use the results.
9161 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
9162 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
9163 Eliminate unused code in WHEEL_EVENT handling.
9164 (make_lispy_movement): Use make_lispy_position.
9165
9166 * window.c (coordinates_in_window): Remove redundant tests.
9167 Fix returned X pixel value for left-margin.
9168
9169 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
9170 mode_line_string and marginal_area_string parameters.
9171
a64387ee 91722003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 9173
d7107586
SM
9174 * w32.c (struct the_group, getgrgid): Add.
9175 * mac.c (struct my_group, getgrgid): Add.
aef109b7 9176
3dbf3426
LT
91772003-11-21 Luc Teirlinck <teirllm@auburn.edu>
9178
9179 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
9180
cae8ddbb 91812003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 9182
d7107586
SM
9183 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
9184 include in call to file name handler. Optionally translate numeric
9185 UID and GID to strings. Update docstring.
9186 (directory_files_internal): Add parameter ID-FORMAT.
9187 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
9188 include in call to file name handler and call to
9189 directory_files_internal. Update Docstring.
9190 (Fdirectory_files): Add dummy parameter in call to
9191 directory_files_internal.
9192 * lisp.h (Qinteger): Add.
9193 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
9194 (Ffile_attributes): Add parameter.
9195 * data.c (Qinteger): Export.
cae8ddbb 9196
2550b848
LT
91972003-11-21 Luc Teirlinck <teirllm@auburn.edu>
9198
3dbf3426 9199 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 9200
88380018
KS
92012003-11-19 Kim F. Storm <storm@cua.dk>
9202
9203 * xdisp.c (init_iterator): Initialize it->start to position
9204 before reseating (in case start position is invisible).
9205 (init_to_row_start): Set it->start to row-start.
9206 (redisplay_window): Accept optional_new_start if start position
9207 is invisible (in which case IT_CHARPOS overshoots PT).
9208 (display_line): Setup row->start from it->start (rather than
9209 it->current which is wrong if first char on line is invisible).
9210 When done, reseat it->start to it->current (= start of next row).
9211 (expose_area): Fix exposure of text area when first char (e.g. TAB)
9212 is only partially visible.
9213
9214 * dispextern.h (struct it): New member start.
9215
854c1a59
SM
92162003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
9217
455316e2
SM
9218 * alloc.c (make_float, Fcons): Clear the markbit at init time.
9219 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
9220 of block_index outside of the macro call.
9221 (Fgarbage_collect): Remove null code.
9222
9223 * m/amdx86-64.h: Don't redefine XPNTR.
9224
854c1a59
SM
9225 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
9226 of VALMASK.
9227
9228 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
9229 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
9230 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
9231
9232 * lisp.h (VALMASK): Only define for non-union type.
9233 (MARKBIT): Remove.
9234 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
9235 (XTYPE): Define unconditionally.
9236 (XSETTYPE): Remove one more remnant.
9237 (EQ): Define differently for the union and non-union cases.
9238 (INTMASK): New bit mask.
9239 (struct Lisp_Marker): Move down to prepare for upcoming patch.
9240 (GC_EQ): Delegate to EQ.
9241
9242 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
9243
a0c6ef2d
JD
92442003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9245
9246 * xterm.c (x_window_to_scroll_bar): Move check of display to
9247 where window_id is compared.
9248
859492c4
KS
92492003-11-17 Kim F. Storm <storm@cua.dk>
9250
9251 * dispextern.h (struct it): New member first_vpos.
9252
9253 * xdisp.c (start_display): Set it->first_vpos.
9254 (try_window_id): Use first_vpos to start display in first _text_
9255 line if no reusable lines at start of window with header line.
9256
810f2256
JD
92572003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9258
7c402969 9259 * w32fns.c (XPutPixel):
854c1a59
SM
9260 * w32bdf.c (w32_init_bdf_font):
9261 * sunfns.c (sel_read):
9262 * process.c (Fmake_network_process):
9263 * frame.c (store_frame_param):
9264 * fontset.c (Fset_fontset_font):
9265 * emacs.c (shut_down_emacs):
a64387ee 9266 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 9267
a32e9bfd
JD
9268 * config.in: Regenerate.
9269
810f2256
JD
9270 * xfns.c (x_window_to_frame, x_any_window_to_frame)
9271 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
9272 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
9273 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
9274 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
9275
9276 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
9277
9278 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
9279 (XTmouse_position, handle_one_xevent): Pass Display* to
9280 x_window_to_scroll_bar.
9281 (x_window_to_scroll_bar): Take a Display* argument.
9282 Check that display for frame is equal to Display* argument.
854c1a59 9283 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
9284 x_display_info_for_display instead. Use Display in xev instead
9285 of GDK_DISPLAY.
9286 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 9287 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
9288 (x_connection_closed): Call xg_display_close for GTK.
9289 (x_term_init): Call xg_display_open for additional displays.
9290 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
9291 for GTK.
9292
9293 * xmenu.c (single_menu_item, mouse_position_for_popup)
9294 (x_activate_menubar): Formatting adjustments.
9295
9296 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
9297 adjustments.
9298
9299 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
9300 (xg_display_close, xg_create_default_cursor)
9301 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
9302 handling.
854c1a59
SM
9303 (xg_left_ptr_cursor): Remove.
9304 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
9305 cursor here.
9306 (xg_win_to_widget): Take Display* argument, call
9307 gdk_xid_table_lookup_for_display.
9308 (xg_create_frame_widgets, xg_get_file_name, create_menus)
9309 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
9310 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
9311 in FRAME_X_DISPLAY_INFO.
9312 (xg_get_scroll_id_for_window): Take Display* argument.
9313 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 9314 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 9315
78819ebb
KS
9316 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
9317 Display* argument.
9318 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 9319
0b03cc78
JD
93202003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9321
9322 * xterm.c (x_detect_focus_change): Do not change focus frame for
9323 Enter/LeaveNotify if the current focus frame has explicit focus.
9324
77e688fa
KS
93252003-11-14 Kim F. Storm <storm@cua.dk>
9326
9327 * dispnew.c (update_text_area): Fix redisplay error when hscroll
9328 is active and first glyph is only partially visible.
854c1a59 9329
dd429b03
KH
93302003-11-13 Kenichi Handa <handa@m17n.org>
9331
9332 * xdisp.c (select_frame_for_redisplay): New function.
9333 (redisplay_internal): Record also selected_frame for
9334 unwind_redisplay. Call select_frame_for_redisplay before
9335 redrawing each frame.
9336 (unwind_redisplay): Argument changed to a cons.
9337
6d9266f4
LT
93382003-11-12 Luc Teirlinck <teirllm@auburn.edu>
9339
9340 * fns.c (Fstring_to_multibyte): Doc fix.
9341
80060eb3
KH
93422003-11-11 Kenichi Handa <handa@m17n.org>
9343
9344 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
9345
74305183
JD
93462003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9347
9348 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
9349 program specified positions.
9350
cfda993e
JD
93512003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9352
9353 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
9354
df211069
KH
93552003-11-08 Kenichi Handa <handa@m17n.org>
9356
9357 * Makefile.in (lisp): Add kannada.el.
9358 (shortlisp): Likewise.
9359
4307d534
KH
93602003-11-07 Kenichi Handa <handa@m17n.org>
9361
854c1a59
SM
9362 * coding.c (coding_allocate_composition_data):
9363 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
9364 (coding_restore_composition): Detect invalid composition data.
9365 Give Fstring and Fvector a Lispy integer, not C int.
9366
854c1a59
SM
93672003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
9368
9369 * floatfns.c (Flogb): Don't use VALMASK.
9370
9371 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
9372 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
9373
9374 * lisp.h (XINT): Move the cast to clarify what is going on.
9375 (GCTYPEMASK, XSETTYPE): Remove.
9376 (XGCTYPE): Make it an alias of XTYPE.
9377
d04103a1
JD
93782003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9379
9380 * xterm.c (x_term_init): Fix formatting.
9381
da18b5ac
JD
93822003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9383
78819ebb
KS
9384 * gtkutil.h (xg_have_tear_offs): Declare.
9385 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
9386
9387 * gtkutil.c: Remove variable xg_did_tearoff.
9388 (xg_have_tear_offs): New function.
9389 (tearoff_remove): Just decrease xg_detached_menus.
9390 (tearoff_activate): Increase xg_detached_menus and call
9391 tearoff_remove when tearoff is removed.
854c1a59 9392 (xg_keep_popup): Remove function.
da18b5ac
JD
9393 (create_menus): Give add_tearoff_p as argument to recursive
9394 call to create_menus.
9395 (xg_create_widget): Use variables instead of multiple
9396 strcmp. Tell create_menus to create tear off only for
9397 menu bar menus.
9398 (xg_update_menubar): Change title for a detached menu also.
9399 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
9400 of deep_p.
9401 (xg_initialize): Initialize xg_detached_menus, remove
9402 initialization of xg_did_tearoff.
9403
9404 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
9405 xg_have_tear_offs returns non-zero.
9406 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
9407 call to xg_keep_popup.
9408
64d4923e
AC
94092003-11-01 Andrew Choi <akochoi@shaw.ca>
9410
9411 * macterm.c (XTread_socket): Handle menubar selection and grow
9412 window only for mouseDown events.
854c1a59 9413
6cc8bc07
JD
94142003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9415
9416 * xterm.c (x_term_init): For GTK part, increase x_initialized
9417 to check for more than one display. Use error instead of return 0.
9418
043131c4
AC
94192003-10-31 Andrew Choi <akochoi@shaw.ca>
9420
854c1a59 9421 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
9422 (copy_dysymtab): Call it.
9423
bdda99a1
LT
94242003-10-31 Luc Teirlinck <teirllm@auburn.edu>
9425
9426 * eval.c (Fdefvaralias): Doc fix.
9427
800f42ff 94282003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
9429
9430 * data.c (Fsetplist): Doc fix.
9431
ef35b389
LK
94322003-10-14 Lute Kamstra <lute@gnu.org>
9433
9434 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 9435
ef35b389 94362003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 9437
07107abc
KS
9438 * window.c (Fset_window_margins): Simplify arg checking.
9439
f7005886
RS
94402003-10-13 Richard M. Stallman <rms@gnu.org>
9441
9442 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
9443 (print_partial_compiled_pattern): Replace assert with a printout.
9444 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
9445
9446 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
9447
9448 * window.c (Fset_window_margins): Allow only integers as args.
9449 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
9450 Doc fixes.
9451
9c0c2af5
LK
94522003-10-13 Lute Kamstra <lute@gnu.org>
9453
9454 * window.c (Fset_window_fringes): Elaborate docstring.
9455
3f080e4e
AC
94562003-10-12 Andrew Choi <akochoi@shaw.ca>
9457
854c1a59 9458 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 9459
3f080e4e
AC
9460 * s/darwin.h (GC_MARK_STACK): Define.
9461
0aa513ed
JD
94622003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9463
9464 * window.c (shrink_windows): New function.
9465 (size_window): Call shrink_windows to calculate window sizes when
9466 shrinking frame with more than one window.
9467
6aa8858a
KS
94682003-10-12 Kim F. Storm <storm@cua.dk>
9469
9470 * xdisp.c (compute_fringe_widths): Doc fix.
9471
c2164d91
KH
94722003-10-08 Kenichi Handa <handa@m17n.org>
9473
854c1a59 9474 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 9475
f82ac129
KH
94762003-10-07 Kenichi Handa <handa@m17n.org>
9477
9478 * coding.c (Qcoding_system_define_form): New variable.
9479 (syms_of_coding): Intern and staticpro it.
9480 (Fcheck_coding_system): Try to autoload the definition of
9481 CODING-SYSTEM.
9482
9296c947
LT
94832003-10-05 Luc Teirlinck <teirllm@auburn.edu>
9484
9485 * fns.c (Frequire): Doc fix.
9486
c1f0671a
JD
94872003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9488
3d8c3826
JD
9489 * xfns.c (Fx_send_client_event): New function as a base for
9490 manipulating extended window manager hints.
6dc15d98 9491 (Fx_send_client_event): Remove unused variable s.
3d8c3826 9492
068ae0fd
JD
9493 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
9494 that function is removed.
9495
9496 * xterm.c (x_set_offset): Use move_offset_left/top instead of
9497 x/y_pixels_outer_diff.
9498 (x_check_expected_move): Calculate move_offset_left/top.
9499
9500 * xterm.h (struct x_output): New members: move_offset_top/left.
9501
854c1a59 9502 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
9503 call x_set_offset directly.
9504
9505 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
9506
96f09305
JD
9507 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
9508
9509 * xterm.c (x_delete_display): Free font names and font_encoder
9510 in dpyinfo->font_table.
9511
854c1a59
SM
9512 * xfns.c (Fx_close_connection): Only call XFreeFont here.
9513 Move xfree of font names to x_delete_display.
96f09305 9514
c1f0671a
JD
9515 * xterm.h (struct x_display_info): New member, wm_type.
9516 (struct x_output): New members, expected_top/left and
9517 check_expected_move.
9518
9519 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
9520 is received.
854c1a59
SM
9521 (handle_one_xevent): Rename x_check_expected_move from
9522 x_check_fullscreen_move.
c1f0671a
JD
9523 (x_set_offset): Only add WM decoration sizes to modified_top/left
9524 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 9525 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
9526 Removed fullscreen specific code. Use check_expected_move,
9527 expected_left/top instead. Also, set wm_type.
9528 (x_term_init): Initialize wm_type to unknown.
9529
9530 * frame.c (x_fullscreen_move): Remove addition of WM decoration
9531 sizes to move_x/y.
9532
be2fdba9
KH
95332003-10-03 Kenichi Handa <handa@m17n.org>
9534
9535 * macterm.c (x_load_font): Clear all members of FONTP before start
9536 filling them.
9537
95382003-10-02 Kenichi Handa <handa@m17n.org>
9539
9540 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
9541 before calling find_ccl_program_func. Call find_ccl_program_func
9542 only when fontp->font_encoder is not NULL.
9543
9544 * xterm.c (x_load_font): Clear all members of FONTP before start
9545 filling them.
9546
26a6e439
JPW
95472003-10-03 John Paul Wallington <jpw@gnu.org>
9548
9549 * keymap.c (map_keymap): Don't abort when binding is a vector.
9550
0d4c2dc2
JR
95512003-10-02 Jason Rumney <jasonr@gnu.org>
9552
854c1a59
SM
9553 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
9554 Sync dependencies with Makefile.in.
a63cf46f
JR
9555 (alloca.o): Remove.
9556
0d4c2dc2
JR
9557 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
9558 filling them.
9559
9560 * w32bdf.c (w32_load_bdf_font): Likewise.
9561
ab8f7d5c
RS
95622003-09-30 Richard M. Stallman <rms@gnu.org>
9563
9564 * term.c (set_tty_color_mode): Calculate current_mode_spec
9565 regardless of value of VAL.
9566
854c1a59 9567 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
9568 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
9569 Handle over_used when splitting UNDER.
9570
a64387ee 95712003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
9572
9573 * regex.c (regex_compile): Free the stack when returning from function.
9574
3413f972
KH
95752003-09-28 Kenichi Handa <handa@m17n.org>
9576
9577 * fontset.c (Finternal_char_font): Change return value to
9578 cons (FONT-NAME . GLYPH-CODE).
9579
a6eeaa81 95802003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
9581
9582 * term.c (tty_setup_colors): Treat any negative argument as -1.
9583
f98ddc99
KH
95842003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
9585
9586 * process.c (send_process): Delete unused temp_buf.
9587
66c8f1a8
DL
95882003-09-26 Dave Love <fx@gnu.org>
9589
9590 * xterm.c (x_bitmap_mask): Declare.
9591
ca716c26
DL
95922003-09-25 Dave Love <fx@gnu.org>
9593
9594 * Makefile.in (fns.o): Depend on md5.h.
9595
fbe57420
KS
95962003-09-25 Kim F. Storm <storm@cua.dk>
9597
9598 * window.c (set_window_buffer): Fix redisplay problems when
9599 switching between buffers with different display margin widths.
9600
ef6ae4ff
KS
96012003-09-23 Kim F. Storm <storm@cua.dk>
9602
9603 * process.c (set_socket_option): Fix :bindtodevice option.
9604 (Fset_network_process_option): Update process contact list when
9605 setting option succeeds.
9606 (Fmake_network_process): Doc fix.
9607
68e03c1c
DL
96082003-09-23 Dave Love <fx@gnu.org>
9609
7146d1c1 9610 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 9611
a6eeaa81 96122003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
9613
9614 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
9615 color mode is an integer number (it could be -1).
9616
8fe7d8c8
RS
96172003-09-22 Richard M. Stallman <rms@gnu.org>
9618
9619 * intervals.c (graft_intervals_into_buffer): Correct the main loop
9620 in the case where OVER is longer than UNDER.
9621
2f71b5ea
MY
96222003-09-22 Masatake YAMATO <jet@gyve.org>
9623
7146d1c1 9624 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 9625 `vertical_type'.
7146d1c1 9626
0c4da023
KS
96272003-09-21 Kim F. Storm <storm@cua.dk>
9628
9629 * frame.c (Vdefault_frame_scroll_bars): New variable.
9630 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
9631 (syms_of_frame): DEFVAR_LISP it, and initialize according to
9632 window-system default scroll bar position.
9633
b648413b
KS
9634 * window.c (Fwindow_scroll_bars): Doc fix.
9635
8f5b9e34
JD
96362003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9637
854c1a59 9638 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 9639
b0f23edf
RS
96402003-09-19 Richard M. Stallman <rms@gnu.org>
9641
9642 * atimer.h: Don't include lisp.h.
9643 (P_): Define it here (as well as elsewhere).
9644
9645 * print.c (Fprin1_to_string): Move the PRINTPREPARE
9646 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
9647
9648 * data.c (Fvariable_binding_locus): New function.
9649 (syms_of_data): defsubr it.
9650 (Flocal_variable_p): Delete duplicate call to indirect_variable.
9651
e1283999
DL
96522003-09-18 Dave Love <fx@gnu.org>
9653
ad5f3636
DL
9654 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
9655
e1283999
DL
9656 * process.c (Fnetwork_interface_info): Fix type error.
9657 (Fnetwork_interface_list): Doc fix.
9658 (read_process_output, read_process_output): Delete unused var.
9659
b8c7fd71
KS
96602003-09-17 Kim F. Storm <storm@cua.dk>
9661
9662 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
9663 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
9664 (Fnetwork_interface_info): Check that ifreq struct has required
9665 fields before accessing them; this requires that those fields are
9666 defined as macros, which may be too restrictive on some platforms,
9667 but it is better than failing on other platforms.
9668 (syms_of_process): Only defsubr above fns when included.
9669
11e0a411
DL
96702003-09-17 Dave Love <fx@gnu.org>
9671
9672 * unexalpha.c: Don't include varargs.h.
9673
e9c50801
KS
96742003-09-17 Kim F. Storm <storm@cua.dk>
9675
9676 * process.c (Fset_process_sentinel): Add sentinel to childp plist
9677 for network process.
9678 (socket_options): Add `:' prefix to option names. Add optbit field.
9679 (set_socket_option): Remove no_error arg and special handling of s < 0.
9680 Return 1<<optbit for known option, 0 for unknown.
9681 Do not interpret 0 as false for boolean option (only nil).
9682 Pass failed option and value to report_file_error.
7146d1c1 9683 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
9684 (Fset_network_process_option): New function to set just one option.
9685 (Fmake_network_process): Allow :coding arg to be a cons.
9686 Allow :server arg to be an integer specifying backlog size.
9687 Remove :options arg, and allow options to be specified directly
9688 as :KEY, VALUE pairs. Parse these options before binding socket.
9689 As before, :reuseaddr t is default for a server process, but this
9690 can now be disabled by specifying :reuseaddr nil.
9691 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
9692 (init_process): Availability of network options is now checked with
9693 simpler syntax (featurep 'make-network-process :OPTION); use loop to
9694 setup features.
9695 (syms_of_process): Fix defsubr's for the replaced functions.
9696
a0fc3644
DL
96972003-09-16 Dave Love <fx@gnu.org>
9698
9699 * Makefile.in: Depend on coding.h.
9700
6df2a645
KS
97012003-09-14 Kim F. Storm <storm@cua.dk>
9702
9703 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
9704 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
9705 (syms_of_process): Defsubr them.
9706
9707 * config.in: Regenerate.
7146d1c1
SM
9708
97092003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
9710
9711 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
9712 * m/news-r6.h (XUNMARK): Remove.
9713 * m/mips.h (XUNMARK): Remove.
9714 * m/mips-siemens.h (XUNMARK): Remove.
9715 * m/iris4d.h (XUNMARK): Remove.
9716 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
9717
0930c1a1
SM
97182003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9719
31003b9e
SM
9720 * lisp.h (VALBITS): Don't remove 1 for the markbit.
9721 (union Lisp_Object): Use unsigned int for types. Remove markbit.
9722 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
9723 (XTYPE): Use unsigned right-shift.
9724 (XMARKBIT, XMARK, XUNMARK): Remove.
9725
0930c1a1
SM
9726 * alloc.c (init_intervals, init_symbol, init_marker):
9727 Don't preallocate anything.
9728 (Fgarbage_collect, mark_object): Ignore the markbit.
9729
9730 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
9731
19bb0fcd 97322003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
9733
9734 * xdisp.c (pint2hrstr): New function.
9735 (decode_mode_spec): Add `%i' and `%I' specs.
9736 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
9737 for `mode-line-format'.
9738
03bb6a06
AS
97392003-09-07 Andreas Schwab <schwab@suse.de>
9740
9741 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
9742 avoid warning.
9743
a6eeaa81 97442003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 9745
0930c1a1 9746 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 9747
ed159bbf
KS
97482003-09-03 Kim F. Storm <storm@cua.dk>
9749
9750 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
9751 change (superseded by 2002-08-30 change); the default blink-off
9752 cursor is now again "no cursor".
9753
fe64a394
JR
97542003-09-01 Jason Rumney <jasonr@gnu.org>
9755
9756 * makefile.w32-in (alloca.o): Remove.
9757 (coding.o): Depend on intervals.h
9758 (emacs.o, bytecode.o): Depend on window.h
9759
c0175e24
DL
97602003-09-01 Dave Love <fx@gnu.org>
9761
9762 * Makefile.in (alloca.o): Remove commands.
9763 (coding.o): Depend on intervals.h composite.h window.h.
9764 (emacs.o): Depend on window.h keyboard.h keymap.h.
9765 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
9766 (bytecode.o): Depend on window.h.
9767
a24d4cb2
JR
97682003-08-31 Jason Rumney <jasonr@gnu.org>
9769
4bc2315e
JR
9770 * w32term.c (w32_per_char_metric): Allow cached metrics to be
9771 returned even when font_type is unknown.
9772
a24d4cb2
JR
9773 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
9774
9d35adc7
JD
97752003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9776
9777 * xterm.c (x_term_init): Initialize new fields in x_display_info.
9778
9779 * xterm.h (struct x_display_info): Add red/green/blue_bits and
9780 *_offset.
9781
9782 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
9783 calculate pixel value.
9784
6f68b035
GM
97852003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
9786
0930c1a1
SM
9787 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
9788 Don't tell redisplay display is accurate when it's actually been
9789 paused for pending input.
6f68b035 9790
4828b4d7
RS
97912003-08-29 Richard M. Stallman <rms@gnu.org>
9792
9793 * dispnew.c (adjust_glyph_matrix): Call window_box
9794 whenever W is nonzero.
9795
9796 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9797 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 9798 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
9799 Use indirect_variable to trace thru variable aliases.
9800
9801 * config.in: Updated.
9802
9803 * callint.c (Fcall_interactively): Save and restore
9804 Vthis_command, Vthis_original_command, real_this_command,
9805 and current_kboard->Vlast_command.
9806
9807 * abbrev.c (Fexpand_abbrev): Insert before deleting.
9808
e019878d
GM
98092003-08-29 Gerd Moellmann <gerd@gnu.org>
9810
9811 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
9812
85478bc6
KH
98132003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
9814
0930c1a1 9815 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
9816 (decode_coding_sjis_big5): Likewise.
9817
07ce82d3
JR
98182003-08-27 Jason Rumney <jasonr@gnu.org>
9819
d3703de3
JR
9820 * w32.c (sys_pipe): Protect against file descriptor overflow.
9821
ee4a01d1
JR
9822 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
9823
07ce82d3
JR
9824 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
9825
a64387ee 98262003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
9827
9828 * xfns.c (Vgtk_version_string): New variable.
9829 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
9830
a6eeaa81 98312003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 9832
0930c1a1 9833 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 9834
5459e42a
EZ
9835 * Makefile.in (msdos.o): Depend on intervals.h.
9836
0930c1a1 9837 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 9838
231d6cfb
JD
98392003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9840
9841 * xterm.h (struct x_display_info): New fields: client_leader_window
9842 and Xatom_wm_client_leader.
9843
9844 * xterm.c (x_initialize): Move call to x_session_initialize to ...
9845 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
9846
9847 * xsmfns.c (create_client_leader_window): New function.
9848 (x_session_initialize): Call create_client_leader_window, take
9849 dpyinfo as argument.
9850
9851 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
9852
9853 * Makefile.in (xsmfns.o): Add more depenedencies.
9854
afa88464
DL
98552003-08-21 Dave Love <fx@gnu.org>
9856
9857 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
9858
f730033e
KH
98592003-08-21 Kenichi Handa <handa@m17n.org>
9860
9861 * term.c (term_init): Fix previous change; don't rely on the
9862 length of `buffer' if TERMINFO is defined.
9863
6dca786c
DL
98642003-08-20 Dave Love <fx@gnu.org>
9865
9866 * atimer.h: Include lisp.h.
9867
9868 * lisp.h (EMACS_LISP_H): New.
9869 (popup_activated_flag): Don't declare.
9870
9871 * alloca.c: Some merging with gnulib. Change logic and doc
9872 concerning (x)malloc/(x)free -- no longer Emacs-specific.
9873 [DO_BLOCK_INPUT]: Don't include lisp.h.
9874 (xmalloc, xfree): Declare.
9875 (malloc): Don't declare.
9876
0930c1a1 9877 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
9878 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
9879 atimer.h, blockinput.h.
9880
9881 * alloc.c (lisp_align_malloc): Change type of `aligned'.
9882
78819ebb 9883 * alloca.s: Remove.
6dca786c 9884
3a06a6d9
RS
98852003-08-19 Gerd Moellmann <gerd@gnu.org>
9886
9887 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
9888 use -lncurses.
9889
9890 * term.c (term_init): Use a buffer of size 4096 for tgetent since
9891 FreeBSD returns something longer than 2044. Abort if the end of
9892 the buffer is overwritten.
9893
27eeee55
MB
98942003-08-19 Miles Bader <miles@gnu.org>
9895
9896 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
9897
2f297815
GM
98982003-08-19 Gerd Moellmann <gerd@gnu.org>
9899
f4446bbf
GM
9900 * alloc.c (lisp_align_malloc): Check for memory full when
9901 allocating ablocks, which also avoids freeing a pointer into an
9902 ablocks structure.
9903
9904 * puresize.h (BASE_PURESIZE): Increase to 1100000.
9905
0930c1a1 9906 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 9907
0e7d7aae
RS
99082003-08-16 Richard M. Stallman <rms@gnu.org>
9909
9910 * editfns.c (Fencode_time): Doc fix.
9911
99122003-08-16 David Ponce <david@dponce.com>
9913
9914 * fileio.c (Fwrite_region): Fix conditional expression to issue
9915 the right message.
9916
b6189c3b 99172003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
9918
9919 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 9920 Set default value to 1.
0e7d7aae 9921
5d551295
KH
99222003-08-15 Kenichi Handa <handa@m17n.org>
9923
9924 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
9925 what autoscaled.
9926 (best_matching_font): Once we find a better scalable font, set
9927 non_scalable_has_exact_height_p to 1.
9928 (try_font_list): Call try_alternative_families to try any family
9929 with the given registry.
9930
1661e56b
AS
99312003-08-09 Andreas Schwab <schwab@suse.de>
9932
f29181dc
AS
9933 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
9934
1661e56b
AS
9935 * print.c (print_string): Fix printing of multibyte string with
9936 nontrivial printcharfun.
9937
465aa50a
JD
99382003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9939
9940 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
9941
9942 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
9943
e430e5ba
KH
99442003-07-31 Kenichi Handa <handa@m17n.org>
9945
9946 * process.c (read_process_output): Return the actually read bytes
9947 instead of the result of decoding.
9948
97e7188e
KH
99492003-07-31 Kenichi Handa <handa@m17n.org>
9950
9951 * xterm.h (struct x_bitmap_record): New member have_mask.
9952
9953 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
9954 to 0.
9955 (x_create_bitmap_from_file): Likewise.
9956 (x_destroy_bitmap): Check have_mask member before freeing a mask.
9957 (x_destroy_all_bitmaps): Likewise.
9958 (x_create_bitmap_mask): Set have_mask member to 1.
9959
b53094d6
RS
99602003-07-30 Richard M. Stallman <rms@gnu.org>
9961
9962 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
9963
631f2082
JD
99642003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9965
9966 * gtkutil.c (xg_mark_data): Update calls to mark_object.
9967
c855f2ca
RS
99682003-07-29 Richard M. Stallman <rms@gnu.org>
9969
9970 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
9971 Conditionalize XIM code on HAVE_XIM.
9972
9973 * fns.c (Fclear_string): New function.
9974 (syms_of_fns): defsubr it.
9975
b6189c3b 99762003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 9977
0930c1a1 9978 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 9979
29ea8ae9
SM
99802003-07-22 Stefan Monnier <monnier@cs.yale.edu>
9981
9982 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
9983
9984 * buffer.c (delete_all_overlays): New function.
9985 * buffer.h (delete_all_overlays): Declare.
9986 * coding.c (run_pre_post_conversion_on_str):
9987 * print.c (temp_output_buffer_setup):
9988 * fileio.c (Finsert_file_contents):
9989 * minibuf.c (get_minibuffer): Use it.
9990
1dd7ccf2
AC
99912003-07-22 Andrew Choi <akochoi@shaw.ca>
9992
9993 * unexmacosx.c (unexec_regions_sort_compare):
9994 (unexec_regions_merge): New functions. Sort and merge unexec
9995 regions before dumping them.
9996
f57bd967
DL
99972003-07-22 Dave Love <fx@gnu.org>
9998
9999 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
10000
7cdee936
SM
100012003-07-21 Stefan Monnier <monnier@cs.yale.edu>
10002
10003 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
10004 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
10005 MARKBIT as the gcmarkbit for strings.
10006
e50886d3
RS
100072003-07-21 Richard M. Stallman <rms@gnu.org>
10008
10009 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
10010
29ea8ae9 10011 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
10012 (syms_of_fns): Corresponding change.
10013
10014 * alloc.c (syms_of_alloc): Doc fixes.
10015
100162003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
10017
10018 * s/netbsd.h: Use -Wl syntax.
10019
fdc39b59
RS
100202003-07-17 Richard M. Stallman <rms@gnu.org>
10021
10022 * xterm.c (xim_initialize): Redo 6/24 change.
10023
9c53385f
SM
100242003-07-15 Stefan Monnier <monnier@cs.yale.edu>
10025
10026 * buffer.c (copy_overlays): Use EMACS_INT for positions.
10027 (Fswitch_to_buffer): Don't signal an error when switching to the same
10028 buffer in a dedicated window.
10029
10030 * alloc.c: Use bitmaps for cons, as was done for floats.
10031 (init_float, init_cons): Let the normal code allocate the first block.
10032 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
10033 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
10034 New macros.
10035 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
10036 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
10037 (live_cons_p): Check the pointer is not past the `conses' array.
10038 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
10039 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
10040 (survives_gc_p): Use CONS_MARKED_P and simplify.
10041 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
10042
dde13196
PE
100432003-07-13 Paul Eggert <eggert@twinsun.com>
10044
10045 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
10046 puts it into BSS instead, at least on Solaris 8 and 9.
10047 This is a valid optimization, and it may occur on other platforms,
10048 so Emacs should not assume that initializing a static variable to
10049 zero puts it into data.
10050 * alloc.c (pure, staticvec):
10051 Initialize these arrays to nonzero, so that they're not
10052 put into BSS by that optimization.
10053
a801bc34
SM
100542003-07-13 Stefan Monnier <monnier@cs.yale.edu>
10055
10056 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
10057 (lisp_align_malloc): Use posix_memalign is available.
10058 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
10059 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
10060 for consistency. Update users.
10061
0c8b2afa
RS
100622003-07-13 Richard M. Stallman <rms@gnu.org>
10063
10064 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
10065
668c2ab0
JB
100662003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
10067
10068 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
10069 and use the Gtk+ function gtk_window_icon_from_file if available.
10070
10071 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
10072 handle mask of bitmaps.
10073 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
10074 mask property.
10075 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
10076
10077 * xterm.h (xg_set_icon): New function.
10078
800bebe3
RS
100792003-07-12 Paul Eggert <eggert@twinsun.com>
10080
10081 * unexelf.c (unexec): Consider a section to precede the .bss
10082 section if its addresses overlap that of .bss.
10083
69e38995
RS
100842003-07-12 Richard M. Stallman <rms@gnu.org>
10085
10086 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
10087
10088 * config.in (HAVE_CRTIN): Add #undef.
10089 (INLINE): Really inline only if OPTIMIZE is defined.
10090
10091 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
10092 END_FILES_1.
10093 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 10094 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
10095
10096 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
10097 (TERMINFO): Define.
10098 (LIBS_TERMCAP): Define.
10099 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
10100
10101 * xfns.c: Include libpng/png.h instead of png.h.
10102
f1d0c238
AS
101032003-07-11 Andreas Schwab <schwab@suse.de>
10104
10105 * buffer.c (modify_overlay): Update prototype.
10106 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
10107 Likewise.
10108
5f6bf5fe
SM
101092003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10110
10111 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
10112 (struct interval): Move to intervals.h.
10113 (struct Lisp_Marker): Use EMACS_INT for position info.
10114 (forward_point): Remove prototype of defunct function.
10115 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
10116 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
10117 (syms_of_textprop, set_text_properties): Remove prototypes that are
10118 already in intervals.h.
10119
10120 * intervals.h (struct interval): Move from lisp.h.
10121 Use EMACS_INT for position and size info.
10122
10123 * coding.c: Include intervals.h for Fset_text_properties.
10124
10125 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
10126 position and length information.
10127
2765b457
SM
101282003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10129
10130 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
10131 position and length information.
10132
2410d73a
SM
101332003-07-09 Stefan Monnier <monnier@cs.yale.edu>
10134
10135 Change overlays_after and overlays_before so the overlays themselves
10136 are linked into lists, rather than using cons cells. After all each
10137 Lisp_Misc already occupies 5 words, so we can add a `next' field to
10138 Lisp_Overlay for free and save up one cons cell per overlay (not
10139 to mention one indirection when traversing the list of overlay).
10140
10141 * lisp.h (struct Lisp_Overlay): New field `next'.
10142
10143 * buffer.h (struct buffer): Change overlays_before and overlays_after
10144 from Lisp lists of overlays to pointers to overlays.
10145
10146 * buffer.c (overlay_strings, recenter_overlay_lists):
10147 Fix typo in eassert in last commit.
10148 (unchain_overlay): New function.
10149 (add_overlay_mod_hooklist): Use AREF.
10150 (copy_overlays, reset_buffer, overlays_at, overlays_in)
10151 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
10152 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
10153 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
10154 (report_overlay_modification, evaporate_overlays, init_buffer_once):
10155 Adjust to new type of overlays_(before|after).
10156
10157 * alloc.c (mark_object): Mark the new `next' field of overlays.
10158 (mark_buffer): Manually mark the overlays_(after|before) fields.
10159
10160 * coding.c (run_pre_post_conversion_on_str):
10161 * editfns.c (overlays_around):
10162 * xdisp.c (load_overlay_strings):
10163 * fileio.c (Finsert_file_contents):
10164 * indent.c (current_column):
10165 * insdel.c (signal_before_change, signal_after_change):
10166 * intervals.c (set_point_both):
10167 * print.c (temp_output_buffer_setup): Use new type for
10168 overlays_(before|after).
10169
04812929
SM
101702003-07-08 Stefan Monnier <monnier@cs.yale.edu>
10171
10172 * buffer.c (report_overlay_modification): Don't run hooks while
10173 traversing the list of overlays.
10174
10175 * buffer.h (struct buffer): Use an int for overlay_center.
10176 (overlays_at, evaporate_overlays, recenter_overlay_lists)
10177 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
10178
10179 * buffer.c (reset_buffer, recenter_overlay_lists)
10180 (adjust_overlays_for_insert, adjust_overlays_for_delete)
10181 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
10182 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
10183 (overlays_at, evaporate_overlays, recenter_overlay_lists)
10184 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
10185
10186 * xdisp.c (fast_find_position): Remove unused var.
10187
10188 * cmds.c (Qexpand_abbrev): New sym.
10189 (syms_of_cmds): Initialize it.
10190 (internal_self_insert): Use it to call expand-abbrev.
10191
2e7ecf15
KS
101922003-07-09 Kim F. Storm <storm@cua.dk>
10193
f9711de4 10194 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 10195 was configured with --without-xim.
42f81f64 10196 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 10197
c6de56a0
RS
101982003-07-07 Richard M. Stallman <rms@gnu.org>
10199
10200 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
10201
10202 * alloc.c (Fgarbage_collect): Doc fix.
10203
b6189c3b 102042003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
10205
10206 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
10207
bfe1a3f7
SM
102082003-07-06 Stefan Monnier <monnier@cs.yale.edu>
10209
04812929
SM
10210 * minibuf.c (read_minibuf): UNGCPRO before returning.
10211 (Ftry_completion, Fall_completions): Doc fix.
10212
bfe1a3f7
SM
10213 * alloc.c (live_float_p): Check that p is not past the `floats' array,
10214 now that `floats' is not the last element of the struct any more.
10215
ee79d1aa
JR
102162003-07-06 Jason Rumney <jasonr@gnu.org>
10217
10218 * w32term.h (ClipboardSequence_Proc): New type.
10219
10220 * w32fns.c (clipboard_sequence_fn): New variable.
10221 (globals_of_w32fns): Initialize it.
10222
10223 * w32select.c (last_clipboard_sequence_number): New variable.
10224 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
10225 number if possible.
10226
49723c04
SM
102272003-07-06 Stefan Monnier <monnier@cs.yale.edu>
10228
4698665f
SM
10229 * m/amdx86-64.h (MARKBIT):
10230 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
10231 MARKBIT and ARRAY_MARK_FLAG any more.
10232
10233 * m/hp800.h (XSETMARKBIT):
10234 * m/sr2k.h (XSETMARKBIT):
10235 * lisp.h (XSETMARKBIT): Remove unused macro.
10236
49723c04
SM
10237 * lisp.h (mark_object): Change prototype.
10238
10239 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
10240 (last_marked): Change accordingly.
10241 (mark_interval, mark_maybe_object, mark_maybe_pointer)
10242 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
10243 (mark_buffer): Update calls to mark_object.
10244
10245 * bytecode.c (mark_byte_stack):
10246 * fns.c (sweep_weak_table):
10247 * keyboard.c (mark_kboards): Update calls to mark_object.
10248
1d660eca
JR
102492003-07-06 Jason Rumney <jasonr@gnu.org>
10250
10251 * alloc.c (struct ablock): Only include padding when there is some.
10252
618b5ae4
SM
102532003-07-04 Stefan Monnier <monnier@cs.yale.edu>
10254
10255 * alloc.c (ALIGN): Add casts to simplify usage.
10256 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
10257 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
10258 (struct ablock, struct ablocks): New types.
10259 (free_ablock): New global var.
10260 (lisp_align_malloc, lisp_align_free): New functions.
10261 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
10262 (struct float_block): Reorder and add gcmarkbits.
10263 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
10264 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
10265 (init_float, make_float): Use lisp_align_malloc.
10266 (free_float, live_float_p): Don't use `type' any more.
10267 (make_float): Use FLOAT_UNMARK to access to mark bit.
10268 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
10269 Use FLOAT_MARKED_P to access the mark bit.
10270 (pure_alloc): Simplify use of ALIGN.
10271 (mark_object): Use FLOAT_MARK to access the mark bit.
10272 (gc_sweep): Use new macros to access the float's mark bit.
10273 (init_alloc_once): Init free_ablock.
10274
10275 * lisp.h (struct Lisp_Float): Remove unused field `type'.
10276
3ef06d12
SM
102772003-06-27 Stefan Monnier <monnier@cs.yale.edu>
10278
10279 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
10280 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
10281 (allocate_buffer): Move.
10282 (string_bytes): Don't mask markbit of `size_byte'.
10283 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
10284 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
10285 Use the `size' field of buffers (rather than the `name' field) for
10286 the mark bit, as is done for all other vectorlike objects.
10287 Use the new macros to access the mark bit of vectorlike objects.
10288
e81043aa
RS
102892003-06-26 Richard M. Stallman <rms@gnu.org>
10290
10291 * puresize.h (BASE_PURESIZE): Increment base size.
10292
10293 * xdisp.c (fast_find_position): Enable Gerd's new definition.
10294
10295 * xterm.c (xim_initialize): Undo previous change.
10296
2d0834cc
SM
102972003-06-26 Stefan Monnier <monnier@cs.yale.edu>
10298
10299 * alloc.c (survives_gc_p): Simplify.
10300
10301 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
10302
10303 * window.c (Fset_window_dedicated_p): Simplify.
10304 (display_buffer_1): Don't raise the win from which minibuf was entered.
10305 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
10306 (Fminibuffer_selected_window): Simplify.
10307
10308 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
10309
10310 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
10311 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
10312
10313 * insdel.c (check_markers, adjust_markers_for_delete)
10314 (adjust_markers_for_insert, adjust_markers_for_replace)
10315 (prepare_to_modify_buffer, RESTORE_VALUE):
10316 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
10317 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
10318 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
10319 * alloc.c (Fmake_marker, free_marker, gc_sweep):
10320 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
10321 * editfns.c (save_excursion_restore, transpose_markers):
10322 * window.c (delete_window):
10323 * xdisp.c (message_dolog): Update for new types.
10324
d54ae3d8
JD
103252003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10326
a5f696ac
JD
10327 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
10328 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 10329 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
10330
10331 * frame.c (make_frame): Initialize default_face_done_p.
10332
10333 * frame.h (struct frame): Add default_face_done_p.
10334
d54ae3d8
JD
10335 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
10336 will be defined.
10337
2336fe58
SM
103382003-06-25 Stefan Monnier <monnier@cs.yale.edu>
10339
10340 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
10341 Initialize the new field `gcmarkbit'.
10342 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
10343 (mark_interval_tree): Don't mark the tree separately from the nodes.
10344 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
10345 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
10346 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
10347
10348 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
10349 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
10350 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
10351 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
10352 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
10353
bcea31c2
DL
103542003-06-24 Dave Love <fx@gnu.org>
10355
10356 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
10357
10358 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
10359 from gnulib.
10360
2601f59e
RS
103612003-06-21 Richard M. Stallman <rms@gnu.org>
10362
10363 * fileio.c (Fwrite_region): Alternate messages
10364 for append and partial write.
10365
10366 * keyboard.c (read_key_sequence): When converting upcase fn key to
10367 downcase, update fkey and keytran so `backspace' gets translated.
10368
10369 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
10370
10371 * process.c (wait_reading_process_input): Don't signal SIGIO
10372 in batch mode.
10373
b5d2c621
KH
103742003-06-17 Kenichi Handa <handa@m17n.org>
10375
10376 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
10377 composite.h.
10378
10379 * xselect.c: Don't include charset.h, coding.h, composite.h.
10380 (Qforeign_selection): New variable.
10381 (syms_of_xselect): Intern and static it.
10382 (selection_data_to_lisp_data): Return a unibyte string made from
10383 data with `foreign-selection' text property.
10384
6793bc63
SM
103852003-06-15 Stefan Monnier <monnier@cs.yale.edu>
10386
10387 * termhooks.h (EVENT_INIT): New macro.
10388
10389 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
10390
10391 * alloc.c (mark_kboards): Move to keyboard.c.
10392
10393 * keyboard.c (record_asynch_buffer_change, read_avail_input):
10394 * xterm.c (x_dispatch_event):
10395 * xmenu.c (find_and_call_menu_selection):
10396 * xdisp.c (handle_tool_bar_click):
10397 * w32menu.c (menubar_selection_callback):
10398 * sysdep.c (kbd_input_ast, read_input_waiting):
10399 * msdos.c (dos_rawgetc):
10400 * macterm.c (mac_check_for_quit_char):
10401 * macmenu.c (menubar_selection_callback):
10402 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
10403 data to kbd_buffer_store_event.
10404
b3ea810c
KS
104052003-06-15 Kim F. Storm <storm@cua.dk>
10406
10407 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 10408 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 10409
b8f75eda
KG
104102003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
10411
10412 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
10413
ba92ce48
KH
104142003-06-12 Kenichi Handa <handa@m17n.org>
10415
10416 * fileio.c (Fwrite_region): Save and restore restriction.
10417
b80263be
DL
104182003-06-12 Dave Love <fx@gnu.org>
10419
10420 * alloca.c (alloca): Declare arg as size_t.
10421
6793bc63
SM
10422 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
10423 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 10424
b23c0a83
DL
104252003-06-11 Dave Love <fx@gnu.org>
10426
10427 * search.c (shrink_regexp_cache): Use xrealloc.
10428 (syms_of_search): Use xmalloc.
10429
700e47c2
KS
104302003-06-10 Kim F. Storm <storm@cua.dk>
10431
10432 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
10433 Adjust phys_cursor.x to be relative to window box, rather than
10434 text area before checking -- to ensure cursor is redrawn when
10435 exposing window.
10436 Note: This also fixes a similar (older) bug if display margins
10437 are present.
10438
f11aa0b2
KH
104392003-06-06 Kenichi Handa <handa@m17n.org>
10440
10441 * coding.c (encoding_buffer_size): If coding->type is
10442 coding_type_ccl, double magnification on CRLF encoding.
10443
3d143690
JR
104442003-06-06 Jason Rumney <jasonr@gnu.org>
10445
10446 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
10447 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
10448
10449 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
10450 Mac too.
10451
f16205ca
DL
104522003-06-05 Dave Love <fx@gnu.org>
10453
b23c0a83
DL
10454 * strftime.c: Merge changes from gnulib.
10455
f16205ca
DL
10456 * mktime.c (__mktime_internal): Merge changes from gnulib
10457 involving year 69 and dst2.
10458
10459 Changes to merge with gnulib version and be consistent with the
10460 autoconf test:
10461
6793bc63
SM
10462 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
10463 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
10464 [HAVE_LOCALE_H]: Include locale.h.
10465 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
10466
9b87a0bc
KS
104672003-06-05 Kim F. Storm <storm@cua.dk>
10468
10469 * window.c (coordinates_in_window): Convert X and Y to window
10470 relative coordinates inside mode-line and header-line parts.
10471 Convert X and Y to margin area relative coordinates inside left
10472 and right display margin parts.
10473
5a8a15ec
JR
104742003-06-05 Jason Rumney <jasonr@gnu.org>
10475
10476 * w32fns.c (add_system_logical_colors_to_map): New function.
10477 (Fx_open_connection): Use it.
10478
01ed8ff1
SM
104792003-06-04 Stefan Monnier <monnier@cs.yale.edu>
10480
10481 * process.c (allocate_pty): Revert part of the previous patch.
10482 (Faccept_process_output): Simplify.
10483
b427b65d
JR
104842003-06-04 Jason Rumney <jasonr@gnu.org>
10485
10486 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
10487
10488 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
10489 (lispy_mouse_wheel_names): Remove.
10490 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
10491 Always define drag_and_drop_syms.
10492
10493 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
10494 WHEEL_EVENT events.
10495
914a8c47
SM
104962003-06-03 Stefan Monnier <monnier@cs.yale.edu>
10497
01ed8ff1
SM
10498 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
10499
914a8c47
SM
10500 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
10501
adcb132c
JD
105022003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10503
10504 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
10505 menu item label.
10506
be781fa7
RS
105072003-06-03 Richard M. Stallman <rms@gnu.org>
10508
10509 * window.c (Fwindow_edges): Doc fix.
10510 (Fwindow_pixel_edges, Fwindow_inside_edges)
10511 (Fwindow_inside_pixel_edges): New functions.
10512 (syms_of_window): defsubr them.
10513
10514 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
10515 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
10516
914a8c47
SM
105172003-06-02 Stefan Monnier <monnier@cs.yale.edu>
10518
10519 * dispnew.c (Fsit_for): Don't lie about the number of args.
10520
5b07197a
DL
105212003-06-02 Dave Love <fx@gnu.org>
10522
10523 * callproc.c: Use HAVE_FCNTL_H, not USG5.
10524 (syms_of_callproc) <process-environment>: Doc fix.
10525
10526 * doc.c: Use HAVE_FCNTL_H, not USG5.
10527
10528 * xfaces.c (font_rescale_ratio): Fix for K&R.
10529
10530 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
10531
10532 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
10533
10534 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
10535
10536 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
10537 (xg_create_frame_widgets): Use ENCODE_UTF_8.
10538
d7107586 10539 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
10540
10541 * xmenu.c (ENCODE_MENU_STRING): New.
10542 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
10543 Use it.
10544
10545 * coding.h (ENCODE_UTF_8): New.
10546 (Qutf_8): Declare.
10547
10548 * coding.c (Qutf_8): New.
10549 (syms_of_coding): Intern it.
10550
10551 * fns.c: Doc fixes.
10552
7335b336
KH
105532003-06-02 Kenichi Handa <handa@m17n.org>
10554
10555 * buffer.c (Fset_buffer_multibyte): Fix previous change.
10556
914a8c47
SM
105572003-06-01 Stefan Monnier <monnier@cs.yale.edu>
10558
10559 * lread.c (openp): Make sure STR is a string.
10560
9862c135
JR
105612003-06-01 David Ponce <david@dponce.com>
10562
cab27d04 10563 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
10564 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
10565
10566 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
10567 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
10568 (discard_mouse_events): Discard WHEEL_EVENT events too.
10569 (lispy_wheel_names, wheel_syms): New.
10570 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 10571 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 10572 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
10573
10574 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
10575 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
10576 WHEEL_EVENT events.
10577
f984e73e
JPW
105782003-05-31 John Paul Wallington <jpw@gnu.org>
10579
10580 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
10581 timer are in lisp/emacs-lisp.
10582
1efcd78f
KH
105832003-05-31 Kenichi Handa <handa@m17n.org>
10584
458c8af4
KH
10585 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
10586 region when a buffer is changed to unibyte.
10587
1efcd78f
KH
10588 * charset.h (VALID_LEADING_CODE_P): New macro.
10589 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
10590
778e2804
KH
10591 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
10592 is nonzero, accept multibyte form of eight-bit-control chars.
10593 (decode_composition_emacs_mule): Likewise.
10594 (decode_coding_emacs_mule): Likewise.
10595 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
10596 multibyte form of eight-bit-control chars.
10597
10598 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
10599 (Finsert_file_contents): If coding-system-for-read is bound to
10600 Qauto_save_coding, use the coding system emacs-mule with special
10601 setting for recovering a file.
10602 (choose_write_coding_system): On auto saving, use the coding
10603 system emacs-mule with special setting for auto saving.
10604 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
10605
034060e4
KH
106062003-05-30 Kenichi Handa <handa@m17n.org>
10607
10608 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
10609 properly before calling ccl_driver.
10610
778e2804 10611 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 10612
cab27d04 10613 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
10614 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
10615 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
10616
595f5aa5
GM
106172003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
10618
10619 * xfaces.c (realize_default_face): Do not abort if lface is
10620 non-existent - reverts change from 2003-05-19.
10621
103e0180
KH
106222003-05-29 Kenichi Handa <handa@m17n.org>
10623
10624 * coding.c (decode_coding_iso2022): Pay attention to the byte
10625 sequence of CTEXT extended segment, and retain those bytes as is.
10626
106272003-05-28 Kenichi Handa <handa@m17n.org>
10628
cab27d04 10629 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
10630 of CODING_REPLACEMENT_CHARACTER.
10631 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
10632 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
10633 check this flag on encoding.
cab27d04
SM
10634 (encode_coding_sjis_big5):
10635 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
10636 (Fset_terminal_coding_system_internal):
10637 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
10638 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
10639
10640 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
10641 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
10642 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
10643
ff6a3bfb 106442003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 10645
ff6a3bfb
RS
10646 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
10647
10648 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 10649
1963c428
KS
106502003-05-28 Kim F. Storm <storm@cua.dk>
10651
10652 * xdisp.c (expose_window): Fix error in calculation of
10653 window relative coordinates of area to redisplay.
10654
2b5d4601
JR
106552003-05-27 Jason Rumney <jasonr@gnu.org>
10656
10657 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
10658
1c64a4a2
JB
106592003-05-27 David Ponce <david@dponce.com>
10660
10661 Handle W32 mouse wheel events as mouse click events, like in X.
10662
10663 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
10664 MOUSE_WHEEL_EVENT anymore.
10665
10666 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
10667 Scrolling down/up the mouse wheel is respectively mapped to mouse
10668 button 4 and 5.
10669 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
10670 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
10671 WM_MOUSEWHEEL events.
10672
2d031b89
AS
106732003-05-27 Andreas Schwab <schwab@suse.de>
10674
20464fdf
AS
10675 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
10676
2d031b89
AS
10677 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
10678 partially visible line.
10679
10680 * alloc.c (Fgarbage_collect): Fix last change.
10681
97bc76d4
JPW
106822003-05-26 John Paul Wallington <jpw@gnu.org>
10683
10684 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
10685
56613f06
SM
106862003-05-25 Stefan Monnier <monnier@cs.yale.edu>
10687
10688 * window.c (Fset_window_buffer): Add type of `keep_margins'.
10689 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
10690
10691 * window.h (window_box_text_cols): Declare.
10692
10693 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
10694 (x_draw_vertical_border): Remove unused var `f'.
10695
10696 * xfaces.c (build_scalable_font_name): Remove `unused var
10697 pixel_size' warning.
10698
10699 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
10700
10701 * unexelf.c (unexec): Remove `unused var n' warning.
10702
10703 * strftime.c (my_strftime_localtime_r): Remove `defined but
10704 unused' warning.
10705
10706 * process.c (allocate_pty): Remove `unused var stb' and
10707 `cp might be used uninitialized' warnings.
10708
10709 * dispnew.c (mode_line_string): Remove unused var `f'.
10710
10711 * coding.c (find_safe_codings): Remove unused var `i'.
10712
10713 * bytecode.c (Fbyte_code): Remove `unused val' warning.
10714
10715 * buffer.c (Fkill_buffer): Remove unused var `list'.
10716
10717 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
10718
93421a1f
JD
107192003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10720
10721 * frame.c (make_frame): Condition want_fullscreen with
10722 HAVE_WINDOW_SYSTEM.
10723
c4b8aebc
JB
107242003-05-25 Juanma Barranquero <lektu@terra.es>
10725
10726 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
10727 (Fwindow_scroll_bars): Fix typo in docstring.
10728
0416870b
KS
107292003-05-24 Kim F. Storm <storm@cua.dk>
10730
10731 The following changes serve several purposes:
10732
10733 1) Swap the position of fringes and display margins in windows, i.e.
10734 the fringes are now displayed between the margins and the text area
10735 (by default).
10736
10737 2) Allow fringe and scroll bar parameters to be set per-buffer and
10738 per-window (like display margins). Such settings are now stored
10739 in window configurations, preserved when frames are resized, and
9018a88e 10740 copied when windows are split vertically or horizontally.
0416870b
KS
10741 Several bugs related to display margins have been fixed.
10742
10743 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 10744
0416870b
KS
10745 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
10746 rather than FRAME_WIDTH (FRAME_FONT (f)).
10747
10748 5) Introduce a consistent naming of variables, members and macros
10749 depending on whether their value is measured in pixels or in
10750 canonical columns/lines. Pixel dimensions are named *_width and
10751 *_height, while canonical columns/lines are named *_cols and
10752 *_lines. Pixel positions are named *_x and *_y, while column/line
10753 positions are named *_col and *_line.
10754
10755 6) Consolidate more of the X, W32, and MAC gui code by moving
10756 common data into struct frame, and generalize it for the non-gui
10757 case by using suitable defaults.
10758
10759 7) Cleanup and consolidate the macros controlling frame and window
10760 layout into frame.h and window.h, and generalize the use of the
10761 various window_box_* functions (enhanced to handle the new fringe
10762 position and the per-window fringe and scroll bar settings).
10763
10764 * frame.h (struct frame): Rename members height to text_lines,
10765 width to text_cols, window_height to total_lines, window_width to
10766 total_cols, new_height to new_text_lines, new_width to
10767 new_text_cols. All uses changed.
10768 (struct frame): New members which consolidate common members of
10769 x_output, w32_output, and mac_output structures: left_pos,
10770 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
10771 win_gravity, size_hint_flags, border_width, internal_border_width,
10772 line_height, fringe_cols, left_fringe_width, right_fringe_width,
10773 want_fullscreen. All uses changed.
10774 (struct frame): New member column_width contaning the canonical
10775 column width, analogue to line_height. All uses changed.
10776 (struct frame): Rename members scroll_bar_pixel_width to
10777 config_scroll_bar_width, and scroll_bar_cols to
10778 config_scroll_bar_cols. All uses changed.
10779 (struct frame): New member scroll_bar_actual_width which
10780 consolidates and renames the vertical_scroll_bar_extra member of
10781 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 10782 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
10783 from x/w32/macterm.h files. All uses changed. Also change code
10784 which referred to f->output_data...->pixel_height.
cab27d04 10785 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 10786 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 10787 which referred to f->output_data...->pixel_width.
cab27d04 10788 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 10789 Also change code which referred to f->height.
cab27d04 10790 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
10791 Also change code which referred to f->width.
10792 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
10793 to update new_text_lines and new_text_cols members directly.
cab27d04 10794 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 10795 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 10796 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
10797 FRAME_SCROLL_BAR_COLS. All uses changed.
10798 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 10799 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
10800 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
10801 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
10802 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
10803 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
10804 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
10805 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
10806 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
10807 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
10808 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
10809 Unconditionally return line_height member (it now has proper value
10810 also for non-window frames).
10811 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
10812 return new column_width member (rather than the default font width).
10813 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 10814 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
10815 from x/w32/macterm.h files. Unconditionally return corresponding
10816 member of frame structure (they now have proper values also for
10817 non-window frames).
cab27d04 10818 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
10819 Calculate return value from left and right widths.
10820 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
10821 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
10822 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
10823 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
10824 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
10825 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
10826 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 10827 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 10828 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 10829 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 10830 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 10831 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 10832 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 10833 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 10834 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 10835 consolidated from x/mac/w32term.h.
cab27d04 10836 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 10837 consolidated from x/mac/w32term.h.
cab27d04 10838 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 10839 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 10840 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
10841 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
10842
10843 * window.h (struct window): Rename members left to left_col,
10844 top to top_line, height to total_lines, width to total_cols,
10845 left_margin_width to left_margin_cols, right_margin_width to
10846 right_margin_cols, orig_height to orig_total_lines, orig_top to
10847 orig_top_line. All uses changed.
10848 (struct window): New members left_fringe_width, right_fringe_width,
10849 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
10850 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
10851 New macros primarily used to simplify other macros.
10852 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
10853 referred to XINT (w->width).
10854 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
10855 referred to XINT (w->height).
10856 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
10857 referred to XINT (w->width) * canon_x_unit.
10858 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
10859 referred to XINT (w->height) * canon_y_unit.
10860 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
10861 referred to XINT (w->left).
cab27d04 10862 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
10863 all uses and code that referred to XINT (w->left) + XINT (w->width).
10864 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
10865 referred to XINT (w->top).
10866 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
10867 referred to XINT (w->top) + XINT (w->height).
10868 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
10869 referred to XINT (w->left) * canon_x_unit.
10870 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
10871 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
10872 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
10873 referred to XINT (w->top) * canon_y_unit.
10874 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
10875 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
10876 (WINDOW_LEFTMOST_P): New macro.
cab27d04 10877 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 10878 All uses changed.
cab27d04 10879 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 10880 All uses changed.
cab27d04 10881 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
10882 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
10883 Do not exclude left fringe width.
cab27d04 10884 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
10885 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
10886 Do not exclude fringe widths.
10887 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
10888 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
10889 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
10890 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
10891 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
10892 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
10893 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
10894 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
10895 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
10896 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
10897 New macros. Change code which referenced corresponding
10898 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
10899 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
10900 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
10901 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
10902 allow per-window scroll-bar settings.
10903 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
10904 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
10905 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
10906 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
10907 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
10908 FRAME_SCROLL_BAR_WIDTH.
10909 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 10910 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 10911 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 10912 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 10913 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 10914 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 10915 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
10916 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
10917 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10918 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
10919 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
10920 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 10921 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 10922 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
10923 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
10924 (window_from_coordinates): Update prototype.
10925 (Fset_window_buffer): Update EXFUN.
10926 (set_window_buffer): Update prototype.
9018a88e 10927
0416870b 10928 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 10929 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
10930 changed.
10931 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
10932 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
10933 internal_border_width is now set to 0 for non-window frames.
10934 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
10935 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
10936 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
10937 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
10938 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
10939 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
10940 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
10941 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
10942 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 10943 Move to window.h and renamed [see window.h changes].
0416870b
KS
10944 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
10945 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
10946 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
10947 Use WINDOW_TOTAL_LINES.
0416870b
KS
10948 (frame_update_line_height): Remove prototype.
10949
10950 * buffer.h (struct buffer): Rename members measured in columns:
10951 left_margin_width to left_margin_cols, right_margin_width to
10952 right_margin_cols. All uses changed.
10953 New members left_fringe_width, right_fringe_width,
10954 fringes_outside_margins for per-buffer fringe settings.
10955 New members scroll_bar_width and vertical_scroll_bar_type for
10956 per-buffer scroll bar settings.
10957
10958 * buffer.c (init_buffer_once): Set buffer_defaults and
10959 buffer_local_flags for new buffer-local variables
10960 left_fringe_width, right_fringe_width, fringes_outside_margins,
10961 scroll_bar_width, and vertical_scroll_bar_type.
10962 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
10963 default-* variables for them.
10964
10965 * dispnew.c: Make (many) trivial substitutions for renamed and
10966 new macros in dispextern.h, frame.h and window.h.
10967 (mode_line_string): No need to adjust width for mode lines, as it
10968 is already adjusted by the caller.
10969 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 10970
0416870b
KS
10971 * frame.c: Make (many) trivial substitutions for renamed and
10972 new macros in dispextern.h, frame.h and window.h.
10973 (make_frame): Initialize left_fringe_width, right_fringe_width,
10974 fringe_cols, scroll_bar_actual_width, border_width,
10975 internal_border_width, column_width, line_height, x_pixels_diff,
10976 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
10977 members with values suitable for a non-window frames.
10978
10979 * gtkutil.c: Make (many) trivial substitutions for renamed and
10980 new macros in dispextern.h, frame.h and window.h.
9018a88e 10981
0416870b
KS
10982 * indent.c: Make (few) trivial substitutions for renamed and
10983 new macros in dispextern.h, frame.h and window.h.
10984
10985 * keyboard.c: Make (many) trivial substitutions for renamed and
10986 new macros in dispextern.h, frame.h and window.h.
10987 (make_lispy_event): Use window positions returned from
10988 window_from_coordinates when constructing the lisp event for
10989 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
10990 (incorrect) values locally.
10991 (make_lispy_movement): Use window positions returned from
10992 window_from_coordinates when constructing the lisp event, rather
10993 than calculating (incorrect) values locally.
10994
10995 * scroll.c: Make (some) trivial substitutions for renamed and
10996 new macros in dispextern.h, frame.h and window.h.
10997
10998 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
10999 scroll-bars.
11000
11001 * sysdep.c: Make (few) trivial substitutions for renamed and
11002 new macros in dispextern.h, frame.h and window.h.
11003
11004 * term.c: Make (some) trivial substitutions for renamed and
11005 new macros in dispextern.h, frame.h and window.h.
11006
11007 * widget.c: Make (few) trivial substitutions for renamed and
11008 new macros in dispextern.h, frame.h and window.h.
11009
11010 * window.c: Make (many) trivial substitutions for renamed and
11011 new macros in dispextern.h, frame.h and window.h.
11012 (make_window): Initialize new members
11013 left_margin_cols, right_margin_cols, left_fringe_width,
11014 right_fringe_width, fringes_outside_margins, scroll_bar_width,
11015 and vertical_scroll_bar_type.
cab27d04 11016 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 11017 and per-window fringes and scroll-bars.
0416870b 11018 Fix bug related to incorrectly adjusting coordinates by
9018a88e 11019 frame's internal_border_width (the effect normally negible since
0416870b
KS
11020 the internal_border_width is typically 0 or 1 pixel, but very
11021 noticeable for an internal_border_width of e.g. 25 pixels).
11022 Upon successful return (other than ON_NOTHING), the coordinates
11023 are now always properly converted to window relative for the
11024 given display element.
11025 (window_from_coordinates): Add new parameters wx and wy to
11026 return the window relative x and y position in the returned
11027 window and part. A null arg means, don't return the position.
11028 All callers changed.
11029 (adjust_window_margins): New function which may reduce the width
11030 of the display margins if a window's text area is too small after
11031 resizing or splitting windows.
11032 (size_window): Fix bug that did not account for display margin
11033 widths when checking the minimum width of a window; use
11034 adjust_window_margins.
11035 (set_window_buffer): Call Fset_window_fringes and
11036 Fset_window_scroll_bars to setup per-window elements.
11037 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
11038 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
11039 (e.g. after splitting a window or resizing the frame).
11040 All callers changed.
0416870b
KS
11041 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
11042 (Fsplit_window): Duplicate original window's display margin,
11043 fringe, and scroll-bar settings; then call Fset_window_buffer with
11044 KEEP_MARGINS non-nil. This fixes a bug which caused a split
11045 window to only preserve the display margins in one of the windows.
c4b8aebc 11046 When splitting horizontally, call adjust_window_margins on both
0416870b 11047 windows to ensure that the text area of the new windows is non too
f9711de4 11048 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
11049 width of the split window was less than the width of the display
11050 margins.
cab27d04 11051 (window_box_text_cols): Rename from window_internal_width.
9018a88e 11052 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
11053 Fix bug that caused vertical separator to be subtracted also on
11054 window frames. Fix another bug that did not reduce the returned
11055 value by the columns used for display margins.
11056 (window_scroll_line_based): Fix bug related to scrolling too much
11057 when display margins are present (implicitly fixed by the fix to
11058 window_box_text_cols).
11059 (scroll_left, scroll_right): Fix bug related to scrolling too far
11060 by default when display margins are present (implicitly fixed by
11061 the fix to window_box_text_cols).
11062 (struct saved_window): Rename members left to left_col, top to
11063 top_line, width to total_cols, height to total_lines, orig_top to
11064 orig_top_line, orig_height to orig_total_lines. All uses changed.
11065 New members left_margin_cols, right_margin_cols,
11066 left_fringe_width, right_fringe_width, fringes_outside_margins,
11067 scroll_bar_width, and vertical_scroll_bar_type for saving
11068 per-window display elements.
11069 (Fset_window_configuration): Restore display margins, fringes,
11070 and scroll bar settings. This fixes a bug which caused display
11071 margins to be discarded when saving and restoring a window
11072 configuration.
11073 (save_window_save): Save display margins, fringes, and scroll bar
11074 settings. This fixes a bug which caused display margins to be
11075 discarded when saving and restoring a window configuration.
11076 (Fset_window_margins): Do nothing if display margins are not
11077 really changed. Otherwise, call adjust_window_margins to ensure
11078 the text area doesn't get too narrow. This fixes a bug which
f9711de4 11079 could cause Emacs to trap if setting display margins wider than
0416870b
KS
11080 the width of the window.
11081 (Fset_window_fringes): New defun to allow user to specifically set
11082 this window's fringe widths and position vs. display margins.
cab27d04 11083 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
11084 (Fset_window_scroll_bars): New defun to allow user to specifically
11085 set this window's scroll bar width and position.
11086 (Fwindow_scroll_bars): New defun to return window's actual scroll
11087 bar settings.
11088 (compare_window_configurations): Also compare display margins,
11089 fringes, and scroll bar settings.
11090 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
11091
11092 * xdisp.c: Make (many) trivial substitutions for renamed and
11093 new macros in dispextern.h, frame.h and window.h.
11094 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 11095 and new fringe vs. display margin position. Note that returned
0416870b
KS
11096 value is no longer guaranteed to be a whole multiple of the frame
11097 column width, since per-window fringes may now be any width.
11098 (window_box_left_offset): New function like window_box_left, but
11099 value is relative to left border of window (rather than frame).
11100 (window_box_right_offset): New function like window_box_right,
11101 but value is relative to left border of window.
11102 (window_box_left): Adapt to per-window fringes and scroll bars,
11103 and new fringe vs. display margin position. Simplify by using
11104 WINDOW_LEFT_EDGE_X and window_box_left_offset.
11105 (window_box): Allow null args for unnecessary return values;
11106 change/simplify relevant callers.
11107 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
11108 and new fringe vs. display margin position.
11109 Use window_box_left_offset and window_box_right_offset
0416870b 11110 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
11111 scroll bars, and new fringe vs. display margin position.
11112 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
11113 (draw_fringe_bitmap): Rework to handle per-window fringes and new
11114 fringe vs. display margin position.
11115 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
11116 (redisplay_window): Adapt to per-window scroll bars.
11117 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
11118 bars, and new fringe vs. display margin position.
11119 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 11120 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
11121 bars, and new fringe vs. display margin position. Fix bug which
11122 increased total width of full_width rows by width of scroll bars
11123 although window's total width already includes that.
11124 (x_fix_overlapping_area): Simplify using window_box_left_offset.
11125 (expose_area): Simplify using window_box_left_offset.
11126 (x_draw_vertical_border): Handle per-window scroll bar settings,
11127 mixing windows with left, right and no scroll bars.
11128
11129 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
11130 where it's used in x_list_fonts (for clarity).
11131 (frame_update_line_height): Remove unused function; functionality
11132 is now done directly when setting the default font in x_set_font.
11133
11134 * xfns.c: Make (many) trivial substitutions for renamed and
11135 new macros in dispextern.h, frame.h and window.h.
11136
11137 * xmenu.c: Make (some) trivial substitutions for renamed and
11138 new macros in dispextern.h, frame.h and window.h.
11139
11140 * xterm.h (struct x_output): Move members left_pos, top_pos,
11141 border_width, pixel_height, pixel_width, line_height,
11142 internal_border_width, vertical_scroll_bar_extra,
11143 left_fringe_width, right_fringe_width, fringe_cols,
11144 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11145 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
11146 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11147 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11148 (PIXEL_WIDTH, PIXEL_HEIGHT)
11149 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11150 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11151 frame.h and renamed [see frame.h changes].
11152 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11153 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11154 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11155 and renamed [see frame.h changes].
9018a88e 11156
0416870b
KS
11157 * xterm.c: Make (several) trivial substitutions for renamed and
11158 new macros in dispextern.h, frame.h and window.h.
cab27d04 11159 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11160 (scroll_run): Adapt to new fringe position.
11161 (glyph_rect): Use window coordinates returned from
11162 window_from_coordinates rather than frame_to_window_pixel_xy.
11163 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11164 scroll-bars.
11165 (handle_one_xevent): Simplify a USE_GTK conditional.
11166 (x_clip_to_row): Remove superfluous whole_line_p arg and code
11167 (fringes are now inside margins, i.e. always in the clipping area).
11168 All callers changed.
11169 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11170 directly, then call compute_fringe_widths. Don't call
11171 frame_update_line_height.
11172
11173 * w32term.h (struct w32_output): Move members left_pos, top_pos,
11174 border_width, pixel_height, pixel_width, line_height,
11175 internal_border_width, vertical_scroll_bar_extra,
11176 left_fringe_width, right_fringe_width, fringe_cols,
11177 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11178 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
11179 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11180 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11181 (PIXEL_WIDTH, PIXEL_HEIGHT)
11182 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11183 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11184 frame.h and renamed [see frame.h changes].
11185 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11186 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11187 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11188 and renamed [see frame.h changes].
9018a88e 11189
0416870b
KS
11190 * w32term.c: Make (several) trivial substitutions for renamed and
11191 new macros in dispextern.h, frame.h and window.h.
cab27d04 11192 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11193 (glyph_rect): Use window coordinates returned from
11194 window_from_coordinates rather than frame_to_window_pixel_xy.
11195 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11196 scroll-bars.
11197 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
11198 (fringes are now inside margins, i.e. always in the clipping area).
11199 All callers changed.
11200 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11201 directly, then call compute_fringe_widths. Don't call
11202 frame_update_line_height.
11203
11204 * w32console.c: Make (few) trivial substitutions for renamed and
11205 new macros in dispextern.h, frame.h and window.h.
11206
11207 * w32fns.c: Make (many) trivial substitutions for renamed and
11208 new macros in dispextern.h, frame.h and window.h.
11209
11210 * w32menu.c: Make (few) trivial substitutions for renamed and
11211 new macros in dispextern.h, frame.h and window.h.
11212
11213 * macterm.h (struct mac_output): Move members left_pos, top_pos,
11214 border_width, pixel_height, pixel_width, line_height,
11215 internal_border_width, vertical_scroll_bar_extra,
11216 left_fringe_width, right_fringe_width, fringe_cols,
11217 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
11218 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
11219 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
11220 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
11221 (PIXEL_WIDTH, PIXEL_HEIGHT)
11222 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 11223 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
11224 frame.h and renamed [see frame.h changes].
11225 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
11226 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 11227 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 11228 and renamed [see frame.h changes].
9018a88e 11229
0416870b
KS
11230 * macterm.c: Make (several) trivial substitutions for renamed and
11231 new macros in dispextern.h, frame.h and window.h.
cab27d04 11232 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
11233 (glyph_rect): Use window coordinates returned from
11234 window_from_coordinates rather than frame_to_window_pixel_xy.
11235 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
11236 scroll-bars.
11237 (x_clip_to_row): Remove superfluous whole_line_p arg and code
11238 (fringes are now inside margins, i.e. always in the clipping area).
11239 All callers changed.
11240 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
11241 directly, then call compute_fringe_widths. Don't call
11242 frame_update_line_height.
11243
11244 * macfns.c: Make (several) trivial substitutions for renamed and
11245 new macros in dispextern.h, frame.h and window.h.
9018a88e 11246 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
11247
11248 * macmenu.c: Make (few) trivial substitutions for renamed and
11249 new macros in dispextern.h, frame.h and window.h.
11250
11251 * msdos.h (struct x_output): Remove members left_pos, top_pos,
11252 and line_height, and use corresponding new members in struct
11253 frame. All uses changed.
11254 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
11255 superseeded by corresponding macros in frame.h.
11256
11257 * msdos.c: Make (several) trivial substitutions for renamed and
11258 new macros in dispextern.h, frame.h and window.h.
11259 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 11260 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
11261 (internal_terminal_init): No need to initialize line_height here;
11262 it now defaults to 1.
11263
9018a88e
SM
112642003-05-24 Stefan Monnier <monnier@cs.yale.edu>
11265
11266 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
11267 dropping `down' events.
11268
016bd3c0
AS
112692003-05-24 Andreas Schwab <schwab@suse.de>
11270
11271 * coding.c (find_safe_codings): Fix last change.
11272
4dacadcc
TTN
112732003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
11274
11275 * xfns.c (x_window): Fix typo from 2003-05-21 change.
11276
319830ce
SM
112772003-05-23 Stefan Monnier <monnier@cs.yale.edu>
11278
9018a88e
SM
11279 * xdisp.c (display_mode_element): Increase max depth.
11280 Simplify the error handling code. Use a different error string
11281 for the case where we hit the depth limit.
11282
319830ce
SM
11283 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
11284
11285 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
11286
112872003-05-21 Stefan Monnier <monnier@cs.yale.edu>
11288
11289 * intervals.c (get_local_map): Don't get char-property of previous
11290 point any more: get_pos_property already does it and better.
11291
c67de8ba
DL
112922003-05-21 Dave Love <fx@gnu.org>
11293
11294 [Merged from unicode branch.]
11295
11296 * xfns.c (x_window, x_window): Use use_xim.
11297
11298 * xterm.c (use_xim): Initialize.
11299 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
11300 (x_term_init): Maybe set use_xim.
11301
11302 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
11303
edd3ff1d
JR
113042003-05-21 Jason Rumney <jasonr@gnu.org>
11305
11306 * unexw32.c (_start): Remove _fmode initialization.
11307
11308 * emacs.c (main) [WINDOWSNT]: Move it here.
11309
463f55ee
DL
113102003-05-20 Dave Love <fx@gnu.org>
11311
11312 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
11313
af253914
RS
113142003-05-19 Richard M. Stallman <rms@gnu.org>
11315
11316 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
11317 as value for QCfont attribute.
11318 (realize_default_face): lface should already exist; crash if not.
11319 Specify 0 for FORCE_P when calling set_lface_from_font_name.
11320
11321 * frame.c (Fignore_event): Doc fix.
11322
1d211019
KH
113232003-05-19 Kenichi Handa <handa@m17n.org>
11324
11325 * coding.c (decode_coding_string): Handle post-read-conversion
11326 even if the coding doesn't require decoding.
11327
4dd68254
RS
113282003-05-18 Richard M. Stallman <rms@gnu.org>
11329
11330 * callproc.c (Fcall_process_region): Doc fix.
11331
14d87dc9
SM
113322003-05-17 Stefan Monnier <monnier@cs.yale.edu>
11333
deca5d96
SM
11334 * lread.c (Fload): Print a message if package is obsolete.
11335
14d87dc9
SM
11336 * window.c (Fselect_window): Add optional `norecord' arg.
11337 (select_window_1): Fold into Fselect_window.
11338 (select_window_norecord): New function.
11339 (temp_output_buffer_show): Use it. Preserve current buffer.
11340
11341 * window.h (Fselect_window): Update declaration.
11342
11343 * window.c (delete_window, Fother_window, Fset_window_configuration):
11344 * minibuf.c (read_minibuf):
11345 * macterm.c (x_new_focus_frame):
11346 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
11347 * callint.c (Fcall_interactively):
11348 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
11349
11350 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
11351
78f52183
DK
113522003-05-17 David Kastrup <dak@gnu.org>
11353
11354 * process.c (read_process_output): Back out change from 2003-03-09.
11355
14d87dc9
SM
113562003-05-17 Stefan Monnier <monnier@cs.yale.edu>
11357
11358 * editfns.c (get_pos_property): Don't assume that `object' = nil.
11359
11360 * textprop.c (text_property_stickiness): New arg `buffer'.
11361
11362 * intervals.h (text_property_stickiness): New arg `buffer'.
11363 (get_pos_property): Declare.
11364
11365 * intervals.c (get_local_map): Use get_pos_property, to obey
11366 stickiness and empty overlays.
11367 (create_root_interval, graft_intervals_into_buffer): Use BEG.
11368 (merge_properties, intervals_equal, merge_properties_sticky):
11369 Use XCAR, XCDR.
11370 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
11371
1fd1cc2f
RS
113722003-05-17 Richard M. Stallman <rms@gnu.org>
11373
4f9f637a
RS
11374 * minibuf.c (read_minibuf): If buffer is empty, record the default
11375 in the history.
11376 (Fminibuffer_complete_word): When deleting the overlap, take account
11377 of its real position.
11378
11379 * fns.c (map_char_table): Fix previous change.
11380
1fd1cc2f
RS
11381 * syntax.c (find_defun_start):
11382 When open_paren_in_column_0_is_defun_start,
11383 return beginning of buffer.
11384
11385 * lisp.h (map_char_table): Declare added arg.
11386
11387 * fns.c (map_char_table): New arg TABLE gets the master table.
11388 All calls changed.
11389 Process default and inheritance, resorting to Faref if necessary.
11390
11391 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
11392 (Faccessible_keymaps): Pass new arg to map_char_table.
11393
11394 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
11395
11396 * casetab.c (set_case_table): Pass new arg to map_char_table.
11397
11398 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
11399
11400 * lisp.h (specbinding_func): New typedef.
11401 (struct specbinding): Use specbinding_func, to put the `volatile'
11402 in the right place.
11403
11404 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
11405 to avoid GCC warning.
14d87dc9 11406
b6189c3b 114072003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 11408
14d87dc9 11409 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 11410
35fb885d
SM
114112003-05-15 Stefan Monnier <monnier@cs.yale.edu>
11412
11413 * keyboard.c (apply_modifiers): Don't fill the other cache.
11414
9a274fbd
SM
114152003-05-14 Stefan Monnier <monnier@cs.yale.edu>
11416
c55b5fad
SM
11417 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
11418
9a274fbd
SM
11419 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
11420 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
11421 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
11422 (Fset_window_configuration, Fcurrent_window_configuration)
11423 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
11424 (Fpos_visible_in_window_p, mark_window_cursors_off)
11425 (window_internal_height, window_internal_width, Frecenter)
11426 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
11427 (replace_buffer_in_all_windows, init_window_once, init_window)
11428 (syms_of_window, keys_of_window): Move from lisp.h.
11429 * lisp.h: Move window.c declarations to window.h.
11430
11431 * bytecode.c: Include window.h.
11432 * emacs.c: Include window.h.
11433
14d87dc9 11434 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
11435 (keyremap): Add `parent' field.
11436 (keyremap_step): Use it. Remove `parent' argument.
11437 (read_key_sequence): Setup and use the new `parent' field.
11438
fd93e331
SM
114392003-05-11 Stefan Monnier <monnier@cs.yale.edu>
11440
11441 * keyboard.c (adjust_point_for_property): Ensure termination.
11442
1c4001a1
SM
114432003-05-10 Stefan Monnier <monnier@cs.yale.edu>
11444
11445 * keyboard.c (follow_key): Remove dead variable `did_meta'.
11446 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
11447 duplicated handling of function-key-map and key-translation-map
11448 in read_key_sequence.
11449 (read_key_sequence): Use them.
11450
11451 * keyboard.c (adjust_point_for_property): Try harder to move point
11452 to the non-sticky end of an invisible property.
11453
11454 * xdisp.c (single_display_prop_intangible_p): Make `space' display
11455 property intangible as well.
11456
780379b1
AS
114572003-05-10 Andreas Schwab <schwab@suse.de>
11458
11459 * xmenu.c (single_menu_item): Change last parameter to void* to
11460 avoid warning.
11461
ca2de342
RS
114622003-05-09 Richard M. Stallman <rms@gnu.org>
11463
11464 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
11465 Bind Qinhibit_modification_hooks to t so there will be no GC.
11466 Rename local `tem' to `save_deactivate_mark'.
11467
11468 * eval.c (specpdl_ptr): Declare volatile.
11469 (unbind_to): Copy the whole binding and decrement specpdl_ptr
11470 before doing the work of unbinding it.
11471
11472 * lisp.h (struct specbinding): Declare elements volatile.
11473 (specpdl_ptr): Declare volatile.
11474
11475 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
11476
11477 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
11478 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
11479
347003be
DL
114802003-05-08 Dave Love <fx@gnu.org>
11481
11482 * coding.c (Vlast_coding_system_used): Doc fix.
11483
5adcec23
JR
114842003-05-07 Jason Rumney <jasonr@gnu.org>
11485
11486 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
11487 when system does not support them.
11488
5fe3b8a4
SM
114892003-05-05 Stefan Monnier <monnier@cs.yale.edu>
11490
11491 * fileio.c (Qwrite_region_annotate_functions): New var.
11492 (build_annotations): Use it to process the global part of the hook.
11493 (syms_of_fileio): Init and staticpro it.
11494
11495 * keyboard.c (safe_run_hooks_error): Display a message instead of
11496 silently ignoring the error.
11497
114982003-05-03 Stefan Monnier <monnier@cs.yale.edu>
11499
11500 * keyboard.c (input_available_signal): Mark static.
11501 (menu_bar_items): Use map_keymap.
11502 (menu_bar_one_keymap): Remove.
11503 (menu_bar_item): Adjust arglist (for use in map_keymap).
11504 Properly hide a second binding when not both are keymaps.
11505
11506 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
11507 (single_keymap_panes): Use it and map_keymap.
11508 (single_menu_item): Use skp as well.
11509
11510 * keymap.h (map_keymap_function_t): New type.
11511 (map_keymap): Declare.
11512
11513 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
11514 (map_keymap_call, Fmap_keymap): New functions.
11515 (syms_of_keymap): Defsubr map-keymap.
11516
4b1b4443
JD
115172003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11518
11519 * gtkutil.c (create_dialog, make_widget_for_menu_item)
11520 (make_menu_item, create_menus, xg_update_menu_item): Don't call
11521 ..._with_mnemonic functions for menu items.
11522
1f816871
KH
115232003-05-01 Kenichi Handa <handa@m17n.org>
11524
11525 * coding.c (coding_system_accept_latin_extra_p): Delete this
11526 function.
11527 (find_safe_codings): Pay attention to
11528 the property tranlsation-table-for-encode of each codings.
11529 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
11530
5ed6ba5b
SM
115312003-05-01 Stefan Monnier <monnier@cs.yale.edu>
11532
11533 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
11534
32c06229
SM
115352003-04-30 Stefan Monnier <monnier@cs.yale.edu>
11536
11537 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
11538
11539 * lisp.h (CHECK): Wrap args in parenthesis.
11540 (specbind): Fix doc: symbol = Qnil is not supported any more.
11541
11542 * bytecode.c (Fbyte_code) <unwind-protect>:
11543 Use Fprogn rather than 0 and Qnil.
11544
11545 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
11546 `double', and `triple' modifiers as well.
11547
ed3c3314
RS
115482003-04-30 Richard M. Stallman <rms@gnu.org>
11549
11550 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
11551
11552 * alloc.c (abort_on_gc): New variable.
11553 (Fgarbage_collect): Abort if abort_on_gc is set.
11554
11555 * lisp.h (abort_on_gc): Add decl.
11556
11557 * eval.c (Fsignal): Clear abort_on_gc.
11558
11559 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 11560 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
11561
11562 * xdisp.c (move_it_vertically_backward): Do the final big else
11563 even if nlines is 0.
11564
11565 * xdisp.c (redisplay_internal): Finish the per-frame loop
11566 even if redisplay is suspended by input.
11567
0b325c12
AC
115682003-04-24 Andrew Choi <akochoi@shaw.ca>
11569
11570 * macterm.c (x_list_fonts): Return all fonts that match if
11571 maxnames = -1.
11572
4e837cd0
KH
115732003-04-25 Kenichi Handa <handa@m17n.org>
11574
11575 * syntax.c (skip_chars): Fix previous change.
11576
9af7511a
KH
115772003-04-24 Kenichi Handa <handa@m17n.org>
11578
11579 * syntax.c (skip_chars): Make the code faster by using the common
11580 technique of *p, *stop, and *endp.
11581
e3b2c21f
JD
115822003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11583
11584 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 11585 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
11586 being updated.
11587
32c06229
SM
115882003-04-19 Stefan Monnier <monnier@cs.yale.edu>
11589
11590 * eval.c (Fapply): Undo last change and add a comment about why.
11591
c6464167
MB
115922003-04-18 Miles Bader <miles@gnu.org>
11593
11594 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
11595 pickier PARSE_MULTIBYTE_SEQ.
11596
e509f168
SM
115972003-04-17 Stefan Monnier <monnier@cs.yale.edu>
11598
11599 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
11600 Use XCDR, XCAR, CONSP.
11601 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
11602 (Fapply): Remove unnecessary GCPRO.
11603
11604 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
11605
11606 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
11607
11608 * buffer.h: Don't hardcode BEG==1.
11609
11610 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
11611
5ceea398
RS
116122003-04-16 Richard M. Stallman <rms@gnu.org>
11613
11614 * xdisp.c (try_window, try_window_reusing_current_matrix):
11615 When at end of window, set window_end_pos to Z-ZV.
11616
11617 * buffer.c (Foverlay_recenter): Doc fix.
11618
e509f168
SM
116192003-04-14 Stefan Monnier <monnier@cs.yale.edu>
11620
11621 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
11622
d243e605
AC
116232003-04-14 Andrew Choi <akochoi@shaw.ca>
11624
11625 * macterm.c (mac_check_for_quit_char): Don't check more often than
11626 once a second.
11627
6901b111
SM
116282003-04-11 Stefan Monnier <monnier@cs.yale.edu>
11629
11630 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
11631 specially, so that they can't hide an implicit switch-frame event.
11632 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
11633 (head_table): Use switch-frame as event_kind for select-window.
11634 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
11635
11636 * editfns.c (Fformat): Lisp_Object/int mixup.
11637 (format2): Remove unused var numargs.
11638
e301806f 116392003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 11640
6901b111 11641 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
11642 (Qafter_insert_file_set_coding): New variable.
11643 (syms_of_fileio): Initialize and staticpro it. Delete declaration
11644 for after-insert-file-adjust-coding-function.
11645 (Finsert_file_contents): Call Qafter_insert_file_set_coding
11646 instead of Vafter_insert_file_adjust_coding_function.
11647
38914424
KH
116482003-04-11 Kenichi Handa <handa@m17n.org>
11649
11650 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
11651
11652 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
11653 string. Callers changed.
11654
116552003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 11656
6901b111 11657 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 11658 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
11659 (Finsert_file_contents):
11660 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
11661 decode-format.
11662
f979dc05
JD
116632003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11664
11665 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
11666 get GtkAdjustment as widget now is a GtkRange.
11667
11668 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
11669 GtkRange to avoid memory leak.
11670
f8c6b4c2 116712003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 11672
50ebc53d
KH
11673 * xfaces.c (Vface_font_rescale_alist): New variable.
11674 (struct font_name): New member rescale_ratio.
11675 (font_rescale_ratio): New function.
6901b111 11676 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
11677 (better_font_p): On comparing point sized, pay attention to
11678 recale_ratio member of fonts.
11679 (build_scalable_font_name): Reflect font->rescale_ratio in the
11680 font name.
6901b111 11681 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 11682
cb98871c
KH
11683 * lread.c (read1): Before calling index, check if the 2nd
11684 arguemnt is in ASCII range.
11685
4773b8ca
RS
116862003-04-08 Richard M. Stallman <rms@gnu.org>
11687
b0ada147
RS
11688 * fileio.c (Ffile_symlink_p): Doc fix.
11689
11690 * editfns.c (Fformat): Translate positions of text properties
11691 in the format string to apply them to the result.
11692
4773b8ca
RS
11693 * fileio.c (Finsert_file_contents): Doc fix.
11694 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
11695
116962003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 11697
4773b8ca
RS
11698 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
11699
e8f25745 117002003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 11701
e8f25745
ST
11702 * mac.c (init_mac_osx_environment): Switch libexec and bin so
11703 that self-contained application finds libexec files.
11704
f8c6b4c2 117052003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 11706
6901b111
SM
11707 * coding.c (code_convert_region_unwind):
11708 Set Vlast_coding_system_used to the argument.
2310d84c
KH
11709 (code_convert_region): If post-read-conversion function changed
11710 the value of last-coding-sytem, keep the new value in
11711 coding->symbol so that it won't be overridden.
11712 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
11713 (coding_system_accept_latin_extra_p): New function.
11714 (find_safe_codings): Pay attention to characters registered in
11715 latin-extra-code-table.
2310d84c 11716
39c9a034
TTN
117172003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
11718
11719 * Makefile.in (md5.o): Add missing dependency info.
11720
eb67c5d6
RS
117212003-04-06 Richard M. Stallman <rms@gnu.org>
11722
11723 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
11724
11725 * marker.c (verify_bytepos): New function.
11726
11727 * intervals.c (set_intervals_multibyte_1): When becoming
11728 multibyte, adjust right and left child sizes to a whole set of
11729 characters. If an interval gets zero total-length, delete it.
11730 If an interval consists of just its children, delete one of them.
11731
11732 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
11733 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 11734
52eb0373 11735 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
11736 All calls deleted.
11737 (lisp_malloc): Do the work here directly.
11738
b1f81fc5
JB
117392003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
11740
11741 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
11742 char tables.
11743
117442003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
11745
11746 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
11747 destructively change "%S" to "%s".
11748
774666fb
MB
117492003-04-03 Miles Bader <miles@gnu.org>
11750
11751 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
11752 always set.
11753
19c37f01
DL
117542003-04-01 Dave Love <fx@gnu.org>
11755
11756 * xfns.c (xpm_lookup_color): Grok "opaque".
11757
2f4b24c3
AC
117582003-03-31 Andrew Choi <akochoi@shaw.ca>
11759
11760 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
11761 parent window ID.
11762
11763 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
11764
11765 * macterm.h (struct mac_output): Define x_pixels_diff and
11766 y_pixels_diff.
b1f81fc5 11767
9443fcf6
JB
117682003-03-31 Juanma Barranquero <lektu@terra.es>
11769
11770 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
11771 blockinput.h and files included from it.
11772
e072891b
KS
117732003-03-31 Kim F. Storm <storm@cua.dk>
11774
11775 The following changes consolidates the common code related to
11776 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
11777 files into frame.c.
9443fcf6 11778
e072891b
KS
11779 * frame.c: Include blockinput.h.
11780 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
11781 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
11782 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
11783 related vars here.
11784 (struct frame_parm_table, frame_parms): New table for describing
11785 frame parameters and their associated Q-variable.
11786 The order of the parameters corresponds to the sequence of the
11787 frame_parm_handlers table in redisplay_interface.
11788 (x_fullscreen_move, x_set_frame_parameters)
11789 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
11790 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
11791 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11792 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
11793 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
11794 Generic functions for processing of frame parameters.
11795 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
11796 (display_x_get_resource, x_get_resource_string): Functions for
11797 generic access to X resources.
11798 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
11799 (x_default_parameter, Fx_parse_geometry): Functions for generic
11800 access to frame parameters.
6901b111
SM
11801 (x_figure_window_size): Generic calculation of frame size.
11802 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
11803 (syms_of_frame): Intern and staticpro frame parameter variables.
11804 Defvar_lisp Vx_resource_class and Vx_resource_name here.
11805 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 11806
e072891b
KS
11807 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
11808 parameter related vars defined in frame.c.
11809 (EMACS_CLASS): Define here.
11810 (enum FULLSCREEN_*): Define here.
11811 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
11812 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
11813 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
11814 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
11815 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
11816 (x_set_visibility, x_set_autoraise, x_set_autolower)
11817 (x_set_unsplittable, x_set_vertical_scroll_bars)
11818 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
11819 (x_figure_window_size): Add prototypes.
11820
11821 * dispextern.h (frame_parm_handler): New typedef.
11822 (struct redisplay_interface): New member frame_parm_handlers.
11823 (enum resource_types): Move declaration here.
11824 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
11825 (x_default_parameter): Add prototypes.
11826
11827 * window.c: Remove extern decl for frame parameter vars.
11828 (change_window_heights): New generic function;
11829 replaces x_change_window_heights. All users changed.
11830
11831 * window.h (change_window_heights): Add prototype.
11832
11833 * xfaces.c: Remove extern decl for frame parameter vars.
11834
11835 * xterm.h (EMACS_CLASS): Remove. Use generic define.
11836 (struct w32_display_info): Fix type of xrdb member.
11837 (enum FULLSCREEN_*): Remove.
11838 Remove prototypes for generic functions (in frame.h).
11839
11840 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11841 parameters now defined in frame.h and frame.c.
f63fd14e 11842 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11843 (enum x_frame_parms): Remove (bogus, unused enum).
11844 (check_x_display_info): Make non-static (for frame.c).
11845 (struct x_frame_parm_table, x_frame_parms): Remove.
11846 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11847 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11848 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11849 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11850 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11851 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11852 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11853 Remove. Use generic functions instead.
11854 (enum resource_types): Remove.
11855 (x_set_scroll_bar_default_width): New global function (for frame.c).
11856 (Fx_create_frame): Depend on x_figure_window_size to add space for
11857 toolbar and setup size_hint_flags.
11858 (x_frame_parm_handlers): New table for redisplay_interface.
11859 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 11860
e072891b 11861 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 11862 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
11863 (x_redisplay_interface): Add x_frame_parm_handlers member.
11864
11865 * w32gui.h (XrmDatabase): New (dummy) typedef.
11866
11867 * w32term.h (EMACS_CLASS): Remove. Use generic define.
11868 (struct w32_display_info): Fix type of xrdb member.
11869 (enum FULLSCREEN_*): Remove.
11870 (x_fullscreen_adjust): Remove prototype.
11871
11872 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11873 parameters now defined in frame.h and frame.c.
f63fd14e 11874 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11875 (enum x_frame_parms): Remove (bogus, unused enum).
11876 (check_x_display_info): Make non-static (for frame.c).
11877 (struct x_frame_parm_table, x_frame_parms): Remove.
11878 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11879 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11880 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11881 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11882 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11883 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11884 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11885 Remove. Use generic functions instead.
11886 (enum resource_types): Remove.
11887 (x_set_scroll_bar_default_width): New global function (for frame.c).
11888 (Fx_create_frame): Depend on x_figure_window_size to add space for
11889 toolbar and setup size_hint_flags.
11890 (w32_frame_parm_handlers): New table for redisplay_interface.
11891 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 11892
e072891b 11893 * w32term.c: Remove unnecessary extern declarations.
52eb0373 11894 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
11895 (x_redisplay_interface): Add w32_frame_parm_handlers member.
11896
11897 * w32reg.c (x_get_string_resource): Use XrmDatabase.
11898
11899 * macgui.h (XrmDatabase): New (dummy) typedef.
11900
11901 * macterm.h (EMACS_CLASS): Remove.
11902 (struct mac_display_info): Add xrdb member.
11903 (struct mac_output): Add want_fullscreen member.
11904
11905 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
11906 parameters now defined in frame.h and frame.c.
f63fd14e 11907 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
11908 (check_x_display_info): Make non-static (for frame.c).
11909 (struct x_frame_parm_table, x_frame_parms): Remove.
11910 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
11911 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
11912 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
11913 (x_change_window_heights, x_set_autoraise, x_set_autolower)
11914 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
11915 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
11916 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
11917 Remove. Use generic functions instead.
11918 (enum resource_types): Remove.
11919 (x_set_scroll_bar_default_width): New global function (for frame.c).
11920 (mac_frame_parm_handlers): New table for redisplay_interface.
11921 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 11922
e072891b
KS
11923 * macterm.c: Remove unnecessary extern declarations.
11924 (x_redisplay_interface): Add mac_frame_parm_handlers member.
11925
3e6a560b
KS
11926 * Makefile.in (frame.o): Add dependency on blockinput.h and files
11927 included from it (atimer.h and systime.h).
11928
7b7b454e
AS
119292003-03-30 Andreas Schwab <schwab@suse.de>
11930
11931 * xdisp.c (x_insert_glyphs): Fix swapped width and height
11932 parameters for shift_glyphs_for_insert.
11933
11934 * macterm.c (x_redisplay_interface): Add missing entry for
11935 draw_vertical_window_border.
11936
beb402de
KG
119372003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
11938
11939 * fileio.c (Fexpand_file_name): In the no-handler case, after
11940 expanding, look again for a handler and invoke it. This is needed
11941 for filenames like "/foo/../user@host:/bar/../baz" -- the first
11942 expansion produces "/user@host:/bar/../baz" which needs to be
11943 expanded again for the finame result "/user@host:/baz".
11944
b676f356
JD
119452003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11946
11947 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
11948 of area to be redrawn for better performance.
11949
3c671a56
SM
119502003-03-28 Stefan Monnier <monnier@cs.yale.edu>
11951
11952 * xterm.c (take_vertical_position_into_account): Remove.
11953 (xt_action_hook): Call set_vertical_scroll_bar if needed.
11954 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
11955 (xm_scroll_callback, x_create_toolkit_scroll_bar)
11956 (x_set_toolkit_scroll_bar_thumb): Simplify.
11957 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
11958 (XTread_socket): Remove unused var.
11959 (x_make_frame_invisible): Replace goto with else.
11960
11961 * xdisp.c (set_vertical_scroll_bar): New fun.
11962 (redisplay_window): Use it.
11963
84f2e615
RS
119642003-03-26 Richard M. Stallman <rms@gnu.org>
11965
11966 * xdisp.c (update_tool_bar): Recompute tool bar if
11967 update_mode_lines is set. Set w->update_mode_line
11968 only if the tool bar contents actually change.
11969 (update_menu_bar): Undo previous change.
11970
70b6104c
JD
119712003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11972
5fd6f727
JD
11973 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
11974 (xg_frame_set_char_size): Calculate scroll bar width before frame
11975 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
11976 (xg_separator_p): Check for all documented separator types.
11977 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
11978 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
11979
70b6104c
JD
11980 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
11981 so tool bar gets updated.
11982
d9b36d19
SM
119832003-03-26 Stefan Monnier <monnier@cs.yale.edu>
11984
11985 * data.c (store_symval_forwarding): Re-instate part of the code
11986 that was deleted with too much enthusiasm.
11987
119882003-03-25 Stefan Monnier <monnier@cs.yale.edu>
11989
11990 * data.c (store_symval_forwarding): Delete special read-only
11991 hack for type == -1, since we now use ->constant instead.
11992 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
11993
11994 * buffer.c (overlays_in): Declare static.
11995 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
11996 `constant' field rather than the variable's `type' field.
11997
365fa1b3
AC
119982003-03-24 Andrew Choi <akochoi@shaw.ca>
11999
12000 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
12001
12002 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
12003
12004 * fns.c [MAC_OSX]: Do not redefine vector.
12005
12006 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
12007
12008 * macgui.h: Remove definition of No_Cursor.
12009
d9b36d19 12010 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
12011
12012 * xdisp.c: Define No_Cursor.
12013 (x_write_glyphs, notice_overwritten_cursor)
12014 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
12015 (note_mouse_highlight): Remove Mac-specific code.
12016 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 12017
c0bcce6f
JPW
120182003-03-24 John Paul Wallington <jpw@gnu.org>
12019
12020 * xdisp.c (redisplay_window): If mini window's buffer is not
12021 empty, then redisplay it like other windows.
12022
a526b96c
KS
120232003-03-23 Kim F. Storm <storm@cua.dk>
12024
12025 * w32term.c (w32_draw_window_cursor): Fix last change.
12026
37ab321e
KH
120272003-03-23 Kenichi Handa <handa@m17n.org>
12028
a526b96c
KS
12029 * alloc.c (make_string_from_bytes, make_specified_string):
12030 Add `const' for the arg CONTENTS.
37ab321e
KH
12031
12032 * lisp.h (make_string_from_bytes, make_specified_string):
12033 Prototypes adjusted.
12034
7863d625
JD
120352003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12036
a526b96c 12037 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 12038
7863d625
JD
12039 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
12040 (XG_SB_RANGE): New define.
12041
12042 * gtkutil.c (xg_fixed_handle_expose): New function.
12043 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
12044 expose events.
12045 (xg_update_scrollbar_pos): Take two more arguments, left and width
12046 of scroll bar including borders.
12047 Clear left and right part outside scroll bar separately as some
12048 themes have bars that are not an even number of pixels.
d9b36d19 12049 Don't set reallocate_redraws, don't call
7863d625
JD
12050 gdk_window_process_all_updates.
12051 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
12052 so no need to change it. Calculate size and value with XG_SB_RANGE.
12053
d9b36d19
SM
12054 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
12055 Pass left and width of scroll bar including borders to
7863d625
JD
12056 xg_update_scrollbar_pos.
12057
af0ad939
TTN
120582003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
12059
12060 * Makefile.in: Make sure space precedes end-of-line backslashes.
12061
b22139fd
KS
120622003-03-22 Kim F. Storm <storm@cua.dk>
12063
12064 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
12065 Add generic versions here. Remove system specific versions
12066 defined elsewhere.
12067
12068 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
12069 Add prototypes.
12070
6e6410cf
KS
12071 * xterm.h (STORE_NATIVE_RECT): New macro.
12072
5c9cc435
KS
120732003-03-21 Kim F. Storm <storm@cua.dk>
12074
00c64fab
SM
12075 * xdisp.c (get_glyph_string_clip_rect):
12076 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
12077
12078 * dispextern.h (struct redisplay_interface): Add active_p
12079 argument to draw_window_cursor member. All uses changed.
12080
acd37560
KS
120812003-03-21 Kim F. Storm <storm@cua.dk>
12082
12083 The following changes consolidate code related to writing and
12084 inserting glyphs, exposing frame, the tool bar, the mouse face,
12085 the output cursor, and help echo from xterm.c, w32term.c and
12086 macterm.c into xdisp.c. It also generalizes the use of the
12087 window_part enum instead of using numeric values throughout.
af0ad939 12088
acd37560
KS
12089 * xdisp.c: Consolidate gui-independent code here.
12090 Include keymap.h.
12091 (Qhelp_echo): Import.
12092 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
12093 (help_echo_string, help_echo_window, help_echo_object)
12094 (previous_help_echo_string, help_echo_pos): Declare here.
12095 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
12096 (estimate_mode_line_height): Define here. Handle windowing
12097 systems directly (without using estimate_mode_line_height_hook).
12098 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
12099 (update_window_cursor, update_cursor_in_window_tree)
12100 (fast_find_position, fast_find_string_pos)
12101 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
12102 (expose_area, expose_line, expose_overlaps, expose_window)
12103 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
12104 declared static as they are only used locally in xdisp.c.
12105 (draw_glyphs): Rename from x_draw_glyphs and make static.
12106 (tool_bar_item_info, notice_overwritten_cursor): Make static.
12107 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
12108 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 12109 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
12110 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
12111 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
12112 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
12113 (note_mouse_highlight, x_clear_window_mouse_face)
12114 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
12115 (x_intersect_rectangles): New generic functions for use by xdisp.c
12116 and GUI front-ends.
12117 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
12118 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
12119
12120 * dispextern.h (Display_Info): Generic typedef for *_display_info.
12121 (NativeRectangle): Generic typedef for rectangle type.
12122 (enum window_part): Move here from window.c.
12123 (struct redisplay_interface): New members flush_display_optional,
12124 define_frame_cursor, clear_frame_area, draw_window_cursor,
12125 draw_vertical_window_border, shift_glyphs_for_insert.
12126 Rename member clear_mouse_face to clear_window_mouse_face.
12127 (estimate_mode_line_height_hook): Remove hook.
12128 (auto_raise_tool_bar_buttons_p): Don't declare extern.
12129 (tool_bar_item_info): Remove prototype.
12130 (help_echo_string, help_echo_window, help_echo_object)
12131 (previous_help_echo_string, help_echo_pos)
12132 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
12133 (x_stretch_cursor_p, output_cursor): Declare extern.
12134 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
12135 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
12136 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
12137 (display_and_set_cursor, set_output_cursor, x_cursor_to)
12138 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
12139 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
12140 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
12141 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
12142 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
12143 Add prototypes.
12144 (mode_line_string, marginal_area_string): Fix prototypes.
12145
12146 * window.c (enum window_part): Move to dispextern.h.
12147 (coordinates_in_window): Use enum window_part member names
12148 instead of numbers to describe return value.
12149 (struct check_window_data): Change part member to window_part.
12150 (check_window_containing): Return window_part unaltered.
12151 (window_from_coordinates): Change part arg from int to enum
12152 window_part. Allow part arg to be null. All users changed.
12153
12154 * window.h (window_from_coordinates): Fix prototype.
12155
12156 * term.c (estimate_mode_line_height): Move to xdisp.c.
12157
12158 * keyboard.c (make_lispy_event): Use enum window_part.
12159
12160 * dispnew.c (mode_line_string, marginal_area_string): Use enum
12161 window_part instead of int in arg list. Users changed.
12162
12163 * xterm.h (No_Cursor): Declare as None for X.
12164 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 12165
acd37560
KS
12166 * xterm.c: Remove consolidated defines and code.
12167 (BETWEEN): Remove unused macro.
12168 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
12169 (x_define_frame_cursor, x_clear_frame_area)
12170 (x_draw_window_cursor): New X-specific functions for RIF.
12171 (x_redisplay_interface): Add new members.
12172
12173 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
12174
12175 * w32term.h (struct w32_output): Remove cross_cursor member.
12176
12177 * w32term.c: Remove consolidated defines and code.
12178 (BETWEEN): Remove unused macro.
12179 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
12180 (w32_define_frame_cursor, w32_clear_frame_area)
12181 (w32_draw_window_cursor): New W32-specific functions for RIF.
12182 (w32_redisplay_interface): Add new members.
12183
a64387ee 12184 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
12185 (XRectangle): Add X compatible rectangle type.
12186 (NativeRectangle): Declare as RECT for W32.
12187 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
12188
12189 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
12190
12191 * w32console.c: Remove consolidated defines and code.
af0ad939 12192
acd37560
KS
12193 * msdos.h (Display_Info): Add generic typedef.
12194
12195 * msdos.c: Remove consolidated defines and code.
12196 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
12197
12198 * macterm.h (struct mac_output): Replace member cross_cursor by
12199 hand_cursor.
12200 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
12201
12202 * macterm.c: Remove consolidated defines and code.
12203 (BETWEEN): Remove unused macro.
12204 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
12205 (mac_define_frame_cursor, mac_clear_frame_area)
12206 (mac_draw_window_cursor): New Mac-specific functions for RIF.
12207 (x_redisplay_interface): Add new members.
12208
12209 * macgui.h (No_Cursor): Define as 0 for Mac.
12210 (XRectangle): Add X compatible rectangle type.
12211 (NativeRectangle): Declare as Rect for Mac.
12212 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
12213
204ccab1
KS
12214 * macfns.c (x_set_mouse_color): Setup hand_cursor.
12215 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 12216
9443fcf6 12217 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
12218 included from it. Add dependency on keymap.h.
12219
12220 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
12221
8ba01a70 122222003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
12223
12224 * fileio.c (Fexpand_file_name): Fix previous change.
12225
8ba01a70 122262003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
12227
12228 * fileio.c (Ffile_name_directory): Reconstruct file name by
12229 make_specified_string.
12230 (Ffile_name_nondirectory, Ffile_name_as_directory)
12231 (Fdirectory_file_name, Fexpand_file_name)
12232 (Fsubstitute_in_file_name): Likewise.
12233 (Fread_file_name): Compare decoded homedir with DIR and
12234 DEFAULT_FILENAME.
12235
12236 * alloc.c (make_specified_string): If NCHARS is negative, count
12237 the number of characters.
12238
19536747
JD
122392003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12240
de38ae5a
JD
12241 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
12242 all widgets.
12243
19536747
JD
12244 * gtkutil.h: Removed xg_ignore_next_thumb.
12245
37ab321e 122462003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
12247
12248 * coding.c (Vchar_coding_system_table): Remove this variable.
12249 (Vcoding_system_safe_chars): New variable.
12250 (intersection): Remove this function.
12251 (find_safe_codings): Don't use Vchar_coding_system_table, but try
12252 all codings in SAFE_CODINGS.
00c64fab 12253 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
12254 find_safe_codings. Get generic coding systems from
12255 Vcoding_system_safe_chars.
12256 (Fdefine_coding_system_internal): New function.
12257 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
12258 Initialize and staticpro Vcoding_system_safe_chars.
12259
17097258
JD
122602003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12261
2a2071c3
JD
12262 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
12263 equal old values before updating.
12264
17097258
JD
12265 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
12266
12267 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
12268
122692003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12270
12271 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
12272 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
12273 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
12274 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
12275 (xg_create_scroll_bar): Pass bar to button event callback.
12276 (xg_find_top_left_in_fixed): New function.
12277 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
12278 whole scroll bar area. Get old position with
12279 xg_find_top_left_in_fixed, calculate and only clear needed areas.
12280 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
12281 dragging is in progress. Calculate whole as for Motif.
12282 Remove code that saved last values. Call gtk_range functions to
12283 set scroll bar sizes.
12284
12285 * gtkutil.h: Removed xg_ignore_next_thumb.
12286
8cb9dfbf
JB
122872003-03-17 Juanma Barranquero <lektu@terra.es>
12288
12289 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
12290 and files included from it.
12291
00c64fab
SM
122922003-03-18 Stefan Monnier <monnier@cs.yale.edu>
12293
12294 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
12295 multiple occurrences of the same keymap under different prefixes.
12296 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
12297
c45bb3b2
JR
122982003-03-16 Jason Rumney <jasonr@gnu.org>
12299
12300 * w32gui.h: Use HDC for Display.
12301
12302 * w32term.c (w32_encode_char): Prevent double-byte chars from
12303 crashing Emacs.
12304
12305 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
12306 as binary.
12307
2a6d0874
JB
123082003-03-16 Juanma Barranquero <lektu@terra.es>
12309
12310 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
12311
03eb5fab
KS
123122003-03-16 Kim F. Storm <storm@cua.dk>
12313
12314 The following changes consolidate some of the gui-independent
12315 parts of the processing and drawing of "glyph strings" from
12316 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 12317
03eb5fab
KS
12318 * dispextern.h (struct glyph): Reduce face_id member from 22 to
12319 21 bits (this reduces number of faces from 4M to 2M).
12320 Replace W32 specific w32_font_type member (2 bits) by generic
12321 font_type member (3 bits) for portability.
12322 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
12323 (enum draw_glyphs_face): Define here.
12324 (struct glyph_string): Define here. Merge W32 and X versions.
12325 (struct redisplay_interface): New members per_char_metric,
12326 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
12327 (VCENTER_BASELINE_OFFSET): Define here.
12328 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
12329 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
12330
12331 * xdisp.c: Consolidate gui-independent "glyph string" code here.
12332 (dump_glyph_string): Moved here.
12333 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
12334 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
12335 (fill_composite_glyph_string, fill_glyph_string)
12336 (fill_image_glyph_string, fill_stretch_glyph_string)
12337 (left_overwritten, left_overwriting, right_overwritten)
12338 (right_overwriting, get_char_face_and_encoding)
12339 (set_glyph_string_background_width, compute_overhangs_and_x)
12340 (append_glyph, append_composite_glyph, produce_image_glyph)
12341 (take_vertical_position_into_account, append_stretch_glyph)
12342 (produce_stretch_glyph): New generic functions (based on X version).
12343 Call platform specific functions through rif.
12344 (INIT_GLYPH_STRING): New macro, hides W32 details.
12345 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
12346 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
12347 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
12348 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
12349 (notice_overwritten_cursor):
12350 Generic functions exported to platform modules. Users changed.
12351
12352 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
12353 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
12354 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 12355 New macros for consolidated code.
2a6d0874 12356
03eb5fab
KS
12357 * xterm.c: Remove consolidated defines and code.
12358 (x_per_char_metric, x_encode_char)
12359 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
12360 (x_redisplay_interface): Add new members.
12361
12362 * w32gui.h (Display): Add dummy typedef for consolidation.
12363 (XChar2b): Define alias for wchar_t for consolidation.
12364 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
12365
12366 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 12367 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
12368 New macros for consolidation.
12369
fad49844 12370 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
12371 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
12372 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
12373 (w32_per_char_metric): Change font_type arg to int for RIF.
12374 (w32_encode_char): Return int according to RIF requirements.
12375 (w32_compute_glyph_string_overhangs): Adapt to RIF.
12376 (w32_get_glyph_overhangs): New function for RIF. Uses generic
12377 x_get_glyph_overhangs.
12378 (w32_redisplay_interface): Add new members.
12379
12380 * macgui.h (XChar2b): Move typedef here for consolidation.
12381 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
12382
12383 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
12384 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
12385 consolidation.
12386
12387 * macterm.c: Remove consolidated defines and code.
12388 (mac_per_char_metric): New function for RIF.
00c64fab 12389 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
12390 (mac_compute_glyph_string_overhangs): Adapt for RIF.
12391 (x_redisplay_interface): Add new members.
12392
00c64fab
SM
123932003-03-15 Stefan Monnier <monnier@cs.yale.edu>
12394
12395 * keymap.c (Vmenu_events): New var.
12396 (syms_of_keymap): Initialize it.
12397 (where_is_internal): Check more carefully what is a menu event.
12398
225c7a07
RS
123992003-03-14 Richard M. Stallman <rms@gnu.org>
12400
12401 * lread.c (read1): After #!, exit loop on eof.
12402
cea9be54
JD
124032003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12404
9ea0e54d
JD
12405 * gtkutil.h: Add declaration for xg_frame_cleared.
12406
0cb35f4e
JD
12407 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
12408
cea9be54
JD
12409 * gtkutil.c (struct xg_last_sb_pos): New structure.
12410 (handle_fixed_child): New function.
12411 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
12412 and force a redraw on them.
12413 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
12414 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
12415 so we can avoid unneeded redraws.
12416 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
12417 and force a redraw on the scroll bar.
12418 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
12419 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 12420 (xg_frame_cleared): New function.
cea9be54 12421
20b853f3
KH
124222003-03-13 Kenichi Handa <handa@m17n.org>
12423
12424 * coding.c (Fdetect_coding_region): Fix docstring.
12425 (Fdetect_coding_string): Fix docstring.
12426
7a555aff
AS
124272003-03-13 Andreas Schwab <schwab@suse.de>
12428
25cc0080
AS
12429 * gtkutil.c: Add prototype for create_menus.
12430
30225431
AS
12431 * data.c (long_to_cons): Fix type of top.
12432
12433 * xselect.c (selection_data_to_lisp_data): Use int instead of
12434 long for an integer of size 4.
12435
7a555aff 12436 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 12437 (xg_tool_bar_help_callback): Likewise.
7a555aff 12438
a3e4741f
AS
124392003-03-12 Andreas Schwab <schwab@suse.de>
12440
12441 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
12442
9668be7c
KS
124432003-03-12 Kim F. Storm <storm@cua.dk>
12444
03eb5fab 12445 The following changes consolidate the fringe handling from
9668be7c 12446 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 12447
9668be7c
KS
12448 * xdisp.c: Consolidate fringe handling code here.
12449 (left_bits, right_bits, continued_bits, continuation_bits)
12450 (ov_bits, zv_bits): Define fringe bitmaps.
12451 (fringe_bitmaps): New array holding fringe bitmaps.
12452 (draw_fringe_bitmap): Draw a specific bitmap; call display
12453 specific drawing routine via rif->draw_fringe_bitmap.
12454 (draw_row_fringe_bitmaps): Generic replacement for
12455 x_draw_row_fringe_bitmaps; all callers changed.
12456 (compute_fringe_widths): Generic replacement for
12457 x_compute_fringe_widths; all callers changed.
12458
12459 * dispextern.h (enum fringe_bitmap_type): Define here.
12460 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
12461 (fringe_bitmaps): Declare extern.
12462 (struct redisplay_interface): New member draw_fringe_bitmap.
12463 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
12464
12465 * xterm.c: Remove generic fringe code.
12466 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
12467 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
12468
12469 * w32term.c: Remove generic fringe code.
12470 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
12471 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 12472
9668be7c
KS
12473 * macterm.c: Remove generic fringe code.
12474 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
12475 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
12476
00a88f32
SM
124772003-03-11 Stefan Monnier <monnier@cs.yale.edu>
12478
12479 * print.c (Fprin1_to_string): Return unibyte string if possible.
12480
1d1de695
DK
124812003-03-09 David Kastrup <dak@gnu.org>
12482
12483 * process.c (read_process_output): We have allocated enough space
12484 for readmax and carryover, so actually use the alloted space.
12485
257f40f2
JD
124862003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12487
12488 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
12489 toolkit scrollbar click.
12490
12491 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
12492 for USE_GTK.
12493 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
12494 also.
1d1c7e75 12495 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 12496 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 12497
78819ebb 12498 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
12499
12500 * gtkutil.c (xg_get_scroll_id_for_window): New function.
12501 (xg_tool_bar_item_expose_callback): New function.
12502 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
12503 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
12504 on the tool bar widget.
12505 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
12506 to expose on the tool bar item widgets.
12507
15213141
JD
125082003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12509
26b74a0b 12510 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 12511 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
12512 deleted from the image cache).
12513
15213141
JD
12514 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
12515 the event isn't for a frame (i.e. for dialogs).
12516
20b853f3 125172003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
12518
12519 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
12520 composition components reaches the limit, terminate composing.
12521 (COMPOSITION_OK): New macro.
00a88f32 12522 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
12523 composition is found.
12524 (coding_restore_composition): Adjust the number of composition
12525 components if it is not sane.
12526
c9029fe5
JB
125272003-03-06 Juanma Barranquero <lektu@terra.es>
12528
12529 * w32term.h (struct w32_display_info): Add xrdb member to support
12530 passing resources via -xrm on Windows.
12531
12532 * w32term.c (w32_make_rdb): New function.
12533 (w32_term_init): Use it to initialize xrdb member of w32_display_info
12534 struct. Delete leftover code.
12535
12536 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
12537 for resources passed on the command line.
12538
12539 * w32reg.c (w32_get_rdb_resource): New function.
12540 (x_get_string_resource): Use it, so resources passed with -xrm
12541 supercede the ones in the registry.
12542
9d00001f
JD
125432003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12544
12545 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
12546 instead of x_top_window_to_frame.
12547
ca2417b9
JD
125482003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12549
12550 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
12551 when restarting Emacs.
12552
5b20caf0
RS
125532003-03-03 Richard M. Stallman <rms@gnu.org>
12554
12555 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
12556 to run kill-buffer-query-functions.
12557 (Qkill_buffer_query_functions): New var.
12558 (syms_of_buffer): Init and staticpro it.
12559
58e91b77
JD
125602003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12561
12562 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
12563
932357b4
KS
125642003-02-25 Kim F. Storm <storm@cua.dk>
12565
12566 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
12567 If centering point failed to make whole line visible and vscroll
12568 is non-zero, disable vscroll and try centering point again.
12569
12570 * lread.c (read1): Accept `single space' syntax like (? x).
12571
bb8db7e1
JD
125722003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12573
12574 * keyboard.c (cancel_hourglass_unwind): Surround with
12575 #ifdef HAVE_X_WINDOWS
12576
47d77aab
KH
125772003-02-25 Kenichi Handa <handa@m17n.org>
12578
12579 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
12580 process only when "subprocesses" is defined.
12581
6a097c0c
SM
125822003-02-24 Stefan Monnier <monnier@cs.yale.edu>
12583
12584 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
12585
0b063c27
JB
125862003-02-24 Juanma Barranquero <lektu@terra.es>
12587
d1135afc
JB
12588 * callint.c (fix_command): Declare as static void and move before
12589 Fcall_interactively.
12590
0b063c27
JB
12591 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
12592 (syms_of_xdisp): Don't initialize Qwhen.
12593
0af912f0
JD
125942003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12595
12596 * keyboard.c (cancel_hourglass_unwind): New function.
12597 (command_loop_1): Cancel hourglass with unwind-protect.
12598
120d0a23
RS
125992003-02-23 Richard M. Stallman <rms@gnu.org>
12600
12601 * callint.c (fix_command): New subroutine, from Fcall_interactively.
12602 Detect (when ... (region-beginning)) etc.
12603 (Fcall_interactively): Call fix_command.
12604 (Qif, Qwhen): New variables.
12605 (syms_of_callint): Init and staticpro them.
0b063c27 12606
120d0a23
RS
12607 * regex.c (print_partial_compiled_pattern): Output to stderr.
12608
4ece81a6
KG
126092003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
12610
12611 * dired.c (directory_files_internal): Don't expand directory.
12612 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
12613 instead. From Lars Hansen <larsh@math.ku.dk>.
12614
e52bd6b7
SM
126152003-02-22 Stefan Monnier <monnier@cs.yale.edu>
12616
12617 * fns.c (string_to_multibyte): Remove unused var i.
12618 (Flanginfo): Fix int/Lisp_Object mixup.
12619 (void_call2): New fun.
12620 (Fmap_char_table): Use it in place of call2.
12621
12622 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
12623
12624 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
12625
12626 * keymap.c (copy_keymap_1): Make it static.
12627
12628 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
12629
c33ef7c4
JB
126302003-02-22 David Ponce <david@dponce.com>
12631
12632 * lread.c (Fload): Don't check STRING_MULTIBYTE.
12633
16782258
JD
126342003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12635
12636 * process.h: Removed subtty field from struct Lisp_Process.
12637
12638 * process.c (create_process): Remove setting of subtty.
12639 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
12640 (Fprocess_running_child_p, process_send_signal):
12641 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
12642 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
12643
3abeca61
KG
126442003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
12645
12646 * keymap.c (Fdefine_key): Doc fix.
12647
92a8ce63
JB
126482003-02-21 Juanma Barranquero <lektu@terra.es>
12649
12650 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
12651
12652 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
12653 POLLING_PROBLEM_IN_SELECT.
12654
12655 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
12656 Delete #undef of POLLING_PROBLEM_IN_SELECT.
12657
12658 * s/hpux10-20.h: New file.
12659
e52bd6b7
SM
12660 * process.c (wait_reading_process_input):
12661 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 12662
20f1ef2e
KH
126632003-02-20 Kenichi Handa <handa@m17n.org>
12664
32d0a9dc
KH
12665 * fontset.c (check_fontset_name): If NAME is nil, return the
12666 default fontset.
12667 (override_font_info): New function.
e52bd6b7 12668 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
12669 (Ffontset_info): If FONTSET is not the default fontset, merge
12670 FONTSET onto the copy of the default fontset, and work on that
12671 copy. Document that NAME nil means the default fontset.
12672 (Ffontset_font): Document that NAME nil means the default fontset.
12673
20f1ef2e
KH
12674 * process.c (setup_process_coding_systems): If the process's
12675 in/out descriptor is -1, do nothing.
12676
77d1daf2
AS
126772003-02-19 Andreas Schwab <schwab@suse.de>
12678
e52bd6b7
SM
12679 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
12680 Add prototypes.
77d1daf2 12681
f9a45bb3
KH
126822003-02-19 Kenichi Handa <handa@m17n.org>
12683
12684 * xfaces.c (try_alternative_families): Try all scalable fonts if
12685 Vscalable_fonts_allowed is not Qt.
12686
72ecb43c
JD
126872003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12688
12689 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
12690
ee5be7c3
JD
126912003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12692
12693 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
12694 names.
12695
12696 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 12697 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
12698 x_face_list_fonts.
12699 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
12700 (Fx_list_fonts): Set maxnames to -1 to get all font names.
12701
4cd519a7
KS
127022003-02-18 Kim F. Storm <storm@cua.dk>
12703
068f9882
KS
12704 * lread.c (read1): Fix last change.
12705 "`" is not always special. Allow "?" after a character constant.
4cd519a7 12706
7290a344
AC
127072003-02-18 Andrew Choi <akochoi@shaw.ca>
12708
12709 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
12710
1f7fa69b
AS
127112003-02-18 Andreas Schwab <schwab@suse.de>
12712
12713 * window.c (window_scroll_pixel_based): Move outside a
12714 multi-glyph character before setting new window start.
12715
12716 * xdisp.c (in_display_vector_p): New function.
12717 * dispextern.h (in_display_vector_p): Declare.
12718
23e21195
KS
127192003-02-18 Kim F. Storm <storm@cua.dk>
12720
12721 * lread.c (read1): Fix and relax read syntax.
12722 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
12723 Only recognize "," after dotted-pair dot if inside backquote.
12724 Never include "`" or "," (inside backquote) in a symbol.
12725 Allow dotted-pair dot after a character constant.
12726 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 12727
f098b121
JD
127282003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12729
12730 * gtkutil.c (xg_tool_bar_expose_callback): New function.
12731 (xg_create_tool_bar): Force style of tool bar to be horizontal with
12732 icons. Set name of tool bar to emacs-toolbar.
12733 (update_frame_tool_bar): Connect expose event to
12734 xg_tool_bar_expose_callback.
12735
63020c46
RS
127362003-02-17 Richard M. Stallman <rms@gnu.org>
12737
12738 * keyboard.c (this_command_key_count_reset): New variable.
12739 Initiatize to 0 where this_command_key_count is set.
12740 (read_char): Save and restore this_command_key_count_reset
12741 around input method code.
12742 (read_char): If this_command_key_count_reset, echo reread commands.
12743 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
12744
fb4452cc
KH
127452003-02-17 Kenichi Handa <handa@m17n.org>
12746
12747 * fns.c (string_to_multibyte): Always return a multibyte string.
12748
bd11cc09
JR
127492003-02-16 Jason Rumney <jasonr@gnu.org>
12750
e52bd6b7
SM
12751 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
12752 Negative max_fonts parameter means list all.
bd11cc09 12753
4cdf4bde
DL
127542003-02-14 Dave Love <fx@gnu.org>
12755
12756 * fns.c (Flanginfo): Doc fix.
12757
023b93f6
KS
127582003-02-13 Kim F. Storm <storm@cua.dk>
12759
37cd4238
KS
12760 * lread.c (read_escape): Interpret \s as a SPACE character, except
12761 for \s-X in a character constant which still is the super modifier.
12762 (read1): Signal an `invalid read syntax' error if a character
12763 constant is immediately followed by a digit or symbol character.
12764
140a6b7e
KS
12765 * search.c (Fmatch_data): Doc fix. Explicitly state that
12766 match-data is undefined if last search failed.
12767
3419757d 12768 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
12769 All uses changed.
12770
7d5c86e5
JB
127712003-02-12 Juanma Barranquero <lektu@terra.es>
12772
12773 * eval.c (Fdefmacro): Fix typo.
12774
295fff2c
KS
127752003-02-12 Kim F. Storm <storm@cua.dk>
12776
12777 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
12778 macro is a string, convert meta modifiers in string when copying
12779 the string into a vector.
12780
60f3202d
KS
127812003-02-11 Kim F. Storm <storm@cua.dk>
12782
12783 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
12784
61cb0b53
KH
127852003-02-11 Kenichi Handa <handa@m17n.org>
12786
12787 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
12788
7392e23c
KS
127892003-02-10 Kim F. Storm <storm@cua.dk>
12790
12791 * process.c: Doc fixes.
12792 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
12793
ce4254bd
KH
127942003-02-10 Kenichi Handa <handa@m17n.org>
12795
9c7a329a
KH
12796 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
12797
ce4254bd
KH
12798 * process.c (QCfilter_multibyte): New variable.
12799 (setup_process_coding_systems): New function.
e52bd6b7
SM
12800 (Fset_process_buffer, Fset_process_filter):
12801 Call setup_process_coding_systems.
ce4254bd
KH
12802 (Fstart_process): Initialize the member `filter_multibyte' of
12803 struct Lisp_Process.
12804 (create_process): Call setup_process_coding_systems.
12805 (Fmake_network_process): New keyward `:filter-multibyte'.
12806 Initialize the member `filter_multibyte' of struct Lisp_Process.
12807 Call setup_process_coding_systems.
12808 (server_accept_connection): Call setup_process_coding_systems.
12809 (read_process_output): If the process has a filter, decide the
12810 multibyteness of a string to given to the filter by
12811 `filter_multibyte' member of the process. If the process doesn't
12812 have a filter and the result of conversion is unibyte, use
12813 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
12814 multibyte form.
12815 (Fset_process_coding_system): Call setup_process_coding_systems.
12816 (Fset_process_filter_multibyte): New function.
12817 (Fprocess_filter_multibyte_p): New function.
12818 (syms_of_process): Intern and staticpro QCfilter_multibyte.
12819 Defsubr Sset_process_filter_multibyte and
12820 Sprocess_filter_multibyte_p.
12821
12822 * process.h (struct Lisp_Process): New member filter_multibyte.
12823
12824 * lisp.h (setup_process_coding_systems): Add prototype.
12825
12826 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
12827 process, update coding systems for the process.
12828
b08d5f59
KH
128292003-02-09 Kenichi Handa <handa@m17n.org>
12830
12831 * fns.c (string_to_multibyte): New function.
12832 (Fstring_to_multibyte): New function.
12833 (syms_of_fns): Defsubr it.
12834
0dfd93c0
AS
128352003-02-08 Andreas Schwab <schwab@suse.de>
12836
12837 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
12838 instead of the substitution.
12839
7b76ca1c
JD
128402003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12841
12842 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
12843
12844 * xmenu.c (menu_position_func): Adjust menu popup position so that
12845 the menu is fully visible.
7b76ca1c 12846
2436a4e4
JD
128472003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12848
12849 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
12850 (x_make_frame_invisible, x_wm_set_icon_position):
12851 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
12852
12853 * xfns.c (x_set_name, x_set_title): Ditto.
12854
37d1e680
RS
128552003-02-04 Richard M. Stallman <rms@gnu.org>
12856
12857 * keyboard.c (echo_now): Update before_command_echo_length.
12858 (Freset_this_command_lengths): Reset this_command_key_count etc.
12859 immediately rather than arranging to do it later.
12860 (before_command_key_count_1, before_command_echo_length_1)
12861 (before_command_restore_flag): Vars deleted.
12862 (add_command_key): Don't handle before_command_restore_flag.
12863 (read_char, record_menu_key): Don't update before_command_key_count or
12864 before_command_echo_length.
12865 (read_char): Don't handle before_command_restore_flag.
12866
12867 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
12868 in direct-output clauses if it wouldn't be called in the ordinary case.
12869
578846a3
KS
128702003-02-04 Kim F. Storm <storm@cua.dk>
12871
12872 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
12873
49853a4d
JD
128742003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12875
12876 * gtkutil.c (remove_from_container): Copying list is not needed.
12877 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
12878 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
12879 on list returned from gtk_container_get_children to avoid memory leak.
12880
8b53dc06
JR
128812003-02-01 Jason Rumney <jasonr@gnu.org>
12882
5d54d177
JR
12883 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
12884 local malloc.
12885 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
12886 definitions in xpm.h.
12887 (init_xpm_functions): New function.
f63fd14e 12888 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
12889 (init_external_image_libraries): Try to load libXpm.dll.
12890
8b53dc06
JR
12891 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
12892 timestamp.
12893
b222e415
DL
128942003-01-31 Dave Love <fx@gnu.org>
12895
12896 * syntax.c (Fskip_chars_forward)
12897 (open-paren-in-column-0-is-defun-start): Doc fix.
12898
c60ee5e7
JB
128992003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
12900
12901 * fileio.c: Support // at start of name for Cygwin (just added proper
12902 preprocessor tests).
12903
12904 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
12905
12906 * Makefile.in: Use @EXEEXT@ for Cygwin.
12907
12908 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
12909
12910 * s/cygwin.h: Added for Cygwin port.
12911
53b37591
JB
129122003-01-31 Juanma Barranquero <lektu@terra.es>
12913
12914 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
12915 when including gif_lib.h.
fe929957 12916 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
12917 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
12918 Windows. Disable color table lookups. Call library functions
53b37591 12919 through pointers determined at runtime.
fe929957
JB
12920 (init_external_image_libraries): Try to load libungif.dll and
12921 libtiff.dll.
53b37591 12922
45415a8f
KH
129232003-01-31 Kenichi Handa <handa@m17n.org>
12924
12925 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 12926 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 12927
a97e4138
JD
129282003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12929
e52bd6b7 12930 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 12931
6eed9bed
DL
129322003-01-30 Dave Love <fx@gnu.org>
12933
12934 * alloc.c (Vgc_elapsed, gcs_done): New variables.
12935 (Fgarbage_collect): Use them.
12936 (init_alloc, syms_of_alloc): Set them up.
12937
100dcd40
JB
129382003-01-30 Juanma Barranquero <lektu@terra.es>
12939
12940 * w32fns.c (init_external_image_libraries): Add missing operator.
12941
fbd852af
JR
129422003-01-29 Jason Rumney <jasonr@gnu.org>
12943
12944 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
12945 an alternative name for jpeg.dll.
12946
8a2d8020
KH
129472003-01-29 Kenichi Handa <handa@m17n.org>
12948
12949 * xdisp.c (set_cursor_from_row): Pay attention to string display
12950 properties.
12951
058c18c7
AC
129522003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
12953
12954 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
12955 <escape>.
12956 (keycode_to_xkeysym_table): Reformat and add more comments.
12957 (XTread_socket): Drop special case for backspace.
12958
385f11cf
AC
129592003-01-28 Andrew Choi <akochoi@shaw.ca>
12960
12961 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
12962 values in old-style RGB specs.
12963
c922a224
JB
129642003-01-27 Juanma Barranquero <lektu@terra.es>
12965
12966 * w32fns.c (init_external_image_libraries): Try alternate names for the
12967 jpeg dll.
12968
0a1d6de0
JD
129692003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12970
12971 * gtkutil.c (create_dialog, xg_separator_p)
12972 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
12973 before calling strcmp or strlen.
12974
a97e4138 129752003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
12976
12977 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
12978 and handle image load failure.
12979
28908312
JR
129802003-01-26 Jason Rumney <jasonr@gnu.org>
12981
12982 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
12983 New functions.
f63fd14e
JB
12984 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
12985 Disable color table lookups. Call jpeg library functions
28908312
JR
12986 through pointers determined at runtime.
12987 (init_external_image_libraries): Try to load jpeg.dll.
12988
84e47416
RS
129892003-01-25 Richard M. Stallman <rms@gnu.org>
12990
12991 * lisp.h: Declare format2 instead of format1.
12992
12993 * fileio.c (barf_or_query_if_file_exists):
12994 Call format2 instead of format1.
12995
12996 * editfns.c (format2): New function, replaces format1
12997 but takes exactly two Lisp Objects as format args.
12998
12999 * buffer.c (Fkill_buffer): Call format2 instead of format1.
13000
a97e4138 130012003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
13002
13003 * xterm.h: Change to return value of x_dispatch_event to int.
13004
13005 * xterm.c (x_filter_event): New function.
13006 (event_handler_gdk, XTread_socket): Call x_filter_event.
13007 (x_dispatch_event): Change to return value of finish.
13008 (event_handler_gdk): Use return value from x_dispatch_event.
13009
13010 * xfns.c (x_window): Call create_frame_xic for GTK version to
13011 initialize input methods.
13012
13013 * gtkutil.h: Add (void) prototypes.
13014
13015 * gtkutil.c (create_menus): Remove code that puts the help menu to
13016 the right.
13017
54eefef1
JR
130182003-01-25 Jason Rumney <jasonr@gnu.org>
13019
13020 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
13021 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
13022 (png_load): Adjust colors for Windows. Use Windows
13023 bitmaps. Disable color table lookups.
c262430d
JR
13024 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
13025 (init_png_functions): New function.
13026 (png_read_from_memory, png_load): Call png library functions
13027 through pointers determined at runtime.
13028 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
13029 (init_external_image_libraries): New function.
13030 (init_xfns): Call it.
54eefef1 13031
1a9e275b
AS
130322003-01-24 Andreas Schwab <schwab@suse.de>
13033
13034 * minibuf.c (Fminibuffer_message): Verify type of parameter.
13035
a97e4138 130362003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
13037
13038 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
13039 of static initializer.
13040
422eec7e
DL
130412003-01-24 Dave Love <fx@gnu.org>
13042
13043 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
13044 architectures.
13045
13046 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
13047 Use __alignof__.
13048
2a026b04
KH
130492003-01-24 Kenichi Handa <handa@m17n.org>
13050
13051 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 13052 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
13053 (command_loop_1): Call adjust_point_for_property with proper
13054 second arg.
13055
a18bb28d
JR
130562003-01-22 Jason Rumney <jasonr@gnu.org>
13057
13058 Sync changes with xterm.c and xfns.c.
13059
13060 * w32term.c (x_draw_glyph_string_foreground)
13061 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13062
13063 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
13064 phys_cursor's hpos is overwritten. This is still not completely
13065 correct, as it doesn't really make sense to use hpos at all to
13066 get the cursor glyph (as that is relative to the width of the
13067 characters on the line, which may have changed during the update).
13068
13069 * w32term.c (notice_overwritten_cursor): Handle the special case
13070 of the cursor being in the first blank non-text line at the
13071 end of a window.
13072
13073 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
13074 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
13075 Compute from the x position returned by x_draw_glyphs.
13076
13077 (x_display_and_set_cursor): Don't set phys_cursor_width here,
13078 except for NO_CURSOR and system caret, to make phys_cursor_width
13079 contain what its name suggests.
13080 (notice_overwritten_cursor): Consider the cursor image erased if
13081 the output area intersects the cursor image in y-direction.
13082
6a097c0c
SM
13083 * w32term.c (note_mode_line_or_margin_highlight): Rename from
13084 note_mode_line_highlight and extend.
a18bb28d
JR
13085
13086 * w32term.c (last_window): New variable.
13087 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
13088 (note_mouse_movement): Remove reimplemented code in #if 0.
13089
13090 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
13091 not update_mode_lines, and always set it to 1.
13092
ac6e47ef
JR
130932003-01-21 Jason Rumney <jasonr@gnu.org>
13094
13095 * w32fns.c (IDC_HAND): Define it if system headers don't.
13096
130972003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13098
13099 * w32term.h (struct w32_output): New member hand_cursor.
13100 (WM_EMACS_SETCURSOR): New message definition.
13101
13102 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
13103 function w32_define_cursor.
13104 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
13105 position, change member name output_data.x to output_data.w32 and
13106 add function w32_define_cursor.
13107 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
13108 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
13109 (w32_initialize_display_info):
13110 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
13111
13112 * w32fns.c (Vx_hand_shape): New variable.
13113 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
13114 WM_EMACS_SETCURSOR.
13115 (x-create-frame): Setup Cursor types.
13116
ceb39a17
JB
131172003-01-21 David Ponce <david@dponce.com>
13118
ac6e47ef 13119 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
13120 ccl->reg[2] to -1 before calling ccl_driver.
13121 (Sync. with xterm.c x_encode_char change by Kenichi Handa
13122 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
13123 (w32_draw_relief_rect): Declare all args.
13124 (w32_define_cursor): New.
13125
13126 * w32fns.c (w32_load_cursor): New function.
13127 (w32_init_class): Use it.
13128 (x_put_x_image): Declare all args.
13129
b6189c3b 131302003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
13131
13132 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
13133
a97e4138 131342003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
13135
13136 * gtkutil.c: Must include stdio.h before termhooks.h
13137
83fc9c63
DL
131382003-01-21 Dave Love <fx@gnu.org>
13139
13140 * alloc.c (Fgc_status): Print zombie list.
13141 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
13142 Fix assignment of zombies.
13143 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
13144 Don't take car of non-cons.
13145
13146 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13147
13148 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
13149
fe04b8c8
JR
131502003-01-20 David Ponce <david@dponce.com>
13151
13152 * w32menu.c (digest_single_submenu): Declare all args.
13153
13154 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
13155 changes in xmenu.c:
13156
13157 (parse_single_submenu): Use individual keymap's prompt
13158 string as pane name, if there is one.
13159 (set_frame_menubar): Save menu_items_n_panes from each call to
13160 parse_single_submenu and use it when calling digest_single_submenu.
13161
539e69a9
ST
131622003-01-20 Steven Tamm <steventamm@mac.com>
13163
7e26f91b 13164 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
13165 before sending a scroll-wheel event.
13166
675d000f
RS
131672003-01-20 Richard M. Stallman <rms@gnu.org>
13168
13169 * xdisp.c (redisplay_window): If mini window's buffer is not
13170 a minibuffer, then redisplay it like other windows.
13171
a97e4138 131722003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
13173
13174 * gtkutil.c (xg_create_frame_widgets): Check if there is an
13175 external tool bar before setting tool bar height.
13176
048addec
JD
131772003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13178
13179 * xterm.c (handle_one_xevent): Surround popup_activated
13180 with #ifdef:s for non-toolkit version.
13181
13182 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
13183 (gtkutil.o): New file.
13184 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
13185 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
13186
13187 * gtkutil.c: New file for GTK version.
13188
13189 * gtkutil.h: New file for GTK version.
13190
13191 * xterm.h: Add xt_or_gtk_widget.
13192 Include gtk files for USE_GTK.
13193 (struct x_output): Add toolbar_height.
13194 (struct x_output): Add GTK widgets and Gdk size_hints.
13195 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
13196 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
13197 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
13198
13199 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 13200 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
13201 (note_mouse_highlight): Check popup_activated for USE_GTK.
13202 (xt_action_hook): Don't compile if USE_GTK.
13203 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
13204 (xg_scroll_callback): New function.
13205 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
13206 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
13207 for USE_GTK.
13208 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
13209 xg_show_scroll_bar for USE_GTK.
13210 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
13211 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
13212 (event_handler_gdk): New function for USE_GTK.
13213 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
13214 (handle_one_xevent): Make sure widget is mapped before
13215 calling x_real_positions for USE_GTK.
13216 (XTread_socket): Add GTK event loop for USE_GTK.
13217 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
13218 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
13219 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
13220 (x_iconify_frame): Add code for USE_GTK.
13221 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
13222 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
13223 is in gtkutil.c.
13224 (x_term_init): Add initialization for GTK.
13225 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
13226
13227 * xmenu.c: Include gtkutil.h for USE_GTK.
13228 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
13229 (single_menu_item, single_menu_item, Fx_popup_dialog):
13230 Check for USE_GTK.
048addec
JD
13231 (popup_widget_loop): New function for USE_GTK.
13232 (x_activate_menubar): Add code for USE_GTK.
13233 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
13234 (menu_highlight_callback, menubar_selection_callback):
13235 Add USE_GTK versions.
048addec
JD
13236 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
13237 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
13238 (free_frame_menubar): Only compile if not USE_GTK. GTK version
13239 is in gtkutil.c.
13240 (popup_selection_callback): New version for USE_GTK.
13241 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 13242 one USE_X_TOOLKIT version.
048addec
JD
13243 (xmenu_show): Call create_and_show_popup_menu.
13244 (dialog_selection_callback): New version for USE_GTK.
13245 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 13246 one USE_X_TOOLKIT version.
048addec
JD
13247 (xdialog_show): Call create_and_show_dialog.
13248
13249 * xfns.c: Include gtkutil for USE_GTK.
13250 (x_window_to_frame, x_any_window_to_frame)
13251 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13252 (x_top_window_to_frame): Add code for USE_GTK.
13253 (x_set_background_color): Call xg_set_background_color for GTK.
13254 (x_set_menu_bar_lines): Check for USE_GTK.
13255 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
13256 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
13257 (x_window): Call xg_create_frame_widgets for USE_GTK.
13258 (Fx_create_frame): Check for USE_GTK
13259 (Fx_file_dialog): New implementation for USE_GTK.
13260
13261 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
13262 (update_menu_bar): Add check for USE_GTK.
13263 (update_tool_bar): Add check for USE_GTK and external tool bar.
13264 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
13265 (redisplay_internal): Add check for USE_GTK and popup_activated.
13266 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
13267 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
13268 (display_menu_bar): Add check for USE_GTK
13269
78819ebb 13270 * lisp.h (Vx_resource_name): Declare extern.
048addec 13271
a64387ee 13272 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
13273 for USE_GTK.
13274 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
13275
13276 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
13277 (FRAME_EXTERNAL_TOOL_BAR): New macro.
13278 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
13279
13280 * fileio.c (Fread_file_name): Add check for USE_GTK.
13281
6bdb309a
SM
13282 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
13283 Add check for USE_GTK.
048addec
JD
13284
13285 * config.in: Added HAVE_GTK
13286
13287 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
13288
132892003-01-18 Stefan Monnier <monnier@cs.yale.edu>
13290
13291 * charset.h (Funibyte_char_to_multibyte): Export.
13292
132932003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13294
13295 * xmenu.c (mouse_position_for_popup): New function.
13296 (Fx_popup_menu): Call mouse_position_for_popup for X and
13297 mouse_position_hook for others.
13298
132992003-01-17 Kim F. Storm <storm@cua.dk>
13300
13301 * editfns.c (Finsert): Mention `string-make-multibyte' and
13302 `string-as-multibyte' in doc string.
13303
133042003-01-17 Kenichi Handa <handa@m17n.org>
13305
13306 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 13307
048addec
JD
13308 * editfns.c (Fformat): Convert an unibyte char argument that is
13309 formatted by "%c" to multibyte if the total result must be a
13310 multibyte string.
cd7df9c0 13311
048addec 133122003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 13313
048addec
JD
13314 * process.c (set-process-filter): Document unibyte/multibyte-ness
13315 of string argument.
56210ecd 13316
048addec 133172003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 13318
048addec 13319 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 13320
048addec
JD
13321 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
13322 (re_search_2): Likewise.
6df8b9fe 13323
048addec 133242003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 13325
048addec
JD
13326 * xdisp.c (message_dolog): Fix bug of the case that *Message*
13327 buffer is unibyte.
292ddc31 13328
048addec 133292003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 13330
048addec 13331 * fns.c (Fsubstring): Clarify doc string.
292ddc31 13332
048addec
JD
13333 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
13334 (Fprevious_char_property_change)
13335 (Fnext_single_char_property_change)
13336 (Fprevious_single_char_property_change, Fnext_property_change)
13337 (Fnext_single_property_change, Fprevious_property_change)
13338 (Fprevious_single_property_change, Fadd_text_properties)
13339 (Fput_text_property, Fset_text_properties)
13340 (Fremove_text_properties, Fremove_list_of_text_properties)
13341 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 13342
048addec 133432003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 13344
048addec
JD
13345 * process.h (struct Lisp_Process): New member plist replaces old
13346 member private_vars. All uses changed.
63e4e4c6 13347
048addec 13348 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 13349 (QCplist): Rename from QCvars. Change all uses.
048addec 13350 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 13351 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 13352 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 13353 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 13354
048addec 133552003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 13356
6bdb309a 13357 * m/delta.h: Remove (obsolete).
e833850f 13358
048addec 133592003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 13360
048addec
JD
13361 * fileio.c (Fdelete_directory, Fdelete_file): Document the
13362 behaviour in front of symlinks.
13363 (Fdelete_file): Raise an error on directories.
817cb127 13364
048addec 133652003-01-13 Dave Love <fx@gnu.org>
817cb127 13366
048addec 13367 * fns.c (Freverse): Use QUIT.
3e8cf2ea 13368
048addec 133692003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 13370
048addec
JD
13371 * minibuf.c (minibuffer_completion_contents):
13372 Error if point is inside prompt.
3e8cf2ea 13373
048addec
JD
13374 * keyboard.c (command_loop_1): Don't redisplay directly
13375 if there's a post-command-hook.
3e8cf2ea 13376
048addec
JD
13377 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
13378 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 13379
048addec 133802003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 13381
048addec 13382 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 13383
048addec
JD
13384 * process.c (QCvars): New variable.
13385 (syms_of_process): Intern and staticpro it.
13386 (Fset_process_contact): Removed function.
13387 (Fprocess_variable, Fset_process_variable): New functions.
13388 (syms_of_process): Defsubr them.
13389 (Fstart_process): Initialize private_vars plist to nil.
13390 (Fmake_network_process): New arg :vars to setup the private
13391 variables for new network process.
13392 (server_accept_connection): Copy server's private variables to
13393 client process.
2c10f029 13394
048addec
JD
13395 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
13396 crashes). Code rewritten and simplified. Now directly aligns the
13397 pointer and recalculates pure_bytes_used, rather than aligning the
13398 size and adjusting the pointer.
b8a76c6c 13399
048addec 134002003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 13401
048addec
JD
13402 * process.c (Fset_process_contact): New function.
13403 (syms_of_process): defsubr it.
13404 (make-network-process): Update doc.
3a8d0899 13405
048addec 134062003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 13407
048addec
JD
13408 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
13409 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 13410
048addec 134112003-01-10 Dave Love <fx@gnu.org>
4abc7470 13412
048addec 13413 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 13414
048addec 134152003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 13416
048addec
JD
13417 * process.c (Fmake_network_process): Convert new port number
13418 to host byte order for `:service t' case. From Mario Lang.
bf338245 13419
048addec 134202003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 13421
048addec
JD
13422 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
13423 instead of XtAppProcessEvent.
bf338245 13424
048addec
JD
13425 * xterm.c (handle_one_xevent): New function.
13426 (x_dispatch_event): New function.
13427 (XTread_socket): Call handle_one_xevent.
bf338245 13428
048addec 13429 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 13430
048addec
JD
13431 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
13432 call XQueryPointer to get coordinates.
13433 (popup_get_selection): Do not set popup_activated_flag to zero,
13434 let popup_deactivate_callback do that. Needed for Motif.
13435 Call x_dispatch_event instead of XtDispatchEvent.
13436 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 13437
048addec 134382003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 13439
6bdb309a 13440 * process.c (server_accept_connection): Fix recording of new
048addec
JD
13441 connection's local address in :local property of contact info.
13442 (Fmake_network_process): Record local network address for new
13443 client processes in :local property of contact info.
6bdb309a 13444 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 13445
048addec 134462003-01-07 Dave Love <fx@gnu.org>
00e3ab56 13447
048addec 13448 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 13449
048addec 134502003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 13451
048addec 13452 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 13453
048addec
JD
13454 * eval.c (Fuser_variable_p): Doc change. For custom variables,
13455 use the same test as for custom-variable-p.
8c6d74c6 13456
048addec 134572003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 13458
048addec
JD
13459 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
13460 Count LAST_LINE_MISFIT in scroll margin for end of window.
13461 Move label too_near_end before setting SCROLL_MARGIN_POS.
13462 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 13463
048addec
JD
13464 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
13465 scroll_conservatively case. If scrolling that much doesn't change
13466 STARTP, move it down one line.
e833850f 13467
048addec
JD
13468 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
13469 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 13470
048addec
JD
13471 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
13472 selected frame.
8c6d74c6 13473
048addec 13474 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 13475 (syms_of_keymap): Staticpro them.
048addec
JD
13476 (Fapropos_internal): Initialize them and clear them out.
13477 Don't GCPRO them.
8c6d74c6 13478
048addec
JD
13479 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
13480 Doc fixes.
8c6d74c6 13481
048addec
JD
13482 * lisp.h: New misc type Lisp_Save_Value.
13483 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
13484 (XSAVE_VALUE): New macro.
13485 (struct Lisp_Save_Value): New data type.
13486 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 13487 (make_save_value): Declare.
8c6d74c6 13488
048addec 13489 * alloc.c (make_save_value): New function.
8c6d74c6 13490
048addec
JD
13491 * xterm.c (x_catch_errors): Save dpy using make_save_value.
13492 (x_catch_errors_unwind): Call XSync.
8c6d74c6 13493
048addec 134942003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 13495
048addec 13496 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 13497
048addec
JD
13498 * keyboard.c (command_loop_1): Call adjust_point_for_property
13499 in direct action cases for Qforward_char and Qbackward_char.
13500 Set already_adjusted so it won't be done twice.
8c6d74c6 13501
b6189c3b 135022002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 13503
048addec
JD
13504 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
13505 type definition of size_t.
8c609cff 13506
048addec 135072003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 13508
048addec
JD
13509 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
13510 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 13511
048addec 135122002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 13513
048addec
JD
13514 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
13515 to default to t.
fa634a5e 13516
048addec 135172002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 13518
048addec 13519 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 13520
048addec 135212002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 13522
7e26f91b 13523 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
13524 allow building in a different directory than source. Uses some
13525 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 13526
048addec 135272002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 13528
048addec
JD
13529 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
13530 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
13531 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
13532 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 13533
048addec 135342002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 13535
048addec
JD
13536 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
13537 <scroll-down-aggressively>: Doc fix.
2155ecf3 13538
048addec
JD
13539 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
13540 string as pane name, if there is one.
13541 (set_frame_menubar): Save menu_items_n_panes from each call to
13542 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 13543
048addec
JD
13544 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
13545 Don't try to make last line fully visible if it is past end of window.
61f1d295 13546
048addec 135472002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 13548
048addec
JD
13549 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
13550 (mac_menu_show): Add support for hierarchical popup menus.
13551 (add_menu_item): Remove indentation support.
13552 (fill_submenu, fill_menu): Create hierarchical menus
13553 instead of using indentation.
0b17a217 13554
048addec 135552002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 13556
048addec
JD
13557 * xdisp.c (try_cursor_movement): Don't call try_window here.
13558 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 13559
048addec 13560 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 13561
048addec 135622002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 13563
048addec
JD
13564 * macterm.c (XTread_socket): Call KeyTranslate for control and
13565 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 13566 being treated like C-%. Do not look for shift key to deal
048addec 13567 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 13568
048addec 135692002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 13570
048addec
JD
13571 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
13572 If it is non-nil, run timers. Use an unwind-protect to requeue
13573 the events that were read ahead.
13574 (popup_get_selection_unwind): New subroutine.
13575 (popup_get_selection_queue): File-scope variable now holds that queue.
13576 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
13577 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
13578 Use an unwind-protect to pop down the dialog box.
13579 (xdialog_show_unwind): New subroutine implements that.
f02cac82 13580
048addec
JD
13581 * xdisp.c (row_containing_pos): Change exit test using last_y.
13582 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 13583
048addec
JD
13584 * lread.c (load_error_handler): New function.
13585 (Fload): Handle errors in Fsubstitute_in_file_name.
13586 Don't expect Fsignal to return.
f02cac82 13587
048addec
JD
13588 * eval.c: Errors and throws work right with interrupt blocking.
13589 (struct catchtag): New elt interrupt_input_blocked.
13590 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
13591 (internal_catch, Fcondition_case, internal_condition_case)
13592 (internal_condition_case_1, internal_condition_case_2): Save it.
13593 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 13594
048addec 13595 * editfns.c (Fformat): Add parens.
f02cac82 13596
048addec
JD
13597 * dired.c (file_name_completion): Fix that change.
13598 Delete special quit-handling code; just use QUIT.
f02cac82 13599
b6189c3b 136002002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 13601
048addec
JD
13602 * dired.c (file_name_completion): Close directory on error
13603 just as in directory_files_internal.
1a590729 13604
048addec 136052002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 13606
048addec
JD
13607 * window.c (Fset_window_configuration): Set old_point to correct
13608 value when new_current_buffer == current_buffer.
f02cac82 13609
048addec 136102002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 13611
048addec
JD
13612 Revisited my earlier fix for the following entry in etc/PROBLEMS:
13613 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
13614 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 13615
048addec
JD
13616 These changes were in part based upon suggestions made by Peter
13617 'Luna' Runestig [peter@runestig.com].
9785d95b 13618
f4a5a485
SM
13619 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
13620 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
13621 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 13622 global variables.
9785d95b 13623
048addec
JD
13624 * w32.c (globals_of_w32): New function. Used to initialize those
13625 global variables that must always be initialized on startup even
13626 when the global variable initialized is non zero. Its primary
13627 purpose at this time is to set the global variables
13628 g_b_init_is_windows_9x, g_b_init_open_process_token,
13629 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
13630 g_b_init_get_sid_identifier_authority to 0 on startup.
13631 Called from main.
9785d95b 13632
048addec
JD
13633 * w32.c (is_windows_9x): Perform initialization only if
13634 g_b_init_is_windows_9x is equal to 0. On initialization set
13635 g_b_init_is_windows_9x equal to 1.
2308af15 13636
048addec
JD
13637 * w32.c (open_process_token): Perform initialization only if
13638 g_b_init_open_process_token is equal to 0. On initialization set
13639 g_b_init_open_process_token equal to 1.
2308af15 13640
048addec
JD
13641 * w32.c (get_token_information): Perform initialization only if
13642 g_b_init_get_token_information is equal to 0. On initialization
13643 set g_b_init_get_token_information equal to 1.
9785d95b 13644
048addec
JD
13645 * w32.c (lookup_account_sid): Perform initialization only if
13646 g_b_init_lookup_account_sid is equal to 0. On initialization
13647 set g_b_init_lookup_account_sid equal to 1.
9785d95b 13648
048addec
JD
13649 * w32.c (get_sid_identifier_authority): Perform initialization
13650 only if g_b_init_get_sid_identifier_authority is equal to 0.
13651 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 13652
f63fd14e 13653 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
13654 those global variables that must always be initialized on startup
13655 even when the global variable initialized is non zero.
13656 Its primary purpose at this time is to initialize the global variable
13657 track_mouse_event_fn.
9785d95b 13658
a64387ee 13659 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 13660 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 13661
048addec 13662 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 13663
f63fd14e 13664 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
13665 initialize those global variables that must always be initialized
13666 on startup even when the global variable initialized is non zero.
13667 Its primary purpose at this time is to initialize the global
13668 variables get_menu_item_info and set_menu_item_info.
9785d95b 13669
048addec
JD
13670 * w32menu.c (initialize_frame_menubar): Remove initialization of
13671 get_menu_item_info and set_menu_item_info.
9785d95b 13672
048addec 13673 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 13674
048addec
JD
13675 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
13676 Declare them.
9785d95b 13677
048addec
JD
13678 * emacs.c (main): Call globals_of_w32 prior to calling
13679 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
13680 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
13681 is defined.
9785d95b 13682
048addec
JD
13683 * w32term.c (x_update_window_begin): Fix Windows API error
13684 detected by BoundsChecker. Test to determine if
13685 w32_system_caret_hwnd is NULL prior to attempting to use
13686 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 13687
048addec
JD
13688 * w32term.c (x_update_window_end): Fix Windows API error
13689 detected by BoundsChecker. Test to determine if
13690 w32_system_caret_hwnd is NULL prior to attempting to use
13691 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 13692
048addec 136932002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 13694
048addec
JD
13695 * coding.c (coding_system_require_warning): New variable.
13696 (syms_of_coding): DEFVAR it.
b6da19ef 13697
048addec 13698 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 13699
048addec
JD
13700 * fileio.c (choose_write_coding_system): Even if
13701 Vcoding_system_for_write is non-nil, if
13702 coding_system_require_warning is nonzero, call
13703 Vselect_safe_coding_system_function.
bfcf6dbe 13704
048addec 137052002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 13706
048addec
JD
13707 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
13708 (lisp): Add font-core.
2c568af5 13709
048addec 137102002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 13711
048addec
JD
13712 * textprop.c (text_read_only): New arg `propval'.
13713 (get_char_property_and_overlay): Remove unused var `next_overlay'.
13714 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 13715
048addec 137162002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 13717
048addec 13718 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 13719
048addec 137202002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 13721
048addec
JD
13722 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
13723 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
13724 Be more careful about when help_events are generated.
96720f09 13725
048addec 137262002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 13727
048addec
JD
13728 * macterm.c (mac_check_for_quit_char): Correctly set the
13729 modifiers of the event to 0.
13730 * mac.c (sys_select): Duplicate rfds before calling select to
13731 ensure that rfds survive the while loop.
e5ae1c49 13732
048addec 137332002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 13734
048addec
JD
13735 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
13736 row_containing_pos returned NULL.
2eb46b2d 13737
048addec 137382002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 13739
6bdb309a 13740 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 13741 non-blocking.
6bdb309a 13742 (sys_select): Fix sys_select to not use a timeout larger than
048addec 13743 the one given.
b11f1d8a 13744
048addec 137452002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 13746
048addec 13747 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 13748
048addec 137492002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 13750
048addec
JD
13751 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
13752 as the last thing.
a4ac5b17 13753
048addec 137542002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 13755
048addec 13756 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 13757
048addec 137582002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 13759
048addec
JD
13760 * editfns.c (Fformat): Handle precision in string conversion
13761 specifiers like libc functions do (ie, print at most that many
13762 characters).
85cce843 13763
048addec 137642002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 13765
048addec
JD
13766 * xdisp.c (row_containing_pos): Check more carefully
13767 whether charpos is really in the row before returning it.
0d4d26a7 13768
048addec 137692002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 13770
048addec 13771 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 13772
048addec
JD
13773 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
13774 each stack frame. This may change as it could be time consuming.
0d4d26a7 13775
048addec
JD
13776 * macterm.c (mac_check_for_quit_char, quit_char_comp)
13777 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 13778 (mac_initialize): Add code to check for pressing of quit_char
048addec 13779 in the OS event queue.
b11f1d8a 13780
048addec
JD
13781 * mac.c (sys_select): Call mac_check_for_quit_char every second
13782 while blocking on select.
0d4d26a7 13783
048addec
JD
13784 * mac.c (sys_read): Use sys_select to test for input first
13785 before calling read, to allow C-g to break.
9252f7bc 13786
048addec 137872002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 13788
048addec 13789 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 13790
048addec 13791 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 13792
048addec 13793 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 13794
048addec
JD
13795 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
13796 autoload.
9252f7bc 13797
048addec 13798 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 13799
048addec 13800 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 13801
048addec 138022002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 13803
048addec 13804 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 13805
048addec 138062002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 13807
048addec 13808 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 13809
048addec 13810 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 13811
048addec 13812 * alloca.c: Don't use #error.
02d588e2 13813
048addec 138142002-12-03 Dave Love <fx@gnu.org>
02d588e2 13815
048addec
JD
13816 * buffer.c (Qucs_set_table_for_input): New.
13817 (Fget_buffer_create): Use it.
13818 (Qset_buffer_major_mode_hook): Deleted.
13819 (Fset_buffer_major_mode): Revert previous change.
13820 (init_buffer_once): Intern ucs-set-table-for-input.
13821 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
13822 Add &Qucs_set_table_for_input.
451e2697 13823
048addec 138242002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 13825
048addec
JD
13826 * callint.c (Fcall_interactively): Use next_event only if less
13827 than key_count.
72742a99 13828
048addec 138292002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 13830
048addec
JD
13831 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
13832 names to 255 characters.
72742a99 13833
048addec
JD
13834 * macterm.c (XTread_socket): If all frames have been collapsed,
13835 expand the first one before handling drag-and-drop events.
72742a99 13836
048addec
JD
13837 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
13838 which is detected by autoconf.
40e6ff95 13839
048addec 138402002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 13841
048addec
JD
13842 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
13843 offset in two hints table to allow prebinding to be redone and
13844 allow the executable to be stripped.
c02138c6 13845
048addec 138462002-11-29 Dave Love <fx@gnu.org>
c02138c6 13847
048addec
JD
13848 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
13849 already provided.
0e47bbf7 13850
048addec 138512002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 13852
048addec
JD
13853 * xdisp.c (start_display): Check more intelligently for
13854 whether the line is continued.
13855 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 13856
048addec 138572002-11-28 Dave Love <fx@gnu.org>
44129dcb 13858
048addec
JD
13859 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
13860 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 13861
048addec 138622002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 13863
048addec
JD
13864 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
13865 more descriptive error output from lread.c:Fload upon most require
13866 cycles during boostrapping.
1637fd2c 13867
048addec 138682002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 13869
048addec
JD
13870 * fileio.c (Finsert_file_contents): Give a more appropriate error
13871 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 13872
048addec
JD
13873 * dired.c (Ffile_attributes): Don't return negative file sizes for
13874 files bigger than 2Gb when off_t is 32 bit.
540c2788 13875
048addec 138762002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 13877
048addec 13878 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 13879
048addec
JD
13880 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
13881 Test GETPGRP_VOID instead.
13882 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 13883
048addec
JD
13884 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
13885 Don't define.
13886 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 13887
048addec 13888 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 13889
048addec 138902002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 13891
048addec
JD
13892 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
13893 supported.
4042a81a 13894
048addec 138952002-11-25 Dave Love <fx@gnu.org>
4042a81a 13896
048addec 13897 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 13898
048addec 13899 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 13900
048addec 139012002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 13902
048addec 13903 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 13904
048addec 139052002-11-24 Steven Tamm <steventamm@mac.com>
82122254 13906
048addec
JD
13907 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
13908 determine the size of pointers alloced in unexed space instead
13909 of using possibly invalid emacs_zone pointers. This fixes the
13910 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 13911
048addec 139122002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 13913
048addec 13914 * search.c (Fstring_match): Doc fix.
c1ee53bc 13915
048addec
JD
13916 * callint.c (Fcall_interactively): If a command fails because
13917 `*' detects a read-only buffer, but RECORD_FLAG is set,
13918 record it anyway if the args don't actually do tty input.
5598c32e 13919
048addec 139202002-11-22 Dave Love <fx@gnu.org>
5598c32e 13921
048addec 13922 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 13923
048addec
JD
13924 * keyboard.c (interrupt_signal): Provide forward declaration.
13925 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 13926
048addec 13927 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 13928
048addec 139292002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 13930
048addec
JD
13931 * eval.c (interactive_p): Skip any number of bytecode
13932 and special form frames, in any order.
516eea8e 13933
048addec 139342002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 13935
048addec
JD
13936 * w32fns.c (convert_mono_to_color_image): New function.
13937 (xbm_load, xbm_load_image): Use it when foreground or background
13938 is explicitly set.
04dbfa08 13939
048addec 139402002-11-19 Dave Love <fx@gnu.org>
04dbfa08 13941
048addec 13942 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 13943
048addec 139442002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 13945
048addec
JD
13946 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
13947 (XPutPixel): Swap blue and red.
13948 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
13949 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13950 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
13951 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 13952
048addec 139532002-11-18 Dave Love <fx@gnu.org>
d824beee 13954
048addec 13955 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 13956
048addec 13957 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 13958
048addec 13959 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 13960
048addec
JD
13961 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
13962 malloc, realloc, calloc.
d824beee 13963
048addec
JD
13964 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
13965 (bcmp): Don't define.
d824beee 13966
048addec 13967 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 13968
048addec 13969 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 13970
048addec 13971 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 13972
048addec 13973 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 13974
048addec
JD
13975 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
13976 Don't include alloca.h.
d824beee 13977
048addec 13978 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 13979
048addec 13980 * regex.c (_GNU_SOURCE): Don't define.
1998560a 13981
048addec 13982 * process.c (_GNU_SOURCE): Don't define.
1998560a 13983
048addec 13984 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 13985
048addec 139862002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 13987
048addec 13988 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 13989
048addec 139902002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 13991
048addec
JD
13992 * dispextern.h (struct face): Add `overstrike' field.
13993 * xterm.c (x_draw_glyph_string_foreground)
13994 (x_draw_composite_glyph_string_foreground): Implement overstriking.
13995 * xfaces.c (load_face_font): Set `face->overstrike' based on
13996 result from choose_face_font.
13997 (best_matching_font, choose_face_font): Add `needs_overstrike'
13998 argument, and use it to return whether overstriking is desirable
13999 for this face/font combo.
14000 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 14001
048addec 140022002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 14003
048addec
JD
14004 This change is my fix for the following entry in etc/PROBLEMS:
14005 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
14006 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 14007
048addec
JD
14008 * w32.c: Added wrapper functions around the win32 API functions
14009 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
14010 GetSidIdentifierAuthority. These wrapper functions serve two
14011 purposes:
14012 1. They ensure that the wrapped function can never be called
14013 when Emacs is running on an operating system on which they are
14014 not supported (Microsoft Windows 95 / 98 / ME).
14015 2. They call the wrapped functions via function pointers rather
14016 than calling them directly. This avoids taking advantage of the
14017 undocumented fact that although these functions are not supported
14018 in the 9x branch of Microsoft Windows, the functions do exist in
14019 the version of advapi32.dll that is found in the 9x branch of
14020 Microsoft Windows.
f60ae425 14021
6bdb309a 14022 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
14023 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
14024 and GetSidIdentifierAuthority with calls to the newly added
14025 wrapper functions.
f60ae425 14026
048addec
JD
14027 * w32.h: Added extern declarations for the following functions:
14028 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
14029 syms_of_w32menu, and void syms_of_fontset.
f60ae425 14030
6bdb309a 14031 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
14032 function pointer track_mouse_event_fn in the handler for the
14033 WM_SETFOCUS message.
3582b6a3 14034
6bdb309a 14035 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
14036 reinitialize the function pointers set_menu_item_info and
14037 get_menu_item_info.
f60ae425 14038
048addec 140392002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 14040
048addec
JD
14041 * sound.c: Added a partial implementation of play-sound-internal
14042 for Microsoft Windows. Added various #ifdef / #else / #endif
14043 code blocks to separate the code that will compile under
9fed2905 14044 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 14045 Moved several blocks of code around to make this separation of code
9fed2905 14046 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 14047
048addec 14048 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 14049
048addec
JD
14050 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
14051 added support for play-sound-internal under Windows would be
14052 included in the build of Emacs.
517f42a0 14053
048addec 140542002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 14055
048addec 14056 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 14057
048addec 14058 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 14059
048addec 140602002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 14061
048addec
JD
14062 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
14063 (adjust_point_for_property): Move out of display and invisible even if
14064 we were already inside before (in case a property was added while
14065 we weren't looking). Be more careful when handling invisible props.
14066 Skip invisible text as if it really wasn't there at all.
aab83f91 14067
048addec 140682002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 14069
048addec
JD
14070 * w32term.c (x_draw_image_foreground)
14071 (w32_draw_image_foreground_1): Use standard copy and invert
14072 operations to draw images.
aab83f91 14073
048addec
JD
14074 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
14075 depth of 1.
14076 (xbm_read_bitmap_data): Invert bits as xbm is read in.
14077 (XPutPixel): Don't invert bits here.
a4478a76 14078
048addec 140792002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 14080
048addec
JD
14081 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
14082 (w32_draw_image_foreground_1): Handle image masks.
14083 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 14084
048addec
JD
14085 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
14086 (x_from_xcolors): Adjust RGB values for W32.
14087 (image_background, image_background_transparent)
14088 (postprocess_image, x_to_xcolors, x_disable_image)
14089 (x_build_heuristic_mask): Adapt for W32 and enable.
14090 (x_create_x_image_and_pixmap): Mark images with palettes as such.
14091 (xbm_load): Remove unused variable.
03670a65 14092
048addec 140932002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 14094
048addec 14095 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 14096
048addec 140972002-11-14 Dave Love <fx@gnu.org>
59daa29a 14098
048addec 14099 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 14100
048addec
JD
14101 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
14102 * xmenu.c (unuse_menu_items, digest_single_submenu):
14103 * xfns.c (x_put_x_image):
14104 * xdisp.c (message2_nolog, set_message):
14105 * undo.c (record_point):
14106 * terminfo.c (tparam):
14107 * syntax.c (scan_sexps_forward):
14108 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14109 * composite.c (update_compositions):
14110 * cm.c (calccost, cmgoto):
14111 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 14112
048addec 14113 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 14114
048addec
JD
14115 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
14116 Don't declare.
59daa29a 14117
048addec 14118 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 14119
048addec
JD
14120 * fns.c (Fcopy_sequence): Doc fix.
14121 (Fmap_char_table): Cast `call2'.
3947677c 14122
048addec
JD
141232002-11-14 Francesco Potorti` <pot@gnu.org>
14124
14125 * s/sol2-8.h: New file.
14126
141272002-11-14 Kim F. Storm <storm@cua.dk>
14128
14129 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
14130 dependency on `risky-local-variable' and the :propertize form.
14131
141322002-11-12 Stefan Monnier <monnier@cs.yale.edu>
14133
14134 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
14135
14136 * syntax.c (scan_sexps_forward): Undo last patch.
14137 Use a more obvious fix: check eob before updating the syntax table.
14138
141392002-11-09 Stefan Monnier <monnier@cs.yale.edu>
14140
14141 * syntax.c (scan_sexps_forward): Update syntax table before reading
14142 a char rather than after so we don't update the table past eob.
14143
141442002-11-09 Dave Love <fx@gnu.org>
14145
14146 * buffer.c (Fset_buffer_major_mode): Fix last change.
14147
14148 * regex.c (regexec): Fix pmatch declaration.
14149
14150 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
14151
14152 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
14153 to self-inserting characters.
14154 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
14155
14156 * coding.c (Vtranslation_table_for_input): New.
14157 (syms_of_coding): DEFVAR it.
14158
141592002-11-08 Juanma Barranquero <lektu@terra.es>
14160
14161 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
14162 window.
14163
141642002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14165
6bdb309a 14166 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
14167 cp, and i.
14168
141692002-11-06 Dave Love <fx@gnu.org>
14170
14171 * buffer.c (Qset_buffer_major_mode_hook): New.
14172 (Fset_buffer_major_mode): Use it.
14173
141742002-11-06 Richard M. Stallman <rms@gnu.org>
14175
14176 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
14177 and stop_polling.
14178
14179 * process.c (wait_reading_process_input):
14180 Test POLLING_PROBLEM_IN_SELECT, not hpux.
14181 Avoid initialization for auto Lisp_Object var.
14182
14183 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
14184
14185 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
14186
141872002-11-05 Richard M. Stallman <rms@gnu.org>
14188
14189 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
14190
14191 * callint.c (Fcall_interactively): New local filter_specs.
14192 (Fcall_interactively): Check for progn as well as let.
14193 Add a gcpro.
14194 (Qprogn): New variable.
14195 (syms_of_callint): Staticpro and init Qprogn.
14196
141972002-11-04 John Paul Wallington <jpw@shootybangbang.com>
14198
14199 * lread.c (Feval_buffer): Doc fix.
14200
142012002-11-04 Dave Love <fx@gnu.org>
14202
14203 * keyboard.c (read_char): Always translate iff
14204 Vkeyboard_translate_table is a char table and c is valid.
14205
14206 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14207 and fix C types.
14208
142092002-11-03 Stefan Monnier <monnier@cs.yale.edu>
14210
14211 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
14212
14213 * editfns.c (get_pos_property): Don't hardcode Qfield.
14214
14215 * keyboard.c (adjust_point_for_property): Handle `display' prop on
14216 overlays. Also handle `invisible' prop.
14217
142182002-11-02 Stefan Monnier <monnier@cs.yale.edu>
14219
14220 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
14221 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
14222
142232002-11-01 Andreas Schwab <schwab@suse.de>
14224
14225 * editfns.c (Fmessage): Revert last change to properly handle %%.
14226
142272002-11-01 Stefan Monnier <monnier@cs.yale.edu>
14228
14229 * xmenu.c (unuse_menu_items): New fun.
14230 (menu_items_inuse): New var.
14231 (syms_of_xmenu): Initialize it.
14232 (init_menu_items): Use it to detect re-entrance.
14233 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
14234 (Fx_popup_menu): Remove spurious XSETFRAME.
14235
14236 * editfns.c (find_field): Make an exception for nil fields.
14237
142382002-11-01 Dave Love <fx@gnu.org>
14239
14240 * m/gec63.h: Deleted.
14241
142422002-10-31 Dave Love <fx@gnu.org>
14243
14244 * xterm.c (XTread_socket): Fix last change.
14245 (xaw_scroll_callback): Cast call_data to long to avoid warning.
14246
142472002-10-31 Stefan Monnier <monnier@cs.yale.edu>
14248
14249 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
14250
142512002-10-30 Stefan Monnier <monnier@cs.yale.edu>
14252
14253 * editfns.c (overlays_around, get_pos_property): New funs.
14254 (find_field): Use them.
14255 Also be careful not to modify POS before its last use.
14256 (Fmessage): Don't Fformat if there's nothing to format.
14257
142582002-10-30 Dave Love <fx@gnu.org>
14259
14260 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
14261 [HAVE_PTY_H]; Include pty.h.
14262
14263 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
14264
14265 * xterm.c (Qeql): Declare.
14266 (Vx_keysym_table): New.
14267 (syms_of_xterm): Initialize it.
14268 (XTread_socket): Use it. Deal with ASCII keysyms.
14269 (XSetIMValues) [HAVE_X11R6]: Prototype.
14270
14271 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
14272 (lispy_kana_keys): Comment out.
14273 (make_lispy_event) [XK_kana_A]: Comment out.
14274 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
14275 Fix sprintf call.
14276
14277 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
14278 regexp.h change).
14279 (TERMINFO, LIBS_TERMCAP): Define.
14280
14281 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
14282 (bcmp): Define conditional on HAVE_BCMP.
14283 (NO_SIOCTL_H): Don't define.
14284 (TIOCSIGSEND): Don't make conditional on IRIX6.
14285
14286 * s/sol2-5.h: Don't include strings.h.
14287 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
14288
14289 * s/irix6-0.h (IRIX6): Don't define.
14290 (bcopy, bcmp, bzero): Don't undef.
14291
14292 * s/irix6-5.h: Don't include strings.h.
14293 (IRIX6): Don't define.
14294 (bcopy, bcmp, bzero): Don't undef.
14295
14296 * syntax.c (Fforward_comment): Doc fix.
14297
142982002-10-29 Kim F. Storm <storm@cua.dk>
14299
14300 * process.c (Fsignal_process): Allow PROCESS to be specified by
14301 name in addition to pid (as integer or string).
14302
143032002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
14304
14305 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
14306 environments.
14307
143082002-10-27 Kim F. Storm <storm@cua.dk>
14309
14310 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
14311
14312 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
14313
14314 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
14315
14316 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
14317
143182002-10-26 Richard M. Stallman <rms@gnu.org>
14319
14320 * editfns.c (Fformat): Detect invalid format letters for floats.
14321
143222002-10-25 Kenichi Handa <handa@m17n.org>
14323
14324 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
14325 (x_set_title): Likewise.
14326
143272002-10-25 Juanma Barranquero <lektu@terra.es>
14328
14329 * macgui.h:
14330 * w32gui.h: Remove definition of XColor.
14331
14332 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
14333
143342002-10-24 Kim F. Storm <storm@cua.dk>
14335
14336 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
14337 Callers changed (supply dummy arg).
14338
14339 * lisp.h (get_window_cursor_type): Update prototype.
14340
14341 * w32term.c (x_display_and_set_cursor): Get active_cursor from
14342 get_window_cursor_type to track system caret.
14343
143442002-10-24 Kim F. Storm <storm@cua.dk>
14345
14346 * process.c (Fformat_network_address): New function.
14347 (syms_of_process): Defsubr it.
14348 (list_processes_1): Use it to format :local/:remote address if
f9711de4 14349 service/host is not set; before Emacs would crash in that case.
048addec
JD
14350 (Fmake_network_process): Don't use Ffind_operation_coding_system
14351 to setup coding system if host or service is not set.
14352
143532002-10-23 Juanma Barranquero <lektu@terra.es>
14354
14355 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
14356
14357 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
14358 COLORREF.
14359
14360 * macgui.h:
14361 * w32gui.h: Add definition of XColor.
14362
14363 * macfns.c:
14364 * w32fns.c:
14365 * xfaces.c: Remove definition of XColor.
14366
143672002-10-22 Stefan Monnier <monnier@cs.yale.edu>
14368
14369 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
14370
14371 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
14372 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
14373 window if it is dedicated.
14374 (Fshrink_window): Add preserve_before as was done for enlarge_window.
14375 (Vspecial_display_function): Update docstring.
14376
14377 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
14378 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
14379 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
14380
143812002-10-21 Stefan Monnier <monnier@cs.yale.edu>
14382
14383 * casefiddle.c (casify_region): Don't treat a prefix char as part
14384 of a word when at the beginning.
14385
143862002-10-17 Juanma Barranquero <lektu@terra.es>
14387
14388 * lread.c (syms_of_lread): Fix typos.
14389
143902002-10-17 Dave Love <fx@gnu.org>
14391
14392 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
14393
143942002-10-16 Richard M. Stallman <rms@gnu.org>
14395
14396 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
14397
143982002-10-14 Juanma Barranquero <lektu@terra.es>
14399
14400 * w16select.c (syms_of_win16select): Fix docstring for
14401 `selection-coding-system'.
14402
14403 * w32select.c (syms_of_w32select): Likewise.
14404
144052002-10-14 Stefan Monnier <monnier@cs.yale.edu>
14406
14407 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
14408 a backslash-quoted char.
14409 (scan_lists, scan_sexps_forward): Pacify the compiler.
14410
144112002-10-13 Richard M. Stallman <rms@gnu.org>
14412
14413 * window.c (window_scroll): Set immediate_quit.
14414
14415 * print.c (print): When backquote form is the car of a list,
14416 output in old style. Use old_backquote_output to output all
14417 comma forms inside it in old style too.
14418
14419 * buffer.h (struct buffer): Move `undo_list' down below `name'.
14420
144212002-10-11 Markus Rost <rost@math.ohio-state.edu>
14422
14423 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
14424 batch mode).
14425
14426 * lread.c (Fload): Doc fix (load-suffixes).
14427
144282002-10-10 Steven Tamm <steventamm@mac.com>
14429
14430 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
14431 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
14432 Also switch the default to Qnil from Qt.
14433
144342002-10-08 Kenichi Handa <handa@m17n.org>
14435
14436 * coding.c (code_convert_region): When we need more GAP for
14437 conversion, pay attention to the case that coding->produced is not
14438 greater than coding->consumed.
14439
144402002-10-07 Richard M. Stallman <rms@gnu.org>
14441
14442 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
14443
144442002-10-06 Andrew Choi <akochoi@shaw.ca>
14445
14446 * macmenu.c (mac_menu_show): Add j to count menu items; match
14447 menu_item_selection to it to find selected item.
14448
144492002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14450
14451 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
14452 cases. The correct fix is to pass ReparentNotify to Xt.
14453 The shell widget interprets ConfigureNotify differently depending
14454 on if it has been reparented or not.
14455
144562002-10-05 Markus Rost <rost@math.ohio-state.edu>
14457
14458 * editfns.c (Fformat_time_string): Doc fix.
14459
144602002-10-05 John Paul Wallington <jpw@shootybangbang.com>
14461
14462 * fns.c (Flength): Doc fix.
14463
144642002-10-04 Stefan Monnier <monnier@cs.yale.edu>
14465
14466 * keyboard.c (keyremap): New struct.
14467 (read_key_sequence): Use it: globally replace keytran_foo with
14468 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
14469 keytran_next and fkey_next to just `next'.
14470
144712002-10-04 Steven Tamm <steventamm@mac.com>
14472
14473 * macterm.c (keycode_to_xkeysym_table): Change return to be
14474 treated like an X keysym.
14475
144762002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14477
14478 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
14479 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
14480 This is to also handle x/y changes that occur because of a resize.
14481
144822002-10-02 John Paul Wallington <jpw@shootybangbang.com>
14483
14484 * frame.c (Vdelete_frame_functions): New variable.
14485 (syms_of_frame): Initialize and defvar it.
14486 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
14487 it when frame's `tooltip' parameter is non-nil.
14488
14489 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
14490
14491 * w32fns.c (x_create_tip_frame): Likewise.
14492
14493 * macfns.c (x_create_tip_frame): Likewise.
14494
144952002-09-30 Kenichi Handa <handa@m17n.org>
14496
14497 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
14498 -1 before calling ccl_driver.
14499
14500 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
14501 Only when it is non-nil, handle composition sequence.
14502 (setup_coding_system) <0>: Don't force composition handling.
14503
14504 * Makefile.in (lisp, shortlisp): Add utf-16.elc
14505
145062002-09-29 Richard M. Stallman <rms@gnu.org>
14507
14508 * search.c (Freplace_match): Adjust match data for the substitution
14509 just made in the buffer.
14510
14511 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
14512 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
14513
145142002-09-27 Richard M. Stallman <rms@gnu.org>
14515
14516 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
14517 (read_char): Use them. Do all exits thru the end of the function.
14518
145192002-09-27 Kenichi Handa <handa@etl.go.jp>
14520
14521 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
14522 is nil.
14523
145242002-09-26 Richard M. Stallman <rms@gnu.org>
14525
14526 * regex.h (__restrict_arr): Don't define if already defined.
14527
14528 * coding.c (run_pre_post_conversion_on_str):
14529 Save and restore Vdeactivate_mark.
14530
145312002-09-26 John Paul Wallington <jpw@shootybangbang.com>
14532
14533 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
14534
145352002-09-26 Kenichi Handa <handa@etl.go.jp>
14536
14537 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
14538 nonzero, try face's family at first. Otherwise try FAMILY at first.
14539 (choose_face_font): If C is a single byte char or latin-1, call
14540 try_font_list with PREFER_FACE_FAMILY 1.
14541
145422002-09-21 Richard M. Stallman <rms@gnu.org>
14543
14544 * window.c (select_window_1): Don't select frame.
14545 Set frame's selected window only when frame itself is selected.
14546 (Fselect_window): Doc fix.
14547
145482002-09-18 Kim F. Storm <storm@cua.dk>
14549
14550 * process.c (make-network-process): Doc fix (there is no
14551 network-server-log-function hook).
14552
145532002-09-18 Richard M. Stallman <rms@gnu.org>
14554
14555 * print.c (print): Clear out the unused parts of Vprint_number_table.
14556 (syms_of_print): Doc fix for `print-number-table'.
14557
14558 * unexelf.c (unexec): Undo previous change.
14559
145602002-09-17 Andreas Schwab <schwab@suse.de>
14561
14562 * m/alpha.h [LINUX]: Don't define DATA_START.
14563
145642002-09-16 Dave Love <fx@gnu.org>
14565
14566 * unexelf.c (unexec): Deal with .got, reinstating change from
14567 25-08-1999.
14568
145692002-09-13 Richard M. Stallman <rms@gnu.org>
14570
14571 * s/sol2-6.h (UNEXEC): Comment out definition.
14572
14573 * unexsol.c (unexec): Don't downcase first letter of error msg.
14574
14575 * xfaces.c (Fcolor_supported_p): Just one arg is required.
14576
145772002-09-12 Markus Rost <rost@math.ohio-state.edu>
14578
14579 * unexsol.c: Include buffer.h, charset.h, coding.h.
14580
145812002-09-11 Richard M. Stallman <rms@gnu.org>
14582
14583 * unexsol.c: Don't use report_file_error; do it by hand
14584 using dlerror.
14585
14586 * process.c (wait_reading_process_input, both versions):
14587 Before calling turn_on_atimers, call stop_polling.
14588
14589 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
14590
14591 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
14592 we go to too_near_end, call clear_glyph_matrix.
14593 (redisplay_window): After make_cursor_line_fully_visible,
14594 call clear_glyph_matrix and bypass `goto done'.
14595
14596 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
14597 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
14598
145992002-09-10 Richard M. Stallman <rms@gnu.org>
14600
14601 * fileio.c (Fdo_auto_save): Catch error making directory.
14602 Only call push_message if we need to.
14603 At the same time, make an unwind-protect to pop it.
14604 Rename local message_p to old_message_p.
14605 (do_auto_save_make_dir, do_auto_save_eh): New functions.
14606 (do_auto_save_unwind): Don't call pop_message.
14607
14608 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
14609
14610 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
14611
14612 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
14613
14614 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
14615
146162002-09-10 Stefan Monnier <monnier@cs.yale.edu>
14617
14618 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
14619 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
14620 (re_match_2_internal): Be more careful with infinite loops.
14621
146222002-09-10 Kim F. Storm <storm@cua.dk>
14623
14624 * macros.c (end_kbd_macro): New function.
14625 (Fend_kbd_macro): Use it.
14626
14627 * macros.h (end_kbd_macro): Declare extern.
14628
14629 * keyboard.c (Fdiscard_input): If defining keyboard macro,
14630 end and save it instead of discarding it.
14631
146322002-09-09 Markus Rost <rost@math.ohio-state.edu>
14633
14634 * s/sol2-6.h: Fix typo. Add comment.
14635
146362002-09-09 Richard M. Stallman <rms@gnu.org>
14637
14638 * regex.c (regnum_t): Use signed int, not unsigned int.
14639
14640 * s/sol2-6.h: New file.
14641
14642 * s/sol2-5.h (UNEXEC): Definition deleted.
14643
146442002-09-08 Kim F. Storm <storm@cua.dk>
14645
14646 * macros.c (executing_macro_index): Change type to EMACS_INT.
14647 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
14648
14649 * macros.h (executing_macro_index): Change type to EMACS_INT.
14650
146512002-09-06 Richard M. Stallman <rms@gnu.org>
14652
14653 * casetab.c (set_case_table): Make canon table point to eqv table.
14654
146552002-09-06 Juanma Barranquero <lektu@terra.es>
14656
14657 * coding.c (syms_of_coding): Fix spacing.
14658
14659 * composite.c (Fcompose_region_internal)
14660 (Fcompose_string_internal): Likewise.
14661
14662 * data.c (Flsh): Likewise.
14663
14664 * fontset.c (Fset_fontset_font): Likewise.
14665
14666 * macfns.c (Fx_server_max_request_size): Likewise.
14667
14668 * w16select.c (syms_of_win16select): Likewise.
14669
14670 * w32select.c (syms_of_w32select): Likewise.
14671
14672 * xselect.c (syms_of_xselect): Likewise.
14673
146742002-09-05 Richard M. Stallman <rms@gnu.org>
14675
14676 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
14677 call EXTEND_RANGE_TABLE and return a proper value.
14678 (set_image_of_range): Don't call set_image_of_range_1
14679 if no TRANSLATE or if range includes all of Latin-1.
14680 Only call it for the Latin-1 part of the range.
14681 For other cases, make two separate ranges,
14682 one for the original specified characters and one for
14683 their case-conversions.
14684
146852002-09-04 Richard M. Stallman <rms@gnu.org>
14686
14687 * s/sol2-5.h (UNEXEC): Use unexsol.o.
14688
14689 * window.c (displayed_window_lines): Correct for one-off bug
14690 in HEIGHT on non-window displays.
14691
14692 * regex.c (set_image_of_range_1): New function.
14693 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
14694 Return a value to indicate running out of memory.
14695 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
14696 (extend_range_table_work_area): New subroutine.
14697 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
14698 Different calling conventions, and used from set_image_of_range{,_1}.
14699 (IMMEDIATE_QUIT_CHECK): Definitions moved.
14700
147012002-09-04 Juanma Barranquero <lektu@terra.es>
14702
14703 * makefile.w32-in: All dependencies updated.
14704
147052002-09-01 Richard M. Stallman <rms@gnu.org>
14706
14707 * unexsol.c: New file.
14708
14709 * xfns.c (Qbox): Declare external, don't define.
14710
14711 * xdisp.c (redisplay_window) <force-start case>:
14712 If point is on semi-visible last line, reposition
14713 it at previous line.
14714
14715 * alloc.c (display_malloc_warning): Use display-warning.
14716 (malloc_warning_1): Function deleted.
14717
14718 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
14719
14720 * lread.c (read1): Handle #! by skipping the line.
14721
147222002-08-31 Richard M. Stallman <rms@gnu.org>
14723
14724 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
14725 Don't include LDFLAGS.
14726 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
14727
147282002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
14729
14730 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
14731 member of x_display_info unless we compile for some window system.
14732
147332002-08-31 Kim F. Storm <storm@cua.dk>
14734
14735 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
14736 (get_window_cursor_type): Don't use them.
14737 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
14738
147392002-08-30 Kenichi Handa <handa@etl.go.jp>
14740
14741 * xdisp.c (get_next_display_element): Fix previous change.
14742
147432002-08-30 Andrew Choi <akochoi@shaw.ca>
14744
14745 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
14746 (expose_window): Use it to fix the display of overlapping
14747 rows (merge code from xterm.c).
14748
14749 * macfns.c (Qbox): Add extern declaration.
14750
147512002-08-30 Juanma Barranquero <lektu@terra.es>
14752
14753 * w32fns.c (Qbox): Make extern.
14754 (syms_of_w32fns): Remove initialization of Qbox.
14755
147562002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
14757
14758 * xfns.c (Fx_open_connection): Fix error message.
14759
147602002-08-30 Kim F. Storm <storm@cua.dk>
14761
14762 The following changes consolidates the handling of the cursor
14763 type in xdisp.c, moving duplicate code and functionality from
14764 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
14765
14766 * frame.h (enum text_cursor_kinds): Consolidated here.
14767 Added DEFAULT_CURSOR value.
14768 (struct frame) <desired_cursor, cursor_width>
14769 <blink_off_cursor, blink_off_cursor_width>: New fields.
14770 Consolidated from output_x, output_w32 and output_mac structs.
14771 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14772 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
14773
14774 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
14775 Variables consolidated here.
14776 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
14777 (Vcursor_in_non_selected_windows): Renamed from
14778 cursor_in_non_selected_windows and changed to Lisp_Object.
14779 (syms_of_xdisp): Define and staticpro new and moved variables.
14780 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
14781 consolidated here. Recognize Qhollow setting.
14782 (set_frame_cursor_types): New function to set frame cursor types
14783 based on the frame parameters.
14784 (get_window_cursor_type): New function to calculate new cursor
14785 type and width for the specified window. Based on duplicated
14786 code consolidated here.
14787 Enhancements: cursor-in-non-selected-windows may be a cursor type,
14788 check buffer-local alternate-cursor-type and blink-cursor-alist
14789 before using built-in blink off methods.
14790
14791 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
14792
14793 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
14794 (get_specified_cursor_type, get_window_cursor_type)
14795 (set_frame_cursor_types): Added prototypes.
14796
14797 * macfns.c (x_specified_cursor_type): Removed.
14798 (x_set_cursor_type): Use set_frame_cursor_types.
14799 (Qbar, Qbox): Removed.
14800 (syms_of_macfns): Don't intern or staticpro them.
14801
14802 * macterm.c (x_specified_cursor_type): Remove prototype.
14803 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14804 (x_display_and_set_cursor): Use get_window_cursor_type.
14805 Remove unused local variables cursor_non_selected, active_cursor.
14806 Redraw cursor if hbar cursor width changes.
14807 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
14808
14809 * macterm.h (enum text_cursor_kinds): Removed.
14810 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
14811 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14812 (FRAME_DESIRED_CURSOR): Macro removed.
14813
14814 * w32fns.c (Vblink_cursor_alist): Removed.
14815 (Qbar, Qhbar, Qbox, Qhollow): Removed.
14816 (syms_of_w32fns): Don't intern, staticpro, or define them.
14817 (x_specified_cursor_type): Removed.
14818 (x_set_cursor_type): Use set_frame_cursor_types.
14819
14820 * w32term.c (x_specified_cursor_type): Remove prototype.
14821 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14822 (x_display_and_set_cursor): Use get_window_cursor_type.
14823 Remove unused local variables cursor_off_state.
14824 Redraw cursor if hbar cursor width changes.
14825 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
14826
14827 * w32term.h (enum text_cursor_kinds): Removed.
14828 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
14829 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14830 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14831 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
14832 (struct w32_display_info) <x_highlight_frame>: Renamed member from
14833 w32_highlight_frame.
14834
14835 * xfns.c (Vblink_cursor_alist): Removed.
14836 (Qbar, Qhbar, Qbox, Qhollow): Removed.
14837 (syms_of_xfns): Don't intern, staticpro, or define them.
14838 (x_specified_cursor_type): Removed.
14839 (x_set_cursor_type): Use set_frame_cursor_types.
14840
14841 * xterm.c (x_specified_cursor_type): Remove prototype.
14842 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
14843 (x_display_and_set_cursor): Use get_window_cursor_type.
14844 Remove unused local variables cursor_off_state.
14845 Redraw cursor if hbar cursor width changes.
14846
14847 * xterm.h (enum text_cursor_kinds): Removed.
14848 (struct output_x) <current_cursor, desired_cursor, cursor_width>
14849 <blink_off_cursor, blink_off_cursor_width>: Members removed.
14850 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
14851 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
14852 (x_specified_cursor_type): Remove prototype.
14853
148542002-08-28 Richard M. Stallman <rms@gnu.org>
14855
14856 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
14857 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
14858 (Vblink_cursor_alist): New variable.
14859 (syms_of_w32fns): Initialize and defvar it.
14860 (x_specified_cursor_type): Recognize Qbox for filled box.
14861 Exceptions are hollow boxes.
14862 (Qbox, Qhollow): New variables.
14863 (syms_of_w32fns): Initialize and staticpro them.
14864
14865 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
14866 New macros.
14867 (struct w32_output): New fields blink_off_cursor,
14868 blink_off_cursor_width.
14869 (FRAME_CURSOR_WIDTH): New macro.
14870
14871 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
14872 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
14873
14874 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
14875 for bar cursor.
14876
14877 * w32term.c (expose_overlaps): New function.
14878 (expose_window): Use it to fix the display of overlapping rows.
14879
148802002-08-28 Simon Josefsson <jas@extundo.com>
14881
14882 * xfns.c (Fx_open_connection): Improve help when X connection
14883 fails, xhost is insecure and xauth is better.
14884
148852002-08-28 Juanma Barranquero <lektu@terra.es>
14886
14887 * makefile.w32-in: Add missing dependencies on w32term.h and
14888 composite.h.
14889
14890 * emacs.c (USAGE1): Add missing newline.
14891
148922002-08-27 Andrew Choi <akochoi@shaw.ca>
14893
14894 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
14895
148962002-08-27 Richard M. Stallman <rms@gnu.org>
14897
14898 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
14899 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
14900 (Vblink_cursor_alist): New variable.
14901 (syms_of_xfns): Initialize and defvar it.
14902 (x_specified_cursor_type): Recognize Qbox for filled box.
14903 Exceptions are hollow boxes.
14904 (Qbox, Qhollow): New variables.
14905 (syms_of_xfns): Initialize and staticpro them.
14906
14907 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
14908 New macros.
14909 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
14910
14911 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
14912 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
14913
14914 * emacs.c (main): Handle --script.
14915 (USAGE1): Mention --script.
14916 (standard_args): Define sort order for --script.
14917
149182002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
14919
14920 * xdisp.c (redisplay_updating_p): Variable removed.
14921 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
14922 New variables.
14923 (init_iterator): Don't free realized faces if
14924 inhibit_free_realized_faces is set.
14925 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
14926 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
14927 initialize Qinhibit_free_realized_faces.
14928
14929 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
14930 when iterator is adding glyphs to a glyph matrix.
14931
149322002-08-27 Kenichi Handa <handa@etl.go.jp>
14933
14934 * xdisp.c (get_next_display_element): In unibyte case, don't use
14935 octal form for such eight-bit characters that can be converted to
14936 multibyte char.
14937
149382002-08-26 Kim F. Storm <storm@cua.dk>
14939
b6189c3b
KS
14940 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
14941 foreground and background colors. From Joe Buehler.
048addec
JD
14942
149432002-08-26 Miles Bader <miles@gnu.org>
14944
14945 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
14946
149472002-08-25 Andrew Choi <akochoi@shaw.ca>
14948
14949 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
14950 defined instead of MAC_OSX.
14951
14952 * s/darwin.h (select): Define select to sys_select only if
14953 HAVE_CARBON is defined.
14954 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
14955 (DONT_REOPEN_PTY): #def it.
14956
14957 * macterm.c (XTread_socket): Remove code to call
14958 SendEventToEventTarget for keys with command modifiers when
14959 mac_command_key_is_meta is nil.
14960
149612002-08-24 Andreas Schwab <schwab@suse.de>
14962
14963 * eval.c (Fdefvar): Fix last change.
14964
149652002-08-23 Richard M. Stallman <rms@gnu.org>
14966
14967 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
14968 Record variables in load history as (defvar . VAR).
14969 (Fdefvar): Don't record in load history if no initial value.
14970 (Qdefvar): New variable.
14971 (syms_of_eval): Init and staticpro it.
14972
14973 * lread.c (syms_of_lread): Doc fix.
14974 (build_load_history): Use Fmember to see if a definition
14975 is already in the Vload_history element.
14976
14977 * process.c (Fstart_process): Remove /: from program name.
14978
14979 * emacs.c (decode_env_path): Don't add /: if file name handler
14980 has a `safe-magic' property.
14981
14982 * callproc.c (Fcall_process): Remove /: from program name.
14983
149842002-08-23 Stefan Monnier <monnier@cs.yale.edu>
14985
14986 * regex.c (PATFETCH): Remove the translating fetch.
14987 (PATFETCH_RAW): Rename to PATFETCH.
14988 (set_image_of_range): New fun.
14989 (SET_RANGE_TABLE_WORK_AREA): Use it.
14990 (regex_compile): Don't translate the pattern chars so eagerly.
14991 Only do it when inserting an `exactn' bytecode or when handling
14992 a char-range.
14993 (mutually_exclusive_p): Avoid empty statement.
14994
149952002-08-22 Kim F. Storm <storm@cua.dk>
14996
14997 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
14998 end up on a partially visible line; this reverts a specific part
14999 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
15000 display error which has been reported several times now.
15001 However it introduces the problem that changes was supposed to fix.
15002 See my comments in the source if you want to debug this further.
15003
150042002-08-20 Kenichi Handa <handa@etl.go.jp>
15005
15006 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15007
150082002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
15009
15010 * msdos.c (croak): Add `void' to definition.
15011
c1380aa6 15012 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
15013 Don't define them, they are defined in msdos.c.
15014
15015 * mem-limits.h [MSDOS]: Declare etext.
15016
15017 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
15018 `const' since CORRECT_DIR_SEPS modifies its target.
15019
150202002-08-19 Kim F. Storm <storm@cua.dk>
15021
2fb0ce67 15022 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
15023 KEEP-RECORD to avoid clearing lossage when we just want to clear
15024 the current key sequence (kmacro needs this).
15025
150262002-08-19 Kenichi Handa <handa@localhost>
15027
15028 * composite.c (run_composition_function): Call FUNC if it is fboundp.
15029
15030 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
15031 cons, return Qnil.
15032
150332002-08-17 Richard M. Stallman <rms@gnu.org>
15034
15035 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
15036
15037 * sysdep.c [!VMS]: Include sys/files.h.
15038
15039 * editfns.c (save_restriction_restore): Defend from unchained marker.
15040
15041 * buffer.c (overlays_at): Handle extending vec uniformly.
15042 (overlays_in): Handle extending vec from length 0 as in overlays_at.
15043
150442002-08-15 Andrew Choi <akochoi@shaw.ca>
15045
15046 * mac.c (init_mac_osx_environment): New function.
15047
15048 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
15049
150502002-08-14 Kim F. Storm <storm@cua.dk>
15051
15052 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
15053 executing macro before appending to it (when used from Lisp).
15054 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
15055 which is called prior to each iteration of macro (for kmacro.el).
15056 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
15057
15058 * lisp.h (Fexecute_kbd_macro): Update prototype.
15059
15060 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
15061
150622002-08-14 Kenichi Handa <handa@etl.go.jp>
15063
15064 * xselect.c (QUTF8_STRING): New variable.
15065 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
15066 (x_atom_to_symbol): Likewise.
15067 (x_get_local_selection): New argument local_request. If it is
15068 nonzero, call handler_fn with the second arg nil.
15069 (x_handle_selection_request): Call x_get_local_selection with
15070 local_request 0.
15071 (lisp_data_to_selection_data): Don't encode the string here.
15072 (Fx_get_selection_internal): Call x_get_local_selection with
15073 local_request 1.
15074 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
15075
15076 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
15077
15078 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
15079
150802002-08-13 Richard M. Stallman <rms@gnu.org>
15081
15082 * minibuf.c (Fminibufferp): New function.
15083 (syms_of_minibuf): Defsubr it.
15084 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
15085
150862002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
15087
15088 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
15089
150902002-08-12 Richard M. Stallman <rms@gnu.org>
15091
15092 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
15093 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
15094 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
15095 already.
15096
15097 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
15098
150992002-08-11 Andrew Choi <akochoi@shaw.ca>
15100
15101 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
15102 (Vmac_pass_command_to_system): New variable.
15103 (Vmac_pass_control_to_system): New variable.
15104 (do_mouse_moved): Check wp with is_emacs_window.
15105 (XTread_socket): Check window_ptr with is_emacs_window.
15106 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
15107 events back to Mac Toolbox for processing, depending on values of
15108 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
15109 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
15110 Vmac_pass_control_to_system.
15111
151122002-08-10 Kenichi Handa <handa@etl.go.jp>
15113
15114 * coding.c (unencodable_char_position): New function.
15115 (Funencodable_char_position): New function.
15116 (syms_of_coding): Defsubr Funencodable_char_position.
15117
151182002-08-10 Andrew Choi <akochoi@shaw.ca>
15119
15120 * mac.c (sys_select) [MAC_OSX]: New function.
15121
15122 * macterm.c (MakeMeTheFrontProcess): New function.
15123 (mac_initialize): Call MakeMeTheFrontProcess.
15124
15125 * s/darwin.h: Define select to sys_select.
15126
151272002-08-09 Richard M. Stallman <rms@gnu.org>
15128
15129 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
15130
151312002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
15132
15133 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
15134 end of the buffer.
15135
151362002-08-08 Ken Raeburn <raeburn@mit.edu>
15137
15138 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
15139
15140 * puresize.h (BASE_PURESIZE): Increase to 910000.
15141
151422002-08-08 Kenichi Handa <handa@etl.go.jp>
15143
15144 * coding.c (Ffind_operation_coding_system): For write-region, if
15145 VISIT is a filename, make it the target.
15146
151472002-08-07 Richard M. Stallman <rms@gnu.org>
15148
15149 * alloc.c (mark_object): Detect long lists for debugging.
15150 (mark_object_loop_halt): New variable.
15151
15152 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
15153
15154 * data.c (Fmake_variable_frame_local): Doc fix.
15155
151562002-08-01 David Ponce <david@dponce.com>
15157
15158 * w32menu.c (local_heap, local_alloc, local_free): New macros.
15159 (malloc_widget_value, free_widget_value)
15160 (w32_free_submenu_strings): Use them.
15161
15162 (push_submenu_start, push_submenu_end, push_left_right_boundary)
15163 (push_menu_pane, push_menu_item, single_keymap_panes)
15164 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
15165 (single_submenu, set_frame_menubar)
15166 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
15167
15168 (Fx_popup_menu): Don't show pop up menu until preceding one is
15169 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
15170
15171 * w32menu.c: Changes adapted from xmenu.c
15172 (set_frame_menubar): First parse all submenus,
15173 then make widget_value trees from them.
15174 Don't allocate any widget_value objects
15175 until we are done with the parsing.
15176 (parse_single_submenu): New function.
15177 (digest_single_submenu): New function.
15178 (single_submenu): Function deleted, replaced by those two.
15179
151802002-08-04 Andrew Choi <akochoi@shaw.ca>
15181
15182 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
15183 returns a valid window pointer before proceeding for keyDown and
15184 autoKey events.
15185
151862002-08-03 Andrew Choi <akochoi@shaw.ca>
15187
15188 * macterm.c (USE_CARBON_EVENTS): New macro.
15189 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
15190 (x_iconify_frame): Call CollapseWindow.
15191 (Vmac_reverse_ctrl_meta): New variable.
15192 (Vmac_wheel_button_is_mouse_2): New variable.
15193 (init_mac_drag_n_drop): New function.
15194 (mac_do_receive_drag): New function.
15195 (mac_handle_service_event): New function.
15196 (init_service_handler): New function.
15197 (mac_to_emacs_modifiers): New function.
15198 (mac_event_to_emacs_modifiers): New function.
15199 (mac_get_mouse_btn): New function.
15200 (mac_convert_event_ref): New function.
15201 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
15202 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
15203 mac_get_mouse_btn.
15204 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
15205
15206 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
15207 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
15208 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
15209 TOOL_BAR_EVENT for MAC_OS as well.
15210 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
15211 as for WINDOWS_NT.
15212 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
15213
15214 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
15215
152162002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
15217
15218 * xdisp.c (forward_to_next_line_start): Fix a condition that
15219 lead to a newline being skipped.
15220
152212002-08-02 Andrew Choi <akochoi@shaw.ca>
15222
15223 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
15224
152252002-08-01 Richard M. Stallman <rms@gnu.org>
15226
15227 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
15228
152292002-07-31 Andrew Choi <akochoi@shaw.ca>
15230
15231 * macfns.c: #undef init_process before #define-ing it.
15232
15233 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
15234 HAVE_CARBON is defined.
15235
152362002-07-31 Richard M. Stallman <rms@gnu.org>
15237
15238 * xmenu.c (set_frame_menubar): First parse all submenus,
15239 then make widget_value trees from them.
15240 Don't allocate any widget_value objects
15241 until we are done with the parsing.
15242 (parse_single_submenu): New function.
15243 (digest_single_submenu): New function.
15244 (single_submenu): Function deleted, replaced by those two.
15245
152462002-07-30 Juanma Barranquero <lektu@terra.es>
15247
15248 * w32proc.c (syms_of_ntproc): Fix docstring of
15249 `w32-get-true-file-attributes'.
15250
152512002-07-28 Richard M. Stallman <rms@gnu.org>
15252
15253 * s/hpux8.h (HPUX8): Define this before including hpux.h.
15254 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
15255
15256 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
15257
15258 * keyboard.c (make_lispy_event):
15259 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
15260 Explicitly clear up_modifier in event->modifiers.
15261
152622002-07-27 Richard M. Stallman <rms@gnu.org>
15263
15264 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
15265
15266 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
15267 for bar cursor.
15268
152692002-07-26 Kenichi Handa <handa@etl.go.jp>
15270
15271 * coding.c (detect_coding_iso2022): While checking a byte sequence
15272 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
15273 it in the normal loop.
15274
152752002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
15276
15277 * xterm.c (expose_overlaps): New function.
15278 (expose_window): Use it to fix the display of overlapping rows.
15279
15280 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
15281
152822002-07-23 Ken Raeburn <raeburn@gnu.org>
15283
15284 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
15285 since it only depends on XUINT.
15286
15287 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
15288 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
15289 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
15290 Macros deleted.
3947677c 15291
77d1daf2
AS
15292 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
15293 its value over other approaches.
15294 * sysdep.c (start_of_data): Don't define the function if a macro
15295 form has been defined.
8a8e19a3 15296
048addec
JD
152972002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
15298
15299 * xdisp.c (redisplay_updating_p): New variable.
15300 (init_iterator): Don't free realized faces when
15301 redisplay_updating_p is set.
15302 (redisplay_internal): Set redisplay_updating_p while updating
15303 the display.
15304
153052002-07-23 Richard M. Stallman <rms@gnu.org>
15306
15307 * editfns.c (Fmessage): Treat "" like nil.
15308
153092002-07-23 Kenichi Handa <handa@etl.go.jp>
15310
15311 * xdisp.c (face_before_or_after_it_pos):
15312 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15313
153142002-07-22 Juanma Barranquero <lektu@terra.es>
15315
15316 * callproc.c (init_callproc) [DOS_NT]:
15317 Initialize Vshared_game_score_directory to nil.
15318 (syms_of_callproc) [DOS_NT]: Likewise.
15319
153202002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
15321
15322 * xdisp.c (display_line): Replace an abort with xassert.
15323
153242002-07-21 Richard M. Stallman <rms@gnu.org>
15325
15326 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
15327 and END_UNCHANGED when setting buffer_unchanged_p.
15328 Use current_matrix_up_to_date_p to decide whether to use
15329 try_cursor_movement.
15330
15331 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
15332
15333 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
15334
15335 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
15336 Set to nil if dir does not exist.
15337 (syms_of_callproc): Init unconditionally and simply.
15338
15339 * buffer.c (Fbuffer_list): Doc fix.
15340
153412002-07-21 Ken Raeburn <raeburn@gnu.org>
15342
15343 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
15344
15345 * buffer.c (mmap_realloc): When shrinking, make sure number of
15346 pages to unmap is rounded towards zero.
15347
15348 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
15349 (XSETINT): Deleted.
15350
15351 * m/att3b.h (XINT): Don't define.
15352 (VALBITS, VALMASK, XTYPE): Deleted.
15353 (DATA_SEG_BITS): Define.
15354 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
15355 ARRAY_MARK_FLAG): Deleted.
15356 (DATA_SEG_BITS): Define.
15357 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
15358 (DATA_SEG_BITS): Define.
15359
153602002-07-20 Richard M. Stallman <rms@gnu.org>
15361
15362 * print.c (print_error_message): New args CONTEXT and CALLER.
15363 Calls changed.
15364
15365 * lisp.h (print_error_message): Declare new args.
15366
15367 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
15368 and CONTEXT to print_error_message, don't print them here.
15369 For a Quit, don't use Vsignaling_function.
15370 Call message_log_maybe_newline.
15371
15372 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
15373
153742002-07-20 Kim F. Storm <storm@cua.dk>
15375
15376 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
15377
153782002-07-19 Ken Raeburn <raeburn@gnu.org>
15379
15380 * bytecode.c (struct byte_stack): Pointers into byte string now
15381 point to const.
15382 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
15383 const.
15384 * charset.h (BCOPY_SHORT): Source pointer now points to const.
15385 * coding.c (encode_eol, detect_coding, detect_eol):
15386 (decode_coding, encode_coding, detect_coding_system):
15387 Source strings now treated as const.
15388 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
15389 modify Lisp string contents.
15390 * coding.h (decode_coding, encode_coding, detect_coding,
15391 detect_eol): Declarations updated.
15392 * composite.c (compose_chars_in_text): Treat Lisp string contents
15393 as const.
15394 * dispnew.c (safe_bcopy): Source pointer now points to const.
15395 * lisp.h (STRING_COPYIN): New macro.
15396 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
15397 (internal_with_output_to_temp_buffer): Declarations updated.
15398 * print.c (temp_output_buffer_setup):
15399 (internal_with_output_to_temp_buffer): Buffer name argument is now
15400 pointer to const.
15401 * sound.c (struct sound_device): Function pointer field "write"
15402 buffer argument now points to const.
15403 (vox_write): Buffer argument points to const.
15404 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
15405 contents as const.
15406 * sysdep.c (emacs_write): Buffer pointer now const.
15407 * term.c (encode_terminal_code): Buffer pointer now const.
15408 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
15409 (x_face_list_fonts, x_update_menu_appearance):
15410 (hash_string_case_insensitive): Treat Lisp string contents as const.
15411
154122002-07-19 Juanma Barranquero <lektu@terra.es>
15413
048addec
JD
15414 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
15415
15416 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
15417 (Ffile_name_as_directory): Fix argument name in docstring.
15418 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
15419
154202002-07-18 Richard M. Stallman <rms@gnu.org>
15421
15422 * data.c (Fdefalias): Doc fix.
15423
154242002-07-17 Dave Love <fx@gnu.org>
15425
15426 * intervals.h (text_property_stickiness): Use P_.
15427
15428 * ccl.c: Remove `emacs' conditionals.
15429 (ccl_backtrace_table): Fix size spec.
15430 (ccl_driver): Fix type errors.
15431
154322002-07-16 Ken Raeburn <raeburn@gnu.org>
15433
15434 * alloc.c (xstrdup, make_string, make_unibyte_string)
15435 (make_multibyte_string, build_string): String pointer args now
15436 point to const.
15437 * charset.c (find_charset_in_text, c_string_width):
15438 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
15439 * fileio.c (report_file_error):
15440 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
15441 (count_combining_before, count_combining_after, insert_1_both):
15442 (insert, insert_and_inherit, insert_string):
15443 (insert_before_markers, insert_before_markers_and_inherit):
15444 * lread.c (intern, oblookup, hash_string):
15445 * minibuf.c (temp_echo_area_glyphs):
15446 * search.c (fast_c_string_match_ignore_case):
15447 * sysdep.c (emacs_open, set_file_times):
15448 * xfaces.c (xstricmp):
15449 * xdisp.c (store_frame_title, string_char_and_length):
15450 (message_dolog, message2, message2_nolog, set_message): Likewise.
15451 (set_message_1): Cast message string argument to const pointer.
15452 * editfns.c (general_insert_function): Insertion function now
15453 takes pointer to const for input data.
15454 * charset.h (find_charset_in_text, c_string_width):
15455 (parse_str_as_multibyte): Declarations updated.
15456 * dispextern.h (xstricmp): Declaration updated.
15457 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
15458 (count_size_as_multibyte, count_combining_before):
15459 (count_combining_after, insert_1, insert_1_both, message_dolog):
15460 (insert, insert_and_inherit, insert_before_markers)
15461 (insert_before_markers_and_inherit, set_message, message2):
15462 (message2_dolog, build_string, make_string, make_unibyte_string):
15463 (make_multibyte_string, intern, oblookup, report_file_error):
15464 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
15465 (emacs_open, xstrdup): Declarations updated.
15466 * systime.h (set_file_times): Declaration updated.
15467
15468 * charset.c (find_charset_in_text, lisp_string_width): Use const
15469 for pointer to lisp string data.
15470 * charset.h (FETCH_STRING_CHAR_ADVANCE):
15471 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
15472 * coding.c (Ffind_coding_systems_region_interval):
15473 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
15474 (Fmake_directory_internal, Fdelete_directory):
15475 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
15476 * fontset.c (font_family_registry, fs_query_fontset):
15477 (list_fontsets):
15478 * frame.c (Fframe_parameter):
15479 * keyboard.c (cmd_error_internal):
15480 * keymap.c (Fdescribe_buffer_bindings):
15481 * lread.c (complete_filename_p, openp):
15482 * minibuf.c (Fminibuffer_complete_word):
15483 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
15484 (face_before_or_after_it_pos, next_element_from_string):
15485 (get_overlay_arrow_glyph_row, display_mode_element):
15486 (decode_mode_spec_coding):
15487 * xterm.c (same_x_server): Likewise.
15488
15489 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
15490 settings of non-existent fields.
15491
15492 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
15493 copy a lisp value.
15494
15495 * lread.c (Fintern_soft): Use string macros instead of
15496 Lisp_String fields.
15497 * keyboard.c (echo_char, parse_modifiers_uncached):
15498 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
15499 * textprop.c (validate_interval_range, interval_of): Likewise.
15500
15501 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
15502
15503 * charset.h (FETCH_STRING_CHAR_ADVANCE)
15504 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
15505 XSTRING()->size_byte.
15506
15507 * lisp.h (SDATA, SREF): Produce rvalue.
15508 (SSET): New macro.
15509 * alloc.c (make_event_array): Use SSET for storing into a string.
15510 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
15511 a string.
15512 * casefiddle.c (casify_object): Use SSET.
15513 * charset.h (FETCH_STRING_CHAR_ADVANCE)
15514 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
15515 address of string contents.
15516 * data.c (Faref): Use SDATA.
15517 (Faset): Use SDATA, SSET.
15518 * dired.c (directory_files_internal): Use SSET.
15519 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
15520 (Fread_file_name): Use SREF, SSET.
15521 * fns.c (concat): Use SSET.
15522 (concat, Fdelete): Use SDATA.
15523 * insdel.c (insert_from_string_1): Use SDATA.
15524 * keyboard.c (Fevent_convert_list): Use SREF.
15525 * lread.c (Fload): Use SDATA, SSET.
15526 * macfns.c (validate_x_resource_name): Use SSET.
15527 * process.c (status_message): Use SSET.
15528 * search.c (wordify): Use SDATA.
15529 (Freplace_match): Use SREF.
15530 * w32fns.c (validate_x_resource_name): Use SSET.
15531 * xfns.c (validate_x_resource_name): Use SSET.
15532 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
15533
155342002-07-16 Richard M. Stallman <rms@gnu.org>
15535
15536 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
15537
15538 * xdisp.c (reconsider_clip_changes):
15539 Don't test prevent_redisplay_optimizations_p.
15540 (redisplay_internal): Test prevent_redisplay_optimizations_p
15541 along with clip_changed in some cases.
15542 (try_window_id): Likewise.
15543 (redisplay_window): New local var buffer_unchanged_p.
15544
15545 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
15546
15547 * process.c (create_process): Test USG_SUBTTY_WORKS.
15548 (process_send_signal): Clean up handling of GID.
15549 Detect errors in ioctls meant to set GID.
15550
15551 * window.c (temp_output_buffer_show):
15552 Don't set prevent_redisplay_optimizations_p.
15553
155542002-07-15 Juanma Barranquero <lektu@terra.es>
15555
15556 * eval.c (Fdefvaralias): Add docstring argument.
15557
155582002-07-15 Ken Raeburn <raeburn@gnu.org>
15559
15560 * lisp.h (STRING_INTERVALS): Produce rvalue.
15561 (STRING_SET_INTERVALS): New macro.
15562 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
15563 * fns.c (Fstring_as_multibyte): Likewise.
15564 * intervals.c (balance_possible_root_interval, delete_interval)
15565 (create_root_interval, copy_intervals_to_string): Likewise.
15566 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
15567 instead of 0.
15568
155692002-07-14 Ken Raeburn <raeburn@gnu.org>
15570
15571 * lisp.h (STRING_SET_CHARS): New macro.
15572 (SCHARS, SBYTES): Produce rvalues.
15573 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
15574 * fns.c (concat): Likewise.
15575 * lread.c (read_vector): Likewise.
15576
3419757d 15577 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 15578 (STRING_SET_UNIBYTE): New macro.
3419757d 15579 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
15580 length of -1) changed to use STRING_SET_UNIBYTE.
15581 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
15582 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
15583 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
15584 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
15585 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
15586 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
15587 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
15588 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
15589 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
15590 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
15591 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
15592 STRING_BYTES or indirection changed to SCHARS, SBYTES,
15593 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
15594 unchanged for now.
15595
155962002-07-13 Kim F. Storm <storm@cua.dk>
15597
15598 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
15599
156002002-07-12 Richard M. Stallman <rms@gnu.org>
15601
15602 * fileio.c (Fwrite_region): Doc fix.
15603
15604 * print.c (print_error_message): Don't handle Vsignaling_function here.
15605
15606 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
15607 (command_loop_1): Avoid certain actions after memory-full error.
15608
15609 * eval.c (Fsignal): Don't call cancel_hourglass.
15610 For a memory-full error, don't call Vsignal_hook_function
15611 and don't set Vsignaling_function.
15612
15613 * process.c (process_send_signal): Add abort call.
15614
156152002-07-11 Markus Rost <rost@math.ohio-state.edu>
15616
15617 * keymap.c (Fkey_binding): Fix typo.
15618
156192002-07-11 Richard M. Stallman <rms@gnu.org>
15620
15621 * alloc.c (Vmemory_full): New variable.
3419757d 15622 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
15623 Uses changed.
15624 (syms_of_alloc): Defvar them.
15625 (memory_full, buffer_memory_full): Set Vmemory_full.
15626
15627 * lisp.h (Vmemory_full): Add declaration.
15628 (current_column, indented_beyond_p): Change declaration.
15629
15630 * indent.c (last_known_column): Declare as double, not float.
15631 (current_column, current_column_1, string_display_width)
15632 (position_indentation): Return `double'.
15633 (indented_beyond_p): Arg `column' is `double'. Callers changed.
15634
15635 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
15636 (back_to_previous_visible_line_start)
15637 (reseat_at_next_visible_line_start, next_element_from_buffer):
15638 Use `double', not `float', when calling indented_beyond_p.
15639
3419757d 15640 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
15641
15642 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
15643
156442002-07-11 Juanma Barranquero <lektu@terra.es>
15645
15646 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
15647 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
15648 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
15649 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
15650 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
15651 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
15652
156532002-07-10 Juanma Barranquero <lektu@terra.es>
15654
d814862a
JB
15655 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
15656 All callers changed.
048addec
JD
15657
156582002-07-09 Stefan Monnier <monnier@cs.yale.edu>
15659
15660 * data.c (Fdefalias): Add an optional `docstring' argument.
15661 (set_internal, Fsetq_default): Use XCAR/XCDR.
15662
15663 * composite.c (HASH_VALUE, HASH_KEY):
15664 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
15665
156662002-07-09 Kenichi Handa <handa@etl.go.jp>
15667
15668 * callproc.c (Fcall_process): Fix previous change.
15669
156702002-07-07 Stefan Monnier <monnier@cs.yale.edu>
15671
15672 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
15673 Add support for hash-tables.
15674 (Ftry_completion): Return t even if the string appears multiple times.
15675
15676 * fns.c (Fnconc): Use XCDR.
15677 (Fprovide): Use CONSP and XCDR.
15678 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
15679 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
15680 (Fmake_hash_table): Accept `:size nil'.
15681 (Fmakehash): Delete: moved to subr.el.
15682 (syms_of_fns): Don't defsubr makehash.
15683
15684 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
15685 (HASH_TABLE_SIZE): Move from fns.c.
15686
156872002-07-07 Richard M. Stallman <rms@gnu.org>
15688
15689 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
15690 Instead just return 0 when there is something to be done.
15691 (try_scrolling): If make_cursor_line_fully_visible returns 0,
15692 retry scrolling as if cursor were off the bottom.
15693 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
15694 return CURSOR_MOVEMENT_MUST_SCROLL.
15695 (redisplay_window): If make_cursor_line_fully_visible returns 0,
15696 go to try_to_scroll.
15697
15698 * buffer.c (Fbuffer_local_value): Store current value into its binding
15699 so we get the up-to-date value for the binding that is loaded.
15700
15701 * eval.c (Fdefmacro): Doc fix.
15702
157032002-07-05 Dave Love <fx@gnu.org>
15704
15705 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
15706 correctly.
15707
15708 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
15709 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
15710 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
15711 CCL_LookupCharConstTbl.
15712 (syms_of_ccl): Defvar translation-hash-table-vector.
15713
157142002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15715
15716 * xdisp.c: Remove unused variable `face'.
15717
157182002-07-04 Juanma Barranquero <lektu@terra.es>
15719
15720 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
15721 obsolescence information.
15722
157232002-07-03 Andrew Choi <akochoi@shaw.ca>
15724
15725 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
15726 pattern. Search cache first.
15727 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
15728 for Japanese font.
15729 (XLoadQueryFont): Use it.
15730
157312002-07-02 Richard M. Stallman <rms@gnu.org>
15732
15733 * keymap.c (Fdefine_key): Doc fix.
15734
15735 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
15736
157372002-07-02 Juanma Barranquero <lektu@terra.es>
15738
15739 * keymap.c (syms_of_keymap): Fix typo.
15740
157412002-07-01 Andrew Choi <akochoi@shaw.ca>
15742
15743 * s/darwin.h: Define POSIX_SIGNALS.
15744
15745 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
15746 and FSRefMakePath to convert FSSpec returned with Apple Event to
15747 Posix pathname.
15748 (mac_initialize) [TARGET_API_MAC_CARBON]:
15749 Call init_required_apple_events and disable the `Quit' menu item
15750 provided automatically by the Carbon Toolbox.
15751
157522002-07-01 Dave Love <fx@gnu.org>
15753
15754 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15755 for K&R.
15756
15757 * xterm.c: Fix prototype for K&R.
15758
15759 * term.c (costs_set): Declare static, non-initialized for pcc.
15760
157612002-07-01 Richard M. Stallman <rms@gnu.org>
15762
15763 * keyboard.c (timer_last_idleness_start_time): New variable.
15764 (timer_start_idle): Set that.
15765 (read_key_sequence): Use that to reset timer_idleness_start_time
15766 to previous value.
15767
15768 * window.c (Frecenter): With arg, set optional_new_start.
15769
15770 * xdisp.c (redisplay_internal): Make optional_new_start really work.
15771
15772 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
15773 buffer for completion.
15774
157752002-06-29 Ken Raeburn <raeburn@gnu.org>
15776
15777 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
15778
157792002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15780
15781 * keyboard.c (readable_filtered_events): New function that filters
15782 FOCUS_IN_EVENT depending on parameter.
15783 (readable_events): Calls readable_filtered_events, not filtering
15784 FOCUS_IN_EVENT.
15785 (get_filtered_input_pending): New function, filtering parameter passed
15786 to readable_filtered_events.
15787 (get_input_pending): Calls get_filtered_input_pending, not filtering
15788 FOCUS_IN_EVENT.
15789 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
15790 FOCUS_IN_EVENT.
15791
15792 * xterm.h (struct x_output): Add focus_state.
15793
15794 * xterm.c (x_focus_changed): New function.
15795 (x_detect_focus_change): New function.
15796 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
15797 EnterNotify and LeaveNotify to track X focus changes.
15798
157992002-06-28 Andreas Schwab <schwab@suse.de>
15800
15801 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
15802
158032002-06-27 Kim F. Storm <storm@cua.dk>
15804
52eb0373 15805 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
15806 (mode_line_string_face_prop): New variables.
15807 (store_mode_line_string): New function.
15808 (display_mode_element): Use store_mode_line_string to
15809 add mode-line string elements to mode_line_string_list
15810 when mode_line_string_list is non-nil.
15811 (Fformat_mode_line): Now returns propertized string by
15812 default. New arg NO-PROPS to ignore properties.
15813 (decode_mode_spec): Only add two dashes for %- in propertized
15814 mode-line string.
15815 (syms_of_xdisp): Init and staticpro mode_line_string_list.
15816
158172002-06-27 Stefan Monnier <monnier@cs.yale.edu>
15818
15819 * minibuf.c (minibuffer_completion_contents): Add return type.
15820
158212002-06-27 Juanma Barranquero <lektu@terra.es>
15822
15823 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
15824
158252002-06-26 Juanma Barranquero <lektu@terra.es>
15826
15827 * fileio.c (read_file_name_cleanup): Add missing return.
15828
158292002-06-26 Richard M. Stallman <rms@gnu.org>
15830
15831 * window.c (Frecenter): Don't set force_start flag.
15832
15833 * minibuf.c (do_completion, Fminibuffer_complete_word)
15834 (Fminibuffer_completion_help): Complete just the text before point.
15835 (minibuffer_completion_contents): New function.
15836
15837 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
15838
15839 * frame.c (frames_bury_buffer): Function deleted.
15840
158412002-06-25 Miles Bader <miles@gnu.org>
15842
15843 * callint.c (Fcall_interactively): When checking to see if doprnt hit
15844 the end of callint_message, allow for a terminating '\0'.
15845
158462002-06-24 Juanma Barranquero <lektu@terra.es>
15847
52eb0373 15848 * w32select.c: Include composite.h.
048addec
JD
15849
15850 * w16select.c: Likewise.
15851
158522002-06-24 Kenichi Handa <handa@etl.go.jp>
15853
15854 * callproc.c (Fcall_process): If code detection is necessary,
15855 call detect_coding directly here.
15856
15857 * coding.c (detect_eol): Preserve coding->cmp_data.
15858
15859 * w16select.c (Fw16_get_clipboard_data):
15860 * w32fns.c (w32_to_x_font):
15861 * w32select.c (Fw32_get_clipboard_data):
15862 * xselect.c (selection_data_to_lisp_data):
15863 * xterm.c (XTread_socket): Disable composition handling.
15864
158652002-06-24 Stefan Monnier <monnier@cs.yale.edu>
15866
15867 * print.c (temp_output_buffer_setup): Kill all local variables.
15868
158692002-06-22 Stefan Monnier <monnier@cs.yale.edu>
15870
15871 * lread.c (Fread): Remove redundant and imprecise declaration.
15872
15873 * xfns.c (check_x_display_info): Use check_x_frame.
15874
15875 * .gdbinit (xprintsym): Use the new `xname' field.
15876 (xsymbol): Use it.
15877
158782002-06-22 Jason Rumney <jasonr@gnu.org>
15879
15880 * w32fns.c (file_dialog_callback): New function.
15881 (Fx_file_dialog): Allow selecting directories as well as files.
15882
158832002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15884
15885 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 15886 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
15887
158882002-06-17 Andrew Choi <akochoi@shaw.ca>
15889
15890 * macterm.c (mac_scroll_area): Set foreground and backcolor to
15891 black and white before scrolling. Restore frame background and
15892 foreground color after scrolling.
15893 (do_window_update): Call XClearWindow before calling expose_frame.
15894 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
15895 FRAME_FOREGROUND_PIXEL of frame.
15896
15897 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15898 test Mac command key as <ALT> key.
15899
159002002-06-17 Stefan Monnier <monnier@cs.yale.edu>
15901
15902 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
15903
15904 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
15905 Lookup keys in function-key-map immediately so that key-translation-map
15906 can be applied earlier.
15907 Remove function_key_possible and key_translation_possible, replaced
15908 by checking `keytran_start < t'.
15909
15910 * .gdbinit (xsymbol): Use the new `xname' field.
15911
159122002-06-17 Andrew Choi <akochoi@shaw.ca>
15913
15914 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
15915 test Mac command key as <ALT> key.
15916
15917 * mac.c (do_applescript): Call initialize_applescript if necessary
15918 when first called. Dispose of result_desc only when there is no error.
15919 (Fdo_applescript): Use %d format specifier instead of %ld.
15920
159212002-06-16 Andrew Choi <akochoi@shaw.ca>
15922
15923 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
15924 of FrontWindow for cases keyDown and autoKey.
15925
15926 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
15927 Vdefault_fontset to Monaco with mac-roman coding.
15928
15929 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
15930 init_process before and after inclusion of Carbon/Carbon.h, resp.
15931
15932 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
15933 cursor_gc.
15934 (add_font_name_table_entry): New function.
15935 (init_font_name_table): Use add_font_name_table_entry; add italic,
15936 bold, and bold-italic entries for truetype fonts.
15937
15938 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
15939 for Mac too.
15940 (try_font_list) [MAC_OS]: If no font matches given registry, try
15941 fonts with any registry matching face_family.
15942 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
15943
15944 * s/darwin.h: If autoconf detects the Ncurses library, define
15945 LIBS_TERMCAP to -lncurses to use it.
15946
159472002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
15948
15949 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
15950
159512002-06-15 Richard M. Stallman <rms@gnu.org>
15952
15953 * window.c (Fset_window_configuration): Explicitly preserve
15954 the point value that new_current_buffer had at the start.
15955
159562002-06-14 Juanma Barranquero <lektu@terra.es>
15957
15958 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
15959 Fix typos.
15960
159612002-06-14 Kim F. Storm <storm@cua.dk>
15962
15963 * insdel.c (insert_1_both, insert_from_string_1)
15964 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
15965 insert happened in the end_unchanged region. Otherwise, the
15966 redisplay may be confused and duplicate the last line in the
15967 buffer [seen after save-buffer when require-final-newline==t].
15968
159692002-06-13 Jason Rumney <jasonr@gnu.org>
15970
15971 * w32.c (init_environment): Remove EMACSLOCKDIR.
15972 (stat): Swap _S_IFDIR and _S_IFREG.
15973
159742002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15975
15976 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
15977 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
15978 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
15979 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
15980 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
15981 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
15982 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
15983 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
15984 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
15985 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
15986 SELECTION_REQUEST_EVENT, selection_clear_event to
15987 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
15988 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
15989 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
15990 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
15991 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
15992 no_event to NO_EVENT.
15993
159942002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15995
15996 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
15997
159982002-06-12 Stefan Monnier <monnier@cs.yale.edu>
15999
16000 * intervals.c (textget): Don't forget to `return'.
16001 (lookup_char_property): Use XCAR/XCDR.
16002
160032002-06-12 Juanma Barranquero <lektu@terra.es>
16004
16005 * xdisp.c (Fformat_mode_line): Fix typo.
16006
160072002-06-12 Kim F. Storm <storm@cua.dk>
16008
16009 * xdisp.c (Fformat_mode_line): New function.
16010 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
16011 (store_frame_title_char, store_frame_title): Use unconditionally.
16012 (init_xdisp): Defsubr Fformat_mode_line.
16013 Initialize frame_title_buf etc. unconditionally.
16014
160152002-06-11 Stefan Monnier <monnier@cs.yale.edu>
16016
16017 * keyboard.c (read_key_sequence):
16018 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
16019 things through those maps after downcasing events.
16020 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
16021 applies after function-key-map.
16022 Make sure that keytran can be done in the middle in the sequence.
16023 Be careful not to throw away events past the one we downcase.
16024
16025 * lread.c (read_integer): Remove unused var `tem'.
16026 (read1): Fix int/Lisp_Object mixup.
16027
16028 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
16029
160302002-06-11 Richard M. Stallman <rms@gnu.org>
16031
16032 * keyboard.c (readable_events): Ignore any number of
16033 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
16034
160352002-06-09 Miles Bader <miles@gnu.org>
16036
16037 * xfaces.c (Ftty_supports_face_attributes_p): New function.
16038 (parse_rgb_list, tty_lookup_color): New functions.
16039 (tty_defined_color): Use `tty_lookup_color' to do all the work.
16040 (color_distance, Fcolor_distance): New functions.
16041 (TTY_SAME_COLOR_THRESHOLD): New macro.
16042 (Qtty_color_standard_values): New variable.
16043 (syms_of_xfaces): Initialize new vars & functions.
16044
160452002-06-08 Colin Walters <walters@verbum.org>
16046
16047 * textprop.c (Vchar_property_alias_alist): New variable.
16048 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
16049
16050 * intervals.c (lookup_char_property): New function for looking up
16051 overlay and text properties, created from textget.
16052 (textget): Use it.
16053
16054 * intervals.h (lookup_char_property): Declare.
16055 (Vchar_property_alias_alist): Declare.
16056
16057 * buffer.c (Foverlay_get): Use lookup_char_property.
16058
160592002-06-07 Sam Steingold <sds@gnu.org>
16060
16061 * xselect.c (lisp_data_to_selection_data): Fix last change:
16062 *data_ret is not a Lisp string, while unibyte_string is.
16063
160642002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
16065
16066 * xselect.c (lisp_data_to_selection_data): Fix last change:
16067 set size_ret.
16068
160692002-06-07 Andreas Schwab <schwab@suse.de>
16070
16071 * m/amdx86-64.h: New file.
16072
160732002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
16074
16075 * fns.c (Fstring_make_unibyte): Doc fix.
16076
16077 * xselect.c (lisp_data_to_selection_data): If the requested type
16078 is STRING, call string_make_unibyte to encode the selected text
16079 as a string.
16080
16081 * window.c (Fset_window_hscroll): Doc fix.
16082
160832002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16084
16085 * fileio.c (choose_write_coding_system):
16086 Call select-safe-coding-system properly.
16087
160882002-06-03 Richard M. Stallman <rms@gnu.org>
16089
16090 * xdisp.c (message_with_string): Error if STRING is not a string.
16091
16092 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
16093
16094 * fileio.c (choose_write_coding_system): Pass FILE arg to
16095 Vselect_safe_coding_system_function.
16096
160972002-06-03 Ken Raeburn <raeburn@gnu.org>
16098
16099 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
16100
161012002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
16102
16103 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
16104 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
16105 * keymap.c (describe_command): Likewise.
16106 * minibuf.c (read_minibuf): Likewise.
16107
16108 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
16109 Cast `current_column' return value to int.
16110 (back_to_previous_visible_line_start)
16111 (reseat_at_next_visible_line_start, next_element_from_buffer):
16112 Cast `indented_beyond_p' 3rd arg to float.
16113
16114 * indent.c (last_known_column): Now a float.
16115 (current_column_1, position_indentation, current_column)
16116 (string_display_width): Return float.
16117 (Fcurrent_column): Cast `current_column' return value to int.
16118 (Fcurrent_indentation): Cast `position_indentation' retval to int.
16119 (indented_beyond_p): Third arg now a float.
16120 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
16121
16122 * lisp.h (current_column): Now returns float.
16123 (indented_beyond_p): 3rd arg now a float.
16124
161252002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
16126
16127 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
16128 is Qcompound_text_with_extensions.
16129
16130 * xselect.c (lisp_data_to_selection_data): Always set selection
16131 type as string if x_encode_text returns streingp non-NULL.
16132
16133 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
16134
161352002-05-30 Richard M. Stallman <rms@gnu.org>
16136
16137 * window.c (Fset_window_configuration): Correct the handling
16138 of point in current buffer, to work with multiple windows.
16139
161402002-05-29 Colin Walters <walters@verbum.org>
16141
16142 * lread.c (Fread_from_string): Don't depend on order of evaluation
16143 for C function parameters.
16144
161452002-05-28 Richard M. Stallman <rms@gnu.org>
16146
16147 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
16148 way for blinked-off state and for a nonselected window.
16149
16150 * window.c (window_scroll_pixel_based): Don't call Fbolp;
16151 instead, see if the new start pos is at beginning of line.
16152
16153 * fileio.c (Fwrite_region): If START is a string, don't
16154 make any annotations.
16155
16156 * eval.c (syms_of_eval): Doc fix.
16157
161582002-05-28 Colin Walters <walters@debian.org>
16159
16160 * emacs.c (USAGE1): Add --no-splash.
16161 (standard_args): Ditto.
16162
161632002-05-28 Colin Walters <walters@gnu.org>
16164
16165 * lread.c (readchar_count): New variable.
16166 (readchar): Increment it.
16167 (unreadchar): Decrement it.
16168 (read_multibyte): Decrement it.
16169 (Vread_with_symbol_positions): New variable.
16170 (Vread_symbol_positions_list): New variable.
16171 (read_internal_start): New function, created from Fread and
16172 Fread_from_string. Handle Vread_symbol_positions_list and
16173 Vread_with_symbol_positions.
16174 (readevalloop, Fread, Fread_from_string): Use it.
16175 (read1): Use readchar_count to add symbol positions to
16176 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
16177 (syms_of_lread): DEFVAR_LISP and initialize them.
16178
16179 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
16180 (substitute_object_recurse, substitute_object_in_subtree)
16181 (substitute_in_interval): Prototype.
16182 (read_multibyte): Return c if it's less than zero.
16183
161842002-05-28 Kim F. Storm <storm@cua.dk>
16185
16186 * fileio.c (Fread_file_name_internal): Added brute-force
16187 speed up for using predicate file-directory-p.
16188
161892002-05-28 Kim F. Storm <storm@cua.dk>
16190
16191 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
16192 New variables.
16193 (syms_of_fileio): DEFVAR_LISP them.
16194 (read_file_name_cleanup): New unwind function.
16195 (Fread_file_name_internal): Only return completions satifying
16196 Vread_file_name_predicate. Temporarily unwind protect and rebind
16197 default-directory while checking completions against the predicate.
16198 (Fread_file_name): Added PREDICATE argument. Specbind it to
16199 Vread_file_name_predicate during completion.
16200 Call Vread_file_name_function to read the file name if non-nil.
16201
16202 * lisp.h (Fread_file_name): Now has 6 args.
16203
16204 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
16205 predicate for Fread_file_name when reading directory name.
16206 Supply Qnil for predicate in other calls to Fread_file_name.
16207
162082002-05-26 Miles Bader <miles@gnu.org>
16209
16210 * term.c (tty_capable_p): New function.
16211 * dispextern.h (tty_capable_p): New function declaration.
16212 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
16213 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
16214
162152002-05-23 Stefan Monnier <monnier@cs.yale.edu>
16216
16217 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
16218 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
16219 (Vwrite_region_annotate_functions): Docstring fix.
16220
162212002-05-23 Kim F. Storm <storm@cua.dk>
16222
16223 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
16224 phys_cursor's hpos is overwritten. This is still not completely
16225 correct, as it doesn't really make sense to use hpos at all to
16226 get the cursor glyph (as that is relative to the width of the
16227 characters on the line, which may have changed during the update).
16228
162292002-05-22 Jason Rumney <jasonr@gnu.org>
16230
16231 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
16232 Lisp_Object.
16233 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
16234 Use modified enumfont_t struct.
16235
16236 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
16237
16238 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
16239 Handle the `hbar' cursor type.
16240 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
16241
16242 * w32fns.c (Qhbar): New variable.
16243 (x_specified_cursor_type): Use it.
16244
162452002-05-21 Ken Raeburn <raeburn@gnu.org>
16246
16247 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
16248 now, when the address is needed.
16249
162502002-05-21 Colin Walters <walters@gnu.org>
16251
16252 * Makefile.in (shortlisp): Add font-core.el.
16253
162542002-05-20 Richard M. Stallman <rms@gnu.org>
16255
16256 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
16257
16258 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
16259 equivalent key bindings here.
16260
162612002-05-20 Ken Raeburn <raeburn@gnu.org>
16262
16263 Change symbol structure to contain a lisp object for the symbol
16264 name:
16265 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
16266 object field named "xname".
16267 (SYMBOL_NAME): New macro.
16268 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
16269 name field.
16270 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
16271 (mark_object, gc_sweep): Use symbol xname field and XSTRING
16272 instead of name field.
16273 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
16274 SYMBOL_NAME instead of XSYMBOL and name field.
16275 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
16276 instead of XSYMBOL and name field.
16277 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
16278 and SYMBOL_NAME instead of XSYMBOL and name field.
16279 * coding.c (Fread_coding_system, code_convert_region1)
16280 (code_convert_string1, code_convert_string_norecord)
16281 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
16282 XSYMBOL and name field.
16283 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
16284 (Fmake_variable_buffer_local, Fmake_local_variable)
16285 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
16286 of XSYMBOL and name field.
16287 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
16288 XSYMBOL and name field.
16289 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
16290 instead of XSYMBOL and name field.
16291 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
16292 XSYMBOL and name field.
16293 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
16294 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
16295 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
16296 instead of XSYMBOL and name field.
16297 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
16298 (parse_modifiers, apply_modifiers, Fevent_convert_list)
16299 (parse_solitary_modifier, Fexecute_extended_command):
16300 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
16301 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
16302 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
16303 of XSYMBOL and name field.
16304 (describe_command, describe_translation): Use SYMBOL_NAME and
16305 assignment instead of XSYMBOL and name field and XSETSTRING.
16306 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
16307 instead of XSYMBOL and name field.
16308 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
16309 name field and XSETSTRING.
16310 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
16311 of XSYMBOL and name field.
16312 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
16313 assignment instead of XSYMBOL and name field and XSETSTRING.
16314 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
16315 XSTRING instead of XSYMBOL and name field.
16316 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
16317 and XSTRING instead of XSYMBOL and name field.
16318 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
16319 and XSTRING instead of XSYMBOL and name field.
16320 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
16321 XSTRING instead of XSYMBOL and name field.
16322 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
16323 of XSYMBOL and name field.
16324 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
16325 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
16326
163272002-05-19 Ken Raeburn <raeburn@gnu.org>
16328
16329 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
16330 and XCDR real rvalues in most configurations.
16331
16332 * buffer.c (fix_overlays_in_range, fix_overlays_before):
16333 Don't take the address of the cdr part of a cons cell; instead, track
16334 the parent cell and call XSETCDR, or set the variable for the head
16335 of the list if we haven't started down the list yet.
16336
163372002-05-19 Richard M. Stallman <rms@gnu.org>
16338
16339 * doc.c (reread_doc_file): Don't ask for confirmation.
16340
163412002-05-18 Jason Rumney <jasonr@gnu.org>
16342
16343 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
16344 (xbm_load_image): Use it.
16345 (xbm_load): Ditto.
16346 (xbm_read_bitmap_data): Reverted to xfns.c version.
16347 From David Ponce <david@dponce.com>.
16348
163492002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
16350
16351 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
16352 2.02 and later.
16353
163542002-05-16 Juanma Barranquero <lektu@terra.es>
16355
16356 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
16357
163582002-05-15 Stefan Monnier <monnier@cs.yale.edu>
16359
16360 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
16361 meaningful test.
16362 (read_char_minibuf_menu_prompt): Fix typo.
16363
163642002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
16365
16366 * eval.c (Fcommandp): Doc fix.
16367
163682002-05-13 Stefan Monnier <monnier@cs.yale.edu>
16369
16370 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
16371 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
16372 (Fset_keymap_parent): Gcpro a bit more.
16373 (access_keymap): Gcpro around meta_map call and around the main loop.
16374 (get_keyelt): Gcpro when following indirect references.
16375 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
16376 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
16377 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
16378 Remove useless ad-hoc remap code.
16379
163802002-05-13 Richard M. Stallman <rms@gnu.org>
16381
16382 * search.c (search_buffer): Give up boyer moore search if inverse
16383 translation change charset_base.
16384
163852002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
16386
16387 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
16388 characters is carried over from the previous block of text, adjust
16389 coding->produced to account for the extra character.
16390
163912002-05-11 Andreas Schwab <schwab@suse.de>
16392
16393 * coding.c (intersection): Keep the elements of the returned list
16394 in the same order as in the first list.
16395
163962002-05-11 Kim F. Storm <storm@cua.dk>
16397
3419757d 16398 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
16399 only update cmm_size if realloc actually succeeds.
16400 Testing with initial size of 2 elements revealed that using
16401 realloc on GNU/Linux would cause a random trap in xmalloc
16402 later on, so I rewrote the code to use malloc/bcopy/free instead
16403 of realloc.
16404
164052002-05-10 Jason Rumney <jasonr@gnu.org>
16406
16407 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
16408
164092002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
16410
16411 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
16412 parens, to ensure correct evaluation order.
16413
164142002-05-10 Kim F. Storm <storm@cua.dk>
16415
16416 * keymap.c (Vemulation_mode_map_alists): New variable.
16417 (syms_of_keymap): DEFVAR_LISP it.
16418 (current_minor_maps): Process keymap alists in that list before
16419 minor-mode-overriding-map-alist and minor-mode-map-alist.
16420
164212002-05-09 Richard M. Stallman <rms@gnu.org>
16422
16423 * search.c (Freplace_match): Doc fix.
16424
164252002-05-09 Kim F. Storm <storm@cua.dk>
16426
16427 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
16428 Enlarge cursor rectangle drawn around image with non-zero relief.
16429
16430 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
16431 Enlarge cursor rectangle drawn around image with non-zero relief.
16432
16433 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
16434 Enlarge cursor rectangle drawn around image with non-zero relief.
16435
164362002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
16437
16438 * xselect.c (lisp_data_to_selection_data): Don't set selection
16439 type if comes from the Lisp object's car. If the selection
16440 contains a pure ASCII text, always return QSTRING as its type.
16441
164422002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16443
16444 * mac.c (mac-cut-function): Doc fix.
16445
164462002-05-05 Richard M. Stallman <rms@gnu.org>
16447
16448 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
16449
164502002-05-04 Jason Rumney <jasonr@gnu.org>
16451
16452 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
16453 for event-click-count.
16454
16455 * process.c (init_process): Only add server subfeature if we can
16456 use non-blocking I/O.
16457
164582002-05-04 Andrew Choi <akochoi@shaw.ca>
16459
16460 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
16461 repeatedly.
16462
164632002-05-03 Jason Rumney <jasonr@gnu.org>
16464
16465 * process.c (Fmake_network_process): Only support server sockets
16466 when we can make them non-blocking.
16467
16468 * s/ms-w32.h (HAVE_SELECT): Define.
16469
16470 * w32.h (FILE_NDELAY): New flag.
16471
16472 * w32.c (sys_getpeername, fcntl): New functions.
16473 (_sys_read_ahead): Temporarily block on non-blocking sockets.
16474
16475 * w32proc.c: include sys/file.h.
16476
164772002-05-03 Colin Walters <walters@verbum.org>
16478
16479 * callproc.c (Vgame_score_directory): Renamed to
16480 Vshared_game_score_directory.
16481
164822002-04-30 Richard M. Stallman <rms@gnu.org>
16483
16484 * s/gnu.h [emacs]: Include stdio.h.
16485 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
16486
16487 * eval.c (do_autoload): Error if called while preparing to dump.
16488
16489 * fns.c (Frequire): Error if need to load while preparing to dump.
16490
164912002-04-28 Colin Walters <walters@verbum.org>
16492
16493 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
16494 Default to "~/.emacs.d/games".
16495
164962002-04-29 Stefan Monnier <monnier@cs.yale.edu>
16497
16498 * lread.c (openp): Change arg exec_only to predicate.
16499 (build_load_history): Use XCAR/XCDR.
16500 (Flocate_file_internal): New fun.
16501 (syms_of_lread): Defsubr it.
16502 (Fload): Update call to openp.
16503
16504 * lisp.h (openp): Update prototype.
16505
16506 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
16507 * w32proc.c (sys_spawnve):
16508 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
16509 * w32.c (check_windows_init_file):
16510 * sound.c (Fplay_sound_internal):
16511 * process.c (Fstart_process):
16512 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
16513 * mac.c (run_mac_command):
16514 * emacs.c (init_cmdargs):
16515 * callproc.c (Fcall_process): Update call to openp.
16516
16517 * textprop.c (remove_properties): Don't use XCAR without CONSP.
16518
16519 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
16520
165212002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16522
16523 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
16524 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
16525
165262002-04-28 Richard M. Stallman <rms@gnu.org>
16527
16528 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
16529
16530 * eval.c (Fcommandp): New arg for_call_interactively.
16531 * lisp.h (Fcommandp): Declare new arg.
16532
165332002-04-28 Jason Rumney <jasonr@gnu.org>
16534
16535 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
16536
16537 * w32.c (stat, fstat): Use file index information to generate
16538 inodes for directories where available.
16539
165402002-04-26 Andrew Choi <akochoi@shaw.ca>
16541
16542 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
16543 [HAVE_CARBON]: Include Mac object files.
16544
16545 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
16546 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
16547 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
16548 MAC_OSX, and MAC_OS instead of macintosh.
16549
16550 * editfns.c [MAC_OS8]: Include stdio.h.
16551
16552 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
16553
16554 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
16555 Apple Monaco.
16556
78819ebb 16557 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
16558 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
16559 calling select.
16560
16561 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
16562
16563 * tparam.c [MAC_OSX]: Don't define BC and UP.
16564
16565 * config.in [HAVE_CARBON]: Add.
16566
16567 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
16568 Move here from mac/src and mac/inc.
16569
16570 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
16571
165722002-04-26 Gerd Moellmann <gerd@gnu.org>
16573
16574 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
16575 Compute phys_cursor_width from the x position returned
16576 by x_draw_glyhs, which is cheaper.
16577 (x_display_and_set_cursor): Compute the buffer-local value
16578 of `cursor-in-non-selected-windows' only when needed.
16579
165802002-04-25 Gerd Moellmann <gerd@gnu.org>
16581
16582 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
16583 cursor on a stretch glyph has a width that depends on
16584 x_stretch_cursor_p.
16585
165862002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16587
16588 * abbrev.c (abbrev-start-location): Doc fix.
16589
16590 * indent.c (Fvertical_motion): Fix last change.
16591
165922002-04-25 Gerd Moellmann <gerd@gnu.org>
16593
16594 * indent.c (Fvertical_motion): Move to the start of the line
16595 containing PT before moving up or down.
16596
165972002-04-24 Gerd Moellmann <gerd@gnu.org>
16598
16599 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
16600 case of writing a whole row, more or less analogous to the case of
16601 writing only parts of a row.
16602
16603 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
16604 0 for NO_CURSOR.
16605
16606 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
16607
166082002-04-23 Colin Walters <walters@verbum.org>
16609
16610 * buffer.c (syms_of_buffer): Doc fix.
16611
166122002-04-23 Gerd Moellmann <gerd@gnu.org>
16613
16614 * xterm.c (notice_overwritten_cursor): Handle the special case
16615 of the cursor being in the first blank non-text line at the
16616 end of a window.
16617
16618 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
16619 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
16620 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
16621 bar cursors only, to make phys_cursor_width contain what its name
16622 suggests.
16623 (notice_overwritten_cursor): Consider the cursor image erased if
16624 the output area intersects the cursor image in y-direction.
16625
166262002-04-23 Simon Marshall <simon@gnu.org>
16627
16628 * xfns.c (x_set_mouse_color): Change default for cross_cursor
16629 to XC_hand2.
16630
166312002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16632
16633 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
16634
166352002-04-22 Kim F. Storm <storm@cua.dk>
16636
16637 * textprop.c (remove_properties): Fixed trap for malformed plist.
16638
166392002-04-22 Richard M. Stallman <rms@gnu.org>
16640
16641 * cmds.c (Fend_of_line): Handle intangible text in mid line.
16642
16643 * window.c (make_window): Initialize height_fixed_p,
16644 last_cursor_off_p, and p->cursor_off_p slots.
16645
166462002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16647
16648 * fns.c (use-dialog-box): Doc fix.
16649
166502002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16651
16652 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
16653 variables `row', `i' and `area'.
16654 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
16655 toolkit library.
16656
166572002-04-19 Stefan Monnier <monnier@cs.yale.edu>
16658
16659 * xfaces.c (clear_font_table): Don't free the default font of
16660 a frame even if it's on another display.
16661 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
16662 that could be Qt.
16663
166642002-04-19 Juanma Barranquero <lektu@terra.es>
16665
16666 * indent.c (Fmove_to_column): Remove unused local variable
16667 `next_boundary_byte'.
16668 (current_column_1): Likewise.
16669
166702002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
16671
16672 * msdos.c (Qhbar): New variable.
16673 (syms_of_msdos): Intern and staticpro it.
16674 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
16675 cursor type.
16676
166772002-04-19 Dave Lambert <dlambert@acm.org>
16678
16679 Theses change implement an underscore-like (`hbar') cursor.
16680
16681 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
16682
16683 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
16684 Handle the `hbar' cursor type.
16685 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
16686
16687 * xfns.c (Qhbar): New variable.
16688 (syms_of_xfns): Intern and staticpro it.
16689 (x_specified_cursor_type): Handle `hbar' cursor.
16690
16691 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
16692 not defined.
16693
166942002-04-18 Richard M. Stallman <rms@gnu.org>
16695
16696 * textprop.c (remove_properties): New arg LIST allows scanning
16697 either a list or a plist.
16698 (interval_has_some_properties_list): New function, like
16699 interval_has_some_properties using list instead of plist.
16700 All callers changed.
16701 (Fremove_list_of_text_properties): New function.
16702 (syms_of_textprop): Defsubr it.
16703
167042002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
16705
16706 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
16707
167082002-04-17 Juanma Barranquero <lektu@terra.es>
16709
16710 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
16711
167122002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
16713
16714 * window.c (coordinates_in_window): Don't report on margin area
16715 if its width is zero.
16716
167172002-04-16 Jason Rumney <jasonr@gnu.org>
16718
16719 * w32fns.c (Fx_file_dialog): Decode file name before using.
16720
16721 * w32term.c (construct_drag_n_drop): Likewise.
16722
167232002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
16724
16725 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
16726 store load-history in pure space.
16727
16728 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
16729
167302002-04-16 Stefan Monnier <monnier@cs.yale.edu>
16731
16732 * xterm.c (Qlatin_1, Qutf_8): New vars.
16733 (syms_of_xterm): Initialize them.
16734 (XTread_socket): Eliminate incorrect optimization that tried to avoid
16735 decoding the output of X*LookupString.
16736 Always use latin-1 to decode the output of XLookupString.
16737 Try Xutf8LookupString if XmbLookupString failed.
16738
16739 * region-cache.c (new_region_cache): Use BEG.
16740
167412002-04-16 Gerd Moellmann <gerd@gnu.org>
16742
16743 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
16744 configuration files.
16745 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
16746 returns 0.
16747
167482002-04-15 Andreas Schwab <schwab@suse.de>
16749
16750 * config.in: Regenerated using autoheader.
16751
16752 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
16753 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
16754 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
16755 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
16756 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
16757 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
16758 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
16759 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
16760 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
16761 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
16762 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
16763 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
16764 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
16765 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
16766 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
16767 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
16768 STACK_DIRECTION, now set by autoconf.
16769
167702002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16771
16772 * dispnew.c (marginal_area_string): Sort arguments.
16773
16774 * dispextern.h (marginal_area_string): Add prototype.
16775
167762002-04-13 Richard M. Stallman <rms@gnu.org>
16777
16778 * fileio.c (Finsert_file_contents):
16779 Don't call temp_output_buffer_setup--do just part, by hand.
16780
16781 * coding.c (run_pre_post_conversion_on_str):
16782 Don't call temp_output_buffer_setup--do just part, by hand.
16783
16784 * keyboard.c (command_loop_1): Don't call start_hourglass
16785 or cancel_hourglass when executing a macro.
16786
16787 * marker.c (count_markers): New function.
16788
16789 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
16790 grow without limit. Move recently used elements to the front.
16791
167922002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
16793
16794 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
16795
167962002-04-12 Gerd Moellmann <gerd@gnu.org>
16797
16798 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
16799 rows marginal areas.
16800 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
16801 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
16802
16803 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
16804
168052002-04-12 Dave Love <fx@gnu.org>
16806
16807 * dispnew.c (marginal_area_string): New.
16808
16809 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
16810 (Qleft_margin, Qright_margin): Declare.
16811 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
16812
16813 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
16814 note_mode_line_highlight and extended.
16815
16816 * keyboard.c (Qleft_margin, Qright_margin): Declare.
16817 (make_lispy_event): Deal with mouse events in margins.
16818
168192002-04-12 Stefan Monnier <monnier@cs.yale.edu>
16820
16821 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
16822
16823 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
16824 than deactivating the mark if tmm is set to `lambda'.
16825 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
16826 Use a single event for HELP_EVENT.
16827 (Fexecute_extended_command): Save last_point_position.
16828
168292002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16830
16831 * lisp.h (Fpropertize): Add prototype.
16832
16833 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
16834
168352002-04-10 Colin Walters <walters@verbum.org>
16836
16837 * config.in: Add HAVE_SHARED_GAME_DIR.
16838
52eb0373 16839 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
16840 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
16841
168422002-04-10 Richard M. Stallman <rms@gnu.org>
16843
16844 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
16845
168462002-04-09 Stefan Monnier <monnier@cs.yale.edu>
16847
16848 * minibuf.c (read_minibuf): Use empty_string.
16849 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
16850 Short-circuit the search as soon as it "failed".
16851 (Fall_completions): Allow lambda forms and lists of strings for alist.
16852 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
16853 when require_match is nil.
16854 (Ftest_completion): Rename from `test_completion' and export to elisp.
16855 Call the predicate also when alist is a list.
16856 Obey Vcompletion_regexp_list.
16857 (do_completion, Fminibuffer_complete_and_exit): Use it.
16858 (Fassoc_string): Rename from `assoc_for_completion'.
16859 Allow list of strings as well and export to elisp.
16860
168612002-04-08 Stefan Monnier <monnier@cs.yale.edu>
16862
16863 * puresize.h (BASE_PURESIZE): Increase to 900KB.
16864
168652002-04-08 Juanma Barranquero <lektu@terra.es>
16866
16867 * w32.c (sys_accept): Don't hide variable `s'.
16868
168692002-04-05 Gerd Moellmann <gerd@gnu.org>
16870
16871 * callint.c (Fcall_interactively): Use INTEGERP instead of
16872 NUMBERP for checking Vhistory_length.
16873
168742002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16875
16876 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
16877 Doc fix to reflect it.
16878
168792002-04-04 Richard M. Stallman <rms@gnu.org>
16880
16881 * xdisp.c (display_mode_element): New arg RISKY.
16882 Disregard text props found or specified within a variable
16883 that isn't marked risky-local-variable.
16884 (Qrisky_local_variable): New variable.
16885 (syms_of_xdisp): Init and staticpro it.
16886
168872002-04-04 Stefan Monnier <monnier@cs.yale.edu>
16888
16889 * undo.c (record_point): New fun.
16890 (record_delete, record_insert): Use it.
16891
168922002-04-03 Juanma Barranquero <lektu@terra.es>
16893
16894 * doc.c (Fdocumentation): Add missing parentheses.
16895 (Fdocumentation_property): Likewise.
16896
168972002-04-03 Stefan Monnier <monnier@cs.yale.edu>
16898
16899 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
16900 data is 0, just return nil.
16901
169022002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
16903
16904 * msdos.c (syms_of_msdos): Fix last change with
16905 mouse_autoselect_window.
16906
169072002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16908
16909 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
16910 mouse_autoselect_window.
16911
169122002-04-02 Stefan Monnier <monnier@cs.yale.edu>
16913
16914 * keyboard.c (make_lispy_event): Handle unknown keysyms together
16915 with system-specific keysyms. Use it also for unknown function keys.
16916
16917 * doc.c (reread_doc_file): Return whether reload was attempted.
16918 (Fdocumentation, Fdocumentation_property): Don't try to reload
16919 if the doc is 0 and only ask once.
16920
16921 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
16922
169232002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
16924
16925 * keyboard.c (read_char): If the event was Qselect_window,
16926 restore timer_idleness_start_time to its previous value.
16927
16928 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
16929
169302002-04-01 Stefan Monnier <monnier@cs.yale.edu>
16931
16932 * region-cache.c (new_region_cache): Use BEG.
16933
16934 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
16935 Use BEG and BEG_BYTE.
16936
16937 * doc.c (get_doc_string): Return nil if the location is wrong.
16938 (reread_doc_file): New fun.
16939 (Fdocumentation, Fdocumentation_property):
16940 Call it if get_doc_string fails.
16941 (Fsnarf_documentation): Make it work for a dumped Emacs.
16942
16943 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
16944 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
16945
16946 * charset.c (Fstring): Allow 0 arguments.
16947
16948 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
16949
16950 * process.c (DATAGRAM_CONN_P, list_processes_1)
16951 (Fprocess_datagram_address, Fset_process_datagram_address)
16952 (Fset_network_process_options, server_accept_connection):
16953 Fix some int/Lisp_Object confusions (thank you union types).
16954
169552002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16956
16957 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
16958
16959 * w32term.c: Likewise.
16960 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
16961
16962 * keyboard.c (Qselect_window): New symbol.
16963 (head_table): Use it.
16964 (keys_of_keyboard): Bound select-window event to handle-select-window.
16965 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
16966
16967 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
16968 (last_window): New variable.
16969 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
16970 (note_mouse_movement): Remove reimplemented code in #if 0.
16971 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
16972 Emacs windows.
16973
16974 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
16975
169762002-03-31 Gerd Moellmann <gerd@gnu.org>
16977
16978 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
16979 Callers changed.
16980
169812002-03-30 Richard M. Stallman <rms@gnu.org>
16982
16983 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
16984 loop whenever it stops making progress.
16985
16986 * widget.c (set_frame_size): Don't call change_frame_size.
16987
169882002-03-30 Gerd Moellmann <gerd@gnu.org>
16989
16990 * dispnew.c (direct_output_for_insert):
16991 Call mark_window_display_accurate.
16992
169932002-03-29 Jason Rumney <jasonr@gnu.org>
16994
16995 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
16996
169972002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
16998
16999 * Makefile.in (lread.o): Depend on coding.h.
17000
17001 * lread.c (openp, Fload): Encode the file name before passing it
17002 to `stat', `access', and `emacs_open'.
17003 (openp): GCPRO the encoded file name. Don't recompute Lisp
17004 strings unnecessarily.
17005
170062002-03-29 Kim F. Storm <storm@cua.dk>
17007
17008 * fns.c (Flax_plist_put): Doc fix.
17009
170102002-03-28 Miles Bader <miles@gnu.org>
17011
17012 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
17013
170142002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17015
17016 * process.c (set-network-process-options): Add usage.
17017 (make-network-process): Doc fix.
17018
170192002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
17020
17021 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
17022
170232002-03-26 Richard M. Stallman <rms@gnu.org>
17024
17025 * fns.c (Fsubstring_no_properties): New function.
17026 (Flax_plist_get, Flax_plist_put): New functions.
17027 (syms_of_fns): defsubr them.
17028
17029 * xdisp.c (update_menu_bar): Test only update_mode_lines;
17030 don't test or alter w->update_mode_line.
17031
17032 * window.c (Fdisplay_buffer): Doc fix.
17033
170342002-03-24 Richard M. Stallman <rms@gnu.org>
17035
17036 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
17037
170382002-03-24 Gerd Moellmann <gerd@gnu.org>
17039
17040 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
17041 (Fdefmacro): Handle `(declare ...)'.
17042 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
17043 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
17044
170452002-03-24 Jason Rumney <jasonr@gnu.org>
17046
17047 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
17048 (xbm_file_p): Add prototypes.
17049 (xbm_format, xbm_image_p): Sync with xfns.c.
17050 (reflect_byte): New function.
17051 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
17052 (xbm_load_image): Create bitmaps with a depth of 1.
17053 (init_xfns): Enable XBM images.
17054
170552002-03-23 Jason Rumney <jasonr@gnu.org>
17056
17057 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
17058 correctly. Do not pass up_modifier to keyboard buffer.
17059
17060 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
17061
170622002-03-22 Stefan Monnier <monnier@cs.yale.edu>
17063
17064 * Makefile.in (bootstrapclean): New target.
17065 (bootstrap-temacs, bootstrap-doc): Remove.
17066 (bootstrap-emacs): Use a bog-standard `temacs'.
17067 Don't bother to build a DOC file.
17068
17069 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
17070
17071 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
17072 in temacs even if !CANNOT_DUMP.
17073 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
17074
17075 * alloc.c (check_pure_size): Only output a warning.
17076
170772002-03-22 Jason Rumney <jasonr@gnu.org>
17078
17079 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
17080 supported.
17081
17082 * w32term.c (zv_bits): Declare as short, for word alignment.
17083 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
17084 (syms_of_w32term): Define x-use-underline-position-properties.
17085
17086 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
17087 (clear_image_cache): Block input, fix logic, clear matrices in
17088 all frames that share this cache.
17089
170902002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
17091
17092 * emacs.c (main): Update the Copyright year in the blurb printed
17093 by "emacs --version".
17094
17095 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
17096
17097 * xterm.c (XTread_socket): If XK_ISO_Lock and
17098 XK_ISO_Last_Group_Lock are defined, handle keysyms between
17099 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
17100
171012002-03-21 Kim F. Storm <storm@cua.dk>
17102
17103 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
17104 menu-bar bindings in keymap and local-map properties _are_ used.
17105 But try keymap property first in accordance with 2002-01-03 patch.
17106 Added comment describing why this is not always reliable.
17107 (tool_bar_items): Ditto for tool-bar.
17108
171092002-03-21 Jason Rumney <jasonr@gnu.org>
17110
17111 * w32fns.c (x_clear_image_1): Disable color table code.
17112
171132002-03-21 Kim F. Storm <storm@cua.dk>
17114
17115 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
17116 removed the wrong version of the DEFUN macro; fixed it.
17117
17118 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
17119 Fmember rather than Fmemq).
17120 (Fprovide): Check that subfeatures is a list.
17121
17122 * process.c (QCfeature, QCdatagram): Removed variables.
17123 (QCtype, Qdatagram): New variables.
17124 (network_process_featurep): Removed function.
17125 (Fmake_network_process): Removed :feature check.
17126 Use :type 'datagram instead of :datagram t to create a datagram
17127 socket. This allows us to add other connection types (e.g. raw
17128 sockets) later in a consistent manner.
17129 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
17130 supported subfeatures for feature make-network-process.
17131 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
17132 Intern and staticpro QCtype and Qdatagram.
17133 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
17134
17135 * xfns.c: (QCtype): Remove duplicate declaration and
17136 initialization (is now declared in process.c).
17137
17138 * w32fns.c: (QCtype): Remove duplicate declaration and
17139 initialization (is now declared in process.c).
17140
171412002-03-21 Richard M. Stallman <rms@gnu.org>
17142
17143 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
17144 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
17145 when jumping to `fail' to avoid undoing reg changes in the
17146 last iteration of the loop.
17147 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
17148
17149 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
17150 Depend on process.h.
17151
171522002-03-20 Jason Rumney <jasonr@gnu.org>
17153
17154 Most of the following changes are still conditional on HAVE_IMAGES
17155 which is not set by default on Windows.
17156
17157 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
17158
17159 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
17160 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
17161 (four_corners_best, x_clear_image_1, x_clear_image)
17162 (x_alloc_image_color, postprocess_image)
17163 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
17164 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
17165 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
17166
17167 * w32gui.h (struct XImage): Define.
17168
17169 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
17170 extract mouse co-ordinates.
17171
171722002-03-20 Jason Rumney <jasonr@gnu.org>
17173
17174 * w32.c (init_winsock): Dynamically load new server and UDP
17175 socket functions.
17176 (socket_to_fd): New function.
17177 (sys_socket): Use it.
17178 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
17179 (sys_recvfrom, sys_sendto): New wrapper functions.
17180
17181 * process.c (QCfamily, QCfilter): Remove duplicate declaration
17182 and initialization.
17183
17184 * makefile.w32-in (LIBS): Remove $(WSOCK32).
17185
171862002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
17187
17188 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
17189 Don't use "sun" as a variable, it's a predefined constant on Sun
17190 machines.
17191
171922002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17193
17194 * bytecode.c (Fbyte_code): Revert last change.
17195
171962002-03-19 Kim F. Storm <storm@cua.dk>
17197
17198 * makefile.w32-in (LIBS): Add $(WSOCK32).
17199 From David Ponce <dponce@voila.fr>.
17200
172012002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17202
17203 * process.c (wait_reading_process_input): Move variables `pname'
17204 and `pnamelen' down where they are used.
17205
17206 * bytecode.c (Fbyte_code): Discard unused computed value to
17207 prevent gcc warning.
17208
17209 * lisp.h (Fplist_member): Add prototype.
17210
172112002-03-18 Kim F. Storm <storm@cua.dk>
17212
17213 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
17214 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
17215
17216 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
17217 Remove explicit GNU_LINUX settings for datagram support.
17218
172192002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17220
17221 * process.c (Fmake_network_process): Remove unused variable `sa'.
17222 Doc fix. Add usage:.
17223 (set_socket_options): Remove unused variables `optnum' and `opttype'.
17224
172252002-03-17 Richard M. Stallman <rms@gnu.org>
17226
17227 * xdisp.c (cursor_type_changed): New variable.
17228 (redisplay_internal): Redisplay all windows if cursor_type_changed.
17229 Clear it when clearing windows_or_buffers_changed.
17230 (try_cursor_movement, redisplay_window, try_window_id)
17231 (try_window_reusing_current_matrix): Test cursor_type_changed
17232 along with windows_or_buffers_changed.
17233
17234 * window.h (cursor_type_changed): New variable.
17235
17236 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
17237 not update_mode_lines, and always set it to 1.
17238
17239 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
17240 if no frames needed redrawing.
17241
172422002-03-17 Kim F. Storm <storm@cua.dk>
17243
17244 The following changes add support for network server processes,
17245 datagram connections, and local (unix) sockets.
17246
17247 * process.h (struct Lisp_Process): New member log.
17248 Doc fix: Member command used to indicate stopped network process.
17249 Doc fix: Member childp contains plist for network process.
17250 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
17251
17252 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
17253 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
17254 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
17255 New variables.
17256 (NETCONN1_P): New macro.
17257 (DATAGRAM_SOCKETS): New conditional symbol.
17258 (datagram_address): New array.
17259 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
17260 (status_message): Use concat3.
17261 (Fprocess_status): Add `listen' status to doc string. Return `stop'
17262 for a stopped network process.
17263 (Fset_process_buffer): Update contact plist for network process.
17264 (Fset_process_filter): Ditto. Don't enable input for stopped
17265 network processes. Server must listen, even if filter is t.
17266 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
17267 New functions.
17268 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
17269 (Fprocess_contact): Added KEY argument. Handle datagrams.
17270 (list_processes_1): Optionally show only processes with the query
17271 on exit flag set. Dynamically adjust column widths. Omit tty
17272 column if not needed. Report stopped network processes.
17273 Identify server and datagram network processes.
17274 (Flist_processes): New optional arg `query-only'.
17275 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
17276 (conv_lisp_to_sockaddr, set_socket_options)
17277 (network_process_featurep, unwind_request_sigio): New helper functions.
17278 (Fprocess_datagram_address, Fset_process_datagram_address):
17279 (Fset_network_process_options): New lisp functions.
17280 (Fopen_network_stream): Removed. Now defined in simple.el.
17281 (Fmake_network_process): New lisp function. Code is based on previous
17282 Fopen_network_stream, but heavily reworked with new property list based
17283 argument list, support for datagrams, server processes, and local
17284 sockets in addition to old client-only functionality.
17285 (server_accept_connection): New function.
17286 (wait_reading_process_input): Use it to handle incoming connects.
17287 Do not enable input on a new connection if process is stopped.
f63fd14e 17288 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
17289 (send_process): Handle datagram sockets.
17290 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
17291 network process is indicated by setting command field to t .
17292 (Fprocess_send_eof): No-op if datagram connection.
17293 (Fstatus_notify): Don't read input for a stream server socket or a
17294 stopped network process.
17295 (init_process): Initialize datagram_address array.
17296 (syms_of_process): Intern and staticpro new variables, defsubr new
17297 functions.
17298
172992002-03-16 Jason Rumney <jasonr@gnu.org>
17300
17301 * w32fns.c (w32_to_all_x_charsets): Return correct type in
17302 startup case.
17303
173042002-03-16 Richard M. Stallman <rms@gnu.org>
17305
17306 * xdisp.c (redisplay_internal, redisplay_windows):
17307 Use list_of_error to call internal_condition_case_1.
17308 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
17309 so as to catch all errors with no possibility of debugger redisplay.
17310 (list_of_error): New variable.
17311 (syms_of_xdisp): Init and staticpro it.
17312
17313 * print.c (print_object): Delete `\ ' from printed rep of frame.
17314
173152002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
17316
17317 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
17318 until its implementation is fixed.
17319
173202002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17321
17322 * xfns.c (png_load): Remove unused variable `gamma_str'.
17323
173242002-03-14 Richard M. Stallman <rms@gnu.org>
17325
17326 * xfns.c (x_real_positions): Handle failure in XQueryTree.
17327
173282002-03-14 Miles Bader <miles@gnu.org>
17329
17330 * intervals.c (adjust_for_invis_intang): New function.
17331 (set_point_both): Use `adjust_for_invis_intang' to do most of the
17332 work for dealing with invisible+intangible regions. Do so before
17333 and after both forward and backward movements, to handle both
17334 front-sticky and rear-sticky cases.
17335 * textprop.c (text_property_stickiness): Function moved here from
17336 `editfns.c'.
17337 * intervals.h (text_property_stickiness): New declaration.
17338 * editfns.c (char_property_eq): Function removed.
17339 (text_property_stickiness): Function moved to `textprop.c'.
17340
173412002-03-13 Jason Rumney <jasonr@gnu.org>
17342
17343 * config.in: Add STRFTIME_NO_POSIX2.
17344
17345 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
17346 and %OX when underlying strftime does not.
17347
173482002-03-13 Stefan Monnier <monnier@cs.yale.edu>
17349
17350 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
17351 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
17352 line) to avoid annoying flicker.
17353 (xm_scroll_callback): Get rid of the now unnecessary kludge.
17354 (XTread_socket): Mark it static.
17355
17356 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
17357
173582002-03-13 Kim F. Storm <storm@cua.dk>
17359
17360 * puresize.h (BASE_PURESIZE): Increase to 775000.
17361
173622002-03-12 Juanma Barranquero <lektu@terra.es>
17363
17364 * editfns.c (syms_of_editfns): Fix typo.
17365
173662002-03-12 Gerd Moellmann <gerd@gnu.org>
17367
17368 * xsmfns.c: Include stdio.h because termhooks.h needs it.
17369 Include termopt.h for interrupt_input.
17370
173712002-03-11 Andreas Schwab <schwab@suse.de>
17372
17373 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
17374
173752002-03-11 Gerd Moellmann <gerd@gnu.org>
17376
17377 * xterm.c (note_mouse_movement): Put code for
17378 x_autoselect_window_p in #if 0.
17379
17380 * lread.c (Fload): Don't assume that message_with_string uses the
17381 string it is given like a C string.
17382
173832002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17384
78819ebb 17385 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 17386
52eb0373 17387 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
17388 x_session_have_connection.
17389 (x_initialize): Add call to x_session_initialize.
17390
17391 * termhooks.h (enum event_kind): Add save_session_event.
17392
17393 * keyboard.c: Add Emacs event save_session_event.
17394
17395 * emacs.c (main): Add call to syms_of_xsmfns.
17396
78819ebb 17397 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
17398
17399 * config.in: Add HAVE_X_SM.
17400
17401 * Makefile.in (LIBXT): Add -lSM -lICE
17402 if HAVE_X_SM and not USE_X_TOOLKIT.
17403 (XOBJ): New file xsmfns.c added.
17404
17405 * xsmfns.c: New file for X session management.
17406
174072002-03-09 Jason Rumney <jasonr@gnu.org>
17408
17409 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
17410 read-only when setting modified time.
17411
174122002-03-08 Gerd Moellmann <gerd@gnu.org>
17413
17414 * xdisp.c (move_it_vertically_backward): At the end of the function,
17415 when moving forward by lines, treat terminal frames specially.
17416
17417 * keyboard.c (echo_char): Make sure to add a separator between
17418 keys even if echo_dash hasn't been called.
17419
17420 * xdisp.c: Use new string macros.
17421 (update_echo_area): Pass number of bytes to message3 instead of
17422 number of chars.
17423 (set_message_1): Don't access a string's size_byte directly.
17424 (decode_mode_spec_coding): Use number of bytes of eoltype string
17425 instead number of chars.
17426
17427 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
17428
174292002-03-08 Juanma Barranquero <lektu@terra.es>
17430
17431 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
17432 24-bit.
17433
174342002-03-06 Jason Rumney <jasonr@gnu.org>
17435
17436 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
17437
174382002-03-06 Gerd Moellmann <gerd@gnu.org>
17439
17440 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
17441 (cancel_echoing, echo_length, echo_truncate): Changed to
17442 work with new kboard definition.
17443 (echo_now): Use message3_nolog instead of message2_nolog.
17444
17445 * alloc.c (mark_kboards): Mark echo_string.
17446
17447 * keyboard.h (ECHOBUFSIZE): Removed.
17448 (struct kboard): Member echoptr removed, member echobuf renamed
17449 to echo_string.
17450
17451 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
17452 message3 instead of message2 to display the message using STRING's
17453 text properties.
17454
174552002-03-05 Andreas Schwab <schwab@suse.de>
17456
17457 * xdisp.c (hscroll_margin): Change to EMACS_INT.
17458
174592002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
17460
17461 * frame.c (default-frame-alist): Explain that setting it doesn't
17462 affect existing frames.
17463
174642002-03-05 Stefan Monnier <monnier@cs.yale.edu>
17465
17466 * indent.c (skip_invisible): Fix my brain fart.
17467
17468 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
17469
174702002-03-04 Stefan Monnier <monnier@cs.yale.edu>
17471
17472 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
17473 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
17474 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
17475 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
17476 and variables to use EMACS_INT instead of just int.
17477
17478 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
17479
174802002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
17481
17482 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
17483 environment, pass it down with corrected value.
17484
174852002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17486
17487 * lread.c (read_filtered_event): Do not call start_hourglass
17488 before returning.
17489
174902002-03-04 Juanma Barranquero <lektu@terra.es>
17491
17492 * w32term.c (x_display_and_set_cursor): Fix typo.
17493
174942002-03-03 Richard M. Stallman <rms@gnu.org>
17495
17496 * fileio.c (Fmake_temp_name): Doc fix.
17497
174982002-03-03 Gary Wong <gtw@gnu.org>
17499
17500 * termcap.c [!emacs]: Replace ospeed for building standalone
17501 libtermcap, for binary compatibility.
17502
17503 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
17504
175052002-03-03 Richard M. Stallman <rms@gnu.org>
17506
17507 * xrdb.c (file_p): Rename arg `path' to `filename'.
17508
17509 * abbrev.c (Fexpand_abbrev): Increment plist as use count
17510 only if it is an integer.
17511
17512 * xfns.c (png_load): Set screen_gamma based on f->gamma.
17513 If png_get_sRGB gives an answer, call png_set_gamma
17514 using the default image gamma value.
17515
17516 * lread.c (read1): When reading from a file, default string to
17517 multibyte only if it has some multibyte characters.
17518
17519 * print.c (print_object): Output multibyte chars 128...255
17520 using \x even if ! print_escape_multibyte.
17521
17522 * xdisp.c (display_mode_element): Move the places where
17523 bytepos, charpos, this, and lisp_string are set.
17524 Use lisp_string to set bytepos.
17525
17526 * xdisp.c (redisplay_internal):
17527 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
17528
17529 * xdisp.c (display_mode_element): Merge properties specified with
17530 :propertize onto those that come with the string.
17531
175322002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
17533
17534 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
17535 automatic-hscrolling. Users changed.
17536 <hscroll-margin>: Renamed from automatic-hscroll-margin.
17537 Users changed.
17538 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
17539
175402002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
17541
17542 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
17543
175442002-03-02 Kim F. Storm <storm@cua.dk>
17545
17546 * window.c (Fminibuffer_selected_window): New function.
17547 (syms_of_window): Defsubr it.
17548
175492002-03-01 Kim F. Storm <storm@cua.dk>
17550
17551 * window.h (struct window): New member phys_cursor_width.
17552
17553 * window.c (make_window, replace_window): Init phys_cursor_width.
17554
17555 * xterm.c (x_display_and_set_cursor): Blink box cursor using
17556 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
17557
17558 * w32term.c (x_display_and_set_cursor): Blink box cursor using
17559 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
17560
17561 * lisp.h (GCPRO6): New macro.
17562
17563 * process.c (Fopen_network_stream): Use GCPRO6.
17564
175652002-03-01 Kim F. Storm <storm@cua.dk>
17566
17567 * process.c (Qconnect, Qfailed): New variables.
17568 (syms_of_process): Intern and staticpro them.
17569 (Fprocess_status): Document connect and failed return values.
17570 [NON_BLOCKING_CONNECT]: New conditional.
17571 (connect_wait_mask, num_pending_connects): New variables.
17572 (status_message): Convert Qfailed status.
17573 (Fopen_network_stream): Added support for non-blocking connect.
17574 New optional args: filter, sentinel, non_blocking. Doc updated.
17575 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
17576 (deactivate_process): Handle pending non-blocking connect.
17577 (wait_reading_process_input): Poll for status of non-blocking
17578 connects. Exec sentinel directly when connect succeeds.
17579 (status_notify): Don't read process output if not yet connected.
17580
175812002-02-28 Kim F. Storm <storm@cua.dk>
17582
17583 * window.c: (minibuf_selected_window): Renamed from
17584 Vminibuf_selected_window. Users changed.
17585 (syms_of_window): Staticpro it.
17586
175872002-02-26 Kim F. Storm <storm@cua.dk>
17588
17589 The following changes add a new Vminibuf_selected_window variable
17590 which is similar to Vminibuf_scroll_window, but which is only set
17591 on entry to the minibuffer (from a non-minibuffer window):
17592
17593 * window.c: (Vminibuf_selected_window): New variable.
17594 (struct save_window_data): New member minibuf_selected_window.
17595 (Fset_window_configuration): Restore Vminibuf_selected_window.
17596 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
17597 Set minibuf_scroll_window member to nil if minibuf_level is 0.
17598 (compare_window_configurations): Compare minibuf_selected_window.
17599
17600 * window.h: (Vminibuf_selected_window): Declare extern.
17601
17602 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
17603 entry to minibuffer or on entry from a non-minibuffer window.
17604
17605 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
17606 Vminibuf_selected_window instead of Vminibuf_scroll_window.
17607
17608 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
17609 instead of Vminibuf_scroll_window when deciding in which window
17610 the region should be highlighted. Consequently, the region remains
17611 highlighteded even when a completion buffer is also displayed.
17612
176132002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
17614
17615 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
17616
17617 * xselect.c (Qcompound_text_with_extensions): Renamed from
17618 Qcompound_text_no_extensions.
17619 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
17620
176212002-02-26 Juanma Barranquero <lektu@terra.es>
17622
17623 * w32proc.c (syms_of_ntproc): Doc fix.
17624
176252002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17626
17627 * intervals.h: Include "dispextern.h" unconditionally.
17628
176292002-02-24 Jason Rumney <jasonr@gnu.org>
17630
17631 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
17632 and disp-table.elc.
17633 (lisp): Add emacs-lisp/backquote.elc.
17634
176352002-02-24 Kim F. Storm <storm@cua.dk>
17636
3419757d 17637 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
17638 The validation of the event type was too strict as it didn't
17639 allow string events; buffer names are used in bindings for
17640 menu-bar-select-buffer (see `menu-bar-update-buffers').
17641
176422002-02-23 Kim F. Storm <storm@cua.dk>
17643
17644 The following changes rework my patch of 2002-02-06 which
17645 added command remapping by entering the commands directly into
17646 the keymaps. Now, command remapping uses an explicit `remap'
17647 prefix in the keymaps, i.e. [remap COMMAND].
17648
17649 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 17650 (is_command_symbol): Remove function.
048addec
JD
17651 (Fdefine_key): No longer accept a symbol for KEY.
17652 Added validation of [remap COMMAND] argument for KEY.
17653 The DEF is no longer required to be a symbol when remapping a command.
17654 (Fremap_command): New function to remap command through keymaps.
17655 (Flookup_key): Perform command remapping initiated by
17656 Fremap_command directly for speed.
17657 (Fkey_binding): Use Fremap_command for command remapping.
17658 (where_is_internal): Handle new command remapping representation.
17659 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
17660 staticpro them. Defsubr Fremap_command.
17661
17662 * keymap.h (Fremap_command): Declare extern.
17663 (is_command_symbol): Remove extern.
17664
17665 * keyboard.c (command_loop_1): Use Fremap_command for command
17666 remapping; now try command remapping for all symbols.
17667
176682002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
17669
17670 * coding.h (run_pre_post_conversion_on_str): Add prototype.
17671
176722002-02-23 Jason Rumney <jasonr@gnu.org>
17673
17674 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
17675 on the string before encoding it.
17676 (Fw32_get_clipboard_data): Run post-read-conversion on the string
17677 after decoding it.
17678
17679 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
17680
176812002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17682
17683 * w32term.c (enter_timestamp): Remove unused static variable to
17684 prevent warning.
17685
17686 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
17687
176882002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
17689
17690 * w16select.c (Fw16_get_clipboard_data): Fix last change.
17691
17692 * xselect.c (selection_data_to_lisp_data): Fix last change.
17693
176942002-02-22 Jason Rumney <jasonr@gnu.org>
17695
17696 * w32term.h (struct w32_output): New member menu_command_in_progress.
17697
17698 * w32menu.c (menubar_selection_callback): Free the menu and
17699 clear the menu_command_in_progress flag.
17700
17701 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
17702 (menu_free_timer): New variable.
17703 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
17704 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
17705 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
17706 menu command is in progress.
17707 <WM_COMMAND>: Set the menu_command_in_progress flag.
17708 Kill any menu_free_timer that is running.
17709
17710 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
17711 Call ExtTextOutA rather than ExtTextOut.
17712
177132002-02-22 Eli Zaretskii <eliz@gnu.org>
17714
17715 * puresize.h (BASE_PURESIZE): Increase to 755000.
17716
177172002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
17718
17719 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
17720 on the string before encoding it.
17721 (Fw16_get_clipboard_data): Run post-read-conversion on the string
17722 after decoding it.
17723
177242002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
17725
17726 Support for ICCCM Extended Segments in X selections:
17727
17728 * xselect.c <Qcompound_text_no_extensions>: New variable.
17729 (syms_of_xselect): Intern and staticpro it.
17730 (selection_data_to_lisp_data): Run post-read-conversion on decoded
17731 selection text.
17732 (lisp_data_to_selection_data): If next-selection-coding-system is
17733 compound-text-no-extensions, set the type of selection to be
17734 compound-text.
17735
17736 * xterm.h (x_encode_text): Update prototype.
17737
17738 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
17739 callers changed. If SELECTIONP is non-zero, run the
17740 pre-write-conversion function before encoding the selection text.
17741
177422002-02-21 Kim F. Storm <storm@cua.dk>
17743
17744 * frame.c (syms_of_frame): Change mouse-highlight default to t.
17745
17746 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
17747 Correct composing of language-change event.
17748
177492002-02-20 Kim F. Storm <storm@cua.dk>
17750
17751 * keyboard.c (menu_bar_items): Don't include keymap or local-map
17752 bindings at PT when building menu (the menu is not updated often
17753 enough for this to work reliable).
17754 (tool_bar_items): Likewise.
17755 (current_active_maps): Removed unused (and buggy) function.
17756
177572002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17758
17759 * xfns.c (gif_load): Use correct width and height for GIF images.
17760
177612002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
17762
17763 * floatfns.c (Fatan): Accept an optional second arg and call
17764 atan2 if passed 2 args.
17765
177662002-02-18 Jason Rumney <jasonr@gnu.org>
17767
17768 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
17769
177702002-02-17 Jason Rumney <jasonr@gnu.org>
17771
17772 * w32term.c (x_autoselect_window_p): New variable.
17773 (syms_of_w32term): DEFVAR_BOOL and initialize it.
17774 (note_mouse_movement): Use it.
17775
17776 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
17777
17778 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
17779
17780 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
17781 New variables.
17782 (syms_of_w32fns): Intern and staticpro them.
17783 (x_frame_parms) <"fullscreen">: New parameter.
17784 (x_fullscreen_move, x_set_fullscreen): New functions.
17785 (x_set_frame_parameters): Support Qfullscreen.
17786 (x_real_positions): Save x/y_pixels_diff frame params.
17787 (x_figure_window_size): Support full-screen frames.
17788 (Fx_create_frame): Default the fullscreen parameter.
17789
17790 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
17791 (x_fullscreen_adjust): New functions.
17792 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
17793 fullscreen. Call x_check_fullscreen_move, and set the
17794 want_fullscreen member of output_data.w32
17795 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
17796
17797 * w32term.h: New enum for FULLSCREEN_* constants.
17798 (struct w32_output): New members want_fullscreen, x_pixels_diff,
17799 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
17800 (x-fullscreen-adjust): New prototype.
17801
178022002-02-17 Kim F. Storm <storm@cua.dk>
17803
52eb0373 17804 * frame.c (Vmouse_highlight): New variable.
048addec
JD
17805 (syms_of_frame): DEFVAR_LISP it.
17806
52eb0373 17807 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 17808
048addec 17809 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 17810
048addec
JD
17811 * xterm.c (disable_mouse_highlight): Removed variable.
17812 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
17813 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17814 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
17815 and on after keyboard input.
17816 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 17817
048addec 17818 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 17819
048addec
JD
17820 * msdos.c (disable_mouse_highlight): Removed variable.
17821 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17822 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
17823 (internal_terminal_init): Initialize mouse_face_hidden.
17824 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
17825 and on after keyboard input.
4f1b1854 17826
048addec 17827 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 17828
048addec
JD
17829 * w32term.c (disable_mouse_highlight): Removed variable.
17830 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
17831 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
17832 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
17833 and on after keyboard input.
17834 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 17835
048addec 178362002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 17837
048addec
JD
17838 * msdos.c (last_mouse_window): New variable.
17839 (dos_rawgetc): Fix last change--if the mouse is in the same window
17840 as recorded in last_mouse_window, don't select this window.
5cb6905d 17841
048addec 17842 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 17843
048addec
JD
17844 * msdos.c (x_autoselect_window_p): New variable.
17845 (syms_of_msdos): Defvar it.
17846 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
17847 which the last mouse movement occured, unless it is already selected.
437dfb9f 17848
048addec
JD
17849 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
17850 New variables.
17851 (syms_of_xdisp): DEVFAR them.
17852 (hscroll_window_tree): Use automatic_hscroll_margin and
17853 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 17854
048addec 178552002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 17856
048addec
JD
17857 * xterm.c (x-autoselect-window): New variable.
17858 (note_mouse_movement): Use it.
9f696a00 17859
048addec 17860 * keyboard.c: Do not include "systime.h" twice.
d57966d7 17861
048addec 178622002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 17863
bfa02563 17864 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 17865
048addec 17866 * alloc.c (NSTATICS): Increase to 1280.
74779f52 17867
048addec 178682002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 17869
048addec 17870 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 17871
048addec
JD
17872 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
17873 (Vx_super_keysym): New variables.
17874 (syms_of_xterm): DEFVAR_LISP them.
17875 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
17876 variables to determine which keys to use for the various modifiers.
a474d59c 17877
048addec 178782002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 17879
048addec
JD
17880 * window.c: (Vmode_line_in_non_selected_windows): Removed.
17881 (mode_line_in_non_selected_windows): New variable.
17882 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 17883
048addec
JD
17884 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
17885 Use mode_line_in_non_selected_windows.
17886 (mode_line_in_non_selected_windows): Declare extern.
17887 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 17888
048addec 178892002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 17890
048addec
JD
17891 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
17892 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
17893 (Fclear_this_command_keys): Doc fixes.
2d10309f 17894
048addec
JD
17895 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
17896 (update_face_from_frame_parameter): Increment face_change_count
17897 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 17898
048addec
JD
17899 * xdisp.c (QCpropertize): New variable.
17900 (mode_line_proptrans_alist): New variable.
17901 (display_mode_element): New arg PROPS; all calls changed.
17902 Implement this, for strings.
17903 Handle literal output of strings by sharing the
17904 main-line code for strings, using local var `literal'.
17905 Handle :propertize feature.
17906 (syms_of_xdisp): Initialze and staticpro QCpropertize and
17907 mode_line_proptrans_alist.
0b1e6b54 17908
048addec 179092002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 17910
048addec
JD
17911 * window.c: (Vmode_line_in_non_selected_windows): New variable.
17912 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 17913
048addec
JD
17914 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
17915 (CURRENT_MODE_LINE_FACE_ID): Use it.
17916 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 17917
048addec
JD
17918 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
17919 to get mode line face.
e17144de 17920
048addec 179212002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 17922
048addec
JD
17923 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
17924 variables; cus-start.el doesn't need them anymore.
44368f8f 17925
048addec 179262002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 17927
048addec
JD
17928 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
17929 reduction. This fixes a display problem where stray newlines were
17930 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 17931
048addec 179322002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 17933
048addec 17934 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 17935
048addec 17936 * xdisp.c (display_mode_lines): Fix last change.
453c5510 17937
048addec 179382002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 17939
048addec
JD
17940 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
17941 match each other.
17942 (w32_load_system_font): Prevent Cleartype fonts from loading.
17943 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 17944
048addec 179452002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 17946
048addec
JD
17947 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
17948 (CURRENT_MODE_LINE_HEIGHT): Use it.
17949 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 17950
048addec
JD
17951 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
17952 (pos_visible_p, handle_face_prop): Likewise.
17953 (display_mode_lines): Likewise, but for the real selected window.
17954 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 17955
048addec
JD
17956 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
17957 in non-selected windows.
17958 (realize_basic_faces): Realize it.
17959 (syms_of_term): Intern and staticpro it.
308dd672 17960
048addec 179612002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 17962
048addec
JD
17963 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
17964 Changed mail addresses to emacs-devel@gnu.org.
308dd672 17965
048addec 179662002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 17967
048addec
JD
17968 * fileio.c (Fsubstitute_in_file_name): If the file name includes
17969 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 17970
048addec 17971 * floatfns.c (Fround): Doc fix.
3c1e6b46 17972
048addec 179732002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 17974
048addec 17975 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 17976
048addec 179772002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 17978
048addec 17979 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 17980
048addec 179812002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 17982
048addec
JD
17983 * keymap.c (where_is_internal): Only check whether definition is
17984 remapped if it fulfills is_command_symbol.
0065bb74 17985
048addec 179862002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 17987
048addec 17988 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 17989
048addec 17990 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 17991
048addec 179922002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 17993
048addec
JD
17994 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
17995 defining command remapping. Doc updated.
17996 (Flookup_key): Remap command through keymap if KEY is a symbol.
17997 (is_command_symbol): New function.
17998 (Fkey_binding): Use it. New optional argument NO-REMAP.
17999 Doc updated. Callers changed. Perform command remapping via
18000 recursive call unless that arg is non-nil.
18001 (where_is_internal): New argument no_remap. Callers changed.
18002 Call recursively to find original key bindings for a remapped
18003 comand unless that arg is non-nil.
18004 (Fwhere_is_internal): New optional argument NO-REMAP.
18005 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 18006
048addec 18007 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 18008 (is_command_symbol): Add prototype.
0d8466cc 18009
048addec
JD
18010 * keyboard.c (Vthis_original_command): New variable.
18011 (syms_of_keyboard): DEFVAR_LISP it.
18012 (command_loop_1): Set it, and perform command remapping.
15fff01d 18013
048addec 180142002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 18015
048addec 18016 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 18017
048addec 180182002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 18019
048addec 18020 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 18021
048addec 180222002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 18023
048addec 18024 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 18025
048addec 180262002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 18027
048addec 18028 * filelock.c (S_ISLNK): Define if not defined.
3a232704 18029
048addec 180302002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 18031
048addec 18032 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 18033
048addec
JD
18034 * lread.c (read1): Redesign strategy for force_multibyte and
18035 force_singlebyte. Now is_multibyte records whether read_buffer
18036 is multibyte. Encountering any multibyte character makes it so.
4e02881b 18037
048addec 180382002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 18039
048addec
JD
18040 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
18041 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 18042
048addec 180432002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 18044
048addec
JD
18045 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
18046 latter never being defined on GNU/Linux.
749f499f 18047
048addec 180482002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 18049
048addec
JD
18050 * xfaces.c (realize_default_face): Don't set the weight and slant of
18051 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 18052
048addec 180532002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 18054
048addec
JD
18055 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
18056 Call cancel_hourglass unconditionally.
d0fd26dd 18057
048addec
JD
18058 * eval.c (Fsignal): Remove duplicated declaration of
18059 the variable `display_hourglass_p'.
b4c45162 18060
048addec 180612002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 18062
048addec 18063 * editfns.c (region_limit): Nicer error message.
c95eaa61 18064
048addec
JD
18065 * coding.c (decode_composition_emacs_mule):
18066 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 18067
048addec
JD
18068 * callint.c (check_mark): New arg to specify clearer error message.
18069 Callers changed.
c95eaa61 18070
048addec 180712002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 18072
048addec 18073 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 18074
048addec 180752002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 18076
048addec
JD
18077 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
18078 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
18079 Fix doc-strings.
c95eaa61 18080
048addec 180812002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 18082
048addec 18083 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 18084
048addec
JD
18085 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
18086 and scroll_up_aggressively.
c95eaa61 18087
048addec 180882002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 18089
048addec 18090 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 18091
048addec 180922002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 18093
048addec
JD
18094 * textprop.c (Fnext_property_change, Fnext_single_property_change)
18095 (Fprevious_property_change, Fprevious_single_property_change):
18096 Stay within the narrowed-buffer boundaries.
e2c3786a 18097
048addec 180982002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 18099
048addec
JD
18100 * term.c (Ftty_display_color_cells): New function.
18101 (syms_of_term): Defsubr it.
18102 (Ftty_display_color_cells, Ftty_display_color_p): Change the
18103 argument name to DISPLAY. Doc fix.
bf794306 18104
048addec
JD
18105 * dispextern.h: Add prototype for set_tty_color_mode and
18106 tty_setup_colors.
bf794306 18107
048addec 181082002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 18109
048addec
JD
18110 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
18111 If region left to draw is not what was expected, mark the frame as
18112 garbaged.
62582985 18113
048addec
JD
18114 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
18115 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 18116
048addec 181172002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 18118
048addec
JD
18119 * w32term.c (x_update_window_begin): Only hide caret if
18120 w32_use_visible_system_caret is set.
18121 (x_update_window_end): Only show caret if
18122 w32_use_visible_system_caret is set.
18123 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 18124
048addec 18125 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 18126
048addec 181272002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 18128
048addec
JD
18129 * unexelf.c (unexec): Define n so as to cause compilation error
18130 for the code where people have often written n instead of nn.
1e9a6186 18131
048addec 18132 * .gdbinit (hookpost-run): Defined.
1e9a6186 18133
048addec 181342002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 18135
048addec 18136 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 18137
048addec 181382002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 18139
048addec
JD
18140 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
18141 if fullscreen is being set.
7c75be36 18142
048addec 181432002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 18144
048addec
JD
18145 * minibuf.c (Fminibuffer_contents)
18146 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
18147 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 18148
048addec 181492002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 18150
048addec 18151 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 18152
048addec 181532002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 18154
048addec
JD
18155 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
18156 height before comparison.
18157 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 18158
048addec 181592002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 18160
048addec
JD
18161 * w32term.c (w32_system_caret_width): Remove.
18162 (w32_use_visible_system_caret): New user flag.
18163 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
18164 Windows reports a screen reader running.
18165 (x_update_window_begin): Hide the system caret.
18166 (x_update_window_end): Show the system caret.
18167 (x_display_and_set_cursor): Don't draw a cursor when
18168 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 18169
048addec
JD
18170 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
18171 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
18172 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
18173 the user requests it. Use system default width when creating.
18174 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 18175
048addec
JD
18176 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
18177 New window messages.
905cc05a 18178
048addec 181792002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 18180
048addec 18181 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 18182
048addec 181832002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 18184
048addec 18185 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 18186
048addec 181872002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 18188
048addec 18189 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 18190
048addec 181912002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 18192
048addec
JD
18193 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
18194 that Windows returns. If a double check fails, try to guess how
18195 ExtTextOut is going to act.
4d0fa4f3 18196
048addec
JD
18197 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
18198 in place of stricmp.
18199 (w32_list_synthesized_fonts): Removed.
18200 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
18201 (struct enumfont_t): New element; list.
18202 (enum_font_cb2): List all style and charset variations of a font.
18203 (Fw32_select_font): New optional argument; include_proportional.
18204 Exclude vertical fonts. Exclude proportional fonts unless
18205 include_proportional is non-nil.
18206 (w32_enable_synthesized_fonts): Change to a boolean.
18207 (Fw32_send_sys_command): Doc fix.
493faf20 18208
048addec 182092002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 18210
048addec
JD
18211 * dispnew.c (update_frame): Move the variable `tem' to the block
18212 where it is used.
4971e491 18213
048addec 182142002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 18215
048addec
JD
18216 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
18217 call to face-set-after-frame-default.
4971e491 18218
048addec 182192002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 18220
048addec
JD
18221 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
18222 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 18223
048addec 182242002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 18225
048addec
JD
18226 * window.c (enlarge_window): When exceeding size of parent,
18227 directly delete all the siblings instead of trying to resize it.
201c831a 18228
048addec 182292002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 18230
048addec 18231 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 18232
048addec 182332002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 18234
048addec 18235 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 18236
048addec 182372002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 18238
048addec
JD
18239 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
18240 is invisible. This can happen if cursor is on top line of a
18241 window, and we switch to a buffer with a header line.
d77fbc16 18242
048addec 18243 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 18244
048addec 182452002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 18246
048addec
JD
18247 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
18248 `dont_resize' only when used.
61e3b944 18249
048addec 18250 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 18251
048addec 182522002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 18253
048addec
JD
18254 * xdisp.c (display_mode_element): When computing charpos, depend
18255 on multibyteness of elt, not the text in field.
8af01033 18256
048addec 182572002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 18258
048addec
JD
18259 * buffer.c (Fkill_all_local_variables):
18260 Increment `update_mode_lines' only once.
7363986a 18261
048addec 182622002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 18263
048addec
JD
18264 * lisp.h (adjust_after_replace_noundo)
18265 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 18266
048addec 18267 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 18268
048addec 182692002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 18270
048addec
JD
18271 Support for the --color command-line argument and tty-color-mode
18272 frame parameter:
f1a85b89 18273
048addec
JD
18274 * term.c (tty_default_color_capabilities, tty_setup_colors)
18275 (set_tty_color_mode): New functions.
18276 (term_init): Call tty_default_color_capabilities.
18277 (Qtty_color_mode_alist): New variable.
18278 (syms_of_term): Intern and staticpro it.
f1a85b89 18279
048addec
JD
18280 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
18281 frames.
18282 (do_switch_frame): For termcap frames, switch the tty
18283 color mode as specified by the frame's parameters.
18284 (Qtty_color_mode): New variable.
18285 (syms_of_frame): Intern and staticpro it.
3a62677f 18286
048addec
JD
18287 * emacs.c (USAGE2): Add the --color option.
18288 (standard_args): Ditto.
72244db2 18289
048addec
JD
182902002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18291
18292 * xterm.h (struct x_output): New members want_fullscreen,
18293 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
18294 y_pixels_outer_diff.
18295 New enum for FULLSCREEN_* constants.
18296 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
18297 is NULL.
18298 (x_fullscreen_adjust): Add prototype.
3a62677f 18299
048addec
JD
18300 * emacs.c (USAGE2): Add the new full-screen arguments.
18301 (standard_args): Ditto.
3a62677f 18302
048addec
JD
18303 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
18304 New variables.
18305 (syms_of_xfns): Intern and staticpro them.
18306 (x_frame_parms) <"fullscreen">: New parameter.
18307 (x_fullscreen_move, x_set_fullscreen): New functions.
18308 (x_set_frame_parameters): Support for Qfullscreen.
18309 (x_real_positions): More accurate computation of the frame position.
18310 (x_figure_window_size): Support full-screen frames.
18311 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 18312
048addec
JD
18313 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
18314 (XTread_socket) <Expose>: Call x_check_fullscreen.
18315 <ConfigureNotify>: Don't resize to fullscreen.
18316 Call x_check_fullscreen_move, and set the want_fullscreen member of
18317 output_data.x.
3a62677f 18318
048addec 183192002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 18320
048addec
JD
18321 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
18322 for mice with more than 3 buttons.
b8523839 18323
048addec
JD
18324 * w32term.c (parse_button): New parameter xbutton. Callers changed.
18325 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 18326
048addec
JD
18327 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
18328 (syms_of_w32fns): DEFVAR_BOOL it.
18329 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 18330
048addec 183312002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 18332
048addec 18333 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 18334
048addec 183352002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 18336
048addec 18337 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 18338
048addec 183392002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 18340
048addec
JD
18341 * .gdbinit (xbuffer): Remove address operator since data is now a
18342 pointer.
c93674bb 18343
048addec 183442002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 18345
048addec 18346 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 18347
048addec 18348 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 18349
048addec 183502002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 18351
048addec
JD
18352 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
18353 when checking for multiple frames.
91175673 18354
048addec 183552002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 18356
048addec
JD
18357 * window.c (delete_window): Rewrite the code for changing the
18358 selected window to handle the case where WINDOW is not a leaf.
91175673 18359
048addec 183602002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 18361
048addec
JD
18362 * process.c (send_process): Set src_multibyte to 1 after the call
18363 top setup_coding_system, not before the call.
e0fead5d 18364
048addec 183652002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 18366
048addec
JD
18367 * xmenu.c (set_frame_menubar, xmenu_show):
18368 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 18369
048addec
JD
18370 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
18371 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 18372
048addec 183732002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 18374
048addec 18375 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 18376
048addec 18377 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 18378
048addec 18379 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 18380
048addec 183812002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 18382
048addec
JD
18383 * insdel.c (make_gap_larger): Make sure buffer size does not
18384 overflow range of int.
62854fe2 18385
048addec 183862002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 18387
048addec
JD
18388 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
18389 OVERLAPS_P.
656f46bb 18390
048addec 18391 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 18392
048addec
JD
18393 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
18394 to the left or to the right of the pointer, put it against
18395 the left screen edge.
18396 (x_frame_parms): Add missing braces around initializer.
036e218d 18397
048addec
JD
18398 * w32term.c (x_setup_relief_colors): Don't compute an image's
18399 background color if it doesn't have a Pixmap.
18400 (notice_overwritten_cursor): Don't depend on
18401 output_cursor and updated_area. Compare pixel coordinates with
18402 window's cursor pixel coordinates.
18403 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
18404 Call notice_overwritten_cursor with new arg list.
18405 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
18406 unconditionally.
18407 (x_draw_image_relief): Use predefined macro instead of
18408 constant when the value of `tool_bar_button_relief' is negative.
036e218d 18409
048addec 18410 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 18411
048addec 184122002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 18413
048addec 18414 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 18415
048addec 184162002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 18417
048addec
JD
18418 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
18419 (Fkey_binding): Try the `keymap' property map first.
18420 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
18421 minor mode bindings.
90647b07 18422
048addec 184232002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 18424
3419757d 18425 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 18426
048addec 184272002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 18428
048addec
JD
18429 * keyboard.c (read_key_sequence): Handle the keymap property
18430 before minor mode maps.
9fbc32aa 18431
048addec
JD
18432 * editfns.c (Fformat): Update thissize from field_width
18433 based on the actual width, in the string case.
036e218d 18434
048addec 184352002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 18436
048addec
JD
18437 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
18438 when used as truth value to prevent gcc warnings.
9fbc32aa 18439
048addec
JD
18440 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
18441 * w32proc.c: Include <config.h>.
9fbc32aa 18442
048addec 184432002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 18444
048addec
JD
18445 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
18446 not EMACS_INT, to make them compatible with DEFVAR_INT.
18447 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 18448
048addec 184492002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 18450
048addec
JD
18451 * print.c (print_object): Test print_escape_nonascii only for
18452 unibyte strings.
18453 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
18454 when outputting to a multibyte buffer.
9fbc32aa 18455
048addec 184562001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 18457
048addec
JD
18458 * print.c (print_object): In multibyte string, use hex escapes.
18459 Use octal only for unibyte strings.
18460 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 18461
048addec
JD
18462 * lread.c (read_escape): New arg BYTEREP for reporting whether
18463 escape forces unibyte or multibyte.
18464 (read1): When reading a string, take note of that info.
0142178a 18465
048addec 184662001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 18467
048addec
JD
18468 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
18469 comparison to test lisp value returned by Fget.
d4824a5d 18470
048addec 184712001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 18472
048addec 18473 * lisp.h (max_specpdl_size): Add declaration.
b1356234 18474
048addec 18475 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 18476
048addec
JD
18477 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
18478 Handle modifier bits. Correct typo in error message.
99e380ee 18479
048addec 184802001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 18481
048addec
JD
18482 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
18483 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
18484 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18485 Update calls to Fdefine_abbrev.
18486 (write_abbrev): Update for changed data format.
18487 Don't list "system" abbrevs.
18488 (Fexpand_abbrev): Update use count with new data format.
18489 (describe_abbrev): Update for changed data format.
18490 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 18491
048addec 18492 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 18493
048addec 18494 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 18495
048addec
JD
18496 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
18497 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 18498
048addec
JD
18499 * keymap.c (Flookup_key): Error message if key has wrong data type.
18500 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
18501 (exclude_key): New variable.
59a86c99 18502
048addec 185032001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 18504
048addec
JD
18505 * xterm.c (x_setup_relief_colors): Don't compute an image's
18506 background color if it doesn't have a Pixmap.
eb77a5f4 18507
048addec
JD
18508 * xterm.c (notice_overwritten_cursor): Don't depend on
18509 output_cursor and updated_area. Compare pixel coordinates with
18510 window's cursor pixel coordinates.
18511 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
18512 Call notice_overwritten_cursor with new arg list.
18513 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
18514 unconditionally.
eb77a5f4 18515
048addec
JD
18516 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
18517 height of the cursor line to the amount to scroll.
eb77a5f4 18518
048addec 185192001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 18520
048addec
JD
18521 * intervals.c (set_point_both): The position after an invisible,
18522 intangible character is not an acceptable stopping point.
bb313871 18523
048addec 185242001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 18525
048addec
JD
18526 * window.c (enlarge_window): In new preserve_before code, convert
18527 CURBEG from lisp object to integer before doing arithmetic.
6052529b 18528
048addec 185292001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 18530
048addec 18531 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 18532
048addec 185332001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 18534
048addec
JD
18535 * keyboard.c (record_char): Ignore duplicate help-echo events only
18536 separated by mouse-movement. When tracking mouse, only record
18537 first and last mouse-movement event in same window.
18538 Don't record mouse-movement events in keyboard macros.
3ce081f5 18539
048addec 185402001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 18541
048addec
JD
18542 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
18543 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 18544
048addec
JD
18545 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
18546 instead of Fstring_as_unibyte.
9fabb2f5 18547
048addec 185482001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 18549
048addec 18550 The following changes remove mocklisp support:
9fabb2f5 18551
048addec 18552 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 18553
048addec
JD
18554 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
18555 `Qmocklisp' and `Qmocklisp_arguments'.
18556 Remove prototype of syms_of_mocklisp.
2fa0eedf 18557
048addec 18558 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 18559
048addec
JD
18560 * callint.c: Do not include mocklisp.h.
18561 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 18562
048addec
JD
18563 * eval.c: Remove variables `Qmocklisp_arguments',
18564 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
18565 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
18566 Do not test for mocklisp case.
18567 (Fwhile): Remove unused variable `tem'.
18568 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 18569
048addec 18570 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 18571
048addec 18572 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 18573
048addec 18574 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 18575
048addec 185762001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 18577
048addec
JD
18578 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
18579 to the left or to the right of the pointer, put it against
18580 the left screen edge.
6108b49c 18581
048addec 185822001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 18583
048addec
JD
18584 * Makefile.in (distclean): Remove .gdbinit if we are building
18585 outside the source tree.
5eea19a4 18586
048addec 185872001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 18588
048addec 18589 * w32.c (emacs_root_dir): New function.
5eea19a4 18590
048addec 18591 * msdos.c (emacs_root_dir): New function.
5eea19a4 18592
048addec
JD
18593 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
18594 of the current drive as the fallback for default_directory.
438e57dd 18595
048addec
JD
18596 * dired.c (file_name_completion): Run the elements of
18597 completion-ignored-extensions through ENCODE_FILE.
438e57dd 18598
048addec
JD
18599 * lisp.h (scmp): Remove prototype, since it's now a static
18600 function private to dired.c.
c88e5347 18601
048addec 186022001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 18603
048addec
JD
18604 * dired.c (scmp): Function moved from minibuf.c.
18605 Delete multibyte handling--used only on encoded strings.
59ce1461 18606
048addec 18607 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 18608
048addec 18609 * fns.c (merge): Add QUIT call.
59ce1461 18610
048addec 186112001-12-18 Dave Love <fx@gnu.org>
8727d588 18612
048addec
JD
18613 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
18614 language/georgian.el.
8727d588 18615
048addec 186162001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 18617
048addec
JD
18618 * Makefile.in (lisp, shortlisp): Synchronize with changes to
18619 lisp/Makefile.in:DONTCOMPILE.
cc63037e 18620
048addec 186212001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 18622
048addec
JD
18623 * xdisp.c (window_box_height): Do not return negative values.
18624 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 18625
048addec 18626 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 18627
048addec 18628 * term.c (keys): Likewise.
deece6f5 18629
048addec 18630 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 18631
048addec 186322001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 18633
048addec
JD
18634 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
18635 patch (COMPOSING_P, not COMPOSING).
28ff4293 18636
048addec 186372001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 18638
048addec 18639 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 18640
048addec
JD
18641 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
18642 before calling decode_coding.
9b46de40 18643
048addec 18644 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 18645
048addec
JD
18646 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
18647 instead of only for COMPOSITION_DISABLED.
9b46de40 18648
048addec 186492001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 18650
048addec 18651 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 18652
048addec 18653 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 18654
048addec
JD
18655 * buffer.h (struct buffer): New field `display_error_modiff'.
18656 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 18657
048addec 18658 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 18659
048addec
JD
18660 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
18661 Call redisplay_window, but not if display_error_modiff field says no.
18662 (redisplay_window_error): New function.
18663 (displayed_buffer): New variable.
18664 (redisplay_internal, redisplay_windows): Call the new functions
18665 instead of redisplay_window directly.
2cd23960 18666
048addec 186672001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 18668
048addec 18669 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 18670
048addec 186712001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 18672
048addec 18673 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 18674 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 18675 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 18676
048addec 186772001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 18678
048addec
JD
18679 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
18680 parameter have a numeric value all the time.
f6fa0866 18681
048addec 18682 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 18683
048addec 186842001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 18685
048addec 18686 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 18687
048addec
JD
18688 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
18689 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 18690
048addec 186912001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 18692
048addec
JD
18693 * xdisp.c (move_it_vertically_backward): Change heuristic
18694 for the case that we didn't move far enough initially.
91c153e2 18695
048addec
JD
18696 * window.c (Frecenter): Simplify computation in the case of window
18697 system frames and ARG < 0; use window_box_height.
65b7d3e7 18698
048addec 186992001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 18700
048addec
JD
18701 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
18702 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 18703
048addec 187042001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 18705
048addec
JD
18706 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
18707 arg is negative.
be676094 18708
048addec 187092001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 18710
048addec
JD
18711 * m/hp800.h: Split the __hpux conditional into the parts
18712 that are right for GNU/Linux too and the parts that are not.
18713 Use the former if GNU_LINUX.
18714 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 18715
048addec 18716 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 18717
048addec 187182001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 18719
048addec
JD
18720 * macros.c, msdos.c, w16select.c: Change doc-string comments to
18721 `new style' [w/`doc:' keyword].
032a857d 18722
048addec 187232001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 18724
048addec
JD
18725 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
18726 before using.
b6270150 18727
048addec 187282001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 18729
048addec
JD
18730 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
18731 keyword].
98cbb9fa 18732
048addec 187332001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 18734
048addec 18735 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 18736
048addec 18737 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 18738
048addec 187392001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 18740
048addec 18741 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 18742 Add comment to explain where the struct came from.
048addec
JD
18743 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
18744 (add_menu_item): Process pop-up menus first to avoid memory leak.
18745 (add_menu_item, w32_menu_display_help): Use `help' field as
18746 Lisp_Object.
18747 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 18748
048addec 187492001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 18750
048addec 18751 * COPYING: Moved back.
fa336b91 18752
048addec
JD
18753 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
18754 Add parentheses around && within ||.
077907d4 18755
048addec 18756 * indent.c (compute_motion): Likewise.
aa2af83a 18757
048addec 18758 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 18759
048addec
JD
18760 * coding.c (setup_coding_system, shrink_encoding_region)
18761 (Fdecode_sjis_char): Likewise.
60a653f1 18762
048addec 187632001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 18764
048addec
JD
18765 * xdisp.c (display_mode_element): Don't read past end of string if
18766 it ends with '%'.
60a653f1 18767
048addec
JD
18768 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
18769 can hold.
60a653f1 18770
048addec
JD
18771 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
18772 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
18773 type changed to Lisp_Object.
18774 (syms_of_data): DEFVAR_LISP them.
60a653f1 18775
048addec 187762001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 18777
048addec
JD
18778 * callproc.c (init_callproc): Set Vdata_directory based on the source
18779 location whenever Emacs was run uninstalled.
60a653f1 18780
048addec 187812001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 18782
048addec
JD
18783 * config.in (HAVE_WORKING_VFORK): New #undefs.
18784 * process.c (create_process):
18785 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
18786 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
18787 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
18788 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
18789 * m/intel386.h (HAVE_VFORK): Likewise.
18790 * m/mips-siemens.h (HAVE_VFORK): Likewise.
18791 * m/mips.h (HAVE_VFORK): Likewise.
18792 * s/freebsd.h (vfork): Remove #define.
18793 * s/lynxos.h (HAVE_VFORK): Remove #undef.
18794 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 18795
048addec 187962001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 18797
048addec
JD
18798 * s/hpux10.h (random): Add undef.
18799 (HAVE_RANDOM): Define it just once.
60a653f1 18800
048addec 188012001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18802
048addec 18803 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 18804
048addec 188052001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 18806
048addec
JD
18807 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
18808 scroll bars of the frame before deleting the frame itself. If the
18809 frame has a widget, delete the frame with XtDestroyWidget, and do
18810 not call XDestroyWindow before that.
60a653f1 18811
048addec 188122001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 18813
048addec 18814 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 18815
048addec 18816 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 18817
048addec 188182001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 18819
048addec
JD
18820 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
18821 excessively large.
60a653f1 18822
048addec
JD
18823 * insdel.c (make_gap_larger): New function.
18824 (make_gap_smaller): New function.
18825 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
18826 Call make_gap_smaller if arg is negative.
60a653f1 18827
048addec 188282001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18829
048addec
JD
18830 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
18831 Pass a dummy argument when calling interrupt_signal.
18832 (parse_menu_item): Mark disabled items before checking for empty def.
18833 (read_char_minibuf_menu_prompt): Make safety more visible.
18834 (read_key_sequence): Add a `first_unbound' variable.
18835 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
18836 unbound prefix as soon as we can detect it.
60a653f1 18837
048addec
JD
18838 * doc.c (Fsnarf_documentation): Add prototype.
18839 (get_doc_string): Handle negative arguments.
18840 (Fdocumentation): Use AREF and ASIZE.
18841 Move the calls to get_doc_string to a single place.
18842 Don't confuse an interactive-spec for a docstring reference.
18843 (Fdocumentation_property): Take advantage of the fact that
18844 get_doc_string now ignores the sign of the docstring position.
60a653f1 18845
048addec 18846 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 18847
048addec 188482001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18849
a64387ee 18850 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 18851
048addec 188522001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18853
048addec
JD
18854 * xterm.c (x_draw_image_relief): Use predefined macro instead of
18855 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 18856
048addec 188572001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 18858
048addec
JD
18859 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
18860 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 18861
048addec 18862 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 18863
048addec 188642001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18865
048addec 18866 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 18867
048addec 188682001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 18869
048addec 18870 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 18871
048addec 188722001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 18873
f63fd14e 18874 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 18875
048addec
JD
18876 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
18877 [!WM_MOUSELEAVE]: Define.
60a653f1 18878
048addec
JD
18879 * w32menu.c (current_popup_menu, get_menu_item_info):
18880 (set_menu_item_info): New vars.
18881 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
18882 (w32_menu_show): Set current_popup_menu.
18883 (add_menu_item): Allocate new strings for owner-drawn menu items
18884 and help strings.
18885 Use owner-draw for disabled menu items again.
18886 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
18887 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 18888
048addec
JD
18889 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
18890 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
18891 <WM_EXITMENULOOP>: Free menu strings.
18892 <WM_MOUSELEAVE>: Stop tracking mouse.
18893 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 18894
048addec
JD
18895 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
18896 and mouse face.
60a653f1 18897
048addec 188982001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 18899
048addec
JD
18900 The following changes add left-fringe and right-fringe
18901 frame parameters to adjust fringe widths, or remove one or
18902 both fringes.
60a653f1 18903
048addec
JD
18904 * frame.h (struct frame): Remove trunc_area_pixel_width and
18905 trunc_area_cols fields.
18906 (Qleft_fringe, Qright_fringe): Declare.
18907 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 18908
048addec
JD
18909 * frame.c (Qleft_fringe, Qright_fringe): New vars.
18910 (syms_of_frame): Initialize them.
60a653f1 18911
048addec
JD
18912 * window.c (coordinates_in_window): Handle separate left and right
18913 fringe widths.
60a653f1 18914
048addec
JD
18915 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
18916 and fringe_cols fields.
18917 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
18918 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
18919 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
18920 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
18921 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
18922 (x_compute_fringe_widths): Add prototype.
60a653f1 18923
048addec
JD
18924 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
18925 fill fringe evenly with small dashes.
f63fd14e 18926 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
18927 clip the new ZV bitmap to avoid jitter between rows.
18928 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
18929 background. Don't draw fringe bitmaps if fringe width is zero.
18930 (x_compute_fringe_widths): New function.
18931 (x_new_font, x_set_window_size_1): Use it.
60a653f1 18932
048addec
JD
18933 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
18934 (x_set_frame_parameters): Process `font' parameter before other
18935 parameters as fringe widths depend on it.
18936 (x_set_fringe_width): New function.
18937 (x_figure_window_size): Use x_compute_fringe_widths.
18938 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
18939 parameters.
60a653f1 18940
048addec
JD
18941 * widget.c (set_frame_size): Use x_compute_fringe_widths.
18942 (EmacsFrameSetCharSize): Ditto.
60a653f1 18943
048addec
JD
18944 * w32term.h: Merged changes from xterm.h.
18945 * w32term.c: Merged changes from xterm.c.
18946 * w32fns.c: Merged changes from xfns.c.
60a653f1 18947
048addec 189482001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18949
048addec 18950 * COPYING: Removed.
60a653f1 18951
048addec 189522001-11-29 Dave Love <fx@gnu.org>
60a653f1 18953
048addec
JD
18954 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
18955 extra extra slot.
18956 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 18957
048addec 189582001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 18959
048addec
JD
18960 * fileio.c (file-name-coding-system)
18961 (default-file-name-coding-system): Doc fix (links to referenced
18962 variables added).
60a653f1 18963
048addec 189642001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 18965
048addec
JD
18966 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
18967 Add dummy uses of gcproN variables.
60a653f1 18968
048addec
JD
18969 * category.c (describe_category, describe_category_1)
18970 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
18971 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 18972
048addec 189732001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 18974
048addec 18975 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 18976
048addec
JD
18977 * Makefile.in (lispdir): New variable, referring to build dir.
18978 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 18979
048addec 189802001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 18981
048addec
JD
18982 * w32menu.c (w32_menu_display_help): Actually add the new argument
18983 OWNER.
60a653f1 18984
048addec 189852001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 18986
048addec
JD
18987 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
18988 menu items. From David Ponce <dponce@wanadoo.fr>.
18989 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
18990 conditionally.
f63fd14e 18991 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 18992 help event in the owner frame's keyboard buffer.
60a653f1 18993
048addec
JD
18994 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
18995 (Fx_show_tip): Don't subtract last width from row width.
18996
18997 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
18998 (w32_read_socket): Use EQ to compare frames.
60a653f1 18999
048addec 190002001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 19001
048addec
JD
19002 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
19003 OVERLAPS_P.
60a653f1 19004
048addec 190052001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19006
048addec
JD
19007 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
19008 `gcpro3' and `gcpro4'.
60a653f1 19009
048addec 19010 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 19011
048addec 190122001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19013
048addec 19014 * ccl.c: Use AREF and ASIZE.
60a653f1 19015
048addec 190162001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19017
048addec
JD
19018 * lisp.h (run_hook_list_with_args): Remove.
19019 (LIST_END_P): Fix call to wrong_type_argument.
19020 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 19021
048addec 190222001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19023
048addec
JD
19024 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
19025 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 19026
048addec
JD
19027 * eval.c: Use AREF and ASIZE.
19028 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 19029
048addec
JD
19030 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
19031 which match the end of the file-name.
19032 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
19033 is not a valid env var, but leave it as is instead.
60a653f1 19034
048addec
JD
19035 * keymap.c (access_keymap): Handle t bindings like nil bindings.
19036 Make nil bindings in char-tables transparent.
19037 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 19038
048addec 190392001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 19040
048addec
JD
19041 * textprop.c (set_text_properties_1): Allow START, END in either order.
19042 Do nothing if range is empty.
60a653f1 19043
048addec 19044 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 19045
048addec
JD
19046 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
19047 (clean): Not here.
60a653f1 19048
048addec 190492001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19050
048addec
JD
19051 * textprop.c (set_text_properties_1): Clearly mark that the
19052 interval should not be empty.
60a653f1 19053
048addec
JD
19054 * intervals.c (graft_intervals_into_buffer):
19055 Don't call set_text_properties_1 on an empty interval.
60a653f1 19056
048addec 190572001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 19058
048addec 19059 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 19060
048addec
JD
19061 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
19062 don't lose the data in it.
60a653f1 19063
048addec 190642001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 19065
048addec 19066 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 19067
c62aec78 19068 * buffer.c (Fkill_buffer): Likewise.
60a653f1 19069
c62aec78 19070 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 19071
048addec 190722001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19073
048addec 19074 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 19075
048addec 190762001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19077
048addec
JD
19078 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
19079 Niemitalo <kon@iki.fi>.
60a653f1 19080
048addec 190812001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 19082
048addec 19083 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 19084
048addec
JD
19085 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
19086 (Fx_show_tip): Block input during frame creation.
19087 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 19088
048addec 190892001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 19090
048addec
JD
19091 * lread.c (Fload): Detect recursive load error for more than 3
19092 nestings of the same file.
19093 (Vrecursive_load_depth_limit): Variable deleted.
19094 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 19095
048addec 190962001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 19097
048addec
JD
19098 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
19099 mouse position if either left or top is not specified.
60a653f1 19100
048addec
JD
19101 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
19102 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
19103 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
19104 (my_create_tip_window): Assign tip_window.
19105 (x_create_tip_frame): Use same defaults as X.
19106 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 19107 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 19108
048addec
JD
19109 * w32term.c (x_after_update_window_line): Doc fix.
19110 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
19111 frames.
19112 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 19113
048addec
JD
19114 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
19115 for all Windowed systems.
60a653f1 19116
048addec 191172001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 19118
048addec
JD
19119 * msdos.c (IT_clear_screen): If the frame's faces are not yet
19120 realized, use the initial screen colors to clear the screen.
60a653f1 19121
048addec 191222001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19123
048addec
JD
19124 * textprop.c (Fset_text_properties): Remove unused variables
19125 `unchanged', `prev_changed', `s' and `len'.
60a653f1 19126
048addec
JD
19127 * search.c (Freplace_match): Remove unused variable `inslen'.
19128
19129 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
19130
191312001-11-22 Jason Rumney <jasonr@gnu.org>
19132
19133 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
19134 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
19135 (my_create_tip_window): New function.
19136 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
19137 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
19138
191392001-11-20 Jason Rumney <jasonr@gnu.org>
19140
19141 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
19142 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
19143
19144 * w32fns.c (Vw32_system_coding_system): Remove.
19145 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
19146
191472001-11-19 Stefan Monnier <monnier@cs.yale.edu>
19148
19149 * fileio.c (Fwrite_region): Move choose_write_coding_system to
19150 after build_annotations.
19151
19152 * syntax.c (describe_syntax): Add dummy arg.
19153 (describe_syntax_1): Update call to describe_vector.
19154
19155 * category.c (describe_category): Add dummy arg.
19156 (describe_category_1): Update call to describe_vector.
19157
19158 * keymap.c (Fdescribe_vector): Add `describer' parameter.
19159 (describe_command, describe_translation): Add dummy second param.
19160 (describe_map): Call elt_describer with two arguments.
19161 (describe_vector_princ): Add `fun' parameter.
19162 Call it instead of the hardcoded `princ'.
19163 (describe_vector): Add arg `args'.
19164 Pass it as a new second argument to elt_describer.
60a653f1 19165
048addec 19166 * keymap.h (describe_vector): Update prototype.
60a653f1 19167
048addec
JD
19168 * frame.c: Don't include keymap.h any more.
19169 (keys_of_frame): Remove.
60a653f1 19170
048addec 19171 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 19172
048addec 19173 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 19174
048addec 191752001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 19176
048addec
JD
19177 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
19178 if defined, 0 otherwise.
19179 (MAP_FAILED): Define if not defined and use it to test mmap failure.
19180 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 19181
048addec 191822001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 19183
048addec 19184 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 19185
048addec 191862001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 19187
048addec
JD
19188 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
19189 (x_draw_bar_cursor): If the background color of the glyph under
19190 the cursor equals the frame's cursor color, use the glyph's
19191 foreground color for drawing the bar cursor.
19192 (x_after_update_window_line): Clear internal border in different
19193 circumstances.
19194 (w32_set_vertical_scroll_bar): Check for width and height > 0.
19195 (w32_draw_relief_rect): Correct relief by 1 pixel.
19196 (x_set_glyph_string_background_width):
19197 Set extends_to_end_of_line_p if the row's fill_line_p is set and
19198 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
19199 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
19200 if cursor_in_non_selected_windows is false.
19201 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
19202 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
19203 Notice if cursor gets overwritten.
19204 (notice_overwritten_cursor): Renamed from
19205 note_overwritten_text_cursor. Rewritten to take glyph widths
19206 into account, and to take X positions as parameters.
19207 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
19208 around call to x_draw_glyphs.
19209 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
19210 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
19211 color to use for image glyph reliefs.
19212 (x_draw_image_relief): Accept zero tool_bar_button_relief.
19213 (glyph_rect): Remove unused variable `area'.
60a653f1 19214
048addec
JD
19215 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
19216 some items.
19217 (x_set_internal_border_width): Set frame garbaged when window
19218 doesn't exist yet.
19219 (Fx_create_frame): Accept zero tool_bar_button_relief.
19220 (x_clear_image_1, four_corners_best, image_background)
19221 (image_background_transparent): New functions.
19222 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
19223 (gs_format): Add `:background' entry.
19224 (lookup_image): Set IMG's background color if specified.
19225 (pbm_load, xbm_load_image, png_load): Set IMG's background field
19226 when appropriate.
19227 (x_clear_image_1): Reset `background_valid' and
19228 `background_transparent_valid' fields.
19229 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
19230 calculating it here. Set IMG's background_transparent field.
19231 (enum xpm_keyword_index): Add XPM_BACKGROUND.
19232 (enum png_keyword_index): Add PNG_BACKGROUND.
19233 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
19234 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
19235 (enum gif_keyword_index): Add GIF_BACKGROUND.
19236 (enum gs_keyword_index): Add GS_BACKGROUND.
19237 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
19238 Pre-calculate image background color where necessary.
19239 (x_create_x_image_and_pixmap, xbm_load, gs_load):
19240 Use display info's n_cbits entry for screen depth.
19241 (Fx_show_tip): Remove unused variables `buffer', `top',
19242 `left', `max_width' and `max_height'.
60a653f1 19243
048addec 19244 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 19245
048addec 192462001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 19247
048addec 19248 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 19249
048addec 192502001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 19251
048addec 19252 * frame.c (Fframe_live_p): Doc fix.
60a653f1 19253
048addec 192542001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 19255
048addec
JD
19256 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
19257 (message_dolog_marker3): New static variables hold three markers.
19258 (syms_of_xdisp): Initialize and staticpro them.
19259 (message_dolog): Use message_dolog_marker1..3 instead of
19260 allocating markers each time. Unchain them when done.
60a653f1 19261
048addec 192622001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 19263
048addec 19264 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 19265
048addec 192662001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 19267
048addec 19268 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 19269
048addec 192702001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 19271
048addec 19272 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 19273
048addec 192742001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 19275
048addec 19276 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 19277
048addec 192782001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 19279
048addec
JD
19280 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
19281 with invalid position.
60a653f1 19282
048addec 192832001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 19284
048addec 19285 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 19286
048addec
JD
19287 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
19288 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
19289 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 19290
048addec 19291 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 19292
048addec 192932001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 19294
048addec
JD
19295 * fileio.c (build_annotations): Split off the tail.
19296 (build_annotations_2): New fun. Extracted from build_annotations.
19297 (Fwrite_region): Split the call to build_annotations into two
19298 calls to build_annotations and build_annotations_2.
077907d4 19299
048addec 193002001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 19301
048addec
JD
19302 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
19303 clear_waiting_for_input with argument.
1756e2fb 19304
048addec 19305 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 19306
048addec 19307 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 19308
048addec 19309 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 19310
048addec 19311 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 19312
048addec 193132001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 19314
048addec
JD
19315 * fileio.c (choose_write_coding_system): New fun, extracted
19316 from Fwrite_region.
19317 (Fwrite_region): Use it.
fa336b91 19318
048addec
JD
19319 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
19320 (funcall_lambda, run_hook_with_args): Make static and add prototype.
19321 (ml_apply, find_handler_clause): Add prototype.
fa336b91 19322
048addec 193232001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 19324
048addec 19325 * config.in: Add #undef HAVE_COFF_H.
fa336b91 19326
048addec
JD
19327 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
19328 Required for ISC 4.1.
fa336b91 19329
048addec 193302001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 19331
52eb0373 19332 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 19333 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 19334
048addec 193352001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 19336
048addec
JD
19337 The following changes are made to clean up the various internal
19338 references to the fringes to actually use the term `fringe' for
19339 them. Previously, they were called `flags areas', `bitmap areas',
19340 `left/right side of windows', or implicitly as `flags' or
19341 `bitmaps':
fa336b91 19342
048addec 19343 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 19344 Comments fixed. Use renamed symbols.
06e8f738 19345
f63fd14e 19346 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 19347
048addec
JD
19348 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
19349 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
19350 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 19351
048addec 19352 * msdos.c: Comment fix.
9ce647f4 19353
048addec 19354 * w32fns.c: Use renamed symbols.
9b784ab8 19355
f63fd14e 19356 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
19357 (fringe_bitmap_type): Renamed from bitmap_type.
19358 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
19359 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
19360 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 19361
f63fd14e 19362 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
19363 (fringes_extra): Renamed from flags_areas_extra.
19364 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
19365 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
19366 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
19367 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
19368 (FRAME_X_LEFT_FRINGE_WIDTH):
19369 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
19370 (FRAME_X_RIGHT_FRINGE_WIDTH):
19371 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 19372
048addec 19373 * widget.c: Use renamed symbols.
9f7e52b4 19374
f63fd14e 19375 * window.c: Comment fixes. Use renamed symbols.
048addec 19376 (coordinates-in-window-p): Doc fix.
fa336b91 19377
f63fd14e 19378 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 19379
048addec 19380 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 19381
048addec 19382 * xfns.c: Use renamed symbols.
89512fcd 19383
f63fd14e 19384 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
19385 (fringe_bitmap_type): Renamed from bitmap_type.
19386 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
19387 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
19388 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 19389
f63fd14e 19390 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
19391 (fringes_extra): Renamed from flags_areas_extra.
19392 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
19393 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
19394 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
19395 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
19396 (FRAME_X_LEFT_FRINGE_WIDTH):
19397 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
19398 (FRAME_X_RIGHT_FRINGE_WIDTH):
19399 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
19400
194012001-11-15 Jason Rumney <jasonr@gnu.org>
19402
19403 * w32menu.c (add-menu-item): Make help_echo and radio buttons
19404 work for most menu items. From David Ponce
19405 <david.ponce@wanadoo.fr>.
19406
194072001-11-15 Gerd Moellmann <gerd@gnu.org>
19408
19409 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
19410 Some x_set_* function expect to be called even if old and new
19411 value are equal.
19412
19413 * xdisp.c (build_desired_tool_bar_string): Accept zero
19414 tool_bar_button_relief.
19415
19416 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
19417
19418 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
19419
19420 * xterm.c (x_draw_bar_cursor): If the background color of the
19421 glyph under the cursor equals the frame's cursor color, use
19422 the glyph's foreground color for drawing the bar cursor.
19423
19424 * dispnew.c (direct_output_forward_char): Fix character/byte
19425 position comparison.
7d18891d 19426
048addec 194272001-11-15 Miles Bader <miles@gnu.org>
d2936d21 19428
048addec
JD
19429 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
19430 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
19431 Update arguments to find_field.
19432 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
19433 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
19434 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
19435 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 19436
048addec 194372001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 19438
048addec 19439 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 19440
048addec
JD
19441 * dispextern.h (image_background, image_background_transparent):
19442 Conditionalize on HAVE_X_WINDOWS.
7d18891d 19443
048addec 194442001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 19445
048addec 19446 * print.c (Fprin1_to_string): Doc fix.
7d18891d 19447
048addec 19448 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 19449
048addec 19450 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 19451
048addec 19452 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 19453
048addec 19454 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 19455
048addec 19456 * eval.c (syms_of_eval): Doc fix.
7d18891d 19457
048addec 19458 * coding.c (syms_of_coding): Doc fix.
7d18891d 19459
048addec 19460 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 19461
048addec 19462 * dispnew.c (syms_of_display): Doc fix.
9474c847 19463
048addec 19464 * category.c (Fget_unused_category): Doc fix.
9474c847 19465
048addec 19466 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 19467
048addec 194682001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 19469
048addec 19470 * print.c (prin1, print): Doc fix.
e3059a5d 19471
048addec 194722001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 19473
048addec
JD
19474 * fontset.h: Remove declarations of variables
19475 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 19476
048addec
JD
19477 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
19478 `Vclip_large_size_font'.
eae936e2 19479
048addec 194802001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 19481
048addec 19482 * w32fns.c: Doc fix.
ddb67bdc 19483
048addec 194842001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 19485
048addec 19486 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 19487
048addec 19488 * fns.c: Doc fix.
6e1b91d7 19489
048addec 19490 * emacs.c: Doc fix.
1c1d3d69 19491
048addec 19492 * coding.c: Doc fix.
1c1d3d69 19493
048addec
JD
19494 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
19495 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
19496 `new style' [w/`doc:' keyword].
b6f4c7ba 19497
048addec 194982001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 19499
048addec
JD
19500 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
19501 LeaveNotify events. Only FocusIn and FocusOut do that now.
19502 (x_display_and_set_cursor): Do display hollow cursors in active
19503 minibuffer windows when they are not selected.
b6f4c7ba 19504
048addec 195052001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 19506
048addec 19507 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
19508 * w32term.c: Change doc-string comments to `new style'
19509 [w/`doc:' keyword]. Doc fixes.
a89f435d 19510
048addec
JD
19511 * w32fns.c: Don't define max.
19512 (Fx_open_connection): Only execute once.
a4cd0cd7 19513
048addec 195142001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 19515
048addec
JD
19516 * ccl.c: Change macros to use do-while block instead of if-else.
19517 Use braces to follow GNU Coding Standards.
eafb659a 19518
048addec 195192001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 19520
048addec 19521 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 19522
048addec 19523 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 19524
048addec
JD
19525 * insdel.c (replace_range): Use adjust_markers_for_replace
19526 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 19527
78819ebb 19528 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 19529
048addec
JD
19530 * textprop.c (set_text_properties_1): New subroutine
19531 broken out of set_text_properties.
19532 (set_text_properties): Use set_text_properties_1.
91823618 19533
048addec
JD
19534 * intervals.c (graft_intervals_into_buffer):
19535 Use set_text_properties_1 to clear out properties.
91823618 19536
048addec
JD
19537 * search.c (Freplace_match): Use replace_range to insert
19538 and delete. Don't request property inheritance from
19539 surrounding text.
86928dfb 19540
048addec 195412001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 19542
048addec 19543 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 19544 vertical fonts. Allow them if face name is explicitly specified.
048addec 19545 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 19546
048addec 195472001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 19548
048addec
JD
19549 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
19550 instead of malloc/free.
a78e0303 19551
048addec 195522001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 19553
048addec
JD
19554 * xfaces.c (merge_face_vectors): Use braces to follow GNU
19555 Coding Standards.
19556 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 19557
048addec 19558 * buffer.c (Fbury_buffer): Likewise.
0c99b139 19559
048addec 19560 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 19561
048addec
JD
19562 * coding.c (encode_coding): Use precomputed value of `src'.
19563 (encode_coding): Remove unused variable `src_end'.
19564 (code_convert_region): Remove unused variables `count'.
830ddd77 19565
048addec 195662001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 19567
048addec
JD
19568 * w32term.c (x_display_and_set_cursor): Do not move system caret
19569 if cursor_glyph is NULL.
55c6d645 19570
048addec 195712001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 19572
048addec 19573 * keymap.c (access_keymap): Fix compilation error.
5de38842 19574
048addec 195752001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 19576
048addec 19577 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 19578
048addec 195792001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 19580
048addec
JD
19581 * intervals.c (graft_intervals_into_buffer):
19582 Remove #ifdef'd-out code.
19583 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 19584
048addec
JD
19585 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
19586 code (eval-current-buffer).
19587 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 19588
048addec 195892001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 19590
048addec 19591 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 19592
048addec 195932001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 19594
048addec 19595 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 19596
048addec
JD
19597 * keyboard.c (make_lispy_event): Check integerness and fix
19598 Lisp_Object/int mixup.
17893c65 19599
048addec 196002001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 19601
048addec 19602 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 19603
048addec
JD
19604 * fontset.c (fontset_font_pattern): Remove unused variable
19605 `family_registry'.
d5360cc7 19606
048addec 19607 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 19608
048addec 196092001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 19610
048addec 19611 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 19612
048addec
JD
19613 * buffer.c (Fkill_buffer): Don't delete auto save file
19614 if buffer is modified.
d9d54213 19615
048addec 196162001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 19617
048addec
JD
19618 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
19619 CHECK_NUMBER_CDR.
b116830b 19620
048addec 196212001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 19622
048addec 19623 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 19624
048addec 196252001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 19626
048addec 19627 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 19628
048addec 196292001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 19630
048addec 19631 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 19632
048addec 196332001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 19634
048addec
JD
19635 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
19636 the program image directly.
982f6c7e 19637
048addec 196382001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 19639
048addec 19640 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 19641
048addec 196422001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 19643
048addec
JD
19644 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
19645 and CHECK_BUFFER.
d31053f9 19646
048addec
JD
19647 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
19648 (record_char): Likewise.
d31053f9 19649
048addec
JD
19650 * keyboard.c (make_lispy_event): Don't insist a drag event must
19651 move to a different buffer position. Instead, check for moving at
19652 least double_click_fuzz.
982f6c7e 19653
048addec 19654 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 19655
048addec 19656 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 19657
048addec
JD
19658 * indent.c (current_column_1, Fmove_to_column): Separate the code
19659 for display-table glyphs from the code for buffer text, to fix
19660 bugs in the former.
830047fd 19661
048addec 196622001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 19663
048addec
JD
19664 * buffer.c (Fbuffer_local_value): New function.
19665 (syms_of_buffer): Defsubr it.
2df5238c 19666
048addec
JD
19667 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
19668 value of `cursor-in-non-selected-windows'.
4e397688 19669
048addec
JD
19670 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
19671 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
19672 (syms_of_xdisp): Initialize it.
48b0f3ae 19673
048addec 196742001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 19675
048addec 19676 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 19677
048addec
JD
19678 * coding.c: Change doc-string comments to `new style' [w/`doc:'
19679 keyword].
3ecaf7e5 19680
048addec
JD
19681 * eval.c (top_level_value, top_level_set): Remove commented and
19682 #ifdef'd-out code.
19683 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 19684
048addec 196852001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 19686
048addec 19687 * xfns.c: Include unistd.h, if it exists.
8db2e33b 19688
048addec 19689 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 19690
048addec 19691 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 19692
048addec 196932001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 19694
048addec
JD
19695 * lisp.h (CHECK_STRING_CAR): New macro.
19696 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
19697 treating XCAR and XCDR as lvalues.
19698 (openp): Use CHECK_STRING_CAR.
19699 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 19700
048addec 197012001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 19702
048addec
JD
19703 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
19704 (SIGMASKTYPE): Define.
1b1acc13 19705
048addec 19706 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 19707
048addec 197082001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 19709
048addec
JD
19710 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
19711 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
19712 Fix typos in comments.
6cb16f95 19713
048addec
JD
19714 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
19715 and #ifdef'd-out code.
19716 Fix and reindent comments.
6cb16f95 19717
048addec 19718 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 19719
048addec
JD
19720 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
19721 argument `i' in macros.
6cb16f95 19722
048addec
JD
19723 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
19724 `i' in macros.
7e9d3c2f 19725
048addec
JD
19726 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
19727 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
19728 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
19729 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
19730 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
19731 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
19732 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
19733 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
19734 in macros.
7e9d3c2f 19735
048addec
JD
19736 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
19737 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
19738 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
19739 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
19740 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
19741 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
19742 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
19743 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
19744 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
19745 (remove unused second argument).
7e9d3c2f 19746
048addec 197472001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 19748
048addec
JD
19749 * syntax.c (describe_syntax): New wrapper.
19750 (Finternal_describe_syntax_value): Rename from describe_syntax.
19751 Don't insert space at front and \n at the end.
19752 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 19753
048addec
JD
19754 * regex.c (re_wctype): Try to fix some warnings.
19755 (regcomp, regexec): Don't forget the __restrict.
9ba48103 19756
048addec 197572001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 19758
048addec 19759 * textprop.c (Fget_char_property): Doc fix.
9ba48103 19760
048addec 197612001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 19762
048addec 19763 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 19764
048addec 19765 * data.c (Fsetq_default): Ditto.
c22e59e1 19766
048addec 19767 * callint.c (Finteractive): Ditto.
9271ed2c 19768
048addec 197692001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 19770
048addec
JD
19771 * macros.c: Don't include keymap.h any more.
19772
197732001-11-01 Richard M. Stallman <rms@gnu.org>
19774
19775 * data.c (Fmake_local_variable): Doc fix.
19776
19777 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
19778 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 19779
048addec 19780 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
19781 bindings along with or instead of the buffer local map.
19782 Make the overriding maps override what they should.
19783
f00691a3 197842001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
19785
19786 * window.c (grow_mini_window): Fix typo in comment.
19787
27188d11
GM
197882001-11-01 Gerd Moellmann <gerd@gnu.org>
19789
7b49b9d2
GM
19790 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
19791 (XTset_vertical_scroll_bar): Likewise.
19792
43f7c3ea
GM
19793 * xfns.c (x_build_heuristic_mask): Use four_corners_best
19794 instead of IMAGE_BACKGROUND.
c22e59e1 19795
b350c2e5
GM
19796 * xfns.c (four_corners_best): Reindent.
19797
c22e59e1 19798 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
19799 Handle :box so that it is possible to specify sexprs.
19800
bf00d461
EZ
198012001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
19802
19803 * s/hpux11.h: New file.
19804
f00691a3 198052001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 19806
2b209b97
PJ
19807 * emacs.c (USAGE1): Show command line option --no-window-system
19808 instead of --no-windows in usage.
19809 (standard_args): Rename --no-windows to --no-window-system.
19810 (bug_reporting_address): Follow Emacs coding conventions.
19811
9dbc9081
PJ
19812 * eval.c (Fcommandp): Doc fix.
19813 Change doc-string comments to `new style' [w/`doc:' keyword].
19814
4e10df59
PJ
19815 * frame.c (Fframe_live_p): Doc fix.
19816
19817 * buffer.c (selective-display-ellipses): Doc fix.
19818
dd387b25
GM
198192001-10-31 Gerd Moellmann <gerd@gnu.org>
19820
fe957e65
GM
19821 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
19822
dd387b25
GM
19823 * xfaces.c (realize_x_face): If C is not a single-byte character,
19824 set the face's colors_copied_bitwise_p instead of the defaulted_p
19825 members which have a different meaning.
19826 (free_face_colors): Do nothing for a face whose colors have been
19827 copied bitwise.
19828
c22e59e1 19829 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 19830
f00691a3 198312001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 19832
687784e8
PJ
19833 * marker.c, mocklisp.c: Change doc-string comments to `new style'
19834 [w/`doc:' keyword].
2e1280f8 19835
b9d9a9b9
GM
198362001-10-31 Gerd Moellmann <gerd@gnu.org>
19837
19838 * fns.c (require_unwind): Return Lisp_Object.
19839
f00691a3 198402001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 19841
fa1361cb
PJ
19842 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
19843 (last-input-char): Revert doc-string to be the same as the
19844 doc-string of `last-input-event'.
19845
6c465a15 19846 * xdisp.c: Fix typos in comments.
48400103 19847
eafa3196
GM
198482001-10-31 Gerd Moellmann <gerd@gnu.org>
19849
19850 * window.c (grow_mini_window): Handle case that the root
19851 window is already smaller than the nominal mininum height.
19852
747d3f2a
SM
198532001-10-30 Stefan Monnier <monnier@cs.yale.edu>
19854
bf9bb76f
SM
19855 * emacs.c (main): Don't call keys_of_macros any more.
19856
19857 * lisp.h (keys_of_macros): Remove.
19858
19859 * macros.c (keys_of_macros): Remove.
19860
747d3f2a
SM
19861 * xfaces.c (Fface_attribute_relative_p): Declare args.
19862
5e905a57
JR
198632001-10-30 Jason Rumney <jasonr@gnu.org>
19864
19865 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
19866 (enum_font_cb2): Ignore fonts with vertical orientation.
19867
3a426197
RS
198682001-10-30 Richard M. Stallman <rms@gnu.org>
19869
19870 * keyboard.c (Finput_pending_p): Doc fix.
19871
a742d646
GM
198722001-10-30 Gerd Moellmann <gerd@gnu.org>
19873
259cf6bc
GM
19874 * xterm.c (x_after_update_window_line): Don't run the code
19875 clearing in borders for rows whose visible height is 0.
19876
3f99f948
GM
19877 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
19878 resized_p flag is set. If not set, use the much less flickering
19879 method previously used.
19880
19881 * dispnew.c (change_frame_size_1): Set frame's resized_p.
19882
19883 * frame.h (struct frame) <resized_p>: New member.
19884
b4a3be43
GM
19885 * lread.c (to_multibyte): Ensure read_buffer is at least twice
19886 as large as the number of bytes to convert.
747d3f2a 19887
a742d646
GM
19888 * lread.c (to_multibyte): New function.
19889 (read1): Use it.
19890
cacbb9e9
EZ
198912001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
19892
19893 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
19894
99cb6b2f
GM
198952001-10-30 Gerd Moellmann <gerd@gnu.org>
19896
327f42ee 19897 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
19898 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
19899 if the row's fill_line_p is set and drawing the last glyph with
19900 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 19901
99cb6b2f
GM
19902 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
19903
8e8223e2
SM
199042001-10-29 Stefan Monnier <monnier@cs.yale.edu>
19905
19906 * xmenu.c: Include coding.h and charset.h.
19907 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
19908 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
19909 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
19910 Explicitly set wv->help. Use `TRUE' rather than `True'.
19911 (menu_help_callback): Use empty_string.
19912
19913 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
19914 (Fx_popup_dialog): Explicitly init f.
19915 (w32_menu_display_help): Use empty_string.
19916
4d083a8f
RS
199172001-10-29 Richard M. Stallman <rms@gnu.org>
19918
b2304472
RS
19919 * fns.c (Frequire): Detect recursive try to require the same
19920 feature 3 or more levels deep, and get error.
19921 (require_unwind): New subroutine.
19922 (require_nesting_list): New variable.
19923 (syms_of_fns): Init and staticpro it.
19924
4d083a8f
RS
19925 * print.c (print_object): Clarify indication of insertion type.
19926
2fe41216
EZ
199272001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
19928
90480000
EZ
19929 * coding.c (syms_of_coding): Document that locale-coding-system is
19930 used for decoding input on X.
19931
2fe41216
EZ
19932 * window.c (Fscroll_left, Fscroll_right): Doc fix.
19933
f00691a3 199342001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
19935
19936 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
19937 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
19938
60ebcfe8
GM
199392001-10-29 Gerd Moellmann <gerd@gnu.org>
19940
9a7bdceb
GM
19941 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
19942 use NO_CURSOR if cursor_in_non_selected_windows is false.
19943
3f08fcd2
GM
19944 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
19945 the slant attribute if FRAME is t.
19946
0ccfdad2
GM
19947 * xfns.c (x_set_internal_border_width): Set frame garbaged
19948 when X window doesn't exist yet.
19949
ef253080
GM
19950 * xterm.c (x_after_update_window_line): Clear internal border
19951 in different circumstances.
b116830b 19952
60ebcfe8
GM
19953 * xterm.c (XTread_socket) <KeyPress>: Don't use
19954 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
19955 <handa@etl.go.jp>.
19956
73d25f9c
EZ
199572001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
19958
19959 * m/ibms390.h: New file. From Adam Thornton
19960 <athornton@sinenomine.net>.
19961
cac1daf0
GM
199622001-10-28 Gerd Moellmann <gerd@gnu.org>
19963
053b3256 19964 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 19965
cac1daf0
GM
19966 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
19967 a loop counter.
19968
f00691a3 199692001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 19970
f9711de4 19971 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 19972
4707d2d0
PJ
19973 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
19974 keyword].
19975 Fix typos in comments.
b116830b 19976
d883731c
PJ
19977 * emacs.c (bug_reporting_address): New function.
19978 Use it when displaying usage message.
19979
04012254
PJ
19980 * minibuf.c (read_minibuf): Remove unused external declaration of
19981 variable `Qread_only'.
19982
13b1a09c
PJ
19983 * keymap.c (access_keymap): Remove unused variable `charset'.
19984
5bbf4378
MB
199852001-10-28 Miles Bader <miles@gnu.org>
19986
19987 * xfaces.c (merge_face_heights): Handle TO being relative as well.
19988 Remove #ifdef'd-out code.
19989 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
19990 (syms_of_xfaces): Initialize them.
19991
1ce1e4ee
JR
199922001-10-27 Jason Rumney <jasonr@gnu.org>
19993
19994 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
19995 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
19996 position using the system caret.
19997
19998 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
19999 (w32_system_caret_height, w32_system_caret_x)
20000 (w32_system_caret_y): New variables for tracking system caret.
20001 (w32_initialize): Initialize them.
c2d53558 20002 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 20003
c2d53558
SM
20004 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
20005 New messages types.
1ce1e4ee
JR
20006
20007 * w32term.c (note_mouse_highlight): Clear old help_echo.
20008
f00691a3 200092001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 20010
bb4600a4
PJ
20011 * xterm.c: Fix typo in a comment.
20012
7db35a48
PJ
20013 * emacs.c: Fix typos in comments.
20014 Remove unnecessary spaces.
20015 Change doc-string comments to `new style' [w/`doc:' keyword].
20016 (USAGE2): Fix typos in usage string.
20017
a7248e4f
PJ
20018 * xterm.c: Fix typo in a comment.
20019
52eb0373 20020 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
20021 emacs.c.
20022
62725a92
GM
200232001-10-27 Gerd Moellmann <gerd@gnu.org>
20024
798dbe1f 20025 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 20026 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
20027 farther backward when target_y was not reached.
20028
62725a92
GM
20029 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
20030 Display errno only if non-zero.
20031 (sound_warning): New function.
20032 (vox_configure): Don't treat failing to set sample rate as error.
20033 (various places): Improve error messages.
20034
d4e34d24
EZ
200352001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
20036
944e6f60
EZ
20037 * fileio.c (Faccess_file): Run the argument filename through
20038 Fexpand_file_name, before using it.
20039
d4e34d24
EZ
20040 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
20041 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
20042
38d2af0c
GM
200432001-10-26 Gerd Moellmann <gerd@gnu.org>
20044
da80a8d5
GM
20045 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
20046
38d2af0c
GM
20047 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
20048 Fix clearing in the case of scroll bars on the right.
c2d53558 20049
45de4a6f 200502001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
20051
20052 * w32gui.h (XImage): Add a dummy typedef.
20053
fbd5ceb2
GM
200542001-10-26 Gerd Moellmann <gerd@gnu.org>
20055
c2d53558 20056 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 20057
b23236fb
EZ
200582001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
20059
20060 * frame.c (Fframe_parameter): Fix last change.
20061
5d991fc4
EZ
20062 * fileio.c: Revert last change (which removed old commented-out
20063 version of expand-file-name). Add a comment that explains why
20064 this old version should not be removed.
20065
879eadc3
GM
200662001-10-25 Gerd Moellmann <gerd@gnu.org>
20067
75700ff2
GM
20068 * frame.c (Fframe_parameter): Fix a bug whereby some
20069 ``artificial'' frame parameters, like `minibuffer' were not
20070 obtained by calling Fframe_parameters.
20071
dfe92a6a
GM
20072 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
20073 cursor differently.
20074
879eadc3
GM
20075 * xdisp.c (move_it_vertically_backward): Compute line height
20076 differently. Add heuristic to try to be more compatible to 20.x.
20077
e1010ebe
SM
200782001-10-25 Stefan Monnier <monnier@cs.yale.edu>
20079
d73a471b
SM
20080 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
20081
d6da5a06
GM
20082 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
20083 boolean.
e1010ebe 20084
f66bd220
MB
200852001-10-25 Miles Bader <miles@gnu.org>
20086
20087 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
20088 BG is a pointer to a structure, not a structure.
20089 (gif_format, png_format): Add missing commas.
20090
d436d538
RS
200912001-10-24 Richard M. Stallman <rms@gnu.org>
20092
20093 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 20094 (syms_of_xfaces): Defsubr it.
d436d538 20095
f00691a3 200962001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
20097
20098 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
20099 variable `area'.
20100
f00691a3 201012001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 20102
c2d53558 20103 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 20104
e2a57b34
MB
201052001-10-25 Miles Bader <miles@gnu.org>
20106
20107 * dispextern.h (struct image): Add `background',
20108 `background_valid', and `background_transparent' fields.
20109 (image_background, image_background_transparent): New declarations.
20110 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
20111 * xfns.c (image_background, image_background_transparent)
20112 (four_corners_best): New functions.
c2d53558 20113 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
20114 (gs_format): Add `:background' entry.
20115 (lookup_image): Set IMG's background color if specified.
20116 (pbm_load, xbm_load_image, png_load): Set IMG's background field
20117 when appropriate.
20118 (x_clear_image_1): Reset `background_valid' and
20119 `background_transparent_valid' fields.
20120 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20121 calculating it here. Set IMG's background_transparent field.
20122 (enum xpm_keyword_index): Add XPM_BACKGROUND.
20123 (enum png_keyword_index): Add PNG_BACKGROUND.
20124 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20125 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20126 (enum gif_keyword_index): Add GIF_BACKGROUND.
20127 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 20128 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
20129 Pre-calculate image background color where necessary.
20130 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20131 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20132 color to use for image glyph reliefs.
20133
b547b6e8
GM
201342001-10-24 Gerd Moellmann <gerd@gnu.org>
20135
d9e3b8c6
GM
20136 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
20137 in full-width rows.
c2d53558 20138
b547b6e8
GM
20139 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
20140 Fix clearing of area not covered by scroll bar.
20141
f00691a3 201422001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 20143
52eb0373 20144 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 20145 and `real_start'.
c2d53558 20146 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
20147 (glyph_rect): Remove unused variable `area'.
20148
76cb5e06
GM
201492001-10-24 Gerd Moellmann <gerd@gnu.org>
20150
bdbdebff 20151 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
20152
20153 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
20154 (row_containing_pos): Take additional argument DY.
20155 Treat rows ending in middle of char differently.
62e33982
GM
20156 (display_line): Handle tabs on window systems differently.
20157
20158 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
20159 with additional argument.
20160
20161 * dispextern.h (row_containing_pos): Adjust prototype.
20162
76cb5e06
GM
20163 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
20164 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
20165 (try_window_id, try_window_reusing_current_matrix)
20166 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 20167 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 20168
f00691a3 201692001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 20170
c9e60620
PJ
20171 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
20172 gnuemacs).
20173 (HAVE_BOXES): Fix typo in comment.
20174 (push_menu_pane): Fix typo in comment.
20175
52eb0373 20176 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
20177 of `Qwhen'.
20178 (single_display_prop_string_p): Remove unused local declarations
20179 of `Qwhen' and `Qmargin'.
20180 (string_buffer_position): Remove unused variable `around'.
20181 (store_frame_title): Remove unused variable `width'.
20182
15c565ac
PJ
20183 * window.c: Don't define max.
20184 (coordinates_in_window): Remove unused variable `uy'.
20185
a8818eb9
PJ
20186 * widget.c: Don't define max.
20187
996fee11
PJ
20188 * process.c: Don't define max.
20189 (create_process): Remove unused variable `buffer'.
20190
496e1a5b
GM
201912001-10-23 Gerd Moellmann <gerd@gnu.org>
20192
c2d53558 20193 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 20194
5905ae8b
EZ
201952001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
20196
20197 * xfaces.c (Finternal_set_lisp_face_attribute)
20198 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
20199 frame is on a windowed display.
20200
24db49fb
GM
202012001-10-23 Gerd Moellmann <gerd@gnu.org>
20202
c2d53558
SM
20203 * dispnew.c (sync_window_with_frame_matrix_rows):
20204 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
20205 of marginal areas.
20206
c2d53558 20207 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 20208
f0487f05
EZ
202092001-10-23 Andreas Schwab <schwab@suse.de>
20210
20211 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
20212 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
20213
f0a48a01
GM
202142001-10-23 Gerd Moellmann <gerd@gnu.org>
20215
c2d53558 20216 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
20217 REAL_END. Notice if cursor gets overwritten.
20218 (notice_overwritten_cursor): Take X positions as parameters.
20219 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20220 around call to x_draw_glyphs.
20221
f00691a3 202222001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 20223
fc11dff0
PJ
20224 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
20225 instead of C) and usage.
a50a10a0 20226
fc11dff0
PJ
20227 * editfns.c (char-to-string): Fix argument names (use CHAR instead
20228 of C) and usage.
a50a10a0
PJ
20229
20230 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
20231 `left', `max_width' and `max_height'.
20232
8738febd
GM
202332001-10-23 Gerd Moellmann <gerd@gnu.org>
20234
20235 * xdisp.c (display_line): For a tab continued to the next line,
20236 set row's ends_in_middle_of_char_p.
20237
653c329b
GM
202382001-10-22 Gerd Moellmann <gerd@gnu.org>
20239
20240 * xdisp.c (display_line): Fix computation of continuation lines
20241 width for TABs.
20242
f00691a3 202432001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 20244
7ba51063
PJ
20245 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
20246 `Qlaplace'.
20247
f958c5ac
PJ
20248 * fileio.c: Remove unused code.
20249
eb360291
MB
202502001-10-22 Miles Bader <miles@gnu.org>
20251
20252 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
20253 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
20254 Remove `DOC_STRINGS_IN_COMMENTS' cases.
20255
98515cf0
JR
202562001-10-21 Jason Rumney <jasonr@gnu.org>
20257
20258 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
20259
93026d88
EZ
202602001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
20261
20262 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
20263 (Finsert_string): Avoid the multi-line string literals warning.
20264
c9a95b79
MB
202652001-10-22 Miles Bader <miles@gnu.org>
20266
20267 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
20268 (Fdocumentation): Don't use it.
20269 (syms_of_doc): Don't initialize it.
20270
20271 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
20272 * print.c (Fwith_output_to_temp_buffer): Likewise.
20273 * window.c (Fsave_window_excursion): Likewise.
c2d53558 20274 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 20275 (Fsave_restriction): Likewise.
c2d53558
SM
20276 * eval.c (Frun_hooks, Frun_hook_with_args)
20277 (Frun_hook_with_args_until_failure)
20278 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
20279 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
20280 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
20281 (Funwind_protect, Fcondition_case): Likewise.
20282 * coding.c (Ffind_operation_coding_system): Likewise.
20283 * keyboard.c (Ftrack_mouse): Likewise.
20284
a3b10252
MB
202852001-10-21 Miles Bader <miles@gnu.org>
20286
c2d53558 20287 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
20288 (Fmake_hash_table): Add usage: string to doc string.
20289 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 20290 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
20291 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
20292 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
20293 (Fml_prefix_argument_loop): Likewise.
20294
f00691a3 202952001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 20296
c2d53558 20297 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 20298
c6f73eec
PJ
20299 * sysdep.c (init_sys_modes): Change doc-string comments to `new
20300 style' [w/`doc:' keyword].
20301
20302 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
20303 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
20304 comments to `new style' [w/`doc:' keyword].
20305
3cf3436e
JR
203062001-10-21 Jason Rumney <jasonr@gnu.org>
20307
20308 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
20309
c169b8f1
JR
20310 * w32term.c (remember_mouse_glyph): New function.
20311 (w32_mouse_position): Use it.
20312 (note_mouse_movement): If the mouse moved off the glyph, remember
20313 its new position.
c2d53558 20314
4fdd691b
JR
20315 * w32term.h (struct w32_output): Correct spelling of x_compatible.
20316 (w32_display_info): Add mouse_face_overlay.
20317
c169b8f1
JR
20318 * w32term.c (notice_overwritten_cursor): Renamed from
20319 note_overwritten_text_cursor. Rewritten to take glyph widths into
20320 account.
20321 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
20322 (fast_find_string_pos): New function.
20323 (fast_find_position): Return the correct vpos. Add parameter
20324 STOP. In the final row, stop before glyphs having STOP as object.
20325 Don't consider glyphs that are not from a buffer.
20326 (fast_find_position) [0]: Add a presumably more correct version
20327 for after 21.1.
20328 (expose_window_tree, expose_frame): Don't compute intersections here.
20329 (expose_window): Do it here instead.
20330 (expose_window_tree, expose_window, expose_line): Return 1 when
20331 overwriting mouse-face.
20332 (expose_window): If W is the window currently being updated, mark
20333 the frame garbaged.
20334 (expose_frame): If mouse-face was overwritten, redo it.
20335 (x_use_underline_position_properties): New variable.
20336 (syms_of_xterm): DEFVAR_BOOL it.
20337 (x_draw_glyph_string): Add comment to use it in future.
20338 (x_draw_glyph_string): Restore clipping after drawing box.
20339 Fix a computation of the underline position.
20340 (w32_get_glyph_string_clip_rect): Minor cleanup.
20341 (x_fill_stretch_glyph_string): Remove an assertion.
20342 (x_produce_glyphs): Don't convert multibyte characters
20343 to unibyte characters in unibyte buffers.
20344 (cursor_in_mouse_face_p): New function.
20345 (x_draw_stretch_glyph_string): Use it to choose a different GC
20346 when drawing a cursor within highlighted text. Don't draw
20347 background again if it has already been drawn.
20348 (x_draw_glyph_string_box): Don't draw a full-width
20349 box just because the glyph row's full_width_p flag is set.
20350 (x_draw_glyphs): Fix computation of rightmost x for
20351 full-width rows.
20352 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
20353 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 20354 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
20355 (x_update_window_end): Handle overwritten mouse face
20356 also for tool bar windows.
20357 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
20358 DRAW is DRAW_IMAGE_RAISED.
20359 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
20360 actually redrawn. Make the function static.
20361 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
20362 optimize away highlighting if we pass over that same overlay again.
20363 (note_mouse_highlight): Call mouse_face_overlay_overlaps
20364 to detect a case where we have to highlight a different region
20365 despite not having left the currently highlighted region.
20366 Set mouse_face_overlay in the x_display_info. Avoid changing the
20367 mouse pointer shape when show_mouse_face has already done it, or
20368 there is no need. Handle mouse-face and help-echo in strings.
20369 (glyph_rect): New function.
20370 (w32_mouse_position): Use it to raise the threshold for mouse
20371 movement event generation.
20372 (w32_initialize_display_info): Initialize the x_display_info's
20373 mouse_face_overlay.
20374 (w32_set_vertical_scroll_bar): Don't clear a zero height
20375 or width area.
20376 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
20377 a widget to zero height.
20378
3cf3436e 20379 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 20380 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
20381 equivalents in menu_items.
20382 (w32_menu_show): Don't overwrite an item's name with its key
20383 description in case the description is a multibyte string.
20384 (single_submenu): Some cleanup.
20385
20386 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
20387 (postprocess_image): New function.
20388 (lookup_image): Call it for all image types except PostScript.
20389 (x_kill_gs_process): Call postprocess_image.
20390 (tiff_error_handler, tiff_warning_handler): New functions.
20391 (tiff_load): Install them as handlers.
20392 (x_kill_gs_process): Recognize if someone has cleared the image
20393 cache under us.
20394 (valid_image_p): Protect better against invalid image
20395 specifications. Previous code could signal an error.
20396 (Fx_hide_tip, Fshow_tip): Doc fix.
20397 (Fv_max_tooltip_size): New variable.
20398 (syns_of_xfns): DEFVAR_LISP it.
20399 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 20400 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
20401 window_width. Use a maximum tooltip size specified by
20402 Vx_max_tooltip_size, if that has valid contents.
20403 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
20404 Make sure the tooltip is completely visible.
20405 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
20406 (Fx_create_frame): Adjust the frame's height for presence
20407 of the tool bar before calling x_figure_window_size.
20408 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
20409 when the window gets smaller.
20410 (x_set_foreground_color): Set frame's cursor_pixel.
20411 (x_set_foreground_color, x_set_background_color): Cleaned up.
20412 (x_set_font): Handle case of x_new_fontset returning the same name
20413 as before, although there was a change in fontsets.
20414
386ca361
MB
204152001-10-21 Miles Bader <miles@gnu.org>
20416
c2d53558 20417 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
20418 (Flogxor): Add usage: string to doc string.
20419 * charset.c (Fstring): Likewise.
20420 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
20421 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
20422
f00691a3 204232001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 20424
03be2694
PJ
20425 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
20426
20427 * alloc.c: Reindent DEFUNs with doc: keywords.
20428
20429 * abbrev.c (Finsert_abbrev_table_description): Reindent.
20430
14ff1ee0
PJ
20431 * frame.c: Change doc-string comments to `new style' [w/`doc:'
20432 keyword].
20433
2f147815 20434See ChangeLog.9 for earlier changes.
6922b018
KH
20435
20436;; Local Variables:
49b3bd82 20437;; coding: iso-2022-7bit
6922b018 20438;; End:
2a34a036 20439
2f147815 20440 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
20441 Copying and distribution of this file, with or without modification,
20442 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
20443
20444;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4