(gethomedir): Use xstrdup.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8fd0f424
RF
12006-04-10 Romain Francoise <romain@orebokech.com>
2
3 * xrdb.c (gethomedir): Use xstrdup.
4
f8f10777
AS
52006-04-10 Andreas Schwab <schwab@suse.de>
6
7 * xrdb.c (gethomedir): Make sure to always return a pointer that
8 can be passed to free.
9
2a8da555
RS
102006-04-09 Richard Stallman <rms@gnu.org>
11
12 * lisp.h (Fkill_emacs): Undo previous change.
13
142006-04-08 Richard Stallman <rms@gnu.org>
15
16 * search.c (boyer_moore): Test ch >= 0400, not >.
17
404be028
DN
182006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
19
20 * puresize.h (pure_write_error): Mark as NO_RETURN.
21
4ca412ec 22 * lisp.h (args_out_of_range, args_out_of_range_3)
404be028 23
f93bd8e4
EZ
242006-04-08 Eli Zaretskii <eliz@gnu.org>
25
26 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
27 if a menu is active on this frame.
28
31a4f621
DN
292006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
30
31 * lisp.h (report_file_error): Mark as NO_RETURN.
32
7e773529
EZ
332006-04-08 Eli Zaretskii <eliz@gnu.org>
34
4f27350a
EZ
35 * alloc.c [STDC_HEADERS]: Include stddef.h.
36
7e773529
EZ
37 * lisp.h (PSEUDOVECSIZE): Fix last change.
38
6bfd98e7
SM
392006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
40
41 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
42 `raw_status_high', and `raw_status_low' with plain integers, and move
43 them to the end of the structure.
44
45 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
46 pseudovector's size field so only the Lisp_Object fields get GC'd.
47
48 * process.c (update_status, make_process, Fdelete_process)
49 (Fprocess_status, list_processes_1, start_process_unwind)
50 (create_process, Fmake_network_process, server_accept_connection)
51 (wait_reading_process_output, send_process, Fprocess_running_child_p)
52 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
53 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
54 `pid' and `raw_status'.
55 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
56 representing PIDs that are larger than most-positive-fixnum.
57
58 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
59
60 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
61
1d79e521
EZ
622006-04-08 Eli Zaretskii <eliz@gnu.org>
63
64 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
65
d65b4235
PE
662006-04-03 Paul Eggert <eggert@cs.ucla.edu>
67
68 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
69 ../lib-src/b2m.c and ../lib-src/editfns.c.
70 (Fcurrent_time_string): Use it.
71 Document that the year might not consume 4 columns if it's outside
72 the range 1000-9999.
73 Check for asctime failure.
74 Don't assume that the output string length is always exactly 24.
75
fc9f8d15
YM
762006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
77
78 * macterm.c (XTread_socket): Initialize variable `f' before its use.
79
022af124
KH
802006-04-03 Kenichi Handa <handa@m17n.org>
81
82 * image.c: Include "charset.h" and "coding.h".
83 (x_find_image_file): Return an encoded file name.
84
61be4a8a
EZ
852006-04-01 Eli Zaretskii <eliz@gnu.org>
86
87 * configure: Regenerated.
88
a869edd4
KH
892006-03-31 Kenichi Handa <handa@m17n.org>
90
91 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
92
29444a2f
DN
932006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
94
95 * xdisp.c (syms_of_xdisp): Fix variable name.
96
3c5f9492
KH
972006-03-30 Kenichi Handa <handa@m17n.org>
98
99 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
100
267ee78f
JB
1012006-03-29 Juanma Barranquero <lekktu@gmail.com>
102
103 * keyboard.c (process_tool_bar_item): Reorder dummy args.
104
293bd733
SM
1052006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
106
107 * keyboard.c (tool_bar_items): Use map_keymap.
108 (process_tool_bar_item): Add dummy args to fit the required interface.
109
4fccedb5
EZ
1102006-03-25 Eli Zaretskii <eliz@gnu.org>
111
112 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
113 to zero before calling debug_print or safe_debug_print.
114
115 * print.c (print_output_debug_flag): New global variable.
116 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
117 OutputDebugString if print_output_debug_flag is zero.
118
aac18aa4
PE
1192006-03-24 Paul Eggert <eggert@cs.ucla.edu>
120
71c3f28f 121 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
aac18aa4 122 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
71c3f28f
EZ
123 (Fdecode_time): Cast tm_year to EMACS_INT.
124 (Fcurrent_time_string): Report an invalid time specification if
293bd733 125 the argument is invalid. Also, check for out-of-range time stamps.
aac18aa4 126
0ef4f79b
KS
1272006-03-24 Kim F. Storm <storm@cua.dk>
128
95d8aa28
KS
129 * xterm.c (handle_one_xevent):
130 * w32term.c (w32_read_socket):
95d8aa28
KS
131 * macterm.c (XTread_socket): Don't let key-press clear mouse face
132 on in toolbar window if mouse-highlight is an integer.
133
0ef4f79b
KS
134 * fns.c (sxhash_list): Include last non-nil CDR in hash.
135
e2e206ae
YM
1362006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
137
138 * macmenu.c (enum mac_menu_kind): New enum.
139 (min_menu_id): New variable.
140 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
141 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
142 min_menu_id and enumerators in enum mac_menu_kind.
143 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
144 All uses changed. Add range check for menu ID.
145 (fill_menubar): Add range check for menu ID.
146 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
147 GetEventParameter.
148 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
149 for each menu kind.
150
5a32a2f2
KS
1512006-03-22 Kim F. Storm <storm@cua.dk>
152
ea049c5e
KS
153 * xdisp.c: Undo 2006-03-21 change.
154
155 * term.c: Define aliases for append_glyph and produce_stretch_glyph
156 when `static' is defined to avoid name clash with those in xdisp.c.
157
5a32a2f2
KS
158 * process.c (Faccept_process_output): Fix to comply with lisp reference.
159 Change arg "timeout" to "seconds" and allow both integer and float value.
160 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
161 rather than microseconds. Fix doc string accordingly.
162
d63cd766
KR
1632006-03-21 Ken Raeburn <raeburn@raeburn.org>
164
293bd733
SM
165 * xdisp.c (store_next_glyph): Rename from append_glyph.
166 (generate_stretch_glyph): Rename from produce_stretch_glyph.
d63cd766
KR
167 All callers changed accordingly.
168
11e887e2
JD
1692006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
170
171 * xterm.c: x_session_initialized new variable.
172 (x_term_init): Use x_session_initialized to check if
173 x_session_initialize should be called.
174 (x_initialize): Initialize x_session_initialized.
175
52bd2f43
KS
1762006-03-21 Kim F. Storm <storm@cua.dk>
177
178 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
179 bitmap here, but ...
180 (update_window_fringes): ... here, so we can test if it has changed.
181
c1fc674b
AS
1822006-03-20 Andreas Schwab <schwab@suse.de>
183
184 * dispnew.c (init_display): Check DISPLAY here.
185
186 * emacs.c (main): Don't check here.
187
188 * xterm.c (x_display_ok): Don't use DISPLAY env var.
189
7d619454
SM
1902006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
191
192 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
193 mixup (YAILOM).
194
e2916251
EZ
1952006-03-20 Eli Zaretskii <eliz@gnu.org>
196
197 * emacs.c (main): Fix last change.
198
95c1c901
KH
1992006-03-20 Kenichi Handa <handa@m17n.org>
200
7d619454 201 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
95c1c901
KH
202
203 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
204
205 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
206
207 * xterm.c (x_term_init): Remove unnecessary GCPRO.
208
45c1c789
KS
2092006-03-19 Kim F. Storm <storm@cua.dk>
210
211 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
212 so it doesn't associate overlay string with following glyph by default.
213 Allow integer property value to specify explicit number of buffer
214 positions associate with overlay string.
215
11aaf447
CY
2162006-03-18 Chong Yidong <cyd@stupidchicken.com>
217
218 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
219
e4d181dc
EZ
2202006-03-18 Nozomu Ando <nand@mac.com>
221
222 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
223 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
224 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
225 Don't redefine.
226
227 * m/mips.h: Don't use unexmips on NetBSD.
228 (LIBS_MACHINE): Move definition lower, so it doesn't use
229 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
230 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
231
232 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
233 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
234 option is broken (e.g., MIPS/NetBSD).
235
50f9edc2
EZ
2362006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
237
238 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
7b833ed1 239 Remove the HAVE_X_WINDOWS conditional.
50f9edc2 240
7e37c7c0
EZ
2412006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
242
243 * emacs.c (main): If user asks for a display that is unavailable,
244 simulate -nw.
245
246 * xterm.c (x_display_ok): New function.
247
248 * xterm.h: Add prototype for x_display_ok.
249
c85eab3a
EZ
2502006-03-18 Eli Zaretskii <eliz@gnu.org>
251
252 * w32fns.c (Fw32_select_font): Doc fix.
253
e09ce637
YM
2542006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
255
256 * image.c [MAC_OS] (XPutPixel, XGetPixel)
257 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
258 version when depth is 32.
7d619454
SM
259 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
260 New function.
e09ce637
YM
261 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
262 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
263
264 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
265 Create GWorld in ARGB pixel format.
7d619454
SM
266 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
267 Remove functions.
e09ce637
YM
268 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
269 instead of mac_copy_area/mac_copy_area_with_mask.
270
b0896280
KS
2712006-03-15 Kim F. Storm <storm@cua.dk>
272
273 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
274 empty row. Fixes memory corruption revealed by 2006-03-02 change.
275 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
276 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
277 width is exactly the same as the window width. Don't count a final
278 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
279
713cb18d
JB
2802006-03-15 Juanma Barranquero <lekktu@gmail.com>
281
364d0cf8 282 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
713cb18d
JB
283 conditional on HAVE_NTGUI, not WINDOWS_NT.
284
ad21830e
YM
2852006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
286
287 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
288
289 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
290
291 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
292 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
293 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
294 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
295 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
296 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
297 instead of mac_draw_bitmap.
298 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
299 define_fringe_bitmap and destroy_fringe_bitmap.
300
8a34117e
CY
3012006-03-14 Chong Yidong <cyd@stupidchicken.com>
302
303 * xterm.c (x_uncatch_errors): Block input for entire function.
304
ab68b375
JR
3052006-03-12 Jason Rumney <jasonr@gnu.org>
306
92cc46af 307 * w32fns.c (Fx_create_frame): Remove call to
364d0cf8 308 Qface_set_after_frame_default (from xfns.c 2003-05-26).
92cc46af 309
335be36b
JR
310 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
311 finished with the menu.
312
ab68b375
JR
313 * w32term.c: Sync 2005-10-24 xterm.c changes.
314 (last_mouse_glyph_frame): New var.
315 (note_mouse_movement): Say mouse moved if current frame differs
316 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
317 (w32_mouse_position): Set last_mouse_glyph_frame.
875e613d 318 Remove OLD_REDISPLAY_CODE block.
ab68b375 319
204b78de
YM
3202006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
321
322 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
323
324 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
325 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
326
327 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
328
329 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
330
331 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
332 (x_draw_composite_glyph_string_foreground)
333 (x_draw_image_foreground): Undo previous changes.
334 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
335 argument of mac_draw_rectangle.
336 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
337 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
338 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
339 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
340 [USE_CG_DRAWING]: New functions.
341 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
342 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
343 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
344 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
345 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
346 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
347 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
348
a9d54793
KL
3492006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
350
351 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
352
b452fd7a
JR
3532006-03-11 Jason Rumney <jasonr@gnu.org>
354
355 * w32fns.c (signal_user_input): New function.
356 (post_character_message): Use it for keyboard input.
357 (w32_msg_pump): Use it for mouse input.
358
f372bd5b
LT
3592006-03-11 Luc Teirlinck <teirllm@auburn.edu>
360
361 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
362 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
363
2c1bd367
EZ
3642006-03-11 Eli Zaretskii <eliz@gnu.org>
365
366 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
367 if a menu is already active (the menubar_active flag is on).
368
f161146b
EZ
3692006-03-11 David Ponce <david@dponce.com>
370
7d619454 371 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
f161146b 372
9257b627
EZ
3732006-03-11 Eli Zaretskii <eliz@gnu.org>
374
db3c0e9c
EZ
375 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
376 the list of unused display error handling functions.
377
8887e8ec
EZ
378 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
379 HAVE_X_WINDOWS.
380 (internal_condition_case, internal_condition_case_1)
381 (internal_condition_case_2): Call x_catching_errors only if
382 HAVE_X_WINDOWS.
383
9257b627
EZ
384 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
385 Don't include sys/resource.h unless defined.
386
395d3972
RS
3872006-03-11 Richard Stallman <rms@gnu.org>
388
5a893bff
RS
389 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
390
395d3972 391 * vm-limit.c (get_lim_data, lim_data, data_space_start):
7d619454 392 Move from mem-limits.h.
395d3972
RS
393 (enum warnlevel): New data type.
394 (check_memory_limits): Rewrite the logic about warnings.
395 Use standard `struct rlimit'. Check return values for nonsense.
396 (memory_warnings): Always clear lim_data.
397
398 * mem-limits.h (get_lim_data, lim_data, data_space_start):
7d619454 399 Move to vm-limit.c.
395d3972
RS
400
401 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
402
403 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
f372bd5b 404 (internal_condition_case_1, internal_condition_case_2):
395d3972
RS
405 Abort if within unclosed x_catch_errors.
406
635a3496
RF
4072006-03-11 Romain Francoise <romain@orebokech.com>
408
409 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
410
306cea3a
EZ
4112006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
412
413 * lisp.h: Remove duplicate prototypes. Make the prototype of
414 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
415
97b5ae78
EZ
4162006-03-11 Eli Zaretskii <eliz@gnu.org>
417
7325e714
EZ
418 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
419 argument of XDrawRectangle.
420
97b5ae78
EZ
421 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
422
423 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
424 (x_draw_glyph_string_foreground)
425 (x_draw_composite_glyph_string_foreground)
426 (x_draw_image_foreground): Don't subtract 1 from width and height
427 arguments to mac_draw_rectangle.
428 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
429
68f632a8
KS
4302006-03-10 Kim F. Storm <storm@cua.dk>
431
432 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
433
349a4500
SM
4342006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
435
436 * alloc.c (USE_POSIX_MEMALIGN): New macro.
437 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
438
53a5eba9
KH
4392006-03-09 Kenichi Handa <handa@m17n.org>
440
441 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
442 ASCII component of a composition.
443
629f023d
LT
4442006-03-08 Luc Teirlinck <teirllm@auburn.edu>
445
446 * window.c: Declare preserve_y as a static global variable.
447 (window_scroll_pixel_based): No longer declare preserve_y;
448 it is global now.
f945af42 449 (syms_of_window): Set preserve_y to -1.
629f023d 450
4cdffedf
YM
4512006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
452
453 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
454 depth is 32.
204b78de 455 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4cdffedf
YM
456 depth is 32.
457
45b5f35d
CY
4582006-03-06 Chong Yidong <cyd@stupidchicken.com>
459
460 * xdisp.c (handle_invisible_prop): Don't update it->position with
461 a buffer position if we're in a display string.
462
48b60fa1
YM
4632006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
464
465 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
466 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
467
468 * macfns.c (x_default_scroll_bar_color_parameter)
349a4500
SM
469 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
470 Remove unnecessary prototypes.
471 (x_set_scroll_bar_default_width):
472 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
48b60fa1
YM
473 (mac_set_scroll_bar_width): New function.
474 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
475
476 * macterm.c (get_control_part_bounds): Fix type of return value.
477 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
478 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
479 scroll bar if it is not tall enough to display scroll bar thumb.
480 [USE_CARBON_EVENTS] (mac_convert_event_ref)
481 (mac_handle_command_event, mac_handle_window_event)
482 (mac_handle_mouse_event): Check error code of GetEventParameter.
483 (convert_fn_keycode) [MAC_OSX]: Likewise.
f945af42 484
6f10509c
AS
4852006-03-05 Andreas Schwab <schwab@suse.de>
486
487 * xselect.c (x_catch_errors_unwind): Fix missing return value.
488
f79bc642
KS
4892006-03-02 Kim F. Storm <storm@cua.dk>
490
491 * frame.h (struct frame): New member n_tool_bar_rows.
492
493 * xdisp.c: Minimize the unpleasent visual impact of the requirement
494 that non-toolkit tool-bars must occupy an integral number of screen
875e613d 495 lines, by distributing the rows evenly over the tool-bar screen area.
f79bc642
KS
496 (Vtool_bar_border): New variable.
497 (syms_of_xdisp): DEFVAR_LISP it.
349a4500
SM
498 (display_tool_bar_line): Add HEIGHT arg for desired row height.
499 Make tool-bar row the desired height. Use default face for border
500 below tool-bar.
f79bc642
KS
501 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
502 actual tool-bar rows.
503 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
504 Adjust the height of the tool-bar rows to fill tool-bar screen area.
505 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
506 is resized.
507
0bbe0c9c
LT
5082006-03-01 Luc Teirlinck <teirllm@auburn.edu>
509
510 * search.c (Fregexp_quote): Do not precede a literal `]' with two
511 backslashes to try to make clear that it has a literal meaning; it
512 does not do that. (It could close a character alternative
513 containing a backslash.)
514
c525d842
CY
5152006-02-28 Chong Yidong <cyd@stupidchicken.com>
516
517 * xselect.c (x_catch_errors_unwind): New function.
518 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
519 (Fx_get_atom_name): Call x_uncatch_errors earlier.
520
521 * window.c (Qscroll_up, Qscroll_down): New syms.
522 (window_scroll_pixel_based): Make preserve_y static to avoid
523 getting point stuck when scrolling 1 line.
524
4545fa20
CY
5252006-02-26 Chong Yidong <cyd@stupidchicken.com>
526
349a4500 527 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4545fa20 528
364d0cf8
JB
529 * xterm.c (x_load_font, x_term_init, XTmouse_position)
530 (handle_one_xevent, x_connection_closed, x_list_fonts):
531 No arg for x_uncatch_errors.
4545fa20
CY
532
533 * xselect.c (x_own_selection, x_decline_selection_request)
534 (x_reply_selection_request, x_get_foreign_selection)
535 (Fx_get_atom_name, Fx_send_client_event): Likewise.
536
537 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
538 Likewise.
539
a5e25a4c
LT
5402006-02-26 Luc Teirlinck <teirllm@auburn.edu>
541
440cbd9e
LT
542 * lread.c: Declare Vload_file_rep_suffixes instead of
543 deleted variable default_suffixes.
544 (Fget_load_suffixes): New function.
545 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
546 No longer use deleted variable default_suffixes. Update docstring.
547 (syms_of_lread): defsubr Sget_load_suffixes.
548 Expand `load-suffixes' docstring.
549 Delete default_suffixes and DEFVAR_LISP the new variable
550 `load-file-rep-suffixes'.
551
552 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
553 of Vload_suffixes.
554
555 * lisp.h: EXFUN Fget_load_suffixes.
556 Extern Vload_file_rep_suffixes.
557
a5e25a4c
LT
558 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
559 with lisp.h.
560
a7af5886
SM
5612006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
562
563 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
564 qualifier which was trying to avoid the bug that was fixed by
565 yesterday's changes to xterm.c.
566
9ba8e10d
CY
5672006-02-25 Chong Yidong <cyd@stupidchicken.com>
568
569 * xterm.h (x_catch_errors) Return value changed to void.
4545fa20 570 (x_uncatch_errors): Delete unused count argument.
a7af5886 571
9ba8e10d
CY
572 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
573 it can be called in a signal handler.
574 (x_catch_errors_unwind): Function deleted.
575 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
576 (x_check_errors): Call x_uncatch_errors before signalling error.
577
578 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
579 (x_connection_closed, x_list_fonts): Use new versions of
580 x_catch_errors and x_uncatch_errors.
581
582 * xselect.c (x_own_selection, x_decline_selection_request)
583 (x_reply_selection_request, x_get_foreign_selection)
584 (Fx_get_atom_name, Fx_send_client_event): Likewise.
585
586 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
587 Likewise.
588
589 * eval.c (record_unwind_protect): Add an assertion.
590
f523e0c3
SM
5912006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
592
593 * process.c (Fmake_network_process): Init the process's mark.
594
a7a7e1d7
KS
5952006-02-25 Kim F. Storm <storm@cua.dk>
596
597 * buffer.c (modify_overlay): Force redisplay if we modify an
598 overlay at the end of the buffer.
599
a821c035
JD
6002006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
601
602 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
603 nil the image file has been removed, in that case use the (cached)
604 pixmap.
605
77343e1d
KH
6062006-02-24 Kenichi Handa <handa@m17n.org>
607
608 * fileio.c (Finsert_file_contents): When a text is replaced
609 partially, be sure to set point before the inserted characters.
610
92fb5516
KH
6112006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
612
613 * xfns.c (Fx_file_dialog): Return a decoded file name.
614
78897758
YM
6152006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
616
617 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
618 glyph whose face is extended to the text area end.
619
5b574e69
YM
620 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
621 values if control is not visible or values are not changed.
622
acc6289a
SM
6232006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
624
625 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
626 The default `window' should not be "on a different frame".
627
c4336e88
KS
6282006-02-22 Kim F. Storm <storm@cua.dk>
629
630 * indent.c (Fvertical_motion): Only try to move back if we can.
631
b6e3efe0
YM
6322006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
633
634 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
635 n_clip_rects.
636
637 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
638 xmenu.c.
639
640 * macterm.c (GC_CLIP_REGION): Remove macro.
641 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
642 All uses changed. Don't do clipping if n_clip_rects is zero.
acc6289a
SM
643 (mac_set_clip_rectangles): Use xassert instead of abort.
644 Set n_clip_rects. Don't make clip_region empty when number of
b6e3efe0
YM
645 clipping rectangles is zero.
646 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
647 calling mac_set_clip_rectangles.
648 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
649 avoid multiple redraws.
650
6f62a45e
KS
6512006-02-22 Kim F. Storm <storm@cua.dk>
652
653 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
654
dd9959da
KS
6552006-02-21 Kim F. Storm <storm@cua.dk>
656
657 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
658
364d0cf8 6592006-02-21 Zhang Wei <brep@newsmth.org>
a8f4bdc6
JD
660
661 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
662 returning it.
663
dd9959da 6642006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
9866a438
JB
665
666 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
667 (standard_bitmaps): Use it.
668
9fb446e3
YM
6692006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
670
671 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
672 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
673 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
674 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
acc6289a
SM
675 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
676 Draw background if BG_WIDTH is not zero. Use float constants as
9fb446e3
YM
677 divisors instead of double. Use alloca instead of xmalloc/xfree.
678 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
679 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
680 mac_draw_image_string* functions.
681 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
682 some fonts when srcCopy text transfer mode might be used.
683 (mac_begin_clip, mac_end_clip): Check if region is empty.
684 (mac_set_clip_rectangles): When resetting clip region, make it
685 empty instead of disposing of it.
686
acc6289a
SM
6872006-02-20 Stefan Monnier <monnier@iro.umontreal.ca>
688
689 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
690 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8).
691
49af2995
KS
6922006-02-20 Kim F. Storm <storm@cua.dk>
693
694 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
695
696 * buffer.h (struct buffer): New members fringe_indicator_alist and
697 fringe_cursor_alist.
698
699 * buffer.c (init_buffer_once): Set dummy default values for
700 fringe-indicator-alist and fringe-cursor-alist. The proper
701 default values are set by pre-loading fringe.el.
702 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
703 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
9866a438 704 corresponding default- variables.
49af2995
KS
705
706 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
707 to use `int'.
708 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
709 Define explicitly.
710 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
711 (Qhollow_small): New variables.
712 (syms_of_fringe): Intern and staticpro them.
713 (question_mark_bits): Rename from unknown_bits.
714 (left_curly_arrow_bits): Rename from continuation_bits.
715 (right_curly_arrow_bits): Rename from continued_bits.
716 (left_triangle_bits): Rename from ov_bits.
acc6289a 717 (right_triangle_bits): Add.
49af2995
KS
718 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
719 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
acc6289a 720 (filled_square_bits): Add.
49af2995 721 (vertical_bar_bits): Rename from bar_cursor_bits.
9866a438 722 (horizontal_bar_bits): Rename from hbar_cursor_bits.
49af2995
KS
723 (empty_line_bits): Rename from zv_bits.
724 (standard_bitmaps): Update to use new names.
725 (draw_fringe_bitmap_1): Make static.
726 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
727 to map from logical cursors and indicators to physical bitmaps.
875e613d 728 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
49af2995
KS
729 bitmaps using symbol names instead of bitmap numbers.
730 (update_window_fringes): Use logical indicator symbol names
731 instead of bitmap numbers for logical. Add bitmap cache.
732 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
733
a77f947b
CY
7342006-02-20 Chong Yidong <cyd@stupidchicken.com>
735
a073faa6
CY
736 * regex.c: Revert 2006-02-19 change.
737 (xmalloc, xrealloc): Define these when not linked to Emacs.
738 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
a77f947b 739
2f90d2bc
LT
7402006-02-19 Luc Teirlinck <teirllm@auburn.edu>
741
742 * regex.c (extend_range_table_work_area): Fix typo.
743
5498b6af
RS
7442006-02-19 Richard M. Stallman <rms@gnu.org>
745
7b1d7d66
RS
746 * xterm.c (x_catch_errors): Use xmalloc.
747
748 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
749 (regex_compile): Likewise.
750 (regcomp): Use xmalloc.
751
752 * gtkutil.c (malloc_widget_value): Use xmalloc.
753
5498b6af
RS
754 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
755 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
756
757 * xmenu.c (digest_single_submenu): When pane_string is empty,
758 do initialize save_wv.
759
4f2f3214
YM
7602006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
761
762 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
763 w->update_mode_line if arg F is not the selected frame.
764
765 * macmenu.c (popup_activated_flag, submenu_id)
766 (next_menubar_widget_id): Remove variables.
767 (initialize_frame_menubar): Remove function.
768 (pop_down_menu, mac_menu_show): Simplify save value.
769 (dispose_menus): New function.
770 (pop_down_menu, fill_menubar): Use it.
771 (fill_submenu): Remove function. All uses changed to fill_menu.
772 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
773 POS. Don't call SetMenuItemHierarchicalID here.
774 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
775 used next. Call SetMenuItemHierarchicalID here.
776 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
777 objects if needed. Reuse existing menu bar titles if possible.
778 (set_frame_menubar): Don't clean up menu objects here.
779
da7520de
CY
7802006-02-18 Chong Yidong <cyd@stupidchicken.com>
781
782 * window.c (window_min_size_1): Ensure room for the scroll bar and
783 fringes.
784
a9c18b84
RF
7852006-02-17 Romain Francoise <romain@orebokech.com>
786
787 * puresize.h (BASE_PURESIZE): Increment to 1200000.
788
537407f0
SM
7892006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
790
791 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
792 addition of the BLOCK_INPUTs.
793
5bf3610f
JB
7942006-02-17 Juanma Barranquero <lekktu@gmail.com>
795
796 * window.c (Fset_window_scroll_bars): Doc fix.
797
ed0218e2
KH
7982006-02-17 Kenichi Handa <handa@m17n.org>
799
800 * xdisp.c (display_mode_element): Call display_string with correct
801 PREC arg (which must be a number of characters, not column width).
802
f036d043
YM
8032006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
804
805 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
806
807 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
808
809 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
810
885f1975
RS
8112006-02-14 Richard M. Stallman <rms@gnu.org>
812
9d8f542c
RS
813 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
814
885f1975
RS
815 * m/ibms390x.h: New file.
816
26ebccfd
JD
8172006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
818
819 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
820 value of x-gtk-whole-detached-tool-bar.
d8d3d48c 821 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
26ebccfd
JD
822
823 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
824
4d7637b8 8252006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
58118de5
JD
826
827 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
828
829 * xterm.h: Declare x_x_to_emacs_modifiers.
830
831 * gtkutil.c (xg_tool_bar_button_cb): New function.
832 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
833 store modifiers in event.
834 (update_frame_tool_bar): Connect button-release-event to
835 xg_tool_bar_button_cb.
836
f8d775e1
RS
8372006-02-13 Richard M. Stallman <rms@gnu.org>
838
839 * .gdbinit (xwindow): Update the code to show the window box.
840
0c0351b5
JD
8412006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
842
843 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
844
4d94dd9a
RS
8452006-02-12 Richard M. Stallman <rms@gnu.org>
846
847 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
848
c54fb9ef
EZ
8492006-02-11 Eli Zaretskii <eliz@gnu.org>
850
851 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
852 (syms_of_keyboard): DEVFAR_LISP and initialize it.
853 (parse_tool_bar_item, parse_menu_item): If that variable is
854 non-nil, don't disable menu items and tool-bar buttons.
855
ac6a9b55
JB
8562006-02-11 Juanma Barranquero <lekktu@gmail.com>
857
858 * doc.c (Fsubstitute_command_keys): Doc fix.
859
0ddb0ae8
TTN
8602006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
861
862 * data.c (Findirect_function): Rewrite docstring.
863 Fix omission bug: Declare new arg NOERROR.
864
cbd488c4
YM
8652006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
866
867 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
868 if window_desc is not set yet.
869 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
870 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
871 parameter `visibility' is `icon'.
872 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
873 instead of "fontset-mac".
874 (Fx_focus_frame): New defun.
875 (syms_of_macfns): Defsubr it.
876
877 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
878 for unfocused frame.
879 (x_raise_frame): Call BringToFront instead of SelectWindow.
880 (x_lower_frame): Use NULL instead of nil.
881 (x_make_frame_visible): Don't call SelectWindow.
882 (XTread_socket): Increment handling_signal at the start, decrement
883 it at the end.
884 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
885 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
886
a7f96a35
KS
8872006-02-10 Kim F. Storm <storm@cua.dk>
888
889 * data.c (Findirect_function): Add NOERROR arg. All callers changed
890 to pass Qnil for NOERROR.
891
892 * keymap.c (current_minor_maps_error): Remove.
893 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
894 instead of using internal_condition_case_1+current_minor_maps_error.
895
1834d8e7
JD
8962006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
897
898 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
899 frames for GTK, in that case it is the tool bar. This is so that
900 highlighted text get reset properly.
901
cffc3472
JB
9022006-02-09 Juanma Barranquero <lekktu@gmail.com>
903
904 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
905
e99c7521
JD
9062006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
907
908 * window.c (adjust_window_trailing_edge): Check that shrinking
909 does not set a window to size zero or less.
910
42ab8e36
MB
9112006-02-08 Miles Bader <miles@gnu.org>
912
913 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
cffc3472 914 of Fget_text_property (other field functions work with overlays as
42ab8e36
MB
915 well as text-properties).
916
6a80c3ba
KH
9172006-02-07 Kenichi Handa <handa@m17n.org>
918
e1a67366 919 * dispextern.h (unibyte_display_via_language_environment): Extern it.
6a80c3ba 920
e1a67366
KS
921 * xterm.h (unibyte_display_via_language_environment):
922 * w32term.h (unibyte_display_via_language_environment):
923 * macterm.h (unibyte_display_via_language_environment): Delete extern.
6a80c3ba 924
d2b4c17d
KH
9252006-02-07 Kenichi Handa <handa@m17n.org>
926
e1a67366 927 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
d2b4c17d 928 (produce_glyphs): Set the character to print in
e1a67366
KS
929 it->char_to_display. Handle unibyte-display-via-language-environment.
930 (produce_stretch_glyph): Set character to print in it->char_to_display.
d2b4c17d 931
8b9d426a
KH
9322006-02-06 Kenichi Handa <handa@m17n.org>
933
e1a67366 934 * lread.c (openp): Initialize encoded_fn before GCPRO it.
8b9d426a 935
d63b4018
KR
9362006-02-05 Ken Raeburn <raeburn@raeburn.org>
937
938 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
939
98950fd6
KR
940 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
941 Cast bitfield value to EMACS_INT, to suppress gcc warning.
942
0cf36656
KR
943 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
944 defining.
945
ad02d7ea
KS
9462006-02-03 Kim F. Storm <storm@cua.dk>
947
948 * xdisp.c: Cache last merged escape glyph face.
949 (last_escape_glyph_frame, last_escape_glyph_face_id)
950 (last_escape_glyph_merged_face_id): New variables.
951 (get_next_display_element): Use/update them.
952 (redisplay_internal): Reset them before redisplay.
953
954 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
955 Only recheck faces after displaying ellipsis.
956
999a0fe5
KH
9572006-02-02 Kenichi Handa <handa@m17n.org>
958
959 * coding.c (decode_composition_emacs_mule): Fix handling of
960 incorrect format data.
961
cd7cd4ac
JD
9622006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
963
964 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
965 (gtk_toolbar_insert) so we can have tool bars of different sizes.
966
4cf7e99c
LT
9672006-01-30 Luc Teirlinck <teirllm@auburn.edu>
968
969 * data.c (Flistp): Doc fix.
970
a3bc032f
JB
9712006-01-30 Juanma Barranquero <lekktu@gmail.com>
972
973 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
974 Fix typos in docstrings.
975
6badf38c
LT
9762006-01-28 Luc Teirlinck <teirllm@auburn.edu>
977
1f2907ee 978 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
6badf38c 979
e2984df0
CY
9802006-01-27 Chong Yidong <cyd@stupidchicken.com>
981
982 * alloc.c (make_interval, allocate_string)
983 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
984 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
985 global variables.
986
dc86c16d
EZ
9872006-01-27 Eli Zaretskii <eliz@gnu.org>
988
989 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
990 the MSDOS definition.
991
57436ee7
RS
9922006-01-26 Richard M. Stallman <rms@gnu.org>
993
994 * alloc.c (check_pure_size): Make overflow message an "error message".
995
996 * keymap.c (Fmap_keymap): Doc fix.
997
998 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
999 unless they were cleared out.
1000
1001 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
1002
2cb3aec4
KL
10032006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1004
e477bb04
KL
1005 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
1006 (find_field): Set before_field to after_field when pos is at BEGV.
293bd733
SM
1007 (Fline_beginning_position, Fline_end_position):
1008 Clarify confusing doc string.
2cb3aec4
KL
1009
1010 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
1011 string.
1012
34b87689
KH
10132006-01-26 Kenichi Handa <handa@m17n.org>
1014
1015 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
1016 current_dir, and error_file. On reporting an error, decode them
1017 back.
1018
1cee1e27
SM
10192006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1020
1021 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
1022 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
1023 Don't check for quit, since any loop will go through fail or jump.
1024
a0b08700
CY
10252006-01-24 Chong Yidong <cyd@stupidchicken.com>
1026
1027 * alloc.c (allocate_string_data): Update next_free immediately, to
1028 reduce risk of memory clobberage.
1029
bf7f1d30
KL
10302006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1031
1032 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
1033 display when point moves across an ellipsis. If there are
1034 adjacent invisible texts, don't lose the second one's ellipsis.
1035 (x_produce_glyphs): Doc fix.
1036
e5e26d8f
SM
10372006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
1038
1039 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
1040
1ff4535b
KS
10412006-01-23 Kim F. Storm <storm@cua.dk>
1042
1043 * xdisp.c (handle_single_display_spec): Fix handling of space
1044 property on char from string: set *position rather than
1045 it->current.pos.
1046 (produce_stretch_glyph): Reduce width of stretch glyphs so they
1047 don't get wider than the window (unless truncate-lines is on).
1048
5badc98d
SM
10492006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
1050
1051 * xterm.c: Avoid allocating Lisp data from a signal handler.
1052 (x_error_message): New var to replace x_error_message_string.
1053 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
1054 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
1055 (syms_of_xterm): Use it instead of x_error_message_string.
1056
1057 * alloc.c (lisp_align_free): Add an assertion.
1058 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
1059 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
1060 a signal handler.
1061
638590e8
LT
10622006-01-21 Luc Teirlinck <teirllm@auburn.edu>
1063
1064 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
1065
cde0a40c
RF
10662006-01-21 Romain Francoise <romain@orebokech.com>
1067
1068 * xdisp.c (get_window_cursor_type): Fix last change.
1069 Update copyright year.
1070
ea5f3ad4
EZ
10712006-01-20 Eli Zaretskii <eliz@gnu.org>
1072
3fdf12ca
EZ
1073 * lread.c (Fload): Don't leak the file descriptor returned by
1074 openp if we are going to signal an error.
1075
7559f399
EZ
1076 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
1077 directly to _close.
1078 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
1079 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
1080 to _read.
cde0a40c 1081 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
7559f399
EZ
1082 directly to _write.
1083
ea5f3ad4
EZ
1084 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
1085 if it is NULL.
1086
ef8beec6
KH
10872006-01-20 Kenichi Handa <handa@m17n.org>
1088
1089 * puresize.h (BASE_PURESIZE): Increment to 1190000.
1090
995f2df9
CY
10912006-01-19 Chong Yidong <cyd@stupidchicken.com>
1092
1093 * xdisp.c (get_window_cursor_type): Use cursor type specified by
1094 the selected buffer for the echo area too.
1095
c94c4d0a
RS
10962006-01-19 Richard M. Stallman <rms@gnu.org>
1097
1098 * keymap.c (Fmap_keymap): Doc fix.
1099
1100 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
1101
1102 * keyboard.c (echo_char): Don't omit the space between first two
1103 echoed chars.
1104
1105 * minibuf.c (read_minibuf): Fix previous change.
1106
71578d4f
KH
11072006-01-19 Kenichi Handa <handa@m17n.org>
1108
1109 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
1110
edd1c685
RS
11112006-01-17 Richard M. Stallman <rms@gnu.org>
1112
1113 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
1114 value in f->param_alist.
1115
0501acd4
AS
11162006-01-15 Andreas Schwab <schwab@suse.de>
1117
1118 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
1119
d33a7384
NR
11202006-01-13 Richard M. Stallman <rms@gnu.org>
1121
1122 * Makefile.in: Define new macro WINDOW_SUPPORT.
1123 (lisp): Use it.
1124 (SOME_MACHINE_LISP): Add conditionally loaded files.
1125
2026418c
YM
11262006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1127
1128 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
22e6707e 1129 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
2026418c
YM
1130 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
1131 decomposed form.
1132
1133 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
1134 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
1135 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
1136 macro. Also try member ifr_addr when getting netmask.
1137
b8f7f3be
SM
11382006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
1139
1140 * fileio.c (Fexpand_file_name): Remove redundant tests.
1141 Fix elimination of // so that it doesn't prevent elimination of an
1142 immediately following /. or /..
1143
4c9ca1a3
JD
11442006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1145
1146 * gtkutil.c (xg_toggle_notify_cb): New function.
1147 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
1148 xg_toggle_notify_cb.
1149 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
1150 parameter value changes so the toggle button gets updated.
1151
340bb2ea
NR
11522006-01-06 Nick Roberts <nickrob@snap.net.nz>
1153
1154 * .gdbinit: Fix typo.
1155
feaf060a
EZ
11562006-01-05 Eli Zaretskii <eliz@gnu.org>
1157
1158 * .gdbinit: Fix last change.
1159
c22cc558
KS
11602006-01-05 Kim F. Storm <storm@cua.dk>
1161
1162 * process.c (Fmake_network_process): Use AF_INET instead of
22e6707e 1163 AF_UNSPEC when AF_INET6 is not defined.
c22cc558 1164
07f9b01c
YM
11652006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1166
1167 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
1168 Don't check that the other type is known file-related one.
1169
1170 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
1171 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
1172 OS X 10.4 and later.
1173
0facd9c3
JD
11742006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1175
1176 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
1177 let GTK do all image processing. Importing Emacs own pixmaps to GTK
1178 looks bad for inactive tool bar items with some Gnome themes.
1179
805b0439
EZ
11802006-01-04 Eli Zaretskii <eliz@gnu.org>
1181
913645cd
EZ
1182 * .gdbinit: Avoid a warning message when x_error_quitter is not
1183 compiled in.
1184
805b0439
EZ
1185 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
1186 for w32.
1187
0f5642c2
KS
11882006-01-04 Kim F. Storm <storm@cua.dk>
1189
8a5db8ae
KS
1190 * process.c: Add IPv6 support.
1191 (Qipv4, Qipv6): New vars.
1192 (syms_of_process): Intern and staticpro them.
1193 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
1194 with or without port number. Handle 4 element vector as IPv4 address
1195 without port number.
1196 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
1197 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
1198 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
1199 request that address family only. :family nil or omitted means to
1200 determine address family from the specified :host and :service.
1201 (ifflag_table): Add missing OpenBSD IFF_ flags.
1202 (server_accept_connection): Handle IPv6 addresses.
1203 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
1204
0f5642c2
KS
1205 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
1206 determine which breakpoints to set.
1207
e7b394e1
SM
12082006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
1209
1210 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
1211
1212 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
1213
dcc9b98d
RF
12142006-01-03 Romain Francoise <romain@orebokech.com>
1215
1216 * emacs.c (main): Update copyright year.
1217
6918ac24 12182006-01-03 Ken Raeburn <raeburn@gnu.org>
1a271e14
KR
1219
1220 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
1221 nil for the call to internal_delete_file.
1222
bb951f0e
KR
12232006-01-01 Ken Raeburn <raeburn@gnu.org>
1224
1225 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
1226 to nil for the call to Fwrite_region.
1227
b20de1cd
RS
12282005-12-31 Richard M. Stallman <rms@gnu.org>
1229
1230 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
1231
b5871831
EZ
12322005-12-31 Eli Zaretskii <eliz@gnu.org>
1233
1234 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
1235
c26ec07f
LT
12362005-12-30 Luc Teirlinck <teirllm@auburn.edu>
1237
1238 * textprop.c (set_text_properties): Reword description of return value.
1239 Return Qnil if caller wants to remove all text properties from a
1240 string and the string already has no intervals.
1241
0db017c0
SM
12422005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
1243
1244 * term.c (visible_cursor): New boolean var.
1245 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
1246 visible_cursor.
1247 (syms_of_term): Export the new var as "visible-cursor".
1248
fc8dc7cf
EZ
12492005-12-30 Eli Zaretskii <eliz@gnu.org>
1250
1251 * .gdbinit: Tell users not to worry about GDB warnings that some
1252 functions do not exist in the binary.
1253
82a80058
AS
12542005-12-30 Andreas Schwab <schwab@suse.de>
1255
1256 * process.c (Fnetwork_interface_info): Correctly terminate the
1257 loop over ifflag_table.
1258
c36238ee
RS
12592005-12-29 Richard M. Stallman <rms@gnu.org>
1260
d11db2c8
RS
1261 * lread.c (readevalloop): Test for reading a whole buffer
1262 before actually reading anything. Handle all cases, including
1263 START = END = nil and an already-narrowed buffer.
1264 Convert END to a marker if it is a number.
1265
c36238ee
RS
1266 * keymap.c (describe_map): Put sparse map elements into an array,
1267 sort them, then output a sequence of identical bindings on one line.
1268 (struct describe_map_elt): New data type.
1269 (describe_map_compare): New function.
1270
82bc1fd6
JD
12712005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1272
e7b394e1 1273 * gtkutil.c (xg_get_file_with_chooser): Change message shown
82bc1fd6
JD
1274 in file chooser.
1275
fe5195e8
RS
12762005-12-27 Richard M. Stallman <rms@gnu.org>
1277
6281e1e8
RS
1278 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
1279 not the current one.
1280
1281 * minibuf.c (Fminibuffer_message): Doc fix.
1282 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
1283
fe5195e8
RS
1284 * eval.c (do_autoload): Ignore elements of Vautoload_queue
1285 where car is not symbol.
1286
0d9fb289
KH
12872005-12-27 Kenichi Handa <handa@m17n.org>
1288
1289 * charset.c (lisp_string_width): Check multibyteness of STRING.
1290
ff9c9c59
JD
12912005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1292
1293 * xfns.c: x_show_hidden_files, new variable.
1294 (syms_of_xfns): Defvar it.
1295
1296 * gtkutil.c (xg_toggle_visibility_cb): New function.
1297 (xg_get_file_with_chooser): Add toggle hidden files and a message
1298 to the new file chooser dialog. Show hidden files if
1299 x_show_hidden_files is non-zero.
1300
d7504d5c
RS
13012005-12-26 Richard M. Stallman <rms@gnu.org>
1302
1303 * keyboard.h: Undo previous change.
1304
1305 * Makefile.in (undo.o): Undo previous change.
1306
1307 * undo.c: Undo previous change.
1308
0ad017ce
LT
13092005-12-26 Luc Teirlinck <teirllm@auburn.edu>
1310
403c00a5
LT
1311 * keyboard.h: extern last_point_position_window.
1312
0ad017ce
LT
1313 * undo.c: include keyboard.h.
1314
403c00a5 1315 * Makefile.in (undo.o): Depend on keyboard.h.
0ad017ce 1316
91e25f5e
RS
13172005-12-26 Richard M. Stallman <rms@gnu.org>
1318
d7504d5c
RS
1319 * commands.h (last_point_position_window): Declare.
1320
91e25f5e
RS
1321 * undo.c: Depend on window.h.
1322 (record_point): Save old point from the correct window.
1323
1324 * keyboard.c (last_point_position_window): New variable.
1325 (command_loop_1): Set last_point_position_window.
1326 (syms_of_keyboard): Init it.
1327
1328 * Makefile.in (undo.o): Depend on window.h.
1329
cad1051b
RS
13302005-12-25 Richard M. Stallman <rms@gnu.org>
1331
1332 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
1333 to undo a `provide'.
1334
1335 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
1336
d52c26e9
KB
13372005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
1338
1339 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
1340 define for FreeBSD on this platform.
1341
14af1e44
YM
13422005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1343
1344 * macterm.h (TYPE_FILE_NAME): New define.
1345 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
1346
e7b394e1
SM
1347 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
1348 Add prototypes. Make static.
14af1e44
YM
1349 (mac_aedesc_to_lisp): Initialize err to noErr.
1350 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
1351 (init_coercion_handler): New functions.
1352 (Fmac_coerce_ae_data): Use coercion of Apple event data for
1353 translation from/to file names.
1354
1355 * macterm.c: Don't include sys/param.h.
1356 (init_coercion_handler): Add extern.
1357 [MAC_OS8] (main): Call init_coercion_handler.
1358 (mac_initialize) [MAC_OSX]: Likewise.
1359 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
1360 Apple event data for translation from/to file names.
1361
1362 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
1363
1364 * image.c [MAC_OS] (find_image_fsspec): Likewise.
1365
bab3eee1
EZ
13662005-12-23 Martin Rudalics <rudalics@gmx.at> (tiny change)
1367
1368 * insdel.c (insert, insert_and_inherit, insert_before_markers)
1369 (insert_before_markers_and_inherit): Make sure FROM is correct
1370 when `after-change-functions' are called.
1371
90f2e16b
JD
13722005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1373
1374 * xfns.c (Fx_uses_old_gtk_dialog): New function.
1375
1376 * gtkutil.c (xg_uses_old_file_dialog): New function.
1377 (xg_get_file_name): Use xg_uses_old_file_dialog.
1378
1379 * gtkutil.h: Declare xg_uses_old_file_dialog.
1380
0ee01fff
RS
13812005-12-22 Richard M. Stallman <rms@gnu.org>
1382
1383 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
1384
b73e4d84
YM
13852005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1386
1387 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
1388
1389 * macgui.h (XCharStruct): Remove member `valid_p'.
1390 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
1391 (XCharStructRow): New typedef.
e7b394e1
SM
1392 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
1393 New macros.
b73e4d84
YM
1394 (struct MacFontStruct): Add member `bounds'. Remove member
1395 `per_char'. All uses for QuichDraw Text fonts are changed to
1396 `bounds.per_char'. ATSUI font bounds are represented as an array
1397 `bounds.rows' of XCharStructRow's, each of which consists of a
1398 bitmap of valid entries and an array of char bounds.
1399
1400 * macterm.c (mac_per_char_metric): Add prototype.
1401 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
1402 (mac_query_char_extents): New function.
1403 (x_per_char_metric): Use it.
1404 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
e7b394e1
SM
1405 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
1406 Use mac_per_char_metric instead of x_per_char_metric.
b73e4d84
YM
1407 (mac_text_extents_16): New function.
1408 (mac_compute_glyph_string_overhangs): Use it.
1409 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
1410
a425bd03
SM
14112005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1412
1413 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
1414 (Fminibuffer_completion_help): Remove duplicates before display.
1415
aa0b0cd9
KL
14162005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1417
da3863b5 1418 * print.c (print_preprocess): Don't lose print_depth levels while
aa0b0cd9
KL
1419 iterating.
1420
5a61ec18
YM
14212005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1422
1423 * macmenu.c (Qmac_apple_event): Add extern.
1424 (set_frame_menubar, mac_menu_show keymp_panes)
1425 (single_keymap_panes, list_of_panes, list_of_item)
1426 (single_menu_item): Add argument types to prototypes.
1427 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
1428 (struct skp): New struct (from xmenu.c).
1429 (single_keymap_panes, single_menu_item, list_of_panes)
1430 (list_of_item): Sync with xmenu.c.
1431 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
1432 POSITION if it is mac-apple-event event.
1433 (menubar_selection_callback): Don't use menu_command_in_progress.
1434 (set_frame_menubar): First parse all submenus, then make
1435 widget_value trees from them. Don't allocate any widget_value
1436 objects until we are done with the parsing.
1437 (parse_single_submenu, digest_single_submenu): New functions.
1438 (single_submenu): Function deleted, replaced by those two.
1439 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
1440 create or dispose of EventHandlerUPP. Install hander to all submenus.
1441 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
1442 instead of ENCODE_SYSTEM.
1443 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
1444 integer values.
1445 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
1446 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
1447 format menu item string. Don't use NULL for integer value.
1448
1449 * macterm.h (struct mac_output): Remove unused member
1450 menu_command_in_progress.
1451
3bdba51d
JL
14522005-12-20 Juri Linkov <juri@jurta.org>
1453
1454 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
1455 position is non-nil, else set it to nil.
1456
1457 * macmenu.c (Fx_popup_menu): Add `else' to set
1458 Vmenu_updating_frame to nil only if position is nil.
1459
1460 * w32menu.c (Fx_popup_menu): Add `else' to set
1461 Vmenu_updating_frame to nil only if position is nil.
1462
d6a90a49
YM
14632005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1464
1465 * keyboard.c (make_lispy_event): Drag-and-drop items are now
1466 stored in member `args' of struct input_event.
1467
1468 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
1469
1470 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
1471 stored in member `args' of struct input_event.
1472
1473 * w32term.c (construct_drag_n_drop): Likewise.
1474
1475 * macterm.c (mac_do_receive_drag): Likewise.
1476 (x_use_underline_position_properties): Undo 2005-07-13 change.
1477 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
1478 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
a425bd03
SM
1479 (mac_pass_command_to_system, mac_pass_control_to_system):
1480 New boolean variables renamed from Lisp_Object ones
d6a90a49 1481 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
a425bd03
SM
1482 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
1483 All uses changed.
d6a90a49
YM
1484 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
1485 Make them user options.
a425bd03
SM
1486 (mac_handle_command_event, mac_store_services_event):
1487 Call create_apple_event_from_event_ref without 5th argument.
d6a90a49
YM
1488 (backtranslate_modified_keycode): Mask off modifier keys that are
1489 mapped to some Emacs modifiers before passing it to KeyTranslate.
1490 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
1491 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
1492 Fix docstrings of `mac-*-modifier'.
1493
1494 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
a425bd03
SM
1495 (do_applescript): Change argument types to Lisp_Object.
1496 All uses changed.
d6a90a49
YM
1497
1498 * macterm.h (create_apple_event_from_event_ref): Remove 5th
1499 argument from extern.
1500
20d1c5c5
DN
15012005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1502
1503 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
1504 the answer, return `lambda', not nil.
1505
abeb5855
EZ
15062005-12-17 Eli Zaretskii <eliz@gnu.org>
1507
1508 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
1509 enclosed in $(ARGQUOTE)s should not be split between two lines, as
1510 that will break with GNU Make >3.80, when sh.exe is used and
1511 arg quoting is with '..'.
1512
6b8dfbf7
CY
15132005-12-17 Chong Yidong <cyd@stupidchicken.com>
1514
1515 * print.c (print_preprocess): Just signal an error if print_depth
1516 is exceeded.
1517
d912b87a
EZ
15182005-12-17 Eli Zaretskii <eliz@gnu.org>
1519
1520 * .gdbinit: Set a breakpoint on w32_abort.
1521
2a502a32
JL
15222005-12-16 Juri Linkov <juri@jurta.org>
1523
1524 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
1525 created from minibuffer_completion_contents.
1526 (minibuffer_completion_contents): Remove.
1527 (do_completion, Fminibuffer_complete_word)
1528 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
1529 with Fminibuffer_completion_contents.
1530 (syms_of_minibuf): Add Sminibuffer_completion_contents.
1531 (Fdisplay_completion_list): Doc fix.
1532 (display_completion_list_1): Use `nil' for second arg of
1533 `Fdisplay_completion_list'.
1534
bf63eb69
JD
15352005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1536
1537 * xfns.c (compute_tip_xy): Handle negative dx and dy.
1538
a425bd03 1539 * w32fns.c (compute_tip_xy): Ditto.
bf63eb69 1540
a425bd03 1541 * macfns.c (compute_tip_xy): Ditto.
bf63eb69 1542
9b98e161
CY
15432005-12-14 Chong Yidong <cyd@stupidchicken.com>
1544
1545 * print.c (print_preprocess): Go to a deeper print_depth to avoid
1546 print_object loop.
1547
89aa725a
KH
15482005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
1549
1550 * coding.c (code_convert_region_unwind): GCPRO arg.
1551
3b006f5b
JD
15522005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1553
57134802
JD
1554 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
1555 i.e. dy is offset from top of frame instead of bottom.
1556
1557 * macfns.c (compute_tip_xy): Ditto.
1558
1559 * w32fns.c (compute_tip_xy): Ditto.
1560
3b006f5b
JD
1561 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
1562 (xg_get_image_for_pixmap, xg_create_frame_widgets)
1563 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
1564
1565 * xmenu.c (menubar_selection_callback): Do nothing if the callback
1566 is for an unselected radio menu item.
1567
2cb33a98
RS
15682005-12-11 Richard M. Stallman <rms@gnu.org>
1569
1570 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
1571
1572 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
1573
1574 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
1575 (Flookup_key): Doc fix.
1576 (syms_of_keymap) <function-key-map>: Doc fix.
1577
1578 * fns.c (Frequire): Treat evaluating from a source file
1579 like loading the file.
1580
1581 * floatfns.c (Flog): Doc fix.
1582
1583 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
1584 when we change the buffer.
1585
d7d1f75e
JL
15862005-12-11 Juri Linkov <juri@jurta.org>
1587
1588 * minibuf.c (display_completion_list_1):
1589 Call `minibuffer_completion_contents' instead of using `nil' as
1590 second arg of `Fdisplay_completion_list'.
1591 (keys_of_minibuf): Unbind SPC in
1592 Vminibuffer_local_filename_completion_map (see also related
1593 change on 2005-12-06).
1594
ac8fcf0f
YM
15952005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1596
1597 * emacs.c (main) [MAC_OS8]: Undo previous change.
1598
1599 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
1600 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
1601
4b3eb407
YM
16022005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1603
1604 * Makefile.in (macselect.o): Depend on keymap.h.
1605
1606 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
1607 syms_of_macselect.
1608
1609 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
1610 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
1611
1612 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
1613 (syms_of_keyboard) [MAC_OS]: Initialize it.
1614 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
1615
1616 * mac.c (Qundecoded_file_name): New variable.
1617 (syms_of_mac): Initialize it.
1618 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
a425bd03 1619 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4b3eb407
YM
1620 (Fmac_coerce_ae_data): New defun.
1621 (syms_of_mac): Defsubr it.
1622
1623 * macselect.c: Include keymap.h.
1624 (mac_ready_for_apple_events): New variable.
1625 (Vmac_apple_event_map, Qmac_apple_event_class)
1626 (Qmac_apple_event_id): New variables.
1627 (syms_of_macselect): Initialize them.
1628 (Qundefined, mac_store_apple_event): Add externs.
1629 (struct apple_event_binding): New struct.
1630 (find_event_binding_fun, find_event_binding)
1631 (mac_find_apple_event_spec, defer_apple_events)
1632 (mac_handle_apple_event, init_apple_event_handler)
1633 (copy_scrap_flavor_data): New functions.
1634 (Fmac_process_deferred_apple_events): New defun.
1635 (syms_of_macselect): Defsubr it.
1636 (mac_store_services_event): Fix extern.
1637 (mac_handle_service_event): Don't allocate Lisp objects during
1638 asynchronous input processing. Use mac_store_services_event
1639 instead of mac_store_application_menu_event.
1640
1641 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
1642 (Qpreferences): Remove variables.
1643 (syms_of_macterm) : Don't initialize them.
1644 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
1645 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
1646 (init_required_apple_events, do_ae_open_application)
1647 (do_ae_print_documents, do_ae_open_documents)
1648 (do_ae_quit_application): Remove functions and prototypes.
1649 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
1650 (mac_find_apple_event_spec): Add externs.
1651 (mac_store_application_menu_event): Remove function.
1652 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
1653 (mac_handle_command_event): Create Apple event from Carbon event.
1654 Use mac_store_apple_event instead of mac_store_application_menu_event.
1655 [MAC_OSX] (mac_store_services_event): Likewise.
1656 (struct SelectionRange, SelectionRange): Remove struct and typedef.
1657 [MAC_OS8] (main): Call init_apple_event_handler instead of
1658 init_required_apple_events.
1659 (mac_initialize) [MAC_OSX]: Likewise.
e7b394e1
SM
1660 [!USE_CARBON_EVENTS] (mac_wait_next_event):
1661 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4b3eb407 1662
e7b394e1
SM
1663 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
1664 Add externs.
4b3eb407
YM
1665 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
1666 (Fmac_get_preference): Add EXFUN.
1667
1668 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
1669 event.
1670
e358e052
RS
16712005-12-09 Richard M. Stallman <rms@gnu.org>
1672
1673 * xfns.c (Fx_create_frame): Reinstate previous change.
1674
9ea74bfb
EZ
16752005-12-09 Eli Zaretskii <eliz@gnu.org>
1676
1677 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
1678 GDB to the abort dialog.
1679
9dd28cae 16802005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
84fdb82c
KS
1681
1682 * indent.c (Fvertical_motion): Force move if starting on
1683 stretch glyph.
1684
2fda6977
RS
16852005-12-08 Richard M. Stallman <rms@gnu.org>
1686
2663a204
RS
1687 * lread.c (read_escape) <\s>: Don't treat strings specially.
1688
2fda6977
RS
1689 * xfns.c (Fx_create_frame): Comment out previous change.
1690
225c13a5
KL
16912005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1692
1693 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
1694 when needed.
1695
da8ec671
SM
16962005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1697
1698 * minibuf.c (keys_of_minibuf): Just unbind SPC in
1699 Vminibuffer_local_filename_completion_map rather than forcing it
1700 explicitly to the same binding as the global map.
1701
88fde92a
KR
17022005-12-06 Ken Raeburn <raeburn@gnu.org>
1703
e7b394e1 1704 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
88fde92a 1705 * bytecode.c (Fbyte_code): Likewise.
e7b394e1 1706 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
88fde92a
KR
1707 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
1708 * undo.c (truncate_undo_list): Likewise.
1709
fa0d4d0c
RS
17102005-12-05 Richard M. Stallman <rms@gnu.org>
1711
1712 * window.c (enlarge_window): Eliminate arg preserve_before.
1713 Assume it is 0. All callers changed.
1714 (Fenlarge_window, Fshrink_window): Likewise.
1715
5a98616e
EZ
17162005-12-02 Eli Zaretskii <eliz@gnu.org>
1717
1718 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
1719 fit below.
1720
1dbacb90
JD
17212005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1722
1723 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
1724
1725 * xfns.c (x_real_positions): int ign => unsigned int.
1726 (xg_set_icon_from_xpm_data): Remove unused variable err.
1727 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
1728 to remove compiler warning.
1729 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
1730
0a79da1b
EZ
17312005-12-02 David Reitter <david.reitter@gmail.com>
1732
1733 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
1734 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
1735 and Vminibuffer_local_must_match_filename_map keymaps.
1736 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
1737
1738 * keymap.c (Vminibuffer_local_filename_completion_map)
1739 (Vminibuffer_local_must_match_filename_map): New variables.
1740 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
1741 parent to be Vminibuffer_local_completion_map and
1742 Vminibuffer_local_must_match_map, respectively.
1743
1744 * commands.h (Vminibuffer_local_filename_completion_map)
1745 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
1746
e67a1dea
SM
17472005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
1748
1749 * window.c (Fset_window_configuration): Don't accidentally copy the
1750 window-point of one window to another.
1751
6ad0f04d
KL
17522005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1753
7854b2a3 1754 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
6ad0f04d 1755
4269a2fd
KS
17562005-11-30 Kim F. Storm <storm@cua.dk>
1757
1758 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
1759 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
1760 passing it to `emacs_write'.
1761
96013ba9
SM
17622005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
1763
1764 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
1765
161ef3be
RS
17662005-11-27 Richard M. Stallman <rms@gnu.org>
1767
1768 * window.c (adjust_window_trailing_edge): New function.
1769 (Fadjust_window_trailing_edge): New function.
96013ba9 1770 (syms_of_window): Defsubr it.
161ef3be
RS
1771 (window_deletion_count): New variable.
1772 (delete_window): Update window_deletion_count.
1773
02b1a164
EZ
17742005-11-26 Eli Zaretskii <eliz@gnu.org>
1775
1776 * minibuf.c (syms_of_minibuf): Mention the extension of
1777 `completion-auto-help's meaning by complete.el.
1778
07908aec
EZ
17792005-11-26 Henrik Enberg <henrik.enberg@telia.com>
1780
96013ba9 1781 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
07908aec
EZ
1782 Handle :inherit property as a lisp expression.
1783
b9c7cbf9
YM
17842005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1785
1786 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
1787 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
1788 Qsuper, and Qmodifier_value.
1789 (Vmac_control_modifier, Vmac_option_modifier)
1790 (Vmac_command_modifier, Vmac_function_modifier)
1791 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
1792 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
1793 (Vmac_charset_info_alist): Doc fixes.
1794
2c012c41
YM
17952005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1796
1797 * emacs.c (main) [MAC_OSX]: Change working directory to home
1798 directory if `-psn_*' option is specified.
1799
1800 * mac.c (DECODE_UTF_8): Remove macro.
1801 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
1802 created from cfstring_to_lisp.
1803 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
1804 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
1805
1806 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
1807 Add prototype.
1808
88fde92a 18092005-11-21 Ken Raeburn <raeburn@gnu.org>
d7c0be75
KR
1810
1811 * keymap.c (shadow_lookup): Use make_number to pass a number to
1812 Fsubstring.
1813
17c1971a
JL
18142005-11-21 Juri Linkov <juri@jurta.org>
1815
1816 * puresize.h (BASE_PURESIZE): Increment to 1180000.
1817
0268cef3
CY
18182005-11-20 Chong Yidong <cyd@stupidchicken.com>
1819
96013ba9
SM
1820 * xfaces.c (Finternal_set_lisp_face_attribute):
1821 Use :ignore-defface for new frame defaults when `unspecified' is
0268cef3
CY
1822 supplied.
1823 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
67d23e01
CY
1824 (merge_face_vectors): Don't do :ignore-defface overwriting here.
1825 (Finternal_merge_in_global_face): Do it here.
0268cef3 1826
dd949173
JL
18272005-11-20 Juri Linkov <juri@jurta.org>
1828
1829 * charset.c (invalid_character): Use Lisp-readable syntax
1830 for octal and hex. Reorder decimal, octal and hex values.
1831
76986433
NR
18322005-11-20 Nick Roberts <nickrob@snap.net.nz>
1833
1834 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
1835 this type is recognised when debugging.
1836
603add2d
AS
18372005-11-19 Andreas Schwab <schwab@suse.de>
1838
1839 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
1840 Lisp_Cons and Lisp_Float.
1841
125ce9ec
YM
18422005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1843
1844 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
1845 New variable.
96013ba9 1846 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
125ce9ec
YM
1847 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
1848 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
1849 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
1850
2ff10663
CY
18512005-11-17 Chong Yidong <cyd@stupidchicken.com>
1852
96013ba9 1853 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
fe45ad15 1854
2ff10663
CY
1855 * xfaces.c (Qignore_defface): New variable.
1856 (syms_of_xfaces): Provide `:ignore-defface'.
1857 (IGNORE_DEFFACE_P): New macro.
05338727
CY
1858 (check_lface_attrs, lface_fully_specified_p)
1859 (Finternal_set_lisp_face_attribute)
96013ba9
SM
1860 (Fface_attribute_relative_p, Fmerge_face_attribute):
1861 Handle Qignore_defface as a possible value.
2ff10663
CY
1862 (merge_face_vectors): The merged face is `unspecified' if the
1863 mergee specifies `:ignore-defface'.
1864
c01f0ed3
SM
18652005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1866
1867 * lread.c (readevalloop): Add missing GCPROs.
1868
786a43d6
CY
18692005-11-16 Chong Yidong <cyd@stupidchicken.com>
1870
9f7b984b
CY
1871 * xfns.c (xg_set_icon_from_xpm_data): New function.
1872
c01f0ed3
SM
1873 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
1874 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
786a43d6
CY
1875
1876 * xterm.c (x_bitmap_icon): Use the xpm if available.
1877
1878 * image.c (x_create_bitmap_from_xpm_data): New function.
54188d8f 1879 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
786a43d6 1880
8ab84823
LT
18812005-11-15 Luc Teirlinck <teirllm@auburn.edu>
1882
1883 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
1884
3671718b
NR
18852005-11-16 Nick Roberts <nickrob@snap.net.nz>
1886
1887 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
1888
28a099a4
AS
18892005-11-15 Andreas Schwab <schwab@suse.de>
1890
1891 * lisp.h (struct Lisp_Cons): Make cdr a union.
1892 (XCDR_AS_LVALUE): Adjust.
1893 (struct Lisp_Float): Make data a union.
1894 (XFLOAT_DATA): Adjust.
1895
1896 * alloc.c (free_float): Make free list chaining aliasing-safe.
1897 (make_float): Likewise.
1898 (free_cons): Likewise.
1899 (Fcons): Likewise.
1900 (check_cons_list): Likewise.
1901 (Fmake_symbol): Likewise.
1902 (allocate_misc): Likewise.
1903 (free_misc): Likewise.
1904 (gc_sweep): Likewise.
1905
308a6607
YM
19062005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1907
fc09d07f
YM
1908 * mac.c (HASHKEY_QUERY_CACHE): New define.
1909 (xrm_create_database, xrm_q_put_resource): Empty query cache.
1910 (xrm_get_resource): Use query cache.
1911
308a6607
YM
1912 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
1913 inhibit_window_system is set.
1914
29b585db
YM
19152005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1916
1917 * macgui.h (USE_CG_TEXT_DRAWING): New define.
1918 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
1919 and cg_glyphs.
1920
1921 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
1922 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
1923 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
1924 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
1925 not used and font substitution never occurs for ASCII and Latin-1
1926 characters.
1927 (XLoadQueryFont): Maximum and minimum metrics are now those among
1928 ASCII characters.
1929 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
1930 height adjustments for Courier, Helvetica, and Times.
1931
1932 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
1933
9dd28cae 19342005-11-11 David Reitter <david.reitter@gmail.com>
b02e3f7b 1935
dff79d04 1936 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
267ee78f 1937 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
dff79d04
ST
1938 Vmac_control_modifier / mac-control-modifier,
1939 Vmac_option_modifier / mac-option-modifier,
1940 Vmac_command_modifier / mac-command-modifier.
1941 (mac_to_emacs_modifiers): Use the new style modifier
c01f0ed3
SM
1942 variables. Return UInt32 (modifiers are longs now.)
1943 (backtranslate_modified_keycode): New function (refactoring).
1944 (XTread_socket): Use new modifier variables and refactored function.
1945 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
1946 no dedicated meta key. Not in use anyway.)
b02e3f7b
ST
1947 (convert_fn_keycode): Map Fn-keys to their original keycode
1948 using a table (english keyboard only).
b02e3f7b 1949
6a77a9f5
KS
19502005-11-11 Kim F. Storm <storm@cua.dk>
1951
ab4d879e
KS
1952 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
1953 Add post hook to "backtrace" to always dump lisp call stack to
1954 increase chance of people sending it to us when reporting bugs.
1955
8c41220c
KS
1956 * doc.c (Fsubstitute_command_keys): Doc fix.
1957
6a77a9f5
KS
1958 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
1959
1960 * xdisp.c (handle_stop): Skip overlay string handling if
1961 ignore_overlay_strings_at_pos_p is set.
1962 (set_iterator_to_next): At end of display vector, set
1963 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
1964 string, so we skip those overlay strings at current pos.
1965
9dd28cae 19662005-11-10 Lars Hansen <larsh@soem.dk>
19a9c3b7
LH
1967
1968 * fileio.c (file-regular-p): Doc fix.
1969
932954d1
KS
19702005-11-10 Kim F. Storm <storm@cua.dk>
1971
1972 * alloc.c (valid_lisp_object_p): New function to validate that
1973 an object is really a valid Lisp_Object.
1974
1975 * lisp.h (valid_lisp_object_p): Add prototype.
1976
1977 * print.c (safe_debug_print): New function to be called from gdb
1978 to print Lisp objects; use valid_lisp_object_p to avoid crashing
1979 if user tries to print something which is not a Lisp object.
1980
1981 * .gdbinit (pp, pp1): Use safe_debug_print.
1982 (pv, pv1): New commands to print value of a lisp variable.
1983
78e5988d
NR
19842005-11-10 Nick Roberts <nickrob@snap.net.nz>
1985
1986 * .gdbinit (pp1): New user-defined function.
1987
f56a5bd8
YM
19882005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1989
1990 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
1991
1992 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
1993 related variables for dumped executable.
1994
1995 * unexmacosx.c (unexec_write_zero): New function.
1996 (copy_data_segment): Clear uninitialized local variables in
1997 statically linked libraries.
1998
1999 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
2000
58b6f884
JL
20012005-11-09 Juri Linkov <juri@jurta.org>
2002
2003 * keymap.c (shadow_lookup): If Flookup_key returns a number,
2004 call it again with a sub-key-sequence, and if its return value
2005 is non-nil (sub-key is bound), return nil.
2006
1f5f957a
KS
20072005-11-08 Kim F. Storm <storm@cua.dk>
2008
2009 * process.c (Fsignal_process): Recognize signal names with and
2010 without SIG prefix, e.g. SIGHUP and HUP.
2011
2012 * search.c (search_buffer): No need to initialize base_pat.
2013
20b69789
SM
20142005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
2015
2016 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
2017 Don't abuse the `mini' arg. Use the `obj' arg instead.
2018
7353f169
KS
20192005-11-04 Kim F. Storm <storm@cua.dk>
2020
2021 * xdisp.c (show_mouse_face): Clear mouse face to eol.
2022
1f7b1131
DN
20232005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
2024
2025 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
2026 font-lock.elc and jit-lock.elc.
2027
e082564e
RS
20282005-11-03 Richard M. Stallman <rms@gnu.org>
2029
2030 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
2031 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
2032 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
2033
2034 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
2035
2036 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
2037
49e99345
SM
20382005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2039
2040 * window.c (Fdisplay_buffer): Fix last change to not use
2041 a dedicated window.
2042
8f15921b
KS
20432005-11-01 Kim F. Storm <storm@cua.dk>
2044
2045 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
2046 Instead, rotate the bottom angle bitmap 180 degrees to indicate
2047 that the bottom row does not end in a newline.
2048
b4235a80
AS
20492005-11-01 Andreas Schwab <schwab@suse.de>
2050
2051 * unexelf.c (unexec): Handle .plt section in BSS segment.
2052
3cbb13c8
SM
20532005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2054
e5f64be2
SM
2055 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
2056
3cbb13c8
SM
2057 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
2058 determine whether to consider dedicated windows as well.
2059 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
2060 (Fdisplay_buffer): Do consider dedicated windows in those cases where
2061 we will split the window rather than reuse it.
2062 Don't try to use windows on other displays.
2063
c94f08ff
DN
20642005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
2065
2066 * puresize.h (BASE_PURESIZE): Increment to 1170000.
2067
edf84ae9
RF
20682005-10-31 Romain Francoise <romain@orebokech.com>
2069
2070 * macfns.c: Update copyright year.
2071 * m/gould.h: Likewise.
2072
6f07f649
KS
20732005-10-30 Kim F. Storm <storm@cua.dk>
2074
2075 * xdisp.c (display_line): Restore it->current_x and call
2076 extend_face_to_end_of_line when last glyph doesn't fit on line.
9dd28cae 2077 (set_glyph_string_background_width): Remove specific tests here
6f07f649
KS
2078 to see if face background should extend to end of line. Simplify.
2079
4d74a5fc
RS
20802005-10-30 Richard M. Stallman <rms@gnu.org>
2081
2082 * alloc.c (BYTES_USED): Use uordblks, not arena.
2083 (bytes_used_when_reconsidered): New variable.
2084 (emacs_blocked_free): Set that.
2085
bccfb310
CY
20862005-10-29 Chong Yidong <cyd@stupidchicken.com>
2087
2088 * alloc.c (emacs_blocked_free): Fix typo.
2089
f5b8d5f2
RS
20902005-10-29 Richard M. Stallman <rms@gnu.org>
2091
4d74a5fc
RS
2092 * data.c (Fmake_variable_frame_local): Doc fix.
2093
f5b8d5f2
RS
2094 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
2095 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
2096 controls whether to save and restore mode_line_proptrans_alist.
2097 Callers changed.
2098 (unwind_format_mode_line): Work with that feature.
2099 (redisplay_internal): Don't call prepare_menu_bars if memory full.
2100 (move_elt_to_front): New function.
2101 (display_mode_element): Use move_elt_to_front.
2102 Don't bother munging text props on a null string.
2103 Delete obsolete elts from mode_line_proptrans_alist.
2104 (decode_mode_spec): Test Vmemory_full, not spare_memory.
685abb98 2105 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
f5b8d5f2 2106
49e99345
SM
2107 * lisp.h (memory_full_cons_threshold): Declare.
2108 (internal_lisp_condition_case): Declare.
f5b8d5f2
RS
2109
2110 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
2111 (Fmemory_full_p): Function deleted.
2112 (syms_of_alloc): Don't defsubr it.
2113 (memory_full_cons_threshold): New variable.
2114 (spare_memory): Now a vector of 7 elts.
2115 (buffer_memory_full): Don't set Vmemory_full here.
2116 (xfree): Don't try to refill here.
2117 (emacs_blocked_free): Record BYTES_USED in local var.
2118 (memory_full): Now free all the slots in spare_memory.
2119 (refill_memory_reserve): Allocate each slot in spare_memory.
2120 (init_alloc_once): Call refill_memory_reserve.
2121
2122 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
2123
2124 * eval.c (internal_lisp_condition_case): New function.
2125 (Fcondition_case): Use internal_lisp_condition_case.
2126 (Feval): Test Vmemory_full and memory_full_cons_threshold.
2127 (Ffuncall): Likewise.
2128
2129 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
2130
c390e28c
SM
21312005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2132
2133 * syntax.c (Fparse_partial_sexp): Fix docstring.
2134
ab5d87b3
RF
21352005-10-28 Romain Francoise <romain@orebokech.com>
2136
c390e28c 2137 * puresize.h (BASE_PURESIZE): Increment to 1130000.
ab5d87b3 2138
107fb6c9
RS
21392005-10-28 Richard M. Stallman <rms@gnu.org>
2140
2141 * xfns.c (syms_of_xfns): Provide `x' as feature.
2142
2143 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
2144
2145 * editfns.c (Fformat): Don't include string padding
2146 between info[n].start and info[n].end.
2147
2148 * alloc.c (spare_memory): No longer static.
2149 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
2150
c390e28c 2151 * puresize.h (BASE_PURESIZE): Increment to 1120000.
107fb6c9 2152
f351b58b
CY
21532005-10-27 Chong Yidong <cyd@stupidchicken.com>
2154
c390e28c 2155 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
437610c5 2156
f351b58b
CY
2157 * fringe.c (update_window_fringes): Handle case where buffer ends
2158 with a newline.
2159
581e7427
KH
21602005-10-27 Kenichi Handa <handa@m17n.org>
2161
2162 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
2163
21642005-10-24 Kenichi Handa <handa@m17n.org>
2165
2166 * charset.h (charset_mule_unicode_0100_24ff)
2167 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
2168 Extern them.
2169
2170 * charset.c (charset_mule_unicode_0100_24ff)
2171 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
2172 New variables.
2173 (Fsetup_special_charsets): Initialize them.
2174
2175 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
2176 supported Unicode characters.
2177
813fa8a8
JR
21782005-10-25 Jason Rumney <jasonr@gnu.org>
2179
2180 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
2181
05f7d868
YM
21822005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2183
2184 * image.c [MAC_OS] (image_load_qt_1): Check image size.
2185 Use GraphicsImportGetImageDescription instead of
2186 GraphicsImportGetNaturalBounds.
2187 [MAC_OSX] (image_load_quartz2d): Check image size.
2188 [MAC_OS] (xpm_load_image): Likewise.
2189
2190 * macterm.c (last_mouse_glyph_frame): New var.
2191 (note_mouse_movement): Say mouse moved if current frame differs
2192 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2193 (XTmouse_position): Set last_mouse_glyph_frame.
2194 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
29b585db 2195 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
05f7d868
YM
2196 Use EndianU16_BtoN.
2197 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
2198 (x_per_char_metric, XLoadQueryFont)
2199 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
2200 glyph bounds.
2201 (mac_to_x_fontname, mac_do_list_fonts)
2202 (mac_initialize_display_info): Change screen resolutions to 72dpi.
2203
128e729d
MY
22042005-10-25 Masatake YAMATO <jet@gyve.org>
2205
2206 * minibuf.c (Fdisplay_completion_list): Small doc fix.
2207
59017afb
KS
22082005-10-24 Kim F. Storm <storm@cua.dk>
2209
94717db1
KS
2210 * xterm.c: Undo 2005-10-23 change.
2211 (last_mouse_glyph_frame): New var.
2212 (note_mouse_movement): Say mouse moved if current frame differs
2213 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2214 (XTmouse_position): Set last_mouse_glyph_frame.
2215 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
2216 last_mouse_glyph] on mouse up/down event.
2217
59017afb
KS
2218 * editfns.c (Fcompare_buffer_substrings): Fix last change.
2219
7c5ba0d2
SM
22202005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2221
2222 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
2223
a4b0e228
JD
22242005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2225
2226 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
2227 so tool tips don't interfere with press on tool bar button.
2228
f6a18aa2
RS
22292005-10-23 Richard M. Stallman <rms@gnu.org>
2230
2231 * casetab.c (Fset_case_table): Doc fix.
2232
2233 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
2234 (readevalloop): Compute ENTIRE properly.
2235 (syms_of_lread) <load-history>: Doc fix.
2236
45158e77
RS
22372005-10-21 Richard M. Stallman <rms@gnu.org>
2238
2239 * lread.c (Fload): Simplify gcpro structure.
2240 Gcpro FOUND as well as FILE, but not EFOUND.
2241 Unless preloading, record FOUND instead of FILE in Vload_history.
2242 Rename repeat local FILE to MSG_FILE.
2243 (syms_of_lread) <load-history>: Doc fix.
2244
dfa1cd4d
KH
22452005-10-21 Kenichi Handa <handa@m17n.org>
2246
96664fc0 2247 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
dfa1cd4d 2248
1064a9ea
KS
22492005-10-20 Kim F. Storm <storm@cua.dk>
2250
2251 * buffer.c (clone_per_buffer_values): Remove unused var tem.
2252 (init_buffer): Remove unused vars dotstat, pwdstat.
2253
2254 * ccl.c (check_ccl_update): Remove unused var vp.
2255
2256 * fileio.c (auto_save_error): Call SAFE_FREE.
2257
2258 * fns.c (Fchar_table_range): Remove unused var i.
2259
2260 * minibuf.c (display_completion_list_1): New wrapper function
2261 for Fdisplay_completion_list.
2262 (Fminibuffer_completion_help): Use it.
2263
2264 * term.c (encode_terminal_code): Remove unused var src_start.
2265
2266 * window.c (Fwindow_tree): Remove unused var alist.
2267
2268 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
2269
ce13796f
EZ
22702005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
2271
20b69789 2272 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
ce13796f 2273
ad9c16d3
EZ
22742005-10-20 Olli Savia <ops@iki.fi> (tiny change)
2275
2276 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
2277
26e9d2cf
AS
22782005-10-20 Andreas Schwab <schwab@suse.de>
2279
2280 * minibuf.c (Fdisplay_completion_list): Doc fix.
2281
e50165ec
KS
22822005-10-19 Kim F. Storm <storm@cua.dk>
2283
2284 * image.c (check_image_size): Handle integer Vmax_image_size value
2285 directly as max pixel value. Use default frame size for null frame.
2286 (syms_of_image) <max-image-size>: Describe integer value.
2287
d7b94c98
RF
22882005-10-19 Romain Francoise <romain@orebokech.com>
2289
2290 * emacs.c (main): Update copyright year.
2291
f1f25b99
CY
22922005-10-18 Chong Yidong <cyd@stupidchicken.com>
2293
2294 * image.c (Vmax_image_size): New variable.
2295 (check_image_size): New function.
2296 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
2297 (gif_load, gs_load): Use it.
2298 (lookup_image): Try loading again if previous load failed.
2299 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
2300 to display in, NULL if none.
2301 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
2302 argument.
2303
f42d19a2
RS
23042005-10-18 Richard M. Stallman <rms@gnu.org>
2305
2306 * search.c (Fstring_match): Doc fix.
2307
bcbdafce
YM
23082005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2309
2310 * macterm.c (note_mouse_movement): Use PtInRect.
2311 (XTread_socket): Also ignore mouse motion just before a button
2312 release event. Don't process button release event when mouse is
2313 not grabbed.
2314
f5fab556
MY
23152005-10-16 Masatake YAMATO <jet@gyve.org>
2316
2317 * minibuf.c (Fdisplay_completion_list): Add new optional
e5f64be2 2318 argument COMMON_SUBSTRING. Bind `completion-common-substring'
f5fab556
MY
2319 to the optional argument during running `completion-setup-hook'.
2320
2ef1363e
YM
23212005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2322
2323 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
2324 Allow nil as argument.
2325 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
2326 for encoding arguments as UTF-16 in native byte order, no BOM.
2327
2328 * macfns.c (Fx_create_frame): Add debugging code.
2329 (Fx_show_tip): Set frame pixel width and height.
2330
2331 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
2332 (FRAME_NORMAL_GC): New macro.
2333 (mac_draw_line, mac_clear_area, mac_clear_window)
2334 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
2335 (mac_draw_image_string, mac_draw_image_string_16): Rename from
2336 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
2337 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
2338 All uses changed.
2339 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
2340 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
2341 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
2342 (mac_draw_string_16, mac_draw_image_string)
2343 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
2344 (mac_scroll_area): Drawing functions now take frame as destination.
2345 All uses changed.
2346 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
2347 (x_draw_fringe_bitmap): Set clipping area in face->gc.
2348
2349 * macterm.h (mac_clear_area): Add extern.
2350
fc5c7550
YM
23512005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2352
2353 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
2354 changes for xterm.c.
2355
2356 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
2357
fed91c38
KH
23582005-10-14 Kenichi Handa <handa@m17n.org>
2359
2360 * search.c (search_buffer): Give up BM search on case-fold-search
2361 if one of a target character has a case-equivalence of different
2362 charset even if that target charcter is an ASCII.
2363
2364 * casefiddle.c (casify_object): Fix for the case that case
2365 conversion change the byte length.
2366
0ea1a8af
KS
23672005-10-14 Kim F. Storm <storm@cua.dk>
2368
2369 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
2370 (handle_one_xevent): Only clear help_echo_string; restore it if
2371 note_mouse_movement didn't record any mouse movement.
2372
2373 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
2374 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
2375
2376 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
2377 (Fposn_at_x_y): Fix calculation of x coordinate.
2378 (Fposn_at_point): Return nil if point is hscrolled out of view.
2379
6e5b2385
AS
23802005-10-13 Andreas Schwab <schwab@suse.de>
2381
2382 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
2383 non-interactive mode.
2384
6de0e1a2
YM
23852005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2386
2387 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
2388
78f3b91f
KS
23892005-10-12 Kim F. Storm <storm@cua.dk>
2390
2391 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
2392
b639c9be
RF
23932005-10-12 Romain Francoise <romain@orebokech.com>
2394
2395 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
2396
76d8f04c
YM
23972005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2398
2399 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
2400 get end of text rows. Obtain header-line/mode-line rows directly.
2401
96013ba9
SM
2402 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
2403 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
621036f9 2404
d76432f5
KS
24052005-10-12 Kim F. Storm <storm@cua.dk>
2406
7a127784
KS
2407 * xdisp.c (remember_mouse_glyph): New generic version based on
2408 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
2409 properly handle all different window areas.
2410
2411 * dispextern.h (remember_mouse_glyph): Add prototype.
2412
2413 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
2414 (note_mouse_movement, XTmouse_position): Use generic
2415 remember_mouse_glyph, add last_mouse_glyph arg.
2416
2417 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
2418 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
2419 (note_mouse_movement, w32_mouse_position): Use generic
2420 remember_mouse_glyph, add last_mouse_glyph arg.
2421
2422 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
2423 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
2424 (XTmouse_position): Adapt to use generic remember_mouse_glyph
2425 instead of pixel_to_glyph_coords.
2426
d76432f5
KS
2427 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
2428 Fix x position for ON_TEXT when left margin width > 0.
2429
55a4ac3e
KS
24302005-10-11 Kim F. Storm <storm@cua.dk>
2431
d76432f5 2432 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
55a4ac3e
KS
2433
2434 * keyboard.c (make_lispy_position): Fix buffer calculations for
2435 mouse click or movement in right fringe and the margins.
2436
2d4713aa
JB
24372005-10-11 Juanma Barranquero <lekktu@gmail.com>
2438
2439 * image.c (fn_jpeg_stdio_src): Don't define it.
2440 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
2441 (our_common_init_source): Rename from `our_init_source'.
2442 (our_common_term_source): Rename from `our_term_source'.
2443 (our_memory_fill_input_buffer): Rename from
2444 `our_fill_input_buffer'.
2445 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
2446 (jpeg_memory_src): Use the new names.
2447 (struct jpeg_stdio_mgr): New struct.
2448 (JPEG_STDIO_BUFFER_SIZE): New constant.
2449 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
2450 (jpeg_file_src): New functions.
2451 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
2452
71b7a47f
YM
24532005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2454
2455 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
2456 (fm_font_family_alist): New variable.
2457 (syms_of_macterm): Initialize and staticpro it.
2458 (decode_mac_font_name): Replace '-' in family name with '_' if it
2459 occurs just once. Lower family name.
2460 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
2461 All uses changed. Remove argument MF and code conversion for it.
2462 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
2463 to CHARSET. Parse font size. Lower family name. Return integer
2464 value for status of parsing.
2465 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
2466 Don't use Fdowncase because family name is already lowered by
2467 decode_mac_font_name.
96013ba9
SM
2468 (init_font_name_table): Always call decode_mac_font_name.
2469 Add pair of family name and its reference to fm_font_family_alist.
71b7a47f
YM
2470 (mac_clear_font_name_table): Clear fm_font_family_alist.
2471 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
2472 Lookup fm_font_family_alist to get font family reference.
2473 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
2474 name is already lowered by parse_x_font_name.
2475
74051a92
KS
24762005-10-11 Kim F. Storm <storm@cua.dk>
2477
31ab1f05
KS
2478 * xterm.c (glyph_rect): Return 0 if position is outside text area.
2479
74051a92
KS
2480 * keyboard.c (make_lispy_position): Fix buffer position calculation for
2481 mouse click or movement in fringe.
2482
9b909870
JR
24832005-10-10 Jason Rumney <jasonr@gnu.org>
2484
2485 * xterm.c (remember_mouse_glyph): New function.
58af5591 2486 (note_mouse_movement): Use it to remember the current glyph if changed.
9b909870 2487 (XTmouse_position): Fix calculation of fake glyph under mouse.
58af5591 2488 Move code to calculate glyph under mouse into remember_mouse_glyph.
9b909870 2489
f9e36a6d
JD
24902005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2491
58af5591 2492 * emacs.c (USAGE3, standard_args): -nb => -nbi.
f9e36a6d 2493
04bc7945
JB
24942005-10-10 Juanma Barranquero <lekktu@gmail.com>
2495
2496 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
2497 (next_frame, prev_frame, set_term_frame_name): Make static.
2498
2499 * window.c (Fwindow_tree): Fix spelling.
2500
41791a20
RF
25012005-10-09 Romain Francoise <romain@orebokech.com>
2502
2503 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
2504
e313fc07
JD
25052005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2506
58af5591
KS
2507 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
2508 Add options -nb, --no-bitmap-icon.
e313fc07
JD
2509
2510 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
2511
61e62f5f
YM
25122005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2513
2514 * macgui.h (MAX_CLIP_RECTS): New define.
2515 (struct _XGC): New member clip_region.
2516 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
2517 clip_rects.
2518
2519 * macterm.c (GC_CLIP_REGION): New macro.
2520 (saved_port_clip_region): New variable.
2521 (mac_begin_clip, mac_end_clip): New functions.
2522 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
2523 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
2524 (mac_copy_area_with_mask, mac_scroll_area): Use them.
2525 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
2526 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
2527 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
2528 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
2529 rectangles stored in gc.
71b7a47f 2530 (XFreeGC): Dispose of clipping region.
61e62f5f
YM
2531 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
2532 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
2533 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
2534 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
2535 (x_draw_bar_cursor): Use them.
2536 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
2537 get multiple clipping rectangles.
2538
2539 * macterm.h (mac_term_init): Add types to extern.
2540 (struct mac_output): Remove members mWP and pending_menu_activation.
f7270128 2541 Put members scroll_bar_foreground_pixel and
61e62f5f
YM
2542 scroll_bar_background_pixel in #if 0.
2543 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
2544
2545 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2ef1363e 2546 Add debugging code.
61e62f5f 2547
ef1b4c9e
KS
25482005-10-08 Kim F. Storm <storm@cua.dk>
2549
2550 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
2551
f1010549
KS
25522005-10-07 Kim F. Storm <storm@cua.dk>
2553
2554 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
2555 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
2556 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
2557
c2ded1b7
YM
25582005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2559
2560 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
2561 to for_overlaps. Now occupy 3 bits.
2562 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
2563 (OVERLAPS_ERASED_CURSOR): New defines.
2564 (struct redisplay_interface): Add new OVERLAPS arg to member
2565 fix_overlapping_area.
2566 (x_fix_overlapping_area): Add new OVERLAPS arg.
2567 (get_glyph_string_clip_rects): Add extern.
2568
96013ba9
SM
2569 * dispnew.c (redraw_overlapping_rows):
2570 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
c2ded1b7
YM
2571
2572 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
2573 for_overlaps.
2574 (get_glyph_string_clip_rects): New function created from
f1010549
KS
2575 get_glyph_string_clip_rect. Set clipping rectangles according to the
2576 value of for_overlaps. Enable to store multiple clipping rectangles.
c2ded1b7
YM
2577 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
2578 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
2579 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
f7270128 2580 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
c2ded1b7 2581 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
f1010549
KS
2582 calculating clipping rectangles later. Call x_fix_overlapping_area
2583 with new OVERLAPS arg to draw only erased cursor area.
f7270128 2584 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
f1010549 2585 to draw overlaps in both preceding and succeeding rows.
c2ded1b7
YM
2586
2587 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
2588 struct glyph_string to for_overlaps.
2589
a19a0003
RS
25902005-10-04 Richard M. Stallman <rms@gnu.org>
2591
2592 * alloc.c (refill_memory_reserve): Conditionalize the body,
2593 not the function's existence.
2594
abc8ce50
KS
25952005-10-04 Kim F. Storm <storm@cua.dk>
2596
2597 * window.c (window_split_tree): New function.
2598 (Fwindow_split_tree): New defun.
2599 (syms_of_window): Defsubr it.
2600
66533b25
YM
26012005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2602
2603 * macterm.c (mac_invert_rectangle): New function.
2604 (XTflash): Use it.
2605
4156359e
SM
26062005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
2607
4e2f601f
SM
2608 * regex.h (re_char): Don't expose it in the interface.
2609 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
2610
2611 * regex.c (re_char): Move it back here.
2612 (re_set_whitespace_regexp): Change the arg's type to not use it.
2613
4156359e
SM
2614 * keyboard.c (make_lispy_event): If point has moved between down and up
2615 event, make it a drag, not a click, to mirror what
2616 mouse-drag-region expects.
2617
eb27c2ca
DN
26182005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2619
2620 * lisp.h (fatal): Undo previous change.
2621 * term.c (fatal): Undo previous change.
2622
b059f7d0
RS
26232005-10-01 Richard M. Stallman <rms@gnu.org>
2624
2625 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
2626
21a9a7be
KS
26272005-10-01 Kim F. Storm <storm@cua.dk>
2628
2629 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
2630
ddcb7665
YM
26312005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2632
2633 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
2634
2635 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2ef1363e 2636 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
4156359e
SM
2637 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
2638 Try ATSUI-compatible 12pt Monaco font first.
ddcb7665
YM
2639
2640 * macgui.h (struct _XCharStruct): New member valid_p.
2641 (STORE_XCHARSTRUCT): Set valid_p.
2642 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
2643
2644 * macterm.c (mac_draw_string_common, x_per_char_metric)
2645 (mac_compute_glyph_string_overhangs, init_font_name_table)
2646 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
2647 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
2648 (x_draw_glyph_string_background)
2649 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
2650 XDrawImageString. Always draw background and foreground separately.
2651 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
2652 functions for one-byte chars when using ATSUI-compatible fonts.
2653 (atsu_font_id_hash) [USE_ATSUI]: New variable.
2654 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
2655 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
2656 max_char_or_byte2 more in detail.
2657 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
2658
fa8459a3
DN
26592005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2660
4156359e 2661 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
fa8459a3
DN
2662 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
2663
2664 * unexelf.c (fatal): Fix prototype.
2665
2666 * term.c (fatal): Implement using varargs.
2667
21a9a7be 2668 * regex.c (re_char): Move typedef ...
fa8459a3 2669 * regex.h (re_char): ... here.
4156359e 2670 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
fa8459a3
DN
2671
2672 * emacs.c (malloc_set_state): Fix return type.
2673 (endif): Fix type.
2674
2675 * lisp.h (fatal): Add argument types.
2676
2677 * dispextern.h (fatal): Delete prototype.
2678
9dd28cae 2679 * systime.h (make_time): Prototype moved from ...
fa8459a3
DN
2680 * editfns.c (make_time): ... here.
2681
2682 * editfns.c: Move systime.h include after lisp.h.
21a9a7be
KS
2683 * dired.c:
2684 * xsmfns.c:
fa8459a3 2685 * process.c: Likewise.
21a9a7be 2686
fa8459a3
DN
2687 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
2688 Add parameter types.
2689 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
2690 (emacs_blocked_free): Change definition to match __free_hook.
2691 (emacs_blocked_malloc): Change definition to match __malloc_hook.
4156359e 2692 (emacs_blocked_realloc): Change definition to match __realloc_hook.
fa8459a3 2693
97c3e4cc
RF
26942005-09-30 Romain Francoise <romain@orebokech.com>
2695
2696 * minibuf.c (Fread_buffer): Follow convention for reading from the
2697 minibuffer with a default value. Doc fix.
2698
8ad8c5ce
JL
26992005-09-29 Juri Linkov <juri@jurta.org>
2700
2701 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
2702 Rename argument name `string' to `format-string'.
2703 (Fformat): Doc fix.
2704
64da5759
KS
27052005-09-28 Kim F. Storm <storm@cua.dk>
2706
2707 * image.c (gif_load): Fix size of allocated image buffer
2708 for images where a sub-image may be larger than the image's
2709 total height/width specifications.
2710
eaf92438
YM
27112005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2712
2713 * macgui.h (struct _XCharStruct): Each member now takes short value.
2714
43f15d4a
DN
27152005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
2716
2717 * xfaces.c (lookup_derived_face): Add parameter type.
2718
2719 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
2720
2721 * marker.c (verify_bytepos): Add parameter type.
2722
2723 * process.c (get_operating_system_release): Move prototype ...
2724
2725 * systime.h (get_operating_system_release): ... here.
2726
04bc7945
JB
2727 * xterm.c (handle_one_xevent): Refer to union field to match the
2728 type required by the function definition.
2729 (set_vertical_scroll_bar): Move prototype ...
43f15d4a
DN
2730
2731 * xterm.h: ... here.
2732
2733 * fns.c (internal_equal, seed_random): Fix prototypes.
2734 (internal_equal): Add missing parameter.
2735
c769dcac
RS
27362005-09-25 Richard M. Stallman <rms@gnu.org>
2737
2738 * keyboard.c (update_menu_bindings): Variable deleted.
2739 (syms_of_keyboard): Don't defvar it.
2740 (parse_menu_item): Don't test it.
2741
8dbf19c7
RS
27422005-09-23 Richard M. Stallman <rms@gnu.org>
2743
2744 * editfns.c (Fformat): Explicitly test for end of format string
2745 and don't use `index'.
2746
3480d92b
DN
27472005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
2748
4156359e
SM
2749 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
2750 Define BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
2751
2752 * sysdep.c (get_current_dir_name): Also define if
64da5759 2753 BROKEN_GET_CURRENT_DIR_NAME.
3480d92b
DN
2754
2755 * m/ibmrs6000.h: Test for USG5, not USG5_4.
2756
5db60f31
KS
27572005-09-22 Kim F. Storm <storm@cua.dk>
2758
2759 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
2760 (message2): Fix commentary. Ok to use alloca'ed memory.
2761 Still not ok to use Lisp string data (because of GC).
2762 (set_message): Add comment why GC cannot happen.
2763
7c3d233d
YM
27642005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2765
2766 * macterm.c (xlfdpat_block_match_1): Fix assertion.
2767 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
2768 variants for a scalable font multiple times.
2769
acde1152
YM
27702005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2771
2772 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
2773 Setup slave tty options before forking.
2774
52d166e0
JD
27752005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2776
2777 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
2778 positions have been set for the frame (as is done for frames in
2779 special-display-buffer-names).
2780
12d10bc7
KS
27812005-09-19 Kim F. Storm <storm@cua.dk>
2782
2783 * editfns.c (Fformat): Don't scan past end of format string that
2784 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
2785
9f1cf0e3
AS
27862005-09-18 Andreas Schwab <schwab@suse.de>
2787
2788 * window.h (struct window): Remove height_fixed_p, no longer set.
2789
2790 * window.c (make_window): Don't initialize height_fixed_p.
2791 (window_fixed_size_p): Don't use it.
2792
8a658a52
JPW
27932005-09-18 John Paul Wallington <jpw@pobox.com>
2794
2795 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
2796
be9bb408
YM
27972005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2798
2799 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
2800
2801 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2802 New variables.
2803 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
2804 file selection.
2805
2806 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
2807
cbf223e1
EZ
28082005-09-17 Eli Zaretskii <eliz@gnu.org>
2809
2810 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
2811 (obj): Use XMENU_OBJ, not a literal xmenu.o.
2812
e3f509dd
RF
28132005-09-16 Romain Francoise <romain@orebokech.com>
2814
8ccd3630 2815 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
e3f509dd 2816
5c4757d3
RS
28172005-09-15 Richard M. Stallman <rms@gnu.org>
2818
2819 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
2820 (display_mode_element): Instead of `lisp_string' and `this',
2821 record `offset' and increment that.
2822 `last_offset' replaces `last'.
2823
2824 * Makefile.in (XMENU_OBJ): Variable deleted.
2825 (obj): Use xmenu.o unconditionally.
2826 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
2827
2828 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
2829
01978521
KS
28302005-09-15 Kim F. Storm <storm@cua.dk>
2831
2832 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
2833 (reseat_at_next_visible_line_start): Likewise (in xassert).
2834
ccf61795
RF
28352005-09-14 Romain Francoise <romain@orebokech.com>
2836
2837 * fileio.c (write_region_inhibit_fsync): New variable.
2838 (Fwrite_region): Use it to skip call to fsync.
2839 (syms_of_fileio): Initialize it.
2840
2b046a72
KH
28412005-09-14 Kenichi Handa <handa@m17n.org>
2842
24a2b282
KH
2843 * coding.c (code_convert_region_unwind): Argument format changed.
2844 (run_pre_post_conversion_on_str): If pre-write-conversion function
2845 changed the current buffer, delete the new buffer.
2846 (run_pre_write_conversin_on_c_str): Likewise.
2847
2b046a72
KH
2848 * fileio.c (Fexpand_file_name): Check multibyteness of
2849 default_directory.
2850
d008f7b7
KH
28512005-09-13 Kenichi Handa <handa@m17n.org>
2852
2853 * composite.c (compose_chars_in_text): Delete it.
2854
2855 * composite.h (compose_chars_in_text): Delete extern.
2856
2ada8ac5
KS
28572005-09-13 Kim F. Storm <storm@cua.dk>
2858
2859 * print.c (print_error_message): Fix last change.
2860
48c60938
KS
28612005-09-12 Kim F. Storm <storm@cua.dk>
2862
0fdbe302
KS
2863 * composite.c (compose_chars_in_text): Fix setup of `pend'.
2864 Unconditionally reload `ptr' and `pend' after eval.
2865
48c60938
KS
2866 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
2867
2868 * print.c (print_error_message): Pass copy of caller name to
2869 message_dolog.
2870
2871 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
2872
5add1986
KH
28732005-09-12 Kenichi Handa <handa@m17n.org>
2874
2875 * xdisp.c (display_mode_element): Be sure to make variables THIS
2876 and LISP_STRING point into a string data of ELT.
2877
18bb66c7
KS
28782005-09-12 Kim F. Storm <storm@cua.dk>
2879
2880 * editfns.c (Ftranslate_region_internal): Reload `tt' after
2881 signal_after_change that may have GC'ed.
2882 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
2883
2884 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
2885 after insert while runs signal_after_change.
2886
2887 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
2888 declaration to where it is used.
2889
2890 * w32.c (check_windows_init_file): Fix allocation of error buffer.
2891
2892 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
2893 (x_set_name_internal): Call x_encode_text with new FREEP arg to
2894 know if xfree is needed instead of guessing.
2895
2896 * xterm.h (x_encode_text): Remove prototype.
2897
945a75f8
JR
28982005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
2899
2900 * w32term.c (x_bitmap_icon): Load small icons too.
2901
156bdb41
RF
29022005-09-10 Romain Francoise <romain@orebokech.com>
2903
2904 * buffer.c (init_buffer): Grow buffer to add directory separator
f9962371 2905 and terminal zero. Fix typos.
156bdb41 2906
67b8391b
EZ
29072005-09-10 Eli Zaretskii <eliz@gnu.org>
2908
a17b5ed1
EZ
2909 * buffer.c (init_buffer): Fix error message for failed call to
2910 get_current_dir_name.
2911 (get_current_dir_name): Remove prototype.
2912
9dd28cae 2913 * xsmfns.c (get_current_dir_name): Remove prototype.
a17b5ed1 2914
9dd28cae 2915 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
96013ba9 2916 Add prototype.
a17b5ed1 2917
ed326e35 2918 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
b04a3120 2919 Don't #undef NULL after including blockinput.h.
ed326e35 2920
67b8391b
EZ
2921 * config.in: Regenerated.
2922
c187839d
EZ
29232005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
2924
2925 Remove the MAXPATHLEN limitations:
2926
1486d036
EZ
2927 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
2928 New function.
c187839d
EZ
2929
2930 * buffer.c (init_buffer): Use it.
2931
2932 * xsmfns.c (smc_save_yourself_CB): Ditto.
2933
ae8a5689
KS
29342005-09-09 Kim F. Storm <storm@cua.dk>
2935
39cac6b3
KS
2936 * doc.c (Fsubstitute_command_keys): Lookup key binding for
2937 commands that are remapped from some other command.
2938
aeb55c44
KS
2939 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
2940 flag in disabled rows below the window.
2941
ae8a5689
KS
2942 * frame.h (struct frame): New member updated_p.
2943
2944 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
2945 member. Remove local `updated' array and associated variables.
2946
821f6dae
KS
29472005-09-07 Kim F. Storm <storm@cua.dk>
2948
6e5395f2
KS
2949 * xdisp.c (handle_display_prop): Respect overlay window property.
2950
821f6dae
KS
2951 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
2952 Fixes crash reported by YAMAMOTO Mitsuharu.
2953
9655b404
YM
29542005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2955
2956 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
2957 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
2958 (xlfdpat_block_match_1, xlfdpat_match): New functions.
2959 (xlfdpat_block_match): New macro.
2960 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
2961 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
2962 (add_font_name_table_entry): Increase font_name_table_size more
2963 rapidly.
2964 (mac_c_string_match): Remove function.
2965 (mac_do_list_fonts): Use XLFD pattern match instead of regular
2966 expression match.
2967
2968 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
2969
d7ea8b71
RS
29702005-09-03 Richard M. Stallman <rms@gnu.org>
2971
2972 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
2973 (move_it_in_display_line_to): Stop after last char on line even
2974 on a windowing terminal, if that's the specified stop position.
2975
2976 * fns.c (Fsort): Doc fix.
2977
2978 * editfns.c (Fpropertize): Don't insist that properties be symbols.
2979
1550ae60
SM
29802005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
2981
2982 * dired.c (directory_files_internal_unwind, directory_files_internal)
2983 (file_name_completion): Use a Save_Value object rather than a cons of
2984 two 16bit ints to store the DIR*.
2985 (directory_files_internal, file_name_completion): Handle both EINTR and
2986 EAGAIN consistently after `readdir'.
2987
bdb4d6d8
SM
29882005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
2989
1550ae60
SM
2990 * intervals.c (update_interval): Add position info in error.
2991
bdb4d6d8
SM
2992 * dispnew.c (window_to_frame_hpos, update_window):
2993 Avoid gcc warning about unused variable `f'.
2994
6bcc3ca4
JR
29952005-08-31 Jason Rumney <jasonr@gnu.org>
2996
2997 * w32menu.c (add_menu_item): If unicode_append_menu returns an
2998 error, revert to using AppendMenu.
2999
07c5948c
YM
30002005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3001
bdb4d6d8
SM
3002 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
3003 All uses changed.
07c5948c
YM
3004 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
3005 cases.
3006 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
bdb4d6d8
SM
3007 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
3008 Use posix_pathname_to_fsspec.
07c5948c
YM
3009 [MAC_OS] (xpm_load_image): Fill in background_transparent field
3010 while we have mask.
3011
3012 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
3013
3014 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
3015
5a774522
SM
30162005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3017
3018 * syntax.c (update_syntax_table): Properly reproduce the special +1
3019 setting of e_property at the end of the buffer when bumping into the
3020 INTERVALS_AT_ONCE limit.
3021
0fb57cc0
EZ
30222005-08-27 Eli Zaretskii <eliz@gnu.org>
3023
3024 * emacs.c (USAGE1): Fix the description of the -Q option.
3025
5a774522
SM
30262005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
3027
3028 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
3029
4e6b8c5a
KS
30302005-08-26 Kim F. Storm <storm@cua.dk>
3031
3032 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
3033 Don't move PT to new window start.
3034
1f98fbb4
YM
30352005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3036
3037 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
3038 ICONIFY/DEICONIFY_EVENT.
3039
5a774522
SM
3040 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
3041 Restore background color.
1f98fbb4
YM
3042 (mac_handle_visibility_change): New function.
3043 (x_make_frame_invisible, x_iconify_frame)
3044 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
3045 [USE_CARBON_EVENTS] (mac_handle_window_event)
07c5948c 3046 (install_window_handler): Handle visibility change events.
1f98fbb4
YM
3047 (x_make_frame_visible): Don't reposition window if it is iconified
3048 or asked for visible before. Select and uncollapse window when it
3049 is made visible.
3050 (x_make_frame_invisible): Don't reset x_highlight_frame.
3051 (x_iconify_frame): Likewise. Make invisible frame visible before
3052 it is iconified.
3053 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
3054 (do_window_update): Don't change visibility of invisible frame.
3055
16691d29
JL
30562005-08-22 Juri Linkov <juri@jurta.org>
3057
3058 * term.c (turn_on_face): Check for TS_set_foreground and
3059 TS_set_background depending on standout_mode. Simplify.
3060
7c3f805b
KS
30612005-08-21 Kim F. Storm <storm@cua.dk>
3062
0f467468
KS
3063 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
3064 bitmaps on fully visible rows.
3065
7c3f805b
KS
3066 * fringe.c (update_window_fringes): Replace FORCE_P arg with
3067 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
3068 and return 0.
3069
3070 * xdisp.c (redisplay_window): Call update_window_fringes with
3071 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
3072
40b388f9
RS
30732005-08-20 Richard M. Stallman <rms@gnu.org>
3074
3075 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
3076 (resize_mini_window): Set w->start, and PT, so as to display the tail
3077 end of the buffer, if it doesn't all fit.
3078
581360f0
KS
30792005-08-18 Kim F. Storm <storm@cua.dk>
3080
3081 * xdisp.c (calc_pixel_width_or_height): Use actual display
3082 resolution when available instead of Vdisplay_pixels_per_inch.
3083
0eefa6fb
KS
30842005-08-17 Kim F. Storm <storm@cua.dk>
3085
3086 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
3087
3088 * dispnew.c (buffer_posn_from_coords): Check that target row is
3089 within matrix.
3090
ada192ba
JD
30912005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3092
3093 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
3094 xg_set_frame_icon and call it.
3095
3096 * gtkutil.c (xg_set_frame_icon): New function.
3097
0eefa6fb 3098 * gtkutil.h (xg_set_frame_icon): Declare it.
ada192ba 3099
ab89a403
KS
31002005-08-16 Kim F. Storm <storm@cua.dk>
3101
3102 * dispnew.c (increment_row_positions): Skip non-enabled rows.
3103
3104 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
3105 (Fcurrent_window_configuration): Use VECSIZE macro instead.
3106
8d34b5e1
RS
31072005-08-15 Richard M. Stallman <rms@gnu.org>
3108
3109 * xdisp.c (message3_nolog): Clear echo_message_buffer.
3110
71e37f3c
KS
31112005-08-15 Kim F. Storm <storm@cua.dk>
3112
0781c303
KS
3113 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
3114
71e37f3c
KS
3115 * process.c (deactivate_process, status_notify, read_process_output)
3116 (update_status, status_convert, decode_status, allocate_pty)
3117 (make_process, remove_process, list_processes_1)
3118 (create_process_1, unwind_request_sigio, read_process_output)
3119 (send_process, keyboard_bit_set): Declare static.
3120 (Fdelete_process): Simplify. Pass process to status_notify, so we
3121 don't try to read output from it.
3122 (status_notify): New arg deleting_process--don't try to read
3123 output from that process.
3124
3125 * lisp.h (deactivate_process, status_notify, read_process_output):
3126 Remove prototypes.
3127
0bf14bfd
RS
31282005-08-14 Richard M. Stallman <rms@gnu.org>
3129
bdb4d6d8
SM
3130 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
3131 define_image_type.
0bf14bfd 3132
6c7eb721
JD
31332005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3134
3135 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
3136 (xg_get_image_for_pixmap): Move some code to
3137 xg_get_pixbuf_from_pix_and_mask, and call it.
3138
3139 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
3140
3141 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
3142 to get an GTK icon and set it with GTK functions to avoid having GTK
3143 override an icon set with just X functions.
3144
6e2d14c8
RS
31452005-08-11 Richard M. Stallman <rms@gnu.org>
3146
bdb4d6d8
SM
3147 * image.c (syms_of_image): Init image_types here, and call
3148 define_image_type.
6e2d14c8
RS
3149 (init_image): Not here.
3150
61298e17
RS
31512005-08-09 Richard M. Stallman <rms@gnu.org>
3152
3153 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
3154
3155 * lisp.h (QUIT): Throw t to Vthrow_on_input.
3156
5a9807a8
TTN
31572005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
3158
3159 * floatfns.c (Fexpt): Use floats for negative exponent.
3160
93469010
JD
31612005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3162
3163 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
3164 should not be there, causing menu display errors with GTK 2.6.9.
3165
44edd521
RS
31662005-08-07 Richard M. Stallman <rms@gnu.org>
3167
8b6a9551
RS
3168 * floatfns.c (Fexpt): Undo previous change.
3169
44edd521
RS
3170 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
3171 so it can be used with various state vectors.
3172
3173 * emacs.c (endif): Convert -script into -scriptload.
3174 (standard_args): Add -scriptload. Allow -basic-display with one dash.
3175
3176 * fns.c (syms_of_fns): Add `emacs' to features.
3177
3178 * term.c (set_terminal_modes): If no TS_termcap_modes string,
3179 output newlines to scroll the old screen contents off the screen.
3180
cac87e30
TTN
31812005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
3182
2a205424
TTN
3183 * floatfns.c (Fexpt): Use floats for negative exponent.
3184 Reported by D Goel.
cac87e30 3185
31b7cc74
JB
31862005-08-02 Richard M. Stallman <rms@gnu.org>
3187
3188 * frame.c (Fframe_char_width): Doc fix.
3189
e2b64074
JB
31902005-07-30 Juanma Barranquero <lekktu@gmail.com>
3191
3192 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
3193 Defvar it.
3194
0962822d
JB
31952005-07-28 Juanma Barranquero <lekktu@gmail.com>
3196
3197 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
3198 (my_create_window, my_create_tip_window): Make static.
3199
3200 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
3201 (my_set_foreground_window, my_destroy_window): Make static.
3202
9eff9fe3
PE
32032005-07-26 Paul Eggert <eggert@cs.ucla.edu>
3204
3205 Merge gnulib getopt implementation into Emacs.
3206
3207 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
3208 now part of lib-src.
3209
1c9916a1
SM
32102005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
3211
3212 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
3213
94c7f257
JR
32142005-07-25 Jason Rumney <jasonr@gnu.org>
3215
3216 * w32menu.c (w32_menu_display_help): Suppress tooltip when
3217 navigating menus with the keyboard.
3218
bf0bf758
RS
32192005-07-23 Richard M. Stallman <rms@gnu.org>
3220
3221 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
3222
3223 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
3224 gc_relative_threshold, one by one.
3225
3226 * keyboard.c (read_char): Test gc_cons_threshold.
3227 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
3228
3229 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
3230 gc_relative_threshold, one by one.
3231
3232 * alloc.c (gc_cons_threshold): Not static.
3233 (gc_cons_combined_threshold): Var deleted.
3234 (gc_relative_threshold): New variable.
3235 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
3236 instead of gc_cons_combined_threshold.
3237
1c9916a1 3238 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
bf0bf758
RS
3239 (gc_cons_combined_threshold): Declaration deleted.
3240
99f963e4
YM
32412005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3242
3243 * mac.c: Don't include stdlib.h or string.h.
3244 (Fdo_applescript, Fmac_file_name_to_posix)
3245 (Fmac_file_name_to_posix): Doc fixes.
3246 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
3247 (Fmac_code_convert_string): Likewise.
3248 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
3249 if the executable is not contained in a bundle.
3250
3251 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
3252 (gray_width, gray_height): Remove defines.
3253 (gray_bits, gray_bitmap_width, gray_bitmap_height)
3254 (gray_bitmap_bits): Remove variables.
3255 (lispy_function_keys): Remove extern.
3256 (free_frame_menubar): Add extern.
3257 (x_window_to_frame): Remove function.
3258 (unwind_create_tip_frame): Add declaration.
3259 (x_set_name_internal): New function.
3260 (x_set_name, x_set_title): Use it.
3261 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
3262 (Fx_display_pixel_height, Fx_display_planes)
3263 (Fx_display_color_cells, Fx_server_max_request_size)
3264 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3265 (Fx_display_mm_height, Fx_display_mm_width)
3266 (Fx_display_backing_store, Fx_display_visual_class)
3267 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
3268
3269 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3270
bdb4d6d8 3271 * macselect.c (Fx_own_selection_internal): Follow error conventions.
99f963e4
YM
3272 (Fx_get_selection_internal, Fx_selection_owner_p)
3273 (Fx_selection_exists_p): Doc fixes.
3274 (syms_of_macselect) <selection-converter-alist>: Likewise.
3275
1d256714
JB
32762005-07-21 Juanma Barranquero <lekktu@gmail.com>
3277
3278 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3279
3280 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
3281 (Fccl_execute_on_string): Likewise; add usage info.
3282
3283 * composite.c (Fcompose_region_internal)
3284 (Fcompose_string_internal):
3285 Improve argument/docstring consistency.
3286
3287 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
3288 Fix typos in docstrings.
3289
3290 * textprop.c (Fnext_char_property_change)
3291 (Fprevious_char_property_change): Doc fixes.
3292
3293 * window.c (Fset_window_margins, Fset_window_fringes):
3294 Improve argument/docstring consistency.
3295
3296 * xfaces.c (Finternal_lisp_face_p): Doc fix.
3297
538f78c3
AS
32982005-07-21 Andreas Schwab <schwab@suse.de>
3299
3300 * eval.c (restore_stack_limits): Return a value.
3301
a5b5bf44
JB
33022005-07-20 Juanma Barranquero <lekktu@gmail.com>
3303
3304 * eval.c (Fdefvar): Doc fix.
3305
ae643123
KS
33062005-07-20 Kim F. Storm <storm@cua.dk>
3307
0ed4bf15
KS
3308 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
3309 Use make_save_value to unwind protect stream.
3310
3311 * lread.c (Fload, load_unwind):
3312 Use make_save_value to unwind protect stream.
ae643123 3313
82fc29a1
JB
33142005-07-19 Juanma Barranquero <lekktu@gmail.com>
3315
3316 * eval.c (Fprog2, Fcalled_interactively_p),
3317 (syms_of_eval) <debug-on-quit>: Doc fixes.
3318 (syms_of_eval) <max-specpdl-size>:
3319 (Finteractive_p): Fix typos in docstrings.
3320
73b90087
KS
33212005-07-19 Kim F. Storm <storm@cua.dk>
3322
3323 * w32fns.c (Vx_hand_shape): Variable removed.
3324 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
3325
dfc434d0
KH
33262005-07-19 Kenichi Handa <handa@m17n.org>
3327
bdb4d6d8 3328 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
dfc434d0 3329
bcd98331
SM
33302005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
3331
3332 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
3333
2a85a754
KS
33342005-07-18 Kim F. Storm <storm@cua.dk>
3335
3336 * frame.h (struct frame): New member already_hscrolled_p.
3337
3338 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
3339 to avoid redisplay looping hscrolling back and forth ad infinitum.
3340
426179e1
JL
33412005-07-18 Juri Linkov <juri@jurta.org>
3342
3343 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
3344 * keymap.c (Fminor_mode_key_binding):
3345 * macterm.c (mac-emulate-three-button-mouse):
3346 Delete duplicate duplicate words.
3347
9f4a578d
KR
33482005-07-18 Ken Raeburn <raeburn@gnu.org>
3349
3350 * minibuf.c (Ftest_completion): Fix odd syntax in test.
3351
d005338b
YM
33522005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3353
bcd98331 3354 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
d005338b
YM
3355
3356 * macgui.h (struct _XGC): New struct.
3357 (GC): Use it.
3358 (GCForeground, GCBackground, GCFont): Use X11 mask values.
3359 (XCreateGC, XParseGeometry): Move externs to macterm.h.
3360
bcd98331 3361 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
d005338b 3362 (XSetFont): Add declaration.
bcd98331
SM
3363 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
3364 Remove functions.
3365 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
3366 New defines.
d005338b
YM
3367 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
3368 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
bcd98331
SM
3369 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
3370 Use them.
d005338b
YM
3371 (mac_erase_rectangle): New function.
3372 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
3373 (x_draw_stretch_glyph_string): Use it.
3374 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
3375 (XSetBackground, XSetFont): Adjust for new GC implementation.
3376 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
3377 (XTset_vertical_scroll_bar): Clear area under scroll bar.
3378
3379 * macterm.h (struct mac_display_info): Change types of
3380 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
3381 (XCreateGC, XParseGeometry): Move externs from macgui.h.
3382
3383 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
3384
9b0c2c56
RS
33852005-07-16 Richard M. Stallman <rms@gnu.org>
3386
3387 * buffer.c (Fmake_overlay): Doc fix.
3388
2e9c1c6d
EZ
33892005-07-16 Eli Zaretskii <eliz@gnu.org>
3390
3391 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
3392 Vw32_valid_locale_ids, and Vw32_valid_codepages.
3393
407289a4
YM
33942005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3395
bcd98331
SM
3396 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
3397 Use Fstring_as_unibyte instead of string_make_unibyte.
407289a4 3398
e4b477a1
RS
33992005-07-15 Richard M. Stallman <rms@gnu.org>
3400
3401 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
3402
a8613adf
KS
34032005-07-15 Kim F. Storm <storm@cua.dk>
3404
3405 * xdisp.c: Fix redisplay loop in last change.
3406 (IT_POS_VALID_AFTER_MOVE_P): New macro.
3407 (move_it_vertically_backward, move_it_by_lines): Use it.
3408
2d5324c5
JR
34092005-07-14 Jason Rumney <jasonr@gnu.org>
3410
3411 * w32.c (init_environment): Default HOME directory to user's
3412 appdata directory if possible.
3413
3ed70dc4
KS
34142005-07-14 Kim F. Storm <storm@cua.dk>
3415
7b9389b0
KS
3416 * .gdbinit (pitx): Fix output format. Print string charpos.
3417
3ed70dc4
KS
3418 * lread.c (syms_of_lread): Initialize seen_list.
3419
3420 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
3421
3422 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
3423 Staticpro re_match_object.
3424
ef029e5a
YM
34252005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3426
3427 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
3428 dereference.
3429
3430 * macterm.c (mac_window_to_frame): Remove duplicate define.
3431
16ef9c56
KH
34322005-07-14 Kenichi Handa <handa@m17n.org>
3433
3434 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
bcd98331 3435 (code_convert_region): Adjust for the above change.
16ef9c56
KH
3436 (set_conversion_work_buffer): If the work buffer is already in
3437 use, generate a new buffer and return it. Otherwise return Qnil.
bcd98331 3438 (run_pre_post_conversion_on_str): Adjust for the above change.
16ef9c56
KH
3439 (run_pre_write_conversin_on_c_str): Likewise.
3440
098e1273
KS
34412005-07-13 Kim F. Storm <storm@cua.dk>
3442
010b9a45
KS
3443 * xdisp.c (start_display): Don't reseat to next visible line start
3444 if current start position is in a string or image.
3445 (move_it_vertically_backward): Be sure to move out of strings and
3446 images when moving it2 forward.
3447 (move_it_by_lines): When moving forward, move to next buffer
3448 position if we end up in a string or image. When moving backward,
3449 count rows moved over when moving to start of current row in case
3450 row starts in middle of a string or image. Also move further
3451 backward if we end up in a string or image.
bcd98331 3452 (try_cursor_movement): If overlay string spans multiple lines,
010b9a45
KS
3453 move backward to set cursor on start of an overlay string.
3454 (cursor_row_p): Row is ok if cursor is at newline from string, but
3455 string starts on this line (so we always position cursor at start
3456 of string).
3457
3458 * indent.c (Fvertical_motion): If start position is on an image,
3459 don't move back if we move too far (that's almost certain to happen).
3460
098e1273
KS
3461 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
3462 row in minibuffer windows.
3463 (try_window): Don't check margins in minibuffer windows.
3464
c229fb15
YM
34652005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3466
3467 * macterm.c: Don't include stdlib.h or composite.h.
3468 (x_use_underline_position_properties, last_mouse_press_frame)
3469 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
3470 (syms_of_macterm, mac_initialize): Don't initialize them.
3471 (waiting_for_input, initial_argv, initial_argc)
3472 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
3473 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
3474 (extra_keyboard_modifiers): Fix type in extern.
3475 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
3476 (x_scroll_bar_report_motion): Add argument types to declaration.
3477 (mac_compute_glyph_string_overhangs): Add declaration.
3478 (disable_mouse_highlight): Remove unused variable.
3479 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
3480 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
bcd98331
SM
3481 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
3482 All callers changed.
c229fb15
YM
3483 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
3484 timestamp.
3485 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
3486 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
3487 only when its width is less than the height.
3488 (XTredeem_scroll_bar): Sync with xterm.c.
bcd98331
SM
3489 (font_name_table, font_name_table_size, font_name_count):
3490 Make static.
c229fb15
YM
3491 (drag_and_drop_file_list): Remove variable. Previous use is now
3492 local to function.
3493 (do_ae_open_documents): Move DRAG_N_DROP event construction part
3494 from XTread_socket.
bcd98331
SM
3495 (XTread_socket): Consolidate setting of event timestamp.
3496 Move DRAG_N_DROP event construction part to do_ae_open_documents.
c229fb15
YM
3497 Support extra_keyboard_modifiers.
3498
3499 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
3500 beginning with that for ASCII.
3501
69d05d83
SM
35022005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
3503
3504 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
3505 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
3506 (syms_of_alloc): Declare gc-cons-percentage.
3507
3508 * eval.c (Feval, Ffuncall):
3509 * keyboard.c (read_char):
3510 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
3511
3512 * lisp.h (gc_cons_combined_threshold): Declare.
3513
5c7f9de1
KS
35142005-07-12 Kim F. Storm <storm@cua.dk>
3515
3516 * coding.c (Qprocess_argument):
3517 * coding.h (Qprocess_argument): Remove unused var.
3518
3519 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
3520
c37efb7a
YM
35212005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3522
3523 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
3524 Endian.h.
3525 [!MAC_OSX] (fchmod, fchown): New functions.
3526 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
3527 Use SBYTES and EndianU32_BtoN.
3528 (mac_get_object_from_code): Return 4 byte string even if argument
3529 is 0. Use make_unibyte_string and EndianU32_NtoB.
3530 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
3531 (Fmac_set_file_type): Fix documents and argument declarations.
3532 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
3533
a4429c5b
SM
35342005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
3535
3536 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
3537
a2d7e722
JD
35382005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3539
3540 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
3541 Lucid if X_I18N, font otherwise.
3542
9a4183e9
ST
35432005-07-10 Steven Tamm <steventamm@mac.com>
3544
a4429c5b
SM
3545 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
3546 (Fmac_set_file_type, Fmac_set_file_creator): Add.
3547 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9a4183e9 3548
51f74c37
RS
35492005-07-10 Richard M. Stallman <rms@gnu.org>
3550
3551 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
3552 (syms_of_lread): Set up eval-buffer-list.
3553 (Feval_buffer, Feval_region): Bind eval-buffer-list.
3554
93c7da4c
RS
35552005-07-08 Richard M. Stallman <rms@gnu.org>
3556
3557 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
3558
64af5917
KS
35592005-07-08 Kim F. Storm <storm@cua.dk>
3560
3561 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
3562 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
3563
a96b333c
KS
35642005-07-07 Kim F. Storm <storm@cua.dk>
3565
3566 * window.c (Frecenter): Fix last change (set iarg before use).
3567
dc2204be
RS
35682005-07-06 Richard M. Stallman <rms@gnu.org>
3569
3570 * window.c (Frecenter): When arg is inside the scroll margin,
3571 move it out of the margin.
3572
3fb1d72b
JR
35732005-07-06 Jason Rumney <jasonr@gnu.org>
3574
3575 * w32console.c (initialize_w32_display): Detect when the console
3576 dimensions are insane, and default to 80x25 instead.
a4429c5b 3577 (w32_use_full_screen_buffer): Default to NIL.
3fb1d72b 3578
dd15724d
YM
35792005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3580
3581 * macterm.c (mac_draw_vertical_window_border): Use foreground of
3582 VERTICAL_BORDER_FACE_ID for vertical border line.
3583 (mac_encode_char): Call check_ccl_update in advance.
3584 (mac_to_x_fontname, x_font_name_to_mac_font_name)
a4429c5b
SM
3585 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
3586 Don't assume that font family length is less than 32.
dd15724d
YM
3587 (x_compute_min_glyph_bounds): Make static.
3588 (x_load_font): Never set fonts_changed_p to zero.
a96b333c 3589
68003d6b
LK
35902005-07-04 Lute Kamstra <lute@gnu.org>
3591
dc2204be 3592 * Update FSF's address in GPL notices.
68003d6b 3593
3d393029
RS
35942005-07-03 Richard M. Stallman <rms@gnu.org>
3595
3596 * xdisp.c (try_window): Fix previous change in how it handles
3597 a partially-visible line or one only partly past the margin.
3598
3599 * window.c (window_scroll_pixel_based): Take account
3600 of this_scroll_margin when finding point when scrolling up.
3601
36022005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
3603
3604 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3605 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9dd28cae 3606 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3d393029 3607
d6951bb4
EZ
36082005-07-02 Juri Linkov <juri@jurta.org>
3609
3610 * w32term.c (w32_draw_vertical_window_border): Use foreground of
3611 VERTICAL_BORDER_FACE_ID for vertical border line.
3612
b016179b
EZ
36132005-07-02 Eli Zaretskii <eliz@gnu.org>
3614
3615 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
3616 fchmod so that chmod doesn't get called on MSDOS before the file
3617 is closed.
3618
c2baa2b6
JR
36192005-07-01 Jason Rumney <jasonr@gnu.org>
3620
3621 * w32term.c (cleartype_active): New flag for enabling sub-pixel
3622 workaround.
3623 (w32_initialize): Initialize it.
3624 (w32_native_per_char_metric): Allow a couple of extra pixels when
3625 Cleartype is active.
3626
3627 * w32term.c (w32_initialize): Move check for screen reader here
3628 from syms_of_w32term.
3629
a6d0ae55
JD
36302005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3631
3632 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
3633 is not zero.
3634
711877f3
MY
36352005-07-01 Masatake YAMATO <jet@gyve.org>
3636
a4429c5b 3637 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
711877f3 3638
63f7ffb3
JL
36392005-06-30 Juri Linkov <juri@jurta.org>
3640
3641 * xdisp.c (x_draw_vertical_border): If left fringe is not present
3642 decrease x coord of vertical border by 1 pixel to not occupy text
3643 area of the right window.
3644
3645 * xterm.c (x_draw_vertical_window_border): Use foreground of
3646 VERTICAL_BORDER_FACE_ID for vertical border line.
3647
3648 * term.c (turn_on_face): In standout mode apply specified
3649 fg to bg, and specified bg to fg (this makes the logic of
3650 inversion on terminal consistent with X).
3651
b26860ad
JB
36522005-06-29 Juanma Barranquero <lekktu@gmail.com>
3653
3654 * eval.c (user_variable_p_eh): New function.
3655 (Fuser_variable_p): Use it. Clarify docstring.
3656 Return t for aliases of user options, nil for alias loops.
3657
3a1f1d79
RS
36582005-06-27 Richard M. Stallman <rms@gnu.org>
3659
3660 * eval.c (Fdefvar): Improve error message.
3661
92de1e01
YM
36622005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3663
3664 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
3665 change.
3666
69410484
JB
36672005-06-27 Juanma Barranquero <lekktu@gmail.com>
3668
3669 * eval.c (Fdefvar): Don't try to set constant symbols.
3670
09352e8f
RS
36712005-06-25 Richard M. Stallman <rms@gnu.org>
3672
a68d870b
RS
3673 * macfns.c (Fx_show_tip): Pass new arg to try_window.
3674
3675 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
3676
3677 * xfns.c (Fx_show_tip): Pass new arg to try_window.
3678
3679 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
3680 (redisplay_window): Handle try_window reporting point in scroll margin.
3681
3682 * dispextern.h (try_window): Declare new arg.
3683
3684 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
3685 Use fchmod to copy the file modes.
3686 (Frename_file): Don't copy UID and GID here;
3687 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
3688
df13531d
RS
3689 * eval.c (call_debugger): Take full care of extending stack limits
3690 to make space for the debugger, and restore the change afterward.
3691 Bind debug-on-error to nil.
3692 (restore_stack_limits): New subroutine.
3693 (Fsignal): Extend specpdl bound along with eval depth bound,
3694 for calling edebug. Don't do either one, for calling debugger.
3695 (find_handler_clause): Don't bind debug-on-error here.
3696 Don't unbind anything either.
3697 Temporarily advance max_specpdl_size for calling
3698 internal_with_output_to_temp_buffer.
3699 (grow_specpdl): Don't alter max_specpdl_size before signaling
3700 an error.
3701 (syms_of_eval) <max-specpdl-size>: Doc fix.
3702
09352e8f
RS
3703 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
3704
90296dd3
EZ
37052005-06-24 Eli Zaretskii <eliz@gnu.org>
3706
3707 * fileio.c (Frename_file): Undo last change: no need to ifdef away
3708 chown on DOS_NT platforms.
3709
3710 * w32.c (sys_chown): New function.
3711
3712 * s/ms-w32.h (chown): New; define to sys_chown.
3713
c4f6ca24
JB
37142005-06-24 Juanma Barranquero <lekktu@gmail.com>
3715
3338c0ad
JB
3716 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
3717 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
3718
9a1505e9 3719 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
c4f6ca24 3720
528b6abc
RS
37212005-06-23 Richard M. Stallman <rms@gnu.org>
3722
3723 * xdisp.c (get_next_display_element): Finish reversing the tests of
3724 Vnobreak_char_display.
3725
9a1505e9 3726 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
528b6abc 3727 All uses changed.
9a1505e9 3728 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
528b6abc
RS
3729 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
3730
3731 * fileio.c (Frename_file): Preserve owner and group, if possible,
3732 when copying.
3733
1d1c7e75
JB
37342005-06-23 Juanma Barranquero <lekktu@gmail.com>
3735
253b2298
JB
3736 * abbrev.c (Funexpand_abbrev):
3737 * category.c (Fmake_category_set):
3738 * dispnew.c (Fsleep_for, Fsit_for):
3739 * editfns.c (Fsubst_char_in_region):
3740 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
3741 * frame.c (make_frame_without_minibuffer):
3742 * lread.c (read_vector):
3743 * macfns.c (check_x_frame):
3744 * process.c (Fstop_process, Fcontinue_process):
3745 * search.c (Freplace_match):
3746 * syntax.c (Fstring_to_syntax):
3747 * w32fns.c (check_x_frame, check_x_display_info):
3748 * xfaces.c (x_supports_face_attributes_p):
3749 * xselect.c (Fx_own_selection_internal): Follow error conventions.
3750
1d1c7e75
JB
3751 * image.c (fn_png_init_io): Don't define it.
3752 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
3753 (png_read_from_file): New function, based on png_read_from_memory.
3754 (png_load): Use it, instead of fn_png_init_io.
3755
d1fab151
KS
37562005-06-23 Kim F. Storm <storm@cua.dk>
3757
3758 * search.c (Fmatch_data): Remove evaporate option.
9d12e52b 3759 (Fset_match_data): Do not mention evaporate option in doc string.
d1fab151
KS
3760 Add commentary explaining evaporate arg (for internal use only).
3761 (unwind_set_match_data): Add comment on evaporate use.
3762
53abc3bf
MB
37632005-06-22 Miles Bader <miles@gnu.org>
3764
a4429c5b 3765 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
53abc3bf
MB
3766 (realize_basic_faces, syms_of_xfaces): Update references to it.
3767 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
3768 to `VERTICAL_BORDER_FACE_ID'.
3769 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
3770
36a3b076
JL
37712005-06-21 Juri Linkov <juri@jurta.org>
3772
3773 * dispextern.h: Add extern Qframe_set_background_mode.
3774
3775 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
3776 Qframe_set_background_mode.
3777
3778 * frame.c (Fmodify_frame_parameters):
3779 Call frame-set-background-mode after changing the background color
3780 on non-window non-dos branch.
3781
23873c96
JB
37822005-06-21 Juanma Barranquero <lekktu@gmail.com>
3783
3784 * fns.c (Fchar_table_range):
3785 * process.c (Fmake_network_process): Fix spellings.
3786
b7d1f38f
KS
37872005-06-20 Kim F. Storm <storm@cua.dk>
3788
3789 * fns.c (Fsort): Doc fix.
3790
b4e49aee
MB
37912005-06-20 Miles Bader <miles@gnu.org>
3792
3793 * xfaces.c (Qvertical_divider): New variable.
3794 (realize_basic_faces): Realize its face.
3795 (syms_of_xfaces): Initialize it.
3796
3797 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
3798
3799 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
3800 window-separator on ttys using `vertical-divider' face by default.
3801
b7da00ba
RS
38022005-06-17 Richard M. Stallman <rms@gnu.org>
3803
a4429c5b
SM
3804 * xdisp.c (get_next_display_element):
3805 Reverse test of Vshow_nonbreak_escape.
b7da00ba
RS
3806
3807 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
f19b57e3
RS
3808 (Ftty_no_underline): New function.
3809 (syms_of_term): defsubr it.
b7d1f38f 3810
b7da00ba
RS
3811 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
3812
3813 * dispnew.c (spec_glyph_lookup_face): New function.
3814 (build_frame_matrix_from_leaf_window): Use it.
3815
3816 * dispextern.h (spec_glyph_lookup_face): Add declaration.
3817
3818 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3819
38202005-06-12 Richard M. Stallman <rms@gnu.org>
3821
3822 * keyboard.c (read_char): After catching a longjmp,
3823 call restore_getcjmp.
3824
289824a3
JB
38252005-06-17 Juanma Barranquero <lekktu@gmail.com>
3826
3827 * xselect.c (lisp_data_to_selection_data): Fix spelling.
3828
95085023
YM
38292005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3830
3831 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
3832 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
3833 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
3834 events.
3835 (XTread_socket): Don't pass keyboard events with the option
3836 modifier to the system when Vmac_command_key_is_meta is nil or
3837 Vmac_option_modifier is non-nil.
3838 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
3839 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
3840 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
3841 handler function.
3842 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
3843 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
3844 handler part to mac_handle_mouse_event.
3845
4a9308b8
JB
38462005-06-14 Juanma Barranquero <lekktu@gmail.com>
3847
3848 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
3849 NEW-ALIAS and BASE-VARIABLE, respectively.
3850
5aa6db57
SM
38512005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
3852
3853 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
3854 (get_phys_cursor_geometry, format_mode_line_unwind_data)
3855 (get_line_height_property, x_produce_glyphs): Remove unused vars.
3856
3857 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
3858
0e0dddda
EZ
38592005-06-13 Eli Zaretskii <eliz@gnu.org>
3860
3861 * w32term.c (x_use_underline_position_properties): New variable.
3862 (x_draw_glyph_string): Remind in a comment to change doc string of
3863 x-use-underline-position-properties if/when underline positioning
3864 is implemented.
3865 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
3866 and initialize it to nil.
3867
7f2b4738
JR
38682005-06-12 Jason Rumney <jasonr@gnu.org>
3869
3870 * w32fns.c (NEWOPENFILENAME): New struct.
3871 (Fx_file_dialog): Use it to trick the system into giving us up to
3872 date dialogs on systems that are documented to support it.
3873 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
3874
a1e8cad6
EZ
38752005-06-12 Eli Zaretskii <eliz@gnu.org>
3876
3877 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
3878 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
3879
099a3eea
EZ
38802005-06-11 Eli Zaretskii <eliz@gnu.org>
3881
2e09fef1
EZ
3882 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
3883 to CreateDIBSection to avoid a compiler warning.
3884 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
3885 warning.
3886 (png_load): Cast return values of fn_png_create_read_struct and
3887 fn_png_create_info_struct, to avoid compiler warnings on W32.
3888 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
3889 to avoid compiler warnings.
3890 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
3891 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
3892 avoid a compiler warning.
3893 (tiff_load): Cast return values of fn_TIFFOpen and
3894 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
3895 to IMAGE_BACKGROUND to avoid a compiler warning.
3896 (gif_load): Cast return values of fn_DGifOpenFileName and
3897 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
3898 IMAGE_BACKGROUND to avoid a compiler warning.
3899 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
3900 before redefining.
3901
099a3eea
EZ
3902 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
3903 the call to CreateDIBSection, to avoid a compiler warning.
3904
d11f8e1a
JR
39052005-06-11 Jason Rumney <jasonr@gnu.org>
3906
3907 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
3908 minibuffer.
3909 * macfns.c (Fx_file_dialog): Likewise.
3910
cd4344a3
EZ
39112005-06-10 Eli Zaretskii <eliz@gnu.org>
3912
3913 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
3914
578c1340
JB
39152005-06-10 Juanma Barranquero <lekktu@gmail.com>
3916
3917 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
3918 * w32fns.c (syms_of_w32fns): Fix spellings.
3919
4162f25f
EZ
39202005-06-10 Eli Zaretskii <eliz@gnu.org>
3921
3922 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
5aa6db57
SM
3923 `verbose'; print diagnostic messages only if it is non-zero.
3924 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4162f25f
EZ
3925 in the environment.
3926 (copy_executable_and_dump_data): Print section names with %.8s.
3927
121c59a3
MY
39282005-06-10 Masatake YAMATO <jet@gyve.org>
3929
3930 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
3931 when mouse_face is not given.
121c59a3 3932
c869384d
LT
39332005-06-09 Luc Teirlinck <teirllm@auburn.edu>
3934
3935 * window.c (Fselect_window): Adapt call to Fselect_frame.
3936
3937 * lisp.h: Update EXFUN of Fselect_frame.
3938
3939 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
3940
6ecf436d
LT
3941 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
3942 no_enter.
3943 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
c869384d
LT
3944 Adapt to above change.
3945
c14ec135
JB
39462005-06-10 Juanma Barranquero <lekktu@gmail.com>
3947
3948 * fns.c (Fmemq, Fmaphash): Doc fixes.
3949
9fed2905
JB
39502005-06-09 Juanma Barranquero <lekktu@gmail.com>
3951
3952 * xfaces.c (Fdisplay_supports_face_attributes_p):
3953 Fix typo in docstring.
3954
427c5b1b
ST
39552005-06-08 Steven Tamm <steventamm@mac.com>
3956
3957 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
3958 used by gcc4 on intel mac.
3959
b7aae902
KS
39602005-06-09 Kim F. Storm <storm@cua.dk>
3961
3962 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
3963 in REUSE list if non-nil; free them if equal to evaporate.
3964 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
3965 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
3966 (restore_search_regs): Rename from restore_match_data. Uses changed.
3967 (unwind_set_match_data): New function.
3968 (record_unwind_save_match_data): New function like save-match-data.
3969
3970 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
3971 (record_unwind_save_match_data): Add prototype.
3972 (restore_search_regs): Rename from restore_match_data.
3973
3974 * composite.c (compose_chars_in_text):
3975 * eval.c (do_autoload):
3976 * macmenu.c (set_frame_menubar):
3977 * process.c (read_process_output, exec_sentinel):
3978 * xmenu.c (set_frame_menubar):
3979 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
3980 * w32menu.c (set_frame_menubar):
3981 Use record_unwind_save_match_data.
3982
547d2b37
RS
39832005-06-08 Richard M. Stallman <rms@gnu.org>
3984
3985 * xdisp.c (get_next_display_element): Alter previous change:
3986 Distinguish Vshow_nonbreak_escape = t or not t.
3987 For t, use escape_glyph once again, as before previous change.
3988 Use space or hyphen for display, instead of the non-ASCII char.
3989 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
3990
3991 * process.c (Fstart_process): Don't touch command_channel_p slot.
3992
99598737 3993 * process.h (struct process): Delete command_channel_p.
547d2b37 3994
602907ae
MY
39952005-06-07 Masatake YAMATO <jet@gyve.org>
3996
5aa6db57
SM
3997 * xdisp.c (note_mode_line_or_margin_highlight):
3998 Check the overlapping of re-rendering area to avoid flickering.
b7aae902 3999 (note_mouse_highlight): Call clear_mouse_face if PART
602907ae
MY
4000 is not ON_MODE_LINE nor ON_HEADER_LINE.
4001
8b793bed
KS
40022005-06-07 Kim F. Storm <storm@cua.dk>
4003
4004 * process.c: Improve commentary for adaptive read buffering.
4005
3d031334
SM
40062005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
4007
4008 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
4009 if available.
4010
16d2e704
JD
40112005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4012
5aa6db57
SM
4013 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
4014 New functions for popping down menus on C-g.
16d2e704
JD
4015 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
4016
4017 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
4018 non-static.
4019
9fed2905 4020 * config.in: Add HAVE_CANCELMENUTRACKING.
16d2e704 4021
b6cc2ad0
EZ
40222005-06-06 Eli Zaretskii <eliz@gnu.org>
4023
9a1505e9 4024 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
b6cc2ad0 4025
5aa6db57 4026 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
b6cc2ad0
EZ
4027
4028 * w32proc.c (RVA_TO_PTR): New macro.
4029
4030 * w32heap.c (RVA_TO_PTR): No need to #undef now.
4031
4032 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
4033 Depend on w32heap.h.
4034
24e55feb
LT
40352005-06-06 Luc Teirlinck <teirllm@auburn.edu>
4036
4037 * keyboard.c (command_loop_1): Update Vthis_original_command.
4038
ce6e10af
RS
40392005-06-06 Richard M. Stallman <rms@gnu.org>
4040
4041 * xmenu.c (popup_get_selection): Undo previous change.
4042
c476bcb0
JL
40432005-06-06 Juri Linkov <juri@jurta.org>
4044
4045 * xdisp.c (Qno_break_space): New variable.
4046 (syms_of_xdisp): Initialize it.
4047 (get_next_display_element): Add no-break space and soft hypen
4048 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
4049 Use `no-break-space' face for no-break spaces.
4050
5494d7bc
JD
40512005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4052
4053 * window.c (delete_window): Handle the case where a h/vchild has
4054 a h/vchild.
4055
a0c38328
EZ
40562005-06-05 Eli Zaretskii <eliz@gnu.org>
4057
4058 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
4059 call to pfn_setsockopt, cast optval to `const char *'.
4060
91018229
EZ
40612005-06-04 Eli Zaretskii <eliz@gnu.org>
4062
1a8fb426
EZ
4063 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
4064 (open_unc_volume): Cast return value of map_w32_filename, to avoid
4065 compiler warnings.
4066
b6f0a397
EZ
4067 * s/ms-w32.h (fileno): Don't define if already defined.
4068
17a7c5c2 4069 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
d01a9710 4070
91018229
EZ
4071 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
4072
196ac78c
RS
40732005-06-04 Richard M. Stallman <rms@gnu.org>
4074
4075 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
4076
b8987570
JD
40772005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4078
4079 * macmenu.c (cleanup_popup_menu): New function.
2d4713aa 4080 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
b8987570
JD
4081 mac_menu_show Quit:s.
4082 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
4083 a dialog).
4084
555228aa
KS
40852005-06-04 Kim F. Storm <storm@cua.dk>
4086
4087 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
4088
4089 * callproc.c (Fcall_process): Don't use alloca to gradually
4090 increase size of buf, as it effectively uses twice the necessary
4091 space on the stack. Instead, pre-allocate buf of full size, and
4092 gradually increase the read size.
4093
4094 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
4095
4096 * eval.c (unbind_to): Preserve value of Vquit_flag.
4097
4098 * xterm.c (handle_one_xevent): Also ignore mouse motion just
4099 before a button release event.
4100
6312e5f7
JB
41012005-06-03 Juanma Barranquero <lekktu@gmail.com>
4102
4103 * xfaces.c (Finternal_lisp_face_equal_p): Really report
4104 on faces in a frame, if the argument FRAME is non-nil.
4105 Improve argument/docstring consistency.
4106
0493f7be
KS
41072005-06-02 Kim F. Storm <storm@cua.dk>
4108
4109 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
4110 (x_consider_frame_title, Fformat_mode_line): Save offset into
4111 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
4112
89fe657e
KS
41132005-06-01 Kim F. Storm <storm@cua.dk>
4114
4115 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
4116
02a6375c
YM
41172005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4118
4119 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
4120 resolution fields for scalable fonts to 0.
4121
4122 * xfaces.c (build_scalable_font_name): Round pixel size to the
4123 nearest integer.
4124
95d4fad8
KS
41252005-06-01 Kim F. Storm <storm@cua.dk>
4126
4127 * xdisp.c (display_mode_line): Support nested calls to redisplay
4128 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
4129
3c1b433a
SM
41302005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4131
4132 * fileio.c (Finsert_file_contents):
4133 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
4134
13cc7d61
KS
41352005-05-31 Kim F. Storm <storm@cua.dk>
4136
4137 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
4138 (mode_line_noprop_ptr): Rename from frame_title_*.
4139 (store_mode_line_noprop_char): Rename from store_frame_title_char.
4140 (store_mode_line_noprop): Rename from store_frame_title.
3c1b433a 4141 (mode_line_target): New enum to specify current output target
13cc7d61
KS
4142 for mode line formatting.
4143 (display_mode_element): Test it rather than frame_title_ptr and
4144 mode_line_string_list to determine where output should go.
4145 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
4146 (Vmode_line_unwind_vector): New variable.
3c1b433a
SM
4147 (format_mode_line_unwind_data, unwind_format_mode_line):
4148 New functions for unwind protection in mode line formatting.
13cc7d61 4149 (x_consider_frame_title): Use them and new local var 'title_start'
5aa6db57
SM
4150 to support nested calls to format-mode-line and redisplay.
4151 Set mode_line_target to MODE_LINE_TITLE.
13cc7d61 4152 (Fformat_mode_line): Use them and new local var 'string_start' to
5aa6db57
SM
4153 support nested calls to format-mode-line and redisplay.
4154 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
95d4fad8 4155 Don't trim trailing dashes.
13cc7d61
KS
4156 (decode_mode_spec): Don't make infinite number of trailing dashes
4157 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
4158 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
4159 mode_line_string_face_prop, and Vmode_line_unwind_vector.
4160 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
4161 Initialize mode_line_target to MODE_LINE_DISPLAY.
4162
c16b1394
RS
41632005-05-29 Richard M. Stallman <rms@gnu.org>
4164
4165 * buffer.c (Fbuffer_local_value): Call indirect_variable.
4166
edfaeb4e
MY
41672005-05-28 Masatake YAMATO <jet@gyve.org>
4168
4169 * xdisp.c (note_mode_line_or_margin_highlight): Change the
4170 pointer to a hand cursor when hoovering over a mouse-face.
4171
7cf49add
KH
41722005-05-27 Kenichi Handa <handa@m17n.org>
4173
4174 * xterm.c (x_encode_char): Call check_ccl_update in advance.
4175
4176 * ccl.c: Now an element of Vccl_program_table is a vector of
4177 length 4, not 3.
3c1b433a
SM
4178 (ccl_get_compiled_code): New arg idx. Caller changed.
4179 Adjust for the change of Vccl_program_table.
4180 (setup_ccl_program): Adjust for the change of Vccl_program_table.
7cf49add
KH
4181 (check_ccl_update): New function.
4182 (Fregister_ccl_program): Use ASET to set an element of a vector.
4183 Adjusted for the change of Vccl_program_table.
4184
4185 * ccl.h (struct ccl_program): New member idx.
4186 (check_ccl_update): Extern it.
4187
5e2ad10b
JB
41882005-05-27 Juanma Barranquero <lekktu@gmail.com>
4189
3c1b433a 4190 * image.c (Vimage_library_alist): Move from image.el.
d5e1a786
JB
4191 (syms_of_image): Defvar it.
4192 (lookup_image_type): Use it.
4193
5e2ad10b
JB
4194 * buffer.c (Fbuffer_local_value): Make argument name match its use
4195 in docstring.
4196
6e604a9b
JB
41972005-05-26 Juanma Barranquero <lekktu@gmail.com>
4198
4199 * keyboard.c (Frecursive_edit): Fix typo in docstring.
4200 (Fposn_at_x_y): Make argument name match its use in docstring.
4201
59244a3f
LK
42022005-05-26 Lute Kamstra <lute@gnu.org>
4203
4204 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
4205
55ce5058
MY
42062005-05-24 Masatake YAMATO <jet@gyve.org>
4207
4208 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
4209 as loop sentinels.
4210
cb5db137
NR
42112005-05-24 Nick Roberts <nickrob@snap.net.nz>
4212
4213 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
4214 select frame title ("Question"/"Information").
4215 (xdialog_show): Use it.
4216
13dcfc35
NR
4217 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
4218
4219 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
4220
d3393daa
NR
4221 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
4222 a third argument (Qnil).
4223
4224 * lisp.h: x-popup-dialog can have three arguments.
cb5db137
NR
4225
4226 * editfns.c (Fmessage_box): Use "Information" for frame title.
4227
71d4fba1
TTN
42282005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
4229
4230 * termcap.c [VMS]: Include <starlet.h>.
4231
359e4563
MY
42322005-05-23 Masatake YAMATO <jet@gyve.org>
4233
6e604a9b
JB
4234 * xdisp.c (note_mode_line_or_margin_highlight): Add code
4235 for mouse-face. Change the type of the first argument from `window'
4236 to `Lisp_Object'.
359e4563
MY
4237 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
4238 window instead of w.
4239
edceb51c
AS
42402005-05-22 Andreas Schwab <schwab@suse.de>
4241
41c4895c 4242 * process.c (send_process): Move misplaced volatile.
edceb51c 4243
5c213fcc
RS
42442005-05-21 Richard M. Stallman <rms@gnu.org>
4245
4246 * xdisp.c (display_mode_element): If we're processing a list and
4247 padding is specified, put it after the last element.
4248
aa4060b9
EZ
42492005-05-21 Eli Zaretskii <eliz@gnu.org>
4250
4251 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
4252 "superroot" on DOS_NT systems.
4253
a2c9aee6
EZ
42542005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
4255
4256 * process.c (send_process): Restore the SIGPIPE handler if we
4257 catch a SIGPIPE.
4258
09e8eb5b
JB
42592005-05-20 Juanma Barranquero <lekktu@gmail.com>
4260
4261 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
4262 misleading comments).
4263 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
4264
f3fbdb1f
LK
42652005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
4266
4267 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
4268 Correct the right value.
4269
639ec765
NR
42702005-05-19 Nick Roberts <nickrob@snap.net.nz>
4271
240d926e 4272 * keyboard.c (syms_of_keyboard): Remove Lisp variables
639ec765
NR
4273 post-command-idle-hook and post-command-idle-delay.
4274 (command_loop_1): Don't try to execute post-command-idle-hook.
4275
03d42907
KS
42762005-05-16 Kim F. Storm <storm@cua.dk>
4277
1cb83e13
KS
4278 * xdisp.c (handle_display_prop): Handle empty replacement.
4279 (handle_single_display_spec): Return -1 for empty replacement.
4280
4281 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
4282
03d42907
KS
4283 * .gdbinit (pitx): Print more info about iterator.
4284
0da46b6e
AS
42852005-05-16 Andreas Schwab <schwab@suse.de>
4286
3c1b433a 4287 * unexmacosx.c (unexec_realloc): Move declarations before statements.
0da46b6e 4288
d06ba294
RS
42892005-05-14 Richard M. Stallman <rms@gnu.org>
4290
4291 * xdisp.c (message3): Call cancel_echoing.
4292
4293 * alloc.c (Fmemory_full_p): New function.
4294 (syms_of_alloc): defsubr it.
4295
4296 * process.c (send_process_trap): Unblock SIGPIPE.
4297 (send_process): Reset SIGPIPE handler before reporting error.
4298
90713743
NR
42992005-05-14 Nick Roberts <nickrob@snap.net.nz>
4300
4301 * emacs.c (syms_of_emacs): Fix doc string for system-type.
4302
68780e2a
RS
43032005-05-13 Richard M. Stallman <rms@gnu.org>
4304
4305 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
4306 (Finsert_file_contents): If we read 0 bytes from a special file,
4307 unlock the visited file if we locked it.
4308 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
03d42907 4309 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
68780e2a 4310
5063dbbf
YM
43112005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4312
4313 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
4314
3c1b433a
SM
4315 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
4316 Regard toolkit scroll bar thumb drag events as squeezable and prevent
5063dbbf
YM
4317 redisplay from being paused by them.
4318
4319 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
4320 [!MAC_OSX] (target_ticks): Remove variable.
4321 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
4322 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
4323 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3c1b433a 4324 event occurs before timeout, behave as if the function were interrupted.
5063dbbf
YM
4325 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
4326 handling using Time Manager routines.
3c1b433a
SM
4327 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
4328 New variables.
5063dbbf
YM
4329 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
4330 (setitimer): New functions.
4331
4332 * macfns.c, macmenu.c: Don't include signal.h.
4333
4334 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
4335 Rename from get_control_part_bound. All callers changed.
4336 (x_scroll_bar_clear): New function.
4337 (x_clear_frame): Use it.
4338 (XTset_vertical_scroll_bar): Don't call Draw1Control.
4339 (x_scroll_bar_handle_click): Change type of second argument from
4340 int to ControlPartCode.
4341 (check_alarm): Remove declaration.
02a6375c
YM
4342 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
4343 (XTread_socket): Use ControlPartCode instead of SInt16.
5063dbbf
YM
4344
43452005-05-13 Nozomu Ando <nand@mac.com>
4346
4347 * unexmacosx.c: Include assert.h.
4348 (MACOSX_MALLOC_MULT16): New define.
4349 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
4350 ptr is in unexec regions by checking it is multiple of 16.
4351 (unexec_malloc_header_t): New typedef.
4352 (unexec_malloc, unexec_realloc, unexec_free): Store and use
4353 allocated size information in unexec_malloc_header.
4354
d101bf56
RS
43552005-05-10 Richard M. Stallman <rms@gnu.org>
4356
4357 * xterm.c (noinclude): Add #undef.
4358
4359 * image.c, xfns.c, xmenu.c: Don't include signal.h.
4360
2f60660a
JB
43612005-05-09 Juanma Barranquero <lekktu@gmail.com>
4362
f1701e65
JB
4363 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
4364 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
4365 Doc fixes.
4366
2f60660a
JB
4367 * dired.c (Ffile_name_completion): Make argument name
4368 match its use in docstring.
4369
9f29e806
LT
43702005-05-08 Luc Teirlinck <teirllm@auburn.edu>
4371
4372 * eval.c (Fdefvaralias): Remove any pre-existing
4373 variable-documentation property of the alias.
4374
a790bcd4
TTN
43752005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
4376
4377 * xfns.c (start_hourglass): Do nothing when running on a tty.
4378
d5fb8dab
JB
43792005-05-07 Juanma Barranquero <lekktu@gmail.com>
4380
4381 * fns.c (Fchar_table_range): Fix typos in docstring.
4382
7ec64183
SM
43832005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4384
4385 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
4386
6ff95f1d
EZ
43872005-05-06 Eli Zaretskii <eliz@gnu.org>
4388
2c6b25c7
EZ
4389 * lread.c (Flocate_file_internal): Doc fix.
4390
6ff95f1d
EZ
4391 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
4392
17d28d26
YM
43932005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4394
4395 * macselect.c (x_own_selection): Accept Lisp string as result of
4396 selection converter function.
4397 (x_clear_frame_selections): Don't call x-lost-selection-functions
4398 if Emacs is not owner of the selection.
4399 (Vmac_services_selection): Put variable and initialization in
4400 #ifdef MAC_OSX.
4401 (syms_of_macselect) [MAC_OSX]: Set default value of
4402 Vmac_services_selection to PRIMARY.
4403
7ec64183
SM
4404 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
4405 (mac_handle_tool_bar_click): Remove unused function and declaration.
17d28d26
YM
4406 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
4407 (install_scroll_bar_timer, set_scroll_bar_timer)
4408 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
4409 (get_control_part_bound, x_scroll_bar_handle_press)
4410 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
4411 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
4412 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
4413 (scroll_bar_timer_event_posted_p): New variables.
4414 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
4415 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
4416 (x_scroll_bar_create): Set control reference with NewControl.
7ec64183
SM
4417 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
4418 Initialize track_top and track_height to nil.
4419 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
4420 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
17d28d26
YM
4421 (XTset_vertical_scroll_bar): Don't make space between scroll bar
4422 and associated window.
4423 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
4424 from window config.
7ec64183
SM
4425 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
4426 Set track_top and track_height to nil when scroll bar size is changed.
17d28d26
YM
4427 Recalculate them if they are nil.
4428 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
4429 clicked control is a scroll bar.
4430 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
4431 event handler functions. Don't add modifiers to scroll bar click
7ec64183 4432 events. Call scroll bar release handler when window is deactivated.
17d28d26 4433 (mac_initialize): Remove unused code for X toolkit.
7ec64183
SM
4434 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
4435 Initialize Vx_toolkit_scroll_bars to nil.
17d28d26 4436
7ec64183
SM
4437 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
4438 New members track_top and track_height.
17d28d26
YM
4439
4440 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
4441 init_process when including sys/select.h.
4442
643b4cf5
LT
44432005-05-05 Luc Teirlinck <teirllm@auburn.edu>
4444
4445 * eval.c (Fdefvaralias): Doc fix.
4446
4447 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
4448
99bda128
KS
44492005-05-05 Kim F. Storm <storm@cua.dk>
4450
4451 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
4452 default value.
4453 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
4454 Fix type of cursor-in-non-selected-windows.
4455
3a3563e9
JD
44562005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4457
4458 * mac.c: #undef init_process so not to conflict with system headers.
4459
0124c5bd
RS
44602005-05-02 Richard M. Stallman <rms@gnu.org>
4461
4462 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
4463
4464 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
4465
4466 * xdisp.c (Vcursor_in_non_selected_windows)
4467 (Qcursor_in_non_selected_windows): Vars deleted.
4468 (syms_of_xdisp): Don't initialize them.
4469 (get_window_cursor_type): Use cursor_in_non_selected_windows
4470 buffer slot.
4471
4b3f161f
KS
44722005-05-02 Kim F. Storm <storm@cua.dk>
4473
e40527dc
KS
4474 * macros.c (executing_kbd_macro_index): Rename from
4475 executing_macro_index. All uses changed.
4476 (executing_kbd_macro_iterations): Rename from
4477 executing_macro_iterations. All uses changed.
4478 (executing_kbd_macro): Rename from executing_macro.
4479 All uses changed.
4480 (syms_of_macros): Rename Lisp var executing-macro-index to
4481 executing-kbd-macro-index.
4482
4b3f161f
KS
4483 * xdisp.c (move_it_in_display_line_to): Fix last change.
4484
4d49edf6
LT
44852005-05-01 Luc Teirlinck <teirllm@auburn.edu>
4486
f6b1b15a
LT
4487 * xmenu.c (Fx_popup_menu): Doc fix.
4488
4d49edf6
LT
4489 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
4490
4a766fe6
JR
44912005-05-02 Jason Rumney <jasonr@gnu.org>
4492
4493 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
4494
c924d3ff
TTN
44952005-05-02 Nozomu Ando <nand@mac.com>
4496
4497 * sysselect.h: Fix typo.
4498
b161ea4e 44992005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 4500
b161ea4e
NR
4501 * charset.c (Fchars_in_region): Remove as obsolete.
4502
d37e919d 45032005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
4504
4505 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7ec64183 4506 TO_CHARPOS. This may happen if last glyphs was an image or stretch
b161ea4e 4507 glyph.
5c2e5a5e 4508
bec0b768
LT
45092005-05-01 Luc Teirlinck <teirllm@auburn.edu>
4510
4511 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
4512
ebbfa918
RS
45132005-05-01 Richard M. Stallman <rms@gnu.org>
4514
4515 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
4516 If user cancels the menu, quit unless FOR_CLICK.
4517
7ec64183 4518 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
ebbfa918
RS
4519 All uses changed.
4520 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
4521 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
4522 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
4523 * commands.h (Vexecuting_kbd_macro): Likewise.
4524
a72c2d97
TTN
45252005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
4526
4527 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
4528
7e995a23
RS
45292005-04-30 Richard M. Stallman <rms@gnu.org>
4530
4531 * fileio.c (Ffind_file_name_handler): Handle the `operations'
4532 property of the file name handler.
4533 (Qoperations): New variable.
4534 (syms_of_fileio): Initialize and staticpro it.
4535
4536 * xdisp.c (set_message_1): Delete xassert.
4537
7a92caf8
YM
45382005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4539
7ec64183 4540 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7a92caf8
YM
4541
4542 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
4543
4544 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
4545 before/after including Carbon.h if there is a working mktime.
4546
5ae91803
KS
45472005-04-28 Kim F. Storm <storm@cua.dk>
4548
4549 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
4550 Fix cyclic alias check. If alias loop is detected, signal
4551 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
4552
d79b6c21
LK
45532005-04-28 Lute Kamstra <lute@gnu.org>
4554
4555 * eval.c (do_autoload): Record only autoloads in the autoload
4556 property of symbols.
4557
8c75afbf
NR
45582005-04-28 Nick Roberts <nickrob@snap.net.nz>
4559
4560 * emacs.c (USAGE1): Add --basic-display and --quick options.
4561
832e294f
KS
45622005-04-27 Kim F. Storm <storm@cua.dk>
4563
4564 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
4565
f03f317a
RS
45662005-04-26 Richard M. Stallman <rms@gnu.org>
4567
c019856e
RS
4568 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
4569 (syms_of_window): Doc fixes.
4570
f03f317a
RS
4571 * indent.c (Fvertical_motion): Undo previous change.
4572
38f60cd9
KH
45732005-04-26 Kenichi Handa <handa@m17n.org>
4574
4575 * fns.c (char_table_range): New function.
4576 (Fchar_table_range): Signal an error if characters in the range
4577 have inconsistent values. Don't check the parent.
4578
87ede5a1
KH
45792005-04-25 Kenichi Handa <handa@m17n.org>
4580
4581 * fontset.c (fontset_set): Fix previous change.
4582
a6390474
RS
45832005-04-24 Richard M. Stallman <rms@gnu.org>
4584
4585 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
4586
7fce7dfe
EZ
45872005-04-24 Eli Zaretskii <eliz@gnu.org>
4588
cf1982d9
EZ
4589 * regex.c (re_search_2, re_match_2_internal): Convert second arg
4590 of RE_TRANSLATE to int, to shut up GCC warnings.
4591
7fce7dfe
EZ
4592 * fileio.c (Fcopy_file): Doc fix.
4593 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
4594 not needed.
4595
49ed33c7
YM
45962005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4597
4598 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
4599 (SOME_MACHINE_OBJECTS): Likewise.
4600 (mac.o): Depend on ccl.h.
4601 (macselect.o): New target.
4602
7ec64183
SM
4603 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
4604 Call syms_of_macselect.
49ed33c7
YM
4605
4606 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
4607
7ec64183 4608 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
49ed33c7
YM
4609 (QCLIPBOARD): Remove variable.
4610 (syms_of_mac): Don't initialize it.
4611 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
4612 Remove functions.
4613 (syms_of_mac): Don't defsubr them.
4614 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
4615 (QHFS_plus_D, QHFS_plus_C): New variables.
4616 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
4617 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
4618 (cfstring_create_normalized): New functions.
4619 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
4620 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4621
7ec64183
SM
4622 * macterm.c (handling_window_update, terminate_flag):
4623 Remove variables.
4624 (do_window_update, do_ae_quit_application, XTread_socket):
4625 Don't use them.
49ed33c7
YM
4626 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
4627 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
4628 (init_service_handler): Move to macselect.c. Remove declarations.
4629 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
4630 (Qapplication, Qabout): New variables.
4631 (syms_of_mac): Initialize them.
4632 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
4633 (Qperform): New variables.
4634 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 4635 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
4636 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
4637 (mac_store_application_menu_event, init_menu_bar): New functions.
4638 [USE_CARBON_EVENTS] (mac_handle_command_event)
4639 (init_command_handler): New functions.
4640 (mac_handle_window_event): Return noErr on window update event.
4641 (do_ae_quit_application): Call mac_store_application_menu_event.
4642 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
4643 and init_menu_bar.
4644
4645 * macterm.h (x_clear_frame_selections): Add extern.
4646
4647 * macselect.c: New file for selection processing on Mac OS.
4648
469bc679
RS
46492005-04-23 Richard M. Stallman <rms@gnu.org>
4650
4651 * fileio.c (Fcopy_file): New arg MUSTBENEW.
4652 (Frename_file): Pass new arg to Fcopy_file.
4653
4654 * window.c (window_size_fixed): Variable deleted.
4655 (syms_of_window): Initialize window-size-fixed to nil.
4656 But don't DEFVAR window_size_fixed.
4657
d379c558
AS
46582005-04-23 Andreas Schwab <schwab@suse.de>
4659
4660 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
4661 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
4662 use lib64 instead of lib.
4663 (_LP64) [_ARCH_PPC64]: Define if not defined.
4664
007d105b
TTN
46652005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
4666
4667 * s/ms-w32.h (HAVE_PWD_H): Define.
4668
b9c15916
KH
46692005-04-22 Kenichi Handa <handa@m17n.org>
4670
4671 * fns.c (copy_sub_char_table): Explicitly copy the default value
4672 of the sub-chartable.
4673
4674 * fontset.c (fontset_set): When a sub-chartable is created,
4675 explicitly sets the defalt value.
4676
1ba52906
KS
46772005-04-22 Kim F. Storm <storm@cua.dk>
4678
4679 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
4680 (Fsafe_plist_get): Rename to Fplist_get.
4681 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
4682 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
4683
4684 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
4685
4686 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
4687 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4688 Use Fplist_get instead of Fsafe_plist_get.
4689
4690 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
4691
e235145c
MB
46922005-04-21 Miles Bader <miles@gnu.org>
4693
4694 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
4695
766c5349
TTN
46962005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
4697
c164a7e6
TTN
4698 * sysdep.c: Remove reference to defunct vms-pwd.h.
4699 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
4700 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
4701
766c5349
TTN
4702 * config.in: Regenerate.
4703
2b048bf5
KH
47042005-04-20 Kenichi Handa <handa@m17n.org>
4705
4706 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
4707 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
4708 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
4709
4710 * alloc.c (make_sub_char_table): Argument changed to initial
4711 value of the slots.
4712
4713 * data.c (Faref): Handle special slots used as default values of
4714 ascii, eight-bit-control, eight-bit-control. Don't ignore a
4715 default value set for a group of characters.
4716 (Faset): Signal an error if IDXVAL is not a valid character code.
4717 Make a sub-chartable with correct initial value.
4718
4719 * fns.c (Fset_char_table_range): Don't set slots used as default
7ec64183
SM
4720 values for ascii, eight-bit-control, eight-bit-graphic.
4721 Don't call Faref with charset-id.
2b048bf5
KH
4722 (Fset_char_table_default): Document how to treat normal character
4723 argument. Handle special slots used as default values of ascii,
4724 eight-bit-control, eight-bit-control. Make a sub chartable if
4725 necessary.
4726
b0a35939
KH
47272005-04-20 Kenichi Handa <handa@m17n.org>
4728
4729 * search.c (boyer_moore): Fix previous change.
4730
98dde726
KS
47312005-04-19 Kim F. Storm <storm@cua.dk>
4732
4733 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
4734 face unless last visible char and first invisible char have the
4735 same face. Also use default face if saved_face_id is undefined.
4736
327a3376
YM
47372005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4738
4739 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
4740 `full_name'.
4741 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
4742 mac_scriptcode member.
4743
4744 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
4745 (syms_of_mac): Don't initialize them.
4746 (Vmac_charset_info_alist): New variable.
4747 (syms_of_mac): Defvar it.
4748 (create_text_encoding_info_alist): New function.
4749 (decode_mac_font_name, mac_to_x_fontname)
4750 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
4751 code the correspondence among XLFD charsets, Mac script codes, and
4752 Emacs coding systems. Use Vmac_charset_info_alist and result of
4753 create_text_encoding_info_alist instead.
4754 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
4755 routines also on Mac OS Classic.
7ec64183
SM
4756 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
4757 Use add_font_name_table_entry.
327a3376
YM
4758 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
4759 specified. Derive unspecified scalable fields from specified one.
4760 (x_list_fonts): Consider Valternate_fontname_alist.
4761 (kDefaultFontSize): Change value from 9 to 12.
4762 (XLoadQueryFont): Get decoded font family, font face, and charset
4763 from x_font_name_to_mac_font_name. Set full name of loaded font.
4764 (mac_unload_font): Free `full_name' member.
4765 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
4766 NULL. Copy full_name member of struct MacFontStruct to that of
4767 struct font_info.
4768
d0636839
KS
47692005-04-19 Kim F. Storm <storm@cua.dk>
4770
5827e9d4
KS
4771 * xdisp.c (handle_stop): Set saved_face_id to current face if
4772 selective_display_ellipsis_p so ellipsis will be shown in same
4773 face as preceding text.
4774 (setup_for_ellipsis): Don't set saved_face_id here.
4775 (next_element_from_display_vector): Default to saved_face_id.
4776
d0636839
KS
4777 * fns.c (Fsafe_get): New function.
4778 (syms_of_fns): Defsubr it.
4779
4780 * lisp.h (Fsafe_get): EXFUN it.
4781
4782 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
4783 loops in case of bad face property lists. Limit number of face
4784 alias lookups to 10 (in case of face alias loops).
4785
e5c78c9d
KS
47862005-04-18 Kim F. Storm <storm@cua.dk>
4787
4788 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
4789 It replaces the corresponding member from struct window, as a
4790 window may now show multiple overlay arrows.
4791 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
4792
4793 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
4794 Compare overlay_arrow_bitmap than overlay_arrow_p members.
4795
4796 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
4797 rather than from window.
4798 (update_window_fringes): Compare overlay_arrow_bitmap rather than
4799 overlay_arrow_p members.
4800 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
4801 if not default.
4802
4803 * window.h (struct window): Remove member overlay_arrow_bitmap.
4804
4805 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
4806
4807 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
4808 Calls changed. Don't check for overlay-arrow-bitmap property here.
4809 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
4810 fringe is present, return Lisp integer for bitmap (or -1 for default).
4811 Fix value of overlay-arrow-bitmap property to be a symbol, use
4812 lookup_fringe_bitmap to parse it.
4813 (display_line): Change call to overlay_arrow_at_row. Store integer
4814 return value as overlay bitmap in row rather than window.
4815 Only show overlay arrow if row displays text, or if no other overlay
4816 arrow is seen in window (if overlay marker is at point-max).
4817
7d603e3f
TTN
48182005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
4819
4820 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
4821
9942fa0c
LK
48222005-04-18 Lute Kamstra <lute@gnu.org>
4823
4824 * lread.c (Vloads_in_progress): Static.
4825 * fns.c (Vloads_in_progress): Remove extern.
4826 (load_in_progress): Add extern.
4827 (Frequire): Use load_in_progress instead of Vloads_in_progress.
4828
999cdb8f
TTN
48292005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
4830
4831 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
4832
3f4413f8
YM
48332005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4834
4835 * macterm.c (XTread_socket): Don't beep on keyboard input even if
4836 no frame is visible.
4837
60ec7b7e
DN
48382005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4839
4840 * term.c (struct keys): Add support for shifted keys.
4841
a8a1c0ee
RS
48422005-04-16 Richard M. Stallman <rms@gnu.org>
4843
4844 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
4845 (set_message): Call with_echo_area_buffer with WHICH = 0.
4846 (set_message_1): Erase the echo area buffer first thing.
4847 (echo_area_display): Don't clear echo_message_buffer.
4848
f3cf04d3
YM
48492005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4850
4851 * Makefile.in (mac.o): Depend on charset.h and coding.h.
4852
4853 * mac.c: Include charset.h and coding.h.
4854 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7ec64183 4855 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
f3cf04d3
YM
4856 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
4857
4858 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
4859
4860 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
4861
4862 * macterm.c (x_autoselect_window_p): Remove variable.
4863 (last_window): New variable.
7ec64183
SM
4864 (XTreassert_line_highlight, x_change_line_highlight):
4865 Remove declarations.
f3cf04d3
YM
4866 (mac_focus_changed, x_detect_focus_change): New functions and
4867 declarations.
4868 (XTextExtents16, front_emacs_window): Remove function.
4869 (mac_focus_frame): New function.
4870 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
4871 (mac_check_for_quit_char): Use it instead of front_emacs_window.
4872 (x_scroll_bar_report_motion): Obtain window from control owner.
4873 (x_make_frame_invisible): Set window manager size hint.
4874 (do_mouse_moved): Remove function.
4875 (XTread_socket): Move its contents here. Generate select-window
4876 event on mouse movement if needed. Use x_detect_focus_change on
4877 activate/deactivate events. Don't deiconify frame or invalidate
7ec64183
SM
4878 window rectangle when dnd items are dropped.
4879 Don't activate/deactivate root control.
f3cf04d3
YM
4880 (frame_highlight, frame_unhighlight): Activate/deactivate root
4881 control here.
4882 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
4883
4884 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
4885 New extern.
4886
9e5b2858
LT
48872005-04-15 Luc Teirlinck <teirllm@auburn.edu>
4888
4889 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
4890 (lisp): Use it.
4891 (SOME_MACHINE_LISP): Add tooltip.
4892
42c6741e
YM
48932005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4894
7ec64183
SM
4895 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
4896 Don't include TextEncodingConverter.h.
42c6741e
YM
4897 (mac_system_script_code, Vmac_system_locale): New variables.
4898 (syms_of_mac): Defvar them.
4899 (mac_get_system_locale): New function.
4900
7ec64183
SM
4901 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
4902 Use ENCODE_SYSTEM to encode title bar string.
42c6741e 4903 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7ec64183
SM
4904 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
4905 Use CFStringGetSystemEncoding to get system default string encoding.
42c6741e
YM
4906
4907 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
4908 TextEncodingConverter.h.
4909
0614c575
ST
49102005-04-13 Steven Tamm <steventamm@mac.com>
4911
7e26f91b
KS
4912 * macterm.c (syms_of_macterm): Remove redundant definition of
4913 mac-pass-control-to-system.
0614c575 4914
203eb0aa
SM
49152005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4916
4917 * window.c (Fset_window_configuration): Be careful when you choose
4918 among several possible points for the new_current_buffer.
4919
a56e6111
YM
49202005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4921
4922 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
4923 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
4924 (Qlanguage_change) [MAC_OS]: New variable.
4925 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 4926 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
4927
4928 * macterm.c (mac_keyboard_text_encoding)
4929 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
4930 (XTread_socket): Store language-change event if keyboard script change
4931 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 4932 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 4933
7e26f91b 4934 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 4935
6695c528
RS
49362005-04-10 Richard M. Stallman <rms@gnu.org>
4937
4938 * emacs.c (standard_args): Rename --bare-bones to --quick.
4939 Add -D aka --basic-display.
4940
4941 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
4942
18e2d91f
RS
49432005-04-09 Richard M. Stallman <rms@gnu.org>
4944
4945 * keymap.c (where_is_internal): Convert a string used as event type
4946 into "(any string)".
4947
4948 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
4949 * fns.c (Vloads_in_progress): Add extern.
4950 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
4951
49522005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
4953
4954 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
4955
1cf21850
LK
49562005-04-09 Lute Kamstra <lute@gnu.org>
4957
4958 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
4959 within the accessible part of the buffer.
4960
bfd93240
KS
49612005-04-09 Kim F. Storm <storm@cua.dk>
4962
4963 * lread.c (readevalloop): Add args START and END as region in
4964 current buffer to read. Callers changed.
4965 When specified, narrow to this region only when reading,
4966 not during eval. Track next point to read from during eval.
4967 Also restore point to "real" buffer position before eval.
4968 (Feval_region): Don't save excursion and restriction here, and
4969 don't narrow to region. Just pass region to readevalloop.
4970 Note: Point is now preserved even when PRINTFLAG is nil.
4971
9ba27690
KS
49722005-04-08 Kim F. Storm <storm@cua.dk>
4973
4974 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
4975
73f0d996
KS
49762005-04-06 Kim F. Storm <storm@cua.dk>
4977
4978 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
4979
369f76bb
YM
49802005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4981
4982 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
4983 (Fmac_get_preference): Doc fix.
4984
203eb0aa
SM
4985 * macfns.c (Fx_create_frame, x_create_tip_frame):
4986 Add "fontset-mac" to fallback font/fontsets.
369f76bb 4987
2ba613a6
KS
49882005-04-04 Kim F. Storm <storm@cua.dk>
4989
4d5ddddc
KS
4990 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
4991
2ba613a6
KS
4992 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
4993 Call it again after autoload.
4994
1673df2e
JD
49952005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4996
4997 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
4998 mallopt.
4999
5000 * ralloc.c (r_alloc_init): Ditto.
5001
41639988
KH
50022005-04-01 Kenichi Handa <handa@m17n.org>
5003
1cf21850
LK
5004 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
5005 (Vascii_eqv_table): Extern them.
41639988
KH
5006
5007 * casetab.c (set_case_table): If standard is nonzero, setup
5008 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
5009
5010 * search.c (looking_at_1): Use current_buffer->case_canon_table,
5011 not DOWNCASE_TABLE.
5012 (string_match_1): Likewise.
5013 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
5014 Vascii_downcase_table.
5015 (fast_string_match_ignore_case): Likewise.
5016 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
5017 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
5018 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
5019 simple_translate.
5020
6ca53601
SM
50212005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5022
5023 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
5024 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
5025 Use XtNtopShadowPixel and XtNbottomShadowPixel.
5026 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
5027 really work and that breaks with some versions of Xaw3d.
5028
fafbb99d 50292005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
5030
5031 * coding.c (syms_of_coding): Fix previous change.
5032
6ca53601
SM
50332005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
5034
5035 * fileio.c (search_embedded_absfilename): Fix last change.
5036
bf762c98
KH
50372005-03-25 Kenichi Handa <handa@m17n.org>
5038
5039 * coding.c (syms_of_coding): Suggest to use set-coding-category in
5040 the docstring of coding-category-list.
5041
f793f885
KS
50422005-03-31 Kim F. Storm <storm@cua.dk>
5043
5044 * keyboard.c (Qmouse_fixup_help_message): New var.
5045 (syms_of_keyboard): Intern and staticpro it.
5046 (show_help_echo): Apply mouse-fixup-help-message to help string.
5047
c364fe19
KS
50482005-03-30 Kim F. Storm <storm@cua.dk>
5049
5050 * xdisp.c (display_line): Allow multiple overlay arrows in window.
5051
c70a4df6
SM
50522005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5053
5054 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
5055 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
5056 (Ffile_name_absolute_p): Use it.
5057 (search_embedded_absfilename): New fun, extracted from
5058 Fsubstitute_in_file_name. Use file_name_absolute_p.
5059 Free the pw data after use.
5060 (Fsubstitute_in_file_name): Use it.
5061 After cutting a prefix, re-check file-name-handler.
5062
6e7d0438
JR
50632005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
5064
6ca53601 5065 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
5066
5067 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
5068 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
5069
65671706
SM
50702005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
5071
5072 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
5073 Use Fexit_minibuffer.
5074 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
5075
0de4dad4
SM
50762005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5077
781da985
SM
5078 * dired.c (Ffile_attributes): Add a missing gcpro.
5079
0de4dad4
SM
5080 * alloc.c (make_number): The arg can be bigger than `int'.
5081 * lisp.h (make_number): Make prototype more precise.
5082
5083 * process.c, dired.c (Vfile_name_coding_system)
5084 (Vdefault_file_name_coding_system):
5085 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
5086 (Vdefault_file_name_coding_system): Remove unused declarations.
5087
ff18668f
JD
50882005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5089
5090 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
5091 if it failed to pop up (Gnome "show pointer on ctrl" option makes
5092 menus fail to pop up).
5093
0de4dad4 50942005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
5095
5096 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 5097 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 5098
8df0ffbe
KS
50992005-03-22 Kim F. Storm <storm@cua.dk>
5100
5101 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
5102 * dispextern.h (lookup_derived_face): Fix prototype.
5103 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
5104
5105 * xdisp.c (handle_single_display_spec): Derive left-fringe and
5106 right-fringe face from fringe face.
5107
5108 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
5109 Derive face from fringe face.
5110
6ca30ba4
JD
51112005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5112
5113 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
5114
d615870a
DK
51152005-03-22 David Kastrup <dak@gnu.org>
5116
5117 * textprop.c (Fnext_char_property_change)
66347da7 5118 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
5119 (Fnext_single_char_property_change)
5120 (Fprevious_single_char_property_change): Check that limit is a
5121 number in strings.
5122 (Fnext_single_char_property_change): Coerce position to integer.
5123 (Fprevious_single_char_property_change): Same here.
5124
32b939ea
TTN
51252005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
5126
5127 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
5128
6027e473
SM
51292005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
5130
5131 * frame.c (Fignore_event): Remove.
5132 (syms_of_frame): Don't defsubr it.
5133
5134 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
5135 redundant `ignore-event'.
5136
730f4d72
EZ
51372005-03-19 Eli Zaretskii <eliz@gnu.org>
5138
5139 * unexec.c (write_segment, unexec): Move these functions to avoid
5140 forward references (which cause errors with "gcc -gcoff").
5141
c7f6afd5
JD
51422005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5143
6027e473 5144 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 5145 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 5146
c7f6afd5
JD
5147 * xrdb.c (x_load_resources): Use different char *helv when I18N
5148 is present.
5149
db328182
KH
51502005-03-17 Kenichi Handa <handa@m17n.org>
5151
66347da7 5152 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 5153
211f2210
SM
51542005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5155
5156 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
5157 Use xic_create_fontsetname even for non-Motif menus.
5158 Don't forget to free the fontsetname.
5159
5160 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
5161
c7bd5d57
RS
51622005-03-17 Richard M. Stallman <rms@gnu.org>
5163
5164 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
5165
5166 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
5167 (Fmake_symbolic_link): Use G to read the new file name.
5168
5169 * callint.c (Finteractive): Document G option.
5170 (Fcall_interactively): Implement G option.
5171
5172 * buffer.c (buffer_lisp_local_variables): New function,
5173 broken out from Fbuffer_local_variables.
5174 (clone_per_buffer_values): Use buffer_lisp_local_variables.
5175
888953f1
SM
51762005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5177
3c916d65
SM
5178 * xfns.c (xic_create_fontsetname): Add `motif' argument.
5179 Always return a freshly allocated string.
5180 (xic_create_xfontset): Adjust call.
5181
5182 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
5183 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
5184 (dump_realized_face): Fix warning.
5185
9f9e5275
SM
5186 * emacs.c (Fkill_emacs): YAILOM.
5187
888953f1
SM
5188 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
5189
48502d68
YM
51902005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5191
5192 * mac.c (HASHKEY_TERMINAL): Remove.
5193 (HASHKEY_MAX_NID): New macro.
5194 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
5195 argument.
888953f1 5196 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
5197 (xrm_create_database, xrm_q_put_resource)
5198 (xrm_merge_string_database, xrm_q_get_resource_1)
5199 (xrm_q_get_resource): Change resource database representation so
5200 that it may not use multiple hash tables for a single database.
5201 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
5202
d5161e8c
SM
52032005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
5204
11a646cd
SM
5205 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
5206
5207 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
5208 locale-coding-system, as was already done for WINDOWSNT.
5209
d5161e8c
SM
5210 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
5211 translation for chars in the 0-255 range.
5212
568b6e41
LK
52132005-03-16 Lute Kamstra <lute@gnu.org>
5214
5215 * floatfns.c (Ffloor): Doc fix.
5216
469fb3cf
YM
52172005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5218
5219 * mac.c: Include macterm.h instead of directly including Carbon.h.
5220 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
5221 (Qarray, Qdictionary): New variables.
5222 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
5223 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
5224 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
5225 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
5226 in callback for CFDictionaryApplyFunction.
5227 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
5228 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
5229 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
5230 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
5231 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
5232 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
5233 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 5234 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
5235 (parse_binding, parse_component, parse_resource_name, parse_value)
5236 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
5237 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
5238 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
5239 New functions.
469fb3cf
YM
5240
5241 * macfns.c (mac_get_rdb_resource): Remove function.
5242 (x_get_string_resource): Use xrm_get_resource.
5243
5244 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
5245
5246 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
5247 name_list_element.
5248 (mac_make_rdb): Create resource database from preferences and
5249 argument string.
5250 (mac_term_init): Save resource database to cddr part of
5251 name_list_element.
5252
5253 * macterm.h (xrm_merge_string_database, xrm_get_resource)
5254 (xrm_get_preference_database): Add externs.
5255 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
5256 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
5257 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
5258
5259 * process.c (init_process): Change `#ifdef DARWIN' to `#if
5260 defined (DARWIN) || defined (MAC_OSX)'
5261
5262 * s/darwin.h (DARWIN): Don't define.
5263
6a3fac90
YM
52642005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5265
5266 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
5267 Remove unused variables.
5268 (syms_of_macfns): Don't initialize them. Likewise for
5269 Qface_set_after_frame_default. Defvar and initialize
5270 Vx_window_horizontal_drag_shape.
5271 (x_set_mouse_color): Change mouse pointer shape.
5272 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 5273 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
5274 (hourglass_started): New function (from xfns.c).
5275 (start_hourglass, cancel_hourglass): Put function body in #ifdef
5276 MAC_OSX.
5277 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
5278 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 5279 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
5280
5281 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
5282 Controls.h. Use ThemeCursor instead of CursHandle.
5283
d5161e8c
SM
5284 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
5285 Remove functions and declarations.
5286 (mac_set_colors): Take argument for saving background color.
5287 All callers changed.
6a3fac90
YM
5288 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
5289 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
5290 background color.
5291 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
5292 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
5293 Use SetThemeCursor.
6a3fac90
YM
5294 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
5295 indicator control to the upper-right corner of the window.
5296 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
5297 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
5298 (do_window_update): Update controls after updating content area.
5299 (mac_handle_window_event): Remove unused extern.
5300 (XTread_socket): Check both control handle and control part code
5301 to determine whether a scroll bar is clicked. Activate/deactivate
5302 root control instead of contained scroll bar controls.
5303 (make_mac_terminal_frame): Use ThemeCursor constants.
5304
d5161e8c
SM
5305 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
5306 New member hourglass_control.
6a3fac90 5307 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 5308 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 5309
a7321976
YM
53102005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5311
5312 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 5313 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
5314 laptops, and fn + `enter' on laptops.
5315
f7b758bd
SM
53162005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5317
5318 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
5319 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
5320 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
5321
5322 * xfns.c (xic_defaut_fontset): New constant.
5323 (xic_create_fontsetname): New function.
5324 Extracted from create_frame_xic. Try to generate a slightly
5325 better fontset.
5326 (xic_create_xfontset): Use it.
5327 (create_frame_xic): Simplify.
5328
dac24db4
SM
53292005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
5330
5331 * fileio.c (Fmake_symbolic_link): Fix last change.
5332
e0402468
RS
53332005-03-11 Richard M. Stallman <rms@gnu.org>
5334
5335 * fileio.c (Frename_file, Fadd_name_to_file)
5336 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
5337 expand the basename of FILE relative to it.
5338
fa815b14
KH
53392005-03-11 Kenichi Handa <handa@m17n.org>
5340
5341 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
5342 before calling setup_coding_system so that autoloading of a coding
5343 system work.
5344
817d354b
JD
53452005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5346
68a505ef
JD
5347 * xfns.c (hourglass_started): New function.
5348
5349 * dispextern.h: Declare hourglass_started.
5350
5351 * keyboard.c (Fexecute_extended_command): Restart hourglass
5352 after call to Fcompleting_read if already started.
5353
817d354b
JD
5354 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
5355 GTK main loop is entered in xterm.c, thus doing the redraw.
5356
b0a6f45c
KS
53572005-03-10 Kim F. Storm <storm@cua.dk>
5358
5359 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
5360
ee5d57b0
KH
53612005-03-08 Kenichi Handa <handa@m17n.org>
5362
5363 * frame.c (x_set_font): Call set_default_ascii_font if an
5364 available font is found.
5365
5366 * fontset.c (set_default_ascii_font): New function.
dac24db4 5367 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
5368
5369 * fontset.h (set_default_ascii_font): Extern it.
5370
f30c4a5c
KS
53712005-03-07 Kim F. Storm <storm@cua.dk>
5372
3fb26a86
KS
5373 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
5374 (clear_image_cache_count): New var.
5375 (redisplay_internal): Don't clear face and image caches in the
5376 middle of redisplay; do it afterwards.
5377
a54595d4
KS
5378 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
5379
f30c4a5c
KS
5380 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
5381 is valid. If not, clear phys_cursor_on_p and return.
5382
3d182f9d
AS
53832005-03-07 Andreas Schwab <schwab@suse.de>
5384
5385 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
5386
85d964de
RS
53872005-03-06 Richard M. Stallman <rms@gnu.org>
5388
5389 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
5390
5391 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
5392 (Feval, Ffuncall): Use CHECK_CONS_LIST.
5393
5394 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
5395
5396 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
5397 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
5398
3ff96c81
JL
53992005-03-05 Juri Linkov <juri@jurta.org>
5400
5401 * emacs.c (USAGE1): Replace Info node name "command arguments"
5402 with "emacs invocation".
5403 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
5404 allow arguments `--color' and `MODE' to be separated by space.
5405 Add --no-blinking-cursor, -nbc.
5406 (standard_args): Add -nbc, --no-blinking-cursor.
5407
64eb0083
TTN
54082005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
5409
5410 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
5411 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
5412 * fileio.c (Fexpand_file_name) [VMS]:
5413 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
5414 * doc.c (munge_doc_file_name) [VMS]: Likewise.
5415 (Fsnarf_documentation): Call munge_doc_file_name.
5416
ad708ae5
TTN
54172005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
5418
5419 * s/vms.h (FILE_SYSTEM_CASE): New macro.
5420 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
5421 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
5422
ba025f6d
YM
54232005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5424
5425 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
5426 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 5427
dac24db4 5428 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
5429
5430 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
5431 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 5432 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
5433 (mac_clear_font_name_table): Move extern to macterm.h.
5434
5435 * macfns.c (install_window_handler): Move extern to macterm.h.
5436 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
5437 valid. Don't check !NILP (dir) because it is already checked with
5438 CHECK_STRING.
5439 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 5440 specifying the default location and obtaining the selected filename.
ba025f6d
YM
5441
5442 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
5443
2313f861 5444 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
5445 are included via Carbon.h.
5446
dac24db4
SM
5447 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
5448 Define USE_CARBON_EVENTS to 1.
2313f861 5449 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
5450 (x_free_frame_resources): Call remove_window_handler for
5451 non-tooltip windows.
5452 [TARGET_API_MAC_CARBON]: Don't include headers that are included
5453 via Carbon.h.
5454 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
5455 (mac_do_receive_dragUPP): New variables.
5456 (mac_handle_service_event, init_service_handler): Put declarations
5457 and definitions in #ifdef MAC_OSX.
5458 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
5459 drag-and-drop handler functions and register them.
5460 (remove_window_handler): New function.
dac24db4
SM
5461 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
5462 Use fsspec_to_posix_pathname.
ba025f6d
YM
5463 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
5464 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
5465 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
5466 Set default cursors.
ba025f6d
YM
5467 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
5468 init_service_handler or init_quit_char_handler.
5469 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
5470
5471 * macterm.h (install_window_handler, remove_window_handler)
5472 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
5473 (mac_clear_font_name_table): New externs.
ad708ae5 5474
c1558952
TTN
54752005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
5476
5477 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
5478 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
5479 (Fexpand_file_name): Likewise.
5480
fa439170
TTN
54812005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
5482
5483 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
5484 no longer special-case VMS. Add bogus return value.
5485
db2dacf6
KS
54862005-03-02 Kim F. Storm <storm@cua.dk>
5487
5488 * dispextern.h (XASSERTS): Define to 0 if not already defined.
5489 (xassert) [!XASSERTS]: Define dummy version.
5490
0870514c
KS
54912005-03-02 Kim F. Storm <storm@cua.dk>
5492
5493 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
5494 Reported by David Kastrup.
5495
6b640092
KS
54962005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
5497
5498 * xdisp.c (get_next_display_element): Fix control and escape
5499 glyph from display vector.
5500
f4a5a485
SM
55012005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
5502
5503 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
5504
85d964de
RS
55052005-02-27 Richard M. Stallman <rms@gnu.org>
5506
5507 * xdisp.c (fast_find_position): Rename END to BEG.
5508 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
5509
6e8db3ea
JD
55102005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5511
f4a5a485 5512 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
5513 gtk_window_resize and x_wm_set_size_hint.
5514
0f465b55
KS
55152005-02-25 Kim F. Storm <storm@cua.dk>
5516
5517 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
5518
5519 * xdisp.c (init_from_display_pos): Don't read past end of
5520 it->overlay_strings array.
5521
d5fb8dab 55222005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
845a78b4
LK
5523
5524 * buffer.c (syms_of_buffer): Fix typo.
5525
b02c3eed
LK
55262005-02-23 Lute Kamstra <lute@gnu.org>
5527
5528 * buffer.c (Foverlay_buffer): Doc fix.
5529
c8500765
KS
55302005-02-22 Kim F. Storm <storm@cua.dk>
5531
b686dd59
KS
5532 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
5533 and symbol keys in alists and hash tables.
5534
c8500765
KS
5535 * xdisp.c (fast_find_position): Fix search for start of overlay.
5536
81c85b53
KS
55372005-02-21 Kim F. Storm <storm@cua.dk>
5538
5539 * window.c (window_scroll_pixel_based): When scrolling backwards,
5540 handle partial visible line at end of window even when we hit PT.
5541
f4a5a485 55422005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
5543
5544 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
5545
0dd5a842
KS
55462005-02-21 Kim F. Storm <storm@cua.dk>
5547
5548 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
5549 I think those asserts are bogus if buffer contains invisible text
5550 or images.
5551
d5fb8dab 55522005-02-21 David Kastrup <dak@gnu.org>
19e05d1f
KS
5553
5554 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
5555
0fba9f25
KS
55562005-02-20 Kim F. Storm <storm@cua.dk>
5557
5558 * xdisp.c (pos_visible_p): Be sure to move to the specified
5559 position. Always get the full ascent / descent of the
5560 corresponding row, to return reliable rtop and rbot values.
5561 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
5562 Must look one character back, as back_to_previous_line_start
5563 returns position after the newline.
5564 (move_it_vertically_backward): Fix heuristic for when to move further
5565 back in case line_height * 2/3 is larger than window height.
5566 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
5567 as it does not do anything anymore. Add arg current_matrix_p to
5568 use current matrix rather than desired matrix when set.
5569 (try_cursor_movement): Don't scroll to make cursor row fully
5570 visible if cursor didn't move. This avoids unexpected recentering
5571 in case of blinking cursor or accepting process output.
5572 Use current matrix to check cursor row visibility.
5573 (redisplay_window): Fix whether to recenter or move to top in case
5574 cursor line is taller than window height.
5575 (find_first_unchanged_at_end_row): Stop search if we reach a row
5576 which not enabled (instead of abort).
5577
b1c2adc3
KS
55782005-02-18 Kim F. Storm <storm@cua.dk>
5579
c2ee48fb
KS
5580 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
5581 to be nil in a :box attribute value list; customize prints that
5582 as lisp value when no box color is specified.
5583
b1c2adc3
KS
5584 * .gdbinit (pitx, pit): Pretty print display iterator.
5585 (prowx, prow): Pretty print glyph row.
5586 (pcursorx, pcursor): Pretty print a window cursor.
5587 (pwinx, pwin): Pretty print struct window.
5588
f102186f
SM
55892005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5590
5591 * alloc.c (BLOCK_BYTES): Harmless typo.
5592
9b516537
AS
55932005-02-17 Andreas Schwab <schwab@suse.de>
5594
5595 * xfns.c (hack_wm_protocols): Use correct type for last parameter
5596 of XGetWindowProperty to avoid aliasing issues.
5597 (Fx_window_property): Likewise.
5598
5599 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 5600 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
5601
5602 * xterm.c (handle_one_xevent): Use union of struct input_event and
5603 struct selection_input_event to avoid aliasing issues.
5604 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
5605
886b1418
KS
56062005-02-17 Kim F. Storm <storm@cua.dk>
5607
5608 * dispextern.h (enum it_method): New enum.
5609 (GET_FROM_*): Its members.
5610 (struct it): Change member method from function pointer to enum.
5611
5612 * xdisp.c (check_it, init_from_display_pos, handle_stop)
5613 (setup_for_ellipsis, handle_single_display_spec)
5614 (handle_composition_prop, next_overlay_string)
5615 (get_overlay_strings, reseat_1, reseat_to_string)
5616 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
5617 (in_display_vector_p, display_line, get_next_display_element):
5618 Change it->method from function pointer to enum.
5619 (get_next_element): New array to map it->method to function.
5620 (get_next_display_element): Use it.
5621 (set_iterator_to_next): Use switch instead of if/else chain.
5622
99ee2c6a 56232005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
5624
5625 * w32select.c: Summary: Thorough rework to implement Unicode
5626 clipboard operations and delayed rendering.
5627
5628 Drop last_clipboard_text and related code, keep track of
f4a5a485 5629 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
5630
5631 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
5632 (clipboard_owner, modifying_clipboard, cfg_coding_system)
5633 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
5634 (current_coding_system, current_requires_encoding)
f4a5a485
SM
5635 (current_num_nls, current_clipboard_type, current_lcid):
5636 New static variables.
52c7f9ee
JR
5637
5638 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
5639 (render, render_all, run_protected, lisp_error_handler)
5640 (owner_callback, create_owner, setup_config)
f4a5a485
SM
5641 (enum_locale_callback, cp_from_locale, coding_from_cp):
5642 New local functions.
52c7f9ee
JR
5643
5644 (term_w32select, globals_of_w32select): New global functions.
5645
5646 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
5647 clipboard_owner instead. Use delayed rendering and provide
5648 all text formats. Provide CF_LOCALE if necessary.
5649
5650 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
5651 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
5652 available. Force DOS line-ends for decoding.
5653
5654 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
5655
5656 (syms_of_w32select): Init and register new variables.
5657
5658 * w32.h: Add prototypes for globals_of_w32select and
5659 term_w32select. Make the neighboring K&R declarations into
5660 prototypes, too.
5661
5662 * emacs.c: Include w32.h to get function prototypes.
5663 (main): Call globals_of_w32select.
5664
886b1418 5665 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
5666
5667 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
5668
86e61586
KS
56692005-02-16 Kim F. Storm <storm@cua.dk>
5670
5671 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
5672 at end of display vector.
5673
6407f07b
RS
56742005-02-15 Richard M. Stallman <rms@gnu.org>
5675
5676 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
5677 for mode and header lines.
5678
5679 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
5680
5681 * keymap.h (describe_map_tree): Change decl.
5682
5683 * keyboard.c (command_loop_1): Always use safe_run_hooks
5684 to run Qdeferred_action_function.
5685
5686 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
5687 (describe_map, describe_vector): Likewise. When it's 1,
5688 don't omit shadowed bindings, instead mark them as shadowed.
5689
5690 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
5691 for describe_map_tree. Pass 1 for MENTION_SHADOW.
5692
5693 * data.c (Fsetq_default): Allow no arg case.
5694
3bb917bf
KH
56952005-02-14 Kenichi Handa <handa@m17n.org>
5696
5697 * coding.c (encode_coding_string): Always return a unibyte string.
5698 If NOCOPY is nonzero and there's no need of encoding, make STR
5699 unibyte directly.
5700
5701 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
5702 multibyte string, signal an error instead of aborting.
5703
e31d908f
DN
57042005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
5705
5706 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
5707
48e029b6
KS
57082005-02-12 Kim F. Storm <storm@cua.dk>
5709
5710 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
5711
c10bb00a
KS
57122005-02-10 Kim F. Storm <storm@cua.dk>
5713
5714 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
5715 if it moves outside window or it doesn't display text.
5716
9ca0f64a
KS
57172005-02-09 Kim F. Storm <storm@cua.dk>
5718
5719 * undo.c (Fprimitive_undo): Check that undo function does not
5720 switch buffer.
5721
b8d6f4af
JD
57222005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5723
5724 * xselect.c (selection_data_to_lisp_data): For the special case
5725 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
5726 (x_property_data_to_lisp, selection_data_to_lisp_data):
5727 Comment update: data must be array of int for format == 32.
b8d6f4af 5728
3419757d
SM
57292005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5730
5731 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
5732
3a441526
JD
57332005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5734
fc34503b
JD
5735 * xfns.c (Fx_change_window_property): Use long array when format is 32.
5736 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
5737 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
5738 (x_set_tool_bar_lines): Check that width and height is greater than
5739 zero before clearing area.
fc34503b
JD
5740
5741 * xselect.c (x_reply_selection_request): Pass long array to
5742 XChangeProperty so that 64 bit longs are handeled correctly.
5743 (x_get_window_property): If format is 32 and long is bigger than 32
5744 bits convert data from XGetWindowProperty from long array to int array.
5745 (lisp_data_to_selection_data): When the input is a vector and the
5746 format is 32, allocate a long array even if long is bigger than 32 bits.
5747 (x_fill_property_data): Use char, short and long as the man page
5748 for XChangeProperty specifies. This way the data returned is OK for
5749 both 32 and 64 bit machines.
5750 (x_handle_dnd_message): Calculate size correctly even for 64 bit
5751 machines.
5752 (Fx_send_client_event): Undo change from 2005-02-05,
5753 x_fill_property_data now handles that case.
5754
3419757d 5755 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
5756 reason for the approach in the code.
5757
82ec225b
KS
57582005-02-07 Kim F. Storm <storm@cua.dk>
5759
5760 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
5761
ba2c991c
RS
57622005-02-06 Richard M. Stallman <rms@gnu.org>
5763
5764 * eval.c (Frun_hook_with_args)
5765 (Frun_hook_with_args_until_success)
5766 (Frun_hook_with_args_until_failure): Doc fixes.
5767
e120ea40
AS
57682005-02-05 Andreas Schwab <schwab@suse.de>
5769
3419757d 5770 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 5771
31f16913
JD
57722005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5773
5774 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
5775 the longs in a XClientMessageEvent correctly when long is 64 bits.
5776
6082a820
EZ
57772005-02-05 Eli Zaretskii <eliz@gnu.org>
5778
5779 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
5780 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
5781
0e95095b
JD
57822005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5783
5784 * xmenu.c (menubar_selection_callback): Force out GTK buffered
5785 events so the menu event comes after them. This is to prevent sit-for
5786 from exiting on buffered events directly after a menu selection,
5787 lisp code for Help => About Emacs uses sit-for.
5788
5789 * gtkutil.c (create_menus): Connect selection-done event instead of
5790 the deactivate event to deactivate_cb. This will make the last
5791 leave event come before the call to deactivate_cb, so the leave
5792 event does not make sit-for exit after a menu selection.
5793
5bb6a3c1
KS
57942005-02-03 Kim F. Storm <storm@cua.dk>
5795
5796 * dispnew.c (build_frame_matrix_from_leaf_window)
5797 [!GLYPH_DEBUG]: Fix xassert.
5798
5799 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
5800
5801 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5802
e9859e26
YM
58032005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5804
5805 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
5806 the compiling OS version.
5807
5808 * macfns.c (x_create_tip_frame): Likewise.
5809
3419757d 5810 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 5811
4e07258f
RS
58122005-02-03 Richard M. Stallman <rms@gnu.org>
5813
5814 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
5815
5816 * xdisp.c (echo_area_display): Clear echo_message_buffer.
5817
5818 * buffer.c (Fbury_buffer): Doc fix.
5819
4a34b529
ST
58202005-02-02 Steven Tamm <steventamm@mac.com>
5821
7e26f91b 5822 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 5823 xassert being uncondition, but predicate is.
7e26f91b 5824 * dispnew.c (update_window): Fix compile error due to
f6c62d96 5825 xassert being uncondition, but predicate is.
4a34b529 5826
d78f30b8
MB
58272005-02-02 Miles Bader <miles@gnu.org>
5828
5829 * dispextern.h (xassert): Enable unconditionally.
5830
b044278d
KS
58312005-02-02 Kim F. Storm <storm@cua.dk>
5832
5833 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
5834
56072160
KH
58352005-02-02 Kenichi Handa <handa@m17n.org>
5836
5837 * casefiddle.c (casify_object): Enable changing characters of
5838 different byte length.
5839 (casify_region): Fix loop condition, args to replace_range_2, and
5840 update opoint_byte.
5841
f4a5a485 5842 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 5843
5e1674c5
KS
58442005-02-01 Kim F. Storm <storm@cua.dk>
5845
5846 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
5847 stack before calling handle_display_prop.
5848
fb89c330
KS
58492005-01-31 Kim F. Storm <storm@cua.dk>
5850
5851 * undo.c (Qapply): New lisp var.
5852 (syms_of_undo): Intern and staticpro it.
5853 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
5854 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
5855
5856 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
5857
7bf72fa6
JH
58582005-01-30 Jesper Harder <harder@phys.au.dk>
5859
a050b1a9
KS
5860 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
5861 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 5862
03c64f2e
LT
58632005-01-29 Luc Teirlinck <teirllm@auburn.edu>
5864
5865 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 5866 Increase value to 3 Meg.
03c64f2e 5867
49b8b5dc
JD
58682005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5869
5870 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
5871 button events are not received otherwise.
5872
5a92a9eb
RS
58732005-01-29 Richard M. Stallman <rms@gnu.org>
5874
5875 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
5876
5877 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
5878
5c243ee4
SM
58792005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
5880
5881 * keymap.c (access_keymap): YAILOM.
5882
caf533af
KS
58832005-01-27 Kim F. Storm <storm@cua.dk>
5884
5885 * xdisp.c (get_phys_cursor_geometry): New function to calculate
5886 phys cursor position and size for hollow cursor. Position is
5887 aligned with get_glyph_string_clip_rect and ensures that a hollow
5888 cursor is shown, even when the actual glyph is not visible.
5889
5890 * dispextern.h (get_phys_cursor_geometry): Add prototype.
5891
5892 * xterm.c (x_clip_to_row): Ensure y >= 0.
5893 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5894
5895 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5896
5897 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
5898
043f7f73
SM
58992005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
5900
5901 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
5902
889f3641
KS
59032005-01-27 Kim F. Storm <storm@cua.dk>
5904
5905 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
5906 glyph, even when row is only partially visible and actual cursor
5907 position is not visible.
5908
29099c2f
RS
59092005-01-24 Richard M. Stallman <rms@gnu.org>
5910
5911 * xterm.c (x_error_quitter): No longer static, and moved after
5912 x_error_handler.
5913
6adb6f01
KS
59142005-01-24 Kim F. Storm <storm@cua.dk>
5915
5916 * xdisp.c (move_it_by_lines): If we move forward after going too
5917 far back, cancel move if end position is same as start position.
5918
4d904fa0
ST
59192005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5920
5921 * dispextern.h (struct glyph_string): New members clip_head and
5922 clip_tail.
6adb6f01 5923
4d904fa0
ST
5924 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
5925 region to the area between clip_head and clip_tail.
5926 (draw_glyphs): Record the area that need to be actually redrawn to
5927 the new variables clip_head and clip_tail when there are
5928 overhangs. Set values of these variables to the corresponding
5929 members in struct glyph_string. Refine x coordinates for
5930 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 5931
4d904fa0
ST
5932 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
5933
5934 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
5935 QDTextBounds.
5936 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 5937 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 5938 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 5939 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 5940
f2417699
KS
59412005-01-24 Kim F. Storm <storm@cua.dk>
5942
6f67f013
KS
5943 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
5944 direction if window height was smaller than next-screen-context-lines.
5945 Now always scroll at least one line in the requested direction.
5946 Ensure that we actually do scroll backwards when requested to do so.
5947
f2417699
KS
5948 * xdisp.c (redisplay_window): Only try to make cursor line fully
5949 visible once (to avoid redisplay loop).
5950
a354b72c
KS
59512005-01-23 Kim F. Storm <storm@cua.dk>
5952
6b3d88f7 5953 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 5954 partially visible rows.
6b3d88f7
KS
5955 (window_scroll_pixel_based): Adapt to that change.
5956
5c20cae2
KS
5957 * window.c (window_scroll_pixel_based): Force moving to next line
5958 if scrolling doesn't move start point, e.g. if looking at tall image.
5959
a354b72c 5960 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
5961 Clear last_height before calling line_bottom_y to get real height.
5962 Fix calculation of y.
a354b72c 5963
d9e7c622
ST
59642005-01-22 Steven Tamm <steventamm@mac.com>
5965
5966 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 5967 (DARWIN): Define.
7e26f91b 5968
d9e7c622
ST
5969 * process.c (init_process): Default process-connection-type to
5970 nil on darwin 6 or less, t if it is 7 or higher. This way the
5971 broken pty behavior is still allowed on darwin 6 for interactive
5972 processes for people that know what they are doing.
5973
d00e399a
KS
59742005-01-22 Kim F. Storm <storm@cua.dk>
5975
5976 * window.c (auto_window_vscroll_p): New boolean.
5977 (syms_of_window): DEFVAR_BOOL it.
5978 (Fpos_visible_in_window_p): Extend return value to include RTOP
5979 and RBOT values if FULLY is nil.
5980 (window_scroll_pixel_based): Adjust vscroll for partially visible
5981 rows if auto_window_vscroll_p is set.
5982 (Fset_window_vscroll): Do nothing if vscroll is not modified.
5983
5984 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
5985 to return number of partially invisible pixels at top and bottom
5986 of the dislay row at POS.
5987
5988 * lisp.h (pos_visible_p): Fix prototype.
5989
f95a20e7
RS
59902005-01-21 Richard M. Stallman <rms@gnu.org>
5991
5992 * fileio.c (Fcopy_file): Doc fix.
5993
eee141ce
JD
59942005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5995
5996 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
5997 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
5998 start of function for older compilers.
5999
6f771c32
RS
60002005-01-20 Richard M. Stallman <rms@gnu.org>
6001
6002 * editfns.c (Fmessage): If arg is "", return "" (as before).
6003
6004 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
6005
6006 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
6007 variable.
6008
a15252fd
ST
60092005-01-20 Steven Tamm <steventamm@mac.com>
6010
043f7f73 6011 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
6012 (init_editfns): Assign new variable operating-system-release
6013 based on call to uname if available.
043f7f73 6014 (get_operating_system_release): Add function to
d00e399a 6015 allow c-level access to operating system release.
a15252fd
ST
6016
6017 * config.h: Regenerated.
6018
043f7f73
SM
6019 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
6020 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
6021 using ptys as '7'.
6022
3d6a4b2d
KS
60232005-01-20 Kim F. Storm <storm@cua.dk>
6024
62fc9b0f
KS
6025 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
6026
c310aca4
KS
6027 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
6028 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
6029
6030 * macterm.c (x_draw_glyph_string_box): Likewise.
6031
6032 * w32term.c (x_draw_glyph_string_box): Likewise.
6033
3d6a4b2d
KS
6034 * indent.c (Fvertical_motion): Temporarily disable selective display.
6035
27c8be45
KS
60362005-01-19 Kim F. Storm <storm@cua.dk>
6037
77db5cf3
KS
6038 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
6039 image property.
6040
27c8be45
KS
6041 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
6042
81f498dc
KS
60432005-01-18 Kim F. Storm <storm@cua.dk>
6044
6045 * xdisp.c (fast_find_position): Backtrack to find first row if
6046 charpos is inside a display overlay that spans multiple lines.
6047
1cdb0707
KH
60482005-01-18 Kenichi Handa <handa@m17n.org>
6049
6050 * coding.c (decode_coding_iso2022): Translate invalid codes if
6051 translation-table is specified.
6052
677159ce
KS
60532005-01-18 Kim F. Storm <storm@cua.dk>
6054
6055 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
6056 change. If handle_display_prop indicates newline is replaced by
6057 image or text, move back to start of relevant overlay or interval
6058 and continue scan from there. Simplify.
6059
977284cc
KS
60602005-01-17 Kim F. Storm <storm@cua.dk>
6061
043f7f73
SM
6062 * dispnew.c (mode_line_string, marginal_area_string):
6063 Fix off-by-one error in search for glyph.
977284cc 6064
e24531b7
KS
60652005-01-16 Kim F. Storm <storm@cua.dk>
6066
6067 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
6068
5ddd7664
ST
60692005-01-16 Steven Tamm <steventamm@mac.com>
6070
043f7f73 6071 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 6072
fc2ff44b
AS
60732005-01-16 Andreas Schwab <schwab@suse.de>
6074
6075 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
6076
50af5100
JD
60772005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6078
6079 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
6080 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
6081
a2d5fca0
JD
60822005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6083
6084 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
6085 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
6086 New flags for readable_events.
043f7f73 6087 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
6088 (tracking_off): Call readable_events and get_input_pending with
6089 flag READABLE_EVENTS_DO_TIMERS_NOW.
6090 (readable_events): Move code from old readable_filtered_events here,
6091 but check new READABLE_EVENTS_* in argument flags instead of previous
6092 two boolean arguments do_timers_now and filter_events.
6093 If we are doing mouse tracking and the mouse moved, return only if
6094 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
6095 (swallow_events): Call get_input_pending with flag
6096 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 6097 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
6098 here. Replace boolean arguments do_timers_now, filter_events with
6099 flags, and pass flags to readable_events. Document new
6100 READABLE_EVENTS_* flags.
6101 (detect_input_pending_ignore_squeezables): New function.
6102 (detect_input_pending_run_timers): Call get_input_pending with flag
6103 READABLE_EVENTS_DO_TIMERS_NOW.
6104 (Finput_pending_p): Call get_input_pending with flags
6105 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
6106
6107 * dispnew.c (update_window, update_frame_1): Replace calls to
6108 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 6109 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
6110 mouse movements.
6111
6112 * lisp.h: Declare detect_input_pending_ignore_squeezables.
6113
42afbcda
ST
61142005-01-15 Steven Tamm <steventamm@mac.com>
6115
e24531b7
KS
6116 * macterm.c (Vmac_use_core_graphics): Declare variable for
6117 mac-allow-anti-aliasing.
6118 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 6119 (mac_draw_string_common): Use core graphics text rendering if
0530c679 6120 mac-allow-anti-aliasing is enabled.
743d0696 6121
42afbcda
ST
6122 * macfns.c (Fx_file_dialog): Save As dialog includes only the
6123 file name in the text box.
6124
9cdd4884
ST
61252005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6126
043f7f73
SM
6127 * macfns.c (x_set_foreground_color, x_set_background_color):
6128 Sync with xfns.c.
9cdd4884
ST
6129 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
6130 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
6131 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
6132
88948d55
KS
61332005-01-14 Kim F. Storm <storm@cua.dk>
6134
6135 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
6136
20d6de82
RS
61372005-01-13 Richard M. Stallman <rms@gnu.org>
6138
6139 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
6140 if Voverriding_terminal_local_map is non-nil.
6141
6142 * keyboard.c (syms_of_keyboard): Doc fix.
6143
f75a592e
KS
61442005-01-13 Kim F. Storm <storm@cua.dk>
6145
6146 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
52eb0373 6147 (specify 0 for FACE instead). Reorder arg list. Doc fix.
f75a592e 6148
28f94a34
RS
61492005-01-12 Richard M. Stallman <rms@gnu.org>
6150
6151 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
6152 face property for characters that don't specify one.
6153
6154 * fns.c (Frequire): Record in load-history unconditionally.
6155
57a230b1
KS
61562005-01-10 Kim F. Storm <storm@cua.dk>
6157
6158 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
6159
6160 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
6161 Callers changed.
6162 Add support to merge with lisp face id too (if face_name is t).
6163
6164 * xdisp.c (get_next_display_element, next_element_from_display_vector):
6165 Don't lookup lface_id from display table glyphs here; instead use
6166 merge_faces to merge the lisp face id into current face.
6167
8ab2c119
KS
61682005-01-09 Kim F. Storm <storm@cua.dk>
6169
6170 * dispextern.h (struct it): New member dpvec_face_id.
6171 (merge_into_realized_face): Add prototype.
6172
6173 * xfaces.c (merge_into_realized_face): New function. Used to
6174 merge escape-glyph face or face from display table into current face.
6175
6176 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
6177 (syms_of_xdisp): DEFVAR_LISP it.
6178 (escape_glyph_face): Remove var.
6179 (redisplay_window): Don't initialize it.
6180 (setup_for_ellipsis, get_next_display_element):
6181 Set it->dpvec_face_id to -1.
6182 (get_next_display_element): Test Vshow_nonbreak_escape.
6183 Do not setup escape_glyph_face.
6184 Properly merge escape-glyph face or face from display table with
043f7f73
SM
6185 current face for escape and control characters.
6186 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
6187 element of display vector.
6188 (next_element_from_display_vector): If it->dpvec_face_id is set,
6189 use that instead of lface_id from glyph itself.
6190
e0910857
JD
61912005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6192
6193 * xterm.h (struct x_output): New member, toolbar_detached.
6194
6195 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
6196 38.
6197 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
6198 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
6199 (xg_create_tool_bar): Initialize toolbar_detached.
6200 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
6201 toolbar_detached is zero.
6202
ff59904a
JD
62032005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6204
9b85e63d
JD
6205 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
6206 gtk_menu_popup if not for_click, so callbacks for the menu are called.
6207
ff59904a
JD
6208 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
6209 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 6210 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
6211
6212 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 6213 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
6214 XFLOAT_DATA to get extract number from Lisp object.
6215
f9a23a6f
KS
62162005-01-07 Kim F. Storm <storm@cua.dk>
6217
6218 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
6219 Set stop_charpos to current charpos instead of 0.
6220
28f94a34
RS
62212005-01-06 Nick Roberts <nickrob@snap.net.nz>
6222
6223 * xdisp.c (Fformat_mode_line): First arg now required.
6224
a6fffcdc
ST
62252005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6226
6227 * macterm.c (XLoadQueryFont): Correctly handle 0 size
6228 font widths that are returned from some Japanese fonts.
6229
c35b0c6b
KS
62302005-01-06 Kim F. Storm <storm@cua.dk>
6231
6232 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
6233 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
6234 (destroy_fringe_bitmap): Set fringe_faces element to nil.
6235 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
6236 fringe_faces array and init elements to nil.
6237 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
6238 non-persistent face id.
6239 (mark_fringe_data): New function for GC.
6240
6241 * alloc.c (mark_fringe_data): Declare extern.
6242 (Fgarbage_collect): Call mark_fringe_data.
6243
6244 * alloc.c (overrun_check_free): Invalidate freed memory if
6245 XMALLOC_CLEAR_FREE_MEMORY is defined.
6246
e0e76ab9
ST
62472005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6248
6249 * macfns.c: Include sys/param.h.
6250 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
6251 and function.
6252 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
6253 of filename string. Set event callback function when creating
6254 dialog boxes. Add code conversions for filenames. Don't dispose
71b7a47f 6255 of apple event descriptor record if failed to create it.
e0e76ab9
ST
6256
6257 * macterm.c: Include sys/param.h.
6258 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
6259 kEventWindowUpdate.
6260 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
6261 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
6262 of FSSpec from apple event descriptor record.
6263 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
6264 size of filename string.
6265 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
6266 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
6267 file dialog is in action.
043f7f73
SM
6268 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
6269 Reject only when there are no filename items. Set background color
e0e76ab9 6270 before (un)highlighting the window below the dragged items.
2313f861 6271 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 6272
043bc640
KH
62732005-01-05 Romain Francoise <romain@orebokech.com>
6274
6275 * term.c (encode_terminal_code): Fix buffer size computation.
6276
dd496df6
RS
62772005-01-04 Richard M. Stallman <rms@gnu.org>
6278
6279 * xdisp.c (Fformat_mode_line): Doc fix.
6280
026cdede
SM
62812005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6282
6283 * alloc.c (refill_memory_reserve): Move.
6284 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
6285 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
6286
d57c7572
RS
62872005-01-03 Richard M. Stallman <rms@gnu.org>
6288
6289 * window.c (window_scroll_pixel_based): Don't correct preserve_y
6290 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
6291
b14f868c
JR
62922005-01-03 Jason Rumney <jasonr@gnu.org>
6293
6294 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
6295 fontp->space_width to FONT_WIDTH so they are valid.
6296
6297 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
52eb0373 6298 average width. Set fontp->average_width and fontp->space_width to
b14f868c
JR
6299 their appropriate values.
6300
6301 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
6302 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
6303 fontp->space_width.
6304
e169f939
ST
63052005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6306
6307 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
6308 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
6309 metrics for max and min bounds.
6310 (x_load_font): Correctly calculate average font width metrics.
6311
19996af4
RS
63122005-01-02 Richard M. Stallman <rms@gnu.org>
6313
6314 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
6315
42d02da0
JD
63162004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6317
6318 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
6319
1db7dd46
RS
63202004-12-31 Richard M. Stallman <rms@gnu.org>
6321
b437860a
RS
6322 * xdisp.c (setup_for_ellipsis, get_next_display_element):
6323 Set it->ellipsis_p to 1 or 0.
6324 (display_line): Record whether row ends in mid-ellipsis.
52eb0373 6325 (set_cursor_from_row): If ends in ellipsis, find start of it.
b437860a
RS
6326 (cursor_row_p): If PT's at the end of the ellipsis the row
6327 ends within, don't display cursor on this row.
6328
6329 * dispextern.h (struct it): New element ellipsis_p.
6330 (struct glyph_row): New element ends_in_ellipsis_p.
6331
6332 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
6333 position if we're reading from something other than the buffer.
6334
1db7dd46
RS
6335 * window.c (window_scroll_pixel_based): Only look at
6336 Vscroll_preserve_screen_position if the old PT can't be kept.
6337 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6338
1225f637
KS
63392004-12-30 Kim F. Storm <storm@cua.dk>
6340
6341 * xdisp.c (get_line_height_property): New function extracted from
6342 original calc_line_height_property.
6343 (calc_line_height_property): Rework. Handle t and (nil . ratio).
6344 (x_produce_glyphs): Use them to handle line-height and
6345 line-spacing according to new height spec.
6346 (Qtotal): Remove.
33b2f4ea 6347 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 6348
c243063e
KH
63492004-12-30 Kenichi Handa <handa@m17n.org>
6350
6351 * fileio.c (Finsert_file_contents): Don't use
6352 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 6353 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
6354
6355 * fontset.h (struct font_info): New members space_width and
6356 average_width.
6357
6358 * frame.h (struct frame): New member space_width.
6359 (FRAME_SPACE_WIDTH): New macro.
6360
6361 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
6362
6363 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
6364 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 6365 fontp->space_width.
043f7f73 6366 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
6367 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
6368
6369 * xdisp.c (x_produce_glyphs): Calculate tab width by
6370 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
6371
456e761b
ST
63722004-12-29 Sanghyuk Suh <han9kin@mac.com>
6373
6374 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 6375 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 6376
188577ce
LT
63772004-12-29 Luc Teirlinck <teirllm@auburn.edu>
6378
6379 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
6380
99ec74b9
RS
63812004-12-29 Richard M. Stallman <rms@gnu.org>
6382
6383 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
6384
30c92fab
ST
63852004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6386
6387 * macfns.c (install_window_handler): Modify extern to return OSErr
6388 value.
6389 (mac_window): Handle return value of install_window_handler.
6390
6391 * macterm.c (reflect_byte): Remove function.
6392 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
6393 Lookup table instead.
6394 (mac_do_font_lists): Simplify calculation of the longest
6395 nonspecial string.
6396 (init_mac_drag_n_drop): Remove function and declaration.
6397 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
6398 init_mac_drag_n_drop.
6399 (mac_do_track_drag): New function and declaration.
6400 (install_window_handler): Return OSErr value.
043f7f73
SM
6401 (install_window_handler) [TARGET_API_MAC_CARBON]:
6402 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 6403 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
6404 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
6405 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 6406
4b982924
DN
64072004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
6408
6409 * coding.c (decode_coding): Fix previous change.
6410
93fdf45f
RS
64112004-12-28 Richard M. Stallman <rms@gnu.org>
6412
6413 * xdisp.c (back_to_previous_visible_line_start):
6414 Don't call handle_display_prop.
6415
5bdca8af
DN
64162004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
6417
6418 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
6419 (decode_coding_emacs_mule, encode_coding_emacs_mule)
6420 (decode_coding_iso2022, encode_designation_at_bol)
6421 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
6422 (decode_coding): Constify arguments and local vars.
6423
33385c6f
JD
64242004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6425
6426 * xmenu.c (popup_get_selection): Only pop down dialogs
6427 on C-g and Escape.
95bdef2e 6428 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
6429 (create_and_show_popup_menu, create_and_show_dialog):
6430 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 6431
b15325b2
ST
64322004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6433
6434 * dispextern.h: Change HAVE_CARBON to MAC_OS.
6435 (struct glyph_string): Likewise.
a2c7e69a 6436
b15325b2
ST
6437 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
6438 mac_initialize.
a2c7e69a 6439
b15325b2
ST
6440 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
6441 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 6442
b15325b2 6443 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 6444
b15325b2
ST
6445 * frame.c (x_set_frame_parameters, x_report_frame_params)
6446 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
6447 (x_set_border_width, Vdefault_frame_scroll_bars):
6448 Change HAVE_CARBON to MAC_OS.
a2c7e69a 6449
b15325b2
ST
6450 * image.c [MAC_OS]: Include sys/stat.h.
6451 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
6452 QuickTimeComponents.h.
a2c7e69a 6453
b15325b2
ST
6454 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
6455 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 6456 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
6457 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
6458 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
6459 (mac_clear_font_name_table): Add extern.
6460 (Fmac_clear_font_name_table): New defun.
6461 (syms_of_mac): Defsubr it.
6462 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
6463 [MAC_OSX] (select_and_poll_event): New function.
6464 [MAC_OSX] (sys_select): Use it.
6465 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
6466 [MAC_OSX && SELECT_USE_CFSOCKET]
6467 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
6468 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
6469 RunLoop for simultaneously monitoring two kinds of inputs, window
6470 events and process outputs, without periodically polling.
a2c7e69a 6471
b15325b2
ST
6472 * macfns.c (mac_initialized): Remove extern.
6473 (stricmp): Put in #if 0. All callers changed to use xstricmp in
6474 xfaces.c.
043f7f73
SM
6475 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
6476 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
6477 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
6478 (mac_get_rdb_resource): New function (from w32reg.c).
6479 (x_get_string_resource): Use it.
6480 (install_window_handler): Add extern.
6481 (mac_window): New function.
043f7f73
SM
6482 (Fx_create_frame): Use it instead of make_mac_frame.
6483 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
6484 (Fx_open_connection, Fx_close_connection): New defuns.
6485 (syms_of_macfns): Defsubr them.
043f7f73
SM
6486 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
6487 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
6488 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
6489 (x_create_tip_frame): Don't call ShowWindow.
6490 (Fx_show_tip): Call ShowWindow.
6491 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
6492 TARGET_API_MAC_CARBON'.
6493 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
6494 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 6495
043f7f73 6496 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
6497 (Window): Typedef to WindowPtr and move outside `#if
6498 TARGET_API_MAC_CARBON'.
6499 (XSizeHints): New struct.
a2c7e69a 6500
b15325b2
ST
6501 * macterm.c (x_update_begin, x_update_end)
6502 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
6503 frame.
6504 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6505 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
6506 (construct_mouse_click): Put in #if 0.
6507 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
6508 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
6509 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
6510 (activate_scroll_bars, deactivate_scroll_bars)
6511 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
6512 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
6513 if the position is neither user-specified nor program-specified.
6514 (x_free_frame_resources): Free size_hints.
043f7f73 6515 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
6516 (mac_clear_font_name_table): New function.
6517 (mac_do_list_fonts): Initialize font_name_table if needed.
6518 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
6519 around mac_do_list_fonts.
6520 (mac_unload_font): New function.
6521 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
6522 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
6523 and definitions with #if TARGET_API_MAC_CARBON.
6524 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
6525 (install_window_handler): Add decl.
6526 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
6527 window. Use UpdateControls. Get the rectangle that should be
6528 updated and restrict the target of expose_frame to it.
043f7f73 6529 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
6530 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
6531 (do_zoom_window): Don't use x_set_window_size.
6532 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
6533 (install_window_handler): New function.
6534 [!USE_CARBON_EVENTS] (mouse_region): New variable.
6535 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
6536 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
6537 GetEventDispatcherTarget inside BLOCK_INPUT.
6538 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
6539 Update mouse_region when mouse is moved.
6540 (make_mac_frame): Remove.
043f7f73
SM
6541 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
6542 Initialize mouse pointer shapes. Change values of f->left_pos and
6543 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
6544 Don't call ShowWindow.
b15325b2
ST
6545 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
6546 Vinvocation_name and Vsystem_name.
6547 (mac_make_rdb): New function (from w32term.c).
6548 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
6549 already been opened. Don't pass argument to
6550 mac_initialize_display_info. Don't set dpyinfo->height/width.
6551 Add entries to x_display_list and x_display_name_list.
6552 (x_delete_display): New function.
6553 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
6554 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
6555
b15325b2
ST
6556 * macterm.h (check_mac): Add extern.
6557 (struct mac_output): New member size_hints.
6558 (FRAME_SIZE_HINTS): New macro.
6559 (mac_unload_font): Add extern.
a2c7e69a 6560
b15325b2 6561 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 6562
1d1c7e75 6563 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
b15325b2 6564
92d2947b
RS
65652004-12-27 Richard M. Stallman <rms@gnu.org>
6566
043f7f73 6567 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
6568 (syms_of_buffer): Don't defsubr it.
6569
6570 * process.c (list_processes_1): Set undo_list instead
6571 of calling Fbuffer_disable_undo.
6572
043f7f73 6573 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 6574 single_display_prop_string_p.
043f7f73 6575 (single_display_spec_intangible_p): Rename from
92d2947b 6576 single_display_prop_intangible_p.
043f7f73 6577 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
6578 Rewritten to be easier to understand.
6579
a2c7e69a 6580 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
6581 and variables get just NAME.
6582
6583 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
6584
6585 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
6586 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
6587 (Qdefvar): Var deleted.
6588 (syms_of_eval): Don't initialze it.
6589
6590 * lread.c (syms_of_lread) <load-history>: Doc fix.
6591
9f6fcdc5
JD
65922004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6593
6594 * xmenu.c (popup_get_selection): Pop down on C-g.
6595 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
6596 pops down menu on C-g.
6597 (xdialog_show): If dialog popped down and no button in the dialog was
6598 pushed, call Fsignal to quit.
6599 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
6600 Fsignal to quit.
6601
1d1c7e75 6602 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9f6fcdc5
JD
6603
6604 * gtkutil.c (xg_initialize): Install bindings for C-g so that
6605 dialogs and menus pop down.
6606
d8ca23a0
KH
66072004-12-27 Kenichi Handa <handa@m17n.org>
6608
6609 * coding.c (code_convert_region): Fix calculation of `ratio'.
6610
857ae68b
JD
66112004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6612
133c0116
JD
6613 * gtkutil.c (update_frame_tool_bar): Make the value of
6614 tool-bar-button-margin control margins of images in tool bar.
6615
857ae68b
JD
6616 * alloc.c (check_depth): New variable.
6617 (overrun_check_malloc, overrun_check_realloc): Only add
6618 overhead and write check pattern if check_depth is 1 (to handle
6619 recursive calls). Increase/decrease check_depth in entry/exit.
6620 (overrun_check_free): Only check for overhead if check_depth is 1.
6621 Increase/decrease check_depth in entry/exit.
6622
bd55c35c
JD
66232004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6624
6625 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
6626 before touching input_available_clear_time, to avoid accessing it
6627 from multiple threads.
6628
66354420
JR
66292004-12-23 Jason Rumney <jasonr@gnu.org>
6630
6631 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
6632 of JPEG library.
6633
55f4edbc
RS
66342004-12-22 Richard M. Stallman <rms@gnu.org>
6635
6636 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
6637
6638 * lisp.h (Vundo_outer_limit): Fix decl.
6639
6640 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
6641 Uses changed.
6642 (syms_of_undo): Initialize appropriately.
6643 (truncate_undo_list): If it's nil, there's no limit.
6644
7a0ea9e3
KH
66452004-12-22 Kenichi Handa <handa@m17n.org>
6646
6647 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
6648
fda2922a
RS
66492004-12-21 Richard M. Stallman <rms@gnu.org>
6650
6651 * eval.c (unwind_to_catch): Clear immediate_quit.
6652
6653 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
6654 specially as `\ ' and `\-'.
6655
6656 * keyboard.c (kbd_buffer_store_event_hold):
6657 In the code for while-no-input, handle immediate_quit.
6658
6659 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
6660 Call that at the very start.
043f7f73 6661 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
6662 (syms_of_alloc): Don't define undo-limit,
6663 undo-strong-limit and undo-outer-limit here.
6664
6665 * undo.c (truncate_undo_list): Return void.
6666 Take just one argument, the buffer.
6667 Make it current, and inhibit recursive GC.
6668 Access and update the undo list directly; return void.
6669 Refer to the undo...limit variables directly.
6670 Test undo_outer_limit only after counting the whole current command.
6671 When it's exceeded, call the function in undo-outer-limit-function.
6672 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
6673 (Vundo_outer_limit_function): New variable.
6674 (syms_of_undo): Define undo-limit, undo-strong-limit
6675 and undo-outer-limit here, and undo-outer-limit-function.
6676 Doc fixes.
6677
6678 * lisp.h (truncate_undo_list): Update decl.
6679
66802004-12-21 Piet van Oostrum <piet@cs.uu.nl>
6681
6682 * fileio.c (Fread_file_name): Delete duplicates in
6683 file-name-history when history_delete_duplicates is true.
6684
68c69027
ST
66852004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6686
6687 * macterm.c (mac_do_list_fonts): Fix memory leak
6688
134579f2
RS
66892004-12-20 Richard M. Stallman <rms@gnu.org>
6690
6691 * regex.c (re_match_2_internal) <symend, wordend>:
6692 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
6693
fbe6152f
ST
66942004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6695
043f7f73
SM
6696 * macterm.c (endif, x_font_name_to_mac_font_name):
6697 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
6698 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
6699 quickly finding a specific font without needing regexps.
6700
fecad3f6
JD
67012004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6702
333f1b6f
JD
6703 * syssignal.h: Declare main_thread.
6704 (SIGNAL_THREAD_CHECK): New macro.
6705
6706 * keyboard.c (input_available_signal): Move thread checking code
6707 to macro SIGNAL_THREAD_CHECK and call that macro.
6708 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
6709
6710 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
6711
6712 * emacs.c: Define main_thread.
6713 (main): Initialize main_thread.
6714 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
6715 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
6716
6717 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
6718
6719 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
6720
6721 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
6722
043f7f73
SM
6723 * process.c (send_process_trap, sigchld_handler):
6724 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
6725
6726 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
6727
6728 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
6729
fecad3f6
JD
6730 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
6731 returning when xg_ignore_gtk_scrollbar is true.
6732
2a84c6da
KS
67332004-12-14 Kim F. Storm <storm@cua.dk>
6734
6735 * keyboard.c (read_char): Save and restore echo_string when
6736 handling input method.
6737
d9c1ce9d
RS
67382004-12-13 Richard M. Stallman <rms@gnu.org>
6739
6740 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
6741
6742 * keyboard.c (Vthrow_on_input): New variable.
6743 (syms_of_keyboard): Defvar and initialize it.
6744 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
6745
6746 * lisp.h (QUIT): Check for Vthrow_on_input.
6747 (Vthrow_on_input): Declare it.
6748
a6495ed5
KS
67492004-12-13 Kim F. Storm <storm@cua.dk>
6750
6751 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
6752 vector.
6753
24a0e22f
RS
67542004-12-12 Richard M. Stallman <rms@gnu.org>
6755
6756 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
6757
6758 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
6759 (Ftry_completion): Really use outer `zero'; eliminate inner one.
6760
d6d31e57
KH
67612004-12-12 Kenichi Handa <handa@m17n.org>
6762
6763 * term.c (encode_terminal_code): Fix previous change.
6764
6f8ffb88
SM
67652004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
6766
fb6f5cbf
SM
6767 * keyboard.c (handle_async_input): Remove pthread mutex handling.
6768 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
6769
6f8ffb88
SM
6770 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
6771 in macro arguments.
6772
6773 * minibuf.c (Ftry_completion, Fall_completions): Don't use
6774 XFASTINT blindly.
6775
6776 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
6777
c83c9f9d
JD
67782004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6779
2f25767f
JD
6780 * w32term.c (x_calc_absolute_position): Remove calculation of
6781 difference between inner and outer window. Don't subtract difference
6782 for left and top calculations.
6783
c83c9f9d
JD
6784 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
6785 for left and top calculations. Remove call to x_real_positions.
24a0e22f 6786 [Bug report by Drew Adams in November]
c83c9f9d
JD
6787 (x_check_expected_move): Do not set change_gravity to 1 when calling
6788 x_set_offset.
6789
cc1caa4e
RS
67902004-12-08 Richard M. Stallman <rms@gnu.org>
6791
6792 * xdisp.c (get_next_display_element): Use `escape-glyph' for
6793 control chars and escaped octal codes.
6794 (Qescape_glyph): New variable.
6795 (syms_of_xdisp): Initialize it.
6796 (escape_glyph_face): New variable.
6797 (redisplay_window): Initialize it.
6798
e0e30823
RS
67992004-12-07 Paul Eggert <eggert@cs.ucla.edu>
6800
6801 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
6802 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
6803
f415cacd
JD
68042004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6805
cf435f39
JD
6806 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
6807 reset_malloc_hooks.
6808
6f8ffb88
SM
6809 * keyboard.c (handle_async_input, input_available_signal):
6810 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 6811
f415cacd
JD
6812 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
6813
043f7f73 68142004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
6815
6816 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
6817
6818 * config.in: Regenerate.
6819
ded997c1
JD
68202004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6821
453a4f1b
JD
6822 * xmenu.c (Fx_popup_menu): Correct documentation about position.
6823 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
6824 if not given by a mouse click to correspond with x-popup-menu
6825 documentation.
6826
9a38524c
JD
6827 * config.in: Regenerate.
6828
aa477689
JD
6829 * gtkutil.c: Include signal.h and syssignal.h.
6830 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
6831
6832 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
6833 new variables main_thread and alloc_mutex,
6834 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
6835 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
6836 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
6837 (UN)BLOCK_INPUT.
6838 (emacs_blocked_free, emacs_blocked_malloc)
6839 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
6840 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
6841 (reset_malloc_hooks): New function.
6842
6843 * lisp.h: Declare reset_malloc_hooks.
6844
6845 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
6846
6847 * keyboard.c: Conditionally include pthread.h
6f8ffb88 6848 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
6849 thread, block signal, send signal to main thread and return.
6850
ded997c1 6851 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 6852 Set current folder in file chooser if default_filename is a directory.
ded997c1 6853
c72b0edd
SM
68542004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
6855
6856 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
6857 Remove redundant correctness checks.
6858 (regex_compile): Fix up error codes for \{..\} expressions.
6859
c721eee5
RS
68602004-12-05 Richard M. Stallman <rms@gnu.org>
6861
6862 * regex.c (regex_compile): Fix end-of-pattern case for space.
6863
d8f96db8
ST
68642004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6865
6108209e
KS
6866 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
6867 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 6868 crashes with invalid characters.
6108209e
KS
6869 * macmenu.c (add_menu_item): Use it.
6870 * image.c (image_load_quartz2d): Likewise.
6871 * macfns.c (x_set_name, x_set_title): Likewise.
6872 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
6873 creating them each time for labels.
d8f96db8 6874
ab67e8b6
RS
68752004-12-02 Richard M. Stallman <rms@gnu.org>
6876
6877 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
6878 don't use it here.
6879
6880 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
6881 (interactive_p): Skip Scalled_interactively_p frames
6882 like Sinteractive_p frames.
b8217ea6 6883 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
6884
6885 * data.c (Fmake_variable_buffer_local): Doc fix.
6886 (Fmake_local_variable): Doc fix.
6887
6888 * insdel.c (insert_from_string_before_markers)
6889 (insert_from_string): Don't modify buffer on empty insertion.
6890
6891 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
6892
f86bdc80
ST
68932004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6894
6895 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
6896 menu text as UTF8 fails.
6897
1cae6d39
KS
68982004-12-01 Kim F. Storm <storm@cua.dk>
6899
6900 * alloc.c: Add commentary for last change.
6901 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
6902 sizeof(size_t) != 4.
6903 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
6904 Use them. Also clear header and trailer of freed memory.
6905 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
6906 (string_overrun_cookie): Rename from string_overrun_pattern.
6907 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
6908
77ea0764
AS
69092004-12-01 Andreas Schwab <schwab@suse.de>
6910
6911 * lisp.h: Declare string_to_multibyte.
6912
2d5cd4e6
KH
69132004-12-01 Kenichi Handa <handa@m17n.org>
6914
6915 * w32console.c (w32con_write_glyphs): Decide coding here.
6916 Adjusted for the change of encode_terminal_code.
6917
6918 * term.c (encode_terminal_code): Don't make it "static".
6919
25a0994a
KH
69202004-11-30 Kenichi Handa <handa@m17n.org>
6921
19b1f29a 6922 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 6923 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
6924 characters at once, and return a pointer to the result of encoding.
6925 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
6926 (insert_glyphs): Likewise.
6927 (term_init): Initialize encode_terminal_bufsize to 0.
6928
6929 * coding.c (Vcode_conversion_workbuf_name): New variable.
6930 (syms_of_coding): Initialize and staticpro it.
6931 (set_conversion_work_buffer): New function.
6932 (run_pre_post_conversion_on_str): Use it.
6933 (run_pre_write_conversin_on_c_str): New function.
6934
6935 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
6936
fc7a70cc
ST
69372004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6938
6939 * keyboard.c: Don't undef SIGIO
6940 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
6941 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
6942 (macfns.o): Don't depend on ccl.h.
6943 * macfns.c (mac_frame_parm_handlers): Set handlers for
6944 Qleft_fringe and Qright_fringe.
6945 * macterm.c (mac_fill_rectangle_to_pixmap)
6946 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
6947 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
6948 Put in #if 0.
6949 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
6950 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
6951 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
6952 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6953 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
6954 XDrawImageString. Always draw background and foreground separately.
6955 (x_draw_image_foreground): Use clipping instead of computing the
6956 intersection rectangle.
6957 (x_draw_image_glyph_string): Don't draw an image with mask to a
6958 pixmap.
6959 (x_redisplay_interface): Set flush_display_optional member to 0.
6960 (XTread_socket): Correctly reset the TEConverter
6961 object.
6962
fc368889
KS
69632004-11-30 Kim F. Storm <storm@cua.dk>
6964
6965 * lisp.h: New defines to enable buffer overrun checking.
6966 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
6967 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
6968
6969 * alloc.c: Add more checks for buffer overruns.
6970 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
6971 xmalloc_overrun_check_trailer, overrun_check_malloc)
6972 overrun_check_realloc, overrun_check_free): Add.
6973 (GC_STRING_EXTRA, string_overrun_pattern): Add.
6974 (check_sblock, allocate_string_data, compact_small_strings):
6975 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
6976 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
6977 (check_string_free_list): Add.
6978 (allocate_string, sweep_strings): Call check_string_free_list.
6979
6980 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
6981 XMALLOC_OVERRUN_CHECK to avoid crash during load.
6982
0af8cfe1
KS
69832004-11-29 Kim F. Storm <storm@cua.dk>
6984
6985 * fns.c (concat): Use SAFE_ALLOCA.
6986
77220eeb
SM
69872004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
6988
6989 * sysdep.c (emacs_write): Don't use QUIT.
6990
a778cf63
KH
69912004-11-29 Kenichi Handa <handa@m17n.org>
6992
6993 * buffer.c (init_buffer): Set current_buffer->directory to a
6994 multibyte string made by string_to_multibyte.
6995
77220eeb 6996 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 6997
e3177e43
AS
69982004-11-27 Andreas Schwab <schwab@suse.de>
6999
7000 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
7001
7002 * s/gnu-linux.h: Enable no-op gcpros on ia64.
7003 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
7004
77220eeb
SM
7005 * filelock.c (lock_file_1): Call get_boot_time early.
7006 Increase buffer size.
e3177e43 7007
ca5e6fef
EZ
70082004-11-27 Eli Zaretskii <eliz@gnu.org>
7009
7010 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
7011 is not defined.
7012
e2811828
KS
70132004-11-27 Kim F. Storm <storm@cua.dk>
7014
7015 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
7016 marker out of doc string.
7017
7a262394
SM
70182004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
7019
7020 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
7021 which was not mentioned in the log.
7022
f33cc5a9
KS
70232004-11-26 Kim F. Storm <storm@cua.dk>
7024
048bb03f
KS
7025 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
7026 angle bitmaps at top/bottom line.
7027
52eb0373 7028 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
f33cc5a9
KS
7029 set it when it->method is set to next_element_from_display_vector.
7030 (setup_for_ellipsis): Add LEN argument. Callers changed.
7031 Set it->saved_face_id.
7032 (get_next_display_element): Use loop instead of recursion.
7033 Set it->saved_face_id. Combine duplicate code for ctr chars.
7034 (next_element_from_display_vector): Do not set it->saved_face_id.
7035 (next_element_from_ellipsis): Use setup_for_ellipsis.
7036
670e8906
EZ
70372004-11-26 Eli Zaretskii <eliz@gnu.org>
7038
7039 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
7040 prevent compiler warnings.
7041
275464e7
SM
70422004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
7043
1bf0e604
SM
7044 * keyboard.c (command_loop_1): Print a message describing the key
7045 the user just pressed when this key has no binding.
7046
275464e7
SM
7047 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
7048 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
7049
7050 * lread.c (readchar): Check QUIT when `getc' is interrupted.
7051
261b01c6
RS
70522004-11-24 Richard M. Stallman <rms@gnu.org>
7053
7054 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
7055
7056 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
7057
a5bd504e
KS
70582004-11-24 Kim F. Storm <storm@cua.dk>
7059
7060 * xdisp.c (move_it_in_display_line_to, display_line):
7061 Restore saved_face_id also when truncate-lines or hscrolled.
7062
255e4140
JD
70632004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7064
7065 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
7066 x-use-old-gtk-file-dialog.
7067
7068 * xfns.c: Define x_use_old_gtk_file_dialog.
7069 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
7070 outside ifdef USE_GTK.
7071
cab27d04
SM
70722004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
7073
7074 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
7075 Don't use XFASTINT blindly.
7076
7077 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
7078
7079 * indent.c (skip_invisible): Avoid non-idempotent side-effects
7080 in macro arguments.
7081
7082 * keymap.c (Flookup_key): Check INTEGERP before XINT.
7083
7084 * lread.c (oblookup): Don't use XFASTINT blindly.
7085
7086 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
7087 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
7088
11e0be49
KS
70892004-11-23 Kim F. Storm <storm@cua.dk>
7090
4d721114
KS
7091 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
7092 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
7093
11e0be49
KS
7094 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
7095 signal_p is zero and face name is unknown.
7096 (Fx_list_fonts): Don't signal error in lookup_named_face.
7097 (Fface_font): Signal error in lookup_named_face.
7098 (ascii_face_of_lisp_face): Likewise.
7099
7100 * dispextern.h (lookup_named_face): Fix prototype.
7101
7102 * xdisp.c (handle_single_display_prop): Don't signal error in
7103 lookup_named_face for unknown fringe face name.
7104 (highlight_trailing_whitespace): Don't signal error in
7105 lookup_named_face if trailing-whitespace face unknown.
7106 (calc_line_height_property): Don't signal error in
7107 lookup_named_face if specified face name is unknown.
7108
7109 * fringe.c (update_window_fringes): Show top row indicator if
7110 window has header-line. Don't show arrow at bob and eob
7111 if the boundary indicators are not used.
7112 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
7113
7114 * window.c (set_window_buffer): Clear display_error_modiff.
7115
0960a582
KS
71162004-11-22 Kim F. Storm <storm@cua.dk>
7117
7118 * fringe.c (update_window_fringes): Provide sensible fall-back
7119 value for non-nil indicate-buffer-boundaries setting.
7120
b0e9bb28
MR
71212004-11-22 Markus Rost <rost@ias.edu>
7122
7123 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
7124
d0bce91e
SM
71252004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
7126
7127 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
7128
e1814672
KS
71292004-11-21 Kim F. Storm <storm@cua.dk>
7130
b7fd3518
KS
7131 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
7132
7133 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
7134 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7135
7136 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
7137 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7138
7139 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
7140 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7141
d0bce91e
SM
7142 * xdisp.c (move_it_in_display_line_to, display_line):
7143 Restore saved_face_id if overflow-newline-into-fringe is enabled and
7144 line is continued before or in middle of element from display vector.
f01d4d05 7145
f1a61389
KS
7146 * indent.c (Fvertical_motion): Fix last change. Use another
7147 method to detect if iterator moved too far ahead after reseat.
7148
e1814672
KS
7149 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
7150 expand matrix width for overflow in zero-width area.
7151 (append_glyph, append_composite_glyph, produce_image_glyph)
7152 (append_stretch_glyph): Use it to avoid loop in redisplay.
7153 (note_mode_line_or_margin_highlight): Don't let help-echo from
7154 string override help-echo from image map.
7155
2dafe1c9
LT
71562004-11-20 Luc Teirlinck <teirllm@auburn.edu>
7157
d0bce91e 7158 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
7159 * callint.c (Fcall_interactively): Ditto.
7160
fd6866c8 71612004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
7162
7163 * minibuf.c (Fminibuffer_complete_and_exit):
7164 Fixup the case of the completed value, for case-indep completion.
7165
dedbac89
RS
71662004-11-20 Richard M. Stallman <rms@gnu.org>
7167
fd6866c8
RS
7168 * lisp.h (Fread_from_minibuffer): Add arg in decl.
7169
9d00469f 7170 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 7171 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 7172
dedbac89 7173 * search.c (Vsearch_spaces_regexp):
d0bce91e 7174 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 7175
2f672bb5
TTN
71762004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
7177
7178 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
7179
f31a9a68
RS
71802004-11-19 Richard M. Stallman <rms@gnu.org>
7181
7182 * search.c (Vsearch_whitespace_regexp): New variable.
7183 (syms_of_search): Defvar it.
7184 (compile_pattern_1): Call re_set_whitespace_regexp with it.
7185 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
7186 is non-nil.
6de891db
RS
7187 (struct regexp_cache): New element whitespace_regexp.
7188 (syms_of_search): Initialize whitespace_regexp elements.
7189 (compile_pattern): Compare whitespace_regexp elements.
7190 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
7191
7192 * regex.c (regex_compile): Substitute whitespace_regexp
7193 for spaces, if it is nonzero.
7194 (whitespace_regexp): New variable.
7195 (re_set_whitespace_regexp): New function.
7196
cbc34cb3
KS
71972004-11-19 Kim F. Storm <storm@cua.dk>
7198
7199 * indent.c (Fvertical_motion): Fix last change.
7200
b54a7539
KS
72012004-11-18 Kim F. Storm <storm@cua.dk>
7202
7203 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
7204 Instead, move back again if reseating moves too far ahead.
7205
72062004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
7207
7208 * xdisp.c (message3): Call clear_message.
7209
5ff504fe
KS
72102004-11-17 Kim F. Storm <storm@cua.dk>
7211
7212 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
7213
5ae53dcf
JD
72142004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7215
d0bce91e 7216 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 7217
6abf3a27 7218 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
7219 (x_menu_set_in_use): Also set popup_activated_flag.
7220
5ff504fe 7221 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
7222 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
7223
52eb0373 7224 * xterm.h (x_menu_in_use): Remove.
5ae53dcf 7225
ee31cd78
RS
72262004-11-16 Richard M. Stallman <rms@gnu.org>
7227
6abf3a27
SM
7228 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
7229 Use map-keymap-internal to implement that.
ee31cd78
RS
7230
7231 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
7232
6abf3a27
SM
72332004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
7234
7235 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
7236 a window before using XWINDOW.
7237
7238 * window.c (make_window, Fselect_window, make_dummy_parent)
7239 (save_window_save):
7240 * frame.c (make_frame):
7241 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
7242
7243 * lisp.h (NILP): Use EQ rather than XFASTINT.
7244
b4d61105
KS
72452004-11-16 Kim F. Storm <storm@cua.dk>
7246
6abf3a27 7247 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 7248
b4d61105
KS
7249 * indent.c (Fvertical_motion): Fix last change. Only reseat when
7250 moving backwards.
7251
72522004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
7253
7254 * dispextern.h: Extern reseat_at_previous_visible_line_start.
7255
ab5b02b0
KH
72562004-11-16 Kenichi Handa <handa@m17n.org>
7257
7258 * xdisp.c (display_mode_element): Fix previous change (calculate
7259 end position of substring to display correctly).
7260
c482cf97
KS
72612004-11-16 Kim F. Storm <storm@cua.dk>
7262
7263 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
7264 Reported by Andrew M. Scott.
7265
9f89426b
KS
72662004-11-15 Kim F. Storm <storm@cua.dk>
7267
7268 * fns.c (Fsafe_plist_get): New defun.
7269 (syms_of_fns): Defsubr it.
7270
7271 * lisp.h (Fsafe_plist_get): Add EXFUN.
7272
7273 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
7274 Use Fsafe_plist_get.
7275 (note_mode_line_or_margin_highlight, note_mouse_highlight):
7276 Fix image map element parsing. Use Fsafe_plist_get.
7277
27418463
RS
72782004-11-15 Richard M. Stallman <rms@gnu.org>
7279
7280 * xdisp.c (get_next_display_element): Fix previous change.
7281
a130b901
JD
72822004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7283
ef614e04
JD
7284 * window.c (shrink_windows): Handle special case of one window left
7285 when trying to shrink the final reminder. Grow windows if
7286 total_removed is less than total_shrink.
7287
a130b901
JD
7288 * xmenu.c (pop_down_menu): Remove global variable current_menu,
7289 extract pointer from arg with XSAVE_VALUE.
46303896
KS
7290 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
7291 Construct arg to record_unwind_protect with make_save_value.
a130b901 7292
d9a03ad2
RS
72932004-11-13 Richard M. Stallman <rms@gnu.org>
7294
7295 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
7296 (get_next_display_element): Fix previous change to apply only to \n.
7297
7298 * indent.c (Fvertical_motion): Scan to PT from start of line to
7299 make iterator consistent.
7300
7301 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
7302
b3935289
JD
73032004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7304
7305 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
7306
7307 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
7308 Record unwind with clean_up_file_dialog.
7309
78819ebb
KS
7310 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
7311 Declare.
b3935289
JD
7312
7313 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
7314
af89e871
JD
73152004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7316
457a8155 7317 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 7318 (xg_file_sel_destroy): Remove.
46303896
KS
7319 (xg_file_response_cb, pop_down_file_dialog)
7320 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 7321 New functions.
6abf3a27
SM
7322 (xg_get_file_with_chooser, xg_get_file_with_selection):
7323 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
7324 Move common code to xg_get_file_name. Return widget created.
7325 (xg_get_file_name): Set name, transient for, modal and destroy
7326 with parent here. Connect response signal to xg_file_response_cb,
7327 connect delete-event to gtk_true. Record pop_down_file_dialog
7328 for unwind. Do event loop and call x_menu_wait_for_event in loop.
7329 (xg_create_widget): Make dialogs modal.
7330
af89e871
JD
7331 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
7332 Lisp_Object.
7333 (popup_get_selection): Move unwind protect ...
7334 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
7335 Move destroy of widget to pop_down_menu.
7336 (popup_widget_loop): Move unwind protect ...
7337 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
7338 Move destroy of widget to pop_down_menu.
7339 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 7340 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
7341 x_mouse_leave and grabbed = 0 to pop_down_menu.
7342
5596fbf1
KS
73432004-11-13 Kim F. Storm <storm@cua.dk>
7344
7345 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
7346 (syms_of_xdisp): DEFVAR_BOOL it.
7347 (make_cursor_line_fully_visible, try_cursor_movement)
7348 (try_window_id): Use it.
7349
b9de078a
KS
73502004-11-12 Kim F. Storm <storm@cua.dk>
7351
381f7091
KS
7352 * dispextern.h (struct glyph_row): New member extra_line_spacing.
7353 (struct it): New member max_extra_line_spacing.
7354 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
7355 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
7356 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
7357 part of last line is only extra line spacing (so the text on the
52eb0373 7358 line is fully visible). Use helper macros.
381f7091
KS
7359 Add W arg (to use them). All callers changed.
7360 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
7361 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
7362
6abf3a27
SM
7363 * window.c (window_scroll_pixel_based, Frecenter):
7364 Use move_it_vertically_backward directly.
381f7091
KS
7365 (Frecenter): Fix calculation of new start pos for negative arg.
7366 Before, the new start pos was sometimes chosen too far back, so
7367 the last line became only partially visible, and thus would be
7368 either only semi-visible or automatically scrolled to the middle
7369 of the window by redisplay.
7370
7371 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
7372 (move_it_vertically_backward): Don't recure to move further back.
7373 (move_it_vertically): Remove superfluous condition.
7374 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 7375 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
7376 (display_tool_bar_line): Clear row->extra_line_spacing.
7377 (try_scrolling): Use move_it_vertically_backward directly.
7378 (redisplay_window): Likewise.
7379 (compute_line_metrics): Set row->extra_line_spacing.
7380 (display_line, display_string): Likewise.
7381 (x_produce_glyphs): Update it->max_extra_line_spacing.
7382
b9de078a
KS
7383 * xmenu.c (pop_down_menu): Return nil.
7384
c3438661
JD
73852004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7386
7387 * xmenu.c (x_menu_wait_for_event): New function.
1d1c7e75 7388 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
c3438661 7389 to handle timers.
df00f436
JD
7390 (popup_widget_loop): Add argument do_timers.
7391 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
7392 do_timers to popup_widget_loop.
c3438661
JD
7393 (xmenu_show): Call XMenuActivateSetWaitFunction so that
7394 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 7395 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 7396 popup_get_selection.
f1d1cd24
JD
7397 (pop_down_menu): New function.
7398 (popup_get_selection, popup_widget_loop): Unwind protect to
7399 pop_down_menu.
7400 (popup_widget_loop): Add argument widget.
7401 (create_and_show_popup_menu, create_and_show_dialog): Pass new
7402 argument widget to popup_widget_loop.
c3438661 7403
32e2fb04
SM
74042004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7405
7406 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
7407
0faf6806
KS
74082004-11-09 Kim F. Storm <storm@cua.dk>
7409
7410 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
7411 Fix various comments referring to XEvents instead of input events.
7412 (x_queue_event): Fix format strings.
7413 (x_stop_queuing_selection_requests): Likewise.
7414
7415 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
7416 (pint2hrstr): Add extra braces to silence compiler.
7417
7418 * print.c (print_object): Fix format string.
7419
7420 * lread.c (read1): Fix next_char matching.
7421
7422 * lisp.h (Fdelete): Add EXFUN.
7423 (replace_range_2): Add prototype.
7424
7425 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
7426
7427 * intervals.h (NULL_INTERVAL_P): Add separate version when
7428 ENABLE_CHECKING is not defined to silence compiler.
7429 (compare_string_intervals): Add prototype.
7430
7431 * fringe.c (destroy_fringe_bitmap): Fix return type.
7432 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
7433
7434 * emacs.c (Fdump_emacs): Fix format string.
7435
7436 * doc.c: Include <ctype.h>.
7437 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
7438
7439 * data.c (store_symval_forwarding): Remove unused variables.
7440
7441 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
7442
16bf4e32
JD
74432004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7444
7445 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
7446 to ${OLDXMENU}.
7447
cdb805a9
KS
74482004-11-09 Kim F. Storm <storm@cua.dk>
7449
7450 * process.c (Fmake_network_process): Remove kludge for interrupted
7451 connects on BSD. If connect is interrupted, just close socket and
7452 start over rather than sleeping and retry with same socket.
7453
d87a9ab8 74542004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 7455
a8b16c80
JD
7456 * .cvsignore: Add buildobj.lst.
7457
d87a9ab8
JD
7458 * doc.c: New variable Vbuild_files.
7459 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 7460 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
7461 that are in Vbuild_files.
7462 (syms_of_doc): Defvar Vbuild_files.
7463
7464 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
7465 and w32*.o.
7466 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 7467 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
7468
7469 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
7470 is linked.
7471
b6709e77
KS
74722004-11-09 Kim F. Storm <storm@cua.dk>
7473
7474 * fringe.c (update_window_fringes): Update fringe bitmaps if
7475 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
7476 also update previous row to get rid of misc. artifacts.
7477
bae9677d
KS
74782004-11-08 Kim F. Storm <storm@cua.dk>
7479
7480 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 7481 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 7482
3f8ea68c
EZ
74832004-11-08 Eli Zaretskii <eliz@gnu.org>
7484
7485 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
7486 Don't include <sys/time.h> explicitly.
7487 Include <stdio.h> unconditionally, not just on MacOS.
7488
a653f812
KH
74892004-11-08 Kenichi Handa <handa@m17n.org>
7490
7491 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
7492 don't pay attention to '\' before '*'.
7493 (fontset_pattern_regexp): Change the meaning of the second arg.
7494 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
7495 (check_fontset_name): Try NAME as literal at first, and if it
7496 failes, try NAME as pattern.
7497
c37caf9d
JD
74982004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7499
7500 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
7501
b72915a7
AS
75022004-11-07 Andreas Schwab <schwab@suse.de>
7503
78819ebb
KS
7504 * lisp.h (Fmsdos_downcase_filename): Declare.
7505 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
7506 * fileio.c: Likewise.
7507
238a44a8
JD
75082004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7509
7510 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
7511 comparisons with integers instead of Lisp_Object address.
7512 (Fmsdos_set_keyboard): Declare argument allkeys.
7513
7514 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
7515
78819ebb 7516 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
7517 int/Lisp_Object mixup.
7518
7519 * fileio.c: Ditto.
7520
31141c13
ST
75212004-11-06 Steven Tamm <steventamm@mac.com>
7522
7523 * editfns.c: Need to include sys/time.h before resource.h on darwin.
7524
f28c1bd9
RS
75252004-11-06 Richard M. Stallman <rms@gnu.org>
7526
7527 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
7528
7529 * xfaces.c (merge_named_face): GCPRO the face_name in the
7530 named_merge_point struct that we make.
7531 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
7532
7533 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
7534 before deciding whether to inactivate mark.
7535
59dede22
EZ
75362004-11-06 Lars Brinkhoff <lars@nocrew.org>
7537
7538 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
7539 * editfns.c (Fget_internal_run_time): New function.
7540 (syms_of_data): Defsubr it.
7541 * fns.c (sxhash): As far as possible, merge calculation of
7542 hash code for symbols and strings.
59dede22 7543
27540e81
EZ
75442004-11-06 Eli Zaretskii <eliz@gnu.org>
7545
7546 * frame.c (syms_of_frame): Fix the example in the doc string.
7547
df470e3b
JD
75482004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7549
7550 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
7551
7552 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
7553 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 7554
4cc8522c
LT
75552004-11-05 Luc Teirlinck <teirllm@auburn.edu>
7556
7557 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
7558
d4a42098
KS
75592004-11-05 Kim F. Storm <storm@cua.dk>
7560
a8490886
KS
7561 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
7562
d4a42098
KS
7563 * fileio.c (Ffile_modes): Doc fix.
7564 (auto_save_1): Check for Ffile_modes nil value.
7565
36a2b04c
KS
75662004-11-05 Kim F. Storm <storm@cua.dk>
7567
7568 * xselect.c (struct selection_event_queue, selection_queue)
7569 (x_queue_selection_requests, x_queue_event)
7570 (x_start_queuing_selection_requests)
7571 (x_stop_queuing_selection_requests): Add new queue for selection
7572 input events to replace previous XEvent queue in xterm.c.
7573 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
7574 (x_reply_selection_request): Adapt to new queue.
7575 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
7576 (x_handle_selection_request, x_handle_selection_clear): Make static.
7577 (x_handle_selection_event): New function. May queue selection events.
7578 (wait_for_property_change_unwind): Use save_value instead of cons.
7579 Clear property_change_reply_object.
7580 (wait_for_property_change): Abort if already waiting.
7581 Use save_value instead of cons for unwind data.
7582 (x_handle_property_notify): Skip events already arrived, but don't
7583 free them, as "arrived" field is checked by wait_for_property_change,
7584 and it will be freed by unwind or explicit unexpect_property_change.
7585 (x_get_foreign_selection): Add to new queue.
7586 (receive_incremental_selection): Don't unexpect wait_object when done
7587 as it has already been freed by previous wait_for_property_change.
7588
7589 * xterm.h (x_start_queuing_selection_requests)
7590 (x_stop_queuing_selection_requests, x_handle_selection_request)
7591 (x_handle_selection_clear): Remove prototypes.
7592 (x_handle_selection_event): Add prototype.
7593
7594 * xterm.c (handle_one_xevent): Don't queue X selection events
7595 here, it may be too late if we start queuing after we have already
7596 stored some selection events into the kbd buffer.
7597 (struct selection_event_queue, queue, x_queue_selection_requests)
7598 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
7599 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
7600 (x_catch_errors_unwind): Block input around final XSync.
7601
7602 * keyboard.h (kbd_buffer_unget_event): Add prototype.
7603
7604 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
7605 (kbd_buffer_unget_event): New function.
7606 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
7607 and use x_handle_selection_event.
7608 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
7609
9c3ad9e1
JD
76102004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7611
7612 * xselect.c (TRACE3): New debug macro.
7613 (x_reply_selection_request): Use it.
7614 (receive_incremental_selection): In call to TRACE0, the name of
7615 a symbol is in xname.
7616
a33b89de
KS
76172004-11-05 Kim F. Storm <storm@cua.dk>
7618
7619 * fontset.c (fontset_pattern_regexp): Use unsigned char.
7620
a872928c
JD
76212004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7622
88208bb8
JD
7623 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
7624
78819ebb 7625 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
7626
7627 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 7628 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
7629 * xfns.c (syms_of_xfns): ... to here.
7630
a872928c
JD
7631 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
7632 it doesn't start with /.
7633
b912921c
KH
76342004-11-04 Kenichi Handa <handa@m17n.org>
7635
7636 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
7637 treat it as a literal character.
7638
c524d9a6
KS
76392004-11-03 Kim F. Storm <storm@cua.dk>
7640
7641 * .gdbinit (ppt): New function.
7642
8cfd0f36
JD
76432004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7644
a11e1dce
JD
7645 * xterm.c (x_window_to_scroll_bar): Only call
7646 xg_get_scroll_id_for_window if toolkit scroll bars are used.
7647
8cfd0f36
JD
7648 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
7649 of save.
7650
a93563fd
AS
76512004-11-02 Andreas Schwab <schwab@suse.de>
7652
7653 * window.c (Fscroll_right): Fix last change.
7654
2b2d59d8
KS
76552004-11-02 Kim F. Storm <storm@cua.dk>
7656
7657 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
7658
76592004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7660
7661 * callproc.c (Fcall_process): Block input around vfork.
7662
ca28104d
KS
76632004-11-02 Kim F. Storm <storm@cua.dk>
7664
7665 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
7666 (syms_of_eval): Defsubr it.
7667
29bb7127
RS
76682004-11-02 Richard M. Stallman <rms@gnu.org>
7669
7670 * insdel.c (replace_range_2): New function.
7671
7672 * casefiddle.c (casify_region): Handle changes in byte-length
7673 using replace_range_2.
7674
7675 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
7676
b6189c3b 7677 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
7678 Subtract 1 from pos when checking previous newline for invisibility.
7679
7680 * window.c (window_scroll_pixel_based): Update preserve_y
7681 for header line if any.
7682 (Fscroll_left, Fscroll_right): Don't call interactive_p;
7683 use a new second argument instead.
7684
7685 * eval.c (Fcall_interactive_p): New function.
7686 (interactive_p): Don't test INTERACTIVE here.
7687 (Finteractive_p): Doc fix.
7688
7689 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
7690
b6189c3b 76912004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
7692
7693 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 7694 comparing font names.
a3fe4aaf 7695
2a00cdb4
JD
76962004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7697
f9d64bb3
JD
7698 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
7699 Fx_file_dialog if only directories should be read.
7700
7701 * lisp.h: Fx_file_dialog takes 5 parameters.
7702
32e2fb04
SM
7703 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
7704 Add parameter only_dir_p.
f9d64bb3
JD
7705 In Motif version, don't put DEFAULT_FILENAME in filter part of the
7706 dialog, just text field part. Do not add DEFAULT_FILENAME
7707 to list of files if it isn't there.
7708 In GTK version, pass only_dir_p parameter to xg_get_file_name.
7709
32e2fb04
SM
7710 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
7711 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
7712 a save dialog, add option kNavDontConfirmReplacement, change title
7713 to "Enter name", change text for save button to "Ok".
7714
32e2fb04
SM
7715 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
7716 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
7717
7718 * gtkutil.c (xg_get_file_with_chooser)
7719 (xg_get_file_with_selection): New functions, only defined ifdef
7720 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
7721 respectively.
7722 (xg_get_file_name): Add parameter only_dir_p.
7723 Call xg_get_file_with_chooser or xg_get_file_with_selection
7724 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
7725 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
7726
7727 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
7728
2a00cdb4
JD
7729 * config.in: Rebuild (added HAVE_GTK_FILE_*).
7730
f6749d5d
KS
77312004-11-01 Kim F. Storm <storm@cua.dk>
7732
32e2fb04
SM
7733 * process.c (connect_wait_mask, num_pending_connects):
7734 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 7735 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
7736 (IF_NON_BLOCKING_CONNECT): New helper macro.
7737 (wait_reading_process_output): Only declare and use local vars
7738 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 7739
1a99fe1a
JR
77402004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
7741
7742 * w32term.c (x_scroll_run): Delete region objects after use.
7743
fcdb28b4
JD
77442004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7745
495ef86b
JD
7746 * xmenu.c: Add prototypes for forward function declarations.
7747 (popup_get_selection): Remove parameter do_timers, remove call to
7748 timer_check.
32e2fb04
SM
7749 (create_and_show_popup_menu, create_and_show_dialog):
7750 Remove parameter do_timers from call to popup_get_selection.
495ef86b 7751
12e6566a
JD
7752 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
7753 tool_bar_items and assign the result to f->tool_bar_items if
7754 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
7755 tool_bar_items to assignment of result.
7756
fcdb28b4
JD
7757 * atimer.c (alarm_signal_handler): Do not call set_alarm if
7758 pending_atmers is non-zero.
7759
1a1a0c4c
KS
77602004-10-31 Kim F. Storm <storm@cua.dk>
7761
7762 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
7763
a36f1680
JW
77642004-10-28 Will <will@glozer.net>
7765
1d1c7e75 7766 * macterm.c: Allow user to assign key modifiers to the Mac Option
a36f1680
JW
7767 key via a 'mac-option-modifier' variable.
7768
32e2fb04 77692004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
7770
7771 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
7772 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
7773 (x_handle_selection_request, x_handle_selection_clear)
7774 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
7775
4f71c13f
RS
77762004-10-28 Richard M. Stallman <rms@gnu.org>
7777
7778 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
7779
7780 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
7781
068f3848
SM
77822004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
7783
7784 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
7785 comment-starter over a 1-char one.
7786
4660a9e3
RS
77872004-10-27 Richard M. Stallman <rms@gnu.org>
7788
7789 * xdisp.c (get_next_display_element): In mode lines,
7790 treat newline and tab like other control characters.
7791
7792 * editfns.c (Fmessage): Doc fix.
7793
7794 * indent.c (vmotion): When moving up, check the newline before.
7795 Make prevline an int, not a Lisp_Object.
7796
233f3db6
KS
77972004-10-27 Kim F. Storm <storm@cua.dk>
7798
7799 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
7800 Only allocate info and discarded tables once.
7801
7802 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
7803 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
7804 (SAFE_FREE): Test it to determine if we need to unwind to free.
7805 Remove size arg. All users changed.
7806 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
7807
1442465d
JD
78082004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7809
7810 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
7811 (xg_destroy_widgets): Rename from remove_from_container.
7812 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
7813 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
7814 instead of remove_from_container.
7815 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
7816 (free_frame_tool_bar): Add comment.
7817
7818 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
7819 is not NULL before strcmp.
7820
c8636435
KS
78212004-10-26 Kim F. Storm <storm@cua.dk>
7822
7823 * callint.c (Fcall_interactively): Add 'U' code to get the
7824 up-event discarded by a previous 'k' or 'K' argument.
7825
5629f29b
DK
78262004-10-26 David Kastrup <dak@gnu.org>
7827
7828 * buffer.c (syms_of_buffer): Fix a few typos.
7829
4f2f546e
JD
78302004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7831
7832 * xsmfns.c: Put empty line between comment and function body.
7833 Use two spaces before comment end.
7834
fc1062f5
KH
78352004-10-25 Kenichi Handa <handa@m17n.org>
7836
7837 * fontset.c (fontset_pattern_regexp): Optimize for the case that
7838 PATTERN is full XLFD.
7839
be13f5e5
KH
78402004-10-24 Kenichi Handa <handa@m17n.org>
7841
7842 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
7843
7844 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
7845 (regex_compile): Return REG_ERANGEX if appropriate.
7846
d0ee2ed3
KH
78472004-10-22 Kenichi Handa <handa@m17n.org>
7848
7849 * editfns.c (Ftranslate_region_internal): New function.
7850 (syms_of_editfns): Defsubr it.
7851
63ea8ea5
JD
78522004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7853
7854 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
7855
9ba27690 78562004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 7857
068f3848
SM
7858 * xterm.h (x_output): New member `xic_base_fontname'.
7859 (FRAME_XIC_BASE_FONTNAME): New macro.
7860 (xic_free_xfontset): Declare.
c27ed90a 7861
068f3848
SM
7862 * xfns.c (xic_create_xfontset): Share fontsets between frames
7863 based on base_fontname.
7864 (xic_free_xfontset): New function.
7865 (free_frame_xic): Use it.
7866 (xic_set_xfontset): Ditto.
c27ed90a 7867
068f3848 7868 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
7869
7870
59508699
JR
78712004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
7872
7873 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
7874
dede2792
JD
78752004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7876
3aca2078
JD
7877 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
7878 XSync.
7879
dede2792
JD
7880 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
7881 New variables and constant.
7882 (main): Calculate heap_bss_diff. If we are dumping and the
7883 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
7884 and exec ourself again.
7885 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
7886 print a warning.
7887
7888 * lastfile.c: Make my_endbss and my_endbss_static available on all
7889 platforms.
7890
7891 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
7892 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
7893
1dc5ba01
LT
78942004-10-19 Luc Teirlinck <teirllm@auburn.edu>
7895
7896 * data.c (Flocal_variable_if_set_p): Doc fix.
7897
950090be
JR
78982004-10-19 Jason Rumney <jasonr@gnu.org>
7899
7900 * w32.c (init_environment): Set emacs_dir correctly when running
7901 emacs from the build directory.
7902
8550b998
RS
79032004-10-19 Richard M. Stallman <rms@gnu.org>
7904
7905 * editfns.c (Fdelete_and_extract_region):
7906 If region is empty, return null string.
7907
08dedea6
JD
79082004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7909
1dc5ba01 7910 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 7911 and canon_width.
068f3848 7912 (xg_frame_cleared): Remove.
08dedea6 7913
068f3848
SM
7914 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
7915 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
7916 (xg_create_scroll_bar): Put an event box widget between
7917 the scroll bar widget and the edit widget.
7918 (xg_show_scroll_bar): Show the parent widget (the event box).
7919 (xg_remove_scroll_bar): Destroy parent (the event box) also.
7920 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
7921 Move the parent (the event box) widget inside the fixed widget.
7922 Move window clear to xterm.c.
7923
068f3848 7924 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 7925
08dedea6 7926 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
7927 (x_scroll_bar_create, XTset_vertical_scroll_bar):
7928 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
7929 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
7930
8550b998 79312004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
7932
7933 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 7934
84338890
JD
79352004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7936
7937 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
7938 gdk_window_clear and move gdk_window_process_all_updates after
7939 clear so events are sent to the X server in correct order.
7940
6e1b0d8c
KH
79412004-10-18 Kenichi Handa <handa@m17n.org>
7942
7943 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
7944 comparing font names.
8550b998 7945 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
7946 (list_fontsets): Likewise.
7947
7948 * search.c (fast_string_match_ignore_case): New function.
7949
7950 * lisp.h (fast_string_match_ignore_case): Extern it.
7951
345e75a8
KS
79522004-10-17 Kim F. Storm <storm@cua.dk>
7953
7954 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
7955 than bitmap if there is not left fringe.
7956 (get_overlay_arrow_glyph_row): Also used on windows system.
7957 (display_line): Display overlay string if no left fringe.
7958
be13cbb7
JR
79592004-10-16 Jason Rumney <jasonr@gnu.org>
7960
7961 * w32fns.c (w32_font_match): Encode font name being matched.
7962
c2e2ede7
RS
79632004-10-16 Richard M. Stallman <rms@gnu.org>
7964
7965 * window.c (Fspecial_display_p): Doc fix.
7966
043f7f73 79672004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
7968
7969 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
7970 Don't ignore menus, because where-is-internal already does it for us.
7971
699a0392
KS
79722004-10-15 Kim F. Storm <storm@cua.dk>
7973
b3c7a89b
KS
7974 * xdisp.c (redisplay_window): Only update fringes and vertical
7975 border on window frames.
699a0392 7976
4e382b0f
AS
79772004-10-14 Andreas Schwab <schwab@suse.de>
7978
7979 * m/ia64.h (DATA_SEG_BITS): Don't define.
7980
329a7be2
KS
79812004-10-14 Kim F. Storm <storm@cua.dk>
7982
7983 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 7984 in some X versions.
329a7be2 7985
982241b1
SM
79862004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
7987
7988 * fns.c (map_char_table): Add missing gcpros.
7989
9238467d
SM
79902004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
7991
7992 * keymap.c (get_keymap): An autoload form is not a keymap.
7993
7994 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
7995
4440e3ca
KS
79962004-10-13 Kim F. Storm <storm@cua.dk>
7997
7cfdabde
KS
7998 * callproc.c (Fcall_process): Simplify handling of display arg.
7999 Resume `display_on_the_fly' once a coding system is determined.
8000
4440e3ca
KS
8001 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
8002
1c8dec6a
KS
80032004-10-12 Kim F. Storm <storm@cua.dk>
8004
8005 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
8006 caller, such as call-process, is not going to poll for input.
8007 (calc_line_height_property): Handle case where it->object is nil.
8008
8009 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
8010
170b174c
KH
80112004-10-12 Kenichi Handa <handa@m17n.org>
8012
9238467d
SM
8013 * xdisp.c (get_next_display_element):
8014 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
8015 chars in octal in unibyte buffer.
8016
b583964c
KS
80172004-10-12 Kim F. Storm <storm@cua.dk>
8018
8019 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
8020 are no ordinary bindings.
8021
29fabd8c
JD
80222004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8023
9238467d 8024 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 8025
c3f4c690
ST
80262004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8027
9238467d
SM
8028 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
8029 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 8030 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
8031 terminal frame.
8032 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
8033 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
8034 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
8035 Make a cancel file-open dialog be like C-g.
9238467d
SM
8036 * mac.c (mktime): Use emacs_mktime.
8037 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
8038 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 8039
9688f9eb
KS
80402004-10-10 Kim F. Storm <storm@cua.dk>
8041
8042 * keyboard.c (timer_resume_idle): New function to resume idle
8043 timer without resetting timers on the idle list.
52eb0373 8044 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
9688f9eb
KS
8045 (timer_start_idle, timer_stop_idle): Declare static.
8046 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
8047
8048 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
8049
f7f3a65f
ST
80502004-10-08 Steven Tamm <steventamm@mac.com>
8051
9238467d 8052 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 8053 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 8054 NULL where 0 should be used.
f7f3a65f
ST
8055 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
8056 objc/malloc.h
9238467d 8057 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 8058
3c7d999a
KS
80592004-10-07 Kim F. Storm <storm@cua.dk>
8060
8061 * xdisp.c (redisplay_window): Fix flicker on vertical line between
8062 windows. Update vertical line after drawing window fringes, but
8063 only if actually drawing any bitmaps--or there is no fringe.
8064
8065 * xterm.c (x_update_window_end): Likewise.
8066 * macterm.c (x_update_window_end): Likewise.
8067 * w32term.c (x_update_window_end): Likewise.
8068
8069 * fringe.c (draw_window_fringes): Return value now indicates if
8070 any fringe bitmaps were redrawn (or there are no fringes).
8071
8072 * dispextern.h (draw_window_fringes): Update prototype.
8073
bf06c82f
ST
80742004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8075
8076 * macfns.c (mac_get_window_bounds): Add extern.
8077 (x_real_positions): Use mac_get_window_bounds.
8078
8079 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
8080 xmenu.c (YAILOM).
3c7d999a 8081
bf06c82f
ST
8082 * macterm.c [!MAC_OSX]: Include Windows.h.
8083 (front_emacs_window): Rename from mac_front_window. All uses
8084 changed. Return the frontmost non-tooltip emacs window.
8085 (mac_get_window_bounds): New function.
8086 (x_calc_absolute_position): Use the difference of width and height
8087 between the inner and outer window.
8088 (x_set_offset): Specify window position by the coordinae of the
8089 outer window. Adjust the position if the title bar is completely
8090 outside the screen.
8091 (app_is_suspended, app_sleep_time): Remove unused variables.
8092 (do_app_resume, do_app_suspend): Remove their contents because
8093 window-activate/deactivate events will do the job.
8094 (do_zoom_window): Remove unused variables. Make compliant to the
8095 standard way of zooming. Set f->left_pos and f->top_pos.
8096 (XTread_socket): Don't use argument `expected'. Don't use
8097 FrontWindow to determine the clicked window. Exclude unprocessed
8098 mouseUp cases in the early stage. Add parentheses to fix operator
8099 precedence.
8100 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
8101
4cbbf6b7 81022004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
8103
8104 * config.in: Regenerate.
8105
8106 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
8107 HAVE_EXECSHIELD.
8108
b90ee8b5
JD
81092004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8110
8111 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
8112 a row if Alt or Meta has been found for that row. Also stop scanning
8113 for Keysyms for that row.
8114
904db1a2
KS
81152004-10-04 Kim F. Storm <storm@cua.dk>
8116
0207b8ad
KS
8117 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
8118 to list. Include overlay arrow bitmap in return value.
8119
25f7220c
KS
8120 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
8121 bars with fractional column width. If scroll bar separates two
8122 windows, move it towards the window it belongs to. Only update
8123 the padding area below the scroll bar widget when necessary,
8124 i.e. when scroll bar widget is created, moved, or resized.
8125
562020fe
KS
8126 * xdisp.c (define_frame_cursor1): Do not change frame cursor
8127 while tracking/dragging mouse.
8128 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
8129
37e34af7
KS
8130 * window.c (coordinates_in_window): Relax check for cursor
8131 on vertial border between mode lines.
8132 (Fset_window_fringes): Do not allow negative widths.
8133 (Fset_window_scroll_bars): Likewise.
8134
904db1a2
KS
8135 * .gdbinit (pp): Shorthand for p ARG + pr.
8136 (ff): New command: flush frame updates (X only).
8137
38fe4f64
MA
81382004-10-03 Michael Albinus <michael.albinus@gmx.de>
8139
8140 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
8141
9de36315
KH
81422004-09-30 Kenichi Handa <handa@m17n.org>
8143
07c381ad 8144 * process.c (send_process): Free composition data.
9de36315 8145
07c381ad 8146 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
8147
8148 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
8149 compositions to encode.
8150 (encode_coding_string): Likewise. Free composition data.
8151
d5fb8dab 81522004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
8153
8154 * coding.c (code_convert_region): Free composition data.
9de36315 8155
f2a54fbc
KS
81562004-09-29 Kim F. Storm <storm@cua.dk>
8157
dc5d6435
KS
8158 * fringe.c: Remove limit on number of bitmaps.
8159 (fringe_bitmaps, fringe_faces): Change to pointers.
8160 (max_fringe_bitmaps): New var.
8161 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
8162 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
8163
8164 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
8165 (struct glyph_row): Reorder fringe_bitmap related fields.
8166 (struct it): Likewise.
8167
8168 * w32term.c (fringe_bmp): Change to pointer.
8169 (max_fringe_bmp): New var.
8170 (w32_define_fringe_bitmap): Expand fringe_bmp.
8171 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
8172 (w32_destroy_fringe_bitmap): Likewise.
8173
81742004-09-29 Kim F. Storm <storm@cua.dk>
8175
8176 * fringe.c: Simplify last change.
f2a54fbc
KS
8177 (lookup_fringe_bitmap): New function.
8178 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
8179 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
8180 Keep standard bitmaps in Vfringe_bitmaps.
8181 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
8182 (Fset_fringe_bitmap_face): Likewise.
8183
8184 * dispextern.h (lookup_fringe_bitmap): Add prototype.
8185 (valid_fringe_bitmap_p): Remove prototype.
8186
8187 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
8188
841a8bca
KS
81892004-09-29 Kim F. Storm <storm@cua.dk>
8190
1f2da365
KS
8191 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
8192 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
8193
841a8bca
KS
8194 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
8195
8196 * fringe.c (Vfringe_bitmaps): New variable.
8197 (syms_of_fringe): DEFVAR_LISP it.
8198 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
8199 Change arg to Lisp_Object and fail if not an integer.
8200 (get_fringe_bitmap_name, resolve_fringe_bitmap)
8201 (destroy_fringe_bitmap): New functions.
9238467d
SM
8202 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
8203 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
8204 clear its fringe property.
8205 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
8206 Fdestroy_fringe_bitmap.
8207 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
8208 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
8209 and set fringe property. Signal error if no free slots.
8210 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
8211 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
8212
8213 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
8214 symbols with a fringe property.
8215
4d965590
KS
82162004-09-27 Kim F. Storm <storm@cua.dk>
8217
8218 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
8219 Doc fix. Format may now be a symbol or alist, not a cons.
8220
8221 * fringe.c (update_window_fringes): Handle new formats of
8222 indicate-buffer-boundaries (symbol or alist). No longer
8223 allow a simple cons.
8224 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
8225
e888c2b3
JD
82262004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8227
9238467d 8228 * config.in: Rebuild.
e888c2b3 8229
83f1cb94
JD
82302004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8231
8232 * config.in: Rebuild.
8233
9dd28cae 8234 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 8235
2c51754c
SM
82362004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
8237
8238 * xterm.c (x_term_init): Work around a bug in some X servers.
8239
3df5f8aa
RS
82402004-09-18 Richard M. Stallman <rms@gnu.org>
8241
557ca2c1
RS
8242 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
8243
3df5f8aa
RS
8244 * xdisp.c (try_window_reusing_current_matrix):
8245 Handle the case where we reach the old displayed text,
8246 out of sync with the old line boundary.
8247
9238467d 82482004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
8249
8250 * fileio.c (Finsert_file_contents): Fix case of replacement in a
8251 narrowed buffer.
8252
bfa02563
KS
82532004-09-14 Kim F. Storm <storm@cua.dk>
8254
a25fe164
KS
8255 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
8256
bfa02563
KS
8257 * xfaces.c (Qface_no_inherit): New var.
8258 (syms_of_xfaces): Intern and staticpro it.
8259 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
8260 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
8261 Don't increment face_change_count when face has non-nil
8262 face-no-inherit property.
8263
126f9c02
SM
82642004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
8265
892a8eb5
SM
8266 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
8267 (Fbyte_code): Remove dead code after `wrong_type_argument'.
8268
126f9c02 8269 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 8270 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 8271
c0ad3b38
KS
82722004-09-12 Kim F. Storm <storm@cua.dk>
8273
8274 * editfns.c (Fformat): Handle format strings with multiple text
8275 properties. Reverse text property list from the format string,
8276 so the positions are in increasing order.
8277
844fc085
JD
82782004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8279
8280 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
8281 x_uncatch_errors so that possible protocol errors are delivered.
8282
b106731c
EZ
82832004-09-10 Eli Zaretskii <eliz@gnu.org>
8284
21065c92
EZ
8285 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
8286 blockinput.h.
8287 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
8288 charset.h, and coding.h
9238467d 8289 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
8290 (term.o): Depend on window.h and keymap.h.
8291 (abbrev.o): Depend on syntax.h.
8292 (callint.o): Depend on keymap.h.
8293 (casefiddle.o): Depend on charset.h and keymap.h.
8294 (category.o): Depend on keymap.h.
8295 (coding.o): Depend on dispextern.h.
8296 (cmds.o): Depend on keyboard.h and keymap.h.
8297 (dispnew.o): Depend on indent.h and intervals.h.
8298 (doc.o): Depend on keymap.h.
8299 (editfns.o): Depend on frame.h.
8300 (emacs.o): Depend on dispextern.h.
8301 (fileio.o): Don't depend on ccl.h.
8302 (filelock.o): Depend on charset.h and coding.h.
8303 (frame.o): Depend on w32term.h and macterm.h.
8304 (insdel.o): Depend on region-cache.h.
8305 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
8306 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
8307 (search.o): Depend on $(INTERVALS_SRC).
8308 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
8309 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
8310 xterm.h, w32term.h, and macterm.h.
8311 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
8312 w32term.h, and macterm.h.
8313 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
8314 region-cache.h, xterm.h, w32term.h, and macterm.h.
8315 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
8316 (data.o): Depend on frame.h.
8317 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
8318 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
8319 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
8320 (intervals.o): Depend on keymap.h.
8321
9238467d
SM
8322 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
8323 Add debugging print-out to termscript.
b106731c 8324
64b7122d
RS
83252004-09-09 Richard M. Stallman <rms@gnu.org>
8326
8327 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
8328
5670531e
RS
83292004-09-08 Richard M. Stallman <rms@gnu.org>
8330
6cb4a892
RS
8331 * window.c (Fset_window_buffer): Doc fix.
8332
5670531e
RS
8333 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
8334
7e388eb7
JL
83352004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
8336
8337 * minibuf.c (history_delete_duplicates): New variable.
8338 (read_minibuf): Use it.
8339 (syms_of_minibuf): Create the corresponding lisp variable.
8340
370e3587
KS
83412004-09-08 Kim F. Storm <storm@cua.dk>
8342
8343 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
8344 overlay just before point.
8345
f844ba4e
LT
83462004-09-07 Luc Teirlinck <teirllm@auburn.edu>
8347
8348 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
8349 * buffer.c (reset_buffer, init_buffer_once):
8350 Handle auto_save_file_format field.
f844ba4e
LT
8351 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
8352 `buffer-auto-save-file-format'.
f844ba4e
LT
8353 * fileio.c: Delete declaration for removed Vauto_save_file_format.
8354 (build_annotations): Adapt to replacement of
8355 `auto-save-file-format' with the new buffer-local variable
8356 `buffer-auto-save-file-format'.
8357 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
8358
f0f90717
JR
83592004-09-07 Jason Rumney <jasonr@gnu.org>
8360
8361 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
8362
9238467d
SM
8363 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
8364 Handle Unicode menu titles.
f0f90717 8365
4e14f66c
KS
83662004-09-07 Kim F. Storm <storm@cua.dk>
8367
8368 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
8369 property from text property or overlay strings at point.
8370
9238467d 83712004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
8372
8373 * xmenu.c (update_submenu_strings): YAILOM.
8374 (set_frame_menubar): Make sure last_i is initialized.
8375
1f06d367
JR
83762004-09-03 Jason Rumney <jasonr@gnu.org>
8377
1806714a 8378 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
8379 (digest_single_submenu): Set lname and lkey in widget_value
8380 instead of name and key.
8381 (update_submenu_strings): New function.
8382 (set_frame_menubar): Remove call to inhibit_garbage_collection,
8383 call update_submenu_strings.
8384
8385 * w32menu.c (globals_of_w32menu): Check for Unicode API.
8386 (digest_single_submenu, w32_menu_show): Encode menu strings as
8387 UTF-8 if Unicode API is available.
8388 (utf8to16): New function.
8389 (add_menu_item): Use it when calling Unicode API.
1806714a 8390
46540080
KS
83912004-09-03 Kim F. Storm <storm@cua.dk>
8392
8393 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
8394 in overlay or text-property strings; set cursor on corresponding
8395 glyph rather than at end of the string.
8396
9277ba61 83972004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 8398
9277ba61 8399 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
8400 set a new one before obtaining the global coordinate.
8401 Use FRAME_MAC_WINDOW.
8402 (x_set_name, x_set_title): Encode title to UTF8.
8403 Use SetWindowTitleWithCFString.
9277ba61
ST
8404 (Fx_server_version): Get correct OS version.
8405
1806714a
SM
8406 * macmenu.c (add_menu_item): Remove unused variable `i'.
8407 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
8408
8409 * macterm.c (x_update_end): Move SetPortWindowPort to inside
8410 BLOCK_INPUT.
8411 (x_set_offset): Use FRAME_MAC_WINDOW.
8412
8413 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
8414 nontext_cursor if it is on a scroll bar.
8415
8416 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
8417 Carbon support.
1806714a
SM
8418 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
8419 Use LIBS_CARBON.
9277ba61 8420
b10daec7
JD
84212004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8422
8423 * xfns.c (x_set_name_internal): New function. Check if we shall call
8424 xfree before ENCODE_UTF_8.
8425 (x_set_name, x_set_title): Call x_set_name_internal.
8426
f7e22385
JR
84272004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
8428
8429 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
8430 reload it.
8431
2bf436c3
JD
84322004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8433
1806714a 8434 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
8435 (single_submenu): Set lname and lkey in widget_value
8436 instead of name and key.
8437 (update_submenu_strings): New function.
8438 (set_frame_menubar): Remove call to inhibit_garbage_collection,
8439 call update_submenu_strings.
8440
2bf436c3
JD
8441 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
8442 instead of name and key.
8443 (update_submenu_strings): New function.
8444 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 8445 call update_submenu_strings.
2bf436c3
JD
8446
8447 * gtkutil.h (_widget_value): Added lname and lkey.
8448
11715f92
ST
84492004-08-30 Steven Tamm <steventamm@mac.com>
8450
8451 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
8452 by using different names for inner loop variables.
8453
5500be54
JD
84542004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8455
059cd329
JD
8456 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
8457 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
8458
5500be54
JD
8459 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
8460 tool bar items is 0.
8461
383418e5
ST
84622004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8463
8464 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
8465 strings in menu items.
8466 (single_submenu): Use ENCODE_MENU_STRING
8467 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
8468 button release isn't passed to event loop
8469 (add_menu_item): Use SetMenuItemWithCFString
8470
6eb3ee72
ST
84712004-08-26 Steven Tamm <steventamm@mac.com>
8472
8473 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
8474 tool-bar/menu click.
8475 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 8476
10b43ac3
JD
84772004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8478
2728b5d0
JD
8479 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
8480
10b43ac3
JD
8481 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8482 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8483 (x_top_window_to_frame): Return 0 if wdesc is None.
8484
2ee3b79e
RS
84852004-08-22 Richard M. Stallman <rms@gnu.org>
8486
8487 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
8488 HAVE_TERMIOS]: If there's no char for this signal, drop through
8489 and use system calls.
8490
8491 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
8492
9a1ba2ea
KS
84932004-08-20 Kim F. Storm <storm@cua.dk>
8494
8495 * process.c (wait_reading_process_output): Rename from
8496 wait_reading_process_input. All uses changed.
8497 (wait_reading_process_output_1): Rename from
8498 wait_reading_process_input_1. All uses changed.
8499
8500 * dispnew.c (Fsleep_for): Remove obsolete code.
8501
295f3b30
KH
85022004-08-20 Kenichi Handa <handa@m17n.org>
8503
8504 * syntax.c (skip_chars): Fix for unibyte case.
8505
27615979
SM
85062004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8507
8508 * syntax.c (char_quoted): Mixup byte/char pos.
8509 (back_comment): Fixup globals in all cases.
8510
00267f94
JD
85112004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8512
8513 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
8514 passing it to gtk_window_set_title.
8515
2439909e
KS
85162004-08-19 Kim F. Storm <storm@cua.dk>
8517
6ba0f14c
KS
8518 * process.c (wait_reading_process_input): Clean up.
8519 Add wait_for_cell, wait_proc, and just_wait_proc args
8520 to avoid overloading `read_kbd' and `do_display' args.
8521 Change read_kbd arg to int. All callers changed.
8522
2439909e
KS
8523 * process.c (process_send_signal): Use CDISABLE.
8524
8525 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
8526
101c421e
KS
85272004-08-18 Kim F. Storm <storm@cua.dk>
8528
8529 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
8530 forward to wait_reading_process_input via DO_DISPLAY arg.
8531 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
8532 object, only process output from that process; also inhibit
8533 running timers if DO_DISPLAY==-2.
8534
c438dc33
KS
85352004-08-17 Kim F. Storm <storm@cua.dk>
8536
8537 * process.c (process_send_signal): Fix last change--use
8538 _POSIX_VDISABLE instead of CVDISABLE when available.
8539
8afc13c6
RS
85402004-08-16 Richard M. Stallman <rms@gnu.org>
8541
8542 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
8543 Set VQUIT and VINTR chars to the standard ones if they are unset.
8544 [AIX]: Don't do that here. And don't force VINTR to standard
8545 when SIGNALS_VIA_CHARACTERS.
8546
c438dc33 8547 * process.c (process_send_signal)
8afc13c6
RS
8548 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
8549 Do nothing if the character is CVDISABLE.
8550
8551 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
8552
c438dc33 8553 * intervals.c (move_if_not_intangible):
8afc13c6
RS
8554 Force POSITION to be between BEGV and ZV.
8555
6dad1714
JPW
85562004-08-14 John Paul Wallington <jpw@gnu.org>
8557
8558 * buffer.c (Frestore_buffer_modified_p): Doc fix.
8559
8560 * fileio.c (Fread_file_name): Doc fix.
8561
8562 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
8563
2bd77330
LT
85642004-08-09 Luc Teirlinck <teirllm@auburn.edu>
8565
8566 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
8567
c90e7e43
LT
85682004-08-08 Luc Teirlinck <teirllm@auburn.edu>
8569
8570 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 8571 Qdisabled_command_hook.
c90e7e43 8572 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 8573 Qdisabled_command_hook.
c90e7e43
LT
8574 (syms_of_keyboard): Ditto.
8575
81909a1a
LT
85762004-08-07 Luc Teirlinck <teirllm@auburn.edu>
8577
8578 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
8579 (syms_of_keymap) <key-translation-map>: Doc fixes.
8580
0cedd530
SM
85812004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
8582
1725a7c9
SM
8583 * window.c (window_list_1): YAILOM.
8584
0cedd530
SM
8585 * fileio.c (make_temp_name): Handle multibyte prefixes.
8586
2515a131
LT
85872004-08-06 Luc Teirlinck <teirllm@auburn.edu>
8588
8589 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
8590 Doc fix.
8591
c8b20fb7
KH
85922004-08-03 Kenichi Handa <handa@m17n.org>
8593
8594 * coding.c (decode_coding_string): Adjust coding->consumed, and
8595 etc. with shrinked_bytes.
8596
fb8b092b
KS
85972004-08-03 Kim F. Storm <storm@cua.dk>
8598
8599 * indent.c (compute_motion): Fix check for full width window
8600 in non-window case. Do not count left truncation glyph on
8601 window systems.
8602
df133612
LT
86032004-08-02 Luc Teirlinck <teirllm@auburn.edu>
8604
8605 * data.c (Finteractive_form): Doc fix.
8606
0f7a93c1
KS
86072004-08-02 Kim F. Storm <storm@cua.dk>
8608
8609 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
8610 properly accounting for continuation glyph on non-window systems.
8611 (Fcompute_motion): Use actual window width if WIDTH is nil, and
8612 actual window width/height if TOPOS is nil, properly accounting for
8613 continuation glyphs on non-window systems, and optional header lines.
8614 (vmotion): Let compute_motion calculate actual window width.
8615
8616 * window.c (window_scroll_line_based): Let compute_motion
8617 calculate actual window width.
8618
f491e1ed
KS
86192004-08-02 Kim F. Storm <storm@cua.dk>
8620
8621 * process.c (read_process_output): Use whole read buffer.
8622 Don't trigger adaptive read buffering on errors.
8623
83f64226
LT
86242004-07-31 Luc Teirlinck <teirllm@auburn.edu>
8625
8626 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
8627
1d1c7e75 8628 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
83f64226
LT
8629
8630 * callint.c (Fcall_interactively): Doc fix.
8631
8afc13c6
RS
86322004-07-30 Richard M. Stallman <rms@gnu.org>
8633
8634 * abbrev.c (Fexpand_abbrev): Undo previous change.
8635
7c111482
KS
86362004-07-30 Kim F. Storm <storm@cua.dk>
8637
8638 * editfns.c (Fformat): Allocate extra (dummy) element in info.
8639
ee945d08
LT
86402004-07-28 Luc Teirlinck <teirllm@auburn.edu>
8641
8642 * eval.c (Fdefvar, Fdefconst): Doc fixes.
8643
3f911c94
KS
86442004-07-27 Kim F. Storm <storm@cua.dk>
8645
8646 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
8647 we have ensured that the glyph fits on the current line (or returned
8648 MOVE_LINE_CONTINUED otherwise).
8649
f29ff8c7
KS
86502004-07-26 Kim F. Storm <storm@cua.dk>
8651
8652 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
8653 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
8654 if target position is at end of display line but char is not a newline.
8655
81159bb9
RS
86562004-07-25 Richard M. Stallman <rms@gnu.org>
8657
ab431b61
RS
8658 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
8659 instead of ON_VERTICAL_BORDER, when on scroll bar.
8660 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
8661
8662 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
8663
f29ff8c7 8664 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
8665 Take account of FRAME_INTERNAL_BORDER_WIDTH.
8666
8667 * alloc.c (check_cons_list): New function (contents commented out).
8668
fc820cc5
LT
86692004-07-24 Luc Teirlinck <teirllm@auburn.edu>
8670
8671 * xfaces.c (Fcolor_supported_p): Doc fix.
8672
8673 * frame.c (Fselect_frame, Fset_frame_selected_window)
8674 (Fframe_visible_p, Fraise_frame): Doc fixes.
8675
289978b5
LT
86762004-07-24 Richard M. Stallman <rms@gnu.org>
8677
78819ebb 8678 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
8679
8680 * fileio.c (Fwrite_region): Doc fix.
8681
8682 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
8683
8684 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
8685 only when a real abbrev is present.
8686
289978b5
LT
8687 * xfns.c (x_icon_verify): New function.
8688 (Fx_create_frame): Use it.
8689
d5fb8dab 86902004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
63cc10ae
KS
8691
8692 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
8693
36f826d4
KS
86942004-07-21 Kim F. Storm <storm@cua.dk>
8695
8696 * window.h (struct glyph_matrix): New members nrows_scale_factor
8697 and ncols_scale_factor.
8698
8699 * window.c (make_window): Initialize nrows_scale_factor and
8700 ncols_scale_factor members.
8701
8702 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
8703 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
8704 (required_matrix_height): Apply nrows_scale_factor.
8705 (required_matrix_width): Apply ncols_scale_factor.
8706
8707 * xdisp.c (display_line): Increment nrows_scale_factor and set
8708 fonts_changed_p if past last allocated row.
8709 (append_glyph, append_composite_glyph, produce_image_glyph)
8710 (append_stretch_glyph): Increment ncols_scale_factor and set
8711 fonts_changed_p if current area is full.
8712
5fc1c546
JD
87132004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8714
8715 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
8716
cb7516e5
LT
87172004-07-19 Luc Teirlinck <teirllm@auburn.edu>
8718
8719 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
8720 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
8721 (Fset_window_start, Fscroll_up, Fscroll_down)
8722 (Fother_window_for_scrolling, Fscroll_other_window)
8723 (Fsave_window_excursion, Fset_window_vscroll)
8724 (syms_of_window) <window-size-fixed>: Doc fixes.
8725
b6189c3b 87262004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
8727
8728 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
8729 ENCODE_SYSTEM for filenames.
8730
bfcf6608
ST
87312004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8732
8733 * mac.c (sys_select): Block input around call to
8734 ReceiveNextEvent to prevent breakage. Correctly handle
8735 blocking on event queue only by calling ReceiveNextEvent
8736 instead of select (since GUI events aren't on an fd).
8737 (sys_read): Remove function
8738 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
8739
e082ac9d
ST
87402004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8741
8742 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 8743 polling instead of 1 sec timeouts (like solaris).
e082ac9d 8744
cb7516e5 8745 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
8746 frame creation.
8747
8748 * keyboard.c: Undef SIGIO on Carbon
8749
8750 * atimer.c (alarm_signal_handler): Call alarm handlers after
8751 scheduling.
8752
8753 * eval.c (Feval): Remove quit_char test
8754
8755 * process.c (wait_reading_process_input): Remove clearing
8756 stdin for select call on process input.
8757
4b9da0fb
LT
87582004-07-18 Luc Teirlinck <teirllm@auburn.edu>
8759
1204e81c
LT
8760 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
8761 capitalization error in docstring.
4b9da0fb 8762
26503ad2
JB
87632004-07-17 Juanma Barranquero <lektu@terra.es>
8764
8765 * keyboard.c (not_single_kboard_state): Do nothing unless
8766 MULTI_KBOARD is defined.
8767
3751eb00
RS
87682004-07-17 Richard M. Stallman <rms@gnu.org>
8769
8770 * window.c (coordinates_in_window): Inside the window but outside
8771 its box to the L or R, return ON_VERTICAL_BORDER.
8772 (window_list_1): Rotate the list to start with WINDOW.
8773
8774 * print.c (print_preprocess): Test for print_depth at limit
8775 before entering in being_printed.
8776
8777 * keyboard.c (not_single_kboard_state): New function.
8778 (stuff_buffered_input): Now no-op only if no SIGTSTP.
8779
8780 * frame.c (Fdelete_frame): If we're in single_bboard_state on
8781 this kboard, and we delete its last frame, go to any_kboard_state.
8782
8783 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
8784
b6189c3b 87852004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
8786
8787 * w32fns.c (Fx_file_dialog): Encode strings in system coding
8788 system before passing them to OS functions for display.
8789
0f6af254
DK
87902004-07-15 David Kastrup <dak@gnu.org>
8791
f9253326
KS
8792 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
8793 Apparently fixes an abort condition.
0f6af254 8794
386c8f42
LT
87952004-07-14 Luc Teirlinck <teirllm@auburn.edu>
8796
8797 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
8798 instead of a cons.
8799
366511da
MB
88002004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8801
8802 * keyboard.c (echo_dash): Do nothing if there already is a dash
8803 at the end of the echo string.
8804
f85409d3
KS
88052004-07-12 Kim F. Storm <storm@cua.dk>
8806
8807 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
8808 if GC_MARK_STACK.
8809
0ba2e87b
LT
88102004-07-10 Luc Teirlinck <teirllm@auburn.edu>
8811
da38045d
LT
8812 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
8813
9dd28cae 8814 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
0ba2e87b
LT
8815 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
8816 (Freplace_buffer_in_windows, Fset_window_buffer)
8817 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
8818 (syms_of_window): Expand docstring of `display-buffer-function'.
8819
5668fbb8
LT
88202004-07-09 Luc Teirlinck <teirllm@auburn.edu>
8821
8822 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
8823 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
8824 that time values of the type (HIGH . LOW) are considered obsolete.
8825
a085bf9d
LT
88262004-07-06 Luc Teirlinck <teirllm@auburn.edu>
8827
669de2fb
LT
8828 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
8829 docstring.
8830
bac66325 8831 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 8832
8e975df9
JPW
88332004-07-06 John Paul Wallington <jpw@gnu.org>
8834
8835 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
8836
fa164e6a
JPW
8837 * fns.c (Fclear_string): Signal an error if STRING is not a string.
8838
2bac9bb1
JD
88392004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8840
8841 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
8842 instead of CGMainDisplayID (only in OSX 10.2 and later).
8843
316ef0dc
JPW
88442004-07-04 John Paul Wallington <jpw@gnu.org>
8845
8846 * fileio.c (read_file_name_completion_ignore_case): New variable.
8847 (syms_of_fileio): Declare and initialise it.
8848 (Fread_file_name): Bind `completion-ignore-case' to respect it.
8849
2a1a35c6
EZ
88502004-07-03 Eli Zaretskii <eliz@gnu.org>
8851
8852 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
8853 for event.x and event.y.
8854
33a72331
KH
88552004-07-01 Kenichi Handa <handa@m17n.org>
8856
8857 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
8858 after getting a new string by pre-write-conversion.
8859
9238467d 88602004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
8861
8862 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
8863 (x_calc_absolute_position): Remove unused var `child'.
8864
8865 * xfaces.c (x_supports_face_attributes_p)
8866 (Fdisplay_supports_face_attributes_p): YAILOM.
8867 (tty_supports_face_attributes_p): Remove unused var `i'.
8868
8869 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
8870 back_unibyte_ok.
8871
8872 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
8873
8874 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
8875
8876 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
8877
f96ec754
AS
88782004-06-30 Andreas Schwab <schwab@suse.de>
8879
8880 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
8881 (Finit_image_library): Pass LIBRARIES through to
8882 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
8883 (lookup_image_type): Pass Qnil as second argument to
8884 Finit_image_library.
8885
78819ebb 8886 * lisp.h (Finit_image_library): Declare.
f96ec754 8887
59feca74 88882004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 8889
31983645
AS
8890 * macterm.c (do_window_activate, do_window_deactivate): Remove.
8891 (XTread_socket): Send mouse button events to the toolbox
8892 dispatcher even when the mouse is grabbed. Don't process window
8893 activate events for non-Emacs windows. Replace function calls to
8894 do_window_activate and do_window_deactivate with their contents.
8895 Reset mouse grabbing status when a window is deactivated.
59feca74 8896
c61278bb
ST
88972004-06-29 Steven Tamm <steventamm@mac.com>
8898
8899 * macterm.c (mac_get_emulated_btn)
8900 (mac_event_to_emacs_modifiers): Fix emulated mouse button
8901 support to correctly mask out modifiers.
8902
c3762cbd
DK
89032004-06-29 David Kastrup <dak@gnu.org>
8904
8905 * search.c (Fset_match_data): Allow buffer before end of list
8906 which can happen if set-match-data is using a pre-consed list.
8907
c61278bb 89082004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
8909
8910 * macterm.c (XTread_socket): Correctly set the frame position
8911 after the window is moved.
8912
74cdfe05
JD
89132004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8914
8915 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
8916 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
8917 (xg_get_image_for_pixmap): Add workaround for monochrome displays
8918 so insensitive and activated icons look ok.
74cdfe05 8919
ef544dc8
JR
89202004-06-27 Jason Rumney <jasonr@gnu.org>
8921
8922 * w32fns.c (file_dialog_callback): Disable edit control if set
8923 to directories only on CDN_INITDONE message.
8924 (Fx_file_dialog): Default to directories only when prompt starts
8925 with "Dired".
8926
7b7990cc
KS
89272004-06-25 Kim F. Storm <storm@cua.dk>
8928
8929 * alloc.c (allocate_misc): Update total_free_markers.
8930 (free_misc): New function.
8931 (safe_alloca_unwind, free_marker): Use it.
8932
8933 * lisp.h (free_misc): Add prototype.
8934
8935 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
8936
d8c379f8
RS
89372004-06-24 Richard M. Stallman <rms@gnu.org>
8938
8939 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
8940 (syms_of_emacs): Lisp variables deleted.
8941
559cdd07
DK
89422004-06-23 David Kastrup <dak@gnu.org>
8943
94939b84
DK
8944 * search.c (Freplace_match): Adjust the match-data more thoroughly
8945 when replacing strings in the buffer.
8946 (Fmatch_data): When INTEGERS is non-nil and the last match was in
8947 a buffer, add the buffer as last element to the match data.
8948 (Fset_match_data): If an additional element of the match-data is a
8949 buffer, restore it to last_thing_searched.
c8d09ad8 8950 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
8951 (restore_match_data): Restore it again.
8952
dce417e7
LT
89532004-06-23 Luc Teirlinck <teirllm@auburn.edu>
8954
8955 * keymap.c (Ftext_char_description): Doc fix.
8956 * doc.c (Fsnarf_documentation): Doc fix.
8957
ef54b2d0
KS
89582004-06-22 Kim F. Storm <storm@cua.dk>
8959
b5bc4d05
KS
8960 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
8961
ef54b2d0
KS
8962 * lisp.h (struct Lisp_Save_Value): New member dogc.
8963 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
8964 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
8965 (SAFE_FREE_LISP): New macro.
8966
8967 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
8968 (make_save_value): Init new dogc member.
8969 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
8970
8971 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
8972 SAFE_FREE_LISP macros.
8973
3d33d993
KS
89742004-06-22 Kim F. Storm <storm@cua.dk>
8975
8976 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
8977 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
8978 in that memory area are unknown to GC. Add comments.
8979
8980 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
8981
5c917f98
KS
89822004-06-21 Kim F. Storm <storm@cua.dk>
8983
8984 * lisp.h (MAX_ALLOCA): Define here.
8985 (safe_alloca_unwind): Add prototype.
8986 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
8987
8988 * alloc.c (safe_alloca_unwind): New function.
8989
8990 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
8991
8992 * charset.c (Fstring): Use SAFE_ALLOCA.
8993
8994 * coding.c (MAX_ALLOCA): Remove define.
8995
8996 * data.c (MAX_ALLOCA): Remove define.
8997 (Faset): Use SAFE_ALLOCA.
8998
8999 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
9000
9001 * fns.c (string_make_multibyte, string_to_multibyte)
9002 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
9003 (MAX_ALLOCA): Remove define.
9004 (Fbase64_encode_region, Fbase64_encode_string)
9005 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
9006 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
9007 memory leak if encoding fails.
9008
9009 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
9010
9a09408e
EZ
90112004-06-21 Eli Zaretskii <eliz@gnu.org>
9012
9013 * print.c (Fwith_output_to_temp_buffer): Doc fix.
9014
376de739
RS
90152004-06-20 Richard M. Stallman <rms@gnu.org>
9016
9017 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
9018
9019 * search.c (match_limit): Cleaner err msg when no match data available.
9020
9021 * window.c (syms_of_window): Doc fix.
9022
9023 * keyboard.c (command_loop_1): Handle values `only' and `identity'
9024 for Vtransient_mark_mode.
9025
9026 * buffer.c (syms_of_buffer): Doc fix.
9027
acd81db9
DK
90282004-06-21 David Kastrup <dak@gnu.org>
9029
9030 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
9031 and unbinding of `case-fold-search' according to
9032 `completion-ignore-case' around calls of string-match and
9033 predicates, respectively. Should give satisfactory performance
9034 in all relevant cases.
9035
f303762d
JD
90362004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9037
95911c74
JD
9038 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
9039 clip_x/y_origin.
9040
a6cb6b78
JD
9041 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
9042
f303762d
JD
9043 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
9044
9045 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
9046 on Mac OSX.
9047
bbdb2684
LT
90482004-06-16 Luc Teirlinck <teirllm@auburn.edu>
9049
9050 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
9051
5ea48b1c
KS
90522004-06-16 Kim F. Storm <storm@cua.dk>
9053
9054 * dispextern.h (Vimage_types): Remove extern.
9055
803aac3e
MB
90562004-06-16 Miles Bader <miles@gnu.org>
9057
9058 * image.c (lookup_image_type): Initialize image type if necessary.
9059
cdc97764
KS
90602004-06-15 Kim F. Storm <storm@cua.dk>
9061
c4a5739c
KS
9062 * xdisp.c (try_cursor_movement): Exclude header line from scroll
9063 margin at top of window.
9064 (try_window_reusing_current_matrix): Calculate proper cursor position
9065 after scrolling up with non-zero scroll margin, as the old cursor
9066 position corresponds to value of PT before executing this command.
9067 (try_window_id): Consider scroll margin at bottom of window too;
9068 otherwise we fail to scroll when hl-line-mode is enabled.
9069
cdc97764
KS
9070 * syntax.c (skip_chars): Only recognize [:class:] when it has the
9071 proper format and class is a lower-case word.
9072
5b166323
JD
90732004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9074
9075 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 9076 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
9077 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
9078 xg_get_gdk_pixmap_and_mask.
cdc97764 9079
5b166323
JD
9080 * xterm.h (struct x_display_info): Typo in comment fixed.
9081
1ebd4f78
JB
90822004-06-14 Juanma Barranquero <lektu@terra.es>
9083
9084 * dispextern.h (Vimage_types): Make it conditional on
9085 HAVE_WINDOW_SYSTEM.
9086
9087 * image.c (Vimage_types): Move from xdisp.c.
9088 (Vimage_type_cache): New variable.
9089 (define_image_type): New argument indicating whether an image
9090 library was loaded; cache loaded status and return t on success,
9091 nil otherwise.
9092 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
9093 (w32_delayed_load): New function to load an image library from a
9094 list of possible filenames.
9095 (init_xpm_functions, init_png_functions, init_jpeg_functions)
9096 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 9097 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
9098 (Finit_image_library): New function, extracted from `init_image'.
9099 Try to initialize an image library on demand and cache whether we
9100 were successful or not.
9101 (syms_of_image): Initialize `Vimage_types' and
9102 `Vimage_type_cache'. Add recognized image types to Vimage_types.
9103 Export `init-image-library'.
9104 (init_image): Remove initialization of all image types, except xbm
9105 and pbm.
9106
9107 * xdisp.c (Vimage_types): Delete (moved to image.c).
9108
904ee128
AS
91092004-06-14 Andreas Schwab <schwab@suse.de>
9110
9111 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
9112 Avoid calling specbind when completion-regexp-list is empty.
9113
092de21d
RS
91142004-06-13 Richard M. Stallman <rms@gnu.org>
9115
9116 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
9117 (re_wctype, re_iswctype, re_wctype_to_bit):
9118 Non-function definitions moved here from regex.c.
1ebd4f78 9119
092de21d
RS
9120 * regex.c (re_wctype, re_iswctype): Function defs longer static.
9121 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
9122 (re_wctype, re_iswctype, re_wctype_to_bit):
9123 Non-function definitions moved to regex.h.
9124
9125 * window.c (Fselect_window): Doc fix.
9126
9127 * syntax.c: Include regex.h.
9128 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
9129 If requested, make a list of classes, then check the scanned
9130 chars for membership in them.
9131 (in_classes): New function.
9132 Doc fix.
9133
9134 * keyboard.c (cmd_error): Don't call any_kboard_state
9135 if inside a recursive edit level.
9136
9ba27690 91372004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
9138
9139 * keyboard.c (command_loop): Call any_kboard_state before
9140 command_loop_2 when at top level.
9141
3ebc0939
AS
91422004-06-13 Andreas Schwab <schwab@suse.de>
9143
cea5d0d4
AS
9144 * print.c (print_object): Always use %ld for printing EMACS_INT.
9145
9146 * keyboard.c (cancel_hourglass_unwind): Return a value.
9147 (modify_event_symbol): Always use %ld for printing EMACS_INT.
9148 (Fexecute_extended_command): Likewise.
9149
9150 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
9151 avoid clashes.
9152 (SYNTAX): Likewise.
9153 (SYNTAX_WITH_FLAGS): Likewise.
9154 (SYNTAX_MATCH): Likewise.
9155
9156 * syntax.c (char_quoted): Avoid warning about undefined operation.
9157 (find_defun_start): Likewise.
9158 (scan_lists): Likewise.
9159 (INC_FROM): Likewise.
9160 (scan_sexps_forward): Likewise.
9161
be8c4ce4
AS
9162 * image.c: Include <ctype.h>.
9163
3ebc0939
AS
9164 * xfaces.c (face_attr_equal_p): Declare parameters.
9165
6fb41b5b
KH
91662004-06-13 Kenichi Handa <handa@m17n.org>
9167
9168 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
9169
fc3095ce
EZ
91702004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
9171
9172 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
9173
66189a40
KH
91742004-06-12 Kenichi Handa <handa@m17n.org>
9175
9176 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
9177 ccl_prog_stack_struct and update it.
9178 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
9179 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
9180 ccl->eof_ic on EOF.
9181 (ccl_debug_hook): New function.
9182 (struct ccl_prog_stack): New member eof_ic.
9183 (ccl_driver): Handle EOF in subrountine call correctly.
9184
91852004-06-11 Kenichi Handa <handa@m17n.org>
9186
a9b43336 9187 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
66189a40 9188
1da71023
KS
91892004-06-11 Kim F. Storm <storm@cua.dk>
9190
9191 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
9192
e9efcef4
JB
91932004-06-11 Juanma Barranquero <lektu@terra.es>
9194
9195 * keyboard.c (Fposn_at_point): Doc fix.
9196
9b9ceb61
DK
91972004-06-11 David Kastrup <dak@gnu.org>
9198
9199 * search.c (match_limit): Don't flag an error if match-data
9200 exceeding the allocated search_regs.num_regs gets requested, just
9201 return Qnil.
9202
6e87ac8f
MB
92032004-06-08 Miles Bader <miles@gnu.org>
9204
9205 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
9206
0b0dea7b
JB
92072004-06-07 Juanma Barranquero <lektu@terra.es>
9208
9209 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
9210 (Fcurrent_time_string, Fcurrent_time_zone)
9211 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
9212
a0a23346
MB
92132004-06-07 Miles Bader <miles@gnu.org>
9214
08384afd 9215 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
9216 (push_named_merge_point): New function.
9217 (merge_named_face): New function.
9218 (merge_face_ref, face_at_buffer_position, face_at_string_position):
9219 Use `merge_named_face'.
9220 (merge_face_inheritance): Function removed.
c8d09ad8 9221 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
9222 Add new `err_msgs' and `named_merge_points' args. Return error
9223 status. Only print error messages if ERR_MSGS is true. Don't try to
9224 do :inherit attribute validation.
9225 (merge_face_heights): Handle `unspecified' in both directions.
9226 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
9227 Call `merge_face_ref' instead of `merge_face_inheritance'.
9228 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
9229 (compute_char_face, face_at_buffer_position)
9230 (face_at_string_position): Call `merge_face_ref' instead of
9231 `merge_face_vector_with_property'.
9232
12d5b185
KH
92332004-06-07 Kenichi Handa <handa@m17n.org>
9234
9235 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
9236 the necessary places.
9237
2e2d7ee6
KS
92382004-06-07 Kim F. Storm <storm@cua.dk>
9239
9240 * process.c (Fdelete_process): Undo 2004-05-28 change.
9241 Instead, call status_notify also for network process.
9242 (status_message): Use process instead of status as arg.
9243 Give messages "deleted" or "connection broken by remote peer" for
9244 an exited network process.
9245 (status_notify): Change call to status_message.
9246 (read_process_output): Increase readmax to 4096. Do not increase
9247 buffer size for datagram channels (default is now large enough).
9248
fcf0d299
ST
92492004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
9250
9251 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
9252 problem due to newly defined variable.
9253
0722292b
MB
92542004-06-06 Miles Bader <miles@gnu.org>
9255
9256 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
9257 immediately if non-interactive or not initialized.
9258
ddfb8369
RS
92592004-06-05 Richard M. Stallman <rms@gnu.org>
9260
9261 * minibuf.c (Fcompleting_read): Doc fix.
9262
57015754
AS
92632004-06-05 Andreas Schwab <schwab@suse.de>
9264
9265 * macfns.c (x_create_tip_frame): Fix declaration after statement.
9266
23715ea6
JB
92672004-06-05 Juanma Barranquero <lektu@terra.es>
9268
9269 * keymap.c (Fdescribe_vector): Fix docstring.
9270 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
9271
8e330b22
MB
92722004-06-05 Miles Bader <miles@gnu.org>
9273
9274 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
9275 attributes have different values than the default face.
9276
9742a3a6
EZ
92772004-06-04 Eli Zaretskii <eliz@gnu.org>
9278
9279 * xfaces.c (x_supports_face_attributes_p): Make this function
9280 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
9281 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
9282 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 9283
9717e36c
MB
92842004-06-04 Miles Bader <miles@gnu.org>
9285
9286 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
9287 from Ftty_supports_face_attributes_p.
9288 (x_supports_face_attributes_p): New function.
9289 (Ftty_supports_face_attributes_p): Function deleted.
9290 (Fdisplay_supports_face_attributes_p): New function.
9291 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 9292 (face_attr_equal_p): New function.
9717e36c
MB
9293 (lface_equal_p): Use it.
9294
52deb19f
JB
92952004-06-03 Juanma Barranquero <lektu@terra.es>
9296
9297 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
9298 (Vw32_color_map): Fix typo in docstring.
9299 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
9300 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
9301 Make argument names match their use in docstring.
9302
86d373e6
JB
93032004-06-02 Juanma Barranquero <lektu@terra.es>
9304
9305 Work around bugs/problems with MinGW builds of graphics libraries
9306 called from MSVC builds of Emacs.
9307
9308 * image.c (lookup_image): Make pointer to img static.
9309 (png_read_from_memory): Disable "global" optimization.
9310
2fb0ce67
SM
93112004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
9312
c8d09ad8
SM
9313 * eval.c (Fcondition_case): Fix usage. Simplify.
9314
2fb0ce67
SM
9315 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
9316
50bf7673
ST
93172004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9318
9319 * macfns.c: Don't include ccl.h.
9320 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
9321 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
9322 TextUtils.h.
c8d09ad8 9323 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
9324 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
9325 display height/width.
9326 (compute_tip_xy, Vx_max_tooltip_size): Declare.
9327 (unwind_create_tip_frame, compute_tip_xy): New functions.
9328 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
9329 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
9330 and last_show_tip_args.
2fb0ce67 9331
50bf7673
ST
9332 * macgui.h [!MAC_OSX]: Include Gestalt.h.
9333 (Cursor, No_Cursor): New defines.
c8d09ad8 9334 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
9335 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
9336
9337 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
9338
9339 * macterm.c: Don't include Gestalt.h.
9340 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
9341 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
9342 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
9343 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
9344 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
9345 (construct_mouse_click, XTmouse_position)
9346 (x_scroll_bar_report_motion, x_calc_absolute_position)
9347 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
9348 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
9349 (note_mouse_movement): Clear the mouse face and reset the pointer
9350 shape when the pointer goes outside the frame without grabbing.
9351 (mac_front_window): New function.
9352 (mac_window_to_frame): New macro.
9353 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
9354 (do_window_activate, do_window_deactivate, do_app_resume)
9355 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
9356 (do_zoom_window, mac_do_receive_drag, XTread_socket)
9357 (mac_check_for_quit_char): Use mac_front_window and/or
9358 mac_window_to_frame.
9359 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
9360 scroll-bar click event.
9361 (mac_define_frame_cursor): Change the pointer shape.
71b7a47f
YM
9362 (x_free_frame_resources): Reset tip_window to NULL when it is
9363 disposed of.
50bf7673 9364 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 9365 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
9366 (do_window_update): Don't do anything if the updated window is the
9367 tooltip window.
9368 (do_mouse_moved): Handle mouse movement events here (previously in
9369 XTread_socket). Clear the mouse face if
9370 dpyinfo->mouse_face_hidden is set.
9371 (do_os_event, do_events): Remove (now in XTread_socket).
9372 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
9373 Loop until all the events in the queue are processed.
9374 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
9375 contents of do_os_event and do_events. Remove mouse movement
9376 handling (now in do_mouse_moved). Add the case where
9377 Vmouse_highlight has an integer value.
9378 (NewMacWindow): Remove.
9379 (make_mac_frame): Do what NewMacWindow previously did. Don't do
9380 excess initializations.
9381 (make_mac_terminal_frame): Previous initializations in
9382 make_mac_frame are moved here.
c8d09ad8
SM
9383 (mac_initialize_display_info):
9384 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
9385
9386 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
9387 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
9388
08fd1251
RS
93892004-05-29 Richard M. Stallman <rms@gnu.org>
9390
9391 * lisp.h (truncate_undo_list): Update decl.
9392
9393 * alloc.c (undo_outer_limit): New variable.
9394 (syms_of_alloc): Defvar it.
9395 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
9396
9397 * undo.c (truncate_undo_list): New arg LIMITSIZE.
9398
9399 * alloc.c (lisp_align_malloc): Check for base == 0
9400 regardless of HAVE_POSIX_MEMALIGN.
9401 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
9402
227ef0ff
SM
94032004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9404
9405 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
9406 (marker_blocks_pending_free): Remove.
9407 (Fgarbage_collect): Sweep after cleaning up undo-lists.
9408 Mark the undo lists after claning them up.
9409 Don't free block in marker_blocks_pending_free.
9410 (mark_buffer): Don't mark undo_list.
9411 (gc_sweep): Sweep hash-tables and strings first.
9412 Do free marker blocks that are empty.
9413
034a6113
SM
94142004-05-28 Jim Blandy <jimb@redhat.com>
9415
9416 * regex.c (print_partial_compiled_pattern): Add missing 'break'
9417 after 'case wordend'. For symbeg and symend, print to stderr,
9418 like the other cases.
9419
33594a8d
NF
94202004-05-28 Noah Friedman <friedman@splode.com>
9421
9422 * process.c (Fdelete_process): Do not call remove_process.
9423
ce50a847
SM
94242004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9425
9426 * alloc.c (struct backtrace): Remove.
9427 (Fgarbage_collect): Use the new mark_backtrace.
9428
9429 * eval.c (mark_backtrace): New function.
9430
9431 * minibuf.c (run_exit_minibuf_hook): New function.
9432 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
9433 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
9434
1e8dae36
KS
94352004-05-27 Kim F. Storm <storm@cua.dk>
9436
9437 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
9438 over display properties, e.g. images, that replace buffer text.
9439
846faa3b
KS
94402004-05-25 Kim F. Storm <storm@cua.dk>
9441
9442 * alloc.c (marker_blocks_pending_free): New var.
9443 (gc_sweep): Store free marker blocks on that list.
9444 (Fgarbage_collect): Free them after undo-list cleanup.
9445
9446 * process.c (wait_reading_process_input): Check connect_wait_mask
9447 before actually accepting connection in case it has already been
9448 accepted due to recursion.
9449
b6189c3b 94502004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 9451
ce50a847
SM
9452 * coding.c (Fset_safe_terminal_coding_system_internal):
9453 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 9454
71d5a208
RS
94552004-05-22 Richard M. Stallman <rms@gnu.org>
9456
9457 * alloc.c (Fmake_string): Doc fix.
9458
9459 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
9460 and the alist pairs too.
9461
9462 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
9463
51391fb9
RF
9464 * emacs.c (main): Update copyright year.
9465
71d5a208
RS
9466 * fileio.c (Fread_file_name): Expand DIR if not absolute.
9467
9468 * insdel.c (del_range_2, replace_range): Don't write an anchor
9469 if the gap is empty.
9470
9471 * xdisp.c (try_scrolling): If scroll-up-aggressively or
9472 scroll-down-aggressively is small but positive, put point
9473 near the screen edge.
9474
f63fd14e
JB
94752004-05-22 Juanma Barranquero <lektu@terra.es>
9476
9477 * keymap.c (Fdefine_key): Doc fix.
9478
4d12067c
KS
94792004-05-22 Kim F. Storm <storm@cua.dk>
9480
9481 * alloc.c (struct backtrace): Add debug_on_exit member.
9482 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
9483 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
9484 the removed cons cells.
9485 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
9486 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
9487 any cons cells pointing to unallocated stings.
9488 Do not lisp_free any marker blocks, as there may still be pointers
9489 to them from buffer undo lists at this stage of GC.
9490
9491 * keyboard.c (struct backtrace): Add debug_on_exit member.
9492 (Fcommand_execute): Clear it.
9493
931285e2
LT
94942004-05-20 Luc Teirlinck <teirllm@auburn.edu>
9495
9496 * intervals.c (lookup_char_property): Do not prematurely return nil.
9497
669fa600
SM
94982004-05-19 Jim Blandy <jimb@redhat.com>
9499
9500 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 9501 beginning and end of symbols.
4d12067c 9502
669fa600
SM
9503 * regex.c (enum syntaxcode): Add Ssymbol.
9504 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
9505 (re_opcode_t): New opcodes `symbeg' and `symend'.
9506 (print_partial_compiled_pattern): Print the new opcodes properly.
9507 (regex_compile): Parse the new operators.
ce50a847 9508 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
9509 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
9510 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
9511 (re_match_2_internal): Match symbeg and symend.
9512
9513 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
9514
0d8c2e5c
KS
95152004-05-19 Kim F. Storm <storm@cua.dk>
9516
9517 * .gdbinit (xsymbol): Fix last change.
9518
669fa600
SM
95192004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
9520
9521 * .gdbinit (xprintstr): New fun.
9522 (xstring, xprintsym): Use it.
9523
9524 * w32proc.c (create_child): Use INTMASK.
9525
9526 * alloc.c (Fgarbage_collect): Do all the marking before flushing
9527 unmarked elements of the undo list.
9528
9a6a4c40
DP
95292004-05-18 David Ponce <david@dponce.com>
9530
9531 * print.c (print): Reset print_depth before to call print_object.
9532
f3c4ec74
JR
95332004-05-18 Jason Rumney <jasonr@gnu.org>
9534
9535 * w32console.c: Prefix RIF functions with w32con_ to avoid
9536 namespace clash with functions in term.c and w32term.c.
9537
9538 * w32menu.c (add_menu_item, w32_menu_display_help)
9539 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
9540
0d8c2e5c 9541 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 9542
6be49c3a
EZ
95432004-05-18 Eli Zaretskii <eliz@gnu.org>
9544
4d0b9a0a
EZ
9545 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
9546
6be49c3a
EZ
9547 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
9548 with make_number.
9549 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
9550 with XINT.
9551
0bc90bba
KS
95522004-05-18 Kim F. Storm <storm@cua.dk>
9553
89d19988
KS
9554 * blockinput.h (INPUT_BLOCKED_P): New macros.
9555
9556 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
9557 (Ftop_level): Unblock input if blocked.
9558
0bc90bba
KS
9559 * buffer.h (GET_OVERLAYS_AT): New macro.
9560 * msdos.c (IT_note_mouse_highlight): Use it.
9561 * textprop.c (get_char_property_and_overlay): Use it.
9562 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
9563 * xfaces.c (face_at_buffer_position): Use it.
9564
9565 * print.c (print_object): Increase buf size.
9566
653bd0f6
JR
95672004-05-17 Jason Rumney <jasonr@gnu.org>
9568
9569 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
9570 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
9571 Lisp_Object using i member.
9572 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
9573 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
9574 consistently.
9575
9576 * w32proc.c (create_child): Use make_number instead of masking pid.
9577
9578 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
9579 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
9580 Use EQ to compare Lisp_Objects.
9581 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
9582
9583 * w32term.c (w32_num_mouse_buttons): Rename from
9584 Vw32_num_mouse_buttons and make it an int.
9585
9586 * w32.c (init_environment): Use it.
9587
9588 * w32fns.c (w32_wnd_proc): Likewise.
9589
9590 * w32proc.c (w32_pipe_read_delay): Rename from
9591 Vw32_pipe_read_delay and make it an int.
9592
9593 * w32.c (_sys_read_ahead): Use it.
9594
9595 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
9596
9597 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
9598
9599 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
9600 (key_event): Don't mix Lisp_Object and int.
9601
9602 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
9603
9604 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
9605 modifiers in language change event.
9606
54b53ba7
KS
96072004-05-17 Kim F. Storm <storm@cua.dk>
9608
9609 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
9610 Such objects may be freed markers which still exist on an undo list.
9611
6e86a75d
JB
96122004-05-16 Juanma Barranquero <lektu@terra.es>
9613
9614 * data.c (Fset_default): Make argument names match their use in
9615 docstring.
9616
fc80da24
AS
96172004-05-15 Andreas Schwab <schwab@suse.de>
9618
9619 * emacs.c (gdb_array_mark_flag): Define.
9620 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
9621
c1380aa6
EZ
96222004-05-15 Eli Zaretskii <eliz@gnu.org>
9623
9624 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
9625 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
9626 defined for the MS-DOS build.
9627
89458937
SM
96282004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9629
9630 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
9631
08020f9a
KH
96322004-05-14 Kenichi Handa <handa@m17n.org>
9633
9634 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
9635
a433994a
ST
96362004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9637
9638 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
9639 section to frame.c section.
9640 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 9641 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 9642
a433994a 9643 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 9644
a433994a 9645 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 9646
a433994a
ST
9647 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
9648 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
9649 (XTread_socket): Fix int/Lisp_Object mixup.
9650 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 9651
a433994a
ST
9652 * macterm.h (struct frame, struct face, struct image)
9653 (display_x_get_resource, Fx_display_color_p)
89458937
SM
9654 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
9655 Add prototypes.
a433994a 9656
b51a51b9
KS
96572004-05-14 Kim F. Storm <storm@cua.dk>
9658
9659 * process.c (wait_reading_process_input): Make reentrant.
9660 Make Available and Connecting non-static. Save and restore value
9661 of waiting_for_user_input_p.
9662
2bde1dd8
KS
96632004-05-13 Kim F. Storm <storm@cua.dk>
9664
9665 * keyboard.c (mark_kboards): Don't mark x and y members
9666 that are overloaded in selection request events.
9667
a267ab4d
SM
96682004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9669
9670 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
9671
eb15ce9e
GM
96722004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
9673
9674 * window.c (Fdisplay_buffer, Fsplit_window)
9675 (split-height-threshold): Doc fix.
9676
7fc92635
JB
96772004-05-13 Juanma Barranquero <lektu@terra.es>
9678
9679 * xfaces.c (Ftty_supports_face_attributes_p)
9680 (Finternal_copy_lisp_face): Fix typo in docstring.
9681 (Finternal_get_lisp_face_attribute): Fix docstring.
9682
1ec2a572
JD
96832004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9684
9685 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
9686
ae9292e0
ST
96872004-05-11 Steven Tamm <steventamm@mac.com>
9688
9689 * macfns.c (Fx_create_frame): Default to using tool-bar by
9690 setting tool-bar-lines to 1 in default-frame-alist.
9691
96922004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
9693
9694 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
9695 (xpm_get_color_table_v, xpm_make_color_table_h)
9696 (xpm_put_color_table_h, xpm_get_color_table_h)
9697 (xpm_str_to_color_key, xpm_load_image, xpm_load)
9698 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 9699 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 9700
fe97e8df
ST
97012004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9702
a267ab4d 9703 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
9704 instead of FRAME_X_P
9705
b47e779e
KS
97062004-05-11 Kim F. Storm <storm@cua.dk>
9707
9708 * process.c (read_process_output): Grow decoding_buf when needed;
9709 this could cause a crash in allocate_string and compact_small_strings.
9710
cdc9b845
EZ
97112004-04-29 Jim Blandy <jimb@redhat.com>
9712
9713 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
9714 against proper opcode.
9715
aa7094ba
JB
97162004-05-10 Juanma Barranquero <lektu@terra.es>
9717
9718 * process.c (Fstart_process): Fix docstring.
9719
9720 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
9721 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
9722 (Fsplit_char, Fchar_charset): Make argument names match their use
9723 in docstring.
9724
e109331a
RS
97252004-05-10 Richard M. Stallman <rms@gnu.org>
9726
9727 * print.c (print_preprocess): Use being_printed, loop_count and
9728 halftail to detect overdeep nesting and cyclic cdr chains.
9729
9a28b921
AS
97302004-05-10 Andreas Schwab <schwab@suse.de>
9731
78819ebb 9732 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
9733
9734 * fileio.c (Frename_file): Remove extra argument in call to
9735 Fmake_symbolic_link.
9736
e2c02c1a
KS
97372004-05-10 Kim F. Storm <storm@cua.dk>
9738
9739 * xdisp.c (calc_line_height_property): Use string position when
9740 object is a string.
9741
cfe9d13e
KH
97422004-05-10 Kenichi Handa <handa@m17n.org>
9743
a57e8159
KH
9744 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
9745 inhibit-modification-hooks to t temporarily before calling
9746 Ferase_buffer.
9747
9748 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
9749 inhibit-modification-hooks to t temporarily before calling
9750 Ferase_buffer.
9751
9752 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
9753 inhibit-modification-hooks to t temporarily before calling
9754 Ferase_buffer.
9755
cfe9d13e
KH
9756 * fns.c (count_combining): Delete it.
9757 (concat): Don't check combining bytes.
9758
ceb96489
JR
97592004-05-09 Jason Rumney <jasonr@gnu.org>
9760
9761 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
9762 (globals_of_w32fns): Set it.
9763
b6189c3b 97642004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
9765
9766 * data.c (Fquo): Simplify.
9767
28712a21
JB
97682004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
9769
9770 * data.c (Fquo): If any argument is float, do the computation in
9771 floating point.
9772
0f0af7a8
JB
97732004-05-08 Juanma Barranquero <lektu@terra.es>
9774
88214ef6
JB
9775 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
9776 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
9777 Fix spelling of Emacs on docstring.
9778 (Fset_process_coding_system, Fprocess_coding_system)
9779 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
9780 Make argument names match their use in docstring.
9781 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
9782 Fix docstring.
9783
0f0af7a8
JB
9784 * editfns.c (Finsert_buffer_substring): Make argument names match their
9785 use in docstring.
9786
9787 * syntax.c (Fmodify_syntax_entry): Fix docstring.
9788
2a316a84
ST
97892004-05-07 Steven Tamm <steventamm@mac.com>
9790
9791 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
9792 around call to ReceiveEvent to avoid certain crashes.
9793
97942004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 9795
2a316a84
ST
9796 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
9797 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
9798 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
9799 Save/restore the current graphics port and device handle when
9800 drawing into an offscreen graphics world.
9801
9802 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
9803 (gif_load): Likewise.
9804
ab80314b
JB
98052004-05-07 Juanma Barranquero <lektu@terra.es>
9806
9807 * window.c (Fset_window_buffer): Fix docstring.
9808
70646bb5
TTN
98092004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
9810
9811 * emacs.c (main) [VMS]: Fix var ref.
9812
b6189c3b 98132004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
9814
9815 * data.c (Fsetq_default): Fix docstring.
9816
279d3293
JR
98172004-05-06 Jason Rumney <jasonr@gnu.org>
9818
9819 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
9820 to avoid name clash.
9821
f72b5416
JD
98222004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9823
9824 * fileio.c (barf_or_query_if_file_exists): Use lstat.
9825 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 9826 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 9827
6ab66799
KS
98282004-05-04 Kim F. Storm <storm@cua.dk>
9829
9830 * xdisp.c (Qtotal): New var.
9831 (syms_of_xdisp): Intern and staticpro it.
9832 (calc_line_height_property): New arg total. Set it if
9833 line-spacing property has format (total . VALUE).
9834 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
9835 Handle total line-spacing property.
9836
ab2d724b
JD
98372004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9838
9839 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
9840 "under" scroll bar when size/position changes.
9841
238add5e
JR
98422004-05-03 Jason Rumney <jasonr@gnu.org>
9843
9844 * makefile.nt: Remove.
9845
1644f4e4
EZ
98462004-05-02 Eli Zaretskii <eliz@gnu.org>
9847
a267ab4d
SM
9848 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
9849 Avoid compiler warnings.
05fdbeb8 9850
1644f4e4
EZ
9851 * Makefile.in (region-cache.o): Depend on config.h.
9852
b6189c3b 98532004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
9854
9855 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
9856 with continuation lines, too.
9857
2b98b088
TTN
98582004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
9859
9860 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
9861
d9bf7950
SM
98622004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
9863
9864 * xdisp.c (calc_line_height_property): YAILOM (yet another
9865 int/Lisp_Object mixup).
9866
affa509c
EZ
98672004-05-01 Eli Zaretskii <eliz@gnu.org>
9868
9869 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
9870 undo bad effect of pack(4) in some versions of system headers.
9871
07c07cfe
JR
98722004-05-01 Jason Rumney <jasonr@gnu.org>
9873
9874 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
9875
e71caa4e
KS
98762004-04-30 Kim F. Storm <storm@cua.dk>
9877
9878 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 9879 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
9880
9881 * dispextern.h (struct it): Remove member use_default_face.
9882 Add members override_ascent, override_descent, override_boff.
9883
9884 * xdisp.c (init_iterator): Handle line-spacing float value.
9885 Initialize override_ascent member.
9886 (append_space_for_newline): Reset override_ascent.
9887 Remove use_default_face.
9888 (calc_line_height_property): New function to calculate value of
9889 line-height and line-spacing properties. Look at overlays, too.
9890 Set override_ascent, override_descent, override_boff members when
9891 using another face than the current face. Float values are now
9892 relative to the frame default font, by default; accept a cons
9893 of ratio and face name to specify value relative to a specific face.
9894 (x_produce_glyphs): Use calc_line_height_property.
9895 Use override_ascent etc. when set to handle different face heights.
9896 A negative line-spacing property value is interpreted as a total
9897 line height, rather than inter-line spacing.
9898 (note_mouse_highlight): Allocate room for 40 overlays initially.
9899
0fddae66
SM
99002004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9901
9902 * data.c (Fsubr_name): New fun.
9903 (syms_of_data): Defsubr it.
9904
712d23dc
KS
99052004-04-29 Kim F. Storm <storm@cua.dk>
9906
9907 * xdisp.c (null_glyph_slice): New var.
9908 (append_glyph, append_composite_glyph, append_stretch_glyph):
9909 Use it to initialize glyph slice.
9910
033ad8c6
SM
99112004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
9912
9913 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
9914 (on_hot_spot_p): Make sure we always return a value.
9915 (Flookup_image_map): Remove unused var ix and iy.
9916 (note_mode_line_or_margin_highlight): Remove unused var `image'.
9917
93397360
EZ
99182004-04-27 Eli Zaretskii <eliz@gnu.org>
9919
9920 * msdos.c (init_environment): If one of the TMP... environment
9921 variables is set to a drive letter without a trailing slash,
9922 append a slash.
9923
0c54865e
EZ
99242004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
9925
9926 * editfns.c (lisp_time_argument): Provide externally.
9927
9928 * fileio.c (Fset_file_times): New function.
9929 (syms_of_fileio): Intern and staticpro it.
9930
d3b111bd
KS
99312004-04-27 Kim F. Storm <storm@cua.dk>
9932
07dc1231
KS
9933 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
9934 header line strings.
9935
360fe9d2
KS
9936 * dispextern.h (struct it): New member use_default_face.
9937
d3b111bd
KS
9938 * xdisp.c (Qline_height): New variable.
9939 (syms_of_xdisp): Intern and staticpro it.
9940 (append_space_for_newline): Partially undo 2004-04-25 change;
9941 add default_face_p arg, and restore callers.
9942 Clear it->use_default_face after use.
9943 (x_produce_glyphs): Set default font for ascii char if
9944 it->use_default_font is set. Change line-spacing property to set
9945 just extra line spacing. Handle new line-height property.
9946
0448588b
AS
99472004-04-26 Andreas Schwab <schwab@suse.de>
9948
9949 * print.c (print_object): Print non-ascii characters in bool
9950 vector representation as octal escapes.
9951
9952 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
9953 * print.c (print_object): Use it instead of BITS_PER_CHAR for
9954 bool vectors.
9955 * lread.c (read1): Likewise.
9956 * alloc.c (Fmake_bool_vector): Likewise.
9957 * data.c (Faref, Faset): Likewise.
9958 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
9959 (mapcar1): Likewise.
d3b111bd 9960
536d6baa
ST
99612004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
9962
7e26f91b 9963 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 9964
ae11577a
MB
99652004-04-26 Miles Bader <miles@gnu.org>
9966
9967 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
9968
e198ba87
JB
99692004-04-26 Juanma Barranquero <lektu@terra.es>
9970
9971 * buffer.c (Fpop_to_buffer): Fix docstring.
9972
f3d5f92d 99732004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 9974
f3d5f92d
ST
9975 * lread.c (init_lread): Don't display missing lisp directory
9976 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 9977 may be built without correct installation path.
f3d5f92d 9978
03e35edc
KS
99792004-04-25 Kim F. Storm <storm@cua.dk>
9980
9ff3aa31
KS
9981 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
9982
9983 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
9984
03e35edc
KS
9985 * xdisp.c (append_space_for_newline): Rename from append_space.
9986 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
9987 (x_produce_glyphs): Handle line-spacing property on newline char.
9988 If value is t, adjust ascent and descent to fit current row height.
9989 If value is an integer or float, set extra_line_spacing to integer
9990 value, or to float value x current line height.
9991
f24814e0
KH
99922004-04-23 Kenichi Handa <handa@m17n.org>
9993
9994 * fontset.c (Finternal_char_font): If POSITION is nil, return
9995 font for displaying CH with the default face.
9996
d814862a
JB
99972004-04-23 Juanma Barranquero <lektu@terra.es>
9998
9999 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
10000
063a45c5
SM
100012004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10002
10003 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
10004 Don't make assumptions about the relative place of i and val.
10005 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
10006
ae7ab2d3
KS
100072004-04-21 Kim F. Storm <storm@cua.dk>
10008
10009 * dispextern.h (struct glyph_slice): New struct.
10010 (struct glyph): New member slice.
10011 (GLYPH_SLICE_EQUAL_P): New macro.
10012 (GLYPH_EQUAL_P): Use it.
10013 (struct glyph_string): New member slice.
10014 (struct it_slice): New struct.
10015 (struct it): New member slice, add member to stack too.
10016 New member constrain_row_ascent_descent_p.
10017 (image_ascent): Add prototype.
10018
10019 * dispnew.c (buffer_posn_from_coords): Return full image width
10020 and height even for image slices (posn is relative to full image).
10021 (marginal_area_string): Adjust x0,y0 for image slice.
10022
10023 * image.c (image_ascent): Add slice arg; calculate ascent for
10024 image slice (or full image).
10025
10026 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
10027 (syms_of_keyboard): Defsubr them.
10028
10029 * lisp.h (pos_visible_p): Fix prototype.
10030
c62aec78 10031 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
10032 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10033 (x_draw_image_foreground, x_draw_image_relief)
10034 (x_draw_image_foreground_1, x_draw_image_glyph_string):
10035 Draw sliced images.
10036
10037 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
10038 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10039 (x_draw_image_foreground, x_draw_image_relief)
10040 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
10041 Draw sliced images.
10042
10043 * w32term.h (image_ascent): Remove prototype.
10044
10045 * window.c (Fpos_visible_in_window_p): Return pixel position if
10046 PARTIALLY arg is non-nil. Simplify. Doc fix.
10047 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
10048 to return/set vscroll in pixels.
10049
10050 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
10051
10052 * xdisp.c (Qslice): New variable.
10053 (syms_of_xdisp): Intern and staticpro it.
10054 (pos_visible_p): Return pixel position in new x and y args.
10055 (init_iterator): Reset it->slice info.
10056 (handle_display_prop): Parse (slice ...) property.
10057 (push_it, pop_it): Save/restore slice info.
10058 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
10059 force repositioning of tall row if window is vscrolled, as that
10060 would reset vscroll.
10061 (append_space): Set it->constrain_row_ascent_descent_p to avoid
10062 increasing row height if row is non-empty.
10063 (fill_image_glyph_string): Copy slice info.
10064 (take_vertical_position_into_account): Simplify.
10065 (produce_image_glyph): Handle iterator slice info, setup glyph
10066 slice info. Do not force minimum line height.
10067 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
10068 do not increase height (ascent/descent) of non-empty row when
10069 adding normal character glyph; instead reduce glyph ascent/descent
10070 appropriately; if row is higher than current glyph, adjust glyph
10071 descent/ascent to reposition glyph within the existing row.
10072 Likewise, when char is newline, only set ascent/descent if row is
10073 currently empty.
10074 (note_mouse_highlight): Handle hotspots with sliced image.
10075
10076 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
10077 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10078 (x_draw_image_foreground, x_draw_image_relief)
10079 (x_draw_image_foreground_1, x_draw_image_glyph_string):
10080 Draw sliced images.
10081
10082 * xterm.h (image_ascent): Remove prototype.
10083
d58f8753
SM
100842004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10085
10086 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
10087
4ce2719d
JPW
100882004-04-20 John Paul Wallington <jpw@gnu.org>
10089
10090 * fns.c (Fassoc, Feql): Fix indentation.
10091
d58f8753 10092 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 10093
95f8c3b9
JPW
100942004-04-19 John Paul Wallington <jpw@gnu.org>
10095
10096 * fns.c (Feql): New function.
d58f8753 10097 (syms_of_fns): Defsubr it.
95f8c3b9 10098
b7e85537
JR
100992004-04-18 Jason Rumney <jasonr@gnu.org>
10100
10101 * w32select.c (Fw32_set_clipboard_data): Get sequence number
10102 after closing the clipboard.
10103
5a72efd4
LT
101042004-04-16 Luc Teirlinck <teirllm@auburn.edu>
10105
10106 * buffer.c (Fbuffer_base_buffer): Doc fix.
10107
20dc8583
KS
101082004-04-17 Kim F. Storm <storm@cua.dk>
10109
60962ec4
KS
10110 * keymap.c (Fkey_description): Add optional PREFIX arg.
10111 Combine prefix with KEYS to make up the full key sequence to describe.
10112 Correlate meta_prefix_char and following (simple) key to describe
10113 as meta modifier. All callers changed.
10114 (describe_map): Rename arg `keys' to `prefix'. Remove local
10115 `elt_prefix' var. Use Fkey_description with prefix instead of
10116 elt_prefix combined with Fsingle_key_description.
10117 (describe_vector): Declare static. Replace arg `elt_prefix' with
10118 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
52eb0373 10119 if !KEYMAP_P. Use Fkey_description with prefix instead of
60962ec4
KS
10120 Fsingle_key_description.
10121
10122 * keymap.h (Fkey_description): Fix prototype.
10123 (describe_vector): Remove prototype.
10124
409368b9
KS
10125 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
10126
20dc8583
KS
10127 * image.c (PNG_BG_COLOR_SHIFT): Remove.
10128 (png_load): Fix calculation of transparent background color on X
10129 and W32 platforms.
10130
75c5501b
JB
101312004-04-16 Juanma Barranquero <lektu@terra.es>
10132
10133 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
10134 not too large before computing how much to scroll.
10135
da879ae8
SM
101362004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
10137
10138 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
10139
d01ca4a8
LT
101402004-04-14 Luc Teirlinck <teirllm@auburn.edu>
10141
10142 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
10143 Add hyperlink to Elisp manual to the docstring.
10144
572943b3
SM
101452004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
10146
10147 * callint.c (fix_command): Use XDCR.
10148
5e30a0fb
NR
101492004-04-14 Nick Roberts <nick@nick.uklinux.net>
10150
10151 * window.c (Fget_lru_window): Doc fix.
10152
a27ddfaf
KS
101532004-04-14 Kim F. Storm <storm@cua.dk>
10154
10155 * editfns.c (Fformat): Fix allocation size of precision array.
10156
10157 * dispnew.c (update_window): Only set changed_p if
10158 scrolling_window actually did scroll.
10159 (scrolling_window): Only return 1 if we actually did scroll.
10160
10161 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
10162 height to glyph height when cursor row is not fully visible.
10163 (make_cursor_line_fully_visible): Add FORCE_P arg to return
10164 failure in case row is higher than window. Callers changed.
10165 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
10166 Try to scroll partially visible, higher-than-window cursor row.
10167 (redisplay_window): Always try to scroll partially visible,
10168 higher-than-window cursor row - both initially and again with
10169 centering_position = 0.
10170 Clear desired matrix before retrying with centering_position = 0.
10171
da879ae8
SM
101722004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10173
10174 * syntax.c (scan_lists): Simplify backward string scan.
10175 Fix off-by-one boundary check for string and comment fences.
10176
5fc16e8e
SM
101772004-04-13 Joe Buehler <jbuehler@hekimian.com>
10178
10179 * sheap.c, unexcw.c: New files.
10180
c9aac8e6
LT
101812004-04-12 Luc Teirlinck <teirllm@auburn.edu>
10182
10183 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
10184 base buffer has been killed. Correct the error message if the
10185 base buffer does not exist.
10186
1e88a355
SM
101872004-04-12 Joe Buehler <jbuehler@hekimian.com>
10188
10189 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
10190 Cygwin itself. Add support for Xaw3d scrollbars.
10191
10192 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
10193
10194 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
10195
10196 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
10197 before Cygwin unexec.
10198
10199 * Makefile.in: Link changes for Cygwin unexec() support.
10200
8dbff9a0
AS
102012004-04-12 Andreas Schwab <schwab@suse.de>
10202
10203 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
10204
54dffe35
LT
102052004-04-11 Luc Teirlinck <teirllm@auburn.edu>
10206
10207 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
10208 IGNORE argument equals NAME. Doc fix.
10209
99a72bdf
MY
102102004-04-11 Masatake YAMATO <jet@gyve.org>
10211
1e88a355 10212 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
10213 empty if they are backwards.
10214
40899d7b
SM
102152004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10216
10217 * xfaces.c (face_color_supported_p): Fix compilation without X11.
10218
f8f853de
SM
102192004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
10220
10221 * doc.c (Fsnarf_documentation): Ignore new file name entries.
10222
c953fe1b
KS
102232004-04-06 Kim F. Storm <storm@cua.dk>
10224
661e85c1
KS
10225 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
10226 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
10227
10228 * w32term.c (w32_read_socket): Set mouse_face_hidden after
10229 clearing highlight.
10230
10231 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
10232
10233 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
10234 clearing highlight.
10235
c953fe1b
KS
10236 * indent.c (vmotion): Do not reserve one column for continuation
10237 marks on window frames.
10238
c1994268
EZ
102392004-04-04 Eli Zaretskii <eliz@gnu.org>
10240
10241 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
10242 from GCC.
10243
9f691b0d
SM
102442004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10245
10246 * .gdbinit-union: Remove.
10247
10248 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
10249 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
10250 ($nonvalbits): Remove.
10251 ($valmask): Set it by calling xreload to avoid redundancy.
10252
10253 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
10254 (gdb_emacs_intbits): Remove.
10255
7a8560d7
JD
102562004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10257
9f691b0d 10258 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 10259
3c8111fc
KH
102602004-03-30 Kenichi Handa <handa@m17n.org>
10261
10262 * editfns.c (Fformat): Fix initialization of the array info.
10263
48a0bce4
KS
102642004-03-30 Kim F. Storm <storm@cua.dk>
10265
10266 * xterm.c (x_mouse_click_focus_ignore_position): New var.
10267 (syms_of_xterm): DEFVAR_BOOL it.
10268 (ignore_next_mouse_click_timeout): New var.
10269 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
10270 Use it to filter mouse clicks following focus event.
10271
1cd0066c
KS
102722004-03-29 David Ponce <david@dponce.com>
10273
10274 * callint.c (Fcall_interactively): Fix last change.
10275
adb3b353
SM
102762004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10277
10278 * eval.c (Fcommandp): Simplify.
10279
10280 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
10281 Extend to handle all kinds of functions.
10282
10283 * lisp.h (Finteractive_form): Declare.
10284
10285 * callint.c (Fcall_interactively): Use it.
10286
6fc4c9c9
KS
102872004-03-26 Kim F. Storm <storm@cua.dk>
10288
10289 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
10290 to catch errors in calc_pixel_width_or_height during redisplay.
10291
abdb9b83
MY
102922004-03-26 Masatake YAMATO <jet@gyve.org>
10293
b17856dd 10294 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 10295
b17856dd 10296 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 10297
b17856dd 10298 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 10299
b17856dd 10300 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 10301
e8a84b6c
JD
103022004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10303
b17856dd 10304 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 10305
36a3fd05
RS
103062004-03-19 Richard M. Stallman <rms@gnu.org>
10307
10308 * s/sol2-6.h: Delete previous change.
10309
ab24c127
KS
103102004-03-19 Kim F. Storm <storm@cua.dk>
10311
10312 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
10313 to_charpos corresponds to newline in right fringe. Use local
10314 BUFFER_POS_REACHED_P macro.
10315
992126de
JD
103162004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10317
10318 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
10319 to compile on non-window system.
10320
45dbfc84
KS
103212004-03-19 Kim F. Storm <storm@cua.dk>
10322
10323 * dispextern.h (calc_pixel_width_or_height): Add prototype.
10324
10325 * image.c (Qcenter): Move to xdisp.c.
10326
10327 * xdisp.c (Qcenter): Declare here.
adb3b353 10328 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
10329 (handle_single_display_prop): Allow space display property on all
10330 platforms.
10331 (display_mode_line): Set mode_line_p before displaying line.
10332 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
10333 handling. Remove complex cases for fringes and scroll-bars.
52eb0373 10334 Add left, right, and center alignment positions. Add text (area)
45dbfc84
KS
10335 width/height. Return width or height for image specs.
10336 (produce_stretch_glyph): Improve handling of :align-to. Is now
10337 relative to left of text area by default, but other base offsets
10338 can be specified -- also for text lines.
10339
10340 * term.c (produce_glyphs): Handle IT_STRETCH.
10341 (produce_stretch_glyph): New function to handle space width and
10342 align-to display properties on non-window systems.
10343
37264101
SM
103442004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10345
10346 * fileio.c (Fread_file_name): Set completion-ignore-case for
10347 case-insensitive systems.
10348
73bc43da
MY
103492004-03-14 Masatake YAMATO <jet@gyve.org>
10350
10351 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
10352 when keymap and cursor are setup.
10353
d5fb8dab 103542004-03-14 Steven Tamm <steventamm@mac.com>
9062aa89 10355
b17856dd 10356 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 10357
e4b1b5ab
KS
103582004-03-14 Kim F. Storm <storm@cua.dk>
10359
10360 * dispextern.h (x_find_image_file): Add prototype.
10361
10362 * image.c (x_find_image_file): Make extern.
10363
10364 * xfns.c (x_find_image_file): Remove prototype.
10365
a6eeaa81 103662004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 10367
37264101 10368 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 10369
37264101 10370 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 10371
e69cfac2
RS
103722004-03-12 Richard M. Stallman <rms@gnu.org>
10373
10374 * fns.c (internal_equal): New arg PROPS controls comparing
10375 text properties. All callers changed.
10376 (Fequal_including_properties): New function.
10377 (syms_of_fns): defsubr it.
10378
45034953
KS
103792004-03-12 Kim F. Storm <storm@cua.dk>
10380
10381 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 10382
45034953
KS
10383 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
10384 (image_background, image_background_transparent): Fix prototypes.
10385
37264101 10386 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
10387
10388 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
10389 (x_query_font, x_find_ccl_program, x_set_window_size)
10390 (x_make_frame_visible, mac_initialize, XCreatePixmap)
10391 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
10392 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
10393
10394 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
10395 (x_query_font, x_find_ccl_program, x_set_window_size)
10396 (x_make_frame_visible, mac_initialize, XCreatePixmap)
10397 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
10398 (mac_draw_line_to_pixmap): Add prototypes.
10399
104002004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10401
10402 * macterm.c (XTread_socket): Fix mouse click on tool bar.
10403
a12d3d87
KS
104042004-03-11 Kim F. Storm <storm@cua.dk>
10405
d3ab1cf1
KS
10406 * dispextern.h: Move image related prototypes from xfns.c section
10407 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
10408 HAVE_X_WINDOWS.
37264101 10409
37de9f51 10410 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 10411 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
10412 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
10413 (GTK_OBJ) [USE_GTK]: New declaration.
10414 (obj): Add $(GTK_OBJ) to list.
10415
d5fb8dab 104162004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 10417
7e26f91b 10418 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
10419
10420 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 10421 defined in image.c.
5243c06a 10422
c0f97789
KS
104232004-03-11 Kim F. Storm <storm@cua.dk>
10424
10425 The following changes consolidates the identical/similar image
10426 support code previously found in xfns.c, w32fns.c, and macfns.c
10427 into a new file image.c.
10428
10429 * makefile.w32-in (OBJ1): Add image.o.
10430 ($(BLD)/image.$(O)): Add dependencies.
10431
10432 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
10433 (image.o): Add dependencies.
37264101 10434
c0f97789
KS
10435 * image.c: New file with consolidated image support code.
10436 (COLOR_TABLE_SUPPORT): New define to control whether
10437 color table support is available (X only).
10438 (Bitmap_Record): Common name for x_bitmap_record,
10439 w32_bitmap_record, and mac_bitmap_record.
10440 (XImagePtr): Common name for pointer to XImage or equivalent.
10441 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
10442 to XImagePtr on X+MAC, and to HDC on W32.
10443 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
10444 (NO_PIXMAP): Common name for "None" or equivalent.
10445 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
10446 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
10447 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
10448 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
10449 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
10450 (XDrawLine): Define on MAC for code sharing.
10451 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
10452 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
10453 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10454 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10455 (x_reference_bitmap, x_create_bitmap_from_data)
10456 (x_create_bitmap_from_file, x_destroy_bitmap)
10457 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10458 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10459 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10460 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10461 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10462 (define_image_type, lookup_image_type, valid_image_p)
10463 (image_error, enum image_value_type, struct image_keyword)
10464 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10465 (make_image, free_image, prepare_image_for_display, image_ascent)
10466 (four_corners_best, image_background, image_background_transparent)
9dd28cae 10467 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
10468 (make_image_cache, free_image_cache, clear_image_cache)
10469 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10470 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10471 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10472 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
10473 (init_image_func_pointer, image_load_quartz2d)
10474 (struct ct_color, init_color_table, free_color_table)
10475 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10476 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10477 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10478 (x_disable_image, x_build_heuristic_mask)
10479 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10480 (TIFF support, GIF support, Ghostscript support): Consolidate image
10481 code from xfns.c, w32fns.c, and macfns.c.
10482 (syms_of_image): Consolidate image related symbol setup here.
10483 (init_image): Consolidate image related initializations here.
37264101 10484
c0f97789
KS
10485 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
10486 and init_image. Remove call to init_xfns.
10487
37264101
SM
10488 * macterm.h (struct mac_bitmap_record): Add file member.
10489 Not currently used, but simplifies code sharing.
c0f97789
KS
10490
10491 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10492 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10493 (x_reference_bitmap, x_create_bitmap_from_data)
10494 (x_create_bitmap_from_file, x_destroy_bitmap)
10495 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10496 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10497 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10498 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10499 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10500 (define_image_type, lookup_image_type, valid_image_p)
10501 (image_error, enum image_value_type, struct image_keyword)
10502 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10503 (make_image, free_image, prepare_image_for_display, image_ascent)
10504 (four_corners_best, image_background, image_background_transparent)
9dd28cae 10505 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
10506 (make_image_cache, free_image_cache, clear_image_cache)
10507 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10508 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10509 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10510 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
10511 (init_image_func_pointer, image_load_quartz2d)
10512 (struct ct_color, init_color_table, free_color_table)
10513 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10514 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10515 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10516 (x_disable_image, x_build_heuristic_mask)
10517 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10518 (TIFF support, GIF support, Ghostscript support): Merge with image
10519 code from xfns.c and macfns.c into image.c.
10520 (syms_of_xfns): Move image related symbols to image.c.
10521 (init_external_image_libraries, init_xfns): Remove; initialization
10522 moved to init_image in image.c.
10523
10524 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10525 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10526 (x_reference_bitmap, x_create_bitmap_from_data)
10527 (x_create_bitmap_from_file, x_destroy_bitmap)
10528 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10529 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10530 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10531 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10532 (define_image_type, lookup_image_type, valid_image_p)
10533 (image_error, enum image_value_type, struct image_keyword)
10534 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10535 (make_image, free_image, prepare_image_for_display, image_ascent)
10536 (four_corners_best, image_background, image_background_transparent)
9dd28cae 10537 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
10538 (make_image_cache, free_image_cache, clear_image_cache)
10539 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10540 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10541 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10542 (struct ct_color, init_color_table, free_color_table)
10543 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10544 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10545 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10546 (x_disable_image, x_build_heuristic_mask)
10547 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10548 (TIFF support, GIF support, Ghostscript support): Merge with image
10549 code from xfns.c and macfns.c into image.c.
10550 (syms_of_xfns): Move image related symbols to image.c.
10551 (init_external_image_libraries, init_xfns): Remove; initialization
10552 moved to init_image in image.c.
10553
10554 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10555 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10556 (x_reference_bitmap, x_create_bitmap_from_data)
10557 (x_create_bitmap_from_file, x_destroy_bitmap)
10558 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10559 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10560 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10561 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10562 (define_image_type, lookup_image_type, valid_image_p)
10563 (image_error, enum image_value_type, struct image_keyword)
10564 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10565 (make_image, free_image, prepare_image_for_display, image_ascent)
10566 (four_corners_best, image_background, image_background_transparent)
9dd28cae 10567 (x_clear_image_1, x_clear_image, x_alloc_image_color)
c0f97789
KS
10568 (make_image_cache, free_image_cache, clear_image_cache)
10569 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10570 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10571 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10572 (struct ct_color, init_color_table, free_color_table)
10573 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10574 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10575 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10576 (x_disable_image, x_build_heuristic_mask)
10577 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10578 (TIFF support, GIF support, Ghostscript support): Merge with
10579 w32fns.c and macfns.c image code into image.c.
10580 (syms_of_xfns): Move image related symbols to image.c.
10581 (init_xfns): Remove; initialization moved to init_image in image.c.
10582
10583 * lisp.h (syms_of_image, init_image): Add protoypes.
10584 (init_xfns): Remove prototype.
10585
10586 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10587 (x_reference_bitmap, x_create_bitmap_from_data)
10588 (x_create_bitmap_from_file, x_destroy_bitmap)
10589 (x_create_bitmap_mask): Move prototypes from dispextern.h.
10590 (gamma_correct) [MAC_OS]: Add prototype.
10591
10592 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10593 (x_reference_bitmap, x_create_bitmap_from_data)
10594 (x_create_bitmap_from_file, x_destroy_bitmap)
10595 (x_create_bitmap_mask): Move prototypes to dispextern.h.
10596
6eced09c
KH
105972004-03-09 Kenichi Handa <handa@etlken2>
10598
10599 * coding.c (decode_coding_emacs_mule): Handle insufficent source
10600 correctly.
10601
9a7e95f3
RS
106022004-03-04 Richard M. Stallman <rms@gnu.org>
10603
04a6e76b
RS
10604 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
10605
9a7e95f3
RS
10606 * window.c (Fdisplay_buffer): Doc fix.
10607
10608 * buffer.c (Fpop_to_buffer): Doc fix.
10609
6c2488df
KS
106102004-03-03 Kim F. Storm <storm@cua.dk>
10611
10612 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
10613
d8d95bc7
SM
106142004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
10615
10616 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
10617
357589bf
RS
106182004-03-02 Richard M. Stallman <rms@gnu.org>
10619
10620 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
10621
409949b5
KH
106222004-03-02 Kenichi Handa <handa@m17n.org>
10623
10624 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
10625
d24bc50f
KS
106262004-03-02 Kim F. Storm <storm@cua.dk>
10627
10628 * window.h (struct window): New member overlay_arrow_bitmap.
10629
10630 * window.c (make_window): Initialize overlay_arrow_bitmap.
10631
10632 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
10633 implement and integrate multiple overlay arrows with redisplay.
10634 (syms_of_xdisp): DEFVAR_LISP and initialize it.
10635 (last_arrow_position, last_arrow_string): Replace by properties.
10636 (Qlast_arrow_position, Qlast_arrow_string)
10637 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
10638 (syms_of_xdisp): Intern and staticpro them.
10639 (overlay_arrow_string_or_property, update_overlay_arrows)
10640 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
10641 (overlay_arrow_at_row): New functions for multiple overlay arrows.
10642 (redisplay_internal): Use them instead of directly accessing
10643 Voverlay_arrow_position etc. for multiple overlay arrows.
10644 (mark_window_display_accurate): Use update_overlay_arrows.
10645 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
10646 (try_window_id): Use overlay_arrows_changed_p.
10647 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
10648 (display_line): Use overlay_arrow_at_row to check multiple
10649 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 10650 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
10651 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
10652 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
10653
10654 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
10655 (update_window_fringes): Remove unused code.
10656
c1464661
JR
106572004-03-01 Jason Rumney <jasonr@gnu.org>
10658
10659 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
10660
a64387ee
JB
106612004-03-01 Juanma Barranquero <lektu@terra.es>
10662
10663 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
10664
10665 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
10666
334faa08
JD
106672004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10668
10669 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
10670 how many colors can be displayed.
10671
bb62616f
KH
106722004-03-01 Kenichi Handa <handa@m17n.org>
10673
10674 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
10675 correctly.
10676
0fd16104
KS
106772004-02-28 Kim F. Storm <storm@cua.dk>
10678
10679 * dispnew.c (update_window): Update header line also if there are
10680 no other changes in window (move code after set_cursor label).
10681
10682 * lisp.h (mark_window_display_accurate): Remove prototype.
10683
10684 * window.c (window_loop, Fforce_window_update): Force mode line
10685 updates by setting prevent_redisplay_optimizations_p and
10686 update_mode_lines.
10687
b59dd9c8
JD
106882004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10689
d8d95bc7 10690 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
10691
10692 * xterm.c (x_calc_absolute_position): Call x_real_positions
10693 to get WM window sizes and use those to calculate position.
d8d95bc7 10694 (x_set_offset): Remove code commented out.
b59dd9c8 10695
a874691c
MB
106962004-02-28 Miles Bader <miles@gnu.org>
10697
10698 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
10699
3e0c6482
KS
107002004-02-28 Kim F. Storm <storm@cua.dk>
10701
10702 * keyboard.c (kbd_buffer_store_event_hold): New function to store
10703 an event into kbd fifo, but with special handling of quit event;
10704 a quit event is saved for later, and further events are discarded
10705 until the saved quit event has been processed.
10706 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
10707 (gen_help_event): Store help event in kbd fifo.
10708 (NREAD_INPUT_EVENTS): Remove.
10709 (read_avail_input): Adapt to new read_socket_hook interface.
10710 Remove allocation and initialization of local input_event buffer,
10711 as read_socket_hook stores events directly in fifo. Allocate and
10712 initialize local hold_quit event to handle postponed quit event
10713 (and store it if set by kbd_buffer_store_event_hold).
10714
10715 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
10716 (gen_help_event): Fix prototype.
10717
a64387ee 10718 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 10719 numcharsp args. Add hold_quit arg.
f63fd14e 10720 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
10721 directly in fifo using kbd_buffer_store_event_hold.
10722
10723 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
10724 (read_input_waiting): Adapt to new read_socket_hook interface.
10725 Remove allocation and initialization of local input_event buffer,
10726 as read_socket_hook stores events directly in fifo. Allocate and
10727 initialize local hold_quit event to handle postponed quit event
10728 (and store it if set by kbd_buffer_store_event_hold).
10729
a64387ee 10730 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
10731
10732 * termhooks.h (read_socket_hook): Fix prototype.
10733
10734 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
10735 numcharsp args. Add hold_quit arg.
f63fd14e 10736 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
10737 directly in fifo using kbd_buffer_store_event_hold.
10738
10739 * w32inevt.h (w32_console_mouse_position): Fix prototype.
10740
10741 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
10742 Add hold_quit arg. Rework to use just one, local, inev
10743 input_event. Store inev directly in fifo using
3e0c6482
KS
10744 kbd_buffer_store_event_hold. Update count in one place.
10745 Postpone call to gen_help_event until inev is stored; use new
10746 local do_help for this.
10747 Remove local emacs_event in handing of ButtonPress event; just use
10748 inev instead (so no reason to copy it later).
10749
10750 * xsmfns.c (x_session_check_input): Remove numchars arg.
10751
d8d95bc7
SM
10752 * xterm.c (x_focus_changed, x_detect_focus_change):
10753 Remove numchars arg. Always store event into bufp arg.
10754 Return nothing. Callers changed accordingly.
3e0c6482
KS
10755 (glyph_rect): Simplify.
10756 (STORE_KEYSYM_FOR_DEBUG): New macro.
10757 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
10758 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
10759 (current_hold_quit) [USE_GTK]: Add.
10760 (event_handler_gdk): Adapt to new handle_one_xevent.
10761 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
10762 Add hold_quit arg. Rework to use just one, local, inev
10763 input_event. Store inev directly in fifo using
3e0c6482
KS
10764 kbd_buffer_store_event_hold. Update count in one place.
10765 Postpone call to gen_help_event until inev is stored; use new
10766 local do_help for this.
10767 Simplify handling of keysyms (consolidate common code). Fix bug
10768 where count was updated with nchars instead of nbytes.
10769 Remove local emacs_event in handing of ButtonPress event; just use
10770 inev instead (so no reason to copy it later).
10771 Remove `out' label. Rename label `ret' to `done'; add various
10772 `goto done' to clarify code flow in deeply nested blocks.
10773 (x_dispatch_event): Simplify as handle_one_xevent now calls
10774 kbd_buffer_store_event itself.
f63fd14e 10775 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
10776 arg. Call handle_one_xevent with new arglist. Store event from
10777 x_session_check_input in fifo.
10778 [USE_GTK]: Setup current_hold_quit.
10779 Decrement handling_signal before unblocking input.
10780 (x_initialize) [USE_GTK]: Initialize current_count.
10781
10782 * xterm.h (x_session_check_input): Fix prototype.
10783
e3564461 107842004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 10785
d8d95bc7 10786 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 10787
e3564461
ST
10788 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
10789 macgui.h).
a64387ee 10790
e3564461 10791 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 10792
e3564461
ST
10793 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
10794 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
10795 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
10796 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
10797 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
10798 (Bitmap): Remove typedef.
10799 (Pixmap): Change int to GWorldPtr.
10800
d8d95bc7 10801 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 10802
d8d95bc7
SM
10803 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
10804 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
10805 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
10806 long representation.
10807 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
10808 colors used for masks.
10809 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 10810
e3564461
ST
10811 * macfns.c: Include sys/types.h and sys/stat.h.
10812 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
10813 Include QuickTime/QuickTime.h.
10814 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10815 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
10816 functions defined in macterm.c.
10817 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
10818 (ZPixmap): New #define for compatibility with xfns.c.
10819 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10820 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
10821 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
10822 New functions.
e3564461 10823 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
10824 (x_destroy_x_image, unwind_create_frame, x_disable_image)
10825 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
10826 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
10827 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
10828 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
10829 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
10830 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
10831 long mixup.
10832 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
10833 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
10834 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
10835 (x_set_cursor_type, Fxw_color_values, valid_image_p)
10836 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
10837 (x_alloc_image_color, clear_image_cache, lookup_image)
10838 (x_find_image_file, xbm_read_bitmap_file_data)
10839 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
10840 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
10841 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
10842 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
10843 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 10844 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
10845 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
10846 #if 0.
10847 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
10848 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
10849 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
10850 New functions (from xfns.c).
e3564461
ST
10851 (Fx_create_frame): Record unwind_create_frame.
10852 (Fxw_display_color_p): Use dpyinfo->color_p.
10853 (Fx_display_grayscale_p, Fx_display_planes): Don't use
10854 dpyinfo->n_cbits.
10855 (Fx_display_color_cells): Use dpyinfo->n_planes;
10856 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
10857 (Qheuristic, cross_disabled_images, emboss_matrix)
10858 (laplace_matrix): New variables (from xfns.c).
10859 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
10860 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
10861 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
10862 (image_background_transparent): New function (from xfns.c).
10863 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
10864 (image_load_quicktime): Add declaration.
10865 [MAC_OSX] (image_load_quartz2d): Likewise.
10866 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
10867 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 10868 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
10869 (xbm_load_image_from_file, x_laplace_read_row)
10870 (x_laplace_write_row, pbm_read_file): Remove functions.
10871 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
10872 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
10873 (colors_in_color_table): Sync with xfns.c (although not used).
10874 (lookup_rgb_color): Don't lookup color table. Just do gamma
10875 correction.
10876 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
10877 (x_disable_image): New function (from xfns.c).
10878 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10879 (x_build_heuristic_mask): Sync with xfns.c.
10880 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
10881 (HAVE_PBM): Remove #ifdef.
10882 (pbm_load): Sync with xfns.c. Set img->width and img->height
10883 before IMAGE_BACKGROUND.
d8d95bc7 10884 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
10885 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
10886 Don't enclose with #if HAVE_PNG.
10887 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
10888 symbol _CGImageCreateWithPNGDataProvider is defined.
10889 Otherwise use image_load_quicktime.
e3564461 10890 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
10891 [HAVE_PNG] (png_load): Sync with xfns.c.
10892 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
10893 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
10894 HAVE_JPEG.
10895 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
10896 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
10897 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
10898 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
10899 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
10900 (tiff_image_p, tiff_load): Don't enclose declarations with #if
10901 HAVE_TIFF.
10902 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
10903 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
10904 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
10905 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
10906 New functions (from xfns.c).
e3564461 10907 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 10908 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
10909 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
10910 Don't enclose with #if HAVE_GIF.
10911 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
10912 animated gif. Otherwise use image_load_quicktime.
10913 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
10914 gif_DrawText to avoid conflict with QuickdrawText.h.
10915 [HAVE_GIF] (gif_load): Sync with xfns.c.
10916 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
10917 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
10918 Ghostscript is not supported yet).
10919 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
10920 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
10921 cross_disabled_images (from xfns.c). Remove #if 0 for supported
10922 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
10923 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
10924 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
10925 HAVE_PNG. Call EnterMovies to support animated gifs.
10926 Call init_image_func_pointer to bind a symbol
e3564461 10927 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 10928
d8d95bc7 10929 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
10930 (x_draw_bar_cursor): Sync declaration with xterm.c.
10931 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
10932 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
10933 graphics).
10934 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
10935 (mac_draw_line_to_pixmap, XCreatePixmap)
10936 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
10937 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
10938 New functions.
10939 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
10940 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
10941 Cast bits to char *.
e3564461
ST
10942 (reflect_byte): New function (from w32fns.c).
10943 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
10944 due to byte alignment.
d8d95bc7
SM
10945 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
10946 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
10947 (XSetForeground): Remove static (now used in macfns.c).
10948 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
10949 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
10950 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
10951 (x_draw_glyph_string_box, x_draw_image_foreground)
10952 (x_draw_image_foreground_1, x_draw_image_glyph_string)
10953 (x_draw_stretch_glyph_string, x_draw_glyph_string)
10954 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
10955 Sync with xterm.c.
10956 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
10957 than the xterm.c version when a strictly horizontal or vertical
10958 line is drawn.
10959 (XTset_terminal_window): Add static.
10960 (x_make_frame_visible): Add UNBLOCK_INPUT.
10961 (x_free_frame_resources): New funcion (from xterm.c).
10962 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
10963 occurs in tool bar area.
d8d95bc7
SM
10964 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
10965 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
10966 Initialize image cache.
10967 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
10968 Enclose unused functions with #if 0.
10969 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
10970 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 10971 from a mac font name to an XLFD font name according to its script code.
e3564461 10972 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 10973 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
10974 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
10975 whose name starts with `.'.
10976 (init_font_name_table): Use decode_mac_font_name. Add both
10977 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
10978 of a font is smJapanese.
10979 (mac_do_list_fonts): New function to list fonts that match a given
10980 pattern.
10981 (x_list_fonts, XLoadQueryFont): Use it.
10982 (XLoadQueryFont): Set rbearing field for each variable width
10983 character to avoid needless redraw.
10984 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
10985
446f5f3d
KS
109862004-02-26 Kim F. Storm <storm@cua.dk>
10987
af617d0f
KS
10988 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
10989 as read_socket_hook handler on X aborts if buffer is too small
10990 and W32 handler doesn't always check buffer limit.
10991
446f5f3d
KS
10992 * xdisp.c (handle_single_display_prop): Handle left-fringe and
10993 right-fringe similar to a display margin image. Specifically,
10994 the characters having the fringe prop are no longer shown, and
10995 we use IT_IMAGE/next_element_from_image with image_id = -1 to
10996 do this. Set fringe bitmap face_id in it->face_id.
10997 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
10998 still realize it->face (i.e. the fringe bitmap face).
10999
7d8a0b55
MB
110002004-02-25 Miles Bader <miles@gnu.org>
11001
11002 * xdisp.c (check_it): Check string/string_pos consistency.
11003 (init_iterator): Initialize string-related fields properly.
11004
110052004-02-11 Miles Bader <miles@gnu.org>
11006
11007 * xdisp.c (produce_image_glyph): Force negative descents to zero.
11008
110092004-02-10 Miles Bader <miles@gnu.org>
11010
11011 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
11012 BLOCK_INPUT can be nested, so it doesn't make much sense.
11013
a64387ee 110142004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
11015
11016 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
11017 (xbm_read_bitmap_data): Use unsigned char for image data.
11018
92f5fba2
LT
110192004-02-23 Luc Teirlinck <teirllm@auburn.edu>
11020
11021 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
11022
8565fb3d
JR
110232004-02-22 Jason Rumney <jasonr@gnu.org>
11024
11025 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
11026 correctly over other bitmaps.
11027
a6eeaa81 110282004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
11029
11030 * emacs.c (USAGE1): Split into two halves.
11031 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
11032 (USAGE3): Rename from USAGE2.
11033 (USAGE4): Rename from USAGE3.
f8125c39 11034
4effffca
EZ
110352004-02-21 Juri Linkov <juri@jurta.org>
11036
11037 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
11038 Fix --multibyte. Move --help, --version to USAGE2. Add alias
11039 --file. Fix -f, -l. Sort options. Untabify.
11040 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
11041
923c1e6f
LT
110422004-02-19 Luc Teirlinck <teirllm@auburn.edu>
11043
11044 * category.c (Fdefine_category, Fcategory_docstring)
11045 (Fget_unused_category, Fset_category_table)
11046 (Fcategory_set_mnemonics): Doc fixes.
11047
b0e225fd
KS
110482004-02-20 Kim F. Storm <storm@cua.dk>
11049
11050 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
11051 The following changes are relative to the 2004-01-21 revision.
11052 (NREAD_INPUT_EVENTS): Define as max number of input events to read
11053 in one call to read_socket_hook. Value is 8.
11054 (read_avail_input): Separate and rework handling of read_socket_hook
11055 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
11056 in read_socket_hook case, and repeat if full buffer is read.
11057 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
11058 In non-read_socket_hook case, just use a single input_event, and
11059 call kbd_buffer_store_event on the fly for each character.
11060
b15aa9f9
SM
110612004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11062
11063 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
11064 Remove unused `gu' alternative.
11065
83c9aa95
AS
110662004-02-19 Andreas Schwab <schwab@suse.de>
11067
11068 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
11069 warning.
11070
cc808173
KS
110712004-02-18 Kim F. Storm <storm@cua.dk>
11072
11073 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
11074 Fix last change.
11075
ab90a54d
KS
110762004-02-17 Kim F. Storm <storm@cua.dk>
11077
b26f249f
KS
11078 * xdisp.c (fast_find_position): Fix return value of new version;
11079 it was inverted compared to the 21.1 version.
11080 (get_window_cursor_type): Don't look at glyph if NULL.
11081 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 11082
ab90a54d
KS
11083 * keyboard.c: Rework previous change; it didn't consider that the
11084 buf array was allocated on the stack.
11085 (prev_read): Remove variable.
11086 (read_avail_input_buf): New static event buffer array.
b9568dfc 11087 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 11088 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
11089 Use in_read_avail_input to handle re-entrance; when re-entered,
11090 fully initialize and use tmp_buf array instead of read_avail_input_buf.
11091 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
11092 is always cleared on entry. To ensure that, we clear (just) the
11093 entries that were used before we return.
11094 (init_keyboard): Initialize read_avail_input_buf here.
11095
b6189c3b 110962004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
11097
11098 * cmds.c (Fend_of_line): Doc fix.
11099
7b5368c1
EZ
111002004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
11101
11102 * keyboard.c (prev_read): New static variable.
11103 (read_avail_input): Use it to zero out only those slots in buf[]
11104 that were used last time we were called.
11105
a6eeaa81 111062004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
11107
11108 * Makefile.in (obj): Move fringe.o from here...
11109 (XOBJ, MAC_OBJ): ...to here.
11110
159c348e
SE
111112004-02-16 Stephen Eglen <stephen@gnu.org>
11112
11113 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
11114
d2f14999
SM
111152004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
11116
b15aa9f9
SM
11117 * data.c (Fbyteorder):
11118 * fringe.c (Fdefine_fringe_bitmap):
11119 * xdisp.c (handle_single_display_prop):
d2f14999
SM
11120 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
11121
8d50508a
JR
111222004-02-16 Jason Rumney <jasonr@gnu.org>
11123
11124 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
11125
dd4497dc
ST
111262004-02-15 Steven Tamm <steventamm@mac.com>
11127
11128 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
11129 controlling emulation of a three button mouse with option and
11130 command keys.
7e26f91b 11131 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 11132 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 11133
c9159cb3
KS
111342004-02-15 Kim F. Storm <storm@cua.dk>
11135
2cc52658
KS
11136 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
11137
c9159cb3
KS
11138 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
11139 Perform byte-swapping.
11140
12fde2dc
KS
111412004-02-14 Kim F. Storm <storm@cua.dk>
11142
11143 * dispextern.h (struct draw_fringe_bitmap_params): Change member
11144 bits from char to short to facilitate wider bitmaps.
11145 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
11146 member.
11147
11148 * fringe.c (struct fringe_bitmap): Change member bits from char to
11149 short to facilitate 16 bits wide bitmaps. Modify all standard
11150 bitmaps accordingly.
11151 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
11152 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
11153 (draw_fringe_bitmap): Ditto.
11154 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
11155 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
11156 handle up to 16 bits wide bitmaps.
11157 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 11158 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
11159
11160 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
11161 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
11162 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
11163
11164 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
11165 so it is no longer necessary to expand them here.
11166
11167 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
11168
9d7271e8
KS
111692004-02-12 Kim F. Storm <storm@cua.dk>
11170
11171 * window.c (Fwindow_fringes): Doc fix.
11172
706c1e4f
JD
111732004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11174
11175 * xselect.c (x_get_foreign_selection): Add new optional parameter
11176 time_stamp.
11177 (Fx_get_selection_internal): Ditto, pass time_stamp to
11178 x_get_foreign_selection.
11179
11180 * data.c (Fbyteorder): New function.
11181
c2d12b5d
JD
111822004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11183
11184 * atimer.c: Move include stdio.h to same place as in other files.
11185
11186 * region-cache.c: Ditto.
11187
11188 * sysdep.c: Ditto.
11189
11190 * xfaces.c: Ditto.
11191
4c1947b9
SS
111922004-02-09 Sam Steingold <sds@gnu.org>
11193
89458937 11194 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 11195
82722af3
KS
111962004-02-09 Kim F. Storm <storm@cua.dk>
11197
11198 * fringe.c: New file. Move original fringe related declarations
11199 and code from dispextern.h and xdisp.c here.
11200 Rework code to support user defined fringe bitmaps, redefining
11201 standard bitmaps, ability to overlay user defined bitmap with
11202 overlay arrow bitmap, and add faces to bitmaps.
11203 (Voverflow_newline_into_fringe): Declare here.
11204 (enum fringe_bitmap_align): New enum.
11205 (..._bits): All bitmaps are now defined without bitswapping; that
11206 is now done in init_fringe_once (if necessary).
11207 (standard_bitmaps): New array with specifications for the
11208 standard fringe bitmaps.
11209 (fringe_faces): New array.
11210 (valid_fringe_bitmap_id_p): New function.
11211 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
11212 (draw_fringe_bitmap): New function which draws fringe bitmap,
11213 possibly overlaying bitmap with cursor in right fringe or the
11214 overlay arrow in the left fringe.
11215 (update_window_fringes): Do not handle overlay arrow here.
11216 Compare and copy fringe bitmap faces.
11217 (init_fringe_bitmap): New function.
11218 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
11219 define and destroy user defined fringe bitmaps.
11220 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
11221 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
11222 (syms_of_fringe): New function. Defsubr new DEFUNs.
11223 DEFVAR_LISP Voverflow_newline_into_fringe.
11224 (init_fringe_once, init_fringe): New functions.
11225 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 11226
82722af3
KS
11227 * Makefile.in (obj): Add fringe.o.
11228 (fringe.o): New dependencies.
11229
11230 * dispextern.h (FRINGE_ID_BITS): New definition for number of
11231 bits allocated to hold a fringe number. Increase number of bits
11232 from 4 to 8 to allow user defined fringe bitmaps.
11233 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
11234 left_user_fringe_face_id, right_user_fringe_bitmap,
11235 right_user_fringe_face_id.
11236 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
11237 Move to new file fringe.c.
11238 (MAX_FRINGE_BITMAPS): Define here.
11239 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
11240 and overlay_p. Change member which to int.
11241 (struct redisplay_interface): New members define_fringe_bitmap
11242 and destroy_fringe_bitmap.
11243 (valid_fringe_bitmap_id_p): Add prototype.
11244 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
11245
11246 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
11247 arrows.
11248 (update_frame): Do flush_display if force_flush_display_p to
11249 ensure display (specifically fringes) are updated in a timely
11250 manner when resizing the frame by dragging the mouse.
11251 (update_window_line): Update row if overlay arrow changed.
11252 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
11253 or overlay arrow changed.
11254
11255 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
11256 syms_of_fringe, and init_fringe.
11257
11258 * frame.h (struct frame): New member force_flush_display_p.
11259
11260 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
11261 Add prototypes.
11262
a3993cc8 11263 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 11264 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
11265 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
11266 Use cursor color for displaying cursor in fringe.
82722af3
KS
11267 (x_redisplay_interface): Add null handlers for
11268 define_fringe_bitmap and destroy_fringe_bitmap functions.
11269
11270 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
11271 xterm.c to handle overlayed fringe bitmaps and to use cursor color
11272 for displaying cursor in fringe.
11273 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
11274 specific functions to define and destroy fringe bitmaps in fringe_bmp.
11275 (w32_redisplay_interface): Add them to redisplay_interface.
11276 (w32_term_init): Call w32_init_fringe instead of explicitly
11277 defining fringe bitmaps in fringe_bmp array.
11278 (x_delete_display): Call w32_reset_fringes instead of explicitly
11279 destroying fringe bitmaps in fringe_bmp array.
11280
11281 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
11282 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
11283 (continued_bits, continuation_bits, ov_bits, first_line_bits)
11284 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
11285 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
11286 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
11287 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
11288 Move fringe handling vars and code to new file fringe.c.
11289 (handle_display_prop): Handle left-fringe and right-fringe
11290 display properties; store user fringe bitmaps in iterator.
11291 (move_it_in_display_line_to): Handle cursor in fringe at eob.
11292 (clear_garbaged_frames): Set force_flush_display_p if resized.
11293 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
11294 (display_line): Handle cursor in fringe at eob.
11295 (display_line): Set row user fringe bitmaps from iterator.
11296
11297 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
11298 Use cursor color for displaying cursor in fringe.
11299 (x_redisplay_interface): Add null handlers for
11300 define_fringe_bitmap and destroy_fringe_bitmap functions.
11301
030400eb
JD
113022004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11303
11304 * macfns.c (Fx_change_window_property): Make doc string and
11305 parameters same as for X version.
11306
11307 * w32fns.c (Fx_change_window_property): Ditto.
11308
3af55251
KS
113092004-02-07 Kim F. Storm <storm@cua.dk>
11310
ec110e9e
KS
11311 * xdisp.c (hscroll_window_tree): Position cursor near to right
11312 margin in hscrolled window when jumping to end of line (rather
11313 than centering cursor).
11314
3af55251
KS
11315 * process.c (wait_reading_process_input): Don't do adaptive read
11316 buffering if waiting for a specific process.
11317
b0c138ce
LT
113182004-02-05 Luc Teirlinck <teirllm@auburn.edu>
11319
11320 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
11321 (Fread_minibuffer, Feval_minibuffer)
11322 (Fread_string, Fread_no_blanks_input)
11323 (Fcompleting_read): Doc fixes.
11324 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
11325 completion-regexp-list. Define Qcase_fold_search and staticpro it.
11326 (read_minibuf): Fix initial comment.
11327 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 11328 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
11329 checking completion-regexp-list.
11330 (Fdisplay_completion_list): Make it handle arguments that are
11331 symbols. Doc fix.
11332
9676f5ad 113332004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 11334
9676f5ad 11335 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 11336
9676f5ad
JD
11337 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
11338 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 11339 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 11340 format. Remove unused variable cons.
5b698285 11341
9dd28cae 11342 * xselect.c: Include stdio.h.
5b698285 11343
fc1d15f6
KH
113442004-02-05 Kenichi Handa <handa@m17n.org>
11345
ebaff4af
KH
11346 * fns.c (Fset_char_table_range): Fix previous change.
11347
fc1d15f6
KH
11348 * buffer.c (Fset_buffer_multibyte): Fix docstring.
11349
9676f5ad
JD
113502004-02-04 Luc Teirlinck <teirllm@auburn.edu>
11351
11352 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
11353
da75761f
SM
113542004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
11355
11356 * keymap.c (Vmouse_events): Rename from Vmenu_events.
11357 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
11358
13c5d120
KH
113592004-02-04 Kenichi Handa <handa@m17n.org>
11360
11361 * fns.c (Fset_char_table_range): Handle charsets ascii,
11362 eight-bit-control, and eight-bit-graphic correctly.
11363
2883d842
JR
113642004-02-03 Jason Rumney <jasonr@gnu.org>
11365
11366 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
11367
11368 * w32fns.c (x_to_w32_font): Likewise.
11369
69eff41f
JD
113702004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11371
11372 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
11373 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
11374
11375 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
11376 ClientMessages.
11377
11378 * xselect.c: Include termhooks.h and X11/Xproto.h
11379 (x_check_property_data, x_fill_property_data)
11380 (x_property_data_to_lisp, mouse_position_for_drop)
11381 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 11382 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
11383 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
11384
da75761f 11385 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
11386 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
11387 OUTER_P.
11388 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
11389 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
11390 if vector_ret_p is true.
11391 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 11392
a6eeaa81 113932004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
11394
11395 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
11396 basename of FILE relative to it, not FILE itself.
11397
09721b31
KH
113982004-02-02 Kenichi Handa <handa@m17n.org>
11399
11400 * coding.c (coding_restore_composition): Check invalid
11401 composition data more rigidly.
11402
eb996101
LT
114032004-01-30 Luc Teirlinck <teirllm@auburn.edu>
11404
11405 * fileio.c (Fread_file_name_internal): Correctly handle the case
11406 where insert-default-directory is nil.
11407 (Fread_file_name): Always return an empty string if the user exits
11408 with an empty minibuffer. Adapt the docstring accordingly.
11409 (syms_of_fileio): Adapt the docstring of insert-default-directory
11410 to the change in Fread_file_name.
11411
a6eeaa81 114122004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
11413
11414 * alloca.c [!alloca]: Fix the prototype for xfree.
11415
13f52ed8
KH
114162004-01-29 Kenichi Handa <handa@m17n.org>
11417
11418 * fns.c (string_char_to_byte): Optimize for ASCII only string.
11419 (string_byte_to_char): Likewise.
11420
d57625a0
JR
114212004-01-28 Peter Runestig <peter@runestig.com>
11422
11423 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
11424
a64387ee 114252004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
11426
11427 * unexmacosx.c (unexec_copy): Do not copy more than was
11428 requested to prevent overwriting during unexec.
11429
eb37b8fd
JD
114302004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11431
ce38070a
JD
11432 * process.c (sigchld_handler): Add comment about not calling malloc.
11433
eb37b8fd
JD
11434 * process.h: Add extern to synch_process_termsig.
11435
a64387ee 114362004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 11437
da75761f
SM
11438 * macterm.c (make_mac_frame, make_mac_terminal_frame):
11439 Move setting of scroll bars from make_mac_frame to
11440 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 11441
d62a265d
RS
114422004-01-26 Richard M. Stallman <rms@gnu.org>
11443
11444 * search.c (Freplace_match): Handle nonexistent
11445 back-references properly.
11446
114472004-01-03 Richard M. Stallman <rms@gnu.org>
11448
11449 * window.c (decode_any_window): New function.
11450 (Fwindow_height, Fwindow_width, Fwindow_edges)
11451 (Fwindow_pixel_edges, Fwindow_inside_edges)
11452 (Fwindow_inside_pixel_edges): Use decode_any_window.
11453
ff236419
JD
114542004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11455
11456 * process.h: synch_process_termsig new variable.
11457
11458 * callproc.c: Define synch_process_termsig.
11459 (Fcall_process): Initiate synch_process_termsig to zero and
11460 check if non-zero and get signal name after subprocess has ended.
11461
11462 * process.c (sigchld_handler): Set synch_process_termsig
11463 if terminated by a signal. synch_process_death setting removed.
11464
11465 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
11466
41b867ea
AS
114672004-01-26 Andreas Schwab <schwab@suse.de>
11468
11469 * print.c (print_preprocess): Declare size as EMACS_INT to not
11470 lose bits.
11471 (print_object): Likewise.
11472 * alloc.c (Fpurecopy): Likewise.
11473
a08084ff
LT
114742004-01-25 Luc Teirlinck <teirllm@auburn.edu>
11475
11476 * window.c (Fwindow_minibuffer_p): Doc fix.
11477
b19ac475
JY
114782004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
11479
11480 * editfns.c (Fformat): Make both passes accept the same set of flags.
11481
fe905025
KH
114822004-01-23 Kenichi Handa <handa@m17n.org>
11483
11484 * fns.c (Fmd5): If OBJECT is a buffer different from the current
11485 one, set buffer to OBJECT temporarily.
11486
438fc6c0
SM
114872004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
11488
455316e2
SM
11489 * keyboard.c (kbd_buffer_gcpro): Remove.
11490 (kbd_buffer_store_event, clear_event, Fdiscard_input)
11491 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
11492 Don't initialize and/or maintain the variable any more. It was made
11493 redundant by my commit of 2003-06-15.
11494
438fc6c0
SM
11495 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
11496
5335a4ee
JD
114972004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11498
11499 * lisp.h: Add undef DECL_ALIGN.
11500
dcdaeebc
SM
115012004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
11502
11503 * process.c (wait_reading_process_input) [SYNC_INPUT]:
11504 Check interrupt_input_pending explicitly.
11505
11506 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
11507
11508 * keyboard.c (handle_async_input): New fun,
11509 extracted from input_available_signal.
11510 (input_available_signal, reinvoke_input_signal): Use it.
11511
9076a823
SM
115122004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
11513
d7107586
SM
11514 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
11515
11516 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
11517 manipulation macros for when tags are in the lower bits.
11518 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
11519 (DECL_ALIGN): New macro.
11520 (DEFUN): Use it.
11521
11522 * lisp.h [ENABLE_CHECKING]: Don't force union type.
11523
11524 * s/darwin.h (__attribute__): Remove outdated workaround.
11525
11526 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
11527
11528 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
11529 Don't check range of malloc address.
11530 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
11531
9076a823
SM
11532 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
11533
11534 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
11535
ba029065
KH
115362004-01-19 Kenichi Handa <handa@m17n.org>
11537
11538 * fontset.c (fontset_font_pattern): Fix previous change.
11539
7af0e8d7
MB
115402004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
11541
11542 * xdisp.c (Voverflow_newline_into_fringe)
11543 (move_it_in_display_line_to, redisplay_internal)
11544 (update_window_fringes, redisplay_window, display_line, window):
11545 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
11546 that it compiles without a window-system.
11547 * dispnew.c (direct_output_for_insert, update_window): Likewise.
11548
77a9cf69
KS
115492004-01-16 Kim F. Storm <storm@cua.dk>
11550
11551 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
11552
a64387ee 11553 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
11554 buffer_local_flags for indicate_buffer_boundaries.
11555 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
11556 default- variable for it.
11557
11558 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
11559 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 11560 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
11561 overflowing newlines into right fringe.
11562 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
11563 and indicate_bottom_line_p for buffer boundaries and scrolling.
11564 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
11565 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
11566 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
11567 and HOLLOW_SQUARE_BITMAP.
11568 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
11569 Add prototypes.
11570
11571 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
11572 instead of related indicator fields.
11573 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
11574 (direct_output_for_insert): Handle exact width lines like
11575 contined lines. Call update_window_fringes.
11576 (update_window): Call update_window_fringes.
11577 (scrolling_window): Don't skip desired rows with changed bitmaps.
11578 Check if fringe bitmaps changes when assigning scrolled rows.
11579
11580 * xdisp.c (Voverflow_newline_into_fringe): New variable.
11581 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
11582 (move_it_in_display_line_to): Overflow newline into fringe for
11583 rows that are exactly as wide as the window.
11584 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
11585 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
11586 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
11587 (fringe_bitmaps): Add new bitmaps.
11588 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
11589 Select proper bitmap for cursor in fringe when appropriate.
11590 Handle alignment of bitmap to top or bottom of row.
11591 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
11592 done by update_window_fringes.
11593 (update_window_fringes, draw_window_fringes): New functions.
11594 (redisplay_internal): Call update_window_fringes in case only
11595 cursor row is updated.
11596 (redisplay_window): Call update_window_fringes.
11597 Explicitly call draw_window_fringes if redisplay was done using
11598 the current matrix or the overlay arrow is in the window.
11599 (try_window_reusing_current_matrix): Mark scrolled rows for
11600 fringe update (to update buffer-boundaries / scrolling icons).
11601 (find_last_unchanged_at_beg_row): Handle exact width lines line
11602 continued lines.
11603 (display_line): Overflow newline into fringe for rows that are
11604 exactly as wide as the window. Don't append space for newline
d7107586 11605 in this case.
77a9cf69
KS
11606 (notice_overwritten_cursor): Explicitly clear cursor bitmap
11607 in fringe as if it had been overwritten.
11608 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 11609 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
11610 void-text-area-pointer as user options.
11611 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 11612
77a9cf69
KS
11613 * xterm.c (x_update_window_end): Call draw_window_fringes.
11614 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11615 in row instead of actually drawing fringe bitmaps.
11616 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11617 (x_draw_window_cursor): Draw cursor in fringe.
11618
11619 * w32term.c (x_update_window_end): Call draw_window_fringes.
11620 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11621 in row instead of actually drawing fringe bitmaps.
11622 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11623 (w32_draw_window_cursor): Draw cursor in fringe.
11624
11625 * macterm.c (x_update_window_end): Call draw_window_fringes.
11626 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11627 in row instead of actually drawing fringe bitmaps.
11628 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11629 (mac_draw_window_cursor): Draw cursor in fringe.
11630
a633a954
JD
116312004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11632
11633 * xterm.c (handle_one_xevent): Don't handle characters that are part
11634 of an old style (XLookupString) compose sequence.
11635
80460525
KH
116362004-01-15 Kenichi Handa <handa@m17n.org>
11637
11638 * search.c (Freplace_match): Use make_multibyte_string or
11639 make_unibyte_string according to the buffer multibyteness.
11640
7fc34f85
SM
116412004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
11642
11643 * alloc.c (struct interval_block, struct string_block)
11644 (struct symbol_block, struct marker_block, live_string_p)
11645 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
11646 Better preserve alignment for objects in blocks.
11647 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
11648
11649 * lread.c (defvar_per_buffer): Remove dead declaration.
11650
11651 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
11652 space size.
11653
66070bd1
JD
116542004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11655
11656 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
11657 if a key press should pop down. Only pop down if a key is pressed
11658 outside the menu/dialog.
11659 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
11660 popup_get_selection.
11661 (create_and_show_dialog): Pass 1 for down_on_keypress to
11662 popup_get_selection.
11663
de7515d6
JD
116642004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11665
11666 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
11667 BLOCK/UNBLOCK_INPUT.
11668
160b1b50
JD
116692004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11670
11671 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
11672 specified.
11673
3a9f36e6
KH
116742004-01-08 Kenichi Handa <handa@m17n.org>
11675
11676 * editfns.c (Fformat): Fix '&' to '&&'.
11677
3803eb32
AS
116782004-01-08 Andreas Schwab <schwab@suse.de>
11679
11680 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
11681 size if PSEUDOVECTOR_FLAG is set.
11682
9da88f37
KH
116832004-01-07 Kenichi Handa <handa@m17n.org>
11684
74ac5074
KH
11685 * charset.c (Fdeclare_equiv_charset): Fix docstring.
11686
9da88f37
KH
11687 * fontset.c (fontset_ref_via_base): Fix previous change.
11688
05faee07
KS
116892004-01-07 Kim F. Storm <storm@cua.dk>
11690
11691 * process.c (read_process_output): Only activate adaptive
11692 buffering if we read less than 256 bytes at a time.
11693
634910c8
KS
116942004-01-06 Kim F. Storm <storm@cua.dk>
11695
11696 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
11697 object and image object. Return glyph width and height.
11698 (mode_line_string, marginal_area_string): Ditto.
11699
11700 * dispextern.h (buffer_posn_from_coords, mode_line_string)
11701 (marginal_area_string): Fix prototypes.
11702
11703 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 11704 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
11705 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
11706
11707 * keyboard.c (make_lispy_position): Use modified mode_line_string,
11708 buffer_posn_from_coords, and marginal_area_string functions to
11709 include both string object and image object in the lispy position.
11710 Also add actual glyph width and height to position.
11711 (read_key_sequence): Use real buffer position from mouse
11712 event to find keymap property even when click is in marginal area.
11713
11714 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
11715 mode_line_string and marginal_area_string functions to handle
11716 both string object and image object properties.
d7107586 11717
57951c2e
AS
117182004-01-06 Andreas Schwab <schwab@suse.de>
11719
11720 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
11721 character.
11722
181e6a61
AS
117232004-01-02 Andreas Schwab <schwab@suse.de>
11724
d7107586
SM
11725 * macterm.c (emacs_options, x_initialized, same_x_server):
11726 Remove unused (and duplicated) definitions.
181e6a61 11727
31e0fbdd
KS
117282004-01-02 Kim F. Storm <storm@cua.dk>
11729
11730 * process.h (struct Lisp_Process): New members for adaptive read
11731 buffering: adaptive_read_buffering, read_output_delay, and
11732 read_output_skip.
11733
11734 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
11735 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
11736 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
11737 (process_output_delay_count, process_output_skip): New vars.
11738 (Vprocess_adaptive_read_buffering): New variable.
11739 (make_process): Initialize adaptive read buffering members.
11740 (Fstart_process): Set adaptive_read_buffering member.
11741 (deactivate_process): Cleanup adaptive read buffering.
11742 (wait_reading_process_input): Temporarily omit delayed
11743 subprocesses from the set of file descriptors to read from;
11744 adjust the select timeout if we skipped any subprocesses.
11745 (read_process_output): Increase adaptive read buffering delay if
11746 we read less than a full buffer; reduce delay when we read a
11747 full buffer.
11748 (send_process): Simplify using local Lisp_Process var.
11749 Reset adaptive read buffering delay after write.
11750 (init_process): Initialize process_output_delay_count and
11751 process_output_skip.
11752 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
11753
68c6a789
JR
117542004-01-01 Jason Rumney <jasonr@gnu.org>
11755
d7107586 11756 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 11757
3f70fe82
LT
117582003-12-30 Luc Teirlinck <teirllm@auburn.edu>
11759
11760 * print.c (Ferror_message_string): Add hyperlink in the docstring
11761 to the definition of `signal' in the Elisp manual.
11762 * eval.c (Fsignal): Ditto.
11763
b6189c3b 117642003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
11765
11766 * fns.c (internal_equal): Return t for two NaN arguments.
11767
7abd90ea
RS
117682003-12-29 Richard M. Stallman <rms@gnu.org>
11769
11770 * data.c (store_symval_forwarding): Handle setting
11771 default-fill-column, etc., by changing the value in
11772 buffers that use the default.
11773
11774 * minibuf.c (Fset_minibuffer_window): Doc fix.
11775
11776 * fileio.c (choose_write_coding_system): Ignore auto_saving
11777 if using the visited file for auto saves.
11778 (Fwrite_region): Don't update SAVE_MODIFF
11779 if auto-saving in visited file.
11780
3e7cfcdc
KH
117812003-12-29 Kenichi Handa <handa@m17n.org>
11782
11783 * dispextern.h (face_font_available_p): Extern it.
11784
11785 * fontset.c (Voverriding_fontspec_alist): New variable.
11786 (lookup_overriding_fontspec): New function.
d7107586 11787 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
11788 (fontset_font_pattern): Likewise.
11789 (regulalize_fontname): New function.
11790 (Fset_fontset_font): Call regulalize_fontname.
11791 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
11792 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
11793 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
11794
11795 * xfaces.c (face_font_available_p): New function.
11796
7abd90ea
RS
117972003-12-28 Richard M. Stallman <rms@gnu.org>
11798
11799 * buffer.c (Fother_buffer): Don't crash if BUF is nil
11800 or if its name is nil.
11801
11802 * buffer.c (Fkill_buffer): Don't delete auto-save file
11803 if it's the same as the visited file.
11804
de1d1a40
LT
118052003-12-28 Luc Teirlinck <teirllm@auburn.edu>
11806
11807 * coding.c (Fcheck_coding_system): Doc fix.
11808
204fb75e
KS
118092003-12-28 Kim F. Storm <storm@cua.dk>
11810
11811 * Makefile.in (eval.o): Depend on dispextern.h.
11812
11813 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
11814 image glyph using image's ascent.
11815 (mode_line_string): Return image glyph as object clicked on.
11816 Adjust y0 for image glyph using image's ascent.
11817
11818 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
11819 (struct glyph): New members, ascent and descent. Used to save
11820 this glyph's ascent and descent, instead of having.
11821 (struct glyph): Declare member face_id using FACE_ID_BITS.
11822 (find_hot_spot): Add prototype.
11823
11824 * keyboard.c (Qimage): Remove extern (now in lisp.h).
11825 (QCmap): Declare extern.
11826 (make_lispy_position): When position is inside image hot-spot,
11827 use hot-spot element's id as posn element.
11828
11829 * lisp.h (IMAGEP): New macro to test for image object type.
11830 (Qimage): Declare extern.
11831
11832 * macfns.c (Qimage): Remove extern (now in lisp.h).
11833 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11834
11835 * macterm.c (Qface, Qmouse_face): Remove unused externs.
11836
11837 * w32fns.c (Qimage): Remove extern (now in lisp.h).
11838 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11839
11840 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
11841
11842 * w32term.c (Qface, Qmouse_face): Remove unused externs.
11843
11844 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
11845 pointer types.
11846 (Qrelative_width, Qalign_to): Remove unused variables.
11847 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
11848 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
11849 image maps.
d7107586 11850 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
11851 new dx and dy args.
11852 Remove buffer_only_p arg (always 0). Simplify code accordingly.
11853 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
11854 than row's ascent and height, to get sensible height on tall rows.
11855 (build_desired_tool_bar_string): Remove Qimage extern.
11856 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
11857 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
11858 image glyph is alone on the last line.
11859 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 11860 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 11861 (on_hot_spot_p): New function to check if position is inside an
d7107586 11862 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
11863 (find_hot_spot): New function to search for image hot-spot.
11864 (Flookup_image_map): New defun to search for image hot-spot.
11865 (define_frame_cursor1): New aux function to determine frame pointer.
11866 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11867 Handle `pointer' text property and :pointer image property to
11868 control frame pointer shape. Detect image hot-spots for pointer
11869 and help_echo properties. Use define_frame_cursor1.
11870 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 11871 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
11872 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
11873
11874 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
11875
11876 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
11877 (Qimage): Remove extern (now in lisp.h).
11878 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11879
11880 * xmenu.c (show_help_event): Remove unused code.
11881
11882 * xterm.c (Qface, Qmouse_face): Remove unused externs.
11883 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
11884 row's ascent and descent, to get a sensible height on tall rows.
11885
fc052137
LT
118862003-12-25 Luc Teirlinck <teirllm@auburn.edu>
11887
11888 * minibuf.c (Fcompleting_read): Undo previous change.
11889
a64387ee 118902003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
11891
11892 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
11893 Arguments GCPRO'ed in call to file name handler.
11894
56ffd194
TTN
118952003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
11896
11897 * termcap.c (tgetst1): Scan for "%pN"; if all
11898 N are continuous in [1,9], remove all "%pN".
11899
5202d23d
JD
119002003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11901
f26fab36
JD
11902 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
11903
5202d23d
JD
11904 * xfaces.c (lface_fully_specified_p): Take into account that
11905 MAC OS always have unspecified stipple.
11906
8babaa59
TTN
119072003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
11908
11909 * tparam.c (tparam1): Add handling for `%pN', which
11910 means use param N for the next substitution.
11911
2d176448
TTN
119122003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
11913
11914 * xfaces.c (Fcolor_gray_p): Fix omission bug:
11915 In case `frame' is nil, consult the selected frame.
11916 (Fcolor_supported_p): Likewise.
11917
adb0708c
LT
119182003-12-23 Luc Teirlinck <teirllm@auburn.edu>
11919
000eeb15
LT
11920 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
11921 Doc fixes.
0dc72b11
LT
11922
11923 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
11924 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
11925 (Fread_from_minibuffer): Delete code moved into read_minibuf.
11926 Doc fix.
11927 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
11928 read_minibuf.
11929 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 11930 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 11931
2e4d132b
KH
119322003-12-03 Kenichi Handa <handa@m17n.org>
11933
11934 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
11935 encoding sequence.
11936
3999c705
KH
119372003-12-01 Kenichi Handa <handa@m17n.org>
11938
11939 * composite.c (syms_of_composite): Don't make the compostion hash
11940 table week.
11941
d344ecbb
LT
119422003-11-30 Luc Teirlinck <teirllm@auburn.edu>
11943
11944 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
11945 * textprop.c (Fget_char_property_and_overlay): New function.
11946 (syms_of_textprop): Defsubr it.
11947
03d6484e
JD
119482003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11949
019b1f0e
JD
11950 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
11951 to compile on terminal configuration.
11952
03d6484e
JD
11953 * fileio.c (Fread_file_name): Check use_file_dialog also before
11954 calling Fx_file_dialog.
11955
1d1c7e75 11956 * fns.c (use_file_dialog): New variable.
03d6484e
JD
11957 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
11958
442d3fd0
KS
119592003-11-29 Kim F. Storm <storm@cua.dk>
11960
11961 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
11962 (syms_of_msdos): Don't intern and staticpro them.
11963
0f6a07a8
KS
119642003-11-27 Kim F. Storm <storm@cua.dk>
11965
11966 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
11967 coordinates relative to glyph at posn. If glyph is an image,
11968 return that as object at posn. Callers changed.
11969 (mode_line_string, marginal_area_string): Calculate and return
11970 pixel coordinates relative to glyph. Callers changed.
11971
11972 * dispextern.h (buffer_posn_from_coords, mode_line_string)
11973 (marginal_area_string): Fix prototypes.
11974 (window_box_left_offset, window_box_right_offset): Add prototypes.
11975
11976 * frame.h (get_specified_cursor_type, get_window_cursor_type):
11977 Remove prototypes.
11978
11979 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
11980
11981 * keyboard.c (make_lispy_position): Add x and y coordinates
11982 relative to the current glyph as 7th element of position.
11983 If glyph is an image, return it in the object element.
11984 (read_key_sequence): Skip checks for keymap property in cases
11985 where POSN_STRING is not a string (e.g. an image).
11986
11987 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
11988 (Vshow_text_cursor_in_void): New variable.
11989 (glyph_to_pixel_coords): Don't use negative hpos.
11990 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
11991 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 11992 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
11993 (calc_pixel_width_or_height): New aux function, implementing
11994 pixel based artihmetic for glyph widths and heights.
11995 (produce_stretch_glyph): Use calc_pixel_width_or_height for
11996 :width, :height, :align-to, and :ascent, thus allowing these to
11997 be specified in pixels as well as multiples of characters.
11998 Don't produce stretch glyphs with zero width or height.
11999 (get_specified_cursor_type): Declare static.
12000 (get_window_cursor_type): Declare static. Add glyph arg to be
12001 able to know when cursor is on an image; always substitute
12002 hollow-box cursor for filled-box cursor on images, to avoid
12003 negative images and flicker when blinking the cursor.
12004 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
12005 (note_mode_line_or_margin_highlight): Use non-text cursor rather
12006 than vertical scroll-bar cursor in display margins.
12007 (note_mouse_highlight): Use non-text cursor rather than text
12008 cursor in fringes and over images in the text area.
12009 Use non-text cursor when mouse pointer is outside editable text,
12010 i.e. in the void after end-of-line or end-of-buffer; this was
12011 already done for W32, but is now standard for all systems --
12012 user can toggle show-text-cursor-in-void to get old behaviour.
12013 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
12014 Vdisplay_pixels_per_inch.
12015
00498bfc
AS
120162003-11-25 Andreas Schwab <schwab@suse.de>
12017
12018 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
12019 EMACS_INT to not lose bits.
12020 (Ffillarray): Don't set bits beyond the size of a bool vector.
12021
edaa824d
KS
120222003-11-25 Kim F. Storm <storm@cua.dk>
12023
12024 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
12025 define this defun on systems that cannot use stderr as lvalue.
12026
74d6f539
GM
120272003-11-24 Gerd Moellmann <gerd@gnu.org>
12028
12029 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
12030 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
12031 ld's default is incompatible with unexec.
12032
6a1ff3ba
KS
120332003-11-23 Kim F. Storm <storm@cua.dk>
12034
63dc7c6b
KS
12035 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
12036 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
12037 (Fforce_window_update): New defun.
12038 (syms_of_window): Defsubr it.
12039 (Fset_window_margins, Fset_window_fringes): Doc fix.
12040
6a1ff3ba
KS
12041 * print.c (Fredirect_debugging_output): New defun.
12042 (syms_of_print): Defsubr it.
12043
aef109b7
LT
120442003-11-22 Luc Teirlinck <teirllm@auburn.edu>
12045
12046 * fns.c (Fset_char_table_parent): Doc fix.
12047
6a1ff3ba 120482003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
12049
12050 * dispnew.c (buffer_posn_from_coords): Return actual row/column
12051 for glyph clicked on, rather than (unused) pixel positions.
12052 (mode_line_string, marginal_area_string): Change X and Y args to
12053 pointers for returning actual row/column for glyph clicked on.
12054 Simplify and optimize loops.
12055
aef109b7
LT
12056 * dispextern.h (mode_line_string, marginal_area_string):
12057 Update prototypes.
63ccbe21
KS
12058
12059 * keyboard.c (make_lispy_position): New function for generating
12060 mouse click positions from frame and pixel coordinates.
12061 Enhanced to return buffer position and actual row/column for
12062 events outside the text area using updated mode_line_string and
12063 marginal_area_string functions.
12064 Return left-fringe and right-fringe clicks as such, rather than
12065 clicks in text area.
12066 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
12067 pixel_to_glyph_coords, as we never use the results.
12068 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
12069 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
12070 Eliminate unused code in WHEEL_EVENT handling.
12071 (make_lispy_movement): Use make_lispy_position.
12072
12073 * window.c (coordinates_in_window): Remove redundant tests.
12074 Fix returned X pixel value for left-margin.
12075
12076 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
12077 mode_line_string and marginal_area_string parameters.
12078
a64387ee 120792003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 12080
d7107586
SM
12081 * w32.c (struct the_group, getgrgid): Add.
12082 * mac.c (struct my_group, getgrgid): Add.
aef109b7 12083
3dbf3426
LT
120842003-11-21 Luc Teirlinck <teirllm@auburn.edu>
12085
12086 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
12087
cae8ddbb 120882003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 12089
d7107586
SM
12090 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
12091 include in call to file name handler. Optionally translate numeric
12092 UID and GID to strings. Update docstring.
12093 (directory_files_internal): Add parameter ID-FORMAT.
12094 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
12095 include in call to file name handler and call to
12096 directory_files_internal. Update Docstring.
12097 (Fdirectory_files): Add dummy parameter in call to
12098 directory_files_internal.
12099 * lisp.h (Qinteger): Add.
12100 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
12101 (Ffile_attributes): Add parameter.
12102 * data.c (Qinteger): Export.
cae8ddbb 12103
2550b848
LT
121042003-11-21 Luc Teirlinck <teirllm@auburn.edu>
12105
3dbf3426 12106 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 12107
88380018
KS
121082003-11-19 Kim F. Storm <storm@cua.dk>
12109
12110 * xdisp.c (init_iterator): Initialize it->start to position
12111 before reseating (in case start position is invisible).
12112 (init_to_row_start): Set it->start to row-start.
12113 (redisplay_window): Accept optional_new_start if start position
12114 is invisible (in which case IT_CHARPOS overshoots PT).
12115 (display_line): Setup row->start from it->start (rather than
12116 it->current which is wrong if first char on line is invisible).
12117 When done, reseat it->start to it->current (= start of next row).
12118 (expose_area): Fix exposure of text area when first char (e.g. TAB)
12119 is only partially visible.
12120
12121 * dispextern.h (struct it): New member start.
12122
854c1a59
SM
121232003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12124
455316e2
SM
12125 * alloc.c (make_float, Fcons): Clear the markbit at init time.
12126 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
12127 of block_index outside of the macro call.
12128 (Fgarbage_collect): Remove null code.
12129
12130 * m/amdx86-64.h: Don't redefine XPNTR.
12131
854c1a59
SM
12132 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
12133 of VALMASK.
12134
12135 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
12136 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
12137 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
12138
12139 * lisp.h (VALMASK): Only define for non-union type.
12140 (MARKBIT): Remove.
12141 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
12142 (XTYPE): Define unconditionally.
12143 (XSETTYPE): Remove one more remnant.
12144 (EQ): Define differently for the union and non-union cases.
12145 (INTMASK): New bit mask.
12146 (struct Lisp_Marker): Move down to prepare for upcoming patch.
12147 (GC_EQ): Delegate to EQ.
12148
12149 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
12150
a0c6ef2d
JD
121512003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12152
12153 * xterm.c (x_window_to_scroll_bar): Move check of display to
12154 where window_id is compared.
12155
859492c4
KS
121562003-11-17 Kim F. Storm <storm@cua.dk>
12157
12158 * dispextern.h (struct it): New member first_vpos.
12159
12160 * xdisp.c (start_display): Set it->first_vpos.
12161 (try_window_id): Use first_vpos to start display in first _text_
12162 line if no reusable lines at start of window with header line.
12163
810f2256
JD
121642003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12165
7c402969 12166 * w32fns.c (XPutPixel):
854c1a59
SM
12167 * w32bdf.c (w32_init_bdf_font):
12168 * sunfns.c (sel_read):
12169 * process.c (Fmake_network_process):
12170 * frame.c (store_frame_param):
12171 * fontset.c (Fset_fontset_font):
12172 * emacs.c (shut_down_emacs):
a64387ee 12173 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 12174
a32e9bfd
JD
12175 * config.in: Regenerate.
12176
810f2256
JD
12177 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12178 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12179 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
12180 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
12181 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
12182
12183 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
12184
12185 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
12186 (XTmouse_position, handle_one_xevent): Pass Display* to
12187 x_window_to_scroll_bar.
12188 (x_window_to_scroll_bar): Take a Display* argument.
12189 Check that display for frame is equal to Display* argument.
854c1a59 12190 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
12191 x_display_info_for_display instead. Use Display in xev instead
12192 of GDK_DISPLAY.
12193 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 12194 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
12195 (x_connection_closed): Call xg_display_close for GTK.
12196 (x_term_init): Call xg_display_open for additional displays.
12197 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
12198 for GTK.
12199
12200 * xmenu.c (single_menu_item, mouse_position_for_popup)
12201 (x_activate_menubar): Formatting adjustments.
12202
12203 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
12204 adjustments.
12205
12206 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
12207 (xg_display_close, xg_create_default_cursor)
12208 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
12209 handling.
854c1a59
SM
12210 (xg_left_ptr_cursor): Remove.
12211 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
12212 cursor here.
12213 (xg_win_to_widget): Take Display* argument, call
12214 gdk_xid_table_lookup_for_display.
12215 (xg_create_frame_widgets, xg_get_file_name, create_menus)
12216 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
12217 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
12218 in FRAME_X_DISPLAY_INFO.
12219 (xg_get_scroll_id_for_window): Take Display* argument.
12220 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 12221 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 12222
78819ebb
KS
12223 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
12224 Display* argument.
12225 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 12226
0b03cc78
JD
122272003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12228
12229 * xterm.c (x_detect_focus_change): Do not change focus frame for
12230 Enter/LeaveNotify if the current focus frame has explicit focus.
12231
77e688fa
KS
122322003-11-14 Kim F. Storm <storm@cua.dk>
12233
12234 * dispnew.c (update_text_area): Fix redisplay error when hscroll
12235 is active and first glyph is only partially visible.
854c1a59 12236
dd429b03
KH
122372003-11-13 Kenichi Handa <handa@m17n.org>
12238
12239 * xdisp.c (select_frame_for_redisplay): New function.
12240 (redisplay_internal): Record also selected_frame for
12241 unwind_redisplay. Call select_frame_for_redisplay before
12242 redrawing each frame.
12243 (unwind_redisplay): Argument changed to a cons.
12244
6d9266f4
LT
122452003-11-12 Luc Teirlinck <teirllm@auburn.edu>
12246
12247 * fns.c (Fstring_to_multibyte): Doc fix.
12248
80060eb3
KH
122492003-11-11 Kenichi Handa <handa@m17n.org>
12250
12251 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12252
74305183
JD
122532003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12254
12255 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
12256 program specified positions.
12257
cfda993e
JD
122582003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12259
12260 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
12261
df211069
KH
122622003-11-08 Kenichi Handa <handa@m17n.org>
12263
12264 * Makefile.in (lisp): Add kannada.el.
12265 (shortlisp): Likewise.
12266
4307d534
KH
122672003-11-07 Kenichi Handa <handa@m17n.org>
12268
854c1a59
SM
12269 * coding.c (coding_allocate_composition_data):
12270 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
12271 (coding_restore_composition): Detect invalid composition data.
12272 Give Fstring and Fvector a Lispy integer, not C int.
12273
854c1a59
SM
122742003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
12275
12276 * floatfns.c (Flogb): Don't use VALMASK.
12277
12278 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
12279 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
12280
12281 * lisp.h (XINT): Move the cast to clarify what is going on.
12282 (GCTYPEMASK, XSETTYPE): Remove.
12283 (XGCTYPE): Make it an alias of XTYPE.
12284
d04103a1
JD
122852003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12286
12287 * xterm.c (x_term_init): Fix formatting.
12288
da18b5ac
JD
122892003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12290
78819ebb
KS
12291 * gtkutil.h (xg_have_tear_offs): Declare.
12292 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
12293
12294 * gtkutil.c: Remove variable xg_did_tearoff.
12295 (xg_have_tear_offs): New function.
12296 (tearoff_remove): Just decrease xg_detached_menus.
12297 (tearoff_activate): Increase xg_detached_menus and call
12298 tearoff_remove when tearoff is removed.
854c1a59 12299 (xg_keep_popup): Remove function.
da18b5ac
JD
12300 (create_menus): Give add_tearoff_p as argument to recursive
12301 call to create_menus.
12302 (xg_create_widget): Use variables instead of multiple
12303 strcmp. Tell create_menus to create tear off only for
12304 menu bar menus.
12305 (xg_update_menubar): Change title for a detached menu also.
12306 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
12307 of deep_p.
12308 (xg_initialize): Initialize xg_detached_menus, remove
12309 initialization of xg_did_tearoff.
12310
12311 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
12312 xg_have_tear_offs returns non-zero.
12313 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
12314 call to xg_keep_popup.
12315
64d4923e
AC
123162003-11-01 Andrew Choi <akochoi@shaw.ca>
12317
12318 * macterm.c (XTread_socket): Handle menubar selection and grow
12319 window only for mouseDown events.
854c1a59 12320
6cc8bc07
JD
123212003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12322
12323 * xterm.c (x_term_init): For GTK part, increase x_initialized
12324 to check for more than one display. Use error instead of return 0.
12325
043131c4
AC
123262003-10-31 Andrew Choi <akochoi@shaw.ca>
12327
854c1a59 12328 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
12329 (copy_dysymtab): Call it.
12330
bdda99a1
LT
123312003-10-31 Luc Teirlinck <teirllm@auburn.edu>
12332
12333 * eval.c (Fdefvaralias): Doc fix.
12334
800f42ff 123352003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
12336
12337 * data.c (Fsetplist): Doc fix.
12338
ef35b389
LK
123392003-10-14 Lute Kamstra <lute@gnu.org>
12340
12341 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 12342
ef35b389 123432003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 12344
07107abc
KS
12345 * window.c (Fset_window_margins): Simplify arg checking.
12346
f7005886
RS
123472003-10-13 Richard M. Stallman <rms@gnu.org>
12348
12349 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
12350 (print_partial_compiled_pattern): Replace assert with a printout.
12351 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
12352
12353 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
12354
12355 * window.c (Fset_window_margins): Allow only integers as args.
12356 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
12357 Doc fixes.
12358
9c0c2af5
LK
123592003-10-13 Lute Kamstra <lute@gnu.org>
12360
12361 * window.c (Fset_window_fringes): Elaborate docstring.
12362
3f080e4e
AC
123632003-10-12 Andrew Choi <akochoi@shaw.ca>
12364
854c1a59 12365 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 12366
3f080e4e
AC
12367 * s/darwin.h (GC_MARK_STACK): Define.
12368
0aa513ed
JD
123692003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12370
12371 * window.c (shrink_windows): New function.
12372 (size_window): Call shrink_windows to calculate window sizes when
12373 shrinking frame with more than one window.
12374
6aa8858a
KS
123752003-10-12 Kim F. Storm <storm@cua.dk>
12376
12377 * xdisp.c (compute_fringe_widths): Doc fix.
12378
c2164d91
KH
123792003-10-08 Kenichi Handa <handa@m17n.org>
12380
854c1a59 12381 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 12382
f82ac129
KH
123832003-10-07 Kenichi Handa <handa@m17n.org>
12384
12385 * coding.c (Qcoding_system_define_form): New variable.
12386 (syms_of_coding): Intern and staticpro it.
12387 (Fcheck_coding_system): Try to autoload the definition of
12388 CODING-SYSTEM.
12389
9296c947
LT
123902003-10-05 Luc Teirlinck <teirllm@auburn.edu>
12391
12392 * fns.c (Frequire): Doc fix.
12393
c1f0671a
JD
123942003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12395
3d8c3826
JD
12396 * xfns.c (Fx_send_client_event): New function as a base for
12397 manipulating extended window manager hints.
6dc15d98 12398 (Fx_send_client_event): Remove unused variable s.
3d8c3826 12399
068ae0fd
JD
12400 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
12401 that function is removed.
12402
12403 * xterm.c (x_set_offset): Use move_offset_left/top instead of
12404 x/y_pixels_outer_diff.
12405 (x_check_expected_move): Calculate move_offset_left/top.
12406
12407 * xterm.h (struct x_output): New members: move_offset_top/left.
12408
854c1a59 12409 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
12410 call x_set_offset directly.
12411
12412 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
12413
96f09305
JD
12414 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
12415
12416 * xterm.c (x_delete_display): Free font names and font_encoder
12417 in dpyinfo->font_table.
12418
854c1a59
SM
12419 * xfns.c (Fx_close_connection): Only call XFreeFont here.
12420 Move xfree of font names to x_delete_display.
96f09305 12421
c1f0671a
JD
12422 * xterm.h (struct x_display_info): New member, wm_type.
12423 (struct x_output): New members, expected_top/left and
12424 check_expected_move.
12425
12426 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
12427 is received.
854c1a59
SM
12428 (handle_one_xevent): Rename x_check_expected_move from
12429 x_check_fullscreen_move.
c1f0671a
JD
12430 (x_set_offset): Only add WM decoration sizes to modified_top/left
12431 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 12432 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
12433 Removed fullscreen specific code. Use check_expected_move,
12434 expected_left/top instead. Also, set wm_type.
12435 (x_term_init): Initialize wm_type to unknown.
12436
12437 * frame.c (x_fullscreen_move): Remove addition of WM decoration
12438 sizes to move_x/y.
12439
be2fdba9
KH
124402003-10-03 Kenichi Handa <handa@m17n.org>
12441
12442 * macterm.c (x_load_font): Clear all members of FONTP before start
12443 filling them.
12444
124452003-10-02 Kenichi Handa <handa@m17n.org>
12446
12447 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
12448 before calling find_ccl_program_func. Call find_ccl_program_func
12449 only when fontp->font_encoder is not NULL.
12450
12451 * xterm.c (x_load_font): Clear all members of FONTP before start
12452 filling them.
12453
26a6e439
JPW
124542003-10-03 John Paul Wallington <jpw@gnu.org>
12455
12456 * keymap.c (map_keymap): Don't abort when binding is a vector.
12457
0d4c2dc2
JR
124582003-10-02 Jason Rumney <jasonr@gnu.org>
12459
854c1a59
SM
12460 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
12461 Sync dependencies with Makefile.in.
a63cf46f
JR
12462 (alloca.o): Remove.
12463
0d4c2dc2
JR
12464 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
12465 filling them.
12466
12467 * w32bdf.c (w32_load_bdf_font): Likewise.
12468
ab8f7d5c
RS
124692003-09-30 Richard M. Stallman <rms@gnu.org>
12470
12471 * term.c (set_tty_color_mode): Calculate current_mode_spec
12472 regardless of value of VAL.
12473
854c1a59 12474 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
12475 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
12476 Handle over_used when splitting UNDER.
12477
a64387ee 124782003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
12479
12480 * regex.c (regex_compile): Free the stack when returning from function.
12481
3413f972
KH
124822003-09-28 Kenichi Handa <handa@m17n.org>
12483
12484 * fontset.c (Finternal_char_font): Change return value to
12485 cons (FONT-NAME . GLYPH-CODE).
12486
a6eeaa81 124872003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
12488
12489 * term.c (tty_setup_colors): Treat any negative argument as -1.
12490
f98ddc99
KH
124912003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
12492
12493 * process.c (send_process): Delete unused temp_buf.
12494
66c8f1a8
DL
124952003-09-26 Dave Love <fx@gnu.org>
12496
12497 * xterm.c (x_bitmap_mask): Declare.
12498
ca716c26
DL
124992003-09-25 Dave Love <fx@gnu.org>
12500
12501 * Makefile.in (fns.o): Depend on md5.h.
12502
fbe57420
KS
125032003-09-25 Kim F. Storm <storm@cua.dk>
12504
12505 * window.c (set_window_buffer): Fix redisplay problems when
12506 switching between buffers with different display margin widths.
12507
ef6ae4ff
KS
125082003-09-23 Kim F. Storm <storm@cua.dk>
12509
12510 * process.c (set_socket_option): Fix :bindtodevice option.
12511 (Fset_network_process_option): Update process contact list when
12512 setting option succeeds.
12513 (Fmake_network_process): Doc fix.
12514
68e03c1c
DL
125152003-09-23 Dave Love <fx@gnu.org>
12516
7146d1c1 12517 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 12518
a6eeaa81 125192003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
12520
12521 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
12522 color mode is an integer number (it could be -1).
12523
8fe7d8c8
RS
125242003-09-22 Richard M. Stallman <rms@gnu.org>
12525
12526 * intervals.c (graft_intervals_into_buffer): Correct the main loop
12527 in the case where OVER is longer than UNDER.
12528
2f71b5ea
MY
125292003-09-22 Masatake YAMATO <jet@gyve.org>
12530
7146d1c1 12531 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 12532 `vertical_type'.
7146d1c1 12533
0c4da023
KS
125342003-09-21 Kim F. Storm <storm@cua.dk>
12535
12536 * frame.c (Vdefault_frame_scroll_bars): New variable.
12537 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
12538 (syms_of_frame): DEFVAR_LISP it, and initialize according to
12539 window-system default scroll bar position.
12540
b648413b
KS
12541 * window.c (Fwindow_scroll_bars): Doc fix.
12542
8f5b9e34
JD
125432003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12544
854c1a59 12545 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 12546
b0f23edf
RS
125472003-09-19 Richard M. Stallman <rms@gnu.org>
12548
12549 * atimer.h: Don't include lisp.h.
12550 (P_): Define it here (as well as elsewhere).
12551
12552 * print.c (Fprin1_to_string): Move the PRINTPREPARE
12553 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
12554
12555 * data.c (Fvariable_binding_locus): New function.
12556 (syms_of_data): defsubr it.
12557 (Flocal_variable_p): Delete duplicate call to indirect_variable.
12558
e1283999
DL
125592003-09-18 Dave Love <fx@gnu.org>
12560
ad5f3636
DL
12561 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
12562
e1283999
DL
12563 * process.c (Fnetwork_interface_info): Fix type error.
12564 (Fnetwork_interface_list): Doc fix.
12565 (read_process_output, read_process_output): Delete unused var.
12566
b8c7fd71
KS
125672003-09-17 Kim F. Storm <storm@cua.dk>
12568
12569 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
12570 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
12571 (Fnetwork_interface_info): Check that ifreq struct has required
12572 fields before accessing them; this requires that those fields are
12573 defined as macros, which may be too restrictive on some platforms,
12574 but it is better than failing on other platforms.
12575 (syms_of_process): Only defsubr above fns when included.
12576
11e0a411
DL
125772003-09-17 Dave Love <fx@gnu.org>
12578
12579 * unexalpha.c: Don't include varargs.h.
12580
e9c50801
KS
125812003-09-17 Kim F. Storm <storm@cua.dk>
12582
12583 * process.c (Fset_process_sentinel): Add sentinel to childp plist
12584 for network process.
12585 (socket_options): Add `:' prefix to option names. Add optbit field.
12586 (set_socket_option): Remove no_error arg and special handling of s < 0.
12587 Return 1<<optbit for known option, 0 for unknown.
12588 Do not interpret 0 as false for boolean option (only nil).
12589 Pass failed option and value to report_file_error.
7146d1c1 12590 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
12591 (Fset_network_process_option): New function to set just one option.
12592 (Fmake_network_process): Allow :coding arg to be a cons.
12593 Allow :server arg to be an integer specifying backlog size.
12594 Remove :options arg, and allow options to be specified directly
12595 as :KEY, VALUE pairs. Parse these options before binding socket.
12596 As before, :reuseaddr t is default for a server process, but this
12597 can now be disabled by specifying :reuseaddr nil.
12598 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
12599 (init_process): Availability of network options is now checked with
12600 simpler syntax (featurep 'make-network-process :OPTION); use loop to
12601 setup features.
12602 (syms_of_process): Fix defsubr's for the replaced functions.
12603
a0fc3644
DL
126042003-09-16 Dave Love <fx@gnu.org>
12605
12606 * Makefile.in: Depend on coding.h.
12607
6df2a645
KS
126082003-09-14 Kim F. Storm <storm@cua.dk>
12609
12610 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
12611 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
12612 (syms_of_process): Defsubr them.
12613
12614 * config.in: Regenerate.
7146d1c1
SM
12615
126162003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12617
12618 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
12619 * m/news-r6.h (XUNMARK): Remove.
12620 * m/mips.h (XUNMARK): Remove.
12621 * m/mips-siemens.h (XUNMARK): Remove.
12622 * m/iris4d.h (XUNMARK): Remove.
12623 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
12624
0930c1a1
SM
126252003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12626
31003b9e
SM
12627 * lisp.h (VALBITS): Don't remove 1 for the markbit.
12628 (union Lisp_Object): Use unsigned int for types. Remove markbit.
12629 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
12630 (XTYPE): Use unsigned right-shift.
12631 (XMARKBIT, XMARK, XUNMARK): Remove.
12632
0930c1a1
SM
12633 * alloc.c (init_intervals, init_symbol, init_marker):
12634 Don't preallocate anything.
12635 (Fgarbage_collect, mark_object): Ignore the markbit.
12636
12637 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
12638
19bb0fcd 126392003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
12640
12641 * xdisp.c (pint2hrstr): New function.
12642 (decode_mode_spec): Add `%i' and `%I' specs.
12643 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
12644 for `mode-line-format'.
12645
03bb6a06
AS
126462003-09-07 Andreas Schwab <schwab@suse.de>
12647
12648 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
12649 avoid warning.
12650
a6eeaa81 126512003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 12652
0930c1a1 12653 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 12654
ed159bbf
KS
126552003-09-03 Kim F. Storm <storm@cua.dk>
12656
12657 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
12658 change (superseded by 2002-08-30 change); the default blink-off
12659 cursor is now again "no cursor".
12660
fe64a394
JR
126612003-09-01 Jason Rumney <jasonr@gnu.org>
12662
12663 * makefile.w32-in (alloca.o): Remove.
12664 (coding.o): Depend on intervals.h
12665 (emacs.o, bytecode.o): Depend on window.h
12666
c0175e24
DL
126672003-09-01 Dave Love <fx@gnu.org>
12668
12669 * Makefile.in (alloca.o): Remove commands.
12670 (coding.o): Depend on intervals.h composite.h window.h.
12671 (emacs.o): Depend on window.h keyboard.h keymap.h.
12672 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
12673 (bytecode.o): Depend on window.h.
12674
a24d4cb2
JR
126752003-08-31 Jason Rumney <jasonr@gnu.org>
12676
4bc2315e
JR
12677 * w32term.c (w32_per_char_metric): Allow cached metrics to be
12678 returned even when font_type is unknown.
12679
a24d4cb2
JR
12680 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
12681
9d35adc7
JD
126822003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12683
12684 * xterm.c (x_term_init): Initialize new fields in x_display_info.
12685
12686 * xterm.h (struct x_display_info): Add red/green/blue_bits and
12687 *_offset.
12688
12689 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
12690 calculate pixel value.
12691
6f68b035
GM
126922003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
12693
0930c1a1
SM
12694 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
12695 Don't tell redisplay display is accurate when it's actually been
12696 paused for pending input.
6f68b035 12697
4828b4d7
RS
126982003-08-29 Richard M. Stallman <rms@gnu.org>
12699
12700 * dispnew.c (adjust_glyph_matrix): Call window_box
12701 whenever W is nonzero.
12702
12703 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12704 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 12705 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
12706 Use indirect_variable to trace thru variable aliases.
12707
12708 * config.in: Updated.
12709
12710 * callint.c (Fcall_interactively): Save and restore
12711 Vthis_command, Vthis_original_command, real_this_command,
12712 and current_kboard->Vlast_command.
12713
12714 * abbrev.c (Fexpand_abbrev): Insert before deleting.
12715
e019878d
GM
127162003-08-29 Gerd Moellmann <gerd@gnu.org>
12717
12718 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
12719
85478bc6
KH
127202003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
12721
0930c1a1 12722 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
12723 (decode_coding_sjis_big5): Likewise.
12724
07ce82d3
JR
127252003-08-27 Jason Rumney <jasonr@gnu.org>
12726
d3703de3
JR
12727 * w32.c (sys_pipe): Protect against file descriptor overflow.
12728
ee4a01d1
JR
12729 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
12730
07ce82d3
JR
12731 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
12732
a64387ee 127332003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
12734
12735 * xfns.c (Vgtk_version_string): New variable.
12736 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
12737
a6eeaa81 127382003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 12739
0930c1a1 12740 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 12741
5459e42a
EZ
12742 * Makefile.in (msdos.o): Depend on intervals.h.
12743
0930c1a1 12744 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 12745
231d6cfb
JD
127462003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12747
12748 * xterm.h (struct x_display_info): New fields: client_leader_window
12749 and Xatom_wm_client_leader.
12750
12751 * xterm.c (x_initialize): Move call to x_session_initialize to ...
12752 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
12753
12754 * xsmfns.c (create_client_leader_window): New function.
12755 (x_session_initialize): Call create_client_leader_window, take
12756 dpyinfo as argument.
12757
12758 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
12759
12760 * Makefile.in (xsmfns.o): Add more depenedencies.
12761
afa88464
DL
127622003-08-21 Dave Love <fx@gnu.org>
12763
12764 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
12765
f730033e
KH
127662003-08-21 Kenichi Handa <handa@m17n.org>
12767
12768 * term.c (term_init): Fix previous change; don't rely on the
12769 length of `buffer' if TERMINFO is defined.
12770
6dca786c
DL
127712003-08-20 Dave Love <fx@gnu.org>
12772
12773 * atimer.h: Include lisp.h.
12774
12775 * lisp.h (EMACS_LISP_H): New.
12776 (popup_activated_flag): Don't declare.
12777
12778 * alloca.c: Some merging with gnulib. Change logic and doc
12779 concerning (x)malloc/(x)free -- no longer Emacs-specific.
12780 [DO_BLOCK_INPUT]: Don't include lisp.h.
12781 (xmalloc, xfree): Declare.
12782 (malloc): Don't declare.
12783
0930c1a1 12784 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
12785 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
12786 atimer.h, blockinput.h.
12787
12788 * alloc.c (lisp_align_malloc): Change type of `aligned'.
12789
78819ebb 12790 * alloca.s: Remove.
6dca786c 12791
3a06a6d9
RS
127922003-08-19 Gerd Moellmann <gerd@gnu.org>
12793
12794 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
12795 use -lncurses.
12796
12797 * term.c (term_init): Use a buffer of size 4096 for tgetent since
12798 FreeBSD returns something longer than 2044. Abort if the end of
12799 the buffer is overwritten.
12800
27eeee55
MB
128012003-08-19 Miles Bader <miles@gnu.org>
12802
12803 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
12804
2f297815
GM
128052003-08-19 Gerd Moellmann <gerd@gnu.org>
12806
f4446bbf
GM
12807 * alloc.c (lisp_align_malloc): Check for memory full when
12808 allocating ablocks, which also avoids freeing a pointer into an
12809 ablocks structure.
12810
12811 * puresize.h (BASE_PURESIZE): Increase to 1100000.
12812
0930c1a1 12813 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 12814
0e7d7aae
RS
128152003-08-16 Richard M. Stallman <rms@gnu.org>
12816
12817 * editfns.c (Fencode_time): Doc fix.
12818
128192003-08-16 David Ponce <david@dponce.com>
12820
12821 * fileio.c (Fwrite_region): Fix conditional expression to issue
12822 the right message.
12823
b6189c3b 128242003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
12825
12826 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 12827 Set default value to 1.
0e7d7aae 12828
5d551295
KH
128292003-08-15 Kenichi Handa <handa@m17n.org>
12830
12831 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
12832 what autoscaled.
12833 (best_matching_font): Once we find a better scalable font, set
12834 non_scalable_has_exact_height_p to 1.
12835 (try_font_list): Call try_alternative_families to try any family
12836 with the given registry.
12837
1661e56b
AS
128382003-08-09 Andreas Schwab <schwab@suse.de>
12839
f29181dc
AS
12840 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
12841
1661e56b
AS
12842 * print.c (print_string): Fix printing of multibyte string with
12843 nontrivial printcharfun.
12844
465aa50a
JD
128452003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12846
12847 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
12848
12849 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
12850
e430e5ba
KH
128512003-07-31 Kenichi Handa <handa@m17n.org>
12852
12853 * process.c (read_process_output): Return the actually read bytes
12854 instead of the result of decoding.
12855
97e7188e
KH
128562003-07-31 Kenichi Handa <handa@m17n.org>
12857
12858 * xterm.h (struct x_bitmap_record): New member have_mask.
12859
12860 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
12861 to 0.
12862 (x_create_bitmap_from_file): Likewise.
12863 (x_destroy_bitmap): Check have_mask member before freeing a mask.
12864 (x_destroy_all_bitmaps): Likewise.
12865 (x_create_bitmap_mask): Set have_mask member to 1.
12866
b53094d6
RS
128672003-07-30 Richard M. Stallman <rms@gnu.org>
12868
12869 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
12870
631f2082
JD
128712003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12872
12873 * gtkutil.c (xg_mark_data): Update calls to mark_object.
12874
c855f2ca
RS
128752003-07-29 Richard M. Stallman <rms@gnu.org>
12876
12877 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
12878 Conditionalize XIM code on HAVE_XIM.
12879
12880 * fns.c (Fclear_string): New function.
12881 (syms_of_fns): defsubr it.
12882
b6189c3b 128832003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 12884
0930c1a1 12885 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 12886
29ea8ae9
SM
128872003-07-22 Stefan Monnier <monnier@cs.yale.edu>
12888
12889 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
12890
12891 * buffer.c (delete_all_overlays): New function.
12892 * buffer.h (delete_all_overlays): Declare.
12893 * coding.c (run_pre_post_conversion_on_str):
12894 * print.c (temp_output_buffer_setup):
12895 * fileio.c (Finsert_file_contents):
12896 * minibuf.c (get_minibuffer): Use it.
12897
1dd7ccf2
AC
128982003-07-22 Andrew Choi <akochoi@shaw.ca>
12899
12900 * unexmacosx.c (unexec_regions_sort_compare):
12901 (unexec_regions_merge): New functions. Sort and merge unexec
12902 regions before dumping them.
12903
f57bd967
DL
129042003-07-22 Dave Love <fx@gnu.org>
12905
12906 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
12907
7cdee936
SM
129082003-07-21 Stefan Monnier <monnier@cs.yale.edu>
12909
12910 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
12911 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
12912 MARKBIT as the gcmarkbit for strings.
12913
e50886d3
RS
129142003-07-21 Richard M. Stallman <rms@gnu.org>
12915
12916 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
12917
29ea8ae9 12918 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
12919 (syms_of_fns): Corresponding change.
12920
12921 * alloc.c (syms_of_alloc): Doc fixes.
12922
129232003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
12924
12925 * s/netbsd.h: Use -Wl syntax.
12926
fdc39b59
RS
129272003-07-17 Richard M. Stallman <rms@gnu.org>
12928
12929 * xterm.c (xim_initialize): Redo 6/24 change.
12930
9c53385f
SM
129312003-07-15 Stefan Monnier <monnier@cs.yale.edu>
12932
12933 * buffer.c (copy_overlays): Use EMACS_INT for positions.
12934 (Fswitch_to_buffer): Don't signal an error when switching to the same
12935 buffer in a dedicated window.
12936
12937 * alloc.c: Use bitmaps for cons, as was done for floats.
12938 (init_float, init_cons): Let the normal code allocate the first block.
12939 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
12940 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
12941 New macros.
12942 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
12943 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
12944 (live_cons_p): Check the pointer is not past the `conses' array.
12945 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
12946 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
12947 (survives_gc_p): Use CONS_MARKED_P and simplify.
12948 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
12949
dde13196
PE
129502003-07-13 Paul Eggert <eggert@twinsun.com>
12951
12952 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
12953 puts it into BSS instead, at least on Solaris 8 and 9.
12954 This is a valid optimization, and it may occur on other platforms,
12955 so Emacs should not assume that initializing a static variable to
12956 zero puts it into data.
12957 * alloc.c (pure, staticvec):
12958 Initialize these arrays to nonzero, so that they're not
12959 put into BSS by that optimization.
12960
a801bc34
SM
129612003-07-13 Stefan Monnier <monnier@cs.yale.edu>
12962
12963 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
12964 (lisp_align_malloc): Use posix_memalign is available.
12965 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
12966 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
12967 for consistency. Update users.
12968
0c8b2afa
RS
129692003-07-13 Richard M. Stallman <rms@gnu.org>
12970
12971 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
12972
668c2ab0
JB
129732003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
12974
9dd28cae 12975 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
668c2ab0
JB
12976 and use the Gtk+ function gtk_window_icon_from_file if available.
12977
12978 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
12979 handle mask of bitmaps.
12980 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
12981 mask property.
12982 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
12983
12984 * xterm.h (xg_set_icon): New function.
12985
800bebe3
RS
129862003-07-12 Paul Eggert <eggert@twinsun.com>
12987
12988 * unexelf.c (unexec): Consider a section to precede the .bss
12989 section if its addresses overlap that of .bss.
12990
69e38995
RS
129912003-07-12 Richard M. Stallman <rms@gnu.org>
12992
12993 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
12994
12995 * config.in (HAVE_CRTIN): Add #undef.
12996 (INLINE): Really inline only if OPTIMIZE is defined.
12997
12998 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
12999 END_FILES_1.
13000 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 13001 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
13002
13003 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
13004 (TERMINFO): Define.
13005 (LIBS_TERMCAP): Define.
13006 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
13007
13008 * xfns.c: Include libpng/png.h instead of png.h.
13009
f1d0c238
AS
130102003-07-11 Andreas Schwab <schwab@suse.de>
13011
13012 * buffer.c (modify_overlay): Update prototype.
13013 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
13014 Likewise.
13015
5f6bf5fe
SM
130162003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13017
13018 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
13019 (struct interval): Move to intervals.h.
13020 (struct Lisp_Marker): Use EMACS_INT for position info.
13021 (forward_point): Remove prototype of defunct function.
13022 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
13023 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
13024 (syms_of_textprop, set_text_properties): Remove prototypes that are
13025 already in intervals.h.
13026
13027 * intervals.h (struct interval): Move from lisp.h.
13028 Use EMACS_INT for position and size info.
13029
13030 * coding.c: Include intervals.h for Fset_text_properties.
13031
13032 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
13033 position and length information.
13034
2765b457
SM
130352003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13036
13037 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
13038 position and length information.
13039
2410d73a
SM
130402003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13041
13042 Change overlays_after and overlays_before so the overlays themselves
13043 are linked into lists, rather than using cons cells. After all each
13044 Lisp_Misc already occupies 5 words, so we can add a `next' field to
13045 Lisp_Overlay for free and save up one cons cell per overlay (not
13046 to mention one indirection when traversing the list of overlay).
13047
13048 * lisp.h (struct Lisp_Overlay): New field `next'.
13049
13050 * buffer.h (struct buffer): Change overlays_before and overlays_after
13051 from Lisp lists of overlays to pointers to overlays.
13052
13053 * buffer.c (overlay_strings, recenter_overlay_lists):
13054 Fix typo in eassert in last commit.
13055 (unchain_overlay): New function.
13056 (add_overlay_mod_hooklist): Use AREF.
13057 (copy_overlays, reset_buffer, overlays_at, overlays_in)
13058 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
13059 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
13060 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
13061 (report_overlay_modification, evaporate_overlays, init_buffer_once):
13062 Adjust to new type of overlays_(before|after).
13063
13064 * alloc.c (mark_object): Mark the new `next' field of overlays.
13065 (mark_buffer): Manually mark the overlays_(after|before) fields.
13066
13067 * coding.c (run_pre_post_conversion_on_str):
13068 * editfns.c (overlays_around):
13069 * xdisp.c (load_overlay_strings):
13070 * fileio.c (Finsert_file_contents):
13071 * indent.c (current_column):
13072 * insdel.c (signal_before_change, signal_after_change):
13073 * intervals.c (set_point_both):
13074 * print.c (temp_output_buffer_setup): Use new type for
13075 overlays_(before|after).
13076
04812929
SM
130772003-07-08 Stefan Monnier <monnier@cs.yale.edu>
13078
13079 * buffer.c (report_overlay_modification): Don't run hooks while
13080 traversing the list of overlays.
13081
13082 * buffer.h (struct buffer): Use an int for overlay_center.
13083 (overlays_at, evaporate_overlays, recenter_overlay_lists)
13084 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
13085
13086 * buffer.c (reset_buffer, recenter_overlay_lists)
13087 (adjust_overlays_for_insert, adjust_overlays_for_delete)
13088 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
13089 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
13090 (overlays_at, evaporate_overlays, recenter_overlay_lists)
13091 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
13092
13093 * xdisp.c (fast_find_position): Remove unused var.
13094
13095 * cmds.c (Qexpand_abbrev): New sym.
13096 (syms_of_cmds): Initialize it.
13097 (internal_self_insert): Use it to call expand-abbrev.
13098
2e7ecf15
KS
130992003-07-09 Kim F. Storm <storm@cua.dk>
13100
f9711de4 13101 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 13102 was configured with --without-xim.
42f81f64 13103 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 13104
c6de56a0
RS
131052003-07-07 Richard M. Stallman <rms@gnu.org>
13106
13107 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
13108
13109 * alloc.c (Fgarbage_collect): Doc fix.
13110
b6189c3b 131112003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
13112
13113 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
13114
bfe1a3f7
SM
131152003-07-06 Stefan Monnier <monnier@cs.yale.edu>
13116
04812929
SM
13117 * minibuf.c (read_minibuf): UNGCPRO before returning.
13118 (Ftry_completion, Fall_completions): Doc fix.
13119
bfe1a3f7
SM
13120 * alloc.c (live_float_p): Check that p is not past the `floats' array,
13121 now that `floats' is not the last element of the struct any more.
13122
ee79d1aa
JR
131232003-07-06 Jason Rumney <jasonr@gnu.org>
13124
13125 * w32term.h (ClipboardSequence_Proc): New type.
13126
13127 * w32fns.c (clipboard_sequence_fn): New variable.
13128 (globals_of_w32fns): Initialize it.
13129
13130 * w32select.c (last_clipboard_sequence_number): New variable.
13131 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
13132 number if possible.
13133
49723c04
SM
131342003-07-06 Stefan Monnier <monnier@cs.yale.edu>
13135
4698665f
SM
13136 * m/amdx86-64.h (MARKBIT):
13137 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
13138 MARKBIT and ARRAY_MARK_FLAG any more.
13139
13140 * m/hp800.h (XSETMARKBIT):
13141 * m/sr2k.h (XSETMARKBIT):
13142 * lisp.h (XSETMARKBIT): Remove unused macro.
13143
49723c04
SM
13144 * lisp.h (mark_object): Change prototype.
13145
13146 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
13147 (last_marked): Change accordingly.
13148 (mark_interval, mark_maybe_object, mark_maybe_pointer)
13149 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
13150 (mark_buffer): Update calls to mark_object.
13151
13152 * bytecode.c (mark_byte_stack):
13153 * fns.c (sweep_weak_table):
13154 * keyboard.c (mark_kboards): Update calls to mark_object.
13155
1d660eca
JR
131562003-07-06 Jason Rumney <jasonr@gnu.org>
13157
13158 * alloc.c (struct ablock): Only include padding when there is some.
13159
618b5ae4
SM
131602003-07-04 Stefan Monnier <monnier@cs.yale.edu>
13161
13162 * alloc.c (ALIGN): Add casts to simplify usage.
13163 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
13164 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
13165 (struct ablock, struct ablocks): New types.
13166 (free_ablock): New global var.
13167 (lisp_align_malloc, lisp_align_free): New functions.
13168 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
13169 (struct float_block): Reorder and add gcmarkbits.
13170 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
13171 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
13172 (init_float, make_float): Use lisp_align_malloc.
13173 (free_float, live_float_p): Don't use `type' any more.
13174 (make_float): Use FLOAT_UNMARK to access to mark bit.
13175 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
13176 Use FLOAT_MARKED_P to access the mark bit.
13177 (pure_alloc): Simplify use of ALIGN.
13178 (mark_object): Use FLOAT_MARK to access the mark bit.
13179 (gc_sweep): Use new macros to access the float's mark bit.
13180 (init_alloc_once): Init free_ablock.
13181
13182 * lisp.h (struct Lisp_Float): Remove unused field `type'.
13183
3ef06d12
SM
131842003-06-27 Stefan Monnier <monnier@cs.yale.edu>
13185
13186 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
13187 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
13188 (allocate_buffer): Move.
13189 (string_bytes): Don't mask markbit of `size_byte'.
13190 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
13191 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
13192 Use the `size' field of buffers (rather than the `name' field) for
13193 the mark bit, as is done for all other vectorlike objects.
13194 Use the new macros to access the mark bit of vectorlike objects.
13195
e81043aa
RS
131962003-06-26 Richard M. Stallman <rms@gnu.org>
13197
13198 * puresize.h (BASE_PURESIZE): Increment base size.
13199
13200 * xdisp.c (fast_find_position): Enable Gerd's new definition.
13201
13202 * xterm.c (xim_initialize): Undo previous change.
13203
2d0834cc
SM
132042003-06-26 Stefan Monnier <monnier@cs.yale.edu>
13205
13206 * alloc.c (survives_gc_p): Simplify.
13207
13208 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
13209
13210 * window.c (Fset_window_dedicated_p): Simplify.
13211 (display_buffer_1): Don't raise the win from which minibuf was entered.
13212 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
13213 (Fminibuffer_selected_window): Simplify.
13214
13215 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
13216
13217 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
13218 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
13219
13220 * insdel.c (check_markers, adjust_markers_for_delete)
13221 (adjust_markers_for_insert, adjust_markers_for_replace)
13222 (prepare_to_modify_buffer, RESTORE_VALUE):
13223 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
13224 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
13225 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
13226 * alloc.c (Fmake_marker, free_marker, gc_sweep):
13227 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
13228 * editfns.c (save_excursion_restore, transpose_markers):
13229 * window.c (delete_window):
13230 * xdisp.c (message_dolog): Update for new types.
13231
d54ae3d8
JD
132322003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13233
a5f696ac
JD
13234 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
13235 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 13236 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
13237
13238 * frame.c (make_frame): Initialize default_face_done_p.
13239
13240 * frame.h (struct frame): Add default_face_done_p.
13241
d54ae3d8
JD
13242 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
13243 will be defined.
13244
2336fe58
SM
132452003-06-25 Stefan Monnier <monnier@cs.yale.edu>
13246
13247 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
13248 Initialize the new field `gcmarkbit'.
13249 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
13250 (mark_interval_tree): Don't mark the tree separately from the nodes.
13251 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
13252 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
13253 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
13254
13255 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
13256 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
13257 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
13258 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
13259 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
13260
bcea31c2
DL
132612003-06-24 Dave Love <fx@gnu.org>
13262
13263 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
13264
13265 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
13266 from gnulib.
13267
2601f59e
RS
132682003-06-21 Richard M. Stallman <rms@gnu.org>
13269
13270 * fileio.c (Fwrite_region): Alternate messages
13271 for append and partial write.
13272
13273 * keyboard.c (read_key_sequence): When converting upcase fn key to
13274 downcase, update fkey and keytran so `backspace' gets translated.
13275
13276 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
13277
13278 * process.c (wait_reading_process_input): Don't signal SIGIO
13279 in batch mode.
13280
b5d2c621
KH
132812003-06-17 Kenichi Handa <handa@m17n.org>
13282
13283 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
13284 composite.h.
13285
13286 * xselect.c: Don't include charset.h, coding.h, composite.h.
13287 (Qforeign_selection): New variable.
13288 (syms_of_xselect): Intern and static it.
13289 (selection_data_to_lisp_data): Return a unibyte string made from
13290 data with `foreign-selection' text property.
13291
6793bc63
SM
132922003-06-15 Stefan Monnier <monnier@cs.yale.edu>
13293
13294 * termhooks.h (EVENT_INIT): New macro.
13295
13296 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
13297
13298 * alloc.c (mark_kboards): Move to keyboard.c.
13299
13300 * keyboard.c (record_asynch_buffer_change, read_avail_input):
13301 * xterm.c (x_dispatch_event):
13302 * xmenu.c (find_and_call_menu_selection):
13303 * xdisp.c (handle_tool_bar_click):
13304 * w32menu.c (menubar_selection_callback):
13305 * sysdep.c (kbd_input_ast, read_input_waiting):
13306 * msdos.c (dos_rawgetc):
13307 * macterm.c (mac_check_for_quit_char):
13308 * macmenu.c (menubar_selection_callback):
13309 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
13310 data to kbd_buffer_store_event.
13311
b3ea810c
KS
133122003-06-15 Kim F. Storm <storm@cua.dk>
13313
13314 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 13315 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 13316
b8f75eda
KG
133172003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
13318
13319 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
13320
ba92ce48
KH
133212003-06-12 Kenichi Handa <handa@m17n.org>
13322
13323 * fileio.c (Fwrite_region): Save and restore restriction.
13324
b80263be
DL
133252003-06-12 Dave Love <fx@gnu.org>
13326
13327 * alloca.c (alloca): Declare arg as size_t.
13328
6793bc63
SM
13329 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
13330 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 13331
b23c0a83
DL
133322003-06-11 Dave Love <fx@gnu.org>
13333
13334 * search.c (shrink_regexp_cache): Use xrealloc.
13335 (syms_of_search): Use xmalloc.
13336
700e47c2
KS
133372003-06-10 Kim F. Storm <storm@cua.dk>
13338
13339 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
13340 Adjust phys_cursor.x to be relative to window box, rather than
13341 text area before checking -- to ensure cursor is redrawn when
13342 exposing window.
13343 Note: This also fixes a similar (older) bug if display margins
13344 are present.
13345
f11aa0b2
KH
133462003-06-06 Kenichi Handa <handa@m17n.org>
13347
13348 * coding.c (encoding_buffer_size): If coding->type is
13349 coding_type_ccl, double magnification on CRLF encoding.
13350
3d143690
JR
133512003-06-06 Jason Rumney <jasonr@gnu.org>
13352
13353 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
13354 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
13355
13356 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
13357 Mac too.
13358
f16205ca
DL
133592003-06-05 Dave Love <fx@gnu.org>
13360
b23c0a83
DL
13361 * strftime.c: Merge changes from gnulib.
13362
f16205ca
DL
13363 * mktime.c (__mktime_internal): Merge changes from gnulib
13364 involving year 69 and dst2.
13365
13366 Changes to merge with gnulib version and be consistent with the
13367 autoconf test:
13368
6793bc63
SM
13369 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
13370 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
13371 [HAVE_LOCALE_H]: Include locale.h.
13372 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
13373
9b87a0bc
KS
133742003-06-05 Kim F. Storm <storm@cua.dk>
13375
13376 * window.c (coordinates_in_window): Convert X and Y to window
13377 relative coordinates inside mode-line and header-line parts.
13378 Convert X and Y to margin area relative coordinates inside left
13379 and right display margin parts.
13380
5a8a15ec
JR
133812003-06-05 Jason Rumney <jasonr@gnu.org>
13382
13383 * w32fns.c (add_system_logical_colors_to_map): New function.
13384 (Fx_open_connection): Use it.
13385
01ed8ff1
SM
133862003-06-04 Stefan Monnier <monnier@cs.yale.edu>
13387
13388 * process.c (allocate_pty): Revert part of the previous patch.
13389 (Faccept_process_output): Simplify.
13390
b427b65d
JR
133912003-06-04 Jason Rumney <jasonr@gnu.org>
13392
13393 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
13394
13395 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
13396 (lispy_mouse_wheel_names): Remove.
13397 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
13398 Always define drag_and_drop_syms.
13399
13400 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
13401 WHEEL_EVENT events.
13402
914a8c47
SM
134032003-06-03 Stefan Monnier <monnier@cs.yale.edu>
13404
01ed8ff1
SM
13405 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
13406
914a8c47
SM
13407 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
13408
adcb132c
JD
134092003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13410
13411 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
13412 menu item label.
13413
be781fa7
RS
134142003-06-03 Richard M. Stallman <rms@gnu.org>
13415
13416 * window.c (Fwindow_edges): Doc fix.
13417 (Fwindow_pixel_edges, Fwindow_inside_edges)
13418 (Fwindow_inside_pixel_edges): New functions.
13419 (syms_of_window): defsubr them.
13420
13421 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
13422 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
13423
914a8c47
SM
134242003-06-02 Stefan Monnier <monnier@cs.yale.edu>
13425
13426 * dispnew.c (Fsit_for): Don't lie about the number of args.
13427
5b07197a
DL
134282003-06-02 Dave Love <fx@gnu.org>
13429
13430 * callproc.c: Use HAVE_FCNTL_H, not USG5.
13431 (syms_of_callproc) <process-environment>: Doc fix.
13432
13433 * doc.c: Use HAVE_FCNTL_H, not USG5.
13434
13435 * xfaces.c (font_rescale_ratio): Fix for K&R.
13436
13437 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
13438
13439 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
13440
13441 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
13442
13443 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
13444 (xg_create_frame_widgets): Use ENCODE_UTF_8.
13445
d7107586 13446 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
13447
13448 * xmenu.c (ENCODE_MENU_STRING): New.
13449 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
13450 Use it.
13451
13452 * coding.h (ENCODE_UTF_8): New.
13453 (Qutf_8): Declare.
13454
13455 * coding.c (Qutf_8): New.
13456 (syms_of_coding): Intern it.
13457
13458 * fns.c: Doc fixes.
13459
7335b336
KH
134602003-06-02 Kenichi Handa <handa@m17n.org>
13461
13462 * buffer.c (Fset_buffer_multibyte): Fix previous change.
13463
914a8c47
SM
134642003-06-01 Stefan Monnier <monnier@cs.yale.edu>
13465
13466 * lread.c (openp): Make sure STR is a string.
13467
9862c135
JR
134682003-06-01 David Ponce <david@dponce.com>
13469
cab27d04 13470 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
13471 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
13472
13473 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
13474 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
13475 (discard_mouse_events): Discard WHEEL_EVENT events too.
13476 (lispy_wheel_names, wheel_syms): New.
13477 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 13478 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 13479 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
13480
13481 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
13482 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
13483 WHEEL_EVENT events.
13484
f984e73e
JPW
134852003-05-31 John Paul Wallington <jpw@gnu.org>
13486
13487 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
13488 timer are in lisp/emacs-lisp.
13489
1efcd78f
KH
134902003-05-31 Kenichi Handa <handa@m17n.org>
13491
458c8af4
KH
13492 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
13493 region when a buffer is changed to unibyte.
13494
1efcd78f
KH
13495 * charset.h (VALID_LEADING_CODE_P): New macro.
13496 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
13497
778e2804
KH
13498 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
13499 is nonzero, accept multibyte form of eight-bit-control chars.
13500 (decode_composition_emacs_mule): Likewise.
13501 (decode_coding_emacs_mule): Likewise.
13502 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
13503 multibyte form of eight-bit-control chars.
13504
13505 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
13506 (Finsert_file_contents): If coding-system-for-read is bound to
13507 Qauto_save_coding, use the coding system emacs-mule with special
13508 setting for recovering a file.
13509 (choose_write_coding_system): On auto saving, use the coding
13510 system emacs-mule with special setting for auto saving.
13511 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
13512
034060e4
KH
135132003-05-30 Kenichi Handa <handa@m17n.org>
13514
13515 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
13516 properly before calling ccl_driver.
13517
778e2804 13518 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 13519
cab27d04 13520 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
13521 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
13522 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
13523
595f5aa5
GM
135242003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
13525
13526 * xfaces.c (realize_default_face): Do not abort if lface is
13527 non-existent - reverts change from 2003-05-19.
13528
103e0180
KH
135292003-05-29 Kenichi Handa <handa@m17n.org>
13530
13531 * coding.c (decode_coding_iso2022): Pay attention to the byte
13532 sequence of CTEXT extended segment, and retain those bytes as is.
13533
135342003-05-28 Kenichi Handa <handa@m17n.org>
13535
cab27d04 13536 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
13537 of CODING_REPLACEMENT_CHARACTER.
13538 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
13539 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
13540 check this flag on encoding.
cab27d04
SM
13541 (encode_coding_sjis_big5):
13542 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
13543 (Fset_terminal_coding_system_internal):
13544 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
13545 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
13546
13547 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
13548 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13549 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
13550
ff6a3bfb 135512003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 13552
ff6a3bfb
RS
13553 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
13554
13555 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 13556
1963c428
KS
135572003-05-28 Kim F. Storm <storm@cua.dk>
13558
13559 * xdisp.c (expose_window): Fix error in calculation of
13560 window relative coordinates of area to redisplay.
13561
2b5d4601
JR
135622003-05-27 Jason Rumney <jasonr@gnu.org>
13563
13564 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
13565
1c64a4a2
JB
135662003-05-27 David Ponce <david@dponce.com>
13567
13568 Handle W32 mouse wheel events as mouse click events, like in X.
13569
13570 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
13571 MOUSE_WHEEL_EVENT anymore.
13572
13573 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
13574 Scrolling down/up the mouse wheel is respectively mapped to mouse
13575 button 4 and 5.
13576 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
13577 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
13578 WM_MOUSEWHEEL events.
13579
2d031b89
AS
135802003-05-27 Andreas Schwab <schwab@suse.de>
13581
20464fdf
AS
13582 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
13583
2d031b89
AS
13584 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
13585 partially visible line.
13586
13587 * alloc.c (Fgarbage_collect): Fix last change.
13588
97bc76d4
JPW
135892003-05-26 John Paul Wallington <jpw@gnu.org>
13590
13591 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
13592
56613f06
SM
135932003-05-25 Stefan Monnier <monnier@cs.yale.edu>
13594
13595 * window.c (Fset_window_buffer): Add type of `keep_margins'.
13596 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
13597
13598 * window.h (window_box_text_cols): Declare.
13599
13600 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
13601 (x_draw_vertical_border): Remove unused var `f'.
13602
13603 * xfaces.c (build_scalable_font_name): Remove `unused var
13604 pixel_size' warning.
13605
13606 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
13607
13608 * unexelf.c (unexec): Remove `unused var n' warning.
13609
13610 * strftime.c (my_strftime_localtime_r): Remove `defined but
13611 unused' warning.
13612
13613 * process.c (allocate_pty): Remove `unused var stb' and
13614 `cp might be used uninitialized' warnings.
13615
13616 * dispnew.c (mode_line_string): Remove unused var `f'.
13617
13618 * coding.c (find_safe_codings): Remove unused var `i'.
13619
13620 * bytecode.c (Fbyte_code): Remove `unused val' warning.
13621
13622 * buffer.c (Fkill_buffer): Remove unused var `list'.
13623
13624 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
13625
93421a1f
JD
136262003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13627
13628 * frame.c (make_frame): Condition want_fullscreen with
13629 HAVE_WINDOW_SYSTEM.
13630
c4b8aebc
JB
136312003-05-25 Juanma Barranquero <lektu@terra.es>
13632
13633 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
13634 (Fwindow_scroll_bars): Fix typo in docstring.
13635
0416870b
KS
136362003-05-24 Kim F. Storm <storm@cua.dk>
13637
13638 The following changes serve several purposes:
13639
13640 1) Swap the position of fringes and display margins in windows, i.e.
13641 the fringes are now displayed between the margins and the text area
13642 (by default).
13643
13644 2) Allow fringe and scroll bar parameters to be set per-buffer and
13645 per-window (like display margins). Such settings are now stored
13646 in window configurations, preserved when frames are resized, and
9018a88e 13647 copied when windows are split vertically or horizontally.
0416870b
KS
13648 Several bugs related to display margins have been fixed.
13649
13650 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 13651
0416870b
KS
13652 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
13653 rather than FRAME_WIDTH (FRAME_FONT (f)).
13654
13655 5) Introduce a consistent naming of variables, members and macros
13656 depending on whether their value is measured in pixels or in
13657 canonical columns/lines. Pixel dimensions are named *_width and
13658 *_height, while canonical columns/lines are named *_cols and
13659 *_lines. Pixel positions are named *_x and *_y, while column/line
13660 positions are named *_col and *_line.
13661
13662 6) Consolidate more of the X, W32, and MAC gui code by moving
13663 common data into struct frame, and generalize it for the non-gui
13664 case by using suitable defaults.
13665
13666 7) Cleanup and consolidate the macros controlling frame and window
13667 layout into frame.h and window.h, and generalize the use of the
13668 various window_box_* functions (enhanced to handle the new fringe
13669 position and the per-window fringe and scroll bar settings).
13670
13671 * frame.h (struct frame): Rename members height to text_lines,
13672 width to text_cols, window_height to total_lines, window_width to
13673 total_cols, new_height to new_text_lines, new_width to
13674 new_text_cols. All uses changed.
13675 (struct frame): New members which consolidate common members of
13676 x_output, w32_output, and mac_output structures: left_pos,
13677 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
13678 win_gravity, size_hint_flags, border_width, internal_border_width,
13679 line_height, fringe_cols, left_fringe_width, right_fringe_width,
13680 want_fullscreen. All uses changed.
13681 (struct frame): New member column_width contaning the canonical
13682 column width, analogue to line_height. All uses changed.
13683 (struct frame): Rename members scroll_bar_pixel_width to
13684 config_scroll_bar_width, and scroll_bar_cols to
13685 config_scroll_bar_cols. All uses changed.
13686 (struct frame): New member scroll_bar_actual_width which
13687 consolidates and renames the vertical_scroll_bar_extra member of
13688 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 13689 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
13690 from x/w32/macterm.h files. All uses changed. Also change code
13691 which referred to f->output_data...->pixel_height.
cab27d04 13692 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 13693 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 13694 which referred to f->output_data...->pixel_width.
cab27d04 13695 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 13696 Also change code which referred to f->height.
cab27d04 13697 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
13698 Also change code which referred to f->width.
13699 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
13700 to update new_text_lines and new_text_cols members directly.
cab27d04 13701 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 13702 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 13703 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
13704 FRAME_SCROLL_BAR_COLS. All uses changed.
13705 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 13706 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
13707 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
13708 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
13709 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
13710 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
13711 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
13712 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
13713 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
13714 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
13715 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
13716 Unconditionally return line_height member (it now has proper value
13717 also for non-window frames).
13718 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
13719 return new column_width member (rather than the default font width).
13720 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 13721 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
13722 from x/w32/macterm.h files. Unconditionally return corresponding
13723 member of frame structure (they now have proper values also for
13724 non-window frames).
cab27d04 13725 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
13726 Calculate return value from left and right widths.
13727 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
13728 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
13729 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
13730 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
13731 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
13732 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
13733 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 13734 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 13735 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 13736 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 13737 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 13738 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 13739 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 13740 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 13741 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 13742 consolidated from x/mac/w32term.h.
cab27d04 13743 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 13744 consolidated from x/mac/w32term.h.
cab27d04 13745 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 13746 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 13747 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
13748 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
13749
13750 * window.h (struct window): Rename members left to left_col,
13751 top to top_line, height to total_lines, width to total_cols,
13752 left_margin_width to left_margin_cols, right_margin_width to
13753 right_margin_cols, orig_height to orig_total_lines, orig_top to
13754 orig_top_line. All uses changed.
13755 (struct window): New members left_fringe_width, right_fringe_width,
13756 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
13757 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
13758 New macros primarily used to simplify other macros.
13759 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
13760 referred to XINT (w->width).
13761 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
13762 referred to XINT (w->height).
13763 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
13764 referred to XINT (w->width) * canon_x_unit.
13765 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
13766 referred to XINT (w->height) * canon_y_unit.
13767 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
13768 referred to XINT (w->left).
cab27d04 13769 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
13770 all uses and code that referred to XINT (w->left) + XINT (w->width).
13771 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
13772 referred to XINT (w->top).
13773 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
13774 referred to XINT (w->top) + XINT (w->height).
13775 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
13776 referred to XINT (w->left) * canon_x_unit.
13777 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
13778 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
13779 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
13780 referred to XINT (w->top) * canon_y_unit.
13781 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
13782 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
13783 (WINDOW_LEFTMOST_P): New macro.
cab27d04 13784 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 13785 All uses changed.
cab27d04 13786 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 13787 All uses changed.
cab27d04 13788 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
13789 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
13790 Do not exclude left fringe width.
cab27d04 13791 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
13792 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
13793 Do not exclude fringe widths.
13794 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
13795 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
13796 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
13797 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
13798 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
13799 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
13800 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
13801 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
13802 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
13803 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
13804 New macros. Change code which referenced corresponding
13805 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
13806 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
13807 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
13808 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
13809 allow per-window scroll-bar settings.
13810 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
13811 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
13812 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
13813 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
13814 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
13815 FRAME_SCROLL_BAR_WIDTH.
13816 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 13817 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 13818 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 13819 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 13820 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 13821 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 13822 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
13823 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
13824 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
13825 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
13826 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
13827 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 13828 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 13829 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
13830 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
13831 (window_from_coordinates): Update prototype.
13832 (Fset_window_buffer): Update EXFUN.
13833 (set_window_buffer): Update prototype.
9018a88e 13834
0416870b 13835 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 13836 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
13837 changed.
13838 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
13839 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
13840 internal_border_width is now set to 0 for non-window frames.
13841 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
13842 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
13843 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
13844 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
13845 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
13846 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
13847 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
13848 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
13849 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 13850 Move to window.h and renamed [see window.h changes].
0416870b
KS
13851 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
13852 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
13853 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
13854 Use WINDOW_TOTAL_LINES.
0416870b
KS
13855 (frame_update_line_height): Remove prototype.
13856
13857 * buffer.h (struct buffer): Rename members measured in columns:
13858 left_margin_width to left_margin_cols, right_margin_width to
13859 right_margin_cols. All uses changed.
13860 New members left_fringe_width, right_fringe_width,
13861 fringes_outside_margins for per-buffer fringe settings.
13862 New members scroll_bar_width and vertical_scroll_bar_type for
13863 per-buffer scroll bar settings.
13864
13865 * buffer.c (init_buffer_once): Set buffer_defaults and
13866 buffer_local_flags for new buffer-local variables
13867 left_fringe_width, right_fringe_width, fringes_outside_margins,
13868 scroll_bar_width, and vertical_scroll_bar_type.
13869 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
13870 default-* variables for them.
13871
13872 * dispnew.c: Make (many) trivial substitutions for renamed and
13873 new macros in dispextern.h, frame.h and window.h.
13874 (mode_line_string): No need to adjust width for mode lines, as it
13875 is already adjusted by the caller.
13876 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 13877
0416870b
KS
13878 * frame.c: Make (many) trivial substitutions for renamed and
13879 new macros in dispextern.h, frame.h and window.h.
13880 (make_frame): Initialize left_fringe_width, right_fringe_width,
13881 fringe_cols, scroll_bar_actual_width, border_width,
13882 internal_border_width, column_width, line_height, x_pixels_diff,
13883 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
13884 members with values suitable for a non-window frames.
13885
13886 * gtkutil.c: Make (many) trivial substitutions for renamed and
13887 new macros in dispextern.h, frame.h and window.h.
9018a88e 13888
0416870b
KS
13889 * indent.c: Make (few) trivial substitutions for renamed and
13890 new macros in dispextern.h, frame.h and window.h.
13891
13892 * keyboard.c: Make (many) trivial substitutions for renamed and
13893 new macros in dispextern.h, frame.h and window.h.
13894 (make_lispy_event): Use window positions returned from
13895 window_from_coordinates when constructing the lisp event for
13896 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
13897 (incorrect) values locally.
13898 (make_lispy_movement): Use window positions returned from
13899 window_from_coordinates when constructing the lisp event, rather
13900 than calculating (incorrect) values locally.
13901
13902 * scroll.c: Make (some) trivial substitutions for renamed and
13903 new macros in dispextern.h, frame.h and window.h.
13904
13905 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
13906 scroll-bars.
13907
13908 * sysdep.c: Make (few) trivial substitutions for renamed and
13909 new macros in dispextern.h, frame.h and window.h.
13910
13911 * term.c: Make (some) trivial substitutions for renamed and
13912 new macros in dispextern.h, frame.h and window.h.
13913
13914 * widget.c: Make (few) trivial substitutions for renamed and
13915 new macros in dispextern.h, frame.h and window.h.
13916
13917 * window.c: Make (many) trivial substitutions for renamed and
13918 new macros in dispextern.h, frame.h and window.h.
13919 (make_window): Initialize new members
13920 left_margin_cols, right_margin_cols, left_fringe_width,
13921 right_fringe_width, fringes_outside_margins, scroll_bar_width,
13922 and vertical_scroll_bar_type.
cab27d04 13923 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 13924 and per-window fringes and scroll-bars.
0416870b 13925 Fix bug related to incorrectly adjusting coordinates by
9018a88e 13926 frame's internal_border_width (the effect normally negible since
0416870b
KS
13927 the internal_border_width is typically 0 or 1 pixel, but very
13928 noticeable for an internal_border_width of e.g. 25 pixels).
13929 Upon successful return (other than ON_NOTHING), the coordinates
13930 are now always properly converted to window relative for the
13931 given display element.
13932 (window_from_coordinates): Add new parameters wx and wy to
13933 return the window relative x and y position in the returned
13934 window and part. A null arg means, don't return the position.
13935 All callers changed.
13936 (adjust_window_margins): New function which may reduce the width
13937 of the display margins if a window's text area is too small after
13938 resizing or splitting windows.
13939 (size_window): Fix bug that did not account for display margin
13940 widths when checking the minimum width of a window; use
13941 adjust_window_margins.
13942 (set_window_buffer): Call Fset_window_fringes and
13943 Fset_window_scroll_bars to setup per-window elements.
13944 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
13945 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
13946 (e.g. after splitting a window or resizing the frame).
13947 All callers changed.
0416870b
KS
13948 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
13949 (Fsplit_window): Duplicate original window's display margin,
13950 fringe, and scroll-bar settings; then call Fset_window_buffer with
13951 KEEP_MARGINS non-nil. This fixes a bug which caused a split
13952 window to only preserve the display margins in one of the windows.
c4b8aebc 13953 When splitting horizontally, call adjust_window_margins on both
0416870b 13954 windows to ensure that the text area of the new windows is non too
f9711de4 13955 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
13956 width of the split window was less than the width of the display
13957 margins.
cab27d04 13958 (window_box_text_cols): Rename from window_internal_width.
9018a88e 13959 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
13960 Fix bug that caused vertical separator to be subtracted also on
13961 window frames. Fix another bug that did not reduce the returned
13962 value by the columns used for display margins.
13963 (window_scroll_line_based): Fix bug related to scrolling too much
13964 when display margins are present (implicitly fixed by the fix to
13965 window_box_text_cols).
13966 (scroll_left, scroll_right): Fix bug related to scrolling too far
13967 by default when display margins are present (implicitly fixed by
13968 the fix to window_box_text_cols).
13969 (struct saved_window): Rename members left to left_col, top to
13970 top_line, width to total_cols, height to total_lines, orig_top to
13971 orig_top_line, orig_height to orig_total_lines. All uses changed.
13972 New members left_margin_cols, right_margin_cols,
13973 left_fringe_width, right_fringe_width, fringes_outside_margins,
13974 scroll_bar_width, and vertical_scroll_bar_type for saving
13975 per-window display elements.
13976 (Fset_window_configuration): Restore display margins, fringes,
13977 and scroll bar settings. This fixes a bug which caused display
13978 margins to be discarded when saving and restoring a window
13979 configuration.
13980 (save_window_save): Save display margins, fringes, and scroll bar
13981 settings. This fixes a bug which caused display margins to be
13982 discarded when saving and restoring a window configuration.
13983 (Fset_window_margins): Do nothing if display margins are not
13984 really changed. Otherwise, call adjust_window_margins to ensure
13985 the text area doesn't get too narrow. This fixes a bug which
f9711de4 13986 could cause Emacs to trap if setting display margins wider than
0416870b
KS
13987 the width of the window.
13988 (Fset_window_fringes): New defun to allow user to specifically set
13989 this window's fringe widths and position vs. display margins.
cab27d04 13990 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
13991 (Fset_window_scroll_bars): New defun to allow user to specifically
13992 set this window's scroll bar width and position.
13993 (Fwindow_scroll_bars): New defun to return window's actual scroll
13994 bar settings.
13995 (compare_window_configurations): Also compare display margins,
13996 fringes, and scroll bar settings.
13997 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
13998
13999 * xdisp.c: Make (many) trivial substitutions for renamed and
14000 new macros in dispextern.h, frame.h and window.h.
14001 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 14002 and new fringe vs. display margin position. Note that returned
0416870b
KS
14003 value is no longer guaranteed to be a whole multiple of the frame
14004 column width, since per-window fringes may now be any width.
14005 (window_box_left_offset): New function like window_box_left, but
14006 value is relative to left border of window (rather than frame).
14007 (window_box_right_offset): New function like window_box_right,
14008 but value is relative to left border of window.
14009 (window_box_left): Adapt to per-window fringes and scroll bars,
14010 and new fringe vs. display margin position. Simplify by using
14011 WINDOW_LEFT_EDGE_X and window_box_left_offset.
14012 (window_box): Allow null args for unnecessary return values;
14013 change/simplify relevant callers.
14014 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
14015 and new fringe vs. display margin position.
14016 Use window_box_left_offset and window_box_right_offset
0416870b 14017 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
14018 scroll bars, and new fringe vs. display margin position.
14019 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
14020 (draw_fringe_bitmap): Rework to handle per-window fringes and new
14021 fringe vs. display margin position.
14022 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
14023 (redisplay_window): Adapt to per-window scroll bars.
14024 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
14025 bars, and new fringe vs. display margin position.
14026 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 14027 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
14028 bars, and new fringe vs. display margin position. Fix bug which
14029 increased total width of full_width rows by width of scroll bars
14030 although window's total width already includes that.
14031 (x_fix_overlapping_area): Simplify using window_box_left_offset.
14032 (expose_area): Simplify using window_box_left_offset.
14033 (x_draw_vertical_border): Handle per-window scroll bar settings,
14034 mixing windows with left, right and no scroll bars.
14035
14036 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
14037 where it's used in x_list_fonts (for clarity).
14038 (frame_update_line_height): Remove unused function; functionality
14039 is now done directly when setting the default font in x_set_font.
14040
14041 * xfns.c: Make (many) trivial substitutions for renamed and
14042 new macros in dispextern.h, frame.h and window.h.
14043
14044 * xmenu.c: Make (some) trivial substitutions for renamed and
14045 new macros in dispextern.h, frame.h and window.h.
14046
14047 * xterm.h (struct x_output): Move members left_pos, top_pos,
14048 border_width, pixel_height, pixel_width, line_height,
14049 internal_border_width, vertical_scroll_bar_extra,
14050 left_fringe_width, right_fringe_width, fringe_cols,
14051 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14052 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
14053 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14054 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14055 (PIXEL_WIDTH, PIXEL_HEIGHT)
14056 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 14057 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
14058 frame.h and renamed [see frame.h changes].
14059 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14060 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 14061 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 14062 and renamed [see frame.h changes].
9018a88e 14063
0416870b
KS
14064 * xterm.c: Make (several) trivial substitutions for renamed and
14065 new macros in dispextern.h, frame.h and window.h.
cab27d04 14066 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
14067 (scroll_run): Adapt to new fringe position.
14068 (glyph_rect): Use window coordinates returned from
14069 window_from_coordinates rather than frame_to_window_pixel_xy.
14070 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14071 scroll-bars.
14072 (handle_one_xevent): Simplify a USE_GTK conditional.
14073 (x_clip_to_row): Remove superfluous whole_line_p arg and code
14074 (fringes are now inside margins, i.e. always in the clipping area).
14075 All callers changed.
14076 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14077 directly, then call compute_fringe_widths. Don't call
14078 frame_update_line_height.
14079
14080 * w32term.h (struct w32_output): Move members left_pos, top_pos,
14081 border_width, pixel_height, pixel_width, line_height,
14082 internal_border_width, vertical_scroll_bar_extra,
14083 left_fringe_width, right_fringe_width, fringe_cols,
14084 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14085 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
14086 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14087 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14088 (PIXEL_WIDTH, PIXEL_HEIGHT)
14089 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 14090 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
14091 frame.h and renamed [see frame.h changes].
14092 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14093 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 14094 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 14095 and renamed [see frame.h changes].
9018a88e 14096
0416870b
KS
14097 * w32term.c: Make (several) trivial substitutions for renamed and
14098 new macros in dispextern.h, frame.h and window.h.
cab27d04 14099 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
14100 (glyph_rect): Use window coordinates returned from
14101 window_from_coordinates rather than frame_to_window_pixel_xy.
14102 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14103 scroll-bars.
14104 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
14105 (fringes are now inside margins, i.e. always in the clipping area).
14106 All callers changed.
14107 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14108 directly, then call compute_fringe_widths. Don't call
14109 frame_update_line_height.
14110
14111 * w32console.c: Make (few) trivial substitutions for renamed and
14112 new macros in dispextern.h, frame.h and window.h.
14113
14114 * w32fns.c: Make (many) trivial substitutions for renamed and
14115 new macros in dispextern.h, frame.h and window.h.
14116
14117 * w32menu.c: Make (few) trivial substitutions for renamed and
14118 new macros in dispextern.h, frame.h and window.h.
14119
14120 * macterm.h (struct mac_output): Move members left_pos, top_pos,
14121 border_width, pixel_height, pixel_width, line_height,
14122 internal_border_width, vertical_scroll_bar_extra,
14123 left_fringe_width, right_fringe_width, fringe_cols,
14124 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14125 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
14126 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14127 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14128 (PIXEL_WIDTH, PIXEL_HEIGHT)
14129 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 14130 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
14131 frame.h and renamed [see frame.h changes].
14132 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14133 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 14134 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 14135 and renamed [see frame.h changes].
9018a88e 14136
0416870b
KS
14137 * macterm.c: Make (several) trivial substitutions for renamed and
14138 new macros in dispextern.h, frame.h and window.h.
cab27d04 14139 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
14140 (glyph_rect): Use window coordinates returned from
14141 window_from_coordinates rather than frame_to_window_pixel_xy.
14142 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14143 scroll-bars.
14144 (x_clip_to_row): Remove superfluous whole_line_p arg and code
14145 (fringes are now inside margins, i.e. always in the clipping area).
14146 All callers changed.
14147 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14148 directly, then call compute_fringe_widths. Don't call
14149 frame_update_line_height.
14150
14151 * macfns.c: Make (several) trivial substitutions for renamed and
14152 new macros in dispextern.h, frame.h and window.h.
9018a88e 14153 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
14154
14155 * macmenu.c: Make (few) trivial substitutions for renamed and
14156 new macros in dispextern.h, frame.h and window.h.
14157
14158 * msdos.h (struct x_output): Remove members left_pos, top_pos,
14159 and line_height, and use corresponding new members in struct
14160 frame. All uses changed.
14161 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
14162 superseeded by corresponding macros in frame.h.
14163
14164 * msdos.c: Make (several) trivial substitutions for renamed and
14165 new macros in dispextern.h, frame.h and window.h.
14166 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 14167 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
14168 (internal_terminal_init): No need to initialize line_height here;
14169 it now defaults to 1.
14170
9018a88e
SM
141712003-05-24 Stefan Monnier <monnier@cs.yale.edu>
14172
14173 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
14174 dropping `down' events.
14175
016bd3c0
AS
141762003-05-24 Andreas Schwab <schwab@suse.de>
14177
14178 * coding.c (find_safe_codings): Fix last change.
14179
4dacadcc
TTN
141802003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
14181
14182 * xfns.c (x_window): Fix typo from 2003-05-21 change.
14183
319830ce
SM
141842003-05-23 Stefan Monnier <monnier@cs.yale.edu>
14185
9018a88e
SM
14186 * xdisp.c (display_mode_element): Increase max depth.
14187 Simplify the error handling code. Use a different error string
14188 for the case where we hit the depth limit.
14189
319830ce
SM
14190 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
14191
14192 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
14193
141942003-05-21 Stefan Monnier <monnier@cs.yale.edu>
14195
14196 * intervals.c (get_local_map): Don't get char-property of previous
14197 point any more: get_pos_property already does it and better.
14198
c67de8ba
DL
141992003-05-21 Dave Love <fx@gnu.org>
14200
14201 [Merged from unicode branch.]
14202
14203 * xfns.c (x_window, x_window): Use use_xim.
14204
14205 * xterm.c (use_xim): Initialize.
14206 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14207 (x_term_init): Maybe set use_xim.
14208
14209 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14210
edd3ff1d
JR
142112003-05-21 Jason Rumney <jasonr@gnu.org>
14212
14213 * unexw32.c (_start): Remove _fmode initialization.
14214
14215 * emacs.c (main) [WINDOWSNT]: Move it here.
14216
463f55ee
DL
142172003-05-20 Dave Love <fx@gnu.org>
14218
14219 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
14220
af253914
RS
142212003-05-19 Richard M. Stallman <rms@gnu.org>
14222
14223 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
14224 as value for QCfont attribute.
14225 (realize_default_face): lface should already exist; crash if not.
14226 Specify 0 for FORCE_P when calling set_lface_from_font_name.
14227
14228 * frame.c (Fignore_event): Doc fix.
14229
1d211019
KH
142302003-05-19 Kenichi Handa <handa@m17n.org>
14231
14232 * coding.c (decode_coding_string): Handle post-read-conversion
14233 even if the coding doesn't require decoding.
14234
4dd68254
RS
142352003-05-18 Richard M. Stallman <rms@gnu.org>
14236
14237 * callproc.c (Fcall_process_region): Doc fix.
14238
14d87dc9
SM
142392003-05-17 Stefan Monnier <monnier@cs.yale.edu>
14240
deca5d96
SM
14241 * lread.c (Fload): Print a message if package is obsolete.
14242
14d87dc9
SM
14243 * window.c (Fselect_window): Add optional `norecord' arg.
14244 (select_window_1): Fold into Fselect_window.
14245 (select_window_norecord): New function.
14246 (temp_output_buffer_show): Use it. Preserve current buffer.
14247
14248 * window.h (Fselect_window): Update declaration.
14249
14250 * window.c (delete_window, Fother_window, Fset_window_configuration):
14251 * minibuf.c (read_minibuf):
14252 * macterm.c (x_new_focus_frame):
14253 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
14254 * callint.c (Fcall_interactively):
14255 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
14256
14257 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
14258
78f52183
DK
142592003-05-17 David Kastrup <dak@gnu.org>
14260
14261 * process.c (read_process_output): Back out change from 2003-03-09.
14262
14d87dc9
SM
142632003-05-17 Stefan Monnier <monnier@cs.yale.edu>
14264
14265 * editfns.c (get_pos_property): Don't assume that `object' = nil.
14266
14267 * textprop.c (text_property_stickiness): New arg `buffer'.
14268
14269 * intervals.h (text_property_stickiness): New arg `buffer'.
14270 (get_pos_property): Declare.
14271
14272 * intervals.c (get_local_map): Use get_pos_property, to obey
14273 stickiness and empty overlays.
14274 (create_root_interval, graft_intervals_into_buffer): Use BEG.
14275 (merge_properties, intervals_equal, merge_properties_sticky):
14276 Use XCAR, XCDR.
14277 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
14278
1fd1cc2f
RS
142792003-05-17 Richard M. Stallman <rms@gnu.org>
14280
4f9f637a
RS
14281 * minibuf.c (read_minibuf): If buffer is empty, record the default
14282 in the history.
14283 (Fminibuffer_complete_word): When deleting the overlap, take account
14284 of its real position.
14285
14286 * fns.c (map_char_table): Fix previous change.
14287
1fd1cc2f
RS
14288 * syntax.c (find_defun_start):
14289 When open_paren_in_column_0_is_defun_start,
14290 return beginning of buffer.
14291
14292 * lisp.h (map_char_table): Declare added arg.
14293
14294 * fns.c (map_char_table): New arg TABLE gets the master table.
14295 All calls changed.
14296 Process default and inheritance, resorting to Faref if necessary.
14297
14298 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14299 (Faccessible_keymaps): Pass new arg to map_char_table.
14300
14301 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
14302
14303 * casetab.c (set_case_table): Pass new arg to map_char_table.
14304
14305 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
14306
14307 * lisp.h (specbinding_func): New typedef.
14308 (struct specbinding): Use specbinding_func, to put the `volatile'
14309 in the right place.
14310
14311 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
14312 to avoid GCC warning.
14d87dc9 14313
b6189c3b 143142003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 14315
14d87dc9 14316 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 14317
35fb885d
SM
143182003-05-15 Stefan Monnier <monnier@cs.yale.edu>
14319
14320 * keyboard.c (apply_modifiers): Don't fill the other cache.
14321
9a274fbd
SM
143222003-05-14 Stefan Monnier <monnier@cs.yale.edu>
14323
c55b5fad
SM
14324 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
14325
9a274fbd
SM
14326 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
14327 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
14328 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
14329 (Fset_window_configuration, Fcurrent_window_configuration)
14330 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
14331 (Fpos_visible_in_window_p, mark_window_cursors_off)
14332 (window_internal_height, window_internal_width, Frecenter)
14333 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
14334 (replace_buffer_in_all_windows, init_window_once, init_window)
14335 (syms_of_window, keys_of_window): Move from lisp.h.
14336 * lisp.h: Move window.c declarations to window.h.
14337
14338 * bytecode.c: Include window.h.
14339 * emacs.c: Include window.h.
14340
14d87dc9 14341 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
14342 (keyremap): Add `parent' field.
14343 (keyremap_step): Use it. Remove `parent' argument.
14344 (read_key_sequence): Setup and use the new `parent' field.
14345
fd93e331
SM
143462003-05-11 Stefan Monnier <monnier@cs.yale.edu>
14347
14348 * keyboard.c (adjust_point_for_property): Ensure termination.
14349
1c4001a1
SM
143502003-05-10 Stefan Monnier <monnier@cs.yale.edu>
14351
14352 * keyboard.c (follow_key): Remove dead variable `did_meta'.
14353 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
14354 duplicated handling of function-key-map and key-translation-map
14355 in read_key_sequence.
14356 (read_key_sequence): Use them.
14357
14358 * keyboard.c (adjust_point_for_property): Try harder to move point
14359 to the non-sticky end of an invisible property.
14360
14361 * xdisp.c (single_display_prop_intangible_p): Make `space' display
14362 property intangible as well.
14363
780379b1
AS
143642003-05-10 Andreas Schwab <schwab@suse.de>
14365
14366 * xmenu.c (single_menu_item): Change last parameter to void* to
14367 avoid warning.
14368
ca2de342
RS
143692003-05-09 Richard M. Stallman <rms@gnu.org>
14370
14371 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
14372 Bind Qinhibit_modification_hooks to t so there will be no GC.
14373 Rename local `tem' to `save_deactivate_mark'.
14374
14375 * eval.c (specpdl_ptr): Declare volatile.
14376 (unbind_to): Copy the whole binding and decrement specpdl_ptr
14377 before doing the work of unbinding it.
14378
14379 * lisp.h (struct specbinding): Declare elements volatile.
14380 (specpdl_ptr): Declare volatile.
14381
14382 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
14383
14384 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
14385 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
14386
347003be
DL
143872003-05-08 Dave Love <fx@gnu.org>
14388
14389 * coding.c (Vlast_coding_system_used): Doc fix.
14390
5adcec23
JR
143912003-05-07 Jason Rumney <jasonr@gnu.org>
14392
14393 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
14394 when system does not support them.
14395
5fe3b8a4
SM
143962003-05-05 Stefan Monnier <monnier@cs.yale.edu>
14397
14398 * fileio.c (Qwrite_region_annotate_functions): New var.
14399 (build_annotations): Use it to process the global part of the hook.
14400 (syms_of_fileio): Init and staticpro it.
14401
14402 * keyboard.c (safe_run_hooks_error): Display a message instead of
14403 silently ignoring the error.
14404
144052003-05-03 Stefan Monnier <monnier@cs.yale.edu>
14406
14407 * keyboard.c (input_available_signal): Mark static.
14408 (menu_bar_items): Use map_keymap.
14409 (menu_bar_one_keymap): Remove.
14410 (menu_bar_item): Adjust arglist (for use in map_keymap).
14411 Properly hide a second binding when not both are keymaps.
14412
14413 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
14414 (single_keymap_panes): Use it and map_keymap.
14415 (single_menu_item): Use skp as well.
14416
14417 * keymap.h (map_keymap_function_t): New type.
14418 (map_keymap): Declare.
14419
14420 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
14421 (map_keymap_call, Fmap_keymap): New functions.
14422 (syms_of_keymap): Defsubr map-keymap.
14423
4b1b4443
JD
144242003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14425
14426 * gtkutil.c (create_dialog, make_widget_for_menu_item)
14427 (make_menu_item, create_menus, xg_update_menu_item): Don't call
14428 ..._with_mnemonic functions for menu items.
14429
1f816871
KH
144302003-05-01 Kenichi Handa <handa@m17n.org>
14431
14432 * coding.c (coding_system_accept_latin_extra_p): Delete this
14433 function.
14434 (find_safe_codings): Pay attention to
14435 the property tranlsation-table-for-encode of each codings.
14436 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
14437
5ed6ba5b
SM
144382003-05-01 Stefan Monnier <monnier@cs.yale.edu>
14439
14440 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
14441
32c06229
SM
144422003-04-30 Stefan Monnier <monnier@cs.yale.edu>
14443
14444 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
14445
14446 * lisp.h (CHECK): Wrap args in parenthesis.
14447 (specbind): Fix doc: symbol = Qnil is not supported any more.
14448
14449 * bytecode.c (Fbyte_code) <unwind-protect>:
14450 Use Fprogn rather than 0 and Qnil.
14451
14452 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
14453 `double', and `triple' modifiers as well.
14454
ed3c3314
RS
144552003-04-30 Richard M. Stallman <rms@gnu.org>
14456
14457 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
14458
14459 * alloc.c (abort_on_gc): New variable.
14460 (Fgarbage_collect): Abort if abort_on_gc is set.
14461
14462 * lisp.h (abort_on_gc): Add decl.
14463
14464 * eval.c (Fsignal): Clear abort_on_gc.
14465
14466 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 14467 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
14468
14469 * xdisp.c (move_it_vertically_backward): Do the final big else
14470 even if nlines is 0.
14471
14472 * xdisp.c (redisplay_internal): Finish the per-frame loop
14473 even if redisplay is suspended by input.
14474
0b325c12
AC
144752003-04-24 Andrew Choi <akochoi@shaw.ca>
14476
14477 * macterm.c (x_list_fonts): Return all fonts that match if
14478 maxnames = -1.
14479
4e837cd0
KH
144802003-04-25 Kenichi Handa <handa@m17n.org>
14481
14482 * syntax.c (skip_chars): Fix previous change.
14483
9af7511a
KH
144842003-04-24 Kenichi Handa <handa@m17n.org>
14485
14486 * syntax.c (skip_chars): Make the code faster by using the common
14487 technique of *p, *stop, and *endp.
14488
e3b2c21f
JD
144892003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14490
14491 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 14492 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
14493 being updated.
14494
32c06229
SM
144952003-04-19 Stefan Monnier <monnier@cs.yale.edu>
14496
14497 * eval.c (Fapply): Undo last change and add a comment about why.
14498
c6464167
MB
144992003-04-18 Miles Bader <miles@gnu.org>
14500
14501 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
14502 pickier PARSE_MULTIBYTE_SEQ.
14503
e509f168
SM
145042003-04-17 Stefan Monnier <monnier@cs.yale.edu>
14505
14506 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
14507 Use XCDR, XCAR, CONSP.
14508 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
14509 (Fapply): Remove unnecessary GCPRO.
14510
14511 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
14512
14513 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
14514
14515 * buffer.h: Don't hardcode BEG==1.
14516
14517 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
14518
5ceea398
RS
145192003-04-16 Richard M. Stallman <rms@gnu.org>
14520
14521 * xdisp.c (try_window, try_window_reusing_current_matrix):
14522 When at end of window, set window_end_pos to Z-ZV.
14523
14524 * buffer.c (Foverlay_recenter): Doc fix.
14525
e509f168
SM
145262003-04-14 Stefan Monnier <monnier@cs.yale.edu>
14527
14528 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
14529
d243e605
AC
145302003-04-14 Andrew Choi <akochoi@shaw.ca>
14531
14532 * macterm.c (mac_check_for_quit_char): Don't check more often than
14533 once a second.
14534
6901b111
SM
145352003-04-11 Stefan Monnier <monnier@cs.yale.edu>
14536
14537 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
14538 specially, so that they can't hide an implicit switch-frame event.
14539 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
14540 (head_table): Use switch-frame as event_kind for select-window.
14541 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
14542
14543 * editfns.c (Fformat): Lisp_Object/int mixup.
14544 (format2): Remove unused var numargs.
14545
e301806f 145462003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 14547
6901b111 14548 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
14549 (Qafter_insert_file_set_coding): New variable.
14550 (syms_of_fileio): Initialize and staticpro it. Delete declaration
14551 for after-insert-file-adjust-coding-function.
14552 (Finsert_file_contents): Call Qafter_insert_file_set_coding
14553 instead of Vafter_insert_file_adjust_coding_function.
14554
38914424
KH
145552003-04-11 Kenichi Handa <handa@m17n.org>
14556
14557 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
14558
14559 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
14560 string. Callers changed.
14561
145622003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 14563
6901b111 14564 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 14565 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
14566 (Finsert_file_contents):
14567 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
14568 decode-format.
14569
f979dc05
JD
145702003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14571
14572 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
14573 get GtkAdjustment as widget now is a GtkRange.
14574
14575 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
14576 GtkRange to avoid memory leak.
14577
f8c6b4c2 145782003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 14579
50ebc53d
KH
14580 * xfaces.c (Vface_font_rescale_alist): New variable.
14581 (struct font_name): New member rescale_ratio.
14582 (font_rescale_ratio): New function.
6901b111 14583 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
14584 (better_font_p): On comparing point sized, pay attention to
14585 recale_ratio member of fonts.
14586 (build_scalable_font_name): Reflect font->rescale_ratio in the
14587 font name.
6901b111 14588 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 14589
cb98871c
KH
14590 * lread.c (read1): Before calling index, check if the 2nd
14591 arguemnt is in ASCII range.
14592
4773b8ca
RS
145932003-04-08 Richard M. Stallman <rms@gnu.org>
14594
b0ada147
RS
14595 * fileio.c (Ffile_symlink_p): Doc fix.
14596
14597 * editfns.c (Fformat): Translate positions of text properties
14598 in the format string to apply them to the result.
14599
4773b8ca
RS
14600 * fileio.c (Finsert_file_contents): Doc fix.
14601 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14602
146032003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 14604
4773b8ca
RS
14605 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
14606
e8f25745 146072003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 14608
e8f25745
ST
14609 * mac.c (init_mac_osx_environment): Switch libexec and bin so
14610 that self-contained application finds libexec files.
14611
f8c6b4c2 146122003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 14613
6901b111
SM
14614 * coding.c (code_convert_region_unwind):
14615 Set Vlast_coding_system_used to the argument.
2310d84c
KH
14616 (code_convert_region): If post-read-conversion function changed
14617 the value of last-coding-sytem, keep the new value in
14618 coding->symbol so that it won't be overridden.
14619 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
14620 (coding_system_accept_latin_extra_p): New function.
14621 (find_safe_codings): Pay attention to characters registered in
14622 latin-extra-code-table.
2310d84c 14623
39c9a034
TTN
146242003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
14625
14626 * Makefile.in (md5.o): Add missing dependency info.
14627
eb67c5d6
RS
146282003-04-06 Richard M. Stallman <rms@gnu.org>
14629
14630 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
14631
14632 * marker.c (verify_bytepos): New function.
14633
14634 * intervals.c (set_intervals_multibyte_1): When becoming
14635 multibyte, adjust right and left child sizes to a whole set of
14636 characters. If an interval gets zero total-length, delete it.
14637 If an interval consists of just its children, delete one of them.
14638
14639 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
14640 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 14641
52eb0373 14642 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
eb67c5d6
RS
14643 All calls deleted.
14644 (lisp_malloc): Do the work here directly.
14645
b1f81fc5
JB
146462003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
14647
14648 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
14649 char tables.
14650
146512003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
14652
14653 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
14654 destructively change "%S" to "%s".
14655
774666fb
MB
146562003-04-03 Miles Bader <miles@gnu.org>
14657
14658 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
14659 always set.
14660
19c37f01
DL
146612003-04-01 Dave Love <fx@gnu.org>
14662
14663 * xfns.c (xpm_lookup_color): Grok "opaque".
14664
2f4b24c3
AC
146652003-03-31 Andrew Choi <akochoi@shaw.ca>
14666
14667 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
14668 parent window ID.
14669
14670 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
14671
14672 * macterm.h (struct mac_output): Define x_pixels_diff and
14673 y_pixels_diff.
b1f81fc5 14674
9443fcf6
JB
146752003-03-31 Juanma Barranquero <lektu@terra.es>
14676
14677 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
14678 blockinput.h and files included from it.
14679
e072891b
KS
146802003-03-31 Kim F. Storm <storm@cua.dk>
14681
14682 The following changes consolidates the common code related to
14683 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
14684 files into frame.c.
9443fcf6 14685
e072891b
KS
14686 * frame.c: Include blockinput.h.
14687 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
14688 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
14689 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
14690 related vars here.
14691 (struct frame_parm_table, frame_parms): New table for describing
14692 frame parameters and their associated Q-variable.
14693 The order of the parameters corresponds to the sequence of the
14694 frame_parm_handlers table in redisplay_interface.
14695 (x_fullscreen_move, x_set_frame_parameters)
14696 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
14697 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
14698 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14699 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
14700 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
14701 Generic functions for processing of frame parameters.
14702 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
14703 (display_x_get_resource, x_get_resource_string): Functions for
14704 generic access to X resources.
14705 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
14706 (x_default_parameter, Fx_parse_geometry): Functions for generic
14707 access to frame parameters.
6901b111
SM
14708 (x_figure_window_size): Generic calculation of frame size.
14709 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
14710 (syms_of_frame): Intern and staticpro frame parameter variables.
14711 Defvar_lisp Vx_resource_class and Vx_resource_name here.
14712 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 14713
e072891b
KS
14714 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
14715 parameter related vars defined in frame.c.
14716 (EMACS_CLASS): Define here.
14717 (enum FULLSCREEN_*): Define here.
14718 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
14719 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
14720 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
14721 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
14722 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
14723 (x_set_visibility, x_set_autoraise, x_set_autolower)
14724 (x_set_unsplittable, x_set_vertical_scroll_bars)
14725 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
14726 (x_figure_window_size): Add prototypes.
14727
14728 * dispextern.h (frame_parm_handler): New typedef.
14729 (struct redisplay_interface): New member frame_parm_handlers.
14730 (enum resource_types): Move declaration here.
14731 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
14732 (x_default_parameter): Add prototypes.
14733
14734 * window.c: Remove extern decl for frame parameter vars.
14735 (change_window_heights): New generic function;
14736 replaces x_change_window_heights. All users changed.
14737
14738 * window.h (change_window_heights): Add prototype.
14739
14740 * xfaces.c: Remove extern decl for frame parameter vars.
14741
14742 * xterm.h (EMACS_CLASS): Remove. Use generic define.
14743 (struct w32_display_info): Fix type of xrdb member.
14744 (enum FULLSCREEN_*): Remove.
14745 Remove prototypes for generic functions (in frame.h).
14746
14747 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14748 parameters now defined in frame.h and frame.c.
f63fd14e 14749 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
14750 (enum x_frame_parms): Remove (bogus, unused enum).
14751 (check_x_display_info): Make non-static (for frame.c).
14752 (struct x_frame_parm_table, x_frame_parms): Remove.
14753 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14754 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14755 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14756 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14757 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14758 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14759 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14760 Remove. Use generic functions instead.
14761 (enum resource_types): Remove.
14762 (x_set_scroll_bar_default_width): New global function (for frame.c).
14763 (Fx_create_frame): Depend on x_figure_window_size to add space for
14764 toolbar and setup size_hint_flags.
14765 (x_frame_parm_handlers): New table for redisplay_interface.
14766 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 14767
e072891b 14768 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 14769 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
14770 (x_redisplay_interface): Add x_frame_parm_handlers member.
14771
14772 * w32gui.h (XrmDatabase): New (dummy) typedef.
14773
14774 * w32term.h (EMACS_CLASS): Remove. Use generic define.
14775 (struct w32_display_info): Fix type of xrdb member.
14776 (enum FULLSCREEN_*): Remove.
14777 (x_fullscreen_adjust): Remove prototype.
14778
14779 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14780 parameters now defined in frame.h and frame.c.
f63fd14e 14781 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
14782 (enum x_frame_parms): Remove (bogus, unused enum).
14783 (check_x_display_info): Make non-static (for frame.c).
14784 (struct x_frame_parm_table, x_frame_parms): Remove.
14785 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14786 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14787 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14788 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14789 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14790 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14791 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14792 Remove. Use generic functions instead.
14793 (enum resource_types): Remove.
14794 (x_set_scroll_bar_default_width): New global function (for frame.c).
14795 (Fx_create_frame): Depend on x_figure_window_size to add space for
14796 toolbar and setup size_hint_flags.
14797 (w32_frame_parm_handlers): New table for redisplay_interface.
14798 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 14799
e072891b 14800 * w32term.c: Remove unnecessary extern declarations.
52eb0373 14801 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
14802 (x_redisplay_interface): Add w32_frame_parm_handlers member.
14803
14804 * w32reg.c (x_get_string_resource): Use XrmDatabase.
14805
14806 * macgui.h (XrmDatabase): New (dummy) typedef.
14807
14808 * macterm.h (EMACS_CLASS): Remove.
14809 (struct mac_display_info): Add xrdb member.
14810 (struct mac_output): Add want_fullscreen member.
14811
14812 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14813 parameters now defined in frame.h and frame.c.
f63fd14e 14814 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
14815 (check_x_display_info): Make non-static (for frame.c).
14816 (struct x_frame_parm_table, x_frame_parms): Remove.
14817 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14818 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14819 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14820 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14821 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14822 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14823 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14824 Remove. Use generic functions instead.
14825 (enum resource_types): Remove.
14826 (x_set_scroll_bar_default_width): New global function (for frame.c).
14827 (mac_frame_parm_handlers): New table for redisplay_interface.
14828 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 14829
e072891b
KS
14830 * macterm.c: Remove unnecessary extern declarations.
14831 (x_redisplay_interface): Add mac_frame_parm_handlers member.
14832
3e6a560b
KS
14833 * Makefile.in (frame.o): Add dependency on blockinput.h and files
14834 included from it (atimer.h and systime.h).
14835
7b7b454e
AS
148362003-03-30 Andreas Schwab <schwab@suse.de>
14837
14838 * xdisp.c (x_insert_glyphs): Fix swapped width and height
14839 parameters for shift_glyphs_for_insert.
14840
14841 * macterm.c (x_redisplay_interface): Add missing entry for
14842 draw_vertical_window_border.
14843
beb402de
KG
148442003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
14845
14846 * fileio.c (Fexpand_file_name): In the no-handler case, after
14847 expanding, look again for a handler and invoke it. This is needed
14848 for filenames like "/foo/../user@host:/bar/../baz" -- the first
14849 expansion produces "/user@host:/bar/../baz" which needs to be
14850 expanded again for the finame result "/user@host:/baz".
14851
b676f356
JD
148522003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14853
14854 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
14855 of area to be redrawn for better performance.
14856
3c671a56
SM
148572003-03-28 Stefan Monnier <monnier@cs.yale.edu>
14858
14859 * xterm.c (take_vertical_position_into_account): Remove.
14860 (xt_action_hook): Call set_vertical_scroll_bar if needed.
14861 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
14862 (xm_scroll_callback, x_create_toolkit_scroll_bar)
14863 (x_set_toolkit_scroll_bar_thumb): Simplify.
14864 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
14865 (XTread_socket): Remove unused var.
14866 (x_make_frame_invisible): Replace goto with else.
14867
14868 * xdisp.c (set_vertical_scroll_bar): New fun.
14869 (redisplay_window): Use it.
14870
84f2e615
RS
148712003-03-26 Richard M. Stallman <rms@gnu.org>
14872
14873 * xdisp.c (update_tool_bar): Recompute tool bar if
14874 update_mode_lines is set. Set w->update_mode_line
14875 only if the tool bar contents actually change.
14876 (update_menu_bar): Undo previous change.
14877
70b6104c
JD
148782003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14879
5fd6f727
JD
14880 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
14881 (xg_frame_set_char_size): Calculate scroll bar width before frame
14882 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
14883 (xg_separator_p): Check for all documented separator types.
14884 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
14885 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
14886
70b6104c
JD
14887 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
14888 so tool bar gets updated.
14889
d9b36d19
SM
148902003-03-26 Stefan Monnier <monnier@cs.yale.edu>
14891
14892 * data.c (store_symval_forwarding): Re-instate part of the code
14893 that was deleted with too much enthusiasm.
14894
148952003-03-25 Stefan Monnier <monnier@cs.yale.edu>
14896
14897 * data.c (store_symval_forwarding): Delete special read-only
14898 hack for type == -1, since we now use ->constant instead.
14899 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
14900
14901 * buffer.c (overlays_in): Declare static.
14902 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
14903 `constant' field rather than the variable's `type' field.
14904
365fa1b3
AC
149052003-03-24 Andrew Choi <akochoi@shaw.ca>
14906
14907 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
14908
14909 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
14910
14911 * fns.c [MAC_OSX]: Do not redefine vector.
14912
14913 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
14914
14915 * macgui.h: Remove definition of No_Cursor.
14916
d9b36d19 14917 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
14918
14919 * xdisp.c: Define No_Cursor.
14920 (x_write_glyphs, notice_overwritten_cursor)
14921 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
14922 (note_mouse_highlight): Remove Mac-specific code.
14923 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 14924
c0bcce6f
JPW
149252003-03-24 John Paul Wallington <jpw@gnu.org>
14926
14927 * xdisp.c (redisplay_window): If mini window's buffer is not
14928 empty, then redisplay it like other windows.
14929
a526b96c
KS
149302003-03-23 Kim F. Storm <storm@cua.dk>
14931
14932 * w32term.c (w32_draw_window_cursor): Fix last change.
14933
37ab321e
KH
149342003-03-23 Kenichi Handa <handa@m17n.org>
14935
a526b96c
KS
14936 * alloc.c (make_string_from_bytes, make_specified_string):
14937 Add `const' for the arg CONTENTS.
37ab321e
KH
14938
14939 * lisp.h (make_string_from_bytes, make_specified_string):
14940 Prototypes adjusted.
14941
7863d625
JD
149422003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14943
a526b96c 14944 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 14945
7863d625
JD
14946 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
14947 (XG_SB_RANGE): New define.
14948
14949 * gtkutil.c (xg_fixed_handle_expose): New function.
14950 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
14951 expose events.
14952 (xg_update_scrollbar_pos): Take two more arguments, left and width
14953 of scroll bar including borders.
14954 Clear left and right part outside scroll bar separately as some
14955 themes have bars that are not an even number of pixels.
d9b36d19 14956 Don't set reallocate_redraws, don't call
7863d625
JD
14957 gdk_window_process_all_updates.
14958 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
14959 so no need to change it. Calculate size and value with XG_SB_RANGE.
14960
d9b36d19
SM
14961 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
14962 Pass left and width of scroll bar including borders to
7863d625
JD
14963 xg_update_scrollbar_pos.
14964
af0ad939
TTN
149652003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
14966
14967 * Makefile.in: Make sure space precedes end-of-line backslashes.
14968
b22139fd
KS
149692003-03-22 Kim F. Storm <storm@cua.dk>
14970
14971 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
14972 Add generic versions here. Remove system specific versions
14973 defined elsewhere.
14974
14975 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
14976 Add prototypes.
14977
6e6410cf
KS
14978 * xterm.h (STORE_NATIVE_RECT): New macro.
14979
5c9cc435
KS
149802003-03-21 Kim F. Storm <storm@cua.dk>
14981
00c64fab
SM
14982 * xdisp.c (get_glyph_string_clip_rect):
14983 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
14984
14985 * dispextern.h (struct redisplay_interface): Add active_p
14986 argument to draw_window_cursor member. All uses changed.
14987
acd37560
KS
149882003-03-21 Kim F. Storm <storm@cua.dk>
14989
14990 The following changes consolidate code related to writing and
14991 inserting glyphs, exposing frame, the tool bar, the mouse face,
14992 the output cursor, and help echo from xterm.c, w32term.c and
14993 macterm.c into xdisp.c. It also generalizes the use of the
14994 window_part enum instead of using numeric values throughout.
af0ad939 14995
acd37560
KS
14996 * xdisp.c: Consolidate gui-independent code here.
14997 Include keymap.h.
14998 (Qhelp_echo): Import.
14999 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
15000 (help_echo_string, help_echo_window, help_echo_object)
15001 (previous_help_echo_string, help_echo_pos): Declare here.
15002 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
15003 (estimate_mode_line_height): Define here. Handle windowing
15004 systems directly (without using estimate_mode_line_height_hook).
15005 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
15006 (update_window_cursor, update_cursor_in_window_tree)
15007 (fast_find_position, fast_find_string_pos)
15008 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
15009 (expose_area, expose_line, expose_overlaps, expose_window)
15010 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
15011 declared static as they are only used locally in xdisp.c.
15012 (draw_glyphs): Rename from x_draw_glyphs and make static.
15013 (tool_bar_item_info, notice_overwritten_cursor): Make static.
15014 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
15015 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 15016 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
15017 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
15018 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
15019 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
15020 (note_mouse_highlight, x_clear_window_mouse_face)
15021 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
15022 (x_intersect_rectangles): New generic functions for use by xdisp.c
15023 and GUI front-ends.
15024 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
15025 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
15026
15027 * dispextern.h (Display_Info): Generic typedef for *_display_info.
15028 (NativeRectangle): Generic typedef for rectangle type.
15029 (enum window_part): Move here from window.c.
15030 (struct redisplay_interface): New members flush_display_optional,
15031 define_frame_cursor, clear_frame_area, draw_window_cursor,
15032 draw_vertical_window_border, shift_glyphs_for_insert.
15033 Rename member clear_mouse_face to clear_window_mouse_face.
15034 (estimate_mode_line_height_hook): Remove hook.
15035 (auto_raise_tool_bar_buttons_p): Don't declare extern.
15036 (tool_bar_item_info): Remove prototype.
15037 (help_echo_string, help_echo_window, help_echo_object)
15038 (previous_help_echo_string, help_echo_pos)
15039 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
15040 (x_stretch_cursor_p, output_cursor): Declare extern.
15041 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
15042 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
15043 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
15044 (display_and_set_cursor, set_output_cursor, x_cursor_to)
15045 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
15046 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
15047 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
15048 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
15049 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
15050 Add prototypes.
15051 (mode_line_string, marginal_area_string): Fix prototypes.
15052
15053 * window.c (enum window_part): Move to dispextern.h.
15054 (coordinates_in_window): Use enum window_part member names
15055 instead of numbers to describe return value.
15056 (struct check_window_data): Change part member to window_part.
15057 (check_window_containing): Return window_part unaltered.
15058 (window_from_coordinates): Change part arg from int to enum
15059 window_part. Allow part arg to be null. All users changed.
15060
15061 * window.h (window_from_coordinates): Fix prototype.
15062
15063 * term.c (estimate_mode_line_height): Move to xdisp.c.
15064
15065 * keyboard.c (make_lispy_event): Use enum window_part.
15066
15067 * dispnew.c (mode_line_string, marginal_area_string): Use enum
15068 window_part instead of int in arg list. Users changed.
15069
15070 * xterm.h (No_Cursor): Declare as None for X.
15071 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 15072
acd37560
KS
15073 * xterm.c: Remove consolidated defines and code.
15074 (BETWEEN): Remove unused macro.
15075 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
15076 (x_define_frame_cursor, x_clear_frame_area)
15077 (x_draw_window_cursor): New X-specific functions for RIF.
15078 (x_redisplay_interface): Add new members.
15079
15080 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
15081
15082 * w32term.h (struct w32_output): Remove cross_cursor member.
15083
15084 * w32term.c: Remove consolidated defines and code.
15085 (BETWEEN): Remove unused macro.
15086 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
15087 (w32_define_frame_cursor, w32_clear_frame_area)
15088 (w32_draw_window_cursor): New W32-specific functions for RIF.
15089 (w32_redisplay_interface): Add new members.
15090
a64387ee 15091 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
15092 (XRectangle): Add X compatible rectangle type.
15093 (NativeRectangle): Declare as RECT for W32.
15094 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
15095
15096 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
15097
15098 * w32console.c: Remove consolidated defines and code.
af0ad939 15099
acd37560
KS
15100 * msdos.h (Display_Info): Add generic typedef.
15101
15102 * msdos.c: Remove consolidated defines and code.
15103 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
15104
15105 * macterm.h (struct mac_output): Replace member cross_cursor by
15106 hand_cursor.
15107 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
15108
15109 * macterm.c: Remove consolidated defines and code.
15110 (BETWEEN): Remove unused macro.
15111 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
15112 (mac_define_frame_cursor, mac_clear_frame_area)
15113 (mac_draw_window_cursor): New Mac-specific functions for RIF.
15114 (x_redisplay_interface): Add new members.
15115
15116 * macgui.h (No_Cursor): Define as 0 for Mac.
15117 (XRectangle): Add X compatible rectangle type.
15118 (NativeRectangle): Declare as Rect for Mac.
15119 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
15120
204ccab1
KS
15121 * macfns.c (x_set_mouse_color): Setup hand_cursor.
15122 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 15123
9443fcf6 15124 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
15125 included from it. Add dependency on keymap.h.
15126
15127 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
15128
8ba01a70 151292003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
15130
15131 * fileio.c (Fexpand_file_name): Fix previous change.
15132
8ba01a70 151332003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
15134
15135 * fileio.c (Ffile_name_directory): Reconstruct file name by
15136 make_specified_string.
15137 (Ffile_name_nondirectory, Ffile_name_as_directory)
15138 (Fdirectory_file_name, Fexpand_file_name)
15139 (Fsubstitute_in_file_name): Likewise.
15140 (Fread_file_name): Compare decoded homedir with DIR and
15141 DEFAULT_FILENAME.
15142
15143 * alloc.c (make_specified_string): If NCHARS is negative, count
15144 the number of characters.
15145
19536747
JD
151462003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15147
de38ae5a
JD
15148 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
15149 all widgets.
15150
19536747
JD
15151 * gtkutil.h: Removed xg_ignore_next_thumb.
15152
37ab321e 151532003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
15154
15155 * coding.c (Vchar_coding_system_table): Remove this variable.
15156 (Vcoding_system_safe_chars): New variable.
15157 (intersection): Remove this function.
15158 (find_safe_codings): Don't use Vchar_coding_system_table, but try
15159 all codings in SAFE_CODINGS.
00c64fab 15160 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
15161 find_safe_codings. Get generic coding systems from
15162 Vcoding_system_safe_chars.
15163 (Fdefine_coding_system_internal): New function.
15164 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
15165 Initialize and staticpro Vcoding_system_safe_chars.
15166
17097258
JD
151672003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15168
2a2071c3
JD
15169 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
15170 equal old values before updating.
15171
17097258
JD
15172 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
15173
15174 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
15175
151762003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15177
15178 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
15179 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
15180 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
15181 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
15182 (xg_create_scroll_bar): Pass bar to button event callback.
15183 (xg_find_top_left_in_fixed): New function.
15184 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
15185 whole scroll bar area. Get old position with
15186 xg_find_top_left_in_fixed, calculate and only clear needed areas.
15187 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
15188 dragging is in progress. Calculate whole as for Motif.
15189 Remove code that saved last values. Call gtk_range functions to
15190 set scroll bar sizes.
15191
15192 * gtkutil.h: Removed xg_ignore_next_thumb.
15193
8cb9dfbf
JB
151942003-03-17 Juanma Barranquero <lektu@terra.es>
15195
15196 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
15197 and files included from it.
15198
00c64fab
SM
151992003-03-18 Stefan Monnier <monnier@cs.yale.edu>
15200
15201 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
15202 multiple occurrences of the same keymap under different prefixes.
15203 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
15204
c45bb3b2
JR
152052003-03-16 Jason Rumney <jasonr@gnu.org>
15206
15207 * w32gui.h: Use HDC for Display.
15208
15209 * w32term.c (w32_encode_char): Prevent double-byte chars from
15210 crashing Emacs.
15211
15212 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
15213 as binary.
15214
2a6d0874
JB
152152003-03-16 Juanma Barranquero <lektu@terra.es>
15216
15217 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
15218
03eb5fab
KS
152192003-03-16 Kim F. Storm <storm@cua.dk>
15220
15221 The following changes consolidate some of the gui-independent
15222 parts of the processing and drawing of "glyph strings" from
15223 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 15224
03eb5fab
KS
15225 * dispextern.h (struct glyph): Reduce face_id member from 22 to
15226 21 bits (this reduces number of faces from 4M to 2M).
15227 Replace W32 specific w32_font_type member (2 bits) by generic
15228 font_type member (3 bits) for portability.
15229 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
15230 (enum draw_glyphs_face): Define here.
15231 (struct glyph_string): Define here. Merge W32 and X versions.
15232 (struct redisplay_interface): New members per_char_metric,
15233 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
15234 (VCENTER_BASELINE_OFFSET): Define here.
15235 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
15236 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
15237
15238 * xdisp.c: Consolidate gui-independent "glyph string" code here.
15239 (dump_glyph_string): Moved here.
15240 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
15241 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
15242 (fill_composite_glyph_string, fill_glyph_string)
15243 (fill_image_glyph_string, fill_stretch_glyph_string)
15244 (left_overwritten, left_overwriting, right_overwritten)
15245 (right_overwriting, get_char_face_and_encoding)
15246 (set_glyph_string_background_width, compute_overhangs_and_x)
15247 (append_glyph, append_composite_glyph, produce_image_glyph)
15248 (take_vertical_position_into_account, append_stretch_glyph)
15249 (produce_stretch_glyph): New generic functions (based on X version).
15250 Call platform specific functions through rif.
15251 (INIT_GLYPH_STRING): New macro, hides W32 details.
15252 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
15253 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
15254 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
15255 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
15256 (notice_overwritten_cursor):
15257 Generic functions exported to platform modules. Users changed.
15258
15259 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
15260 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
15261 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 15262 New macros for consolidated code.
2a6d0874 15263
03eb5fab
KS
15264 * xterm.c: Remove consolidated defines and code.
15265 (x_per_char_metric, x_encode_char)
15266 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
15267 (x_redisplay_interface): Add new members.
15268
15269 * w32gui.h (Display): Add dummy typedef for consolidation.
15270 (XChar2b): Define alias for wchar_t for consolidation.
15271 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
15272
15273 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 15274 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
15275 New macros for consolidation.
15276
fad49844 15277 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
15278 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
15279 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
15280 (w32_per_char_metric): Change font_type arg to int for RIF.
15281 (w32_encode_char): Return int according to RIF requirements.
15282 (w32_compute_glyph_string_overhangs): Adapt to RIF.
15283 (w32_get_glyph_overhangs): New function for RIF. Uses generic
15284 x_get_glyph_overhangs.
15285 (w32_redisplay_interface): Add new members.
15286
15287 * macgui.h (XChar2b): Move typedef here for consolidation.
15288 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
15289
15290 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
15291 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
15292 consolidation.
15293
15294 * macterm.c: Remove consolidated defines and code.
15295 (mac_per_char_metric): New function for RIF.
00c64fab 15296 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
15297 (mac_compute_glyph_string_overhangs): Adapt for RIF.
15298 (x_redisplay_interface): Add new members.
15299
00c64fab
SM
153002003-03-15 Stefan Monnier <monnier@cs.yale.edu>
15301
15302 * keymap.c (Vmenu_events): New var.
15303 (syms_of_keymap): Initialize it.
15304 (where_is_internal): Check more carefully what is a menu event.
15305
225c7a07
RS
153062003-03-14 Richard M. Stallman <rms@gnu.org>
15307
15308 * lread.c (read1): After #!, exit loop on eof.
15309
cea9be54
JD
153102003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15311
9ea0e54d
JD
15312 * gtkutil.h: Add declaration for xg_frame_cleared.
15313
0cb35f4e
JD
15314 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
15315
cea9be54
JD
15316 * gtkutil.c (struct xg_last_sb_pos): New structure.
15317 (handle_fixed_child): New function.
15318 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
15319 and force a redraw on them.
15320 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
15321 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
15322 so we can avoid unneeded redraws.
15323 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
15324 and force a redraw on the scroll bar.
15325 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
15326 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 15327 (xg_frame_cleared): New function.
cea9be54 15328
20b853f3
KH
153292003-03-13 Kenichi Handa <handa@m17n.org>
15330
15331 * coding.c (Fdetect_coding_region): Fix docstring.
15332 (Fdetect_coding_string): Fix docstring.
15333
7a555aff
AS
153342003-03-13 Andreas Schwab <schwab@suse.de>
15335
25cc0080
AS
15336 * gtkutil.c: Add prototype for create_menus.
15337
30225431
AS
15338 * data.c (long_to_cons): Fix type of top.
15339
15340 * xselect.c (selection_data_to_lisp_data): Use int instead of
15341 long for an integer of size 4.
15342
7a555aff 15343 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 15344 (xg_tool_bar_help_callback): Likewise.
7a555aff 15345
a3e4741f
AS
153462003-03-12 Andreas Schwab <schwab@suse.de>
15347
15348 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
15349
9668be7c
KS
153502003-03-12 Kim F. Storm <storm@cua.dk>
15351
03eb5fab 15352 The following changes consolidate the fringe handling from
9668be7c 15353 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 15354
9668be7c
KS
15355 * xdisp.c: Consolidate fringe handling code here.
15356 (left_bits, right_bits, continued_bits, continuation_bits)
15357 (ov_bits, zv_bits): Define fringe bitmaps.
15358 (fringe_bitmaps): New array holding fringe bitmaps.
15359 (draw_fringe_bitmap): Draw a specific bitmap; call display
15360 specific drawing routine via rif->draw_fringe_bitmap.
15361 (draw_row_fringe_bitmaps): Generic replacement for
15362 x_draw_row_fringe_bitmaps; all callers changed.
15363 (compute_fringe_widths): Generic replacement for
15364 x_compute_fringe_widths; all callers changed.
15365
15366 * dispextern.h (enum fringe_bitmap_type): Define here.
15367 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
15368 (fringe_bitmaps): Declare extern.
15369 (struct redisplay_interface): New member draw_fringe_bitmap.
15370 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
15371
15372 * xterm.c: Remove generic fringe code.
15373 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
15374 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
15375
15376 * w32term.c: Remove generic fringe code.
15377 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
15378 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 15379
9668be7c
KS
15380 * macterm.c: Remove generic fringe code.
15381 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
15382 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
15383
00a88f32
SM
153842003-03-11 Stefan Monnier <monnier@cs.yale.edu>
15385
15386 * print.c (Fprin1_to_string): Return unibyte string if possible.
15387
1d1de695
DK
153882003-03-09 David Kastrup <dak@gnu.org>
15389
15390 * process.c (read_process_output): We have allocated enough space
15391 for readmax and carryover, so actually use the alloted space.
15392
257f40f2
JD
153932003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15394
15395 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
15396 toolkit scrollbar click.
15397
15398 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
15399 for USE_GTK.
15400 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
15401 also.
1d1c7e75 15402 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
257f40f2 15403 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 15404
78819ebb 15405 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
15406
15407 * gtkutil.c (xg_get_scroll_id_for_window): New function.
15408 (xg_tool_bar_item_expose_callback): New function.
15409 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
15410 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
15411 on the tool bar widget.
15412 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
15413 to expose on the tool bar item widgets.
15414
15213141
JD
154152003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15416
26b74a0b 15417 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 15418 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
15419 deleted from the image cache).
15420
15213141
JD
15421 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
15422 the event isn't for a frame (i.e. for dialogs).
15423
20b853f3 154242003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
15425
15426 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
15427 composition components reaches the limit, terminate composing.
15428 (COMPOSITION_OK): New macro.
00a88f32 15429 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
15430 composition is found.
15431 (coding_restore_composition): Adjust the number of composition
15432 components if it is not sane.
15433
c9029fe5
JB
154342003-03-06 Juanma Barranquero <lektu@terra.es>
15435
15436 * w32term.h (struct w32_display_info): Add xrdb member to support
15437 passing resources via -xrm on Windows.
15438
15439 * w32term.c (w32_make_rdb): New function.
15440 (w32_term_init): Use it to initialize xrdb member of w32_display_info
15441 struct. Delete leftover code.
15442
15443 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
15444 for resources passed on the command line.
15445
15446 * w32reg.c (w32_get_rdb_resource): New function.
15447 (x_get_string_resource): Use it, so resources passed with -xrm
15448 supercede the ones in the registry.
15449
9d00001f
JD
154502003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15451
15452 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
15453 instead of x_top_window_to_frame.
15454
ca2417b9
JD
154552003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15456
15457 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
15458 when restarting Emacs.
15459
5b20caf0
RS
154602003-03-03 Richard M. Stallman <rms@gnu.org>
15461
15462 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
15463 to run kill-buffer-query-functions.
15464 (Qkill_buffer_query_functions): New var.
15465 (syms_of_buffer): Init and staticpro it.
15466
58e91b77
JD
154672003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15468
15469 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
15470
932357b4
KS
154712003-02-25 Kim F. Storm <storm@cua.dk>
15472
15473 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
15474 If centering point failed to make whole line visible and vscroll
15475 is non-zero, disable vscroll and try centering point again.
15476
15477 * lread.c (read1): Accept `single space' syntax like (? x).
15478
bb8db7e1
JD
154792003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15480
15481 * keyboard.c (cancel_hourglass_unwind): Surround with
15482 #ifdef HAVE_X_WINDOWS
15483
47d77aab
KH
154842003-02-25 Kenichi Handa <handa@m17n.org>
15485
15486 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
15487 process only when "subprocesses" is defined.
15488
6a097c0c
SM
154892003-02-24 Stefan Monnier <monnier@cs.yale.edu>
15490
15491 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
15492
0b063c27
JB
154932003-02-24 Juanma Barranquero <lektu@terra.es>
15494
d1135afc
JB
15495 * callint.c (fix_command): Declare as static void and move before
15496 Fcall_interactively.
15497
0b063c27
JB
15498 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
15499 (syms_of_xdisp): Don't initialize Qwhen.
15500
0af912f0
JD
155012003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15502
15503 * keyboard.c (cancel_hourglass_unwind): New function.
15504 (command_loop_1): Cancel hourglass with unwind-protect.
15505
120d0a23
RS
155062003-02-23 Richard M. Stallman <rms@gnu.org>
15507
15508 * callint.c (fix_command): New subroutine, from Fcall_interactively.
15509 Detect (when ... (region-beginning)) etc.
15510 (Fcall_interactively): Call fix_command.
15511 (Qif, Qwhen): New variables.
15512 (syms_of_callint): Init and staticpro them.
0b063c27 15513
120d0a23
RS
15514 * regex.c (print_partial_compiled_pattern): Output to stderr.
15515
4ece81a6
KG
155162003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
15517
15518 * dired.c (directory_files_internal): Don't expand directory.
15519 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
15520 instead. From Lars Hansen <larsh@math.ku.dk>.
15521
e52bd6b7
SM
155222003-02-22 Stefan Monnier <monnier@cs.yale.edu>
15523
15524 * fns.c (string_to_multibyte): Remove unused var i.
15525 (Flanginfo): Fix int/Lisp_Object mixup.
15526 (void_call2): New fun.
15527 (Fmap_char_table): Use it in place of call2.
15528
15529 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
15530
15531 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
15532
15533 * keymap.c (copy_keymap_1): Make it static.
15534
15535 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
15536
c33ef7c4
JB
155372003-02-22 David Ponce <david@dponce.com>
15538
15539 * lread.c (Fload): Don't check STRING_MULTIBYTE.
15540
16782258
JD
155412003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15542
15543 * process.h: Removed subtty field from struct Lisp_Process.
15544
15545 * process.c (create_process): Remove setting of subtty.
15546 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
15547 (Fprocess_running_child_p, process_send_signal):
15548 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
15549 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
15550
3abeca61
KG
155512003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
15552
15553 * keymap.c (Fdefine_key): Doc fix.
15554
92a8ce63
JB
155552003-02-21 Juanma Barranquero <lektu@terra.es>
15556
15557 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
15558
15559 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
15560 POLLING_PROBLEM_IN_SELECT.
15561
15562 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
15563 Delete #undef of POLLING_PROBLEM_IN_SELECT.
15564
15565 * s/hpux10-20.h: New file.
15566
e52bd6b7
SM
15567 * process.c (wait_reading_process_input):
15568 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 15569
20f1ef2e
KH
155702003-02-20 Kenichi Handa <handa@m17n.org>
15571
32d0a9dc
KH
15572 * fontset.c (check_fontset_name): If NAME is nil, return the
15573 default fontset.
15574 (override_font_info): New function.
e52bd6b7 15575 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
15576 (Ffontset_info): If FONTSET is not the default fontset, merge
15577 FONTSET onto the copy of the default fontset, and work on that
15578 copy. Document that NAME nil means the default fontset.
15579 (Ffontset_font): Document that NAME nil means the default fontset.
15580
20f1ef2e
KH
15581 * process.c (setup_process_coding_systems): If the process's
15582 in/out descriptor is -1, do nothing.
15583
77d1daf2
AS
155842003-02-19 Andreas Schwab <schwab@suse.de>
15585
e52bd6b7
SM
15586 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
15587 Add prototypes.
77d1daf2 15588
f9a45bb3
KH
155892003-02-19 Kenichi Handa <handa@m17n.org>
15590
15591 * xfaces.c (try_alternative_families): Try all scalable fonts if
15592 Vscalable_fonts_allowed is not Qt.
15593
72ecb43c
JD
155942003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15595
15596 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
15597
ee5be7c3
JD
155982003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15599
15600 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
15601 names.
15602
15603 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 15604 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
15605 x_face_list_fonts.
15606 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
15607 (Fx_list_fonts): Set maxnames to -1 to get all font names.
15608
4cd519a7
KS
156092003-02-18 Kim F. Storm <storm@cua.dk>
15610
068f9882
KS
15611 * lread.c (read1): Fix last change.
15612 "`" is not always special. Allow "?" after a character constant.
4cd519a7 15613
7290a344
AC
156142003-02-18 Andrew Choi <akochoi@shaw.ca>
15615
15616 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
15617
1f7fa69b
AS
156182003-02-18 Andreas Schwab <schwab@suse.de>
15619
15620 * window.c (window_scroll_pixel_based): Move outside a
15621 multi-glyph character before setting new window start.
15622
15623 * xdisp.c (in_display_vector_p): New function.
15624 * dispextern.h (in_display_vector_p): Declare.
15625
23e21195
KS
156262003-02-18 Kim F. Storm <storm@cua.dk>
15627
15628 * lread.c (read1): Fix and relax read syntax.
15629 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
15630 Only recognize "," after dotted-pair dot if inside backquote.
15631 Never include "`" or "," (inside backquote) in a symbol.
15632 Allow dotted-pair dot after a character constant.
15633 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 15634
f098b121
JD
156352003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15636
15637 * gtkutil.c (xg_tool_bar_expose_callback): New function.
15638 (xg_create_tool_bar): Force style of tool bar to be horizontal with
15639 icons. Set name of tool bar to emacs-toolbar.
15640 (update_frame_tool_bar): Connect expose event to
15641 xg_tool_bar_expose_callback.
15642
63020c46
RS
156432003-02-17 Richard M. Stallman <rms@gnu.org>
15644
15645 * keyboard.c (this_command_key_count_reset): New variable.
15646 Initiatize to 0 where this_command_key_count is set.
15647 (read_char): Save and restore this_command_key_count_reset
15648 around input method code.
15649 (read_char): If this_command_key_count_reset, echo reread commands.
15650 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
15651
fb4452cc
KH
156522003-02-17 Kenichi Handa <handa@m17n.org>
15653
15654 * fns.c (string_to_multibyte): Always return a multibyte string.
15655
bd11cc09
JR
156562003-02-16 Jason Rumney <jasonr@gnu.org>
15657
e52bd6b7
SM
15658 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
15659 Negative max_fonts parameter means list all.
bd11cc09 15660
4cdf4bde
DL
156612003-02-14 Dave Love <fx@gnu.org>
15662
15663 * fns.c (Flanginfo): Doc fix.
15664
023b93f6
KS
156652003-02-13 Kim F. Storm <storm@cua.dk>
15666
37cd4238
KS
15667 * lread.c (read_escape): Interpret \s as a SPACE character, except
15668 for \s-X in a character constant which still is the super modifier.
15669 (read1): Signal an `invalid read syntax' error if a character
15670 constant is immediately followed by a digit or symbol character.
15671
140a6b7e
KS
15672 * search.c (Fmatch_data): Doc fix. Explicitly state that
15673 match-data is undefined if last search failed.
15674
3419757d 15675 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
15676 All uses changed.
15677
7d5c86e5
JB
156782003-02-12 Juanma Barranquero <lektu@terra.es>
15679
15680 * eval.c (Fdefmacro): Fix typo.
15681
295fff2c
KS
156822003-02-12 Kim F. Storm <storm@cua.dk>
15683
15684 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
15685 macro is a string, convert meta modifiers in string when copying
15686 the string into a vector.
15687
60f3202d
KS
156882003-02-11 Kim F. Storm <storm@cua.dk>
15689
15690 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
15691
61cb0b53
KH
156922003-02-11 Kenichi Handa <handa@m17n.org>
15693
15694 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
15695
7392e23c
KS
156962003-02-10 Kim F. Storm <storm@cua.dk>
15697
15698 * process.c: Doc fixes.
15699 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
15700
ce4254bd
KH
157012003-02-10 Kenichi Handa <handa@m17n.org>
15702
9c7a329a
KH
15703 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
15704
ce4254bd
KH
15705 * process.c (QCfilter_multibyte): New variable.
15706 (setup_process_coding_systems): New function.
e52bd6b7
SM
15707 (Fset_process_buffer, Fset_process_filter):
15708 Call setup_process_coding_systems.
ce4254bd
KH
15709 (Fstart_process): Initialize the member `filter_multibyte' of
15710 struct Lisp_Process.
15711 (create_process): Call setup_process_coding_systems.
15712 (Fmake_network_process): New keyward `:filter-multibyte'.
15713 Initialize the member `filter_multibyte' of struct Lisp_Process.
15714 Call setup_process_coding_systems.
15715 (server_accept_connection): Call setup_process_coding_systems.
15716 (read_process_output): If the process has a filter, decide the
15717 multibyteness of a string to given to the filter by
15718 `filter_multibyte' member of the process. If the process doesn't
15719 have a filter and the result of conversion is unibyte, use
15720 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
15721 multibyte form.
15722 (Fset_process_coding_system): Call setup_process_coding_systems.
15723 (Fset_process_filter_multibyte): New function.
15724 (Fprocess_filter_multibyte_p): New function.
15725 (syms_of_process): Intern and staticpro QCfilter_multibyte.
15726 Defsubr Sset_process_filter_multibyte and
15727 Sprocess_filter_multibyte_p.
15728
15729 * process.h (struct Lisp_Process): New member filter_multibyte.
15730
15731 * lisp.h (setup_process_coding_systems): Add prototype.
15732
15733 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
15734 process, update coding systems for the process.
15735
b08d5f59
KH
157362003-02-09 Kenichi Handa <handa@m17n.org>
15737
15738 * fns.c (string_to_multibyte): New function.
15739 (Fstring_to_multibyte): New function.
15740 (syms_of_fns): Defsubr it.
15741
0dfd93c0
AS
157422003-02-08 Andreas Schwab <schwab@suse.de>
15743
15744 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
15745 instead of the substitution.
15746
7b76ca1c
JD
157472003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15748
15749 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
15750
15751 * xmenu.c (menu_position_func): Adjust menu popup position so that
15752 the menu is fully visible.
7b76ca1c 15753
2436a4e4
JD
157542003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15755
15756 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
15757 (x_make_frame_invisible, x_wm_set_icon_position):
15758 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
15759
15760 * xfns.c (x_set_name, x_set_title): Ditto.
15761
37d1e680
RS
157622003-02-04 Richard M. Stallman <rms@gnu.org>
15763
15764 * keyboard.c (echo_now): Update before_command_echo_length.
15765 (Freset_this_command_lengths): Reset this_command_key_count etc.
15766 immediately rather than arranging to do it later.
15767 (before_command_key_count_1, before_command_echo_length_1)
15768 (before_command_restore_flag): Vars deleted.
15769 (add_command_key): Don't handle before_command_restore_flag.
15770 (read_char, record_menu_key): Don't update before_command_key_count or
15771 before_command_echo_length.
15772 (read_char): Don't handle before_command_restore_flag.
15773
15774 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
15775 in direct-output clauses if it wouldn't be called in the ordinary case.
15776
578846a3
KS
157772003-02-04 Kim F. Storm <storm@cua.dk>
15778
15779 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
15780
49853a4d
JD
157812003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15782
15783 * gtkutil.c (remove_from_container): Copying list is not needed.
15784 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
15785 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
15786 on list returned from gtk_container_get_children to avoid memory leak.
15787
8b53dc06
JR
157882003-02-01 Jason Rumney <jasonr@gnu.org>
15789
5d54d177
JR
15790 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
15791 local malloc.
15792 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
15793 definitions in xpm.h.
15794 (init_xpm_functions): New function.
f63fd14e 15795 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
15796 (init_external_image_libraries): Try to load libXpm.dll.
15797
8b53dc06
JR
15798 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
15799 timestamp.
15800
b222e415
DL
158012003-01-31 Dave Love <fx@gnu.org>
15802
15803 * syntax.c (Fskip_chars_forward)
15804 (open-paren-in-column-0-is-defun-start): Doc fix.
15805
c60ee5e7
JB
158062003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
15807
15808 * fileio.c: Support // at start of name for Cygwin (just added proper
15809 preprocessor tests).
15810
15811 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
15812
15813 * Makefile.in: Use @EXEEXT@ for Cygwin.
15814
15815 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
15816
15817 * s/cygwin.h: Added for Cygwin port.
15818
53b37591
JB
158192003-01-31 Juanma Barranquero <lektu@terra.es>
15820
15821 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
15822 when including gif_lib.h.
fe929957 15823 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
15824 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
15825 Windows. Disable color table lookups. Call library functions
53b37591 15826 through pointers determined at runtime.
fe929957
JB
15827 (init_external_image_libraries): Try to load libungif.dll and
15828 libtiff.dll.
53b37591 15829
45415a8f
KH
158302003-01-31 Kenichi Handa <handa@m17n.org>
15831
15832 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 15833 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 15834
a97e4138
JD
158352003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15836
e52bd6b7 15837 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 15838
6eed9bed
DL
158392003-01-30 Dave Love <fx@gnu.org>
15840
15841 * alloc.c (Vgc_elapsed, gcs_done): New variables.
15842 (Fgarbage_collect): Use them.
15843 (init_alloc, syms_of_alloc): Set them up.
15844
100dcd40
JB
158452003-01-30 Juanma Barranquero <lektu@terra.es>
15846
15847 * w32fns.c (init_external_image_libraries): Add missing operator.
15848
fbd852af
JR
158492003-01-29 Jason Rumney <jasonr@gnu.org>
15850
15851 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
15852 an alternative name for jpeg.dll.
15853
8a2d8020
KH
158542003-01-29 Kenichi Handa <handa@m17n.org>
15855
15856 * xdisp.c (set_cursor_from_row): Pay attention to string display
15857 properties.
15858
058c18c7
AC
158592003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
15860
15861 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
15862 <escape>.
15863 (keycode_to_xkeysym_table): Reformat and add more comments.
15864 (XTread_socket): Drop special case for backspace.
15865
385f11cf
AC
158662003-01-28 Andrew Choi <akochoi@shaw.ca>
15867
15868 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
15869 values in old-style RGB specs.
15870
c922a224
JB
158712003-01-27 Juanma Barranquero <lektu@terra.es>
15872
15873 * w32fns.c (init_external_image_libraries): Try alternate names for the
15874 jpeg dll.
15875
0a1d6de0
JD
158762003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15877
15878 * gtkutil.c (create_dialog, xg_separator_p)
15879 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
15880 before calling strcmp or strlen.
15881
a97e4138 158822003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
15883
15884 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
15885 and handle image load failure.
15886
28908312
JR
158872003-01-26 Jason Rumney <jasonr@gnu.org>
15888
15889 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
15890 New functions.
f63fd14e
JB
15891 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
15892 Disable color table lookups. Call jpeg library functions
28908312
JR
15893 through pointers determined at runtime.
15894 (init_external_image_libraries): Try to load jpeg.dll.
15895
84e47416
RS
158962003-01-25 Richard M. Stallman <rms@gnu.org>
15897
15898 * lisp.h: Declare format2 instead of format1.
15899
15900 * fileio.c (barf_or_query_if_file_exists):
15901 Call format2 instead of format1.
15902
15903 * editfns.c (format2): New function, replaces format1
15904 but takes exactly two Lisp Objects as format args.
15905
15906 * buffer.c (Fkill_buffer): Call format2 instead of format1.
15907
a97e4138 159082003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
15909
15910 * xterm.h: Change to return value of x_dispatch_event to int.
15911
15912 * xterm.c (x_filter_event): New function.
15913 (event_handler_gdk, XTread_socket): Call x_filter_event.
15914 (x_dispatch_event): Change to return value of finish.
15915 (event_handler_gdk): Use return value from x_dispatch_event.
15916
15917 * xfns.c (x_window): Call create_frame_xic for GTK version to
15918 initialize input methods.
15919
15920 * gtkutil.h: Add (void) prototypes.
15921
15922 * gtkutil.c (create_menus): Remove code that puts the help menu to
15923 the right.
15924
54eefef1
JR
159252003-01-25 Jason Rumney <jasonr@gnu.org>
15926
15927 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
15928 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
15929 (png_load): Adjust colors for Windows. Use Windows
15930 bitmaps. Disable color table lookups.
c262430d
JR
15931 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
15932 (init_png_functions): New function.
15933 (png_read_from_memory, png_load): Call png library functions
15934 through pointers determined at runtime.
15935 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
15936 (init_external_image_libraries): New function.
15937 (init_xfns): Call it.
54eefef1 15938
1a9e275b
AS
159392003-01-24 Andreas Schwab <schwab@suse.de>
15940
15941 * minibuf.c (Fminibuffer_message): Verify type of parameter.
15942
a97e4138 159432003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
15944
15945 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
15946 of static initializer.
15947
422eec7e
DL
159482003-01-24 Dave Love <fx@gnu.org>
15949
15950 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
15951 architectures.
15952
15953 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
15954 Use __alignof__.
15955
2a026b04
KH
159562003-01-24 Kenichi Handa <handa@m17n.org>
15957
15958 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 15959 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
15960 (command_loop_1): Call adjust_point_for_property with proper
15961 second arg.
15962
a18bb28d
JR
159632003-01-22 Jason Rumney <jasonr@gnu.org>
15964
15965 Sync changes with xterm.c and xfns.c.
15966
15967 * w32term.c (x_draw_glyph_string_foreground)
15968 (x_draw_composite_glyph_string_foreground): Implement overstriking.
15969
15970 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
15971 phys_cursor's hpos is overwritten. This is still not completely
15972 correct, as it doesn't really make sense to use hpos at all to
15973 get the cursor glyph (as that is relative to the width of the
15974 characters on the line, which may have changed during the update).
15975
15976 * w32term.c (notice_overwritten_cursor): Handle the special case
15977 of the cursor being in the first blank non-text line at the
15978 end of a window.
15979
15980 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
15981 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
15982 Compute from the x position returned by x_draw_glyphs.
15983
15984 (x_display_and_set_cursor): Don't set phys_cursor_width here,
15985 except for NO_CURSOR and system caret, to make phys_cursor_width
15986 contain what its name suggests.
15987 (notice_overwritten_cursor): Consider the cursor image erased if
15988 the output area intersects the cursor image in y-direction.
15989
6a097c0c
SM
15990 * w32term.c (note_mode_line_or_margin_highlight): Rename from
15991 note_mode_line_highlight and extend.
a18bb28d
JR
15992
15993 * w32term.c (last_window): New variable.
15994 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
15995 (note_mouse_movement): Remove reimplemented code in #if 0.
15996
15997 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
15998 not update_mode_lines, and always set it to 1.
15999
ac6e47ef
JR
160002003-01-21 Jason Rumney <jasonr@gnu.org>
16001
16002 * w32fns.c (IDC_HAND): Define it if system headers don't.
16003
160042003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
16005
16006 * w32term.h (struct w32_output): New member hand_cursor.
16007 (WM_EMACS_SETCURSOR): New message definition.
16008
16009 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
16010 function w32_define_cursor.
16011 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
16012 position, change member name output_data.x to output_data.w32 and
16013 add function w32_define_cursor.
16014 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
16015 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
16016 (w32_initialize_display_info):
16017 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
16018
16019 * w32fns.c (Vx_hand_shape): New variable.
16020 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
16021 WM_EMACS_SETCURSOR.
16022 (x-create-frame): Setup Cursor types.
16023
ceb39a17
JB
160242003-01-21 David Ponce <david@dponce.com>
16025
ac6e47ef 16026 * w32term.c (w32_encode_char): For DIM=1 charset, set
52eb0373
JB
16027 ccl->reg[2] to -1 before calling ccl_driver.
16028 (Sync. with xterm.c x_encode_char change by Kenichi Handa
16029 <handa@m17n.org> on 2002-09-30.)
ac6e47ef
JR
16030 (w32_draw_relief_rect): Declare all args.
16031 (w32_define_cursor): New.
16032
16033 * w32fns.c (w32_load_cursor): New function.
16034 (w32_init_class): Use it.
16035 (x_put_x_image): Declare all args.
16036
b6189c3b 160372003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
16038
16039 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
16040
a97e4138 160412003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
16042
16043 * gtkutil.c: Must include stdio.h before termhooks.h
16044
83fc9c63
DL
160452003-01-21 Dave Love <fx@gnu.org>
16046
16047 * alloc.c (Fgc_status): Print zombie list.
16048 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
16049 Fix assignment of zombies.
16050 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
16051 Don't take car of non-cons.
16052
16053 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16054
16055 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16056
fe04b8c8
JR
160572003-01-20 David Ponce <david@dponce.com>
16058
16059 * w32menu.c (digest_single_submenu): Declare all args.
16060
16061 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
16062 changes in xmenu.c:
16063
16064 (parse_single_submenu): Use individual keymap's prompt
16065 string as pane name, if there is one.
16066 (set_frame_menubar): Save menu_items_n_panes from each call to
16067 parse_single_submenu and use it when calling digest_single_submenu.
16068
539e69a9
ST
160692003-01-20 Steven Tamm <steventamm@mac.com>
16070
7e26f91b 16071 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
16072 before sending a scroll-wheel event.
16073
675d000f
RS
160742003-01-20 Richard M. Stallman <rms@gnu.org>
16075
16076 * xdisp.c (redisplay_window): If mini window's buffer is not
16077 a minibuffer, then redisplay it like other windows.
16078
a97e4138 160792003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
16080
16081 * gtkutil.c (xg_create_frame_widgets): Check if there is an
16082 external tool bar before setting tool bar height.
16083
048addec
JD
160842003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16085
16086 * xterm.c (handle_one_xevent): Surround popup_activated
16087 with #ifdef:s for non-toolkit version.
16088
16089 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
16090 (gtkutil.o): New file.
16091 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
16092 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
16093
16094 * gtkutil.c: New file for GTK version.
16095
16096 * gtkutil.h: New file for GTK version.
16097
16098 * xterm.h: Add xt_or_gtk_widget.
16099 Include gtk files for USE_GTK.
16100 (struct x_output): Add toolbar_height.
16101 (struct x_output): Add GTK widgets and Gdk size_hints.
16102 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
16103 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
16104 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
16105
16106 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 16107 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
16108 (note_mouse_highlight): Check popup_activated for USE_GTK.
16109 (xt_action_hook): Don't compile if USE_GTK.
16110 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
16111 (xg_scroll_callback): New function.
16112 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
16113 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
16114 for USE_GTK.
16115 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
16116 xg_show_scroll_bar for USE_GTK.
16117 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
16118 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
16119 (event_handler_gdk): New function for USE_GTK.
16120 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
16121 (handle_one_xevent): Make sure widget is mapped before
16122 calling x_real_positions for USE_GTK.
16123 (XTread_socket): Add GTK event loop for USE_GTK.
16124 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
16125 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
16126 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
16127 (x_iconify_frame): Add code for USE_GTK.
16128 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
16129 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
16130 is in gtkutil.c.
16131 (x_term_init): Add initialization for GTK.
16132 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
16133
16134 * xmenu.c: Include gtkutil.h for USE_GTK.
16135 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
16136 (single_menu_item, single_menu_item, Fx_popup_dialog):
16137 Check for USE_GTK.
048addec
JD
16138 (popup_widget_loop): New function for USE_GTK.
16139 (x_activate_menubar): Add code for USE_GTK.
16140 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
16141 (menu_highlight_callback, menubar_selection_callback):
16142 Add USE_GTK versions.
048addec
JD
16143 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
16144 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
16145 (free_frame_menubar): Only compile if not USE_GTK. GTK version
16146 is in gtkutil.c.
16147 (popup_selection_callback): New version for USE_GTK.
16148 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 16149 one USE_X_TOOLKIT version.
048addec
JD
16150 (xmenu_show): Call create_and_show_popup_menu.
16151 (dialog_selection_callback): New version for USE_GTK.
16152 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 16153 one USE_X_TOOLKIT version.
048addec
JD
16154 (xdialog_show): Call create_and_show_dialog.
16155
16156 * xfns.c: Include gtkutil for USE_GTK.
16157 (x_window_to_frame, x_any_window_to_frame)
16158 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
16159 (x_top_window_to_frame): Add code for USE_GTK.
16160 (x_set_background_color): Call xg_set_background_color for GTK.
16161 (x_set_menu_bar_lines): Check for USE_GTK.
16162 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
16163 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
16164 (x_window): Call xg_create_frame_widgets for USE_GTK.
16165 (Fx_create_frame): Check for USE_GTK
16166 (Fx_file_dialog): New implementation for USE_GTK.
16167
16168 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
16169 (update_menu_bar): Add check for USE_GTK.
16170 (update_tool_bar): Add check for USE_GTK and external tool bar.
16171 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
16172 (redisplay_internal): Add check for USE_GTK and popup_activated.
16173 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
16174 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
16175 (display_menu_bar): Add check for USE_GTK
16176
78819ebb 16177 * lisp.h (Vx_resource_name): Declare extern.
048addec 16178
a64387ee 16179 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
16180 for USE_GTK.
16181 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
16182
16183 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
16184 (FRAME_EXTERNAL_TOOL_BAR): New macro.
16185 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
16186
16187 * fileio.c (Fread_file_name): Add check for USE_GTK.
16188
6bdb309a
SM
16189 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
16190 Add check for USE_GTK.
048addec
JD
16191
16192 * config.in: Added HAVE_GTK
16193
16194 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
16195
161962003-01-18 Stefan Monnier <monnier@cs.yale.edu>
16197
16198 * charset.h (Funibyte_char_to_multibyte): Export.
16199
162002003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16201
16202 * xmenu.c (mouse_position_for_popup): New function.
16203 (Fx_popup_menu): Call mouse_position_for_popup for X and
16204 mouse_position_hook for others.
16205
162062003-01-17 Kim F. Storm <storm@cua.dk>
16207
16208 * editfns.c (Finsert): Mention `string-make-multibyte' and
16209 `string-as-multibyte' in doc string.
16210
162112003-01-17 Kenichi Handa <handa@m17n.org>
16212
16213 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 16214
048addec
JD
16215 * editfns.c (Fformat): Convert an unibyte char argument that is
16216 formatted by "%c" to multibyte if the total result must be a
16217 multibyte string.
cd7df9c0 16218
048addec 162192003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 16220
048addec
JD
16221 * process.c (set-process-filter): Document unibyte/multibyte-ness
16222 of string argument.
56210ecd 16223
048addec 162242003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 16225
048addec 16226 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 16227
048addec
JD
16228 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
16229 (re_search_2): Likewise.
6df8b9fe 16230
048addec 162312003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 16232
048addec
JD
16233 * xdisp.c (message_dolog): Fix bug of the case that *Message*
16234 buffer is unibyte.
292ddc31 16235
048addec 162362003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 16237
048addec 16238 * fns.c (Fsubstring): Clarify doc string.
292ddc31 16239
048addec
JD
16240 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
16241 (Fprevious_char_property_change)
16242 (Fnext_single_char_property_change)
16243 (Fprevious_single_char_property_change, Fnext_property_change)
16244 (Fnext_single_property_change, Fprevious_property_change)
16245 (Fprevious_single_property_change, Fadd_text_properties)
16246 (Fput_text_property, Fset_text_properties)
16247 (Fremove_text_properties, Fremove_list_of_text_properties)
16248 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 16249
048addec 162502003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 16251
048addec
JD
16252 * process.h (struct Lisp_Process): New member plist replaces old
16253 member private_vars. All uses changed.
63e4e4c6 16254
048addec 16255 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 16256 (QCplist): Rename from QCvars. Change all uses.
048addec 16257 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 16258 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 16259 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 16260 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 16261
048addec 162622003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 16263
6bdb309a 16264 * m/delta.h: Remove (obsolete).
e833850f 16265
048addec 162662003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 16267
048addec
JD
16268 * fileio.c (Fdelete_directory, Fdelete_file): Document the
16269 behaviour in front of symlinks.
16270 (Fdelete_file): Raise an error on directories.
817cb127 16271
048addec 162722003-01-13 Dave Love <fx@gnu.org>
817cb127 16273
048addec 16274 * fns.c (Freverse): Use QUIT.
3e8cf2ea 16275
048addec 162762003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 16277
048addec
JD
16278 * minibuf.c (minibuffer_completion_contents):
16279 Error if point is inside prompt.
3e8cf2ea 16280
048addec
JD
16281 * keyboard.c (command_loop_1): Don't redisplay directly
16282 if there's a post-command-hook.
3e8cf2ea 16283
048addec
JD
16284 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
16285 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 16286
048addec 162872003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 16288
048addec 16289 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 16290
048addec
JD
16291 * process.c (QCvars): New variable.
16292 (syms_of_process): Intern and staticpro it.
16293 (Fset_process_contact): Removed function.
16294 (Fprocess_variable, Fset_process_variable): New functions.
16295 (syms_of_process): Defsubr them.
16296 (Fstart_process): Initialize private_vars plist to nil.
16297 (Fmake_network_process): New arg :vars to setup the private
16298 variables for new network process.
16299 (server_accept_connection): Copy server's private variables to
16300 client process.
2c10f029 16301
048addec
JD
16302 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
16303 crashes). Code rewritten and simplified. Now directly aligns the
16304 pointer and recalculates pure_bytes_used, rather than aligning the
16305 size and adjusting the pointer.
b8a76c6c 16306
048addec 163072003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 16308
048addec
JD
16309 * process.c (Fset_process_contact): New function.
16310 (syms_of_process): defsubr it.
16311 (make-network-process): Update doc.
3a8d0899 16312
048addec 163132003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 16314
048addec
JD
16315 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
16316 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 16317
048addec 163182003-01-10 Dave Love <fx@gnu.org>
4abc7470 16319
048addec 16320 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 16321
048addec 163222003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 16323
048addec
JD
16324 * process.c (Fmake_network_process): Convert new port number
16325 to host byte order for `:service t' case. From Mario Lang.
bf338245 16326
048addec 163272003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 16328
048addec
JD
16329 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
16330 instead of XtAppProcessEvent.
bf338245 16331
048addec
JD
16332 * xterm.c (handle_one_xevent): New function.
16333 (x_dispatch_event): New function.
16334 (XTread_socket): Call handle_one_xevent.
bf338245 16335
048addec 16336 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 16337
048addec
JD
16338 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
16339 call XQueryPointer to get coordinates.
16340 (popup_get_selection): Do not set popup_activated_flag to zero,
16341 let popup_deactivate_callback do that. Needed for Motif.
16342 Call x_dispatch_event instead of XtDispatchEvent.
16343 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 16344
048addec 163452003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 16346
6bdb309a 16347 * process.c (server_accept_connection): Fix recording of new
048addec
JD
16348 connection's local address in :local property of contact info.
16349 (Fmake_network_process): Record local network address for new
16350 client processes in :local property of contact info.
6bdb309a 16351 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 16352
048addec 163532003-01-07 Dave Love <fx@gnu.org>
00e3ab56 16354
048addec 16355 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 16356
048addec 163572003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 16358
048addec 16359 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 16360
048addec
JD
16361 * eval.c (Fuser_variable_p): Doc change. For custom variables,
16362 use the same test as for custom-variable-p.
8c6d74c6 16363
048addec 163642003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 16365
048addec
JD
16366 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
16367 Count LAST_LINE_MISFIT in scroll margin for end of window.
16368 Move label too_near_end before setting SCROLL_MARGIN_POS.
16369 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 16370
048addec
JD
16371 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
16372 scroll_conservatively case. If scrolling that much doesn't change
16373 STARTP, move it down one line.
e833850f 16374
048addec
JD
16375 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
16376 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 16377
048addec
JD
16378 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
16379 selected frame.
8c6d74c6 16380
048addec 16381 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 16382 (syms_of_keymap): Staticpro them.
048addec
JD
16383 (Fapropos_internal): Initialize them and clear them out.
16384 Don't GCPRO them.
8c6d74c6 16385
048addec
JD
16386 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
16387 Doc fixes.
8c6d74c6 16388
048addec
JD
16389 * lisp.h: New misc type Lisp_Save_Value.
16390 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
16391 (XSAVE_VALUE): New macro.
16392 (struct Lisp_Save_Value): New data type.
16393 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 16394 (make_save_value): Declare.
8c6d74c6 16395
048addec 16396 * alloc.c (make_save_value): New function.
8c6d74c6 16397
048addec
JD
16398 * xterm.c (x_catch_errors): Save dpy using make_save_value.
16399 (x_catch_errors_unwind): Call XSync.
8c6d74c6 16400
048addec 164012003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 16402
048addec 16403 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 16404
048addec
JD
16405 * keyboard.c (command_loop_1): Call adjust_point_for_property
16406 in direct action cases for Qforward_char and Qbackward_char.
16407 Set already_adjusted so it won't be done twice.
8c6d74c6 16408
b6189c3b 164092002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 16410
048addec
JD
16411 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
16412 type definition of size_t.
8c609cff 16413
048addec 164142003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 16415
048addec
JD
16416 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
16417 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 16418
048addec 164192002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 16420
048addec
JD
16421 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
16422 to default to t.
fa634a5e 16423
048addec 164242002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 16425
048addec 16426 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 16427
048addec 164282002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 16429
7e26f91b 16430 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
16431 allow building in a different directory than source. Uses some
16432 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 16433
048addec 164342002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 16435
048addec
JD
16436 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
16437 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
16438 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
16439 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 16440
048addec 164412002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 16442
048addec
JD
16443 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
16444 <scroll-down-aggressively>: Doc fix.
2155ecf3 16445
048addec
JD
16446 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
16447 string as pane name, if there is one.
16448 (set_frame_menubar): Save menu_items_n_panes from each call to
16449 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 16450
048addec
JD
16451 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
16452 Don't try to make last line fully visible if it is past end of window.
61f1d295 16453
048addec 164542002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 16455
048addec
JD
16456 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
16457 (mac_menu_show): Add support for hierarchical popup menus.
16458 (add_menu_item): Remove indentation support.
16459 (fill_submenu, fill_menu): Create hierarchical menus
16460 instead of using indentation.
0b17a217 16461
048addec 164622002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 16463
048addec
JD
16464 * xdisp.c (try_cursor_movement): Don't call try_window here.
16465 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 16466
048addec 16467 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 16468
048addec 164692002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 16470
048addec
JD
16471 * macterm.c (XTread_socket): Call KeyTranslate for control and
16472 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 16473 being treated like C-%. Do not look for shift key to deal
048addec 16474 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 16475
048addec 164762002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 16477
048addec
JD
16478 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
16479 If it is non-nil, run timers. Use an unwind-protect to requeue
16480 the events that were read ahead.
16481 (popup_get_selection_unwind): New subroutine.
16482 (popup_get_selection_queue): File-scope variable now holds that queue.
16483 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
16484 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
16485 Use an unwind-protect to pop down the dialog box.
16486 (xdialog_show_unwind): New subroutine implements that.
f02cac82 16487
048addec
JD
16488 * xdisp.c (row_containing_pos): Change exit test using last_y.
16489 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 16490
048addec
JD
16491 * lread.c (load_error_handler): New function.
16492 (Fload): Handle errors in Fsubstitute_in_file_name.
16493 Don't expect Fsignal to return.
f02cac82 16494
048addec
JD
16495 * eval.c: Errors and throws work right with interrupt blocking.
16496 (struct catchtag): New elt interrupt_input_blocked.
16497 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
16498 (internal_catch, Fcondition_case, internal_condition_case)
16499 (internal_condition_case_1, internal_condition_case_2): Save it.
16500 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 16501
048addec 16502 * editfns.c (Fformat): Add parens.
f02cac82 16503
048addec
JD
16504 * dired.c (file_name_completion): Fix that change.
16505 Delete special quit-handling code; just use QUIT.
f02cac82 16506
b6189c3b 165072002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 16508
048addec
JD
16509 * dired.c (file_name_completion): Close directory on error
16510 just as in directory_files_internal.
1a590729 16511
048addec 165122002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 16513
048addec
JD
16514 * window.c (Fset_window_configuration): Set old_point to correct
16515 value when new_current_buffer == current_buffer.
f02cac82 16516
048addec 165172002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 16518
048addec
JD
16519 Revisited my earlier fix for the following entry in etc/PROBLEMS:
16520 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
16521 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 16522
048addec
JD
16523 These changes were in part based upon suggestions made by Peter
16524 'Luna' Runestig [peter@runestig.com].
9785d95b 16525
f4a5a485
SM
16526 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
16527 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
16528 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 16529 global variables.
9785d95b 16530
048addec
JD
16531 * w32.c (globals_of_w32): New function. Used to initialize those
16532 global variables that must always be initialized on startup even
16533 when the global variable initialized is non zero. Its primary
16534 purpose at this time is to set the global variables
16535 g_b_init_is_windows_9x, g_b_init_open_process_token,
16536 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
16537 g_b_init_get_sid_identifier_authority to 0 on startup.
16538 Called from main.
9785d95b 16539
048addec
JD
16540 * w32.c (is_windows_9x): Perform initialization only if
16541 g_b_init_is_windows_9x is equal to 0. On initialization set
16542 g_b_init_is_windows_9x equal to 1.
2308af15 16543
048addec
JD
16544 * w32.c (open_process_token): Perform initialization only if
16545 g_b_init_open_process_token is equal to 0. On initialization set
16546 g_b_init_open_process_token equal to 1.
2308af15 16547
048addec
JD
16548 * w32.c (get_token_information): Perform initialization only if
16549 g_b_init_get_token_information is equal to 0. On initialization
16550 set g_b_init_get_token_information equal to 1.
9785d95b 16551
048addec
JD
16552 * w32.c (lookup_account_sid): Perform initialization only if
16553 g_b_init_lookup_account_sid is equal to 0. On initialization
16554 set g_b_init_lookup_account_sid equal to 1.
9785d95b 16555
048addec
JD
16556 * w32.c (get_sid_identifier_authority): Perform initialization
16557 only if g_b_init_get_sid_identifier_authority is equal to 0.
16558 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 16559
f63fd14e 16560 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
16561 those global variables that must always be initialized on startup
16562 even when the global variable initialized is non zero.
16563 Its primary purpose at this time is to initialize the global variable
16564 track_mouse_event_fn.
9785d95b 16565
a64387ee 16566 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 16567 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 16568
048addec 16569 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 16570
f63fd14e 16571 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
16572 initialize those global variables that must always be initialized
16573 on startup even when the global variable initialized is non zero.
16574 Its primary purpose at this time is to initialize the global
16575 variables get_menu_item_info and set_menu_item_info.
9785d95b 16576
048addec
JD
16577 * w32menu.c (initialize_frame_menubar): Remove initialization of
16578 get_menu_item_info and set_menu_item_info.
9785d95b 16579
048addec 16580 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 16581
048addec
JD
16582 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
16583 Declare them.
9785d95b 16584
048addec
JD
16585 * emacs.c (main): Call globals_of_w32 prior to calling
16586 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
16587 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
16588 is defined.
9785d95b 16589
048addec
JD
16590 * w32term.c (x_update_window_begin): Fix Windows API error
16591 detected by BoundsChecker. Test to determine if
16592 w32_system_caret_hwnd is NULL prior to attempting to use
16593 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 16594
048addec
JD
16595 * w32term.c (x_update_window_end): Fix Windows API error
16596 detected by BoundsChecker. Test to determine if
16597 w32_system_caret_hwnd is NULL prior to attempting to use
16598 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 16599
048addec 166002002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 16601
048addec
JD
16602 * coding.c (coding_system_require_warning): New variable.
16603 (syms_of_coding): DEFVAR it.
b6da19ef 16604
048addec 16605 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 16606
048addec
JD
16607 * fileio.c (choose_write_coding_system): Even if
16608 Vcoding_system_for_write is non-nil, if
16609 coding_system_require_warning is nonzero, call
16610 Vselect_safe_coding_system_function.
bfcf6dbe 16611
048addec 166122002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 16613
048addec
JD
16614 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
16615 (lisp): Add font-core.
2c568af5 16616
048addec 166172002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 16618
048addec
JD
16619 * textprop.c (text_read_only): New arg `propval'.
16620 (get_char_property_and_overlay): Remove unused var `next_overlay'.
16621 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 16622
048addec 166232002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 16624
048addec 16625 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 16626
048addec 166272002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 16628
048addec
JD
16629 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
16630 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
16631 Be more careful about when help_events are generated.
96720f09 16632
048addec 166332002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 16634
048addec
JD
16635 * macterm.c (mac_check_for_quit_char): Correctly set the
16636 modifiers of the event to 0.
16637 * mac.c (sys_select): Duplicate rfds before calling select to
16638 ensure that rfds survive the while loop.
e5ae1c49 16639
048addec 166402002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 16641
048addec
JD
16642 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
16643 row_containing_pos returned NULL.
2eb46b2d 16644
048addec 166452002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 16646
6bdb309a 16647 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 16648 non-blocking.
6bdb309a 16649 (sys_select): Fix sys_select to not use a timeout larger than
048addec 16650 the one given.
b11f1d8a 16651
048addec 166522002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 16653
048addec 16654 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 16655
048addec 166562002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 16657
048addec
JD
16658 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
16659 as the last thing.
a4ac5b17 16660
048addec 166612002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 16662
048addec 16663 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 16664
048addec 166652002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 16666
048addec
JD
16667 * editfns.c (Fformat): Handle precision in string conversion
16668 specifiers like libc functions do (ie, print at most that many
16669 characters).
85cce843 16670
048addec 166712002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 16672
048addec
JD
16673 * xdisp.c (row_containing_pos): Check more carefully
16674 whether charpos is really in the row before returning it.
0d4d26a7 16675
048addec 166762002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 16677
048addec 16678 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 16679
048addec
JD
16680 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
16681 each stack frame. This may change as it could be time consuming.
0d4d26a7 16682
048addec
JD
16683 * macterm.c (mac_check_for_quit_char, quit_char_comp)
16684 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 16685 (mac_initialize): Add code to check for pressing of quit_char
048addec 16686 in the OS event queue.
b11f1d8a 16687
048addec
JD
16688 * mac.c (sys_select): Call mac_check_for_quit_char every second
16689 while blocking on select.
0d4d26a7 16690
048addec
JD
16691 * mac.c (sys_read): Use sys_select to test for input first
16692 before calling read, to allow C-g to break.
9252f7bc 16693
048addec 166942002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 16695
048addec 16696 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 16697
048addec 16698 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 16699
048addec 16700 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 16701
048addec
JD
16702 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
16703 autoload.
9252f7bc 16704
048addec 16705 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 16706
048addec 16707 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 16708
048addec 167092002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 16710
048addec 16711 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 16712
048addec 167132002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 16714
048addec 16715 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 16716
048addec 16717 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 16718
048addec 16719 * alloca.c: Don't use #error.
02d588e2 16720
048addec 167212002-12-03 Dave Love <fx@gnu.org>
02d588e2 16722
048addec
JD
16723 * buffer.c (Qucs_set_table_for_input): New.
16724 (Fget_buffer_create): Use it.
16725 (Qset_buffer_major_mode_hook): Deleted.
16726 (Fset_buffer_major_mode): Revert previous change.
16727 (init_buffer_once): Intern ucs-set-table-for-input.
16728 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
16729 Add &Qucs_set_table_for_input.
451e2697 16730
048addec 167312002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 16732
048addec
JD
16733 * callint.c (Fcall_interactively): Use next_event only if less
16734 than key_count.
72742a99 16735
048addec 167362002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 16737
048addec
JD
16738 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
16739 names to 255 characters.
72742a99 16740
048addec
JD
16741 * macterm.c (XTread_socket): If all frames have been collapsed,
16742 expand the first one before handling drag-and-drop events.
72742a99 16743
048addec
JD
16744 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
16745 which is detected by autoconf.
40e6ff95 16746
048addec 167472002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 16748
048addec
JD
16749 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
16750 offset in two hints table to allow prebinding to be redone and
16751 allow the executable to be stripped.
c02138c6 16752
048addec 167532002-11-29 Dave Love <fx@gnu.org>
c02138c6 16754
048addec
JD
16755 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
16756 already provided.
0e47bbf7 16757
048addec 167582002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 16759
048addec
JD
16760 * xdisp.c (start_display): Check more intelligently for
16761 whether the line is continued.
16762 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 16763
048addec 167642002-11-28 Dave Love <fx@gnu.org>
44129dcb 16765
048addec
JD
16766 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
16767 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 16768
048addec 167692002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 16770
048addec
JD
16771 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
16772 more descriptive error output from lread.c:Fload upon most require
16773 cycles during boostrapping.
1637fd2c 16774
048addec 167752002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 16776
048addec
JD
16777 * fileio.c (Finsert_file_contents): Give a more appropriate error
16778 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 16779
048addec
JD
16780 * dired.c (Ffile_attributes): Don't return negative file sizes for
16781 files bigger than 2Gb when off_t is 32 bit.
540c2788 16782
048addec 167832002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 16784
048addec 16785 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 16786
048addec
JD
16787 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
16788 Test GETPGRP_VOID instead.
16789 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 16790
048addec
JD
16791 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
16792 Don't define.
16793 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 16794
048addec 16795 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 16796
048addec 167972002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 16798
048addec
JD
16799 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
16800 supported.
4042a81a 16801
048addec 168022002-11-25 Dave Love <fx@gnu.org>
4042a81a 16803
048addec 16804 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 16805
048addec 16806 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 16807
048addec 168082002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 16809
048addec 16810 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 16811
048addec 168122002-11-24 Steven Tamm <steventamm@mac.com>
82122254 16813
048addec
JD
16814 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
16815 determine the size of pointers alloced in unexed space instead
16816 of using possibly invalid emacs_zone pointers. This fixes the
16817 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 16818
048addec 168192002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 16820
048addec 16821 * search.c (Fstring_match): Doc fix.
c1ee53bc 16822
048addec
JD
16823 * callint.c (Fcall_interactively): If a command fails because
16824 `*' detects a read-only buffer, but RECORD_FLAG is set,
16825 record it anyway if the args don't actually do tty input.
5598c32e 16826
048addec 168272002-11-22 Dave Love <fx@gnu.org>
5598c32e 16828
048addec 16829 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 16830
048addec
JD
16831 * keyboard.c (interrupt_signal): Provide forward declaration.
16832 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 16833
048addec 16834 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 16835
048addec 168362002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 16837
048addec
JD
16838 * eval.c (interactive_p): Skip any number of bytecode
16839 and special form frames, in any order.
516eea8e 16840
048addec 168412002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 16842
048addec
JD
16843 * w32fns.c (convert_mono_to_color_image): New function.
16844 (xbm_load, xbm_load_image): Use it when foreground or background
16845 is explicitly set.
04dbfa08 16846
048addec 168472002-11-19 Dave Love <fx@gnu.org>
04dbfa08 16848
048addec 16849 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 16850
048addec 168512002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 16852
048addec
JD
16853 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
16854 (XPutPixel): Swap blue and red.
16855 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
16856 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
16857 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
16858 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 16859
048addec 168602002-11-18 Dave Love <fx@gnu.org>
d824beee 16861
048addec 16862 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 16863
048addec 16864 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 16865
048addec 16866 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 16867
048addec
JD
16868 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
16869 malloc, realloc, calloc.
d824beee 16870
048addec
JD
16871 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
16872 (bcmp): Don't define.
d824beee 16873
048addec 16874 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 16875
048addec 16876 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 16877
048addec 16878 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 16879
048addec 16880 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 16881
048addec
JD
16882 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
16883 Don't include alloca.h.
d824beee 16884
048addec 16885 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 16886
048addec 16887 * regex.c (_GNU_SOURCE): Don't define.
1998560a 16888
048addec 16889 * process.c (_GNU_SOURCE): Don't define.
1998560a 16890
048addec 16891 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 16892
048addec 168932002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 16894
048addec 16895 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 16896
048addec 168972002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 16898
048addec
JD
16899 * dispextern.h (struct face): Add `overstrike' field.
16900 * xterm.c (x_draw_glyph_string_foreground)
16901 (x_draw_composite_glyph_string_foreground): Implement overstriking.
16902 * xfaces.c (load_face_font): Set `face->overstrike' based on
16903 result from choose_face_font.
16904 (best_matching_font, choose_face_font): Add `needs_overstrike'
16905 argument, and use it to return whether overstriking is desirable
16906 for this face/font combo.
16907 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 16908
048addec 169092002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 16910
048addec
JD
16911 This change is my fix for the following entry in etc/PROBLEMS:
16912 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
16913 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 16914
048addec
JD
16915 * w32.c: Added wrapper functions around the win32 API functions
16916 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
16917 GetSidIdentifierAuthority. These wrapper functions serve two
16918 purposes:
16919 1. They ensure that the wrapped function can never be called
16920 when Emacs is running on an operating system on which they are
16921 not supported (Microsoft Windows 95 / 98 / ME).
16922 2. They call the wrapped functions via function pointers rather
16923 than calling them directly. This avoids taking advantage of the
16924 undocumented fact that although these functions are not supported
16925 in the 9x branch of Microsoft Windows, the functions do exist in
16926 the version of advapi32.dll that is found in the 9x branch of
16927 Microsoft Windows.
f60ae425 16928
6bdb309a 16929 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
16930 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
16931 and GetSidIdentifierAuthority with calls to the newly added
16932 wrapper functions.
f60ae425 16933
048addec
JD
16934 * w32.h: Added extern declarations for the following functions:
16935 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
16936 syms_of_w32menu, and void syms_of_fontset.
f60ae425 16937
6bdb309a 16938 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
16939 function pointer track_mouse_event_fn in the handler for the
16940 WM_SETFOCUS message.
3582b6a3 16941
6bdb309a 16942 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
16943 reinitialize the function pointers set_menu_item_info and
16944 get_menu_item_info.
f60ae425 16945
048addec 169462002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 16947
048addec
JD
16948 * sound.c: Added a partial implementation of play-sound-internal
16949 for Microsoft Windows. Added various #ifdef / #else / #endif
16950 code blocks to separate the code that will compile under
9fed2905 16951 Microsoft Windows from the code that is specific to GNU/Linux.
048addec 16952 Moved several blocks of code around to make this separation of code
9fed2905 16953 into Windows compatible and GNU/Linux compatible code blocks easier.
f60ae425 16954
048addec 16955 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 16956
048addec
JD
16957 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
16958 added support for play-sound-internal under Windows would be
16959 included in the build of Emacs.
517f42a0 16960
048addec 169612002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 16962
048addec 16963 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 16964
048addec 16965 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 16966
048addec 169672002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 16968
048addec
JD
16969 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
16970 (adjust_point_for_property): Move out of display and invisible even if
16971 we were already inside before (in case a property was added while
16972 we weren't looking). Be more careful when handling invisible props.
16973 Skip invisible text as if it really wasn't there at all.
aab83f91 16974
048addec 169752002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 16976
048addec
JD
16977 * w32term.c (x_draw_image_foreground)
16978 (w32_draw_image_foreground_1): Use standard copy and invert
16979 operations to draw images.
aab83f91 16980
048addec
JD
16981 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
16982 depth of 1.
16983 (xbm_read_bitmap_data): Invert bits as xbm is read in.
16984 (XPutPixel): Don't invert bits here.
a4478a76 16985
048addec 169862002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 16987
048addec
JD
16988 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
16989 (w32_draw_image_foreground_1): Handle image masks.
16990 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 16991
048addec
JD
16992 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
16993 (x_from_xcolors): Adjust RGB values for W32.
16994 (image_background, image_background_transparent)
16995 (postprocess_image, x_to_xcolors, x_disable_image)
16996 (x_build_heuristic_mask): Adapt for W32 and enable.
16997 (x_create_x_image_and_pixmap): Mark images with palettes as such.
16998 (xbm_load): Remove unused variable.
03670a65 16999
048addec 170002002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 17001
048addec 17002 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 17003
048addec 170042002-11-14 Dave Love <fx@gnu.org>
59daa29a 17005
048addec 17006 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 17007
048addec
JD
17008 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
17009 * xmenu.c (unuse_menu_items, digest_single_submenu):
17010 * xfns.c (x_put_x_image):
17011 * xdisp.c (message2_nolog, set_message):
17012 * undo.c (record_point):
17013 * terminfo.c (tparam):
17014 * syntax.c (scan_sexps_forward):
17015 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17016 * composite.c (update_compositions):
17017 * cm.c (calccost, cmgoto):
17018 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 17019
048addec 17020 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 17021
048addec
JD
17022 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
17023 Don't declare.
59daa29a 17024
048addec 17025 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 17026
048addec
JD
17027 * fns.c (Fcopy_sequence): Doc fix.
17028 (Fmap_char_table): Cast `call2'.
3947677c 17029
048addec
JD
170302002-11-14 Francesco Potorti` <pot@gnu.org>
17031
17032 * s/sol2-8.h: New file.
17033
170342002-11-14 Kim F. Storm <storm@cua.dk>
17035
17036 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
17037 dependency on `risky-local-variable' and the :propertize form.
17038
170392002-11-12 Stefan Monnier <monnier@cs.yale.edu>
17040
17041 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
17042
17043 * syntax.c (scan_sexps_forward): Undo last patch.
17044 Use a more obvious fix: check eob before updating the syntax table.
17045
170462002-11-09 Stefan Monnier <monnier@cs.yale.edu>
17047
17048 * syntax.c (scan_sexps_forward): Update syntax table before reading
17049 a char rather than after so we don't update the table past eob.
17050
170512002-11-09 Dave Love <fx@gnu.org>
17052
17053 * buffer.c (Fset_buffer_major_mode): Fix last change.
17054
17055 * regex.c (regexec): Fix pmatch declaration.
17056
17057 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
17058
17059 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
17060 to self-inserting characters.
17061 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
17062
17063 * coding.c (Vtranslation_table_for_input): New.
17064 (syms_of_coding): DEFVAR it.
17065
170662002-11-08 Juanma Barranquero <lektu@terra.es>
17067
17068 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
17069 window.
17070
170712002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17072
6bdb309a 17073 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
17074 cp, and i.
17075
170762002-11-06 Dave Love <fx@gnu.org>
17077
17078 * buffer.c (Qset_buffer_major_mode_hook): New.
17079 (Fset_buffer_major_mode): Use it.
17080
170812002-11-06 Richard M. Stallman <rms@gnu.org>
17082
17083 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
17084 and stop_polling.
17085
17086 * process.c (wait_reading_process_input):
17087 Test POLLING_PROBLEM_IN_SELECT, not hpux.
17088 Avoid initialization for auto Lisp_Object var.
17089
17090 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
17091
17092 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
17093
170942002-11-05 Richard M. Stallman <rms@gnu.org>
17095
17096 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
17097
17098 * callint.c (Fcall_interactively): New local filter_specs.
17099 (Fcall_interactively): Check for progn as well as let.
17100 Add a gcpro.
17101 (Qprogn): New variable.
17102 (syms_of_callint): Staticpro and init Qprogn.
17103
171042002-11-04 John Paul Wallington <jpw@shootybangbang.com>
17105
17106 * lread.c (Feval_buffer): Doc fix.
17107
171082002-11-04 Dave Love <fx@gnu.org>
17109
17110 * keyboard.c (read_char): Always translate iff
17111 Vkeyboard_translate_table is a char table and c is valid.
17112
17113 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17114 and fix C types.
17115
171162002-11-03 Stefan Monnier <monnier@cs.yale.edu>
17117
17118 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
17119
17120 * editfns.c (get_pos_property): Don't hardcode Qfield.
17121
17122 * keyboard.c (adjust_point_for_property): Handle `display' prop on
17123 overlays. Also handle `invisible' prop.
17124
171252002-11-02 Stefan Monnier <monnier@cs.yale.edu>
17126
17127 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
17128 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
17129
171302002-11-01 Andreas Schwab <schwab@suse.de>
17131
17132 * editfns.c (Fmessage): Revert last change to properly handle %%.
17133
171342002-11-01 Stefan Monnier <monnier@cs.yale.edu>
17135
17136 * xmenu.c (unuse_menu_items): New fun.
17137 (menu_items_inuse): New var.
17138 (syms_of_xmenu): Initialize it.
17139 (init_menu_items): Use it to detect re-entrance.
17140 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
17141 (Fx_popup_menu): Remove spurious XSETFRAME.
17142
17143 * editfns.c (find_field): Make an exception for nil fields.
17144
171452002-11-01 Dave Love <fx@gnu.org>
17146
17147 * m/gec63.h: Deleted.
17148
171492002-10-31 Dave Love <fx@gnu.org>
17150
17151 * xterm.c (XTread_socket): Fix last change.
17152 (xaw_scroll_callback): Cast call_data to long to avoid warning.
17153
171542002-10-31 Stefan Monnier <monnier@cs.yale.edu>
17155
17156 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
17157
171582002-10-30 Stefan Monnier <monnier@cs.yale.edu>
17159
17160 * editfns.c (overlays_around, get_pos_property): New funs.
17161 (find_field): Use them.
17162 Also be careful not to modify POS before its last use.
17163 (Fmessage): Don't Fformat if there's nothing to format.
17164
171652002-10-30 Dave Love <fx@gnu.org>
17166
17167 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
17168 [HAVE_PTY_H]; Include pty.h.
17169
17170 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
17171
17172 * xterm.c (Qeql): Declare.
17173 (Vx_keysym_table): New.
17174 (syms_of_xterm): Initialize it.
17175 (XTread_socket): Use it. Deal with ASCII keysyms.
17176 (XSetIMValues) [HAVE_X11R6]: Prototype.
17177
17178 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
17179 (lispy_kana_keys): Comment out.
17180 (make_lispy_event) [XK_kana_A]: Comment out.
17181 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
17182 Fix sprintf call.
17183
17184 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
17185 regexp.h change).
17186 (TERMINFO, LIBS_TERMCAP): Define.
17187
17188 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
17189 (bcmp): Define conditional on HAVE_BCMP.
17190 (NO_SIOCTL_H): Don't define.
17191 (TIOCSIGSEND): Don't make conditional on IRIX6.
17192
17193 * s/sol2-5.h: Don't include strings.h.
17194 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
17195
17196 * s/irix6-0.h (IRIX6): Don't define.
17197 (bcopy, bcmp, bzero): Don't undef.
17198
17199 * s/irix6-5.h: Don't include strings.h.
17200 (IRIX6): Don't define.
17201 (bcopy, bcmp, bzero): Don't undef.
17202
17203 * syntax.c (Fforward_comment): Doc fix.
17204
172052002-10-29 Kim F. Storm <storm@cua.dk>
17206
17207 * process.c (Fsignal_process): Allow PROCESS to be specified by
17208 name in addition to pid (as integer or string).
17209
172102002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
17211
17212 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
17213 environments.
17214
172152002-10-27 Kim F. Storm <storm@cua.dk>
17216
17217 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
17218
17219 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
17220
17221 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
17222
17223 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
17224
172252002-10-26 Richard M. Stallman <rms@gnu.org>
17226
17227 * editfns.c (Fformat): Detect invalid format letters for floats.
17228
172292002-10-25 Kenichi Handa <handa@m17n.org>
17230
17231 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
17232 (x_set_title): Likewise.
17233
172342002-10-25 Juanma Barranquero <lektu@terra.es>
17235
17236 * macgui.h:
17237 * w32gui.h: Remove definition of XColor.
17238
17239 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
17240
172412002-10-24 Kim F. Storm <storm@cua.dk>
17242
17243 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
17244 Callers changed (supply dummy arg).
17245
17246 * lisp.h (get_window_cursor_type): Update prototype.
17247
17248 * w32term.c (x_display_and_set_cursor): Get active_cursor from
17249 get_window_cursor_type to track system caret.
17250
172512002-10-24 Kim F. Storm <storm@cua.dk>
17252
17253 * process.c (Fformat_network_address): New function.
17254 (syms_of_process): Defsubr it.
17255 (list_processes_1): Use it to format :local/:remote address if
f9711de4 17256 service/host is not set; before Emacs would crash in that case.
048addec
JD
17257 (Fmake_network_process): Don't use Ffind_operation_coding_system
17258 to setup coding system if host or service is not set.
17259
172602002-10-23 Juanma Barranquero <lektu@terra.es>
17261
17262 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
17263
17264 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
17265 COLORREF.
17266
17267 * macgui.h:
17268 * w32gui.h: Add definition of XColor.
17269
17270 * macfns.c:
17271 * w32fns.c:
17272 * xfaces.c: Remove definition of XColor.
17273
172742002-10-22 Stefan Monnier <monnier@cs.yale.edu>
17275
17276 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
17277
17278 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
17279 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
17280 window if it is dedicated.
17281 (Fshrink_window): Add preserve_before as was done for enlarge_window.
17282 (Vspecial_display_function): Update docstring.
17283
17284 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
17285 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
17286 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
17287
172882002-10-21 Stefan Monnier <monnier@cs.yale.edu>
17289
17290 * casefiddle.c (casify_region): Don't treat a prefix char as part
17291 of a word when at the beginning.
17292
172932002-10-17 Juanma Barranquero <lektu@terra.es>
17294
17295 * lread.c (syms_of_lread): Fix typos.
17296
172972002-10-17 Dave Love <fx@gnu.org>
17298
17299 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
17300
173012002-10-16 Richard M. Stallman <rms@gnu.org>
17302
17303 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
17304
173052002-10-14 Juanma Barranquero <lektu@terra.es>
17306
17307 * w16select.c (syms_of_win16select): Fix docstring for
17308 `selection-coding-system'.
17309
17310 * w32select.c (syms_of_w32select): Likewise.
17311
173122002-10-14 Stefan Monnier <monnier@cs.yale.edu>
17313
17314 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
17315 a backslash-quoted char.
17316 (scan_lists, scan_sexps_forward): Pacify the compiler.
17317
173182002-10-13 Richard M. Stallman <rms@gnu.org>
17319
17320 * window.c (window_scroll): Set immediate_quit.
17321
17322 * print.c (print): When backquote form is the car of a list,
17323 output in old style. Use old_backquote_output to output all
17324 comma forms inside it in old style too.
17325
17326 * buffer.h (struct buffer): Move `undo_list' down below `name'.
17327
173282002-10-11 Markus Rost <rost@math.ohio-state.edu>
17329
17330 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
17331 batch mode).
17332
17333 * lread.c (Fload): Doc fix (load-suffixes).
17334
173352002-10-10 Steven Tamm <steventamm@mac.com>
17336
17337 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
17338 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
17339 Also switch the default to Qnil from Qt.
17340
173412002-10-08 Kenichi Handa <handa@m17n.org>
17342
17343 * coding.c (code_convert_region): When we need more GAP for
17344 conversion, pay attention to the case that coding->produced is not
17345 greater than coding->consumed.
17346
173472002-10-07 Richard M. Stallman <rms@gnu.org>
17348
17349 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
17350
173512002-10-06 Andrew Choi <akochoi@shaw.ca>
17352
17353 * macmenu.c (mac_menu_show): Add j to count menu items; match
17354 menu_item_selection to it to find selected item.
17355
173562002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17357
17358 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
17359 cases. The correct fix is to pass ReparentNotify to Xt.
17360 The shell widget interprets ConfigureNotify differently depending
17361 on if it has been reparented or not.
17362
173632002-10-05 Markus Rost <rost@math.ohio-state.edu>
17364
17365 * editfns.c (Fformat_time_string): Doc fix.
17366
173672002-10-05 John Paul Wallington <jpw@shootybangbang.com>
17368
17369 * fns.c (Flength): Doc fix.
17370
173712002-10-04 Stefan Monnier <monnier@cs.yale.edu>
17372
17373 * keyboard.c (keyremap): New struct.
17374 (read_key_sequence): Use it: globally replace keytran_foo with
17375 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
17376 keytran_next and fkey_next to just `next'.
17377
173782002-10-04 Steven Tamm <steventamm@mac.com>
17379
17380 * macterm.c (keycode_to_xkeysym_table): Change return to be
17381 treated like an X keysym.
17382
173832002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17384
17385 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
17386 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
17387 This is to also handle x/y changes that occur because of a resize.
17388
173892002-10-02 John Paul Wallington <jpw@shootybangbang.com>
17390
17391 * frame.c (Vdelete_frame_functions): New variable.
17392 (syms_of_frame): Initialize and defvar it.
17393 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
17394 it when frame's `tooltip' parameter is non-nil.
17395
17396 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
17397
17398 * w32fns.c (x_create_tip_frame): Likewise.
17399
17400 * macfns.c (x_create_tip_frame): Likewise.
17401
174022002-09-30 Kenichi Handa <handa@m17n.org>
17403
17404 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
17405 -1 before calling ccl_driver.
17406
17407 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
17408 Only when it is non-nil, handle composition sequence.
17409 (setup_coding_system) <0>: Don't force composition handling.
17410
17411 * Makefile.in (lisp, shortlisp): Add utf-16.elc
17412
174132002-09-29 Richard M. Stallman <rms@gnu.org>
17414
17415 * search.c (Freplace_match): Adjust match data for the substitution
17416 just made in the buffer.
17417
17418 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
17419 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
17420
174212002-09-27 Richard M. Stallman <rms@gnu.org>
17422
17423 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
17424 (read_char): Use them. Do all exits thru the end of the function.
17425
174262002-09-27 Kenichi Handa <handa@etl.go.jp>
17427
17428 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
17429 is nil.
17430
174312002-09-26 Richard M. Stallman <rms@gnu.org>
17432
17433 * regex.h (__restrict_arr): Don't define if already defined.
17434
17435 * coding.c (run_pre_post_conversion_on_str):
17436 Save and restore Vdeactivate_mark.
17437
174382002-09-26 John Paul Wallington <jpw@shootybangbang.com>
17439
17440 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
17441
174422002-09-26 Kenichi Handa <handa@etl.go.jp>
17443
17444 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
17445 nonzero, try face's family at first. Otherwise try FAMILY at first.
17446 (choose_face_font): If C is a single byte char or latin-1, call
17447 try_font_list with PREFER_FACE_FAMILY 1.
17448
174492002-09-21 Richard M. Stallman <rms@gnu.org>
17450
17451 * window.c (select_window_1): Don't select frame.
17452 Set frame's selected window only when frame itself is selected.
17453 (Fselect_window): Doc fix.
17454
174552002-09-18 Kim F. Storm <storm@cua.dk>
17456
17457 * process.c (make-network-process): Doc fix (there is no
17458 network-server-log-function hook).
17459
174602002-09-18 Richard M. Stallman <rms@gnu.org>
17461
17462 * print.c (print): Clear out the unused parts of Vprint_number_table.
17463 (syms_of_print): Doc fix for `print-number-table'.
17464
17465 * unexelf.c (unexec): Undo previous change.
17466
174672002-09-17 Andreas Schwab <schwab@suse.de>
17468
17469 * m/alpha.h [LINUX]: Don't define DATA_START.
17470
174712002-09-16 Dave Love <fx@gnu.org>
17472
17473 * unexelf.c (unexec): Deal with .got, reinstating change from
17474 25-08-1999.
17475
174762002-09-13 Richard M. Stallman <rms@gnu.org>
17477
17478 * s/sol2-6.h (UNEXEC): Comment out definition.
17479
17480 * unexsol.c (unexec): Don't downcase first letter of error msg.
17481
17482 * xfaces.c (Fcolor_supported_p): Just one arg is required.
17483
174842002-09-12 Markus Rost <rost@math.ohio-state.edu>
17485
17486 * unexsol.c: Include buffer.h, charset.h, coding.h.
17487
174882002-09-11 Richard M. Stallman <rms@gnu.org>
17489
17490 * unexsol.c: Don't use report_file_error; do it by hand
17491 using dlerror.
17492
17493 * process.c (wait_reading_process_input, both versions):
17494 Before calling turn_on_atimers, call stop_polling.
17495
17496 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
17497
17498 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
17499 we go to too_near_end, call clear_glyph_matrix.
17500 (redisplay_window): After make_cursor_line_fully_visible,
17501 call clear_glyph_matrix and bypass `goto done'.
17502
17503 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
17504 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
17505
175062002-09-10 Richard M. Stallman <rms@gnu.org>
17507
17508 * fileio.c (Fdo_auto_save): Catch error making directory.
17509 Only call push_message if we need to.
17510 At the same time, make an unwind-protect to pop it.
17511 Rename local message_p to old_message_p.
17512 (do_auto_save_make_dir, do_auto_save_eh): New functions.
17513 (do_auto_save_unwind): Don't call pop_message.
17514
17515 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
17516
17517 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
17518
17519 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
17520
17521 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
17522
175232002-09-10 Stefan Monnier <monnier@cs.yale.edu>
17524
17525 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
17526 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
17527 (re_match_2_internal): Be more careful with infinite loops.
17528
175292002-09-10 Kim F. Storm <storm@cua.dk>
17530
17531 * macros.c (end_kbd_macro): New function.
17532 (Fend_kbd_macro): Use it.
17533
17534 * macros.h (end_kbd_macro): Declare extern.
17535
17536 * keyboard.c (Fdiscard_input): If defining keyboard macro,
17537 end and save it instead of discarding it.
17538
175392002-09-09 Markus Rost <rost@math.ohio-state.edu>
17540
17541 * s/sol2-6.h: Fix typo. Add comment.
17542
175432002-09-09 Richard M. Stallman <rms@gnu.org>
17544
17545 * regex.c (regnum_t): Use signed int, not unsigned int.
17546
17547 * s/sol2-6.h: New file.
17548
17549 * s/sol2-5.h (UNEXEC): Definition deleted.
17550
175512002-09-08 Kim F. Storm <storm@cua.dk>
17552
17553 * macros.c (executing_macro_index): Change type to EMACS_INT.
9dd28cae 17554 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
048addec
JD
17555
17556 * macros.h (executing_macro_index): Change type to EMACS_INT.
17557
175582002-09-06 Richard M. Stallman <rms@gnu.org>
17559
17560 * casetab.c (set_case_table): Make canon table point to eqv table.
17561
175622002-09-06 Juanma Barranquero <lektu@terra.es>
17563
17564 * coding.c (syms_of_coding): Fix spacing.
17565
17566 * composite.c (Fcompose_region_internal)
17567 (Fcompose_string_internal): Likewise.
17568
17569 * data.c (Flsh): Likewise.
17570
17571 * fontset.c (Fset_fontset_font): Likewise.
17572
17573 * macfns.c (Fx_server_max_request_size): Likewise.
17574
17575 * w16select.c (syms_of_win16select): Likewise.
17576
17577 * w32select.c (syms_of_w32select): Likewise.
17578
17579 * xselect.c (syms_of_xselect): Likewise.
17580
175812002-09-05 Richard M. Stallman <rms@gnu.org>
17582
17583 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
17584 call EXTEND_RANGE_TABLE and return a proper value.
17585 (set_image_of_range): Don't call set_image_of_range_1
17586 if no TRANSLATE or if range includes all of Latin-1.
17587 Only call it for the Latin-1 part of the range.
17588 For other cases, make two separate ranges,
17589 one for the original specified characters and one for
17590 their case-conversions.
17591
175922002-09-04 Richard M. Stallman <rms@gnu.org>
17593
17594 * s/sol2-5.h (UNEXEC): Use unexsol.o.
17595
17596 * window.c (displayed_window_lines): Correct for one-off bug
17597 in HEIGHT on non-window displays.
17598
17599 * regex.c (set_image_of_range_1): New function.
17600 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
17601 Return a value to indicate running out of memory.
17602 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
17603 (extend_range_table_work_area): New subroutine.
17604 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
17605 Different calling conventions, and used from set_image_of_range{,_1}.
17606 (IMMEDIATE_QUIT_CHECK): Definitions moved.
17607
176082002-09-04 Juanma Barranquero <lektu@terra.es>
17609
17610 * makefile.w32-in: All dependencies updated.
17611
176122002-09-01 Richard M. Stallman <rms@gnu.org>
17613
17614 * unexsol.c: New file.
17615
17616 * xfns.c (Qbox): Declare external, don't define.
17617
17618 * xdisp.c (redisplay_window) <force-start case>:
17619 If point is on semi-visible last line, reposition
17620 it at previous line.
17621
17622 * alloc.c (display_malloc_warning): Use display-warning.
17623 (malloc_warning_1): Function deleted.
17624
17625 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
17626
17627 * lread.c (read1): Handle #! by skipping the line.
17628
176292002-08-31 Richard M. Stallman <rms@gnu.org>
17630
17631 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
17632 Don't include LDFLAGS.
17633 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
17634
176352002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
17636
17637 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
17638 member of x_display_info unless we compile for some window system.
17639
176402002-08-31 Kim F. Storm <storm@cua.dk>
17641
17642 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
17643 (get_window_cursor_type): Don't use them.
17644 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
17645
176462002-08-30 Kenichi Handa <handa@etl.go.jp>
17647
17648 * xdisp.c (get_next_display_element): Fix previous change.
17649
176502002-08-30 Andrew Choi <akochoi@shaw.ca>
17651
17652 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
17653 (expose_window): Use it to fix the display of overlapping
17654 rows (merge code from xterm.c).
17655
17656 * macfns.c (Qbox): Add extern declaration.
17657
176582002-08-30 Juanma Barranquero <lektu@terra.es>
17659
17660 * w32fns.c (Qbox): Make extern.
17661 (syms_of_w32fns): Remove initialization of Qbox.
17662
176632002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
17664
17665 * xfns.c (Fx_open_connection): Fix error message.
17666
176672002-08-30 Kim F. Storm <storm@cua.dk>
17668
17669 The following changes consolidates the handling of the cursor
17670 type in xdisp.c, moving duplicate code and functionality from
17671 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
17672
17673 * frame.h (enum text_cursor_kinds): Consolidated here.
17674 Added DEFAULT_CURSOR value.
17675 (struct frame) <desired_cursor, cursor_width>
17676 <blink_off_cursor, blink_off_cursor_width>: New fields.
17677 Consolidated from output_x, output_w32 and output_mac structs.
17678 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17679 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
17680
17681 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
17682 Variables consolidated here.
17683 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
17684 (Vcursor_in_non_selected_windows): Renamed from
17685 cursor_in_non_selected_windows and changed to Lisp_Object.
17686 (syms_of_xdisp): Define and staticpro new and moved variables.
17687 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
17688 consolidated here. Recognize Qhollow setting.
17689 (set_frame_cursor_types): New function to set frame cursor types
17690 based on the frame parameters.
17691 (get_window_cursor_type): New function to calculate new cursor
17692 type and width for the specified window. Based on duplicated
17693 code consolidated here.
17694 Enhancements: cursor-in-non-selected-windows may be a cursor type,
17695 check buffer-local alternate-cursor-type and blink-cursor-alist
17696 before using built-in blink off methods.
17697
17698 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
17699
17700 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
17701 (get_specified_cursor_type, get_window_cursor_type)
17702 (set_frame_cursor_types): Added prototypes.
17703
17704 * macfns.c (x_specified_cursor_type): Removed.
17705 (x_set_cursor_type): Use set_frame_cursor_types.
17706 (Qbar, Qbox): Removed.
17707 (syms_of_macfns): Don't intern or staticpro them.
17708
17709 * macterm.c (x_specified_cursor_type): Remove prototype.
17710 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17711 (x_display_and_set_cursor): Use get_window_cursor_type.
17712 Remove unused local variables cursor_non_selected, active_cursor.
17713 Redraw cursor if hbar cursor width changes.
17714 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
17715
17716 * macterm.h (enum text_cursor_kinds): Removed.
17717 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
17718 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17719 (FRAME_DESIRED_CURSOR): Macro removed.
17720
17721 * w32fns.c (Vblink_cursor_alist): Removed.
17722 (Qbar, Qhbar, Qbox, Qhollow): Removed.
17723 (syms_of_w32fns): Don't intern, staticpro, or define them.
17724 (x_specified_cursor_type): Removed.
17725 (x_set_cursor_type): Use set_frame_cursor_types.
17726
17727 * w32term.c (x_specified_cursor_type): Remove prototype.
17728 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17729 (x_display_and_set_cursor): Use get_window_cursor_type.
17730 Remove unused local variables cursor_off_state.
17731 Redraw cursor if hbar cursor width changes.
17732 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
17733
17734 * w32term.h (enum text_cursor_kinds): Removed.
17735 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
17736 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17737 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17738 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
17739 (struct w32_display_info) <x_highlight_frame>: Renamed member from
17740 w32_highlight_frame.
17741
17742 * xfns.c (Vblink_cursor_alist): Removed.
17743 (Qbar, Qhbar, Qbox, Qhollow): Removed.
17744 (syms_of_xfns): Don't intern, staticpro, or define them.
17745 (x_specified_cursor_type): Removed.
17746 (x_set_cursor_type): Use set_frame_cursor_types.
17747
17748 * xterm.c (x_specified_cursor_type): Remove prototype.
17749 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17750 (x_display_and_set_cursor): Use get_window_cursor_type.
17751 Remove unused local variables cursor_off_state.
17752 Redraw cursor if hbar cursor width changes.
17753
17754 * xterm.h (enum text_cursor_kinds): Removed.
17755 (struct output_x) <current_cursor, desired_cursor, cursor_width>
17756 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17757 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17758 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
17759 (x_specified_cursor_type): Remove prototype.
17760
177612002-08-28 Richard M. Stallman <rms@gnu.org>
17762
17763 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
17764 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
17765 (Vblink_cursor_alist): New variable.
17766 (syms_of_w32fns): Initialize and defvar it.
17767 (x_specified_cursor_type): Recognize Qbox for filled box.
17768 Exceptions are hollow boxes.
17769 (Qbox, Qhollow): New variables.
17770 (syms_of_w32fns): Initialize and staticpro them.
17771
17772 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
17773 New macros.
17774 (struct w32_output): New fields blink_off_cursor,
17775 blink_off_cursor_width.
17776 (FRAME_CURSOR_WIDTH): New macro.
17777
17778 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
17779 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
17780
17781 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
17782 for bar cursor.
17783
17784 * w32term.c (expose_overlaps): New function.
17785 (expose_window): Use it to fix the display of overlapping rows.
17786
177872002-08-28 Simon Josefsson <jas@extundo.com>
17788
17789 * xfns.c (Fx_open_connection): Improve help when X connection
17790 fails, xhost is insecure and xauth is better.
17791
177922002-08-28 Juanma Barranquero <lektu@terra.es>
17793
17794 * makefile.w32-in: Add missing dependencies on w32term.h and
17795 composite.h.
17796
17797 * emacs.c (USAGE1): Add missing newline.
17798
177992002-08-27 Andrew Choi <akochoi@shaw.ca>
17800
17801 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
17802
178032002-08-27 Richard M. Stallman <rms@gnu.org>
17804
17805 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
17806 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
17807 (Vblink_cursor_alist): New variable.
17808 (syms_of_xfns): Initialize and defvar it.
17809 (x_specified_cursor_type): Recognize Qbox for filled box.
17810 Exceptions are hollow boxes.
17811 (Qbox, Qhollow): New variables.
17812 (syms_of_xfns): Initialize and staticpro them.
17813
17814 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
17815 New macros.
17816 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
17817
17818 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
17819 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
17820
17821 * emacs.c (main): Handle --script.
17822 (USAGE1): Mention --script.
17823 (standard_args): Define sort order for --script.
17824
178252002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
17826
17827 * xdisp.c (redisplay_updating_p): Variable removed.
17828 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
17829 New variables.
17830 (init_iterator): Don't free realized faces if
17831 inhibit_free_realized_faces is set.
17832 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
17833 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
17834 initialize Qinhibit_free_realized_faces.
17835
17836 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
17837 when iterator is adding glyphs to a glyph matrix.
17838
178392002-08-27 Kenichi Handa <handa@etl.go.jp>
17840
17841 * xdisp.c (get_next_display_element): In unibyte case, don't use
17842 octal form for such eight-bit characters that can be converted to
17843 multibyte char.
17844
178452002-08-26 Kim F. Storm <storm@cua.dk>
17846
b6189c3b
KS
17847 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
17848 foreground and background colors. From Joe Buehler.
048addec
JD
17849
178502002-08-26 Miles Bader <miles@gnu.org>
17851
17852 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
17853
178542002-08-25 Andrew Choi <akochoi@shaw.ca>
17855
17856 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
17857 defined instead of MAC_OSX.
17858
17859 * s/darwin.h (select): Define select to sys_select only if
17860 HAVE_CARBON is defined.
17861 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
17862 (DONT_REOPEN_PTY): #def it.
17863
17864 * macterm.c (XTread_socket): Remove code to call
17865 SendEventToEventTarget for keys with command modifiers when
17866 mac_command_key_is_meta is nil.
17867
178682002-08-24 Andreas Schwab <schwab@suse.de>
17869
17870 * eval.c (Fdefvar): Fix last change.
17871
178722002-08-23 Richard M. Stallman <rms@gnu.org>
17873
17874 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
17875 Record variables in load history as (defvar . VAR).
17876 (Fdefvar): Don't record in load history if no initial value.
17877 (Qdefvar): New variable.
17878 (syms_of_eval): Init and staticpro it.
17879
17880 * lread.c (syms_of_lread): Doc fix.
17881 (build_load_history): Use Fmember to see if a definition
17882 is already in the Vload_history element.
17883
17884 * process.c (Fstart_process): Remove /: from program name.
17885
17886 * emacs.c (decode_env_path): Don't add /: if file name handler
17887 has a `safe-magic' property.
17888
17889 * callproc.c (Fcall_process): Remove /: from program name.
17890
178912002-08-23 Stefan Monnier <monnier@cs.yale.edu>
17892
17893 * regex.c (PATFETCH): Remove the translating fetch.
17894 (PATFETCH_RAW): Rename to PATFETCH.
17895 (set_image_of_range): New fun.
17896 (SET_RANGE_TABLE_WORK_AREA): Use it.
17897 (regex_compile): Don't translate the pattern chars so eagerly.
17898 Only do it when inserting an `exactn' bytecode or when handling
17899 a char-range.
17900 (mutually_exclusive_p): Avoid empty statement.
17901
179022002-08-22 Kim F. Storm <storm@cua.dk>
17903
17904 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
17905 end up on a partially visible line; this reverts a specific part
17906 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
17907 display error which has been reported several times now.
17908 However it introduces the problem that changes was supposed to fix.
17909 See my comments in the source if you want to debug this further.
17910
179112002-08-20 Kenichi Handa <handa@etl.go.jp>
17912
17913 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17914
179152002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
17916
17917 * msdos.c (croak): Add `void' to definition.
17918
c1380aa6 17919 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
17920 Don't define them, they are defined in msdos.c.
17921
17922 * mem-limits.h [MSDOS]: Declare etext.
17923
17924 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
17925 `const' since CORRECT_DIR_SEPS modifies its target.
17926
179272002-08-19 Kim F. Storm <storm@cua.dk>
17928
2fb0ce67 17929 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
17930 KEEP-RECORD to avoid clearing lossage when we just want to clear
17931 the current key sequence (kmacro needs this).
17932
179332002-08-19 Kenichi Handa <handa@localhost>
17934
17935 * composite.c (run_composition_function): Call FUNC if it is fboundp.
17936
17937 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
17938 cons, return Qnil.
17939
179402002-08-17 Richard M. Stallman <rms@gnu.org>
17941
17942 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
17943
17944 * sysdep.c [!VMS]: Include sys/files.h.
17945
17946 * editfns.c (save_restriction_restore): Defend from unchained marker.
17947
17948 * buffer.c (overlays_at): Handle extending vec uniformly.
17949 (overlays_in): Handle extending vec from length 0 as in overlays_at.
17950
179512002-08-15 Andrew Choi <akochoi@shaw.ca>
17952
17953 * mac.c (init_mac_osx_environment): New function.
17954
17955 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
17956
179572002-08-14 Kim F. Storm <storm@cua.dk>
17958
17959 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
17960 executing macro before appending to it (when used from Lisp).
17961 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
17962 which is called prior to each iteration of macro (for kmacro.el).
17963 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
17964
17965 * lisp.h (Fexecute_kbd_macro): Update prototype.
17966
17967 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
17968
179692002-08-14 Kenichi Handa <handa@etl.go.jp>
17970
17971 * xselect.c (QUTF8_STRING): New variable.
17972 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
17973 (x_atom_to_symbol): Likewise.
17974 (x_get_local_selection): New argument local_request. If it is
17975 nonzero, call handler_fn with the second arg nil.
17976 (x_handle_selection_request): Call x_get_local_selection with
17977 local_request 0.
17978 (lisp_data_to_selection_data): Don't encode the string here.
17979 (Fx_get_selection_internal): Call x_get_local_selection with
17980 local_request 1.
17981 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
17982
17983 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
17984
17985 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
17986
179872002-08-13 Richard M. Stallman <rms@gnu.org>
17988
17989 * minibuf.c (Fminibufferp): New function.
17990 (syms_of_minibuf): Defsubr it.
17991 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
17992
179932002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
17994
17995 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
17996
179972002-08-12 Richard M. Stallman <rms@gnu.org>
17998
17999 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
18000 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
18001 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
18002 already.
18003
18004 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
18005
180062002-08-11 Andrew Choi <akochoi@shaw.ca>
18007
18008 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
18009 (Vmac_pass_command_to_system): New variable.
18010 (Vmac_pass_control_to_system): New variable.
18011 (do_mouse_moved): Check wp with is_emacs_window.
18012 (XTread_socket): Check window_ptr with is_emacs_window.
18013 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
18014 events back to Mac Toolbox for processing, depending on values of
18015 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
18016 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
18017 Vmac_pass_control_to_system.
18018
180192002-08-10 Kenichi Handa <handa@etl.go.jp>
18020
18021 * coding.c (unencodable_char_position): New function.
18022 (Funencodable_char_position): New function.
18023 (syms_of_coding): Defsubr Funencodable_char_position.
18024
180252002-08-10 Andrew Choi <akochoi@shaw.ca>
18026
18027 * mac.c (sys_select) [MAC_OSX]: New function.
18028
18029 * macterm.c (MakeMeTheFrontProcess): New function.
18030 (mac_initialize): Call MakeMeTheFrontProcess.
18031
18032 * s/darwin.h: Define select to sys_select.
18033
180342002-08-09 Richard M. Stallman <rms@gnu.org>
18035
18036 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
18037
180382002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
18039
18040 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
18041 end of the buffer.
18042
88fde92a 180432002-08-08 Ken Raeburn <raeburn@gnu.org>
048addec
JD
18044
18045 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
18046
18047 * puresize.h (BASE_PURESIZE): Increase to 910000.
18048
180492002-08-08 Kenichi Handa <handa@etl.go.jp>
18050
18051 * coding.c (Ffind_operation_coding_system): For write-region, if
18052 VISIT is a filename, make it the target.
18053
180542002-08-07 Richard M. Stallman <rms@gnu.org>
18055
18056 * alloc.c (mark_object): Detect long lists for debugging.
18057 (mark_object_loop_halt): New variable.
18058
18059 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
18060
18061 * data.c (Fmake_variable_frame_local): Doc fix.
18062
180632002-08-01 David Ponce <david@dponce.com>
18064
18065 * w32menu.c (local_heap, local_alloc, local_free): New macros.
18066 (malloc_widget_value, free_widget_value)
18067 (w32_free_submenu_strings): Use them.
18068
18069 (push_submenu_start, push_submenu_end, push_left_right_boundary)
18070 (push_menu_pane, push_menu_item, single_keymap_panes)
18071 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
18072 (single_submenu, set_frame_menubar)
18073 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
18074
18075 (Fx_popup_menu): Don't show pop up menu until preceding one is
18076 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
18077
18078 * w32menu.c: Changes adapted from xmenu.c
18079 (set_frame_menubar): First parse all submenus,
18080 then make widget_value trees from them.
18081 Don't allocate any widget_value objects
18082 until we are done with the parsing.
18083 (parse_single_submenu): New function.
18084 (digest_single_submenu): New function.
18085 (single_submenu): Function deleted, replaced by those two.
18086
180872002-08-04 Andrew Choi <akochoi@shaw.ca>
18088
18089 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
18090 returns a valid window pointer before proceeding for keyDown and
18091 autoKey events.
18092
180932002-08-03 Andrew Choi <akochoi@shaw.ca>
18094
18095 * macterm.c (USE_CARBON_EVENTS): New macro.
18096 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
18097 (x_iconify_frame): Call CollapseWindow.
18098 (Vmac_reverse_ctrl_meta): New variable.
18099 (Vmac_wheel_button_is_mouse_2): New variable.
18100 (init_mac_drag_n_drop): New function.
18101 (mac_do_receive_drag): New function.
18102 (mac_handle_service_event): New function.
18103 (init_service_handler): New function.
18104 (mac_to_emacs_modifiers): New function.
18105 (mac_event_to_emacs_modifiers): New function.
18106 (mac_get_mouse_btn): New function.
18107 (mac_convert_event_ref): New function.
18108 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
18109 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
18110 mac_get_mouse_btn.
18111 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
18112
18113 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
18114 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
18115 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
18116 TOOL_BAR_EVENT for MAC_OS as well.
18117 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
18118 as for WINDOWS_NT.
18119 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
18120
18121 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
18122
181232002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
18124
18125 * xdisp.c (forward_to_next_line_start): Fix a condition that
18126 lead to a newline being skipped.
18127
181282002-08-02 Andrew Choi <akochoi@shaw.ca>
18129
18130 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
18131
181322002-08-01 Richard M. Stallman <rms@gnu.org>
18133
18134 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
18135
181362002-07-31 Andrew Choi <akochoi@shaw.ca>
18137
18138 * macfns.c: #undef init_process before #define-ing it.
18139
18140 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
18141 HAVE_CARBON is defined.
18142
181432002-07-31 Richard M. Stallman <rms@gnu.org>
18144
18145 * xmenu.c (set_frame_menubar): First parse all submenus,
18146 then make widget_value trees from them.
18147 Don't allocate any widget_value objects
18148 until we are done with the parsing.
18149 (parse_single_submenu): New function.
18150 (digest_single_submenu): New function.
18151 (single_submenu): Function deleted, replaced by those two.
18152
181532002-07-30 Juanma Barranquero <lektu@terra.es>
18154
18155 * w32proc.c (syms_of_ntproc): Fix docstring of
18156 `w32-get-true-file-attributes'.
18157
181582002-07-28 Richard M. Stallman <rms@gnu.org>
18159
18160 * s/hpux8.h (HPUX8): Define this before including hpux.h.
18161 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
18162
18163 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
18164
18165 * keyboard.c (make_lispy_event):
18166 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
18167 Explicitly clear up_modifier in event->modifiers.
18168
181692002-07-27 Richard M. Stallman <rms@gnu.org>
18170
18171 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
18172
18173 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
18174 for bar cursor.
18175
181762002-07-26 Kenichi Handa <handa@etl.go.jp>
18177
18178 * coding.c (detect_coding_iso2022): While checking a byte sequence
18179 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
18180 it in the normal loop.
18181
181822002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
18183
18184 * xterm.c (expose_overlaps): New function.
18185 (expose_window): Use it to fix the display of overlapping rows.
18186
18187 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
18188
181892002-07-23 Ken Raeburn <raeburn@gnu.org>
18190
18191 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
18192 since it only depends on XUINT.
18193
18194 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
18195 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
18196 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
18197 Macros deleted.
3947677c 18198
77d1daf2
AS
18199 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
18200 its value over other approaches.
18201 * sysdep.c (start_of_data): Don't define the function if a macro
18202 form has been defined.
8a8e19a3 18203
048addec
JD
182042002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
18205
18206 * xdisp.c (redisplay_updating_p): New variable.
18207 (init_iterator): Don't free realized faces when
18208 redisplay_updating_p is set.
18209 (redisplay_internal): Set redisplay_updating_p while updating
18210 the display.
18211
182122002-07-23 Richard M. Stallman <rms@gnu.org>
18213
18214 * editfns.c (Fmessage): Treat "" like nil.
18215
182162002-07-23 Kenichi Handa <handa@etl.go.jp>
18217
18218 * xdisp.c (face_before_or_after_it_pos):
18219 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18220
182212002-07-22 Juanma Barranquero <lektu@terra.es>
18222
18223 * callproc.c (init_callproc) [DOS_NT]:
18224 Initialize Vshared_game_score_directory to nil.
18225 (syms_of_callproc) [DOS_NT]: Likewise.
18226
182272002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
18228
18229 * xdisp.c (display_line): Replace an abort with xassert.
18230
182312002-07-21 Richard M. Stallman <rms@gnu.org>
18232
18233 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
18234 and END_UNCHANGED when setting buffer_unchanged_p.
18235 Use current_matrix_up_to_date_p to decide whether to use
18236 try_cursor_movement.
18237
18238 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
18239
18240 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
18241
18242 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
18243 Set to nil if dir does not exist.
18244 (syms_of_callproc): Init unconditionally and simply.
18245
18246 * buffer.c (Fbuffer_list): Doc fix.
18247
182482002-07-21 Ken Raeburn <raeburn@gnu.org>
18249
18250 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
18251
18252 * buffer.c (mmap_realloc): When shrinking, make sure number of
18253 pages to unmap is rounded towards zero.
18254
18255 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
18256 (XSETINT): Deleted.
18257
18258 * m/att3b.h (XINT): Don't define.
18259 (VALBITS, VALMASK, XTYPE): Deleted.
18260 (DATA_SEG_BITS): Define.
18261 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
18262 ARRAY_MARK_FLAG): Deleted.
18263 (DATA_SEG_BITS): Define.
18264 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
18265 (DATA_SEG_BITS): Define.
18266
182672002-07-20 Richard M. Stallman <rms@gnu.org>
18268
18269 * print.c (print_error_message): New args CONTEXT and CALLER.
18270 Calls changed.
18271
18272 * lisp.h (print_error_message): Declare new args.
18273
18274 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
18275 and CONTEXT to print_error_message, don't print them here.
18276 For a Quit, don't use Vsignaling_function.
18277 Call message_log_maybe_newline.
18278
18279 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
18280
182812002-07-20 Kim F. Storm <storm@cua.dk>
18282
18283 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
18284
182852002-07-19 Ken Raeburn <raeburn@gnu.org>
18286
18287 * bytecode.c (struct byte_stack): Pointers into byte string now
18288 point to const.
18289 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
18290 const.
18291 * charset.h (BCOPY_SHORT): Source pointer now points to const.
18292 * coding.c (encode_eol, detect_coding, detect_eol):
18293 (decode_coding, encode_coding, detect_coding_system):
18294 Source strings now treated as const.
18295 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
18296 modify Lisp string contents.
18297 * coding.h (decode_coding, encode_coding, detect_coding,
18298 detect_eol): Declarations updated.
18299 * composite.c (compose_chars_in_text): Treat Lisp string contents
18300 as const.
18301 * dispnew.c (safe_bcopy): Source pointer now points to const.
18302 * lisp.h (STRING_COPYIN): New macro.
18303 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
18304 (internal_with_output_to_temp_buffer): Declarations updated.
18305 * print.c (temp_output_buffer_setup):
18306 (internal_with_output_to_temp_buffer): Buffer name argument is now
18307 pointer to const.
18308 * sound.c (struct sound_device): Function pointer field "write"
18309 buffer argument now points to const.
18310 (vox_write): Buffer argument points to const.
18311 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
18312 contents as const.
18313 * sysdep.c (emacs_write): Buffer pointer now const.
18314 * term.c (encode_terminal_code): Buffer pointer now const.
18315 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
18316 (x_face_list_fonts, x_update_menu_appearance):
18317 (hash_string_case_insensitive): Treat Lisp string contents as const.
18318
183192002-07-19 Juanma Barranquero <lektu@terra.es>
18320
048addec
JD
18321 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
18322
18323 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
18324 (Ffile_name_as_directory): Fix argument name in docstring.
18325 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
18326
183272002-07-18 Richard M. Stallman <rms@gnu.org>
18328
18329 * data.c (Fdefalias): Doc fix.
18330
183312002-07-17 Dave Love <fx@gnu.org>
18332
18333 * intervals.h (text_property_stickiness): Use P_.
18334
18335 * ccl.c: Remove `emacs' conditionals.
18336 (ccl_backtrace_table): Fix size spec.
18337 (ccl_driver): Fix type errors.
18338
183392002-07-16 Ken Raeburn <raeburn@gnu.org>
18340
18341 * alloc.c (xstrdup, make_string, make_unibyte_string)
18342 (make_multibyte_string, build_string): String pointer args now
18343 point to const.
18344 * charset.c (find_charset_in_text, c_string_width):
18345 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
18346 * fileio.c (report_file_error):
18347 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
18348 (count_combining_before, count_combining_after, insert_1_both):
18349 (insert, insert_and_inherit, insert_string):
18350 (insert_before_markers, insert_before_markers_and_inherit):
18351 * lread.c (intern, oblookup, hash_string):
18352 * minibuf.c (temp_echo_area_glyphs):
18353 * search.c (fast_c_string_match_ignore_case):
18354 * sysdep.c (emacs_open, set_file_times):
18355 * xfaces.c (xstricmp):
18356 * xdisp.c (store_frame_title, string_char_and_length):
18357 (message_dolog, message2, message2_nolog, set_message): Likewise.
18358 (set_message_1): Cast message string argument to const pointer.
18359 * editfns.c (general_insert_function): Insertion function now
18360 takes pointer to const for input data.
18361 * charset.h (find_charset_in_text, c_string_width):
18362 (parse_str_as_multibyte): Declarations updated.
18363 * dispextern.h (xstricmp): Declaration updated.
18364 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
18365 (count_size_as_multibyte, count_combining_before):
18366 (count_combining_after, insert_1, insert_1_both, message_dolog):
18367 (insert, insert_and_inherit, insert_before_markers)
18368 (insert_before_markers_and_inherit, set_message, message2):
18369 (message2_dolog, build_string, make_string, make_unibyte_string):
18370 (make_multibyte_string, intern, oblookup, report_file_error):
18371 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
18372 (emacs_open, xstrdup): Declarations updated.
18373 * systime.h (set_file_times): Declaration updated.
18374
18375 * charset.c (find_charset_in_text, lisp_string_width): Use const
18376 for pointer to lisp string data.
18377 * charset.h (FETCH_STRING_CHAR_ADVANCE):
18378 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
18379 * coding.c (Ffind_coding_systems_region_interval):
18380 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
18381 (Fmake_directory_internal, Fdelete_directory):
18382 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
18383 * fontset.c (font_family_registry, fs_query_fontset):
18384 (list_fontsets):
18385 * frame.c (Fframe_parameter):
18386 * keyboard.c (cmd_error_internal):
18387 * keymap.c (Fdescribe_buffer_bindings):
18388 * lread.c (complete_filename_p, openp):
18389 * minibuf.c (Fminibuffer_complete_word):
18390 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
18391 (face_before_or_after_it_pos, next_element_from_string):
18392 (get_overlay_arrow_glyph_row, display_mode_element):
18393 (decode_mode_spec_coding):
18394 * xterm.c (same_x_server): Likewise.
18395
18396 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
18397 settings of non-existent fields.
18398
18399 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
18400 copy a lisp value.
18401
18402 * lread.c (Fintern_soft): Use string macros instead of
18403 Lisp_String fields.
18404 * keyboard.c (echo_char, parse_modifiers_uncached):
18405 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
18406 * textprop.c (validate_interval_range, interval_of): Likewise.
18407
18408 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
18409
18410 * charset.h (FETCH_STRING_CHAR_ADVANCE)
18411 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
18412 XSTRING()->size_byte.
18413
18414 * lisp.h (SDATA, SREF): Produce rvalue.
18415 (SSET): New macro.
18416 * alloc.c (make_event_array): Use SSET for storing into a string.
18417 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
18418 a string.
18419 * casefiddle.c (casify_object): Use SSET.
18420 * charset.h (FETCH_STRING_CHAR_ADVANCE)
18421 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
18422 address of string contents.
18423 * data.c (Faref): Use SDATA.
18424 (Faset): Use SDATA, SSET.
18425 * dired.c (directory_files_internal): Use SSET.
18426 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
18427 (Fread_file_name): Use SREF, SSET.
18428 * fns.c (concat): Use SSET.
18429 (concat, Fdelete): Use SDATA.
18430 * insdel.c (insert_from_string_1): Use SDATA.
18431 * keyboard.c (Fevent_convert_list): Use SREF.
18432 * lread.c (Fload): Use SDATA, SSET.
18433 * macfns.c (validate_x_resource_name): Use SSET.
18434 * process.c (status_message): Use SSET.
18435 * search.c (wordify): Use SDATA.
18436 (Freplace_match): Use SREF.
18437 * w32fns.c (validate_x_resource_name): Use SSET.
18438 * xfns.c (validate_x_resource_name): Use SSET.
18439 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
18440
184412002-07-16 Richard M. Stallman <rms@gnu.org>
18442
18443 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
18444
18445 * xdisp.c (reconsider_clip_changes):
18446 Don't test prevent_redisplay_optimizations_p.
18447 (redisplay_internal): Test prevent_redisplay_optimizations_p
18448 along with clip_changed in some cases.
18449 (try_window_id): Likewise.
18450 (redisplay_window): New local var buffer_unchanged_p.
18451
18452 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
18453
18454 * process.c (create_process): Test USG_SUBTTY_WORKS.
18455 (process_send_signal): Clean up handling of GID.
18456 Detect errors in ioctls meant to set GID.
18457
18458 * window.c (temp_output_buffer_show):
18459 Don't set prevent_redisplay_optimizations_p.
18460
184612002-07-15 Juanma Barranquero <lektu@terra.es>
18462
18463 * eval.c (Fdefvaralias): Add docstring argument.
18464
184652002-07-15 Ken Raeburn <raeburn@gnu.org>
18466
18467 * lisp.h (STRING_INTERVALS): Produce rvalue.
18468 (STRING_SET_INTERVALS): New macro.
18469 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
18470 * fns.c (Fstring_as_multibyte): Likewise.
18471 * intervals.c (balance_possible_root_interval, delete_interval)
18472 (create_root_interval, copy_intervals_to_string): Likewise.
18473 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
18474 instead of 0.
18475
184762002-07-14 Ken Raeburn <raeburn@gnu.org>
18477
18478 * lisp.h (STRING_SET_CHARS): New macro.
18479 (SCHARS, SBYTES): Produce rvalues.
18480 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
18481 * fns.c (concat): Likewise.
18482 * lread.c (read_vector): Likewise.
18483
3419757d 18484 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 18485 (STRING_SET_UNIBYTE): New macro.
3419757d 18486 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
18487 length of -1) changed to use STRING_SET_UNIBYTE.
18488 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
18489 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
18490 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
18491 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
18492 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
18493 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
18494 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
18495 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
18496 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
18497 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
18498 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
18499 STRING_BYTES or indirection changed to SCHARS, SBYTES,
18500 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
18501 unchanged for now.
18502
185032002-07-13 Kim F. Storm <storm@cua.dk>
18504
18505 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
18506
185072002-07-12 Richard M. Stallman <rms@gnu.org>
18508
18509 * fileio.c (Fwrite_region): Doc fix.
18510
18511 * print.c (print_error_message): Don't handle Vsignaling_function here.
18512
18513 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
18514 (command_loop_1): Avoid certain actions after memory-full error.
18515
18516 * eval.c (Fsignal): Don't call cancel_hourglass.
18517 For a memory-full error, don't call Vsignal_hook_function
18518 and don't set Vsignaling_function.
18519
18520 * process.c (process_send_signal): Add abort call.
18521
185222002-07-11 Markus Rost <rost@math.ohio-state.edu>
18523
18524 * keymap.c (Fkey_binding): Fix typo.
18525
185262002-07-11 Richard M. Stallman <rms@gnu.org>
18527
18528 * alloc.c (Vmemory_full): New variable.
3419757d 18529 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
18530 Uses changed.
18531 (syms_of_alloc): Defvar them.
18532 (memory_full, buffer_memory_full): Set Vmemory_full.
18533
18534 * lisp.h (Vmemory_full): Add declaration.
18535 (current_column, indented_beyond_p): Change declaration.
18536
18537 * indent.c (last_known_column): Declare as double, not float.
18538 (current_column, current_column_1, string_display_width)
18539 (position_indentation): Return `double'.
18540 (indented_beyond_p): Arg `column' is `double'. Callers changed.
18541
18542 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
18543 (back_to_previous_visible_line_start)
18544 (reseat_at_next_visible_line_start, next_element_from_buffer):
18545 Use `double', not `float', when calling indented_beyond_p.
18546
3419757d 18547 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
18548
18549 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
18550
185512002-07-11 Juanma Barranquero <lektu@terra.es>
18552
18553 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
18554 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
18555 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
18556 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
18557 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
18558 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
18559
185602002-07-10 Juanma Barranquero <lektu@terra.es>
18561
d814862a
JB
18562 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
18563 All callers changed.
048addec
JD
18564
185652002-07-09 Stefan Monnier <monnier@cs.yale.edu>
18566
18567 * data.c (Fdefalias): Add an optional `docstring' argument.
18568 (set_internal, Fsetq_default): Use XCAR/XCDR.
18569
18570 * composite.c (HASH_VALUE, HASH_KEY):
18571 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
18572
185732002-07-09 Kenichi Handa <handa@etl.go.jp>
18574
18575 * callproc.c (Fcall_process): Fix previous change.
18576
185772002-07-07 Stefan Monnier <monnier@cs.yale.edu>
18578
18579 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
18580 Add support for hash-tables.
18581 (Ftry_completion): Return t even if the string appears multiple times.
18582
18583 * fns.c (Fnconc): Use XCDR.
18584 (Fprovide): Use CONSP and XCDR.
18585 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
18586 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
18587 (Fmake_hash_table): Accept `:size nil'.
18588 (Fmakehash): Delete: moved to subr.el.
18589 (syms_of_fns): Don't defsubr makehash.
18590
18591 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
18592 (HASH_TABLE_SIZE): Move from fns.c.
18593
185942002-07-07 Richard M. Stallman <rms@gnu.org>
18595
18596 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
18597 Instead just return 0 when there is something to be done.
18598 (try_scrolling): If make_cursor_line_fully_visible returns 0,
18599 retry scrolling as if cursor were off the bottom.
18600 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
18601 return CURSOR_MOVEMENT_MUST_SCROLL.
18602 (redisplay_window): If make_cursor_line_fully_visible returns 0,
18603 go to try_to_scroll.
18604
18605 * buffer.c (Fbuffer_local_value): Store current value into its binding
18606 so we get the up-to-date value for the binding that is loaded.
18607
18608 * eval.c (Fdefmacro): Doc fix.
18609
186102002-07-05 Dave Love <fx@gnu.org>
18611
18612 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
18613 correctly.
18614
18615 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
18616 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
18617 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
18618 CCL_LookupCharConstTbl.
18619 (syms_of_ccl): Defvar translation-hash-table-vector.
18620
186212002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18622
18623 * xdisp.c: Remove unused variable `face'.
18624
186252002-07-04 Juanma Barranquero <lektu@terra.es>
18626
18627 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
18628 obsolescence information.
18629
186302002-07-03 Andrew Choi <akochoi@shaw.ca>
18631
18632 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
18633 pattern. Search cache first.
18634 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
18635 for Japanese font.
18636 (XLoadQueryFont): Use it.
18637
186382002-07-02 Richard M. Stallman <rms@gnu.org>
18639
18640 * keymap.c (Fdefine_key): Doc fix.
18641
18642 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
18643
186442002-07-02 Juanma Barranquero <lektu@terra.es>
18645
18646 * keymap.c (syms_of_keymap): Fix typo.
18647
186482002-07-01 Andrew Choi <akochoi@shaw.ca>
18649
18650 * s/darwin.h: Define POSIX_SIGNALS.
18651
18652 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
18653 and FSRefMakePath to convert FSSpec returned with Apple Event to
18654 Posix pathname.
18655 (mac_initialize) [TARGET_API_MAC_CARBON]:
18656 Call init_required_apple_events and disable the `Quit' menu item
18657 provided automatically by the Carbon Toolbox.
18658
186592002-07-01 Dave Love <fx@gnu.org>
18660
18661 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18662 for K&R.
18663
18664 * xterm.c: Fix prototype for K&R.
18665
18666 * term.c (costs_set): Declare static, non-initialized for pcc.
18667
186682002-07-01 Richard M. Stallman <rms@gnu.org>
18669
18670 * keyboard.c (timer_last_idleness_start_time): New variable.
18671 (timer_start_idle): Set that.
18672 (read_key_sequence): Use that to reset timer_idleness_start_time
18673 to previous value.
18674
18675 * window.c (Frecenter): With arg, set optional_new_start.
18676
18677 * xdisp.c (redisplay_internal): Make optional_new_start really work.
18678
18679 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
18680 buffer for completion.
18681
186822002-06-29 Ken Raeburn <raeburn@gnu.org>
18683
18684 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
18685
186862002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18687
18688 * keyboard.c (readable_filtered_events): New function that filters
18689 FOCUS_IN_EVENT depending on parameter.
18690 (readable_events): Calls readable_filtered_events, not filtering
18691 FOCUS_IN_EVENT.
18692 (get_filtered_input_pending): New function, filtering parameter passed
18693 to readable_filtered_events.
18694 (get_input_pending): Calls get_filtered_input_pending, not filtering
18695 FOCUS_IN_EVENT.
18696 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
18697 FOCUS_IN_EVENT.
18698
18699 * xterm.h (struct x_output): Add focus_state.
18700
18701 * xterm.c (x_focus_changed): New function.
18702 (x_detect_focus_change): New function.
18703 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
18704 EnterNotify and LeaveNotify to track X focus changes.
18705
187062002-06-28 Andreas Schwab <schwab@suse.de>
18707
18708 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
18709
187102002-06-27 Kim F. Storm <storm@cua.dk>
18711
52eb0373 18712 * xdisp.c (mode_line_string_list, mode_line_string_face)
048addec
JD
18713 (mode_line_string_face_prop): New variables.
18714 (store_mode_line_string): New function.
18715 (display_mode_element): Use store_mode_line_string to
18716 add mode-line string elements to mode_line_string_list
18717 when mode_line_string_list is non-nil.
18718 (Fformat_mode_line): Now returns propertized string by
18719 default. New arg NO-PROPS to ignore properties.
18720 (decode_mode_spec): Only add two dashes for %- in propertized
18721 mode-line string.
18722 (syms_of_xdisp): Init and staticpro mode_line_string_list.
18723
187242002-06-27 Stefan Monnier <monnier@cs.yale.edu>
18725
18726 * minibuf.c (minibuffer_completion_contents): Add return type.
18727
187282002-06-27 Juanma Barranquero <lektu@terra.es>
18729
18730 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
18731
187322002-06-26 Juanma Barranquero <lektu@terra.es>
18733
18734 * fileio.c (read_file_name_cleanup): Add missing return.
18735
187362002-06-26 Richard M. Stallman <rms@gnu.org>
18737
18738 * window.c (Frecenter): Don't set force_start flag.
18739
18740 * minibuf.c (do_completion, Fminibuffer_complete_word)
18741 (Fminibuffer_completion_help): Complete just the text before point.
18742 (minibuffer_completion_contents): New function.
18743
18744 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
18745
18746 * frame.c (frames_bury_buffer): Function deleted.
18747
187482002-06-25 Miles Bader <miles@gnu.org>
18749
18750 * callint.c (Fcall_interactively): When checking to see if doprnt hit
18751 the end of callint_message, allow for a terminating '\0'.
18752
187532002-06-24 Juanma Barranquero <lektu@terra.es>
18754
52eb0373 18755 * w32select.c: Include composite.h.
048addec
JD
18756
18757 * w16select.c: Likewise.
18758
187592002-06-24 Kenichi Handa <handa@etl.go.jp>
18760
18761 * callproc.c (Fcall_process): If code detection is necessary,
18762 call detect_coding directly here.
18763
18764 * coding.c (detect_eol): Preserve coding->cmp_data.
18765
18766 * w16select.c (Fw16_get_clipboard_data):
18767 * w32fns.c (w32_to_x_font):
18768 * w32select.c (Fw32_get_clipboard_data):
18769 * xselect.c (selection_data_to_lisp_data):
18770 * xterm.c (XTread_socket): Disable composition handling.
18771
187722002-06-24 Stefan Monnier <monnier@cs.yale.edu>
18773
18774 * print.c (temp_output_buffer_setup): Kill all local variables.
18775
187762002-06-22 Stefan Monnier <monnier@cs.yale.edu>
18777
18778 * lread.c (Fread): Remove redundant and imprecise declaration.
18779
18780 * xfns.c (check_x_display_info): Use check_x_frame.
18781
18782 * .gdbinit (xprintsym): Use the new `xname' field.
18783 (xsymbol): Use it.
18784
187852002-06-22 Jason Rumney <jasonr@gnu.org>
18786
18787 * w32fns.c (file_dialog_callback): New function.
18788 (Fx_file_dialog): Allow selecting directories as well as files.
18789
187902002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18791
18792 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 18793 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
18794
187952002-06-17 Andrew Choi <akochoi@shaw.ca>
18796
18797 * macterm.c (mac_scroll_area): Set foreground and backcolor to
18798 black and white before scrolling. Restore frame background and
18799 foreground color after scrolling.
18800 (do_window_update): Call XClearWindow before calling expose_frame.
18801 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
18802 FRAME_FOREGROUND_PIXEL of frame.
18803
18804 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
18805 test Mac command key as <ALT> key.
18806
188072002-06-17 Stefan Monnier <monnier@cs.yale.edu>
18808
18809 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
18810
18811 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
18812 Lookup keys in function-key-map immediately so that key-translation-map
18813 can be applied earlier.
18814 Remove function_key_possible and key_translation_possible, replaced
18815 by checking `keytran_start < t'.
18816
18817 * .gdbinit (xsymbol): Use the new `xname' field.
18818
188192002-06-17 Andrew Choi <akochoi@shaw.ca>
18820
18821 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
18822 test Mac command key as <ALT> key.
18823
18824 * mac.c (do_applescript): Call initialize_applescript if necessary
18825 when first called. Dispose of result_desc only when there is no error.
18826 (Fdo_applescript): Use %d format specifier instead of %ld.
18827
188282002-06-16 Andrew Choi <akochoi@shaw.ca>
18829
18830 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
18831 of FrontWindow for cases keyDown and autoKey.
18832
18833 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
18834 Vdefault_fontset to Monaco with mac-roman coding.
18835
18836 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
18837 init_process before and after inclusion of Carbon/Carbon.h, resp.
18838
18839 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
18840 cursor_gc.
18841 (add_font_name_table_entry): New function.
18842 (init_font_name_table): Use add_font_name_table_entry; add italic,
18843 bold, and bold-italic entries for truetype fonts.
18844
18845 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
18846 for Mac too.
18847 (try_font_list) [MAC_OS]: If no font matches given registry, try
18848 fonts with any registry matching face_family.
18849 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
18850
18851 * s/darwin.h: If autoconf detects the Ncurses library, define
18852 LIBS_TERMCAP to -lncurses to use it.
18853
188542002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
18855
18856 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
18857
188582002-06-15 Richard M. Stallman <rms@gnu.org>
18859
18860 * window.c (Fset_window_configuration): Explicitly preserve
18861 the point value that new_current_buffer had at the start.
18862
188632002-06-14 Juanma Barranquero <lektu@terra.es>
18864
18865 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
18866 Fix typos.
18867
188682002-06-14 Kim F. Storm <storm@cua.dk>
18869
18870 * insdel.c (insert_1_both, insert_from_string_1)
18871 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
18872 insert happened in the end_unchanged region. Otherwise, the
18873 redisplay may be confused and duplicate the last line in the
18874 buffer [seen after save-buffer when require-final-newline==t].
18875
188762002-06-13 Jason Rumney <jasonr@gnu.org>
18877
18878 * w32.c (init_environment): Remove EMACSLOCKDIR.
18879 (stat): Swap _S_IFDIR and _S_IFREG.
18880
188812002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18882
18883 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
18884 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
18885 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
18886 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
18887 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
18888 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
18889 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
18890 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
18891 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
18892 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
18893 SELECTION_REQUEST_EVENT, selection_clear_event to
18894 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
18895 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
18896 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
18897 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
18898 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
18899 no_event to NO_EVENT.
18900
189012002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18902
18903 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
18904
189052002-06-12 Stefan Monnier <monnier@cs.yale.edu>
18906
18907 * intervals.c (textget): Don't forget to `return'.
18908 (lookup_char_property): Use XCAR/XCDR.
18909
189102002-06-12 Juanma Barranquero <lektu@terra.es>
18911
18912 * xdisp.c (Fformat_mode_line): Fix typo.
18913
189142002-06-12 Kim F. Storm <storm@cua.dk>
18915
18916 * xdisp.c (Fformat_mode_line): New function.
18917 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
18918 (store_frame_title_char, store_frame_title): Use unconditionally.
18919 (init_xdisp): Defsubr Fformat_mode_line.
18920 Initialize frame_title_buf etc. unconditionally.
18921
189222002-06-11 Stefan Monnier <monnier@cs.yale.edu>
18923
18924 * keyboard.c (read_key_sequence):
18925 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
18926 things through those maps after downcasing events.
18927 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
18928 applies after function-key-map.
18929 Make sure that keytran can be done in the middle in the sequence.
18930 Be careful not to throw away events past the one we downcase.
18931
18932 * lread.c (read_integer): Remove unused var `tem'.
18933 (read1): Fix int/Lisp_Object mixup.
18934
18935 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
18936
189372002-06-11 Richard M. Stallman <rms@gnu.org>
18938
18939 * keyboard.c (readable_events): Ignore any number of
18940 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
18941
189422002-06-09 Miles Bader <miles@gnu.org>
18943
18944 * xfaces.c (Ftty_supports_face_attributes_p): New function.
18945 (parse_rgb_list, tty_lookup_color): New functions.
18946 (tty_defined_color): Use `tty_lookup_color' to do all the work.
18947 (color_distance, Fcolor_distance): New functions.
18948 (TTY_SAME_COLOR_THRESHOLD): New macro.
18949 (Qtty_color_standard_values): New variable.
18950 (syms_of_xfaces): Initialize new vars & functions.
18951
189522002-06-08 Colin Walters <walters@verbum.org>
18953
18954 * textprop.c (Vchar_property_alias_alist): New variable.
18955 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
18956
18957 * intervals.c (lookup_char_property): New function for looking up
18958 overlay and text properties, created from textget.
18959 (textget): Use it.
18960
18961 * intervals.h (lookup_char_property): Declare.
18962 (Vchar_property_alias_alist): Declare.
18963
18964 * buffer.c (Foverlay_get): Use lookup_char_property.
18965
189662002-06-07 Sam Steingold <sds@gnu.org>
18967
18968 * xselect.c (lisp_data_to_selection_data): Fix last change:
18969 *data_ret is not a Lisp string, while unibyte_string is.
18970
189712002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
18972
18973 * xselect.c (lisp_data_to_selection_data): Fix last change:
18974 set size_ret.
18975
189762002-06-07 Andreas Schwab <schwab@suse.de>
18977
18978 * m/amdx86-64.h: New file.
18979
189802002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
18981
18982 * fns.c (Fstring_make_unibyte): Doc fix.
18983
18984 * xselect.c (lisp_data_to_selection_data): If the requested type
18985 is STRING, call string_make_unibyte to encode the selected text
18986 as a string.
18987
18988 * window.c (Fset_window_hscroll): Doc fix.
18989
189902002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18991
18992 * fileio.c (choose_write_coding_system):
18993 Call select-safe-coding-system properly.
18994
189952002-06-03 Richard M. Stallman <rms@gnu.org>
18996
18997 * xdisp.c (message_with_string): Error if STRING is not a string.
18998
18999 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
19000
19001 * fileio.c (choose_write_coding_system): Pass FILE arg to
19002 Vselect_safe_coding_system_function.
19003
190042002-06-03 Ken Raeburn <raeburn@gnu.org>
19005
19006 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
19007
190082002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
19009
19010 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
19011 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
19012 * keymap.c (describe_command): Likewise.
19013 * minibuf.c (read_minibuf): Likewise.
19014
19015 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
19016 Cast `current_column' return value to int.
19017 (back_to_previous_visible_line_start)
19018 (reseat_at_next_visible_line_start, next_element_from_buffer):
19019 Cast `indented_beyond_p' 3rd arg to float.
19020
19021 * indent.c (last_known_column): Now a float.
19022 (current_column_1, position_indentation, current_column)
19023 (string_display_width): Return float.
19024 (Fcurrent_column): Cast `current_column' return value to int.
19025 (Fcurrent_indentation): Cast `position_indentation' retval to int.
19026 (indented_beyond_p): Third arg now a float.
19027 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
19028
19029 * lisp.h (current_column): Now returns float.
19030 (indented_beyond_p): 3rd arg now a float.
19031
190322002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
19033
19034 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
19035 is Qcompound_text_with_extensions.
19036
19037 * xselect.c (lisp_data_to_selection_data): Always set selection
19038 type as string if x_encode_text returns streingp non-NULL.
19039
19040 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
19041
190422002-05-30 Richard M. Stallman <rms@gnu.org>
19043
19044 * window.c (Fset_window_configuration): Correct the handling
19045 of point in current buffer, to work with multiple windows.
19046
190472002-05-29 Colin Walters <walters@verbum.org>
19048
19049 * lread.c (Fread_from_string): Don't depend on order of evaluation
19050 for C function parameters.
19051
190522002-05-28 Richard M. Stallman <rms@gnu.org>
19053
19054 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
19055 way for blinked-off state and for a nonselected window.
19056
19057 * window.c (window_scroll_pixel_based): Don't call Fbolp;
19058 instead, see if the new start pos is at beginning of line.
19059
19060 * fileio.c (Fwrite_region): If START is a string, don't
19061 make any annotations.
19062
19063 * eval.c (syms_of_eval): Doc fix.
19064
190652002-05-28 Colin Walters <walters@debian.org>
19066
19067 * emacs.c (USAGE1): Add --no-splash.
19068 (standard_args): Ditto.
19069
190702002-05-28 Colin Walters <walters@gnu.org>
19071
19072 * lread.c (readchar_count): New variable.
19073 (readchar): Increment it.
19074 (unreadchar): Decrement it.
19075 (read_multibyte): Decrement it.
19076 (Vread_with_symbol_positions): New variable.
19077 (Vread_symbol_positions_list): New variable.
19078 (read_internal_start): New function, created from Fread and
19079 Fread_from_string. Handle Vread_symbol_positions_list and
19080 Vread_with_symbol_positions.
19081 (readevalloop, Fread, Fread_from_string): Use it.
19082 (read1): Use readchar_count to add symbol positions to
19083 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
19084 (syms_of_lread): DEFVAR_LISP and initialize them.
19085
19086 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
19087 (substitute_object_recurse, substitute_object_in_subtree)
19088 (substitute_in_interval): Prototype.
19089 (read_multibyte): Return c if it's less than zero.
19090
190912002-05-28 Kim F. Storm <storm@cua.dk>
19092
19093 * fileio.c (Fread_file_name_internal): Added brute-force
19094 speed up for using predicate file-directory-p.
19095
190962002-05-28 Kim F. Storm <storm@cua.dk>
19097
19098 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
19099 New variables.
19100 (syms_of_fileio): DEFVAR_LISP them.
19101 (read_file_name_cleanup): New unwind function.
19102 (Fread_file_name_internal): Only return completions satifying
19103 Vread_file_name_predicate. Temporarily unwind protect and rebind
19104 default-directory while checking completions against the predicate.
19105 (Fread_file_name): Added PREDICATE argument. Specbind it to
19106 Vread_file_name_predicate during completion.
19107 Call Vread_file_name_function to read the file name if non-nil.
19108
19109 * lisp.h (Fread_file_name): Now has 6 args.
19110
19111 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
19112 predicate for Fread_file_name when reading directory name.
19113 Supply Qnil for predicate in other calls to Fread_file_name.
19114
191152002-05-26 Miles Bader <miles@gnu.org>
19116
19117 * term.c (tty_capable_p): New function.
19118 * dispextern.h (tty_capable_p): New function declaration.
19119 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
19120 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
19121
191222002-05-23 Stefan Monnier <monnier@cs.yale.edu>
19123
19124 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
19125 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
19126 (Vwrite_region_annotate_functions): Docstring fix.
19127
191282002-05-23 Kim F. Storm <storm@cua.dk>
19129
19130 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
19131 phys_cursor's hpos is overwritten. This is still not completely
19132 correct, as it doesn't really make sense to use hpos at all to
19133 get the cursor glyph (as that is relative to the width of the
19134 characters on the line, which may have changed during the update).
19135
191362002-05-22 Jason Rumney <jasonr@gnu.org>
19137
19138 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
19139 Lisp_Object.
19140 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
19141 Use modified enumfont_t struct.
19142
19143 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
19144
19145 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
19146 Handle the `hbar' cursor type.
19147 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
19148
19149 * w32fns.c (Qhbar): New variable.
19150 (x_specified_cursor_type): Use it.
19151
191522002-05-21 Ken Raeburn <raeburn@gnu.org>
19153
19154 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
19155 now, when the address is needed.
19156
191572002-05-21 Colin Walters <walters@gnu.org>
19158
19159 * Makefile.in (shortlisp): Add font-core.el.
19160
191612002-05-20 Richard M. Stallman <rms@gnu.org>
19162
19163 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
19164
19165 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
19166 equivalent key bindings here.
19167
191682002-05-20 Ken Raeburn <raeburn@gnu.org>
19169
19170 Change symbol structure to contain a lisp object for the symbol
19171 name:
19172 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
19173 object field named "xname".
19174 (SYMBOL_NAME): New macro.
19175 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
19176 name field.
19177 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
19178 (mark_object, gc_sweep): Use symbol xname field and XSTRING
19179 instead of name field.
19180 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
19181 SYMBOL_NAME instead of XSYMBOL and name field.
19182 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
19183 instead of XSYMBOL and name field.
19184 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
19185 and SYMBOL_NAME instead of XSYMBOL and name field.
19186 * coding.c (Fread_coding_system, code_convert_region1)
19187 (code_convert_string1, code_convert_string_norecord)
19188 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
19189 XSYMBOL and name field.
19190 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
19191 (Fmake_variable_buffer_local, Fmake_local_variable)
19192 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
19193 of XSYMBOL and name field.
19194 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
19195 XSYMBOL and name field.
19196 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
19197 instead of XSYMBOL and name field.
19198 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
19199 XSYMBOL and name field.
19200 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
19201 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19202 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
19203 instead of XSYMBOL and name field.
19204 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
19205 (parse_modifiers, apply_modifiers, Fevent_convert_list)
19206 (parse_solitary_modifier, Fexecute_extended_command):
19207 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19208 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
19209 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
19210 of XSYMBOL and name field.
19211 (describe_command, describe_translation): Use SYMBOL_NAME and
19212 assignment instead of XSYMBOL and name field and XSETSTRING.
19213 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
19214 instead of XSYMBOL and name field.
19215 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
19216 name field and XSETSTRING.
19217 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
19218 of XSYMBOL and name field.
19219 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
19220 assignment instead of XSYMBOL and name field and XSETSTRING.
19221 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
19222 XSTRING instead of XSYMBOL and name field.
19223 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
19224 and XSTRING instead of XSYMBOL and name field.
19225 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
19226 and XSTRING instead of XSYMBOL and name field.
19227 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
19228 XSTRING instead of XSYMBOL and name field.
19229 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
19230 of XSYMBOL and name field.
19231 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
19232 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19233
192342002-05-19 Ken Raeburn <raeburn@gnu.org>
19235
19236 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
19237 and XCDR real rvalues in most configurations.
19238
19239 * buffer.c (fix_overlays_in_range, fix_overlays_before):
19240 Don't take the address of the cdr part of a cons cell; instead, track
19241 the parent cell and call XSETCDR, or set the variable for the head
19242 of the list if we haven't started down the list yet.
19243
192442002-05-19 Richard M. Stallman <rms@gnu.org>
19245
19246 * doc.c (reread_doc_file): Don't ask for confirmation.
19247
192482002-05-18 Jason Rumney <jasonr@gnu.org>
19249
19250 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
19251 (xbm_load_image): Use it.
19252 (xbm_load): Ditto.
19253 (xbm_read_bitmap_data): Reverted to xfns.c version.
19254 From David Ponce <david@dponce.com>.
19255
192562002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
19257
19258 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
19259 2.02 and later.
19260
192612002-05-16 Juanma Barranquero <lektu@terra.es>
19262
19263 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
19264
192652002-05-15 Stefan Monnier <monnier@cs.yale.edu>
19266
19267 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
19268 meaningful test.
19269 (read_char_minibuf_menu_prompt): Fix typo.
19270
192712002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
19272
19273 * eval.c (Fcommandp): Doc fix.
19274
192752002-05-13 Stefan Monnier <monnier@cs.yale.edu>
19276
19277 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
19278 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
19279 (Fset_keymap_parent): Gcpro a bit more.
19280 (access_keymap): Gcpro around meta_map call and around the main loop.
19281 (get_keyelt): Gcpro when following indirect references.
19282 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
19283 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
19284 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
19285 Remove useless ad-hoc remap code.
19286
192872002-05-13 Richard M. Stallman <rms@gnu.org>
19288
19289 * search.c (search_buffer): Give up boyer moore search if inverse
19290 translation change charset_base.
19291
192922002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
19293
19294 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
19295 characters is carried over from the previous block of text, adjust
19296 coding->produced to account for the extra character.
19297
192982002-05-11 Andreas Schwab <schwab@suse.de>
19299
19300 * coding.c (intersection): Keep the elements of the returned list
19301 in the same order as in the first list.
19302
193032002-05-11 Kim F. Storm <storm@cua.dk>
19304
3419757d 19305 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
19306 only update cmm_size if realloc actually succeeds.
19307 Testing with initial size of 2 elements revealed that using
19308 realloc on GNU/Linux would cause a random trap in xmalloc
19309 later on, so I rewrote the code to use malloc/bcopy/free instead
19310 of realloc.
19311
193122002-05-10 Jason Rumney <jasonr@gnu.org>
19313
19314 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
19315
193162002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
19317
19318 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
19319 parens, to ensure correct evaluation order.
19320
193212002-05-10 Kim F. Storm <storm@cua.dk>
19322
19323 * keymap.c (Vemulation_mode_map_alists): New variable.
19324 (syms_of_keymap): DEFVAR_LISP it.
19325 (current_minor_maps): Process keymap alists in that list before
19326 minor-mode-overriding-map-alist and minor-mode-map-alist.
19327
193282002-05-09 Richard M. Stallman <rms@gnu.org>
19329
19330 * search.c (Freplace_match): Doc fix.
19331
193322002-05-09 Kim F. Storm <storm@cua.dk>
19333
19334 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
19335 Enlarge cursor rectangle drawn around image with non-zero relief.
19336
19337 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
19338 Enlarge cursor rectangle drawn around image with non-zero relief.
19339
19340 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
19341 Enlarge cursor rectangle drawn around image with non-zero relief.
19342
193432002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
19344
19345 * xselect.c (lisp_data_to_selection_data): Don't set selection
19346 type if comes from the Lisp object's car. If the selection
19347 contains a pure ASCII text, always return QSTRING as its type.
19348
193492002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19350
19351 * mac.c (mac-cut-function): Doc fix.
19352
193532002-05-05 Richard M. Stallman <rms@gnu.org>
19354
19355 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
19356
193572002-05-04 Jason Rumney <jasonr@gnu.org>
19358
19359 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
19360 for event-click-count.
19361
19362 * process.c (init_process): Only add server subfeature if we can
19363 use non-blocking I/O.
19364
193652002-05-04 Andrew Choi <akochoi@shaw.ca>
19366
19367 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
19368 repeatedly.
19369
193702002-05-03 Jason Rumney <jasonr@gnu.org>
19371
19372 * process.c (Fmake_network_process): Only support server sockets
19373 when we can make them non-blocking.
19374
19375 * s/ms-w32.h (HAVE_SELECT): Define.
19376
19377 * w32.h (FILE_NDELAY): New flag.
19378
19379 * w32.c (sys_getpeername, fcntl): New functions.
19380 (_sys_read_ahead): Temporarily block on non-blocking sockets.
19381
2d4713aa 19382 * w32proc.c: Include sys/file.h.
048addec
JD
19383
193842002-05-03 Colin Walters <walters@verbum.org>
19385
19386 * callproc.c (Vgame_score_directory): Renamed to
19387 Vshared_game_score_directory.
19388
193892002-04-30 Richard M. Stallman <rms@gnu.org>
19390
19391 * s/gnu.h [emacs]: Include stdio.h.
19392 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
19393
19394 * eval.c (do_autoload): Error if called while preparing to dump.
19395
19396 * fns.c (Frequire): Error if need to load while preparing to dump.
19397
193982002-04-28 Colin Walters <walters@verbum.org>
19399
19400 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
19401 Default to "~/.emacs.d/games".
19402
194032002-04-29 Stefan Monnier <monnier@cs.yale.edu>
19404
19405 * lread.c (openp): Change arg exec_only to predicate.
19406 (build_load_history): Use XCAR/XCDR.
19407 (Flocate_file_internal): New fun.
19408 (syms_of_lread): Defsubr it.
19409 (Fload): Update call to openp.
19410
19411 * lisp.h (openp): Update prototype.
19412
19413 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
19414 * w32proc.c (sys_spawnve):
19415 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
19416 * w32.c (check_windows_init_file):
19417 * sound.c (Fplay_sound_internal):
19418 * process.c (Fstart_process):
19419 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
19420 * mac.c (run_mac_command):
19421 * emacs.c (init_cmdargs):
19422 * callproc.c (Fcall_process): Update call to openp.
19423
19424 * textprop.c (remove_properties): Don't use XCAR without CONSP.
19425
19426 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
19427
194282002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19429
19430 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
19431 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
19432
194332002-04-28 Richard M. Stallman <rms@gnu.org>
19434
19435 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
19436
19437 * eval.c (Fcommandp): New arg for_call_interactively.
19438 * lisp.h (Fcommandp): Declare new arg.
19439
194402002-04-28 Jason Rumney <jasonr@gnu.org>
19441
19442 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
19443
19444 * w32.c (stat, fstat): Use file index information to generate
19445 inodes for directories where available.
19446
194472002-04-26 Andrew Choi <akochoi@shaw.ca>
19448
19449 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
19450 [HAVE_CARBON]: Include Mac object files.
19451
19452 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
19453 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
19454 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
19455 MAC_OSX, and MAC_OS instead of macintosh.
19456
19457 * editfns.c [MAC_OS8]: Include stdio.h.
19458
19459 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
19460
19461 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
19462 Apple Monaco.
19463
78819ebb 19464 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
19465 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
19466 calling select.
19467
19468 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
19469
19470 * tparam.c [MAC_OSX]: Don't define BC and UP.
19471
19472 * config.in [HAVE_CARBON]: Add.
19473
19474 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
19475 Move here from mac/src and mac/inc.
19476
19477 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
19478
194792002-04-26 Gerd Moellmann <gerd@gnu.org>
19480
19481 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
19482 Compute phys_cursor_width from the x position returned
19483 by x_draw_glyhs, which is cheaper.
19484 (x_display_and_set_cursor): Compute the buffer-local value
19485 of `cursor-in-non-selected-windows' only when needed.
19486
194872002-04-25 Gerd Moellmann <gerd@gnu.org>
19488
19489 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
19490 cursor on a stretch glyph has a width that depends on
19491 x_stretch_cursor_p.
19492
194932002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19494
19495 * abbrev.c (abbrev-start-location): Doc fix.
19496
19497 * indent.c (Fvertical_motion): Fix last change.
19498
194992002-04-25 Gerd Moellmann <gerd@gnu.org>
19500
19501 * indent.c (Fvertical_motion): Move to the start of the line
19502 containing PT before moving up or down.
19503
195042002-04-24 Gerd Moellmann <gerd@gnu.org>
19505
19506 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
19507 case of writing a whole row, more or less analogous to the case of
19508 writing only parts of a row.
19509
19510 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
19511 0 for NO_CURSOR.
19512
19513 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
19514
195152002-04-23 Colin Walters <walters@verbum.org>
19516
19517 * buffer.c (syms_of_buffer): Doc fix.
19518
195192002-04-23 Gerd Moellmann <gerd@gnu.org>
19520
19521 * xterm.c (notice_overwritten_cursor): Handle the special case
19522 of the cursor being in the first blank non-text line at the
19523 end of a window.
19524
19525 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
19526 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
19527 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
19528 bar cursors only, to make phys_cursor_width contain what its name
19529 suggests.
19530 (notice_overwritten_cursor): Consider the cursor image erased if
19531 the output area intersects the cursor image in y-direction.
19532
195332002-04-23 Simon Marshall <simon@gnu.org>
19534
19535 * xfns.c (x_set_mouse_color): Change default for cross_cursor
19536 to XC_hand2.
19537
195382002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19539
19540 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
19541
195422002-04-22 Kim F. Storm <storm@cua.dk>
19543
19544 * textprop.c (remove_properties): Fixed trap for malformed plist.
19545
195462002-04-22 Richard M. Stallman <rms@gnu.org>
19547
19548 * cmds.c (Fend_of_line): Handle intangible text in mid line.
19549
19550 * window.c (make_window): Initialize height_fixed_p,
19551 last_cursor_off_p, and p->cursor_off_p slots.
19552
195532002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19554
19555 * fns.c (use-dialog-box): Doc fix.
19556
195572002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19558
19559 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
19560 variables `row', `i' and `area'.
19561 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
19562 toolkit library.
19563
195642002-04-19 Stefan Monnier <monnier@cs.yale.edu>
19565
19566 * xfaces.c (clear_font_table): Don't free the default font of
19567 a frame even if it's on another display.
19568 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
19569 that could be Qt.
19570
195712002-04-19 Juanma Barranquero <lektu@terra.es>
19572
19573 * indent.c (Fmove_to_column): Remove unused local variable
19574 `next_boundary_byte'.
19575 (current_column_1): Likewise.
19576
195772002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
19578
19579 * msdos.c (Qhbar): New variable.
19580 (syms_of_msdos): Intern and staticpro it.
19581 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
19582 cursor type.
19583
195842002-04-19 Dave Lambert <dlambert@acm.org>
19585
19586 Theses change implement an underscore-like (`hbar') cursor.
19587
19588 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
19589
19590 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
19591 Handle the `hbar' cursor type.
19592 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
19593
19594 * xfns.c (Qhbar): New variable.
19595 (syms_of_xfns): Intern and staticpro it.
19596 (x_specified_cursor_type): Handle `hbar' cursor.
19597
19598 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
19599 not defined.
19600
196012002-04-18 Richard M. Stallman <rms@gnu.org>
19602
19603 * textprop.c (remove_properties): New arg LIST allows scanning
19604 either a list or a plist.
19605 (interval_has_some_properties_list): New function, like
19606 interval_has_some_properties using list instead of plist.
19607 All callers changed.
19608 (Fremove_list_of_text_properties): New function.
19609 (syms_of_textprop): Defsubr it.
19610
196112002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
19612
19613 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
19614
196152002-04-17 Juanma Barranquero <lektu@terra.es>
19616
19617 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
19618
196192002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
19620
19621 * window.c (coordinates_in_window): Don't report on margin area
19622 if its width is zero.
19623
196242002-04-16 Jason Rumney <jasonr@gnu.org>
19625
19626 * w32fns.c (Fx_file_dialog): Decode file name before using.
19627
19628 * w32term.c (construct_drag_n_drop): Likewise.
19629
196302002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
19631
19632 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
19633 store load-history in pure space.
19634
19635 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
19636
196372002-04-16 Stefan Monnier <monnier@cs.yale.edu>
19638
19639 * xterm.c (Qlatin_1, Qutf_8): New vars.
19640 (syms_of_xterm): Initialize them.
19641 (XTread_socket): Eliminate incorrect optimization that tried to avoid
19642 decoding the output of X*LookupString.
19643 Always use latin-1 to decode the output of XLookupString.
19644 Try Xutf8LookupString if XmbLookupString failed.
19645
19646 * region-cache.c (new_region_cache): Use BEG.
19647
196482002-04-16 Gerd Moellmann <gerd@gnu.org>
19649
19650 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
19651 configuration files.
19652 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
19653 returns 0.
19654
196552002-04-15 Andreas Schwab <schwab@suse.de>
19656
19657 * config.in: Regenerated using autoheader.
19658
19659 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
19660 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
19661 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
19662 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
19663 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
19664 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
19665 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
19666 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
19667 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
19668 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
19669 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
19670 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
19671 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
19672 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
19673 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
19674 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
19675 STACK_DIRECTION, now set by autoconf.
19676
196772002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19678
19679 * dispnew.c (marginal_area_string): Sort arguments.
19680
19681 * dispextern.h (marginal_area_string): Add prototype.
19682
196832002-04-13 Richard M. Stallman <rms@gnu.org>
19684
19685 * fileio.c (Finsert_file_contents):
19686 Don't call temp_output_buffer_setup--do just part, by hand.
19687
19688 * coding.c (run_pre_post_conversion_on_str):
19689 Don't call temp_output_buffer_setup--do just part, by hand.
19690
19691 * keyboard.c (command_loop_1): Don't call start_hourglass
19692 or cancel_hourglass when executing a macro.
19693
19694 * marker.c (count_markers): New function.
19695
19696 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
19697 grow without limit. Move recently used elements to the front.
19698
196992002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
19700
19701 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
19702
197032002-04-12 Gerd Moellmann <gerd@gnu.org>
19704
19705 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
19706 rows marginal areas.
19707 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
19708 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
19709
19710 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
19711
197122002-04-12 Dave Love <fx@gnu.org>
19713
19714 * dispnew.c (marginal_area_string): New.
19715
19716 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
19717 (Qleft_margin, Qright_margin): Declare.
19718 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
19719
19720 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
19721 note_mode_line_highlight and extended.
19722
19723 * keyboard.c (Qleft_margin, Qright_margin): Declare.
19724 (make_lispy_event): Deal with mouse events in margins.
19725
197262002-04-12 Stefan Monnier <monnier@cs.yale.edu>
19727
19728 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
19729
19730 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
19731 than deactivating the mark if tmm is set to `lambda'.
19732 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
19733 Use a single event for HELP_EVENT.
19734 (Fexecute_extended_command): Save last_point_position.
19735
197362002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19737
19738 * lisp.h (Fpropertize): Add prototype.
19739
19740 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
19741
197422002-04-10 Colin Walters <walters@verbum.org>
19743
19744 * config.in: Add HAVE_SHARED_GAME_DIR.
19745
52eb0373 19746 * callproc.c (Vgame_score_directory): New variable.
048addec
JD
19747 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
19748
197492002-04-10 Richard M. Stallman <rms@gnu.org>
19750
19751 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
19752
197532002-04-09 Stefan Monnier <monnier@cs.yale.edu>
19754
19755 * minibuf.c (read_minibuf): Use empty_string.
19756 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
19757 Short-circuit the search as soon as it "failed".
19758 (Fall_completions): Allow lambda forms and lists of strings for alist.
19759 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
19760 when require_match is nil.
19761 (Ftest_completion): Rename from `test_completion' and export to elisp.
19762 Call the predicate also when alist is a list.
19763 Obey Vcompletion_regexp_list.
19764 (do_completion, Fminibuffer_complete_and_exit): Use it.
19765 (Fassoc_string): Rename from `assoc_for_completion'.
19766 Allow list of strings as well and export to elisp.
19767
197682002-04-08 Stefan Monnier <monnier@cs.yale.edu>
19769
19770 * puresize.h (BASE_PURESIZE): Increase to 900KB.
19771
197722002-04-08 Juanma Barranquero <lektu@terra.es>
19773
19774 * w32.c (sys_accept): Don't hide variable `s'.
19775
197762002-04-05 Gerd Moellmann <gerd@gnu.org>
19777
19778 * callint.c (Fcall_interactively): Use INTEGERP instead of
19779 NUMBERP for checking Vhistory_length.
19780
197812002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19782
19783 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
19784 Doc fix to reflect it.
19785
197862002-04-04 Richard M. Stallman <rms@gnu.org>
19787
19788 * xdisp.c (display_mode_element): New arg RISKY.
19789 Disregard text props found or specified within a variable
19790 that isn't marked risky-local-variable.
19791 (Qrisky_local_variable): New variable.
19792 (syms_of_xdisp): Init and staticpro it.
19793
197942002-04-04 Stefan Monnier <monnier@cs.yale.edu>
19795
19796 * undo.c (record_point): New fun.
19797 (record_delete, record_insert): Use it.
19798
197992002-04-03 Juanma Barranquero <lektu@terra.es>
19800
19801 * doc.c (Fdocumentation): Add missing parentheses.
19802 (Fdocumentation_property): Likewise.
19803
198042002-04-03 Stefan Monnier <monnier@cs.yale.edu>
19805
19806 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
19807 data is 0, just return nil.
19808
198092002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
19810
19811 * msdos.c (syms_of_msdos): Fix last change with
19812 mouse_autoselect_window.
19813
198142002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19815
19816 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
19817 mouse_autoselect_window.
19818
198192002-04-02 Stefan Monnier <monnier@cs.yale.edu>
19820
19821 * keyboard.c (make_lispy_event): Handle unknown keysyms together
19822 with system-specific keysyms. Use it also for unknown function keys.
19823
19824 * doc.c (reread_doc_file): Return whether reload was attempted.
19825 (Fdocumentation, Fdocumentation_property): Don't try to reload
19826 if the doc is 0 and only ask once.
19827
19828 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
19829
198302002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
19831
19832 * keyboard.c (read_char): If the event was Qselect_window,
19833 restore timer_idleness_start_time to its previous value.
19834
19835 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
19836
198372002-04-01 Stefan Monnier <monnier@cs.yale.edu>
19838
19839 * region-cache.c (new_region_cache): Use BEG.
19840
19841 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
19842 Use BEG and BEG_BYTE.
19843
19844 * doc.c (get_doc_string): Return nil if the location is wrong.
19845 (reread_doc_file): New fun.
19846 (Fdocumentation, Fdocumentation_property):
19847 Call it if get_doc_string fails.
19848 (Fsnarf_documentation): Make it work for a dumped Emacs.
19849
19850 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
19851 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
19852
19853 * charset.c (Fstring): Allow 0 arguments.
19854
19855 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
19856
19857 * process.c (DATAGRAM_CONN_P, list_processes_1)
19858 (Fprocess_datagram_address, Fset_process_datagram_address)
19859 (Fset_network_process_options, server_accept_connection):
19860 Fix some int/Lisp_Object confusions (thank you union types).
19861
198622002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19863
19864 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
19865
19866 * w32term.c: Likewise.
19867 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
19868
19869 * keyboard.c (Qselect_window): New symbol.
19870 (head_table): Use it.
19871 (keys_of_keyboard): Bound select-window event to handle-select-window.
19872 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
19873
19874 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
19875 (last_window): New variable.
19876 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
19877 (note_mouse_movement): Remove reimplemented code in #if 0.
19878 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
19879 Emacs windows.
19880
19881 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
19882
198832002-03-31 Gerd Moellmann <gerd@gnu.org>
19884
19885 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
19886 Callers changed.
19887
198882002-03-30 Richard M. Stallman <rms@gnu.org>
19889
19890 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
19891 loop whenever it stops making progress.
19892
19893 * widget.c (set_frame_size): Don't call change_frame_size.
19894
198952002-03-30 Gerd Moellmann <gerd@gnu.org>
19896
19897 * dispnew.c (direct_output_for_insert):
19898 Call mark_window_display_accurate.
19899
199002002-03-29 Jason Rumney <jasonr@gnu.org>
19901
19902 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
19903
199042002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
19905
19906 * Makefile.in (lread.o): Depend on coding.h.
19907
19908 * lread.c (openp, Fload): Encode the file name before passing it
19909 to `stat', `access', and `emacs_open'.
19910 (openp): GCPRO the encoded file name. Don't recompute Lisp
19911 strings unnecessarily.
19912
199132002-03-29 Kim F. Storm <storm@cua.dk>
19914
19915 * fns.c (Flax_plist_put): Doc fix.
19916
199172002-03-28 Miles Bader <miles@gnu.org>
19918
19919 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
19920
199212002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19922
19923 * process.c (set-network-process-options): Add usage.
19924 (make-network-process): Doc fix.
19925
199262002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
19927
19928 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
19929
199302002-03-26 Richard M. Stallman <rms@gnu.org>
19931
19932 * fns.c (Fsubstring_no_properties): New function.
19933 (Flax_plist_get, Flax_plist_put): New functions.
19934 (syms_of_fns): defsubr them.
19935
19936 * xdisp.c (update_menu_bar): Test only update_mode_lines;
19937 don't test or alter w->update_mode_line.
19938
19939 * window.c (Fdisplay_buffer): Doc fix.
19940
199412002-03-24 Richard M. Stallman <rms@gnu.org>
19942
19943 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
19944
199452002-03-24 Gerd Moellmann <gerd@gnu.org>
19946
19947 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
19948 (Fdefmacro): Handle `(declare ...)'.
19949 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
19950 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
19951
199522002-03-24 Jason Rumney <jasonr@gnu.org>
19953
19954 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
19955 (xbm_file_p): Add prototypes.
19956 (xbm_format, xbm_image_p): Sync with xfns.c.
19957 (reflect_byte): New function.
19958 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
19959 (xbm_load_image): Create bitmaps with a depth of 1.
19960 (init_xfns): Enable XBM images.
19961
199622002-03-23 Jason Rumney <jasonr@gnu.org>
19963
19964 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
19965 correctly. Do not pass up_modifier to keyboard buffer.
19966
19967 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
19968
199692002-03-22 Stefan Monnier <monnier@cs.yale.edu>
19970
19971 * Makefile.in (bootstrapclean): New target.
19972 (bootstrap-temacs, bootstrap-doc): Remove.
19973 (bootstrap-emacs): Use a bog-standard `temacs'.
19974 Don't bother to build a DOC file.
19975
19976 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
19977
19978 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
19979 in temacs even if !CANNOT_DUMP.
19980 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
19981
19982 * alloc.c (check_pure_size): Only output a warning.
19983
199842002-03-22 Jason Rumney <jasonr@gnu.org>
19985
19986 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
19987 supported.
19988
19989 * w32term.c (zv_bits): Declare as short, for word alignment.
19990 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
19991 (syms_of_w32term): Define x-use-underline-position-properties.
19992
19993 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
19994 (clear_image_cache): Block input, fix logic, clear matrices in
19995 all frames that share this cache.
19996
199972002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
19998
19999 * emacs.c (main): Update the Copyright year in the blurb printed
20000 by "emacs --version".
20001
20002 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
20003
20004 * xterm.c (XTread_socket): If XK_ISO_Lock and
20005 XK_ISO_Last_Group_Lock are defined, handle keysyms between
20006 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
20007
200082002-03-21 Kim F. Storm <storm@cua.dk>
20009
20010 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
20011 menu-bar bindings in keymap and local-map properties _are_ used.
20012 But try keymap property first in accordance with 2002-01-03 patch.
20013 Added comment describing why this is not always reliable.
20014 (tool_bar_items): Ditto for tool-bar.
20015
200162002-03-21 Jason Rumney <jasonr@gnu.org>
20017
20018 * w32fns.c (x_clear_image_1): Disable color table code.
20019
200202002-03-21 Kim F. Storm <storm@cua.dk>
20021
20022 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
20023 removed the wrong version of the DEFUN macro; fixed it.
20024
20025 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
20026 Fmember rather than Fmemq).
20027 (Fprovide): Check that subfeatures is a list.
20028
20029 * process.c (QCfeature, QCdatagram): Removed variables.
20030 (QCtype, Qdatagram): New variables.
20031 (network_process_featurep): Removed function.
20032 (Fmake_network_process): Removed :feature check.
20033 Use :type 'datagram instead of :datagram t to create a datagram
20034 socket. This allows us to add other connection types (e.g. raw
20035 sockets) later in a consistent manner.
20036 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
20037 supported subfeatures for feature make-network-process.
20038 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
20039 Intern and staticpro QCtype and Qdatagram.
20040 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
20041
9dd28cae 20042 * xfns.c (QCtype): Remove duplicate declaration and
048addec
JD
20043 initialization (is now declared in process.c).
20044
9dd28cae 20045 * w32fns.c (QCtype): Remove duplicate declaration and
048addec
JD
20046 initialization (is now declared in process.c).
20047
200482002-03-21 Richard M. Stallman <rms@gnu.org>
20049
20050 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
20051 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
20052 when jumping to `fail' to avoid undoing reg changes in the
20053 last iteration of the loop.
20054 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
20055
20056 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
20057 Depend on process.h.
20058
200592002-03-20 Jason Rumney <jasonr@gnu.org>
20060
20061 Most of the following changes are still conditional on HAVE_IMAGES
20062 which is not set by default on Windows.
20063
20064 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
20065
20066 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
20067 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
20068 (four_corners_best, x_clear_image_1, x_clear_image)
20069 (x_alloc_image_color, postprocess_image)
20070 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
20071 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
20072 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
20073
20074 * w32gui.h (struct XImage): Define.
20075
20076 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
20077 extract mouse co-ordinates.
20078
200792002-03-20 Jason Rumney <jasonr@gnu.org>
20080
20081 * w32.c (init_winsock): Dynamically load new server and UDP
20082 socket functions.
20083 (socket_to_fd): New function.
20084 (sys_socket): Use it.
20085 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
20086 (sys_recvfrom, sys_sendto): New wrapper functions.
20087
20088 * process.c (QCfamily, QCfilter): Remove duplicate declaration
20089 and initialization.
20090
20091 * makefile.w32-in (LIBS): Remove $(WSOCK32).
20092
200932002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
20094
20095 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
20096 Don't use "sun" as a variable, it's a predefined constant on Sun
20097 machines.
20098
200992002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20100
20101 * bytecode.c (Fbyte_code): Revert last change.
20102
201032002-03-19 Kim F. Storm <storm@cua.dk>
20104
20105 * makefile.w32-in (LIBS): Add $(WSOCK32).
20106 From David Ponce <dponce@voila.fr>.
20107
201082002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20109
20110 * process.c (wait_reading_process_input): Move variables `pname'
20111 and `pnamelen' down where they are used.
20112
20113 * bytecode.c (Fbyte_code): Discard unused computed value to
20114 prevent gcc warning.
20115
20116 * lisp.h (Fplist_member): Add prototype.
20117
201182002-03-18 Kim F. Storm <storm@cua.dk>
20119
20120 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
20121 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
20122
20123 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
20124 Remove explicit GNU_LINUX settings for datagram support.
20125
201262002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20127
20128 * process.c (Fmake_network_process): Remove unused variable `sa'.
20129 Doc fix. Add usage:.
20130 (set_socket_options): Remove unused variables `optnum' and `opttype'.
20131
201322002-03-17 Richard M. Stallman <rms@gnu.org>
20133
20134 * xdisp.c (cursor_type_changed): New variable.
20135 (redisplay_internal): Redisplay all windows if cursor_type_changed.
20136 Clear it when clearing windows_or_buffers_changed.
20137 (try_cursor_movement, redisplay_window, try_window_id)
20138 (try_window_reusing_current_matrix): Test cursor_type_changed
20139 along with windows_or_buffers_changed.
20140
20141 * window.h (cursor_type_changed): New variable.
20142
20143 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
20144 not update_mode_lines, and always set it to 1.
20145
20146 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
20147 if no frames needed redrawing.
20148
201492002-03-17 Kim F. Storm <storm@cua.dk>
20150
20151 The following changes add support for network server processes,
20152 datagram connections, and local (unix) sockets.
20153
20154 * process.h (struct Lisp_Process): New member log.
20155 Doc fix: Member command used to indicate stopped network process.
20156 Doc fix: Member childp contains plist for network process.
20157 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
20158
20159 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
9dd28cae 20160 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
048addec
JD
20161 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
20162 New variables.
20163 (NETCONN1_P): New macro.
20164 (DATAGRAM_SOCKETS): New conditional symbol.
20165 (datagram_address): New array.
20166 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
20167 (status_message): Use concat3.
20168 (Fprocess_status): Add `listen' status to doc string. Return `stop'
20169 for a stopped network process.
20170 (Fset_process_buffer): Update contact plist for network process.
20171 (Fset_process_filter): Ditto. Don't enable input for stopped
20172 network processes. Server must listen, even if filter is t.
20173 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
20174 New functions.
20175 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
20176 (Fprocess_contact): Added KEY argument. Handle datagrams.
20177 (list_processes_1): Optionally show only processes with the query
20178 on exit flag set. Dynamically adjust column widths. Omit tty
20179 column if not needed. Report stopped network processes.
20180 Identify server and datagram network processes.
20181 (Flist_processes): New optional arg `query-only'.
20182 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
20183 (conv_lisp_to_sockaddr, set_socket_options)
20184 (network_process_featurep, unwind_request_sigio): New helper functions.
20185 (Fprocess_datagram_address, Fset_process_datagram_address):
20186 (Fset_network_process_options): New lisp functions.
20187 (Fopen_network_stream): Removed. Now defined in simple.el.
20188 (Fmake_network_process): New lisp function. Code is based on previous
20189 Fopen_network_stream, but heavily reworked with new property list based
20190 argument list, support for datagrams, server processes, and local
20191 sockets in addition to old client-only functionality.
20192 (server_accept_connection): New function.
20193 (wait_reading_process_input): Use it to handle incoming connects.
20194 Do not enable input on a new connection if process is stopped.
f63fd14e 20195 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
20196 (send_process): Handle datagram sockets.
20197 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
20198 network process is indicated by setting command field to t .
20199 (Fprocess_send_eof): No-op if datagram connection.
20200 (Fstatus_notify): Don't read input for a stream server socket or a
20201 stopped network process.
20202 (init_process): Initialize datagram_address array.
20203 (syms_of_process): Intern and staticpro new variables, defsubr new
20204 functions.
20205
202062002-03-16 Jason Rumney <jasonr@gnu.org>
20207
20208 * w32fns.c (w32_to_all_x_charsets): Return correct type in
20209 startup case.
20210
202112002-03-16 Richard M. Stallman <rms@gnu.org>
20212
20213 * xdisp.c (redisplay_internal, redisplay_windows):
20214 Use list_of_error to call internal_condition_case_1.
20215 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
20216 so as to catch all errors with no possibility of debugger redisplay.
20217 (list_of_error): New variable.
20218 (syms_of_xdisp): Init and staticpro it.
20219
20220 * print.c (print_object): Delete `\ ' from printed rep of frame.
20221
202222002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
20223
20224 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
20225 until its implementation is fixed.
20226
202272002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20228
20229 * xfns.c (png_load): Remove unused variable `gamma_str'.
20230
202312002-03-14 Richard M. Stallman <rms@gnu.org>
20232
20233 * xfns.c (x_real_positions): Handle failure in XQueryTree.
20234
202352002-03-14 Miles Bader <miles@gnu.org>
20236
20237 * intervals.c (adjust_for_invis_intang): New function.
20238 (set_point_both): Use `adjust_for_invis_intang' to do most of the
20239 work for dealing with invisible+intangible regions. Do so before
20240 and after both forward and backward movements, to handle both
20241 front-sticky and rear-sticky cases.
20242 * textprop.c (text_property_stickiness): Function moved here from
20243 `editfns.c'.
20244 * intervals.h (text_property_stickiness): New declaration.
20245 * editfns.c (char_property_eq): Function removed.
20246 (text_property_stickiness): Function moved to `textprop.c'.
20247
202482002-03-13 Jason Rumney <jasonr@gnu.org>
20249
20250 * config.in: Add STRFTIME_NO_POSIX2.
20251
20252 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
20253 and %OX when underlying strftime does not.
20254
202552002-03-13 Stefan Monnier <monnier@cs.yale.edu>
20256
20257 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
20258 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
20259 line) to avoid annoying flicker.
20260 (xm_scroll_callback): Get rid of the now unnecessary kludge.
20261 (XTread_socket): Mark it static.
20262
20263 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
20264
202652002-03-13 Kim F. Storm <storm@cua.dk>
20266
20267 * puresize.h (BASE_PURESIZE): Increase to 775000.
20268
202692002-03-12 Juanma Barranquero <lektu@terra.es>
20270
20271 * editfns.c (syms_of_editfns): Fix typo.
20272
202732002-03-12 Gerd Moellmann <gerd@gnu.org>
20274
20275 * xsmfns.c: Include stdio.h because termhooks.h needs it.
20276 Include termopt.h for interrupt_input.
20277
202782002-03-11 Andreas Schwab <schwab@suse.de>
20279
20280 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
20281
202822002-03-11 Gerd Moellmann <gerd@gnu.org>
20283
20284 * xterm.c (note_mouse_movement): Put code for
20285 x_autoselect_window_p in #if 0.
20286
20287 * lread.c (Fload): Don't assume that message_with_string uses the
20288 string it is given like a C string.
20289
202902002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20291
78819ebb 20292 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec 20293
52eb0373 20294 * xterm.c (XTread_socket): Add call to x_session_check_input and
048addec
JD
20295 x_session_have_connection.
20296 (x_initialize): Add call to x_session_initialize.
20297
20298 * termhooks.h (enum event_kind): Add save_session_event.
20299
20300 * keyboard.c: Add Emacs event save_session_event.
20301
20302 * emacs.c (main): Add call to syms_of_xsmfns.
20303
78819ebb 20304 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
20305
20306 * config.in: Add HAVE_X_SM.
20307
20308 * Makefile.in (LIBXT): Add -lSM -lICE
20309 if HAVE_X_SM and not USE_X_TOOLKIT.
20310 (XOBJ): New file xsmfns.c added.
20311
20312 * xsmfns.c: New file for X session management.
20313
203142002-03-09 Jason Rumney <jasonr@gnu.org>
20315
20316 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
20317 read-only when setting modified time.
20318
203192002-03-08 Gerd Moellmann <gerd@gnu.org>
20320
20321 * xdisp.c (move_it_vertically_backward): At the end of the function,
20322 when moving forward by lines, treat terminal frames specially.
20323
20324 * keyboard.c (echo_char): Make sure to add a separator between
20325 keys even if echo_dash hasn't been called.
20326
20327 * xdisp.c: Use new string macros.
20328 (update_echo_area): Pass number of bytes to message3 instead of
20329 number of chars.
20330 (set_message_1): Don't access a string's size_byte directly.
20331 (decode_mode_spec_coding): Use number of bytes of eoltype string
20332 instead number of chars.
20333
20334 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
20335
203362002-03-08 Juanma Barranquero <lektu@terra.es>
20337
20338 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
20339 24-bit.
20340
203412002-03-06 Jason Rumney <jasonr@gnu.org>
20342
20343 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
20344
203452002-03-06 Gerd Moellmann <gerd@gnu.org>
20346
20347 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
20348 (cancel_echoing, echo_length, echo_truncate): Changed to
20349 work with new kboard definition.
20350 (echo_now): Use message3_nolog instead of message2_nolog.
20351
20352 * alloc.c (mark_kboards): Mark echo_string.
20353
20354 * keyboard.h (ECHOBUFSIZE): Removed.
20355 (struct kboard): Member echoptr removed, member echobuf renamed
20356 to echo_string.
20357
20358 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
20359 message3 instead of message2 to display the message using STRING's
20360 text properties.
20361
203622002-03-05 Andreas Schwab <schwab@suse.de>
20363
20364 * xdisp.c (hscroll_margin): Change to EMACS_INT.
20365
203662002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
20367
20368 * frame.c (default-frame-alist): Explain that setting it doesn't
20369 affect existing frames.
20370
203712002-03-05 Stefan Monnier <monnier@cs.yale.edu>
20372
20373 * indent.c (skip_invisible): Fix my brain fart.
20374
20375 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
20376
203772002-03-04 Stefan Monnier <monnier@cs.yale.edu>
20378
20379 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
20380 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
20381 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
20382 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
20383 and variables to use EMACS_INT instead of just int.
20384
20385 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
20386
203872002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
20388
20389 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
20390 environment, pass it down with corrected value.
20391
203922002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20393
20394 * lread.c (read_filtered_event): Do not call start_hourglass
20395 before returning.
20396
203972002-03-04 Juanma Barranquero <lektu@terra.es>
20398
20399 * w32term.c (x_display_and_set_cursor): Fix typo.
20400
204012002-03-03 Richard M. Stallman <rms@gnu.org>
20402
20403 * fileio.c (Fmake_temp_name): Doc fix.
20404
204052002-03-03 Gary Wong <gtw@gnu.org>
20406
20407 * termcap.c [!emacs]: Replace ospeed for building standalone
20408 libtermcap, for binary compatibility.
20409
20410 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
20411
204122002-03-03 Richard M. Stallman <rms@gnu.org>
20413
20414 * xrdb.c (file_p): Rename arg `path' to `filename'.
20415
20416 * abbrev.c (Fexpand_abbrev): Increment plist as use count
20417 only if it is an integer.
20418
20419 * xfns.c (png_load): Set screen_gamma based on f->gamma.
20420 If png_get_sRGB gives an answer, call png_set_gamma
20421 using the default image gamma value.
20422
20423 * lread.c (read1): When reading from a file, default string to
20424 multibyte only if it has some multibyte characters.
20425
20426 * print.c (print_object): Output multibyte chars 128...255
20427 using \x even if ! print_escape_multibyte.
20428
20429 * xdisp.c (display_mode_element): Move the places where
20430 bytepos, charpos, this, and lisp_string are set.
20431 Use lisp_string to set bytepos.
20432
20433 * xdisp.c (redisplay_internal):
20434 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
20435
20436 * xdisp.c (display_mode_element): Merge properties specified with
20437 :propertize onto those that come with the string.
20438
204392002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
20440
20441 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
20442 automatic-hscrolling. Users changed.
20443 <hscroll-margin>: Renamed from automatic-hscroll-margin.
20444 Users changed.
20445 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
20446
204472002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
20448
20449 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
20450
204512002-03-02 Kim F. Storm <storm@cua.dk>
20452
20453 * window.c (Fminibuffer_selected_window): New function.
20454 (syms_of_window): Defsubr it.
20455
204562002-03-01 Kim F. Storm <storm@cua.dk>
20457
20458 * window.h (struct window): New member phys_cursor_width.
20459
20460 * window.c (make_window, replace_window): Init phys_cursor_width.
20461
20462 * xterm.c (x_display_and_set_cursor): Blink box cursor using
20463 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
20464
20465 * w32term.c (x_display_and_set_cursor): Blink box cursor using
20466 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
20467
20468 * lisp.h (GCPRO6): New macro.
20469
20470 * process.c (Fopen_network_stream): Use GCPRO6.
20471
204722002-03-01 Kim F. Storm <storm@cua.dk>
20473
20474 * process.c (Qconnect, Qfailed): New variables.
20475 (syms_of_process): Intern and staticpro them.
20476 (Fprocess_status): Document connect and failed return values.
20477 [NON_BLOCKING_CONNECT]: New conditional.
20478 (connect_wait_mask, num_pending_connects): New variables.
20479 (status_message): Convert Qfailed status.
20480 (Fopen_network_stream): Added support for non-blocking connect.
20481 New optional args: filter, sentinel, non_blocking. Doc updated.
20482 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
20483 (deactivate_process): Handle pending non-blocking connect.
20484 (wait_reading_process_input): Poll for status of non-blocking
20485 connects. Exec sentinel directly when connect succeeds.
20486 (status_notify): Don't read process output if not yet connected.
20487
204882002-02-28 Kim F. Storm <storm@cua.dk>
20489
9dd28cae 20490 * window.c (minibuf_selected_window): Renamed from
048addec
JD
20491 Vminibuf_selected_window. Users changed.
20492 (syms_of_window): Staticpro it.
20493
204942002-02-26 Kim F. Storm <storm@cua.dk>
20495
20496 The following changes add a new Vminibuf_selected_window variable
20497 which is similar to Vminibuf_scroll_window, but which is only set
20498 on entry to the minibuffer (from a non-minibuffer window):
20499
9dd28cae 20500 * window.c (Vminibuf_selected_window): New variable.
048addec
JD
20501 (struct save_window_data): New member minibuf_selected_window.
20502 (Fset_window_configuration): Restore Vminibuf_selected_window.
20503 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
20504 Set minibuf_scroll_window member to nil if minibuf_level is 0.
20505 (compare_window_configurations): Compare minibuf_selected_window.
20506
9dd28cae 20507 * window.h (Vminibuf_selected_window): Declare extern.
048addec
JD
20508
20509 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
20510 entry to minibuffer or on entry from a non-minibuffer window.
20511
20512 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
20513 Vminibuf_selected_window instead of Vminibuf_scroll_window.
20514
20515 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
20516 instead of Vminibuf_scroll_window when deciding in which window
20517 the region should be highlighted. Consequently, the region remains
20518 highlighteded even when a completion buffer is also displayed.
20519
205202002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
20521
20522 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
20523
20524 * xselect.c (Qcompound_text_with_extensions): Renamed from
20525 Qcompound_text_no_extensions.
20526 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
20527
205282002-02-26 Juanma Barranquero <lektu@terra.es>
20529
20530 * w32proc.c (syms_of_ntproc): Doc fix.
20531
205322002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20533
20534 * intervals.h: Include "dispextern.h" unconditionally.
20535
205362002-02-24 Jason Rumney <jasonr@gnu.org>
20537
20538 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
20539 and disp-table.elc.
20540 (lisp): Add emacs-lisp/backquote.elc.
20541
205422002-02-24 Kim F. Storm <storm@cua.dk>
20543
3419757d 20544 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
20545 The validation of the event type was too strict as it didn't
20546 allow string events; buffer names are used in bindings for
20547 menu-bar-select-buffer (see `menu-bar-update-buffers').
20548
205492002-02-23 Kim F. Storm <storm@cua.dk>
20550
20551 The following changes rework my patch of 2002-02-06 which
20552 added command remapping by entering the commands directly into
20553 the keymaps. Now, command remapping uses an explicit `remap'
20554 prefix in the keymaps, i.e. [remap COMMAND].
20555
20556 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 20557 (is_command_symbol): Remove function.
048addec
JD
20558 (Fdefine_key): No longer accept a symbol for KEY.
20559 Added validation of [remap COMMAND] argument for KEY.
20560 The DEF is no longer required to be a symbol when remapping a command.
20561 (Fremap_command): New function to remap command through keymaps.
20562 (Flookup_key): Perform command remapping initiated by
20563 Fremap_command directly for speed.
20564 (Fkey_binding): Use Fremap_command for command remapping.
20565 (where_is_internal): Handle new command remapping representation.
20566 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
20567 staticpro them. Defsubr Fremap_command.
20568
20569 * keymap.h (Fremap_command): Declare extern.
20570 (is_command_symbol): Remove extern.
20571
20572 * keyboard.c (command_loop_1): Use Fremap_command for command
20573 remapping; now try command remapping for all symbols.
20574
205752002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
20576
20577 * coding.h (run_pre_post_conversion_on_str): Add prototype.
20578
205792002-02-23 Jason Rumney <jasonr@gnu.org>
20580
20581 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
20582 on the string before encoding it.
20583 (Fw32_get_clipboard_data): Run post-read-conversion on the string
20584 after decoding it.
20585
20586 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
20587
205882002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20589
20590 * w32term.c (enter_timestamp): Remove unused static variable to
20591 prevent warning.
20592
20593 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
20594
205952002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
20596
20597 * w16select.c (Fw16_get_clipboard_data): Fix last change.
20598
20599 * xselect.c (selection_data_to_lisp_data): Fix last change.
20600
206012002-02-22 Jason Rumney <jasonr@gnu.org>
20602
20603 * w32term.h (struct w32_output): New member menu_command_in_progress.
20604
20605 * w32menu.c (menubar_selection_callback): Free the menu and
20606 clear the menu_command_in_progress flag.
20607
20608 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
20609 (menu_free_timer): New variable.
20610 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
20611 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
20612 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
20613 menu command is in progress.
20614 <WM_COMMAND>: Set the menu_command_in_progress flag.
20615 Kill any menu_free_timer that is running.
20616
20617 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
20618 Call ExtTextOutA rather than ExtTextOut.
20619
206202002-02-22 Eli Zaretskii <eliz@gnu.org>
20621
20622 * puresize.h (BASE_PURESIZE): Increase to 755000.
20623
206242002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
20625
20626 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
20627 on the string before encoding it.
20628 (Fw16_get_clipboard_data): Run post-read-conversion on the string
20629 after decoding it.
20630
206312002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
20632
9dd28cae 20633 Support for ICCCM Extended Segments in X selections:
048addec
JD
20634
20635 * xselect.c <Qcompound_text_no_extensions>: New variable.
20636 (syms_of_xselect): Intern and staticpro it.
20637 (selection_data_to_lisp_data): Run post-read-conversion on decoded
20638 selection text.
20639 (lisp_data_to_selection_data): If next-selection-coding-system is
20640 compound-text-no-extensions, set the type of selection to be
20641 compound-text.
20642
20643 * xterm.h (x_encode_text): Update prototype.
20644
20645 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
20646 callers changed. If SELECTIONP is non-zero, run the
20647 pre-write-conversion function before encoding the selection text.
20648
206492002-02-21 Kim F. Storm <storm@cua.dk>
20650
20651 * frame.c (syms_of_frame): Change mouse-highlight default to t.
20652
20653 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
20654 Correct composing of language-change event.
20655
206562002-02-20 Kim F. Storm <storm@cua.dk>
20657
20658 * keyboard.c (menu_bar_items): Don't include keymap or local-map
20659 bindings at PT when building menu (the menu is not updated often
20660 enough for this to work reliable).
20661 (tool_bar_items): Likewise.
20662 (current_active_maps): Removed unused (and buggy) function.
20663
206642002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20665
20666 * xfns.c (gif_load): Use correct width and height for GIF images.
20667
206682002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
20669
20670 * floatfns.c (Fatan): Accept an optional second arg and call
20671 atan2 if passed 2 args.
20672
206732002-02-18 Jason Rumney <jasonr@gnu.org>
20674
20675 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
20676
206772002-02-17 Jason Rumney <jasonr@gnu.org>
20678
20679 * w32term.c (x_autoselect_window_p): New variable.
20680 (syms_of_w32term): DEFVAR_BOOL and initialize it.
20681 (note_mouse_movement): Use it.
20682
20683 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
20684
20685 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
20686
20687 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
20688 New variables.
20689 (syms_of_w32fns): Intern and staticpro them.
20690 (x_frame_parms) <"fullscreen">: New parameter.
20691 (x_fullscreen_move, x_set_fullscreen): New functions.
20692 (x_set_frame_parameters): Support Qfullscreen.
20693 (x_real_positions): Save x/y_pixels_diff frame params.
20694 (x_figure_window_size): Support full-screen frames.
20695 (Fx_create_frame): Default the fullscreen parameter.
20696
20697 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
20698 (x_fullscreen_adjust): New functions.
20699 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
20700 fullscreen. Call x_check_fullscreen_move, and set the
20701 want_fullscreen member of output_data.w32
20702 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
20703
20704 * w32term.h: New enum for FULLSCREEN_* constants.
20705 (struct w32_output): New members want_fullscreen, x_pixels_diff,
20706 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
20707 (x-fullscreen-adjust): New prototype.
20708
207092002-02-17 Kim F. Storm <storm@cua.dk>
20710
52eb0373 20711 * frame.c (Vmouse_highlight): New variable.
048addec
JD
20712 (syms_of_frame): DEFVAR_LISP it.
20713
52eb0373 20714 * frame.h (Vmouse_highlight): Declare extern.
8a8e19a3 20715
048addec 20716 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 20717
048addec
JD
20718 * xterm.c (disable_mouse_highlight): Removed variable.
20719 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
20720 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20721 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
20722 and on after keyboard input.
20723 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 20724
048addec 20725 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 20726
048addec
JD
20727 * msdos.c (disable_mouse_highlight): Removed variable.
20728 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20729 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
20730 (internal_terminal_init): Initialize mouse_face_hidden.
20731 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
20732 and on after keyboard input.
4f1b1854 20733
048addec 20734 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 20735
048addec
JD
20736 * w32term.c (disable_mouse_highlight): Removed variable.
20737 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
20738 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20739 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
20740 and on after keyboard input.
20741 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 20742
048addec 207432002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 20744
048addec
JD
20745 * msdos.c (last_mouse_window): New variable.
20746 (dos_rawgetc): Fix last change--if the mouse is in the same window
20747 as recorded in last_mouse_window, don't select this window.
5cb6905d 20748
048addec 20749 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 20750
048addec
JD
20751 * msdos.c (x_autoselect_window_p): New variable.
20752 (syms_of_msdos): Defvar it.
20753 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
20754 which the last mouse movement occured, unless it is already selected.
437dfb9f 20755
048addec
JD
20756 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
20757 New variables.
20758 (syms_of_xdisp): DEVFAR them.
20759 (hscroll_window_tree): Use automatic_hscroll_margin and
20760 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 20761
048addec 207622002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 20763
048addec
JD
20764 * xterm.c (x-autoselect-window): New variable.
20765 (note_mouse_movement): Use it.
9f696a00 20766
048addec 20767 * keyboard.c: Do not include "systime.h" twice.
d57966d7 20768
048addec 207692002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 20770
bfa02563 20771 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 20772
048addec 20773 * alloc.c (NSTATICS): Increase to 1280.
74779f52 20774
048addec 207752002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 20776
048addec 20777 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 20778
048addec
JD
20779 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
20780 (Vx_super_keysym): New variables.
20781 (syms_of_xterm): DEFVAR_LISP them.
20782 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
20783 variables to determine which keys to use for the various modifiers.
a474d59c 20784
048addec 207852002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 20786
9dd28cae 20787 * window.c (Vmode_line_in_non_selected_windows): Removed.
048addec
JD
20788 (mode_line_in_non_selected_windows): New variable.
20789 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 20790
048addec
JD
20791 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
20792 Use mode_line_in_non_selected_windows.
20793 (mode_line_in_non_selected_windows): Declare extern.
20794 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 20795
048addec 207962002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 20797
048addec
JD
20798 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
20799 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
20800 (Fclear_this_command_keys): Doc fixes.
2d10309f 20801
048addec
JD
20802 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
20803 (update_face_from_frame_parameter): Increment face_change_count
20804 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 20805
048addec
JD
20806 * xdisp.c (QCpropertize): New variable.
20807 (mode_line_proptrans_alist): New variable.
20808 (display_mode_element): New arg PROPS; all calls changed.
20809 Implement this, for strings.
20810 Handle literal output of strings by sharing the
20811 main-line code for strings, using local var `literal'.
20812 Handle :propertize feature.
20813 (syms_of_xdisp): Initialze and staticpro QCpropertize and
20814 mode_line_proptrans_alist.
0b1e6b54 20815
048addec 208162002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 20817
9dd28cae 20818 * window.c (Vmode_line_in_non_selected_windows): New variable.
048addec 20819 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 20820
048addec
JD
20821 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
20822 (CURRENT_MODE_LINE_FACE_ID): Use it.
20823 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 20824
048addec
JD
20825 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
20826 to get mode line face.
e17144de 20827
048addec 208282002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 20829
048addec
JD
20830 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
20831 variables; cus-start.el doesn't need them anymore.
44368f8f 20832
048addec 208332002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 20834
048addec
JD
20835 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
20836 reduction. This fixes a display problem where stray newlines were
20837 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 20838
048addec 208392002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 20840
048addec 20841 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 20842
048addec 20843 * xdisp.c (display_mode_lines): Fix last change.
453c5510 20844
048addec 208452002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 20846
048addec
JD
20847 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
20848 match each other.
20849 (w32_load_system_font): Prevent Cleartype fonts from loading.
20850 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 20851
048addec 208522002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 20853
048addec
JD
20854 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
20855 (CURRENT_MODE_LINE_HEIGHT): Use it.
20856 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 20857
048addec
JD
20858 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
20859 (pos_visible_p, handle_face_prop): Likewise.
20860 (display_mode_lines): Likewise, but for the real selected window.
20861 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 20862
048addec
JD
20863 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
20864 in non-selected windows.
20865 (realize_basic_faces): Realize it.
20866 (syms_of_term): Intern and staticpro it.
308dd672 20867
048addec 208682002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 20869
048addec
JD
20870 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
20871 Changed mail addresses to emacs-devel@gnu.org.
308dd672 20872
048addec 208732002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 20874
048addec
JD
20875 * fileio.c (Fsubstitute_in_file_name): If the file name includes
20876 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 20877
048addec 20878 * floatfns.c (Fround): Doc fix.
3c1e6b46 20879
048addec 208802002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 20881
048addec 20882 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 20883
048addec 208842002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 20885
048addec 20886 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 20887
048addec 208882002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 20889
048addec
JD
20890 * keymap.c (where_is_internal): Only check whether definition is
20891 remapped if it fulfills is_command_symbol.
0065bb74 20892
048addec 208932002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 20894
048addec 20895 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 20896
048addec 20897 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 20898
048addec 208992002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 20900
048addec
JD
20901 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
20902 defining command remapping. Doc updated.
20903 (Flookup_key): Remap command through keymap if KEY is a symbol.
20904 (is_command_symbol): New function.
20905 (Fkey_binding): Use it. New optional argument NO-REMAP.
20906 Doc updated. Callers changed. Perform command remapping via
20907 recursive call unless that arg is non-nil.
20908 (where_is_internal): New argument no_remap. Callers changed.
20909 Call recursively to find original key bindings for a remapped
20910 comand unless that arg is non-nil.
20911 (Fwhere_is_internal): New optional argument NO-REMAP.
20912 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 20913
048addec 20914 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 20915 (is_command_symbol): Add prototype.
0d8466cc 20916
048addec
JD
20917 * keyboard.c (Vthis_original_command): New variable.
20918 (syms_of_keyboard): DEFVAR_LISP it.
20919 (command_loop_1): Set it, and perform command remapping.
15fff01d 20920
048addec 209212002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 20922
048addec 20923 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 20924
048addec 209252002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 20926
048addec 20927 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 20928
048addec 209292002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 20930
048addec 20931 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 20932
048addec 209332002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 20934
048addec 20935 * filelock.c (S_ISLNK): Define if not defined.
3a232704 20936
048addec 209372002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 20938
048addec 20939 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 20940
048addec
JD
20941 * lread.c (read1): Redesign strategy for force_multibyte and
20942 force_singlebyte. Now is_multibyte records whether read_buffer
20943 is multibyte. Encountering any multibyte character makes it so.
4e02881b 20944
048addec 209452002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 20946
048addec
JD
20947 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
20948 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 20949
048addec 209502002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 20951
048addec
JD
20952 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
20953 latter never being defined on GNU/Linux.
749f499f 20954
048addec 209552002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 20956
048addec
JD
20957 * xfaces.c (realize_default_face): Don't set the weight and slant of
20958 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 20959
048addec 209602002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 20961
048addec
JD
20962 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
20963 Call cancel_hourglass unconditionally.
d0fd26dd 20964
048addec
JD
20965 * eval.c (Fsignal): Remove duplicated declaration of
20966 the variable `display_hourglass_p'.
b4c45162 20967
048addec 209682002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 20969
048addec 20970 * editfns.c (region_limit): Nicer error message.
c95eaa61 20971
048addec
JD
20972 * coding.c (decode_composition_emacs_mule):
20973 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 20974
048addec
JD
20975 * callint.c (check_mark): New arg to specify clearer error message.
20976 Callers changed.
c95eaa61 20977
048addec 209782002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 20979
048addec 20980 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 20981
048addec 209822002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 20983
048addec
JD
20984 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
20985 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
20986 Fix doc-strings.
c95eaa61 20987
048addec 209882002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 20989
048addec 20990 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 20991
048addec
JD
20992 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
20993 and scroll_up_aggressively.
c95eaa61 20994
048addec 209952002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 20996
048addec 20997 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 20998
048addec 209992002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 21000
048addec
JD
21001 * textprop.c (Fnext_property_change, Fnext_single_property_change)
21002 (Fprevious_property_change, Fprevious_single_property_change):
21003 Stay within the narrowed-buffer boundaries.
e2c3786a 21004
048addec 210052002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 21006
048addec
JD
21007 * term.c (Ftty_display_color_cells): New function.
21008 (syms_of_term): Defsubr it.
21009 (Ftty_display_color_cells, Ftty_display_color_p): Change the
21010 argument name to DISPLAY. Doc fix.
bf794306 21011
048addec
JD
21012 * dispextern.h: Add prototype for set_tty_color_mode and
21013 tty_setup_colors.
bf794306 21014
048addec 210152002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 21016
048addec
JD
21017 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
21018 If region left to draw is not what was expected, mark the frame as
21019 garbaged.
62582985 21020
048addec
JD
21021 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
21022 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 21023
048addec 210242002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 21025
048addec
JD
21026 * w32term.c (x_update_window_begin): Only hide caret if
21027 w32_use_visible_system_caret is set.
21028 (x_update_window_end): Only show caret if
21029 w32_use_visible_system_caret is set.
21030 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 21031
048addec 21032 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 21033
048addec 210342002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 21035
048addec
JD
21036 * unexelf.c (unexec): Define n so as to cause compilation error
21037 for the code where people have often written n instead of nn.
1e9a6186 21038
048addec 21039 * .gdbinit (hookpost-run): Defined.
1e9a6186 21040
048addec 210412002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 21042
048addec 21043 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 21044
048addec 210452002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 21046
048addec
JD
21047 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
21048 if fullscreen is being set.
7c75be36 21049
048addec 210502002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 21051
048addec
JD
21052 * minibuf.c (Fminibuffer_contents)
21053 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
21054 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 21055
048addec 210562002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 21057
048addec 21058 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 21059
048addec 210602002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 21061
048addec
JD
21062 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
21063 height before comparison.
21064 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 21065
048addec 210662002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 21067
048addec
JD
21068 * w32term.c (w32_system_caret_width): Remove.
21069 (w32_use_visible_system_caret): New user flag.
21070 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
21071 Windows reports a screen reader running.
21072 (x_update_window_begin): Hide the system caret.
21073 (x_update_window_end): Show the system caret.
21074 (x_display_and_set_cursor): Don't draw a cursor when
21075 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 21076
048addec
JD
21077 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
21078 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
21079 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
21080 the user requests it. Use system default width when creating.
21081 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 21082
048addec
JD
21083 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
21084 New window messages.
905cc05a 21085
048addec 210862002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 21087
048addec 21088 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 21089
048addec 210902002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 21091
048addec 21092 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 21093
048addec 210942002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 21095
048addec 21096 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 21097
048addec 210982002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 21099
048addec
JD
21100 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
21101 that Windows returns. If a double check fails, try to guess how
21102 ExtTextOut is going to act.
4d0fa4f3 21103
048addec
JD
21104 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
21105 in place of stricmp.
21106 (w32_list_synthesized_fonts): Removed.
21107 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
21108 (struct enumfont_t): New element; list.
21109 (enum_font_cb2): List all style and charset variations of a font.
21110 (Fw32_select_font): New optional argument; include_proportional.
21111 Exclude vertical fonts. Exclude proportional fonts unless
21112 include_proportional is non-nil.
21113 (w32_enable_synthesized_fonts): Change to a boolean.
21114 (Fw32_send_sys_command): Doc fix.
493faf20 21115
048addec 211162002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 21117
048addec
JD
21118 * dispnew.c (update_frame): Move the variable `tem' to the block
21119 where it is used.
4971e491 21120
048addec 211212002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 21122
048addec
JD
21123 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
21124 call to face-set-after-frame-default.
4971e491 21125
048addec 211262002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 21127
048addec
JD
21128 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
21129 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 21130
048addec 211312002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 21132
048addec
JD
21133 * window.c (enlarge_window): When exceeding size of parent,
21134 directly delete all the siblings instead of trying to resize it.
201c831a 21135
048addec 211362002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 21137
048addec 21138 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 21139
048addec 211402002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 21141
048addec 21142 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 21143
048addec 211442002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 21145
048addec
JD
21146 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
21147 is invisible. This can happen if cursor is on top line of a
21148 window, and we switch to a buffer with a header line.
d77fbc16 21149
048addec 21150 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 21151
048addec 211522002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 21153
048addec
JD
21154 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
21155 `dont_resize' only when used.
61e3b944 21156
048addec 21157 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 21158
048addec 211592002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 21160
048addec
JD
21161 * xdisp.c (display_mode_element): When computing charpos, depend
21162 on multibyteness of elt, not the text in field.
8af01033 21163
048addec 211642002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 21165
048addec
JD
21166 * buffer.c (Fkill_all_local_variables):
21167 Increment `update_mode_lines' only once.
7363986a 21168
048addec 211692002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 21170
048addec
JD
21171 * lisp.h (adjust_after_replace_noundo)
21172 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 21173
048addec 21174 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 21175
048addec 211762002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 21177
048addec
JD
21178 Support for the --color command-line argument and tty-color-mode
21179 frame parameter:
f1a85b89 21180
048addec
JD
21181 * term.c (tty_default_color_capabilities, tty_setup_colors)
21182 (set_tty_color_mode): New functions.
21183 (term_init): Call tty_default_color_capabilities.
21184 (Qtty_color_mode_alist): New variable.
21185 (syms_of_term): Intern and staticpro it.
f1a85b89 21186
048addec
JD
21187 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
21188 frames.
21189 (do_switch_frame): For termcap frames, switch the tty
21190 color mode as specified by the frame's parameters.
21191 (Qtty_color_mode): New variable.
21192 (syms_of_frame): Intern and staticpro it.
3a62677f 21193
048addec
JD
21194 * emacs.c (USAGE2): Add the --color option.
21195 (standard_args): Ditto.
72244db2 21196
048addec
JD
211972002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21198
21199 * xterm.h (struct x_output): New members want_fullscreen,
21200 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
21201 y_pixels_outer_diff.
21202 New enum for FULLSCREEN_* constants.
21203 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
21204 is NULL.
21205 (x_fullscreen_adjust): Add prototype.
3a62677f 21206
048addec
JD
21207 * emacs.c (USAGE2): Add the new full-screen arguments.
21208 (standard_args): Ditto.
3a62677f 21209
048addec
JD
21210 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
21211 New variables.
21212 (syms_of_xfns): Intern and staticpro them.
21213 (x_frame_parms) <"fullscreen">: New parameter.
21214 (x_fullscreen_move, x_set_fullscreen): New functions.
21215 (x_set_frame_parameters): Support for Qfullscreen.
21216 (x_real_positions): More accurate computation of the frame position.
21217 (x_figure_window_size): Support full-screen frames.
21218 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 21219
048addec
JD
21220 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
21221 (XTread_socket) <Expose>: Call x_check_fullscreen.
21222 <ConfigureNotify>: Don't resize to fullscreen.
21223 Call x_check_fullscreen_move, and set the want_fullscreen member of
21224 output_data.x.
3a62677f 21225
048addec 212262002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 21227
048addec
JD
21228 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
21229 for mice with more than 3 buttons.
b8523839 21230
048addec
JD
21231 * w32term.c (parse_button): New parameter xbutton. Callers changed.
21232 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 21233
048addec
JD
21234 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
21235 (syms_of_w32fns): DEFVAR_BOOL it.
21236 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 21237
048addec 212382002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 21239
048addec 21240 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 21241
048addec 212422002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 21243
048addec 21244 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 21245
048addec 212462002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 21247
048addec
JD
21248 * .gdbinit (xbuffer): Remove address operator since data is now a
21249 pointer.
c93674bb 21250
048addec 212512002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 21252
048addec 21253 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 21254
048addec 21255 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 21256
048addec 212572002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 21258
048addec
JD
21259 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
21260 when checking for multiple frames.
91175673 21261
048addec 212622002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 21263
048addec
JD
21264 * window.c (delete_window): Rewrite the code for changing the
21265 selected window to handle the case where WINDOW is not a leaf.
91175673 21266
048addec 212672002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 21268
048addec
JD
21269 * process.c (send_process): Set src_multibyte to 1 after the call
21270 top setup_coding_system, not before the call.
e0fead5d 21271
048addec 212722002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 21273
048addec
JD
21274 * xmenu.c (set_frame_menubar, xmenu_show):
21275 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 21276
048addec
JD
21277 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
21278 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 21279
048addec 212802002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 21281
048addec 21282 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 21283
048addec 21284 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 21285
048addec 21286 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 21287
048addec 212882002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 21289
048addec
JD
21290 * insdel.c (make_gap_larger): Make sure buffer size does not
21291 overflow range of int.
62854fe2 21292
048addec 212932002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 21294
048addec
JD
21295 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
21296 OVERLAPS_P.
656f46bb 21297
048addec 21298 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 21299
048addec
JD
21300 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
21301 to the left or to the right of the pointer, put it against
21302 the left screen edge.
21303 (x_frame_parms): Add missing braces around initializer.
036e218d 21304
048addec
JD
21305 * w32term.c (x_setup_relief_colors): Don't compute an image's
21306 background color if it doesn't have a Pixmap.
21307 (notice_overwritten_cursor): Don't depend on
21308 output_cursor and updated_area. Compare pixel coordinates with
21309 window's cursor pixel coordinates.
21310 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
21311 Call notice_overwritten_cursor with new arg list.
21312 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
21313 unconditionally.
21314 (x_draw_image_relief): Use predefined macro instead of
21315 constant when the value of `tool_bar_button_relief' is negative.
036e218d 21316
048addec 21317 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 21318
048addec 213192002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 21320
048addec 21321 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 21322
048addec 213232002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 21324
048addec
JD
21325 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
21326 (Fkey_binding): Try the `keymap' property map first.
21327 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
21328 minor mode bindings.
90647b07 21329
048addec 213302002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 21331
3419757d 21332 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 21333
048addec 213342002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 21335
048addec
JD
21336 * keyboard.c (read_key_sequence): Handle the keymap property
21337 before minor mode maps.
9fbc32aa 21338
048addec
JD
21339 * editfns.c (Fformat): Update thissize from field_width
21340 based on the actual width, in the string case.
036e218d 21341
048addec 213422002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 21343
048addec
JD
21344 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
21345 when used as truth value to prevent gcc warnings.
9fbc32aa 21346
048addec
JD
21347 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
21348 * w32proc.c: Include <config.h>.
9fbc32aa 21349
048addec 213502002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 21351
048addec
JD
21352 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
21353 not EMACS_INT, to make them compatible with DEFVAR_INT.
21354 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 21355
048addec 213562002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 21357
048addec
JD
21358 * print.c (print_object): Test print_escape_nonascii only for
21359 unibyte strings.
21360 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
21361 when outputting to a multibyte buffer.
9fbc32aa 21362
048addec 213632001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 21364
048addec
JD
21365 * print.c (print_object): In multibyte string, use hex escapes.
21366 Use octal only for unibyte strings.
21367 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 21368
048addec
JD
21369 * lread.c (read_escape): New arg BYTEREP for reporting whether
21370 escape forces unibyte or multibyte.
21371 (read1): When reading a string, take note of that info.
0142178a 21372
048addec 213732001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 21374
048addec
JD
21375 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
21376 comparison to test lisp value returned by Fget.
d4824a5d 21377
048addec 213782001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 21379
048addec 21380 * lisp.h (max_specpdl_size): Add declaration.
b1356234 21381
048addec 21382 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 21383
048addec
JD
21384 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
21385 Handle modifier bits. Correct typo in error message.
99e380ee 21386
048addec 213872001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 21388
048addec
JD
21389 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
21390 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
21391 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21392 Update calls to Fdefine_abbrev.
21393 (write_abbrev): Update for changed data format.
21394 Don't list "system" abbrevs.
21395 (Fexpand_abbrev): Update use count with new data format.
21396 (describe_abbrev): Update for changed data format.
21397 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 21398
048addec 21399 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 21400
048addec 21401 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 21402
048addec
JD
21403 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
21404 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 21405
048addec
JD
21406 * keymap.c (Flookup_key): Error message if key has wrong data type.
21407 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
21408 (exclude_key): New variable.
59a86c99 21409
048addec 214102001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 21411
048addec
JD
21412 * xterm.c (x_setup_relief_colors): Don't compute an image's
21413 background color if it doesn't have a Pixmap.
eb77a5f4 21414
048addec
JD
21415 * xterm.c (notice_overwritten_cursor): Don't depend on
21416 output_cursor and updated_area. Compare pixel coordinates with
21417 window's cursor pixel coordinates.
21418 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
21419 Call notice_overwritten_cursor with new arg list.
21420 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
21421 unconditionally.
eb77a5f4 21422
048addec
JD
21423 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
21424 height of the cursor line to the amount to scroll.
eb77a5f4 21425
048addec 214262001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 21427
048addec
JD
21428 * intervals.c (set_point_both): The position after an invisible,
21429 intangible character is not an acceptable stopping point.
bb313871 21430
048addec 214312001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 21432
048addec
JD
21433 * window.c (enlarge_window): In new preserve_before code, convert
21434 CURBEG from lisp object to integer before doing arithmetic.
6052529b 21435
048addec 214362001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 21437
048addec 21438 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 21439
048addec 214402001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 21441
048addec
JD
21442 * keyboard.c (record_char): Ignore duplicate help-echo events only
21443 separated by mouse-movement. When tracking mouse, only record
21444 first and last mouse-movement event in same window.
21445 Don't record mouse-movement events in keyboard macros.
3ce081f5 21446
048addec 214472001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 21448
048addec
JD
21449 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
21450 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 21451
048addec
JD
21452 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
21453 instead of Fstring_as_unibyte.
9fabb2f5 21454
048addec 214552001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 21456
048addec 21457 The following changes remove mocklisp support:
9fabb2f5 21458
048addec 21459 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 21460
048addec
JD
21461 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
21462 `Qmocklisp' and `Qmocklisp_arguments'.
21463 Remove prototype of syms_of_mocklisp.
2fa0eedf 21464
048addec 21465 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 21466
048addec
JD
21467 * callint.c: Do not include mocklisp.h.
21468 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 21469
048addec
JD
21470 * eval.c: Remove variables `Qmocklisp_arguments',
21471 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
21472 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
21473 Do not test for mocklisp case.
21474 (Fwhile): Remove unused variable `tem'.
21475 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 21476
048addec 21477 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 21478
048addec 21479 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 21480
048addec 21481 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 21482
048addec 214832001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 21484
048addec
JD
21485 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
21486 to the left or to the right of the pointer, put it against
21487 the left screen edge.
6108b49c 21488
048addec 214892001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 21490
048addec
JD
21491 * Makefile.in (distclean): Remove .gdbinit if we are building
21492 outside the source tree.
5eea19a4 21493
048addec 214942001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 21495
048addec 21496 * w32.c (emacs_root_dir): New function.
5eea19a4 21497
048addec 21498 * msdos.c (emacs_root_dir): New function.
5eea19a4 21499
048addec
JD
21500 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
21501 of the current drive as the fallback for default_directory.
438e57dd 21502
048addec
JD
21503 * dired.c (file_name_completion): Run the elements of
21504 completion-ignored-extensions through ENCODE_FILE.
438e57dd 21505
048addec
JD
21506 * lisp.h (scmp): Remove prototype, since it's now a static
21507 function private to dired.c.
c88e5347 21508
048addec 215092001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 21510
048addec
JD
21511 * dired.c (scmp): Function moved from minibuf.c.
21512 Delete multibyte handling--used only on encoded strings.
59ce1461 21513
048addec 21514 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 21515
048addec 21516 * fns.c (merge): Add QUIT call.
59ce1461 21517
048addec 215182001-12-18 Dave Love <fx@gnu.org>
8727d588 21519
048addec
JD
21520 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
21521 language/georgian.el.
8727d588 21522
048addec 215232001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 21524
048addec
JD
21525 * Makefile.in (lisp, shortlisp): Synchronize with changes to
21526 lisp/Makefile.in:DONTCOMPILE.
cc63037e 21527
048addec 215282001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 21529
048addec
JD
21530 * xdisp.c (window_box_height): Do not return negative values.
21531 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 21532
048addec 21533 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 21534
048addec 21535 * term.c (keys): Likewise.
deece6f5 21536
048addec 21537 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 21538
048addec 215392001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 21540
048addec
JD
21541 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
21542 patch (COMPOSING_P, not COMPOSING).
28ff4293 21543
048addec 215442001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 21545
048addec 21546 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 21547
048addec
JD
21548 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
21549 before calling decode_coding.
9b46de40 21550
048addec 21551 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 21552
048addec
JD
21553 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
21554 instead of only for COMPOSITION_DISABLED.
9b46de40 21555
048addec 215562001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 21557
048addec 21558 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 21559
048addec 21560 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 21561
048addec
JD
21562 * buffer.h (struct buffer): New field `display_error_modiff'.
21563 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 21564
048addec 21565 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 21566
048addec
JD
21567 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
21568 Call redisplay_window, but not if display_error_modiff field says no.
21569 (redisplay_window_error): New function.
21570 (displayed_buffer): New variable.
21571 (redisplay_internal, redisplay_windows): Call the new functions
21572 instead of redisplay_window directly.
2cd23960 21573
048addec 215742001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 21575
048addec 21576 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 21577
048addec 215782001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 21579
048addec 21580 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 21581 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 21582 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 21583
048addec 215842001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 21585
048addec
JD
21586 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
21587 parameter have a numeric value all the time.
f6fa0866 21588
048addec 21589 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 21590
048addec 215912001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 21592
048addec 21593 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 21594
048addec
JD
21595 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
21596 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 21597
048addec 215982001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 21599
048addec
JD
21600 * xdisp.c (move_it_vertically_backward): Change heuristic
21601 for the case that we didn't move far enough initially.
91c153e2 21602
048addec
JD
21603 * window.c (Frecenter): Simplify computation in the case of window
21604 system frames and ARG < 0; use window_box_height.
65b7d3e7 21605
048addec 216062001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 21607
048addec
JD
21608 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
21609 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 21610
048addec 216112001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 21612
048addec
JD
21613 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
21614 arg is negative.
be676094 21615
048addec 216162001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 21617
048addec
JD
21618 * m/hp800.h: Split the __hpux conditional into the parts
21619 that are right for GNU/Linux too and the parts that are not.
21620 Use the former if GNU_LINUX.
21621 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 21622
048addec 21623 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 21624
048addec 216252001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 21626
048addec
JD
21627 * macros.c, msdos.c, w16select.c: Change doc-string comments to
21628 `new style' [w/`doc:' keyword].
032a857d 21629
048addec 216302001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 21631
048addec
JD
21632 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
21633 before using.
b6270150 21634
048addec 216352001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 21636
048addec
JD
21637 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
21638 keyword].
98cbb9fa 21639
048addec 216402001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 21641
048addec 21642 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 21643
048addec 21644 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 21645
048addec 216462001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 21647
048addec 21648 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 21649 Add comment to explain where the struct came from.
048addec
JD
21650 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
21651 (add_menu_item): Process pop-up menus first to avoid memory leak.
21652 (add_menu_item, w32_menu_display_help): Use `help' field as
21653 Lisp_Object.
21654 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 21655
048addec 216562001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 21657
048addec 21658 * COPYING: Moved back.
fa336b91 21659
048addec
JD
21660 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
21661 Add parentheses around && within ||.
077907d4 21662
048addec 21663 * indent.c (compute_motion): Likewise.
aa2af83a 21664
048addec 21665 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 21666
048addec
JD
21667 * coding.c (setup_coding_system, shrink_encoding_region)
21668 (Fdecode_sjis_char): Likewise.
60a653f1 21669
048addec 216702001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 21671
048addec
JD
21672 * xdisp.c (display_mode_element): Don't read past end of string if
21673 it ends with '%'.
60a653f1 21674
048addec
JD
21675 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
21676 can hold.
60a653f1 21677
048addec
JD
21678 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
21679 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
21680 type changed to Lisp_Object.
21681 (syms_of_data): DEFVAR_LISP them.
60a653f1 21682
048addec 216832001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 21684
048addec
JD
21685 * callproc.c (init_callproc): Set Vdata_directory based on the source
21686 location whenever Emacs was run uninstalled.
60a653f1 21687
048addec 216882001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 21689
048addec
JD
21690 * config.in (HAVE_WORKING_VFORK): New #undefs.
21691 * process.c (create_process):
21692 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
21693 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
21694 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
21695 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
21696 * m/intel386.h (HAVE_VFORK): Likewise.
21697 * m/mips-siemens.h (HAVE_VFORK): Likewise.
21698 * m/mips.h (HAVE_VFORK): Likewise.
21699 * s/freebsd.h (vfork): Remove #define.
21700 * s/lynxos.h (HAVE_VFORK): Remove #undef.
21701 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 21702
048addec 217032001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 21704
048addec
JD
21705 * s/hpux10.h (random): Add undef.
21706 (HAVE_RANDOM): Define it just once.
60a653f1 21707
048addec 217082001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21709
048addec 21710 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 21711
048addec 217122001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 21713
048addec
JD
21714 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
21715 scroll bars of the frame before deleting the frame itself. If the
21716 frame has a widget, delete the frame with XtDestroyWidget, and do
21717 not call XDestroyWindow before that.
60a653f1 21718
048addec 217192001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 21720
048addec 21721 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 21722
048addec 21723 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 21724
048addec 217252001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 21726
048addec
JD
21727 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
21728 excessively large.
60a653f1 21729
048addec
JD
21730 * insdel.c (make_gap_larger): New function.
21731 (make_gap_smaller): New function.
21732 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
21733 Call make_gap_smaller if arg is negative.
60a653f1 21734
048addec 217352001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21736
048addec
JD
21737 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
21738 Pass a dummy argument when calling interrupt_signal.
21739 (parse_menu_item): Mark disabled items before checking for empty def.
21740 (read_char_minibuf_menu_prompt): Make safety more visible.
21741 (read_key_sequence): Add a `first_unbound' variable.
21742 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
21743 unbound prefix as soon as we can detect it.
60a653f1 21744
048addec
JD
21745 * doc.c (Fsnarf_documentation): Add prototype.
21746 (get_doc_string): Handle negative arguments.
21747 (Fdocumentation): Use AREF and ASIZE.
21748 Move the calls to get_doc_string to a single place.
21749 Don't confuse an interactive-spec for a docstring reference.
21750 (Fdocumentation_property): Take advantage of the fact that
21751 get_doc_string now ignores the sign of the docstring position.
60a653f1 21752
048addec 21753 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 21754
048addec 217552001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21756
a64387ee 21757 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 21758
048addec 217592001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21760
048addec
JD
21761 * xterm.c (x_draw_image_relief): Use predefined macro instead of
21762 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 21763
048addec 217642001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 21765
048addec
JD
21766 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
21767 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 21768
048addec 21769 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 21770
048addec 217712001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21772
048addec 21773 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 21774
048addec 217752001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 21776
048addec 21777 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 21778
048addec 217792001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 21780
f63fd14e 21781 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 21782
048addec
JD
21783 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
21784 [!WM_MOUSELEAVE]: Define.
60a653f1 21785
048addec
JD
21786 * w32menu.c (current_popup_menu, get_menu_item_info):
21787 (set_menu_item_info): New vars.
21788 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
21789 (w32_menu_show): Set current_popup_menu.
21790 (add_menu_item): Allocate new strings for owner-drawn menu items
21791 and help strings.
21792 Use owner-draw for disabled menu items again.
21793 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
21794 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 21795
048addec
JD
21796 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
21797 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
21798 <WM_EXITMENULOOP>: Free menu strings.
21799 <WM_MOUSELEAVE>: Stop tracking mouse.
21800 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 21801
048addec
JD
21802 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
21803 and mouse face.
60a653f1 21804
048addec 218052001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 21806
048addec
JD
21807 The following changes add left-fringe and right-fringe
21808 frame parameters to adjust fringe widths, or remove one or
21809 both fringes.
60a653f1 21810
048addec
JD
21811 * frame.h (struct frame): Remove trunc_area_pixel_width and
21812 trunc_area_cols fields.
21813 (Qleft_fringe, Qright_fringe): Declare.
21814 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 21815
048addec
JD
21816 * frame.c (Qleft_fringe, Qright_fringe): New vars.
21817 (syms_of_frame): Initialize them.
60a653f1 21818
048addec
JD
21819 * window.c (coordinates_in_window): Handle separate left and right
21820 fringe widths.
60a653f1 21821
048addec
JD
21822 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
21823 and fringe_cols fields.
21824 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
21825 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
21826 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
21827 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
21828 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
21829 (x_compute_fringe_widths): Add prototype.
60a653f1 21830
048addec
JD
21831 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
21832 fill fringe evenly with small dashes.
f63fd14e 21833 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
21834 clip the new ZV bitmap to avoid jitter between rows.
21835 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
21836 background. Don't draw fringe bitmaps if fringe width is zero.
21837 (x_compute_fringe_widths): New function.
21838 (x_new_font, x_set_window_size_1): Use it.
60a653f1 21839
048addec
JD
21840 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
21841 (x_set_frame_parameters): Process `font' parameter before other
21842 parameters as fringe widths depend on it.
21843 (x_set_fringe_width): New function.
21844 (x_figure_window_size): Use x_compute_fringe_widths.
21845 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
21846 parameters.
60a653f1 21847
048addec
JD
21848 * widget.c (set_frame_size): Use x_compute_fringe_widths.
21849 (EmacsFrameSetCharSize): Ditto.
60a653f1 21850
048addec
JD
21851 * w32term.h: Merged changes from xterm.h.
21852 * w32term.c: Merged changes from xterm.c.
21853 * w32fns.c: Merged changes from xfns.c.
60a653f1 21854
048addec 218552001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21856
048addec 21857 * COPYING: Removed.
60a653f1 21858
048addec 218592001-11-29 Dave Love <fx@gnu.org>
60a653f1 21860
048addec
JD
21861 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
21862 extra extra slot.
21863 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 21864
048addec 218652001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21866
048addec
JD
21867 * fileio.c (file-name-coding-system)
21868 (default-file-name-coding-system): Doc fix (links to referenced
21869 variables added).
60a653f1 21870
048addec 218712001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21872
048addec
JD
21873 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
21874 Add dummy uses of gcproN variables.
60a653f1 21875
048addec
JD
21876 * category.c (describe_category, describe_category_1)
21877 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
21878 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 21879
048addec 218802001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 21881
048addec 21882 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 21883
048addec
JD
21884 * Makefile.in (lispdir): New variable, referring to build dir.
21885 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 21886
048addec 218872001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 21888
048addec
JD
21889 * w32menu.c (w32_menu_display_help): Actually add the new argument
21890 OWNER.
60a653f1 21891
048addec 218922001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 21893
048addec
JD
21894 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
21895 menu items. From David Ponce <dponce@wanadoo.fr>.
21896 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
21897 conditionally.
f63fd14e 21898 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 21899 help event in the owner frame's keyboard buffer.
60a653f1 21900
048addec
JD
21901 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
21902 (Fx_show_tip): Don't subtract last width from row width.
21903
21904 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
21905 (w32_read_socket): Use EQ to compare frames.
60a653f1 21906
048addec 219072001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 21908
048addec
JD
21909 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
21910 OVERLAPS_P.
60a653f1 21911
048addec 219122001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 21913
048addec
JD
21914 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
21915 `gcpro3' and `gcpro4'.
60a653f1 21916
048addec 21917 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 21918
048addec 219192001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21920
048addec 21921 * ccl.c: Use AREF and ASIZE.
60a653f1 21922
048addec 219232001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21924
048addec
JD
21925 * lisp.h (run_hook_list_with_args): Remove.
21926 (LIST_END_P): Fix call to wrong_type_argument.
21927 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 21928
048addec 219292001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21930
048addec
JD
21931 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
21932 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 21933
048addec
JD
21934 * eval.c: Use AREF and ASIZE.
21935 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 21936
048addec
JD
21937 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
21938 which match the end of the file-name.
21939 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
21940 is not a valid env var, but leave it as is instead.
60a653f1 21941
048addec
JD
21942 * keymap.c (access_keymap): Handle t bindings like nil bindings.
21943 Make nil bindings in char-tables transparent.
21944 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 21945
048addec 219462001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 21947
048addec
JD
21948 * textprop.c (set_text_properties_1): Allow START, END in either order.
21949 Do nothing if range is empty.
60a653f1 21950
048addec 21951 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 21952
048addec
JD
21953 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
21954 (clean): Not here.
60a653f1 21955
048addec 219562001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21957
048addec
JD
21958 * textprop.c (set_text_properties_1): Clearly mark that the
21959 interval should not be empty.
60a653f1 21960
048addec
JD
21961 * intervals.c (graft_intervals_into_buffer):
21962 Don't call set_text_properties_1 on an empty interval.
60a653f1 21963
048addec 219642001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 21965
048addec 21966 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 21967
048addec
JD
21968 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
21969 don't lose the data in it.
60a653f1 21970
048addec 219712001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 21972
048addec 21973 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 21974
c62aec78 21975 * buffer.c (Fkill_buffer): Likewise.
60a653f1 21976
c62aec78 21977 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 21978
048addec 219792001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 21980
048addec 21981 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 21982
048addec 219832001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 21984
048addec
JD
21985 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
21986 Niemitalo <kon@iki.fi>.
60a653f1 21987
048addec 219882001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 21989
048addec 21990 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 21991
048addec
JD
21992 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
21993 (Fx_show_tip): Block input during frame creation.
21994 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 21995
048addec 219962001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 21997
048addec
JD
21998 * lread.c (Fload): Detect recursive load error for more than 3
21999 nestings of the same file.
22000 (Vrecursive_load_depth_limit): Variable deleted.
22001 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 22002
048addec 220032001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 22004
048addec
JD
22005 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
22006 mouse position if either left or top is not specified.
60a653f1 22007
048addec
JD
22008 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
22009 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
22010 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
22011 (my_create_tip_window): Assign tip_window.
22012 (x_create_tip_frame): Use same defaults as X.
22013 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 22014 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 22015
048addec
JD
22016 * w32term.c (x_after_update_window_line): Doc fix.
22017 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
22018 frames.
22019 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 22020
048addec
JD
22021 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
22022 for all Windowed systems.
60a653f1 22023
048addec 220242001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 22025
048addec
JD
22026 * msdos.c (IT_clear_screen): If the frame's faces are not yet
22027 realized, use the initial screen colors to clear the screen.
60a653f1 22028
048addec 220292001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 22030
048addec
JD
22031 * textprop.c (Fset_text_properties): Remove unused variables
22032 `unchanged', `prev_changed', `s' and `len'.
60a653f1 22033
048addec
JD
22034 * search.c (Freplace_match): Remove unused variable `inslen'.
22035
22036 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
22037
220382001-11-22 Jason Rumney <jasonr@gnu.org>
22039
22040 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
22041 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
22042 (my_create_tip_window): New function.
22043 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
22044 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
22045
220462001-11-20 Jason Rumney <jasonr@gnu.org>
22047
22048 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
22049 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
22050
22051 * w32fns.c (Vw32_system_coding_system): Remove.
22052 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
22053
220542001-11-19 Stefan Monnier <monnier@cs.yale.edu>
22055
22056 * fileio.c (Fwrite_region): Move choose_write_coding_system to
22057 after build_annotations.
22058
22059 * syntax.c (describe_syntax): Add dummy arg.
22060 (describe_syntax_1): Update call to describe_vector.
22061
22062 * category.c (describe_category): Add dummy arg.
22063 (describe_category_1): Update call to describe_vector.
22064
22065 * keymap.c (Fdescribe_vector): Add `describer' parameter.
22066 (describe_command, describe_translation): Add dummy second param.
22067 (describe_map): Call elt_describer with two arguments.
22068 (describe_vector_princ): Add `fun' parameter.
22069 Call it instead of the hardcoded `princ'.
22070 (describe_vector): Add arg `args'.
22071 Pass it as a new second argument to elt_describer.
60a653f1 22072
048addec 22073 * keymap.h (describe_vector): Update prototype.
60a653f1 22074
048addec
JD
22075 * frame.c: Don't include keymap.h any more.
22076 (keys_of_frame): Remove.
60a653f1 22077
048addec 22078 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 22079
048addec 22080 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 22081
048addec 220822001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 22083
048addec
JD
22084 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
22085 if defined, 0 otherwise.
22086 (MAP_FAILED): Define if not defined and use it to test mmap failure.
22087 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 22088
048addec 220892001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 22090
048addec 22091 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 22092
048addec 220932001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 22094
048addec
JD
22095 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
22096 (x_draw_bar_cursor): If the background color of the glyph under
22097 the cursor equals the frame's cursor color, use the glyph's
22098 foreground color for drawing the bar cursor.
22099 (x_after_update_window_line): Clear internal border in different
22100 circumstances.
22101 (w32_set_vertical_scroll_bar): Check for width and height > 0.
22102 (w32_draw_relief_rect): Correct relief by 1 pixel.
22103 (x_set_glyph_string_background_width):
22104 Set extends_to_end_of_line_p if the row's fill_line_p is set and
22105 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
22106 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
22107 if cursor_in_non_selected_windows is false.
22108 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
22109 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
22110 Notice if cursor gets overwritten.
22111 (notice_overwritten_cursor): Renamed from
22112 note_overwritten_text_cursor. Rewritten to take glyph widths
22113 into account, and to take X positions as parameters.
22114 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
22115 around call to x_draw_glyphs.
22116 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
22117 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
22118 color to use for image glyph reliefs.
22119 (x_draw_image_relief): Accept zero tool_bar_button_relief.
22120 (glyph_rect): Remove unused variable `area'.
60a653f1 22121
048addec
JD
22122 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
22123 some items.
22124 (x_set_internal_border_width): Set frame garbaged when window
22125 doesn't exist yet.
22126 (Fx_create_frame): Accept zero tool_bar_button_relief.
22127 (x_clear_image_1, four_corners_best, image_background)
22128 (image_background_transparent): New functions.
22129 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
22130 (gs_format): Add `:background' entry.
22131 (lookup_image): Set IMG's background color if specified.
22132 (pbm_load, xbm_load_image, png_load): Set IMG's background field
22133 when appropriate.
22134 (x_clear_image_1): Reset `background_valid' and
22135 `background_transparent_valid' fields.
22136 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
22137 calculating it here. Set IMG's background_transparent field.
22138 (enum xpm_keyword_index): Add XPM_BACKGROUND.
22139 (enum png_keyword_index): Add PNG_BACKGROUND.
22140 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
22141 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
22142 (enum gif_keyword_index): Add GIF_BACKGROUND.
22143 (enum gs_keyword_index): Add GS_BACKGROUND.
22144 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
22145 Pre-calculate image background color where necessary.
22146 (x_create_x_image_and_pixmap, xbm_load, gs_load):
22147 Use display info's n_cbits entry for screen depth.
22148 (Fx_show_tip): Remove unused variables `buffer', `top',
22149 `left', `max_width' and `max_height'.
60a653f1 22150
048addec 22151 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 22152
048addec 221532001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 22154
048addec 22155 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 22156
048addec 221572001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 22158
048addec 22159 * frame.c (Fframe_live_p): Doc fix.
60a653f1 22160
048addec 221612001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 22162
048addec
JD
22163 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
22164 (message_dolog_marker3): New static variables hold three markers.
22165 (syms_of_xdisp): Initialize and staticpro them.
22166 (message_dolog): Use message_dolog_marker1..3 instead of
22167 allocating markers each time. Unchain them when done.
60a653f1 22168
048addec 221692001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 22170
048addec 22171 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 22172
048addec 221732001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 22174
048addec 22175 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 22176
048addec 221772001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 22178
048addec 22179 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 22180
048addec 221812001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 22182
048addec 22183 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 22184
048addec 221852001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 22186
048addec
JD
22187 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
22188 with invalid position.
60a653f1 22189
048addec 221902001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 22191
048addec 22192 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 22193
048addec
JD
22194 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
22195 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
22196 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 22197
048addec 22198 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 22199
048addec 222002001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 22201
048addec
JD
22202 * fileio.c (build_annotations): Split off the tail.
22203 (build_annotations_2): New fun. Extracted from build_annotations.
22204 (Fwrite_region): Split the call to build_annotations into two
22205 calls to build_annotations and build_annotations_2.
077907d4 22206
048addec 222072001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 22208
048addec
JD
22209 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
22210 clear_waiting_for_input with argument.
1756e2fb 22211
048addec 22212 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 22213
048addec 22214 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 22215
048addec 22216 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 22217
048addec 22218 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 22219
048addec 222202001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 22221
048addec
JD
22222 * fileio.c (choose_write_coding_system): New fun, extracted
22223 from Fwrite_region.
22224 (Fwrite_region): Use it.
fa336b91 22225
048addec
JD
22226 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
22227 (funcall_lambda, run_hook_with_args): Make static and add prototype.
22228 (ml_apply, find_handler_clause): Add prototype.
fa336b91 22229
048addec 222302001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 22231
048addec 22232 * config.in: Add #undef HAVE_COFF_H.
fa336b91 22233
048addec
JD
22234 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
22235 Required for ISC 4.1.
fa336b91 22236
048addec 222372001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 22238
52eb0373 22239 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
048addec 22240 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 22241
048addec 222422001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 22243
048addec
JD
22244 The following changes are made to clean up the various internal
22245 references to the fringes to actually use the term `fringe' for
22246 them. Previously, they were called `flags areas', `bitmap areas',
22247 `left/right side of windows', or implicitly as `flags' or
22248 `bitmaps':
fa336b91 22249
048addec 22250 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 22251 Comments fixed. Use renamed symbols.
06e8f738 22252
f63fd14e 22253 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 22254
048addec
JD
22255 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
22256 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
22257 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 22258
048addec 22259 * msdos.c: Comment fix.
9ce647f4 22260
048addec 22261 * w32fns.c: Use renamed symbols.
9b784ab8 22262
f63fd14e 22263 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
22264 (fringe_bitmap_type): Renamed from bitmap_type.
22265 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
22266 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
22267 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 22268
f63fd14e 22269 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
22270 (fringes_extra): Renamed from flags_areas_extra.
22271 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
22272 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
22273 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
22274 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
22275 (FRAME_X_LEFT_FRINGE_WIDTH):
22276 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
22277 (FRAME_X_RIGHT_FRINGE_WIDTH):
22278 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 22279
048addec 22280 * widget.c: Use renamed symbols.
9f7e52b4 22281
f63fd14e 22282 * window.c: Comment fixes. Use renamed symbols.
048addec 22283 (coordinates-in-window-p): Doc fix.
fa336b91 22284
f63fd14e 22285 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 22286
048addec 22287 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 22288
048addec 22289 * xfns.c: Use renamed symbols.
89512fcd 22290
f63fd14e 22291 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
22292 (fringe_bitmap_type): Renamed from bitmap_type.
22293 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
22294 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
22295 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 22296
f63fd14e 22297 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
22298 (fringes_extra): Renamed from flags_areas_extra.
22299 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
22300 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
22301 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
22302 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
22303 (FRAME_X_LEFT_FRINGE_WIDTH):
22304 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
22305 (FRAME_X_RIGHT_FRINGE_WIDTH):
22306 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
22307
223082001-11-15 Jason Rumney <jasonr@gnu.org>
22309
22310 * w32menu.c (add-menu-item): Make help_echo and radio buttons
22311 work for most menu items. From David Ponce
22312 <david.ponce@wanadoo.fr>.
22313
223142001-11-15 Gerd Moellmann <gerd@gnu.org>
22315
22316 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
22317 Some x_set_* function expect to be called even if old and new
22318 value are equal.
22319
22320 * xdisp.c (build_desired_tool_bar_string): Accept zero
22321 tool_bar_button_relief.
22322
22323 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
22324
22325 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
22326
22327 * xterm.c (x_draw_bar_cursor): If the background color of the
22328 glyph under the cursor equals the frame's cursor color, use
22329 the glyph's foreground color for drawing the bar cursor.
22330
22331 * dispnew.c (direct_output_forward_char): Fix character/byte
22332 position comparison.
7d18891d 22333
048addec 223342001-11-15 Miles Bader <miles@gnu.org>
d2936d21 22335
048addec
JD
22336 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
22337 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
22338 Update arguments to find_field.
22339 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
22340 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
22341 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
22342 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 22343
048addec 223442001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 22345
048addec 22346 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 22347
048addec
JD
22348 * dispextern.h (image_background, image_background_transparent):
22349 Conditionalize on HAVE_X_WINDOWS.
7d18891d 22350
048addec 223512001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 22352
048addec 22353 * print.c (Fprin1_to_string): Doc fix.
7d18891d 22354
048addec 22355 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 22356
048addec 22357 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 22358
048addec 22359 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 22360
048addec 22361 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 22362
048addec 22363 * eval.c (syms_of_eval): Doc fix.
7d18891d 22364
048addec 22365 * coding.c (syms_of_coding): Doc fix.
7d18891d 22366
048addec 22367 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 22368
048addec 22369 * dispnew.c (syms_of_display): Doc fix.
9474c847 22370
048addec 22371 * category.c (Fget_unused_category): Doc fix.
9474c847 22372
048addec 22373 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 22374
048addec 223752001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 22376
048addec 22377 * print.c (prin1, print): Doc fix.
e3059a5d 22378
048addec 223792001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 22380
048addec
JD
22381 * fontset.h: Remove declarations of variables
22382 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 22383
048addec
JD
22384 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
22385 `Vclip_large_size_font'.
eae936e2 22386
048addec 223872001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 22388
048addec 22389 * w32fns.c: Doc fix.
ddb67bdc 22390
048addec 223912001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 22392
048addec 22393 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 22394
048addec 22395 * fns.c: Doc fix.
6e1b91d7 22396
048addec 22397 * emacs.c: Doc fix.
1c1d3d69 22398
048addec 22399 * coding.c: Doc fix.
1c1d3d69 22400
048addec
JD
22401 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
22402 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
22403 `new style' [w/`doc:' keyword].
b6f4c7ba 22404
048addec 224052001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 22406
048addec
JD
22407 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
22408 LeaveNotify events. Only FocusIn and FocusOut do that now.
22409 (x_display_and_set_cursor): Do display hollow cursors in active
22410 minibuffer windows when they are not selected.
b6f4c7ba 22411
048addec 224122001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 22413
048addec 22414 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
22415 * w32term.c: Change doc-string comments to `new style'
22416 [w/`doc:' keyword]. Doc fixes.
a89f435d 22417
048addec
JD
22418 * w32fns.c: Don't define max.
22419 (Fx_open_connection): Only execute once.
a4cd0cd7 22420
048addec 224212001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 22422
048addec
JD
22423 * ccl.c: Change macros to use do-while block instead of if-else.
22424 Use braces to follow GNU Coding Standards.
eafb659a 22425
048addec 224262001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 22427
048addec 22428 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 22429
048addec 22430 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 22431
048addec
JD
22432 * insdel.c (replace_range): Use adjust_markers_for_replace
22433 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 22434
78819ebb 22435 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 22436
048addec
JD
22437 * textprop.c (set_text_properties_1): New subroutine
22438 broken out of set_text_properties.
22439 (set_text_properties): Use set_text_properties_1.
91823618 22440
048addec
JD
22441 * intervals.c (graft_intervals_into_buffer):
22442 Use set_text_properties_1 to clear out properties.
91823618 22443
048addec
JD
22444 * search.c (Freplace_match): Use replace_range to insert
22445 and delete. Don't request property inheritance from
22446 surrounding text.
86928dfb 22447
048addec 224482001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 22449
048addec 22450 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 22451 vertical fonts. Allow them if face name is explicitly specified.
048addec 22452 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 22453
048addec 224542001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 22455
048addec
JD
22456 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
22457 instead of malloc/free.
a78e0303 22458
048addec 224592001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 22460
048addec
JD
22461 * xfaces.c (merge_face_vectors): Use braces to follow GNU
22462 Coding Standards.
22463 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 22464
048addec 22465 * buffer.c (Fbury_buffer): Likewise.
0c99b139 22466
048addec 22467 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 22468
048addec
JD
22469 * coding.c (encode_coding): Use precomputed value of `src'.
22470 (encode_coding): Remove unused variable `src_end'.
22471 (code_convert_region): Remove unused variables `count'.
830ddd77 22472
048addec 224732001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 22474
048addec
JD
22475 * w32term.c (x_display_and_set_cursor): Do not move system caret
22476 if cursor_glyph is NULL.
55c6d645 22477
048addec 224782001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 22479
048addec 22480 * keymap.c (access_keymap): Fix compilation error.
5de38842 22481
048addec 224822001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 22483
048addec 22484 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 22485
048addec 224862001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 22487
048addec
JD
22488 * intervals.c (graft_intervals_into_buffer):
22489 Remove #ifdef'd-out code.
22490 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 22491
048addec
JD
22492 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
22493 code (eval-current-buffer).
22494 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 22495
048addec 224962001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 22497
048addec 22498 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 22499
048addec 225002001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 22501
048addec 22502 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 22503
048addec
JD
22504 * keyboard.c (make_lispy_event): Check integerness and fix
22505 Lisp_Object/int mixup.
17893c65 22506
048addec 225072001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 22508
048addec 22509 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 22510
048addec
JD
22511 * fontset.c (fontset_font_pattern): Remove unused variable
22512 `family_registry'.
d5360cc7 22513
048addec 22514 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 22515
048addec 225162001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 22517
048addec 22518 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 22519
048addec
JD
22520 * buffer.c (Fkill_buffer): Don't delete auto save file
22521 if buffer is modified.
d9d54213 22522
048addec 225232001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 22524
048addec
JD
22525 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
22526 CHECK_NUMBER_CDR.
b116830b 22527
048addec 225282001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 22529
048addec 22530 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 22531
048addec 225322001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 22533
048addec 22534 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 22535
048addec 225362001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 22537
048addec 22538 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 22539
048addec 225402001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 22541
048addec
JD
22542 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
22543 the program image directly.
982f6c7e 22544
048addec 225452001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 22546
048addec 22547 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 22548
048addec 225492001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 22550
048addec
JD
22551 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
22552 and CHECK_BUFFER.
d31053f9 22553
048addec
JD
22554 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
22555 (record_char): Likewise.
d31053f9 22556
048addec
JD
22557 * keyboard.c (make_lispy_event): Don't insist a drag event must
22558 move to a different buffer position. Instead, check for moving at
22559 least double_click_fuzz.
982f6c7e 22560
048addec 22561 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 22562
048addec 22563 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 22564
048addec
JD
22565 * indent.c (current_column_1, Fmove_to_column): Separate the code
22566 for display-table glyphs from the code for buffer text, to fix
22567 bugs in the former.
830047fd 22568
048addec 225692001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 22570
048addec
JD
22571 * buffer.c (Fbuffer_local_value): New function.
22572 (syms_of_buffer): Defsubr it.
2df5238c 22573
048addec
JD
22574 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
22575 value of `cursor-in-non-selected-windows'.
4e397688 22576
048addec
JD
22577 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
22578 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
22579 (syms_of_xdisp): Initialize it.
48b0f3ae 22580
048addec 225812001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 22582
048addec 22583 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 22584
048addec
JD
22585 * coding.c: Change doc-string comments to `new style' [w/`doc:'
22586 keyword].
3ecaf7e5 22587
048addec
JD
22588 * eval.c (top_level_value, top_level_set): Remove commented and
22589 #ifdef'd-out code.
22590 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 22591
048addec 225922001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 22593
048addec 22594 * xfns.c: Include unistd.h, if it exists.
8db2e33b 22595
048addec 22596 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 22597
048addec 22598 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 22599
048addec 226002001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 22601
048addec
JD
22602 * lisp.h (CHECK_STRING_CAR): New macro.
22603 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
22604 treating XCAR and XCDR as lvalues.
22605 (openp): Use CHECK_STRING_CAR.
22606 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 22607
048addec 226082001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 22609
048addec
JD
22610 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
22611 (SIGMASKTYPE): Define.
1b1acc13 22612
048addec 22613 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 22614
048addec 226152001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 22616
048addec
JD
22617 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
22618 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
22619 Fix typos in comments.
6cb16f95 22620
048addec
JD
22621 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
22622 and #ifdef'd-out code.
22623 Fix and reindent comments.
6cb16f95 22624
048addec 22625 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 22626
048addec
JD
22627 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
22628 argument `i' in macros.
6cb16f95 22629
048addec
JD
22630 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
22631 `i' in macros.
7e9d3c2f 22632
048addec
JD
22633 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
22634 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
22635 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
22636 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
22637 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
22638 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
22639 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
22640 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
22641 in macros.
7e9d3c2f 22642
048addec
JD
22643 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22644 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
22645 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
22646 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
22647 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
22648 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
22649 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
22650 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
22651 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
22652 (remove unused second argument).
7e9d3c2f 22653
048addec 226542001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 22655
048addec
JD
22656 * syntax.c (describe_syntax): New wrapper.
22657 (Finternal_describe_syntax_value): Rename from describe_syntax.
22658 Don't insert space at front and \n at the end.
22659 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 22660
048addec
JD
22661 * regex.c (re_wctype): Try to fix some warnings.
22662 (regcomp, regexec): Don't forget the __restrict.
9ba48103 22663
048addec 226642001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 22665
048addec 22666 * textprop.c (Fget_char_property): Doc fix.
9ba48103 22667
048addec 226682001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 22669
048addec 22670 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 22671
048addec 22672 * data.c (Fsetq_default): Ditto.
c22e59e1 22673
048addec 22674 * callint.c (Finteractive): Ditto.
9271ed2c 22675
048addec 226762001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 22677
048addec
JD
22678 * macros.c: Don't include keymap.h any more.
22679
226802001-11-01 Richard M. Stallman <rms@gnu.org>
22681
22682 * data.c (Fmake_local_variable): Doc fix.
22683
22684 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
22685 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 22686
048addec 22687 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
22688 bindings along with or instead of the buffer local map.
22689 Make the overriding maps override what they should.
22690
f00691a3 226912001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
22692
22693 * window.c (grow_mini_window): Fix typo in comment.
22694
27188d11
GM
226952001-11-01 Gerd Moellmann <gerd@gnu.org>
22696
7b49b9d2
GM
22697 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
22698 (XTset_vertical_scroll_bar): Likewise.
22699
43f7c3ea
GM
22700 * xfns.c (x_build_heuristic_mask): Use four_corners_best
22701 instead of IMAGE_BACKGROUND.
c22e59e1 22702
b350c2e5
GM
22703 * xfns.c (four_corners_best): Reindent.
22704
c22e59e1 22705 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
22706 Handle :box so that it is possible to specify sexprs.
22707
bf00d461
EZ
227082001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
22709
22710 * s/hpux11.h: New file.
22711
f00691a3 227122001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 22713
2b209b97
PJ
22714 * emacs.c (USAGE1): Show command line option --no-window-system
22715 instead of --no-windows in usage.
22716 (standard_args): Rename --no-windows to --no-window-system.
22717 (bug_reporting_address): Follow Emacs coding conventions.
22718
9dbc9081
PJ
22719 * eval.c (Fcommandp): Doc fix.
22720 Change doc-string comments to `new style' [w/`doc:' keyword].
22721
4e10df59
PJ
22722 * frame.c (Fframe_live_p): Doc fix.
22723
22724 * buffer.c (selective-display-ellipses): Doc fix.
22725
dd387b25
GM
227262001-10-31 Gerd Moellmann <gerd@gnu.org>
22727
fe957e65
GM
22728 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
22729
dd387b25
GM
22730 * xfaces.c (realize_x_face): If C is not a single-byte character,
22731 set the face's colors_copied_bitwise_p instead of the defaulted_p
22732 members which have a different meaning.
22733 (free_face_colors): Do nothing for a face whose colors have been
22734 copied bitwise.
22735
c22e59e1 22736 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 22737
f00691a3 227382001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 22739
687784e8
PJ
22740 * marker.c, mocklisp.c: Change doc-string comments to `new style'
22741 [w/`doc:' keyword].
2e1280f8 22742
b9d9a9b9
GM
227432001-10-31 Gerd Moellmann <gerd@gnu.org>
22744
22745 * fns.c (require_unwind): Return Lisp_Object.
22746
f00691a3 227472001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 22748
fa1361cb
PJ
22749 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
22750 (last-input-char): Revert doc-string to be the same as the
22751 doc-string of `last-input-event'.
22752
6c465a15 22753 * xdisp.c: Fix typos in comments.
48400103 22754
eafa3196
GM
227552001-10-31 Gerd Moellmann <gerd@gnu.org>
22756
22757 * window.c (grow_mini_window): Handle case that the root
22758 window is already smaller than the nominal mininum height.
22759
747d3f2a
SM
227602001-10-30 Stefan Monnier <monnier@cs.yale.edu>
22761
bf9bb76f
SM
22762 * emacs.c (main): Don't call keys_of_macros any more.
22763
22764 * lisp.h (keys_of_macros): Remove.
22765
22766 * macros.c (keys_of_macros): Remove.
22767
747d3f2a
SM
22768 * xfaces.c (Fface_attribute_relative_p): Declare args.
22769
5e905a57
JR
227702001-10-30 Jason Rumney <jasonr@gnu.org>
22771
22772 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
22773 (enum_font_cb2): Ignore fonts with vertical orientation.
22774
3a426197
RS
227752001-10-30 Richard M. Stallman <rms@gnu.org>
22776
22777 * keyboard.c (Finput_pending_p): Doc fix.
22778
a742d646
GM
227792001-10-30 Gerd Moellmann <gerd@gnu.org>
22780
259cf6bc
GM
22781 * xterm.c (x_after_update_window_line): Don't run the code
22782 clearing in borders for rows whose visible height is 0.
22783
3f99f948
GM
22784 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
22785 resized_p flag is set. If not set, use the much less flickering
22786 method previously used.
22787
22788 * dispnew.c (change_frame_size_1): Set frame's resized_p.
22789
22790 * frame.h (struct frame) <resized_p>: New member.
22791
b4a3be43
GM
22792 * lread.c (to_multibyte): Ensure read_buffer is at least twice
22793 as large as the number of bytes to convert.
747d3f2a 22794
a742d646
GM
22795 * lread.c (to_multibyte): New function.
22796 (read1): Use it.
22797
cacbb9e9
EZ
227982001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
22799
22800 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
22801
99cb6b2f
GM
228022001-10-30 Gerd Moellmann <gerd@gnu.org>
22803
327f42ee 22804 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
22805 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
22806 if the row's fill_line_p is set and drawing the last glyph with
22807 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 22808
99cb6b2f
GM
22809 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
22810
8e8223e2
SM
228112001-10-29 Stefan Monnier <monnier@cs.yale.edu>
22812
22813 * xmenu.c: Include coding.h and charset.h.
22814 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
22815 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
22816 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
22817 Explicitly set wv->help. Use `TRUE' rather than `True'.
22818 (menu_help_callback): Use empty_string.
22819
22820 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
22821 (Fx_popup_dialog): Explicitly init f.
22822 (w32_menu_display_help): Use empty_string.
22823
4d083a8f
RS
228242001-10-29 Richard M. Stallman <rms@gnu.org>
22825
b2304472
RS
22826 * fns.c (Frequire): Detect recursive try to require the same
22827 feature 3 or more levels deep, and get error.
22828 (require_unwind): New subroutine.
22829 (require_nesting_list): New variable.
22830 (syms_of_fns): Init and staticpro it.
22831
4d083a8f
RS
22832 * print.c (print_object): Clarify indication of insertion type.
22833
2fe41216
EZ
228342001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
22835
90480000
EZ
22836 * coding.c (syms_of_coding): Document that locale-coding-system is
22837 used for decoding input on X.
22838
2fe41216
EZ
22839 * window.c (Fscroll_left, Fscroll_right): Doc fix.
22840
f00691a3 228412001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
22842
22843 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
22844 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
22845
60ebcfe8
GM
228462001-10-29 Gerd Moellmann <gerd@gnu.org>
22847
9a7bdceb
GM
22848 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
22849 use NO_CURSOR if cursor_in_non_selected_windows is false.
22850
3f08fcd2
GM
22851 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
22852 the slant attribute if FRAME is t.
22853
0ccfdad2
GM
22854 * xfns.c (x_set_internal_border_width): Set frame garbaged
22855 when X window doesn't exist yet.
22856
ef253080
GM
22857 * xterm.c (x_after_update_window_line): Clear internal border
22858 in different circumstances.
b116830b 22859
60ebcfe8
GM
22860 * xterm.c (XTread_socket) <KeyPress>: Don't use
22861 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
22862 <handa@etl.go.jp>.
22863
73d25f9c
EZ
228642001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
22865
22866 * m/ibms390.h: New file. From Adam Thornton
22867 <athornton@sinenomine.net>.
22868
cac1daf0
GM
228692001-10-28 Gerd Moellmann <gerd@gnu.org>
22870
053b3256 22871 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 22872
cac1daf0
GM
22873 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
22874 a loop counter.
22875
f00691a3 228762001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 22877
f9711de4 22878 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 22879
4707d2d0
PJ
22880 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
22881 keyword].
22882 Fix typos in comments.
b116830b 22883
d883731c
PJ
22884 * emacs.c (bug_reporting_address): New function.
22885 Use it when displaying usage message.
22886
04012254
PJ
22887 * minibuf.c (read_minibuf): Remove unused external declaration of
22888 variable `Qread_only'.
22889
13b1a09c
PJ
22890 * keymap.c (access_keymap): Remove unused variable `charset'.
22891
5bbf4378
MB
228922001-10-28 Miles Bader <miles@gnu.org>
22893
22894 * xfaces.c (merge_face_heights): Handle TO being relative as well.
22895 Remove #ifdef'd-out code.
22896 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
22897 (syms_of_xfaces): Initialize them.
22898
1ce1e4ee
JR
228992001-10-27 Jason Rumney <jasonr@gnu.org>
22900
22901 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
22902 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
22903 position using the system caret.
22904
22905 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
22906 (w32_system_caret_height, w32_system_caret_x)
22907 (w32_system_caret_y): New variables for tracking system caret.
22908 (w32_initialize): Initialize them.
c2d53558 22909 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 22910
c2d53558
SM
22911 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
22912 New messages types.
1ce1e4ee
JR
22913
22914 * w32term.c (note_mouse_highlight): Clear old help_echo.
22915
f00691a3 229162001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 22917
bb4600a4
PJ
22918 * xterm.c: Fix typo in a comment.
22919
7db35a48
PJ
22920 * emacs.c: Fix typos in comments.
22921 Remove unnecessary spaces.
22922 Change doc-string comments to `new style' [w/`doc:' keyword].
22923 (USAGE2): Fix typos in usage string.
22924
a7248e4f
PJ
22925 * xterm.c: Fix typo in a comment.
22926
52eb0373 22927 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
4e30ce42
PJ
22928 emacs.c.
22929
62725a92
GM
229302001-10-27 Gerd Moellmann <gerd@gnu.org>
22931
798dbe1f 22932 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 22933 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
22934 farther backward when target_y was not reached.
22935
62725a92
GM
22936 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
22937 Display errno only if non-zero.
22938 (sound_warning): New function.
22939 (vox_configure): Don't treat failing to set sample rate as error.
22940 (various places): Improve error messages.
22941
d4e34d24
EZ
229422001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
22943
944e6f60
EZ
22944 * fileio.c (Faccess_file): Run the argument filename through
22945 Fexpand_file_name, before using it.
22946
d4e34d24
EZ
22947 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
22948 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
22949
38d2af0c
GM
229502001-10-26 Gerd Moellmann <gerd@gnu.org>
22951
da80a8d5
GM
22952 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
22953
38d2af0c
GM
22954 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
22955 Fix clearing in the case of scroll bars on the right.
c2d53558 22956
45de4a6f 229572001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
22958
22959 * w32gui.h (XImage): Add a dummy typedef.
22960
fbd5ceb2
GM
229612001-10-26 Gerd Moellmann <gerd@gnu.org>
22962
c2d53558 22963 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 22964
b23236fb
EZ
229652001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
22966
22967 * frame.c (Fframe_parameter): Fix last change.
22968
5d991fc4
EZ
22969 * fileio.c: Revert last change (which removed old commented-out
22970 version of expand-file-name). Add a comment that explains why
22971 this old version should not be removed.
22972
879eadc3
GM
229732001-10-25 Gerd Moellmann <gerd@gnu.org>
22974
75700ff2
GM
22975 * frame.c (Fframe_parameter): Fix a bug whereby some
22976 ``artificial'' frame parameters, like `minibuffer' were not
22977 obtained by calling Fframe_parameters.
22978
dfe92a6a
GM
22979 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
22980 cursor differently.
22981
879eadc3
GM
22982 * xdisp.c (move_it_vertically_backward): Compute line height
22983 differently. Add heuristic to try to be more compatible to 20.x.
22984
e1010ebe
SM
229852001-10-25 Stefan Monnier <monnier@cs.yale.edu>
22986
d73a471b
SM
22987 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
22988
d6da5a06
GM
22989 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
22990 boolean.
e1010ebe 22991
f66bd220
MB
229922001-10-25 Miles Bader <miles@gnu.org>
22993
22994 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
22995 BG is a pointer to a structure, not a structure.
22996 (gif_format, png_format): Add missing commas.
22997
d436d538
RS
229982001-10-24 Richard M. Stallman <rms@gnu.org>
22999
23000 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 23001 (syms_of_xfaces): Defsubr it.
d436d538 23002
f00691a3 230032001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
23004
23005 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
23006 variable `area'.
23007
f00691a3 230082001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 23009
c2d53558 23010 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 23011
e2a57b34
MB
230122001-10-25 Miles Bader <miles@gnu.org>
23013
23014 * dispextern.h (struct image): Add `background',
23015 `background_valid', and `background_transparent' fields.
23016 (image_background, image_background_transparent): New declarations.
23017 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
23018 * xfns.c (image_background, image_background_transparent)
23019 (four_corners_best): New functions.
c2d53558 23020 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
23021 (gs_format): Add `:background' entry.
23022 (lookup_image): Set IMG's background color if specified.
23023 (pbm_load, xbm_load_image, png_load): Set IMG's background field
23024 when appropriate.
23025 (x_clear_image_1): Reset `background_valid' and
23026 `background_transparent_valid' fields.
23027 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
23028 calculating it here. Set IMG's background_transparent field.
23029 (enum xpm_keyword_index): Add XPM_BACKGROUND.
23030 (enum png_keyword_index): Add PNG_BACKGROUND.
23031 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
23032 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
23033 (enum gif_keyword_index): Add GIF_BACKGROUND.
23034 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 23035 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
23036 Pre-calculate image background color where necessary.
23037 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
23038 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
23039 color to use for image glyph reliefs.
23040
b547b6e8
GM
230412001-10-24 Gerd Moellmann <gerd@gnu.org>
23042
d9e3b8c6
GM
23043 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
23044 in full-width rows.
c2d53558 23045
b547b6e8
GM
23046 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
23047 Fix clearing of area not covered by scroll bar.
23048
f00691a3 230492001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9 23050
52eb0373 23051 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
2beb36f9 23052 and `real_start'.
c2d53558 23053 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
23054 (glyph_rect): Remove unused variable `area'.
23055
76cb5e06
GM
230562001-10-24 Gerd Moellmann <gerd@gnu.org>
23057
bdbdebff 23058 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
23059
23060 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
23061 (row_containing_pos): Take additional argument DY.
23062 Treat rows ending in middle of char differently.
62e33982
GM
23063 (display_line): Handle tabs on window systems differently.
23064
23065 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
23066 with additional argument.
23067
23068 * dispextern.h (row_containing_pos): Adjust prototype.
23069
76cb5e06
GM
23070 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
23071 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
23072 (try_window_id, try_window_reusing_current_matrix)
23073 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 23074 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 23075
f00691a3 230762001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 23077
c9e60620
PJ
23078 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
23079 gnuemacs).
23080 (HAVE_BOXES): Fix typo in comment.
23081 (push_menu_pane): Fix typo in comment.
23082
52eb0373 23083 * xdisp.c (display_prop_string_p): Remove unused local declaration
3b552d56
PJ
23084 of `Qwhen'.
23085 (single_display_prop_string_p): Remove unused local declarations
23086 of `Qwhen' and `Qmargin'.
23087 (string_buffer_position): Remove unused variable `around'.
23088 (store_frame_title): Remove unused variable `width'.
23089
15c565ac
PJ
23090 * window.c: Don't define max.
23091 (coordinates_in_window): Remove unused variable `uy'.
23092
a8818eb9
PJ
23093 * widget.c: Don't define max.
23094
996fee11
PJ
23095 * process.c: Don't define max.
23096 (create_process): Remove unused variable `buffer'.
23097
496e1a5b
GM
230982001-10-23 Gerd Moellmann <gerd@gnu.org>
23099
c2d53558 23100 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 23101
5905ae8b
EZ
231022001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
23103
23104 * xfaces.c (Finternal_set_lisp_face_attribute)
23105 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
23106 frame is on a windowed display.
23107
24db49fb
GM
231082001-10-23 Gerd Moellmann <gerd@gnu.org>
23109
c2d53558
SM
23110 * dispnew.c (sync_window_with_frame_matrix_rows):
23111 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
23112 of marginal areas.
23113
c2d53558 23114 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 23115
f0487f05
EZ
231162001-10-23 Andreas Schwab <schwab@suse.de>
23117
23118 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
23119 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
23120
f0a48a01
GM
231212001-10-23 Gerd Moellmann <gerd@gnu.org>
23122
c2d53558 23123 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
23124 REAL_END. Notice if cursor gets overwritten.
23125 (notice_overwritten_cursor): Take X positions as parameters.
23126 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
23127 around call to x_draw_glyphs.
23128
f00691a3 231292001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 23130
fc11dff0
PJ
23131 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
23132 instead of C) and usage.
a50a10a0 23133
fc11dff0
PJ
23134 * editfns.c (char-to-string): Fix argument names (use CHAR instead
23135 of C) and usage.
a50a10a0
PJ
23136
23137 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
23138 `left', `max_width' and `max_height'.
23139
8738febd
GM
231402001-10-23 Gerd Moellmann <gerd@gnu.org>
23141
23142 * xdisp.c (display_line): For a tab continued to the next line,
23143 set row's ends_in_middle_of_char_p.
23144
653c329b
GM
231452001-10-22 Gerd Moellmann <gerd@gnu.org>
23146
23147 * xdisp.c (display_line): Fix computation of continuation lines
23148 width for TABs.
23149
f00691a3 231502001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 23151
7ba51063
PJ
23152 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
23153 `Qlaplace'.
23154
f958c5ac
PJ
23155 * fileio.c: Remove unused code.
23156
eb360291
MB
231572001-10-22 Miles Bader <miles@gnu.org>
23158
23159 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
23160 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
23161 Remove `DOC_STRINGS_IN_COMMENTS' cases.
23162
98515cf0
JR
231632001-10-21 Jason Rumney <jasonr@gnu.org>
23164
23165 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
23166
93026d88
EZ
231672001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
23168
23169 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
23170 (Finsert_string): Avoid the multi-line string literals warning.
23171
c9a95b79
MB
231722001-10-22 Miles Bader <miles@gnu.org>
23173
23174 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
23175 (Fdocumentation): Don't use it.
23176 (syms_of_doc): Don't initialize it.
23177
23178 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
23179 * print.c (Fwith_output_to_temp_buffer): Likewise.
23180 * window.c (Fsave_window_excursion): Likewise.
c2d53558 23181 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 23182 (Fsave_restriction): Likewise.
c2d53558
SM
23183 * eval.c (Frun_hooks, Frun_hook_with_args)
23184 (Frun_hook_with_args_until_failure)
23185 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
23186 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
23187 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
23188 (Funwind_protect, Fcondition_case): Likewise.
23189 * coding.c (Ffind_operation_coding_system): Likewise.
23190 * keyboard.c (Ftrack_mouse): Likewise.
23191
a3b10252
MB
231922001-10-21 Miles Bader <miles@gnu.org>
23193
c2d53558 23194 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
23195 (Fmake_hash_table): Add usage: string to doc string.
23196 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 23197 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
23198 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
23199 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
23200 (Fml_prefix_argument_loop): Likewise.
23201
f00691a3 232022001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 23203
c2d53558 23204 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 23205
c6f73eec
PJ
23206 * sysdep.c (init_sys_modes): Change doc-string comments to `new
23207 style' [w/`doc:' keyword].
23208
23209 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
23210 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
23211 comments to `new style' [w/`doc:' keyword].
23212
3cf3436e
JR
232132001-10-21 Jason Rumney <jasonr@gnu.org>
23214
23215 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
23216
c169b8f1
JR
23217 * w32term.c (remember_mouse_glyph): New function.
23218 (w32_mouse_position): Use it.
23219 (note_mouse_movement): If the mouse moved off the glyph, remember
23220 its new position.
c2d53558 23221
4fdd691b
JR
23222 * w32term.h (struct w32_output): Correct spelling of x_compatible.
23223 (w32_display_info): Add mouse_face_overlay.
23224
c169b8f1
JR
23225 * w32term.c (notice_overwritten_cursor): Renamed from
23226 note_overwritten_text_cursor. Rewritten to take glyph widths into
23227 account.
23228 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
23229 (fast_find_string_pos): New function.
23230 (fast_find_position): Return the correct vpos. Add parameter
23231 STOP. In the final row, stop before glyphs having STOP as object.
23232 Don't consider glyphs that are not from a buffer.
23233 (fast_find_position) [0]: Add a presumably more correct version
23234 for after 21.1.
23235 (expose_window_tree, expose_frame): Don't compute intersections here.
23236 (expose_window): Do it here instead.
23237 (expose_window_tree, expose_window, expose_line): Return 1 when
23238 overwriting mouse-face.
23239 (expose_window): If W is the window currently being updated, mark
23240 the frame garbaged.
23241 (expose_frame): If mouse-face was overwritten, redo it.
23242 (x_use_underline_position_properties): New variable.
23243 (syms_of_xterm): DEFVAR_BOOL it.
23244 (x_draw_glyph_string): Add comment to use it in future.
23245 (x_draw_glyph_string): Restore clipping after drawing box.
23246 Fix a computation of the underline position.
23247 (w32_get_glyph_string_clip_rect): Minor cleanup.
23248 (x_fill_stretch_glyph_string): Remove an assertion.
23249 (x_produce_glyphs): Don't convert multibyte characters
23250 to unibyte characters in unibyte buffers.
23251 (cursor_in_mouse_face_p): New function.
23252 (x_draw_stretch_glyph_string): Use it to choose a different GC
23253 when drawing a cursor within highlighted text. Don't draw
23254 background again if it has already been drawn.
23255 (x_draw_glyph_string_box): Don't draw a full-width
23256 box just because the glyph row's full_width_p flag is set.
23257 (x_draw_glyphs): Fix computation of rightmost x for
23258 full-width rows.
23259 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
23260 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 23261 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
23262 (x_update_window_end): Handle overwritten mouse face
23263 also for tool bar windows.
23264 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
23265 DRAW is DRAW_IMAGE_RAISED.
23266 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
23267 actually redrawn. Make the function static.
23268 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
23269 optimize away highlighting if we pass over that same overlay again.
23270 (note_mouse_highlight): Call mouse_face_overlay_overlaps
23271 to detect a case where we have to highlight a different region
23272 despite not having left the currently highlighted region.
23273 Set mouse_face_overlay in the x_display_info. Avoid changing the
23274 mouse pointer shape when show_mouse_face has already done it, or
23275 there is no need. Handle mouse-face and help-echo in strings.
23276 (glyph_rect): New function.
23277 (w32_mouse_position): Use it to raise the threshold for mouse
23278 movement event generation.
23279 (w32_initialize_display_info): Initialize the x_display_info's
23280 mouse_face_overlay.
23281 (w32_set_vertical_scroll_bar): Don't clear a zero height
23282 or width area.
23283 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
23284 a widget to zero height.
23285
3cf3436e 23286 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 23287 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
23288 equivalents in menu_items.
23289 (w32_menu_show): Don't overwrite an item's name with its key
23290 description in case the description is a multibyte string.
23291 (single_submenu): Some cleanup.
23292
23293 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
23294 (postprocess_image): New function.
23295 (lookup_image): Call it for all image types except PostScript.
23296 (x_kill_gs_process): Call postprocess_image.
23297 (tiff_error_handler, tiff_warning_handler): New functions.
23298 (tiff_load): Install them as handlers.
23299 (x_kill_gs_process): Recognize if someone has cleared the image
23300 cache under us.
23301 (valid_image_p): Protect better against invalid image
23302 specifications. Previous code could signal an error.
23303 (Fx_hide_tip, Fshow_tip): Doc fix.
23304 (Fv_max_tooltip_size): New variable.
23305 (syns_of_xfns): DEFVAR_LISP it.
23306 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 23307 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
23308 window_width. Use a maximum tooltip size specified by
23309 Vx_max_tooltip_size, if that has valid contents.
23310 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
23311 Make sure the tooltip is completely visible.
23312 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
23313 (Fx_create_frame): Adjust the frame's height for presence
23314 of the tool bar before calling x_figure_window_size.
23315 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
23316 when the window gets smaller.
23317 (x_set_foreground_color): Set frame's cursor_pixel.
23318 (x_set_foreground_color, x_set_background_color): Cleaned up.
23319 (x_set_font): Handle case of x_new_fontset returning the same name
23320 as before, although there was a change in fontsets.
23321
386ca361
MB
233222001-10-21 Miles Bader <miles@gnu.org>
23323
c2d53558 23324 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
23325 (Flogxor): Add usage: string to doc string.
23326 * charset.c (Fstring): Likewise.
23327 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
23328 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
23329
f00691a3 233302001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 23331
03be2694
PJ
23332 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
23333
23334 * alloc.c: Reindent DEFUNs with doc: keywords.
23335
23336 * abbrev.c (Finsert_abbrev_table_description): Reindent.
23337
14ff1ee0
PJ
23338 * frame.c: Change doc-string comments to `new style' [w/`doc:'
23339 keyword].
23340
2f147815 23341See ChangeLog.9 for earlier changes.
6922b018
KH
23342
23343;; Local Variables:
49b3bd82 23344;; coding: iso-2022-7bit
6922b018 23345;; End:
2a34a036 23346
aaef169d
TTN
23347 Copyright (C) 2001, 2002, 2003, 2004, 2005,
23348 2006 Free Software Foundation, Inc.
2a34a036
GM
23349 Copying and distribution of this file, with or without modification,
23350 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
23351
23352;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4