]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(redisplay_window): Fix last change. Don't recenter if
[gnu-emacs] / src / ChangeLog
1 2006-04-21 Kim F. Storm <storm@cua.dk>
2
3 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
4 window start is at BEGV.
5
6 * dispextern.h (struct image): New member `corners'.
7 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
8
9 * image.c (four_corners_best): New arg CORNERS specifies what pixels
10 to look at in case image has margin.
11 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
12 (image_background, image_background_transparent)
13 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
14 (gif_load): Set img->corners according to image's margin spec.
15 Use img->corners values directly where applicable.
16 Save image extension data in img->data.lisp_val.
17 (gif_clear_image): New function to free img->data.lisp_val.
18 (gif_type): Use it instead of generic x_clear_image.
19 (Fimage_extension_data): New defun.
20 (syms_of_image): Defsubr it.
21
22 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
23
24 * window.c (Fdisplay_buffer): Doc fix.
25
26 2006-04-21 Eli Zaretskii <eliz@gnu.org>
27
28 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
29
30 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31
32 * image.c [MAC_OS] (xpm_load_image): Fill in background field
33 while we have ximg handy.
34
35 * macmenu.c (restore_menu_items, save_menu_items): New functions
36 from xmenu.c.
37 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
38 changes for xmenu.c.
39
40 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
41 (add_mac_font_name): New function.
42 (init_font_name_table): Use it. Adopt the first found font from
43 those having the same family name.
44
45 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
46
47 * xdisp.c (note_mouse_highlight): Use build_string.
48
49 2006-04-20 Lars Hansen <larsh@soem.dk>
50
51 * textprop.c (Fremove_list_of_text_properties): Ensure
52 modify_region is called only when buffer is modified and that
53 signal_after_change is allways called in that case.
54
55 * print.c (PRINTFINISH): Call signal_after_change.
56
57 2006-04-20 Kim F. Storm <storm@cua.dk>
58
59 * xdisp.c (redisplay_window): Fix last change.
60
61 * xdisp.c (redisplay_window): If current window start is not at the
62 beginning of a line, select a new window start if buffer is modified
63 and window start is in the modified region, but the first change is
64 before window start.
65
66 2006-04-18 Richard Stallman <rms@gnu.org>
67
68 * xmenu.c (restore_menu_items, save_menu_items): New fns.
69 (set_frame_menubar): Use save_menu_items. Save updated vector in
70 the frame before unwinding it. Don't use unuse_menu_items. Don't
71 use discard_menu_items.
72 (digest_single_submenu): Abort if an item is not in a pane.
73 (init_menu_items): Put the error check at the top.
74
75 * keymap.c (describe_map): Make "shadowed" warning more verbose.
76
77 * window.c (adjust_window_trailing_edge): Correctly distinguish
78 series vs parallel cases, even when window has no parent.
79
80 * abbrev.c (record_symbol): New function.
81 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
82
83 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
84
85 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
86 value of xmalloc.
87
88 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
89 (create_apple_event_from_event_ref, xrm_get_preference_database)
90 (cfstring_create_normalized): Don't check return value of xmalloc.
91
92 * macselect.c (get_scrap_target_type_list, defer_apple_events)
93 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
94 return value of xmalloc/xrealloc.
95
96 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
97 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
98 (XLoadQueryFont, mac_store_apple_event): Don't check return value
99 of xmalloc.
100
101 2006-04-17 Kim F. Storm <storm@cua.dk>
102
103 * window.c (coordinates_in_window): On the vertical border,
104 calculate the row number measured from the top of the window, not
105 the top of the frame.
106 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
107 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
108
109 2006-04-16 Eli Zaretskii <eliz@gnu.org>
110
111 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
112
113 2006-04-16 Romain Francoise <romain@orebokech.com>
114
115 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
116
117 2006-04-16 Andreas Schwab <schwab@suse.de>
118
119 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
120
121 2006-04-15 Romain Francoise <romain@orebokech.com>
122
123 * puresize.h (BASE_PURESIZE): Increment to 1210000.
124
125 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org> (tiny change)
126
127 * print.c (Fprin1_to_string): Mention in the `doc' that the
128 behavior is modified by `print-level' and `print-length'.
129
130 2006-04-13 Kenichi Handa <handa@m17n.org>
131
132 * coding.c (setup_coding_system): If eol-type is not yet decided
133 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
134 If coding_system is nil, return 0.
135 (code_convert_region1): Even if coding_system is nil, don't skip
136 conversion if system_eol_type is not LF.
137 (code_convert_string1): Likewise.
138 (code_convert_string_norecord): Likewise.
139
140 2006-04-13 Kenichi Handa <handa@m17n.org>
141
142 * coding.c (setup_coding_system): Fix previous change.
143 (encode_coding): If eol_type is not yet decided, use
144 system_eol_type.
145 (shrink_encoding_region): If eol_type is not yet decided and
146 system_eol_type is not LF, don't shrink.
147
148 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
149
150 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
151 line.
152
153 2006-04-12 Richard Stallman <rms@gnu.org>
154
155 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
156
157 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
158 (Fprocess_send_eof): Abort if fail to open null device.
159
160 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
161
162 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
163
164 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
165 assignment used as truth value. Add explicit braces to avoid
166 ambiguous `else'.
167 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
168
169 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
170 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
171 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
172 Put externs in #ifdef HAVE_X_WINDOWS.
173 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
174 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
175 (init_mac_osx_environment) [MAC_OSX]: Add extern.
176
177 * mac.c (init_process): Remove undef.
178 (select) [MAC_OSX]: Undefine before including sysselect.h.
179 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
180 Remove functions and prototypes.
181 (parse_value): Add parentheses around + inside shift.
182 (path_from_vol_dir_name): Make static.
183 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
184 [!MAC_OSX] (get_path_to_system_folder): Likewise.
185 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
186 variable `cCode'.
187 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
188 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
189
190 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
191 (x_set_mouse_color): Remove unused variable `dpy'.
192 (Fx_create_frame): Remove unused variable `x_frame_count'.
193 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
194 (x_sync): Move from macterm.c.
195 (Fx_file_dialog): Remove unused variable `default_filter_index'.
196
197 * macmenu.c (min_menu_id): Make element type explicit.
198
199 * macselect.c (get_flavor_type_from_symbol): Remove unused
200 variable `val'.
201 (get_scrap_private_timestamp, x_get_foreign_selection)
202 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
203 (Fmac_process_deferred_apple_events): Remove unused variables
204 `keyword', `reply', `apple_event', `count', and `err'.
205
206 * macterm.c: Don't include gnu.h.
207 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
208 (x_sync): Move to macfns.c.
209 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
210 variable `mask_bits'.
211 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
212 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
213 (x_mac_to_emacs_modifiers): Remove function.
214 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
215 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
216 Add explicit braces to avoid ambiguous `else'.
217 (x_make_frame_visible): Remove unused variables `type',
218 `original_top', and `original_left'.
219 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
220 (x_load_font): Remove unused variables `full_name', and `value'.
221 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
222 Remove functions.
223 (do_zoom_window): Reorganize variables with respect to conditionals.
224 (init_command_handler): Remove unused variable `err'.
225 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
226
227 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
228 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
229 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
230 (do_menu_choice, have_menus_p, x_real_positions)
231 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
232 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
233 (free_frame_menubar): Add externs.
234
235 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
236 (malloc, realloc, free): Add undefs.
237 (read_load_commands): Remove unused variable `n' and `j'.
238 (copy_data_segment): Remove unused variable `r'.
239
240 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
241 within ||. Add explicit braces to avoid ambiguous `else'.
242 (dump_glyph_row): Remove label for `inverse_p' from legend.
243
244 * xfaces.c (Finternal_merge_in_global_face, try_font_list): Add
245 explicit braces to avoid ambiguous `else'.
246
247 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org> (tiny change)
248
249 * dispnew.c (init_display): Don't init X display if the user asked
250 for a non-X display.
251
252 2006-04-12 Kenichi Handa <handa@m17n.org>
253
254 * coding.c (setup_coding_system): Use system_eol_type for default
255 coding->eol_type.
256
257 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
258
259 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
260
261 * data.c (wrong_type_argument): Try to avoid compiler warnings due
262 to the fact the function is now marked as NO_RETURN.
263
264 2006-04-10 Eli Zaretskii <eliz@gnu.org>
265
266 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
267
268 2006-04-10 Romain Francoise <romain@orebokech.com>
269
270 * xrdb.c (gethomedir): Use xstrdup.
271
272 2006-04-10 Andreas Schwab <schwab@suse.de>
273
274 * xrdb.c (gethomedir): Make sure to always return a pointer that
275 can be passed to free.
276
277 2006-04-09 Richard Stallman <rms@gnu.org>
278
279 * lisp.h (Fkill_emacs): Undo previous change.
280
281 2006-04-08 Richard Stallman <rms@gnu.org>
282
283 * search.c (boyer_moore): Test ch >= 0400, not >.
284
285 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
286
287 * puresize.h (pure_write_error): Mark as NO_RETURN.
288
289 * lisp.h (args_out_of_range, args_out_of_range_3)
290
291 2006-04-08 Eli Zaretskii <eliz@gnu.org>
292
293 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
294 if a menu is active on this frame.
295
296 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
297
298 * lisp.h (report_file_error): Mark as NO_RETURN.
299
300 2006-04-08 Eli Zaretskii <eliz@gnu.org>
301
302 * alloc.c [STDC_HEADERS]: Include stddef.h.
303
304 * lisp.h (PSEUDOVECSIZE): Fix last change.
305
306 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
307
308 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
309 `raw_status_high', and `raw_status_low' with plain integers, and move
310 them to the end of the structure.
311
312 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
313 pseudovector's size field so only the Lisp_Object fields get GC'd.
314
315 * process.c (update_status, make_process, Fdelete_process)
316 (Fprocess_status, list_processes_1, start_process_unwind)
317 (create_process, Fmake_network_process, server_accept_connection)
318 (wait_reading_process_output, send_process, Fprocess_running_child_p)
319 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
320 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
321 `pid' and `raw_status'.
322 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
323 representing PIDs that are larger than most-positive-fixnum.
324
325 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
326
327 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
328
329 2006-04-08 Eli Zaretskii <eliz@gnu.org>
330
331 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
332
333 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
334
335 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
336 ../lib-src/b2m.c and ../lib-src/editfns.c.
337 (Fcurrent_time_string): Use it.
338 Document that the year might not consume 4 columns if it's outside
339 the range 1000-9999.
340 Check for asctime failure.
341 Don't assume that the output string length is always exactly 24.
342
343 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
344
345 * macterm.c (XTread_socket): Initialize variable `f' before its use.
346
347 2006-04-03 Kenichi Handa <handa@m17n.org>
348
349 * image.c: Include "charset.h" and "coding.h".
350 (x_find_image_file): Return an encoded file name.
351
352 2006-04-01 Eli Zaretskii <eliz@gnu.org>
353
354 * configure: Regenerated.
355
356 2006-03-31 Kenichi Handa <handa@m17n.org>
357
358 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
359
360 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
361
362 * xdisp.c (syms_of_xdisp): Fix variable name.
363
364 2006-03-30 Kenichi Handa <handa@m17n.org>
365
366 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
367
368 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
369
370 * keyboard.c (process_tool_bar_item): Reorder dummy args.
371
372 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
373
374 * keyboard.c (tool_bar_items): Use map_keymap.
375 (process_tool_bar_item): Add dummy args to fit the required interface.
376
377 2006-03-25 Eli Zaretskii <eliz@gnu.org>
378
379 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
380 to zero before calling debug_print or safe_debug_print.
381
382 * print.c (print_output_debug_flag): New global variable.
383 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
384 OutputDebugString if print_output_debug_flag is zero.
385
386 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
387
388 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
389 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
390 (Fdecode_time): Cast tm_year to EMACS_INT.
391 (Fcurrent_time_string): Report an invalid time specification if
392 the argument is invalid. Also, check for out-of-range time stamps.
393
394 2006-03-24 Kim F. Storm <storm@cua.dk>
395
396 * xterm.c (handle_one_xevent):
397 * w32term.c (w32_read_socket):
398 * macterm.c (XTread_socket): Don't let key-press clear mouse face
399 on in toolbar window if mouse-highlight is an integer.
400
401 * fns.c (sxhash_list): Include last non-nil CDR in hash.
402
403 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
404
405 * macmenu.c (enum mac_menu_kind): New enum.
406 (min_menu_id): New variable.
407 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
408 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
409 min_menu_id and enumerators in enum mac_menu_kind.
410 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
411 All uses changed. Add range check for menu ID.
412 (fill_menubar): Add range check for menu ID.
413 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
414 GetEventParameter.
415 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
416 for each menu kind.
417
418 2006-03-22 Kim F. Storm <storm@cua.dk>
419
420 * xdisp.c: Undo 2006-03-21 change.
421
422 * term.c: Define aliases for append_glyph and produce_stretch_glyph
423 when `static' is defined to avoid name clash with those in xdisp.c.
424
425 * process.c (Faccept_process_output): Fix to comply with lisp reference.
426 Change arg "timeout" to "seconds" and allow both integer and float value.
427 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
428 rather than microseconds. Fix doc string accordingly.
429
430 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
431
432 * xdisp.c (store_next_glyph): Rename from append_glyph.
433 (generate_stretch_glyph): Rename from produce_stretch_glyph.
434 All callers changed accordingly.
435
436 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
437
438 * xterm.c: x_session_initialized new variable.
439 (x_term_init): Use x_session_initialized to check if
440 x_session_initialize should be called.
441 (x_initialize): Initialize x_session_initialized.
442
443 2006-03-21 Kim F. Storm <storm@cua.dk>
444
445 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
446 bitmap here, but ...
447 (update_window_fringes): ... here, so we can test if it has changed.
448
449 2006-03-20 Andreas Schwab <schwab@suse.de>
450
451 * dispnew.c (init_display): Check DISPLAY here.
452
453 * emacs.c (main): Don't check here.
454
455 * xterm.c (x_display_ok): Don't use DISPLAY env var.
456
457 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
458
459 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
460 mixup (YAILOM).
461
462 2006-03-20 Eli Zaretskii <eliz@gnu.org>
463
464 * emacs.c (main): Fix last change.
465
466 2006-03-20 Kenichi Handa <handa@m17n.org>
467
468 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
469
470 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
471
472 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
473
474 * xterm.c (x_term_init): Remove unnecessary GCPRO.
475
476 2006-03-19 Kim F. Storm <storm@cua.dk>
477
478 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
479 so it doesn't associate overlay string with following glyph by default.
480 Allow integer property value to specify explicit number of buffer
481 positions associate with overlay string.
482
483 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
484
485 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
486
487 2006-03-18 Nozomu Ando <nand@mac.com>
488
489 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
490 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
491 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
492 Don't redefine.
493
494 * m/mips.h: Don't use unexmips on NetBSD.
495 (LIBS_MACHINE): Move definition lower, so it doesn't use
496 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
497 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
498
499 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
500 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
501 option is broken (e.g., MIPS/NetBSD).
502
503 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
504
505 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
506 Remove the HAVE_X_WINDOWS conditional.
507
508 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
509
510 * emacs.c (main): If user asks for a display that is unavailable,
511 simulate -nw.
512
513 * xterm.c (x_display_ok): New function.
514
515 * xterm.h: Add prototype for x_display_ok.
516
517 2006-03-18 Eli Zaretskii <eliz@gnu.org>
518
519 * w32fns.c (Fw32_select_font): Doc fix.
520
521 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
522
523 * image.c [MAC_OS] (XPutPixel, XGetPixel)
524 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
525 version when depth is 32.
526 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
527 New function.
528 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
529 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
530
531 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
532 Create GWorld in ARGB pixel format.
533 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
534 Remove functions.
535 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
536 instead of mac_copy_area/mac_copy_area_with_mask.
537
538 2006-03-15 Kim F. Storm <storm@cua.dk>
539
540 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
541 empty row. Fixes memory corruption revealed by 2006-03-02 change.
542 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
543 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
544 width is exactly the same as the window width. Don't count a final
545 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
546
547 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
548
549 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
550 conditional on HAVE_NTGUI, not WINDOWS_NT.
551
552 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
553
554 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
555
556 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
557
558 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
559 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
560 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
561 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
562 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
563 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
564 instead of mac_draw_bitmap.
565 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
566 define_fringe_bitmap and destroy_fringe_bitmap.
567
568 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
569
570 * xterm.c (x_uncatch_errors): Block input for entire function.
571
572 2006-03-12 Jason Rumney <jasonr@gnu.org>
573
574 * w32fns.c (Fx_create_frame): Remove call to
575 Qface_set_after_frame_default (from xfns.c 2003-05-26).
576
577 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
578 finished with the menu.
579
580 * w32term.c: Sync 2005-10-24 xterm.c changes.
581 (last_mouse_glyph_frame): New var.
582 (note_mouse_movement): Say mouse moved if current frame differs
583 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
584 (w32_mouse_position): Set last_mouse_glyph_frame.
585 Remove OLD_REDISPLAY_CODE block.
586
587 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
588
589 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
590
591 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
592 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
593
594 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
595
596 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
597
598 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
599 (x_draw_composite_glyph_string_foreground)
600 (x_draw_image_foreground): Undo previous changes.
601 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
602 argument of mac_draw_rectangle.
603 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
604 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
605 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
606 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
607 [USE_CG_DRAWING]: New functions.
608 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
609 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
610 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
611 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
612 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
613 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
614 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
615
616 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
617
618 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
619
620 2006-03-11 Jason Rumney <jasonr@gnu.org>
621
622 * w32fns.c (signal_user_input): New function.
623 (post_character_message): Use it for keyboard input.
624 (w32_msg_pump): Use it for mouse input.
625
626 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
627
628 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
629 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
630
631 2006-03-11 Eli Zaretskii <eliz@gnu.org>
632
633 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
634 if a menu is already active (the menubar_active flag is on).
635
636 2006-03-11 David Ponce <david@dponce.com>
637
638 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
639
640 2006-03-11 Eli Zaretskii <eliz@gnu.org>
641
642 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
643 the list of unused display error handling functions.
644
645 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
646 HAVE_X_WINDOWS.
647 (internal_condition_case, internal_condition_case_1)
648 (internal_condition_case_2): Call x_catching_errors only if
649 HAVE_X_WINDOWS.
650
651 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
652 Don't include sys/resource.h unless defined.
653
654 2006-03-11 Richard Stallman <rms@gnu.org>
655
656 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
657
658 * vm-limit.c (get_lim_data, lim_data, data_space_start):
659 Move from mem-limits.h.
660 (enum warnlevel): New data type.
661 (check_memory_limits): Rewrite the logic about warnings.
662 Use standard `struct rlimit'. Check return values for nonsense.
663 (memory_warnings): Always clear lim_data.
664
665 * mem-limits.h (get_lim_data, lim_data, data_space_start):
666 Move to vm-limit.c.
667
668 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
669
670 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
671 (internal_condition_case_1, internal_condition_case_2):
672 Abort if within unclosed x_catch_errors.
673
674 2006-03-11 Romain Francoise <romain@orebokech.com>
675
676 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
677
678 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
679
680 * lisp.h: Remove duplicate prototypes. Make the prototype of
681 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
682
683 2006-03-11 Eli Zaretskii <eliz@gnu.org>
684
685 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
686 argument of XDrawRectangle.
687
688 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
689
690 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
691 (x_draw_glyph_string_foreground)
692 (x_draw_composite_glyph_string_foreground)
693 (x_draw_image_foreground): Don't subtract 1 from width and height
694 arguments to mac_draw_rectangle.
695 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
696
697 2006-03-10 Kim F. Storm <storm@cua.dk>
698
699 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
700
701 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
702
703 * alloc.c (USE_POSIX_MEMALIGN): New macro.
704 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
705
706 2006-03-09 Kenichi Handa <handa@m17n.org>
707
708 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
709 ASCII component of a composition.
710
711 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
712
713 * window.c: Declare preserve_y as a static global variable.
714 (window_scroll_pixel_based): No longer declare preserve_y;
715 it is global now.
716 (syms_of_window): Set preserve_y to -1.
717
718 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
719
720 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
721 depth is 32.
722 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
723 depth is 32.
724
725 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
726
727 * xdisp.c (handle_invisible_prop): Don't update it->position with
728 a buffer position if we're in a display string.
729
730 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
731
732 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
733 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
734
735 * macfns.c (x_default_scroll_bar_color_parameter)
736 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
737 Remove unnecessary prototypes.
738 (x_set_scroll_bar_default_width):
739 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
740 (mac_set_scroll_bar_width): New function.
741 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
742
743 * macterm.c (get_control_part_bounds): Fix type of return value.
744 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
745 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
746 scroll bar if it is not tall enough to display scroll bar thumb.
747 [USE_CARBON_EVENTS] (mac_convert_event_ref)
748 (mac_handle_command_event, mac_handle_window_event)
749 (mac_handle_mouse_event): Check error code of GetEventParameter.
750 (convert_fn_keycode) [MAC_OSX]: Likewise.
751
752 2006-03-05 Andreas Schwab <schwab@suse.de>
753
754 * xselect.c (x_catch_errors_unwind): Fix missing return value.
755
756 2006-03-02 Kim F. Storm <storm@cua.dk>
757
758 * frame.h (struct frame): New member n_tool_bar_rows.
759
760 * xdisp.c: Minimize the unpleasent visual impact of the requirement
761 that non-toolkit tool-bars must occupy an integral number of screen
762 lines, by distributing the rows evenly over the tool-bar screen area.
763 (Vtool_bar_border): New variable.
764 (syms_of_xdisp): DEFVAR_LISP it.
765 (display_tool_bar_line): Add HEIGHT arg for desired row height.
766 Make tool-bar row the desired height. Use default face for border
767 below tool-bar.
768 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
769 actual tool-bar rows.
770 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
771 Adjust the height of the tool-bar rows to fill tool-bar screen area.
772 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
773 is resized.
774
775 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
776
777 * search.c (Fregexp_quote): Do not precede a literal `]' with two
778 backslashes to try to make clear that it has a literal meaning; it
779 does not do that. (It could close a character alternative
780 containing a backslash.)
781
782 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
783
784 * xselect.c (x_catch_errors_unwind): New function.
785 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
786 (Fx_get_atom_name): Call x_uncatch_errors earlier.
787
788 * window.c (Qscroll_up, Qscroll_down): New syms.
789 (window_scroll_pixel_based): Make preserve_y static to avoid
790 getting point stuck when scrolling 1 line.
791
792 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
793
794 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
795
796 * xterm.c (x_load_font, x_term_init, XTmouse_position)
797 (handle_one_xevent, x_connection_closed, x_list_fonts):
798 No arg for x_uncatch_errors.
799
800 * xselect.c (x_own_selection, x_decline_selection_request)
801 (x_reply_selection_request, x_get_foreign_selection)
802 (Fx_get_atom_name, Fx_send_client_event): Likewise.
803
804 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
805 Likewise.
806
807 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
808
809 * lread.c: Declare Vload_file_rep_suffixes instead of
810 deleted variable default_suffixes.
811 (Fget_load_suffixes): New function.
812 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
813 No longer use deleted variable default_suffixes. Update docstring.
814 (syms_of_lread): defsubr Sget_load_suffixes.
815 Expand `load-suffixes' docstring.
816 Delete default_suffixes and DEFVAR_LISP the new variable
817 `load-file-rep-suffixes'.
818
819 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
820 of Vload_suffixes.
821
822 * lisp.h: EXFUN Fget_load_suffixes.
823 Extern Vload_file_rep_suffixes.
824
825 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
826 with lisp.h.
827
828 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
829
830 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
831 qualifier which was trying to avoid the bug that was fixed by
832 yesterday's changes to xterm.c.
833
834 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
835
836 * xterm.h (x_catch_errors) Return value changed to void.
837 (x_uncatch_errors): Delete unused count argument.
838
839 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
840 it can be called in a signal handler.
841 (x_catch_errors_unwind): Function deleted.
842 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
843 (x_check_errors): Call x_uncatch_errors before signalling error.
844
845 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
846 (x_connection_closed, x_list_fonts): Use new versions of
847 x_catch_errors and x_uncatch_errors.
848
849 * xselect.c (x_own_selection, x_decline_selection_request)
850 (x_reply_selection_request, x_get_foreign_selection)
851 (Fx_get_atom_name, Fx_send_client_event): Likewise.
852
853 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
854 Likewise.
855
856 * eval.c (record_unwind_protect): Add an assertion.
857
858 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
859
860 * process.c (Fmake_network_process): Init the process's mark.
861
862 2006-02-25 Kim F. Storm <storm@cua.dk>
863
864 * buffer.c (modify_overlay): Force redisplay if we modify an
865 overlay at the end of the buffer.
866
867 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
868
869 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
870 nil the image file has been removed, in that case use the (cached)
871 pixmap.
872
873 2006-02-24 Kenichi Handa <handa@m17n.org>
874
875 * fileio.c (Finsert_file_contents): When a text is replaced
876 partially, be sure to set point before the inserted characters.
877
878 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
879
880 * xfns.c (Fx_file_dialog): Return a decoded file name.
881
882 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
883
884 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
885 glyph whose face is extended to the text area end.
886
887 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
888 values if control is not visible or values are not changed.
889
890 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
891
892 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
893 The default `window' should not be "on a different frame".
894
895 2006-02-22 Kim F. Storm <storm@cua.dk>
896
897 * indent.c (Fvertical_motion): Only try to move back if we can.
898
899 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
900
901 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
902 n_clip_rects.
903
904 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
905 xmenu.c.
906
907 * macterm.c (GC_CLIP_REGION): Remove macro.
908 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
909 All uses changed. Don't do clipping if n_clip_rects is zero.
910 (mac_set_clip_rectangles): Use xassert instead of abort.
911 Set n_clip_rects. Don't make clip_region empty when number of
912 clipping rectangles is zero.
913 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
914 calling mac_set_clip_rectangles.
915 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
916 avoid multiple redraws.
917
918 2006-02-22 Kim F. Storm <storm@cua.dk>
919
920 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
921
922 2006-02-21 Kim F. Storm <storm@cua.dk>
923
924 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
925
926 2006-02-21 Zhang Wei <brep@newsmth.org>
927
928 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
929 returning it.
930
931 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
932
933 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
934 (standard_bitmaps): Use it.
935
936 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
937
938 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
939 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
940 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
941 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
942 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
943 Draw background if BG_WIDTH is not zero. Use float constants as
944 divisors instead of double. Use alloca instead of xmalloc/xfree.
945 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
946 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
947 mac_draw_image_string* functions.
948 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
949 some fonts when srcCopy text transfer mode might be used.
950 (mac_begin_clip, mac_end_clip): Check if region is empty.
951 (mac_set_clip_rectangles): When resetting clip region, make it
952 empty instead of disposing of it.
953
954 2006-02-20 Stefan Monnier <monnier@iro.umontreal.ca>
955
956 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
957 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8).
958
959 2006-02-20 Kim F. Storm <storm@cua.dk>
960
961 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
962
963 * buffer.h (struct buffer): New members fringe_indicator_alist and
964 fringe_cursor_alist.
965
966 * buffer.c (init_buffer_once): Set dummy default values for
967 fringe-indicator-alist and fringe-cursor-alist. The proper
968 default values are set by pre-loading fringe.el.
969 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
970 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
971 corresponding default- variables.
972
973 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
974 to use `int'.
975 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
976 Define explicitly.
977 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
978 (Qhollow_small): New variables.
979 (syms_of_fringe): Intern and staticpro them.
980 (question_mark_bits): Rename from unknown_bits.
981 (left_curly_arrow_bits): Rename from continuation_bits.
982 (right_curly_arrow_bits): Rename from continued_bits.
983 (left_triangle_bits): Rename from ov_bits.
984 (right_triangle_bits): Add.
985 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
986 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
987 (filled_square_bits): Add.
988 (vertical_bar_bits): Rename from bar_cursor_bits.
989 (horizontal_bar_bits): Rename from hbar_cursor_bits.
990 (empty_line_bits): Rename from zv_bits.
991 (standard_bitmaps): Update to use new names.
992 (draw_fringe_bitmap_1): Make static.
993 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
994 to map from logical cursors and indicators to physical bitmaps.
995 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
996 bitmaps using symbol names instead of bitmap numbers.
997 (update_window_fringes): Use logical indicator symbol names
998 instead of bitmap numbers for logical. Add bitmap cache.
999 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
1000
1001 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
1002
1003 * regex.c: Revert 2006-02-19 change.
1004 (xmalloc, xrealloc): Define these when not linked to Emacs.
1005 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
1006
1007 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
1008
1009 * regex.c (extend_range_table_work_area): Fix typo.
1010
1011 2006-02-19 Richard M. Stallman <rms@gnu.org>
1012
1013 * xterm.c (x_catch_errors): Use xmalloc.
1014
1015 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
1016 (regex_compile): Likewise.
1017 (regcomp): Use xmalloc.
1018
1019 * gtkutil.c (malloc_widget_value): Use xmalloc.
1020
1021 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
1022 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
1023
1024 * xmenu.c (digest_single_submenu): When pane_string is empty,
1025 do initialize save_wv.
1026
1027 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1028
1029 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
1030 w->update_mode_line if arg F is not the selected frame.
1031
1032 * macmenu.c (popup_activated_flag, submenu_id)
1033 (next_menubar_widget_id): Remove variables.
1034 (initialize_frame_menubar): Remove function.
1035 (pop_down_menu, mac_menu_show): Simplify save value.
1036 (dispose_menus): New function.
1037 (pop_down_menu, fill_menubar): Use it.
1038 (fill_submenu): Remove function. All uses changed to fill_menu.
1039 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
1040 POS. Don't call SetMenuItemHierarchicalID here.
1041 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
1042 used next. Call SetMenuItemHierarchicalID here.
1043 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
1044 objects if needed. Reuse existing menu bar titles if possible.
1045 (set_frame_menubar): Don't clean up menu objects here.
1046
1047 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
1048
1049 * window.c (window_min_size_1): Ensure room for the scroll bar and
1050 fringes.
1051
1052 2006-02-17 Romain Francoise <romain@orebokech.com>
1053
1054 * puresize.h (BASE_PURESIZE): Increment to 1200000.
1055
1056 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
1057
1058 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
1059 addition of the BLOCK_INPUTs.
1060
1061 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
1062
1063 * window.c (Fset_window_scroll_bars): Doc fix.
1064
1065 2006-02-17 Kenichi Handa <handa@m17n.org>
1066
1067 * xdisp.c (display_mode_element): Call display_string with correct
1068 PREC arg (which must be a number of characters, not column width).
1069
1070 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1071
1072 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
1073
1074 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
1075
1076 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
1077
1078 2006-02-14 Richard M. Stallman <rms@gnu.org>
1079
1080 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
1081
1082 * m/ibms390x.h: New file.
1083
1084 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1085
1086 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
1087 value of x-gtk-whole-detached-tool-bar.
1088 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
1089
1090 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
1091
1092 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1093
1094 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
1095
1096 * xterm.h: Declare x_x_to_emacs_modifiers.
1097
1098 * gtkutil.c (xg_tool_bar_button_cb): New function.
1099 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
1100 store modifiers in event.
1101 (update_frame_tool_bar): Connect button-release-event to
1102 xg_tool_bar_button_cb.
1103
1104 2006-02-13 Richard M. Stallman <rms@gnu.org>
1105
1106 * .gdbinit (xwindow): Update the code to show the window box.
1107
1108 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1109
1110 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
1111
1112 2006-02-12 Richard M. Stallman <rms@gnu.org>
1113
1114 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
1115
1116 2006-02-11 Eli Zaretskii <eliz@gnu.org>
1117
1118 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
1119 (syms_of_keyboard): DEVFAR_LISP and initialize it.
1120 (parse_tool_bar_item, parse_menu_item): If that variable is
1121 non-nil, don't disable menu items and tool-bar buttons.
1122
1123 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
1124
1125 * doc.c (Fsubstitute_command_keys): Doc fix.
1126
1127 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
1128
1129 * data.c (Findirect_function): Rewrite docstring.
1130 Fix omission bug: Declare new arg NOERROR.
1131
1132 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1133
1134 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
1135 if window_desc is not set yet.
1136 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
1137 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
1138 parameter `visibility' is `icon'.
1139 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
1140 instead of "fontset-mac".
1141 (Fx_focus_frame): New defun.
1142 (syms_of_macfns): Defsubr it.
1143
1144 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
1145 for unfocused frame.
1146 (x_raise_frame): Call BringToFront instead of SelectWindow.
1147 (x_lower_frame): Use NULL instead of nil.
1148 (x_make_frame_visible): Don't call SelectWindow.
1149 (XTread_socket): Increment handling_signal at the start, decrement
1150 it at the end.
1151 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
1152 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
1153
1154 2006-02-10 Kim F. Storm <storm@cua.dk>
1155
1156 * data.c (Findirect_function): Add NOERROR arg. All callers changed
1157 to pass Qnil for NOERROR.
1158
1159 * keymap.c (current_minor_maps_error): Remove.
1160 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
1161 instead of using internal_condition_case_1+current_minor_maps_error.
1162
1163 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1164
1165 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
1166 frames for GTK, in that case it is the tool bar. This is so that
1167 highlighted text get reset properly.
1168
1169 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
1170
1171 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
1172
1173 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1174
1175 * window.c (adjust_window_trailing_edge): Check that shrinking
1176 does not set a window to size zero or less.
1177
1178 2006-02-08 Miles Bader <miles@gnu.org>
1179
1180 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
1181 of Fget_text_property (other field functions work with overlays as
1182 well as text-properties).
1183
1184 2006-02-07 Kenichi Handa <handa@m17n.org>
1185
1186 * dispextern.h (unibyte_display_via_language_environment): Extern it.
1187
1188 * xterm.h (unibyte_display_via_language_environment):
1189 * w32term.h (unibyte_display_via_language_environment):
1190 * macterm.h (unibyte_display_via_language_environment): Delete extern.
1191
1192 2006-02-07 Kenichi Handa <handa@m17n.org>
1193
1194 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
1195 (produce_glyphs): Set the character to print in
1196 it->char_to_display. Handle unibyte-display-via-language-environment.
1197 (produce_stretch_glyph): Set character to print in it->char_to_display.
1198
1199 2006-02-06 Kenichi Handa <handa@m17n.org>
1200
1201 * lread.c (openp): Initialize encoded_fn before GCPRO it.
1202
1203 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
1204
1205 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
1206
1207 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
1208 Cast bitfield value to EMACS_INT, to suppress gcc warning.
1209
1210 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
1211 defining.
1212
1213 2006-02-03 Kim F. Storm <storm@cua.dk>
1214
1215 * xdisp.c: Cache last merged escape glyph face.
1216 (last_escape_glyph_frame, last_escape_glyph_face_id)
1217 (last_escape_glyph_merged_face_id): New variables.
1218 (get_next_display_element): Use/update them.
1219 (redisplay_internal): Reset them before redisplay.
1220
1221 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
1222 Only recheck faces after displaying ellipsis.
1223
1224 2006-02-02 Kenichi Handa <handa@m17n.org>
1225
1226 * coding.c (decode_composition_emacs_mule): Fix handling of
1227 incorrect format data.
1228
1229 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1230
1231 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
1232 (gtk_toolbar_insert) so we can have tool bars of different sizes.
1233
1234 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
1235
1236 * data.c (Flistp): Doc fix.
1237
1238 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
1239
1240 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
1241 Fix typos in docstrings.
1242
1243 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
1244
1245 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
1246
1247 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
1248
1249 * alloc.c (make_interval, allocate_string)
1250 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
1251 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
1252 global variables.
1253
1254 2006-01-27 Eli Zaretskii <eliz@gnu.org>
1255
1256 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
1257 the MSDOS definition.
1258
1259 2006-01-26 Richard M. Stallman <rms@gnu.org>
1260
1261 * alloc.c (check_pure_size): Make overflow message an "error message".
1262
1263 * keymap.c (Fmap_keymap): Doc fix.
1264
1265 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
1266 unless they were cleared out.
1267
1268 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
1269
1270 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1271
1272 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
1273 (find_field): Set before_field to after_field when pos is at BEGV.
1274 (Fline_beginning_position, Fline_end_position):
1275 Clarify confusing doc string.
1276
1277 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
1278 string.
1279
1280 2006-01-26 Kenichi Handa <handa@m17n.org>
1281
1282 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
1283 current_dir, and error_file. On reporting an error, decode them
1284 back.
1285
1286 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1287
1288 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
1289 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
1290 Don't check for quit, since any loop will go through fail or jump.
1291
1292 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
1293
1294 * alloc.c (allocate_string_data): Update next_free immediately, to
1295 reduce risk of memory clobberage.
1296
1297 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1298
1299 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
1300 display when point moves across an ellipsis. If there are
1301 adjacent invisible texts, don't lose the second one's ellipsis.
1302 (x_produce_glyphs): Doc fix.
1303
1304 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
1305
1306 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
1307
1308 2006-01-23 Kim F. Storm <storm@cua.dk>
1309
1310 * xdisp.c (handle_single_display_spec): Fix handling of space
1311 property on char from string: set *position rather than
1312 it->current.pos.
1313 (produce_stretch_glyph): Reduce width of stretch glyphs so they
1314 don't get wider than the window (unless truncate-lines is on).
1315
1316 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
1317
1318 * xterm.c: Avoid allocating Lisp data from a signal handler.
1319 (x_error_message): New var to replace x_error_message_string.
1320 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
1321 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
1322 (syms_of_xterm): Use it instead of x_error_message_string.
1323
1324 * alloc.c (lisp_align_free): Add an assertion.
1325 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
1326 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
1327 a signal handler.
1328
1329 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
1330
1331 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
1332
1333 2006-01-21 Romain Francoise <romain@orebokech.com>
1334
1335 * xdisp.c (get_window_cursor_type): Fix last change.
1336 Update copyright year.
1337
1338 2006-01-20 Eli Zaretskii <eliz@gnu.org>
1339
1340 * lread.c (Fload): Don't leak the file descriptor returned by
1341 openp if we are going to signal an error.
1342
1343 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
1344 directly to _close.
1345 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
1346 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
1347 to _read.
1348 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
1349 directly to _write.
1350
1351 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
1352 if it is NULL.
1353
1354 2006-01-20 Kenichi Handa <handa@m17n.org>
1355
1356 * puresize.h (BASE_PURESIZE): Increment to 1190000.
1357
1358 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
1359
1360 * xdisp.c (get_window_cursor_type): Use cursor type specified by
1361 the selected buffer for the echo area too.
1362
1363 2006-01-19 Richard M. Stallman <rms@gnu.org>
1364
1365 * keymap.c (Fmap_keymap): Doc fix.
1366
1367 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
1368
1369 * keyboard.c (echo_char): Don't omit the space between first two
1370 echoed chars.
1371
1372 * minibuf.c (read_minibuf): Fix previous change.
1373
1374 2006-01-19 Kenichi Handa <handa@m17n.org>
1375
1376 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
1377
1378 2006-01-17 Richard M. Stallman <rms@gnu.org>
1379
1380 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
1381 value in f->param_alist.
1382
1383 2006-01-15 Andreas Schwab <schwab@suse.de>
1384
1385 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
1386
1387 2006-01-13 Richard M. Stallman <rms@gnu.org>
1388
1389 * Makefile.in: Define new macro WINDOW_SUPPORT.
1390 (lisp): Use it.
1391 (SOME_MACHINE_LISP): Add conditionally loaded files.
1392
1393 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1394
1395 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
1396 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
1397 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
1398 decomposed form.
1399
1400 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
1401 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
1402 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
1403 macro. Also try member ifr_addr when getting netmask.
1404
1405 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
1406
1407 * fileio.c (Fexpand_file_name): Remove redundant tests.
1408 Fix elimination of // so that it doesn't prevent elimination of an
1409 immediately following /. or /..
1410
1411 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1412
1413 * gtkutil.c (xg_toggle_notify_cb): New function.
1414 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
1415 xg_toggle_notify_cb.
1416 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
1417 parameter value changes so the toggle button gets updated.
1418
1419 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
1420
1421 * .gdbinit: Fix typo.
1422
1423 2006-01-05 Eli Zaretskii <eliz@gnu.org>
1424
1425 * .gdbinit: Fix last change.
1426
1427 2006-01-05 Kim F. Storm <storm@cua.dk>
1428
1429 * process.c (Fmake_network_process): Use AF_INET instead of
1430 AF_UNSPEC when AF_INET6 is not defined.
1431
1432 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1433
1434 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
1435 Don't check that the other type is known file-related one.
1436
1437 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
1438 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
1439 OS X 10.4 and later.
1440
1441 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1442
1443 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
1444 let GTK do all image processing. Importing Emacs own pixmaps to GTK
1445 looks bad for inactive tool bar items with some Gnome themes.
1446
1447 2006-01-04 Eli Zaretskii <eliz@gnu.org>
1448
1449 * .gdbinit: Avoid a warning message when x_error_quitter is not
1450 compiled in.
1451
1452 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
1453 for w32.
1454
1455 2006-01-04 Kim F. Storm <storm@cua.dk>
1456
1457 * process.c: Add IPv6 support.
1458 (Qipv4, Qipv6): New vars.
1459 (syms_of_process): Intern and staticpro them.
1460 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
1461 with or without port number. Handle 4 element vector as IPv4 address
1462 without port number.
1463 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
1464 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
1465 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
1466 request that address family only. :family nil or omitted means to
1467 determine address family from the specified :host and :service.
1468 (ifflag_table): Add missing OpenBSD IFF_ flags.
1469 (server_accept_connection): Handle IPv6 addresses.
1470 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
1471
1472 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
1473 determine which breakpoints to set.
1474
1475 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
1476
1477 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
1478
1479 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
1480
1481 2006-01-03 Romain Francoise <romain@orebokech.com>
1482
1483 * emacs.c (main): Update copyright year.
1484
1485 2006-01-03 Ken Raeburn <raeburn@gnu.org>
1486
1487 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
1488 nil for the call to internal_delete_file.
1489
1490 2006-01-01 Ken Raeburn <raeburn@gnu.org>
1491
1492 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
1493 to nil for the call to Fwrite_region.
1494
1495 2005-12-31 Richard M. Stallman <rms@gnu.org>
1496
1497 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
1498
1499 2005-12-31 Eli Zaretskii <eliz@gnu.org>
1500
1501 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
1502
1503 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
1504
1505 * textprop.c (set_text_properties): Reword description of return value.
1506 Return Qnil if caller wants to remove all text properties from a
1507 string and the string already has no intervals.
1508
1509 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
1510
1511 * term.c (visible_cursor): New boolean var.
1512 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
1513 visible_cursor.
1514 (syms_of_term): Export the new var as "visible-cursor".
1515
1516 2005-12-30 Eli Zaretskii <eliz@gnu.org>
1517
1518 * .gdbinit: Tell users not to worry about GDB warnings that some
1519 functions do not exist in the binary.
1520
1521 2005-12-30 Andreas Schwab <schwab@suse.de>
1522
1523 * process.c (Fnetwork_interface_info): Correctly terminate the
1524 loop over ifflag_table.
1525
1526 2005-12-29 Richard M. Stallman <rms@gnu.org>
1527
1528 * lread.c (readevalloop): Test for reading a whole buffer
1529 before actually reading anything. Handle all cases, including
1530 START = END = nil and an already-narrowed buffer.
1531 Convert END to a marker if it is a number.
1532
1533 * keymap.c (describe_map): Put sparse map elements into an array,
1534 sort them, then output a sequence of identical bindings on one line.
1535 (struct describe_map_elt): New data type.
1536 (describe_map_compare): New function.
1537
1538 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1539
1540 * gtkutil.c (xg_get_file_with_chooser): Change message shown
1541 in file chooser.
1542
1543 2005-12-27 Richard M. Stallman <rms@gnu.org>
1544
1545 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
1546 not the current one.
1547
1548 * minibuf.c (Fminibuffer_message): Doc fix.
1549 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
1550
1551 * eval.c (do_autoload): Ignore elements of Vautoload_queue
1552 where car is not symbol.
1553
1554 2005-12-27 Kenichi Handa <handa@m17n.org>
1555
1556 * charset.c (lisp_string_width): Check multibyteness of STRING.
1557
1558 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1559
1560 * xfns.c: x_show_hidden_files, new variable.
1561 (syms_of_xfns): Defvar it.
1562
1563 * gtkutil.c (xg_toggle_visibility_cb): New function.
1564 (xg_get_file_with_chooser): Add toggle hidden files and a message
1565 to the new file chooser dialog. Show hidden files if
1566 x_show_hidden_files is non-zero.
1567
1568 2005-12-26 Richard M. Stallman <rms@gnu.org>
1569
1570 * keyboard.h: Undo previous change.
1571
1572 * Makefile.in (undo.o): Undo previous change.
1573
1574 * undo.c: Undo previous change.
1575
1576 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
1577
1578 * keyboard.h: extern last_point_position_window.
1579
1580 * undo.c: include keyboard.h.
1581
1582 * Makefile.in (undo.o): Depend on keyboard.h.
1583
1584 2005-12-26 Richard M. Stallman <rms@gnu.org>
1585
1586 * commands.h (last_point_position_window): Declare.
1587
1588 * undo.c: Depend on window.h.
1589 (record_point): Save old point from the correct window.
1590
1591 * keyboard.c (last_point_position_window): New variable.
1592 (command_loop_1): Set last_point_position_window.
1593 (syms_of_keyboard): Init it.
1594
1595 * Makefile.in (undo.o): Depend on window.h.
1596
1597 2005-12-25 Richard M. Stallman <rms@gnu.org>
1598
1599 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
1600 to undo a `provide'.
1601
1602 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
1603
1604 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
1605
1606 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
1607 define for FreeBSD on this platform.
1608
1609 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1610
1611 * macterm.h (TYPE_FILE_NAME): New define.
1612 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
1613
1614 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
1615 Add prototypes. Make static.
1616 (mac_aedesc_to_lisp): Initialize err to noErr.
1617 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
1618 (init_coercion_handler): New functions.
1619 (Fmac_coerce_ae_data): Use coercion of Apple event data for
1620 translation from/to file names.
1621
1622 * macterm.c: Don't include sys/param.h.
1623 (init_coercion_handler): Add extern.
1624 [MAC_OS8] (main): Call init_coercion_handler.
1625 (mac_initialize) [MAC_OSX]: Likewise.
1626 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
1627 Apple event data for translation from/to file names.
1628
1629 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
1630
1631 * image.c [MAC_OS] (find_image_fsspec): Likewise.
1632
1633 2005-12-23 Martin Rudalics <rudalics@gmx.at> (tiny change)
1634
1635 * insdel.c (insert, insert_and_inherit, insert_before_markers)
1636 (insert_before_markers_and_inherit): Make sure FROM is correct
1637 when `after-change-functions' are called.
1638
1639 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1640
1641 * xfns.c (Fx_uses_old_gtk_dialog): New function.
1642
1643 * gtkutil.c (xg_uses_old_file_dialog): New function.
1644 (xg_get_file_name): Use xg_uses_old_file_dialog.
1645
1646 * gtkutil.h: Declare xg_uses_old_file_dialog.
1647
1648 2005-12-22 Richard M. Stallman <rms@gnu.org>
1649
1650 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
1651
1652 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1653
1654 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
1655
1656 * macgui.h (XCharStruct): Remove member `valid_p'.
1657 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
1658 (XCharStructRow): New typedef.
1659 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
1660 New macros.
1661 (struct MacFontStruct): Add member `bounds'. Remove member
1662 `per_char'. All uses for QuichDraw Text fonts are changed to
1663 `bounds.per_char'. ATSUI font bounds are represented as an array
1664 `bounds.rows' of XCharStructRow's, each of which consists of a
1665 bitmap of valid entries and an array of char bounds.
1666
1667 * macterm.c (mac_per_char_metric): Add prototype.
1668 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
1669 (mac_query_char_extents): New function.
1670 (x_per_char_metric): Use it.
1671 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
1672 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
1673 Use mac_per_char_metric instead of x_per_char_metric.
1674 (mac_text_extents_16): New function.
1675 (mac_compute_glyph_string_overhangs): Use it.
1676 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
1677
1678 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1679
1680 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
1681 (Fminibuffer_completion_help): Remove duplicates before display.
1682
1683 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1684
1685 * print.c (print_preprocess): Don't lose print_depth levels while
1686 iterating.
1687
1688 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1689
1690 * macmenu.c (Qmac_apple_event): Add extern.
1691 (set_frame_menubar, mac_menu_show keymp_panes)
1692 (single_keymap_panes, list_of_panes, list_of_item)
1693 (single_menu_item): Add argument types to prototypes.
1694 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
1695 (struct skp): New struct (from xmenu.c).
1696 (single_keymap_panes, single_menu_item, list_of_panes)
1697 (list_of_item): Sync with xmenu.c.
1698 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
1699 POSITION if it is mac-apple-event event.
1700 (menubar_selection_callback): Don't use menu_command_in_progress.
1701 (set_frame_menubar): First parse all submenus, then make
1702 widget_value trees from them. Don't allocate any widget_value
1703 objects until we are done with the parsing.
1704 (parse_single_submenu, digest_single_submenu): New functions.
1705 (single_submenu): Function deleted, replaced by those two.
1706 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
1707 create or dispose of EventHandlerUPP. Install hander to all submenus.
1708 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
1709 instead of ENCODE_SYSTEM.
1710 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
1711 integer values.
1712 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
1713 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
1714 format menu item string. Don't use NULL for integer value.
1715
1716 * macterm.h (struct mac_output): Remove unused member
1717 menu_command_in_progress.
1718
1719 2005-12-20 Juri Linkov <juri@jurta.org>
1720
1721 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
1722 position is non-nil, else set it to nil.
1723
1724 * macmenu.c (Fx_popup_menu): Add `else' to set
1725 Vmenu_updating_frame to nil only if position is nil.
1726
1727 * w32menu.c (Fx_popup_menu): Add `else' to set
1728 Vmenu_updating_frame to nil only if position is nil.
1729
1730 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1731
1732 * keyboard.c (make_lispy_event): Drag-and-drop items are now
1733 stored in member `args' of struct input_event.
1734
1735 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
1736
1737 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
1738 stored in member `args' of struct input_event.
1739
1740 * w32term.c (construct_drag_n_drop): Likewise.
1741
1742 * macterm.c (mac_do_receive_drag): Likewise.
1743 (x_use_underline_position_properties): Undo 2005-07-13 change.
1744 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
1745 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
1746 (mac_pass_command_to_system, mac_pass_control_to_system):
1747 New boolean variables renamed from Lisp_Object ones
1748 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
1749 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
1750 All uses changed.
1751 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
1752 Make them user options.
1753 (mac_handle_command_event, mac_store_services_event):
1754 Call create_apple_event_from_event_ref without 5th argument.
1755 (backtranslate_modified_keycode): Mask off modifier keys that are
1756 mapped to some Emacs modifiers before passing it to KeyTranslate.
1757 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
1758 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
1759 Fix docstrings of `mac-*-modifier'.
1760
1761 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
1762 (do_applescript): Change argument types to Lisp_Object.
1763 All uses changed.
1764
1765 * macterm.h (create_apple_event_from_event_ref): Remove 5th
1766 argument from extern.
1767
1768 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1769
1770 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
1771 the answer, return `lambda', not nil.
1772
1773 2005-12-17 Eli Zaretskii <eliz@gnu.org>
1774
1775 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
1776 enclosed in $(ARGQUOTE)s should not be split between two lines, as
1777 that will break with GNU Make >3.80, when sh.exe is used and
1778 arg quoting is with '..'.
1779
1780 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
1781
1782 * print.c (print_preprocess): Just signal an error if print_depth
1783 is exceeded.
1784
1785 2005-12-17 Eli Zaretskii <eliz@gnu.org>
1786
1787 * .gdbinit: Set a breakpoint on w32_abort.
1788
1789 2005-12-16 Juri Linkov <juri@jurta.org>
1790
1791 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
1792 created from minibuffer_completion_contents.
1793 (minibuffer_completion_contents): Remove.
1794 (do_completion, Fminibuffer_complete_word)
1795 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
1796 with Fminibuffer_completion_contents.
1797 (syms_of_minibuf): Add Sminibuffer_completion_contents.
1798 (Fdisplay_completion_list): Doc fix.
1799 (display_completion_list_1): Use `nil' for second arg of
1800 `Fdisplay_completion_list'.
1801
1802 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1803
1804 * xfns.c (compute_tip_xy): Handle negative dx and dy.
1805
1806 * w32fns.c (compute_tip_xy): Ditto.
1807
1808 * macfns.c (compute_tip_xy): Ditto.
1809
1810 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
1811
1812 * print.c (print_preprocess): Go to a deeper print_depth to avoid
1813 print_object loop.
1814
1815 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
1816
1817 * coding.c (code_convert_region_unwind): GCPRO arg.
1818
1819 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1820
1821 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
1822 i.e. dy is offset from top of frame instead of bottom.
1823
1824 * macfns.c (compute_tip_xy): Ditto.
1825
1826 * w32fns.c (compute_tip_xy): Ditto.
1827
1828 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
1829 (xg_get_image_for_pixmap, xg_create_frame_widgets)
1830 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
1831
1832 * xmenu.c (menubar_selection_callback): Do nothing if the callback
1833 is for an unselected radio menu item.
1834
1835 2005-12-11 Richard M. Stallman <rms@gnu.org>
1836
1837 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
1838
1839 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
1840
1841 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
1842 (Flookup_key): Doc fix.
1843 (syms_of_keymap) <function-key-map>: Doc fix.
1844
1845 * fns.c (Frequire): Treat evaluating from a source file
1846 like loading the file.
1847
1848 * floatfns.c (Flog): Doc fix.
1849
1850 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
1851 when we change the buffer.
1852
1853 2005-12-11 Juri Linkov <juri@jurta.org>
1854
1855 * minibuf.c (display_completion_list_1):
1856 Call `minibuffer_completion_contents' instead of using `nil' as
1857 second arg of `Fdisplay_completion_list'.
1858 (keys_of_minibuf): Unbind SPC in
1859 Vminibuffer_local_filename_completion_map (see also related
1860 change on 2005-12-06).
1861
1862 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1863
1864 * emacs.c (main) [MAC_OS8]: Undo previous change.
1865
1866 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
1867 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
1868
1869 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1870
1871 * Makefile.in (macselect.o): Depend on keymap.h.
1872
1873 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
1874 syms_of_macselect.
1875
1876 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
1877 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
1878
1879 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
1880 (syms_of_keyboard) [MAC_OS]: Initialize it.
1881 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
1882
1883 * mac.c (Qundecoded_file_name): New variable.
1884 (syms_of_mac): Initialize it.
1885 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
1886 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
1887 (Fmac_coerce_ae_data): New defun.
1888 (syms_of_mac): Defsubr it.
1889
1890 * macselect.c: Include keymap.h.
1891 (mac_ready_for_apple_events): New variable.
1892 (Vmac_apple_event_map, Qmac_apple_event_class)
1893 (Qmac_apple_event_id): New variables.
1894 (syms_of_macselect): Initialize them.
1895 (Qundefined, mac_store_apple_event): Add externs.
1896 (struct apple_event_binding): New struct.
1897 (find_event_binding_fun, find_event_binding)
1898 (mac_find_apple_event_spec, defer_apple_events)
1899 (mac_handle_apple_event, init_apple_event_handler)
1900 (copy_scrap_flavor_data): New functions.
1901 (Fmac_process_deferred_apple_events): New defun.
1902 (syms_of_macselect): Defsubr it.
1903 (mac_store_services_event): Fix extern.
1904 (mac_handle_service_event): Don't allocate Lisp objects during
1905 asynchronous input processing. Use mac_store_services_event
1906 instead of mac_store_application_menu_event.
1907
1908 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
1909 (Qpreferences): Remove variables.
1910 (syms_of_macterm) : Don't initialize them.
1911 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
1912 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
1913 (init_required_apple_events, do_ae_open_application)
1914 (do_ae_print_documents, do_ae_open_documents)
1915 (do_ae_quit_application): Remove functions and prototypes.
1916 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
1917 (mac_find_apple_event_spec): Add externs.
1918 (mac_store_application_menu_event): Remove function.
1919 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
1920 (mac_handle_command_event): Create Apple event from Carbon event.
1921 Use mac_store_apple_event instead of mac_store_application_menu_event.
1922 [MAC_OSX] (mac_store_services_event): Likewise.
1923 (struct SelectionRange, SelectionRange): Remove struct and typedef.
1924 [MAC_OS8] (main): Call init_apple_event_handler instead of
1925 init_required_apple_events.
1926 (mac_initialize) [MAC_OSX]: Likewise.
1927 [!USE_CARBON_EVENTS] (mac_wait_next_event):
1928 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
1929
1930 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
1931 Add externs.
1932 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
1933 (Fmac_get_preference): Add EXFUN.
1934
1935 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
1936 event.
1937
1938 2005-12-09 Richard M. Stallman <rms@gnu.org>
1939
1940 * xfns.c (Fx_create_frame): Reinstate previous change.
1941
1942 2005-12-09 Eli Zaretskii <eliz@gnu.org>
1943
1944 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
1945 GDB to the abort dialog.
1946
1947 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
1948
1949 * indent.c (Fvertical_motion): Force move if starting on
1950 stretch glyph.
1951
1952 2005-12-08 Richard M. Stallman <rms@gnu.org>
1953
1954 * lread.c (read_escape) <\s>: Don't treat strings specially.
1955
1956 * xfns.c (Fx_create_frame): Comment out previous change.
1957
1958 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1959
1960 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
1961 when needed.
1962
1963 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1964
1965 * minibuf.c (keys_of_minibuf): Just unbind SPC in
1966 Vminibuffer_local_filename_completion_map rather than forcing it
1967 explicitly to the same binding as the global map.
1968
1969 2005-12-06 Ken Raeburn <raeburn@gnu.org>
1970
1971 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
1972 * bytecode.c (Fbyte_code): Likewise.
1973 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
1974 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
1975 * undo.c (truncate_undo_list): Likewise.
1976
1977 2005-12-05 Richard M. Stallman <rms@gnu.org>
1978
1979 * window.c (enlarge_window): Eliminate arg preserve_before.
1980 Assume it is 0. All callers changed.
1981 (Fenlarge_window, Fshrink_window): Likewise.
1982
1983 2005-12-02 Eli Zaretskii <eliz@gnu.org>
1984
1985 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
1986 fit below.
1987
1988 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1989
1990 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
1991
1992 * xfns.c (x_real_positions): int ign => unsigned int.
1993 (xg_set_icon_from_xpm_data): Remove unused variable err.
1994 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
1995 to remove compiler warning.
1996 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
1997
1998 2005-12-02 David Reitter <david.reitter@gmail.com>
1999
2000 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
2001 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
2002 and Vminibuffer_local_must_match_filename_map keymaps.
2003 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
2004
2005 * keymap.c (Vminibuffer_local_filename_completion_map)
2006 (Vminibuffer_local_must_match_filename_map): New variables.
2007 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
2008 parent to be Vminibuffer_local_completion_map and
2009 Vminibuffer_local_must_match_map, respectively.
2010
2011 * commands.h (Vminibuffer_local_filename_completion_map)
2012 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
2013
2014 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
2015
2016 * window.c (Fset_window_configuration): Don't accidentally copy the
2017 window-point of one window to another.
2018
2019 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2020
2021 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
2022
2023 2005-11-30 Kim F. Storm <storm@cua.dk>
2024
2025 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
2026 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
2027 passing it to `emacs_write'.
2028
2029 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
2030
2031 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
2032
2033 2005-11-27 Richard M. Stallman <rms@gnu.org>
2034
2035 * window.c (adjust_window_trailing_edge): New function.
2036 (Fadjust_window_trailing_edge): New function.
2037 (syms_of_window): Defsubr it.
2038 (window_deletion_count): New variable.
2039 (delete_window): Update window_deletion_count.
2040
2041 2005-11-26 Eli Zaretskii <eliz@gnu.org>
2042
2043 * minibuf.c (syms_of_minibuf): Mention the extension of
2044 `completion-auto-help's meaning by complete.el.
2045
2046 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
2047
2048 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2049 Handle :inherit property as a lisp expression.
2050
2051 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2052
2053 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
2054 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
2055 Qsuper, and Qmodifier_value.
2056 (Vmac_control_modifier, Vmac_option_modifier)
2057 (Vmac_command_modifier, Vmac_function_modifier)
2058 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
2059 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
2060 (Vmac_charset_info_alist): Doc fixes.
2061
2062 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2063
2064 * emacs.c (main) [MAC_OSX]: Change working directory to home
2065 directory if `-psn_*' option is specified.
2066
2067 * mac.c (DECODE_UTF_8): Remove macro.
2068 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
2069 created from cfstring_to_lisp.
2070 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
2071 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
2072
2073 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
2074 Add prototype.
2075
2076 2005-11-21 Ken Raeburn <raeburn@gnu.org>
2077
2078 * keymap.c (shadow_lookup): Use make_number to pass a number to
2079 Fsubstring.
2080
2081 2005-11-21 Juri Linkov <juri@jurta.org>
2082
2083 * puresize.h (BASE_PURESIZE): Increment to 1180000.
2084
2085 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
2086
2087 * xfaces.c (Finternal_set_lisp_face_attribute):
2088 Use :ignore-defface for new frame defaults when `unspecified' is
2089 supplied.
2090 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
2091 (merge_face_vectors): Don't do :ignore-defface overwriting here.
2092 (Finternal_merge_in_global_face): Do it here.
2093
2094 2005-11-20 Juri Linkov <juri@jurta.org>
2095
2096 * charset.c (invalid_character): Use Lisp-readable syntax
2097 for octal and hex. Reorder decimal, octal and hex values.
2098
2099 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
2100
2101 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
2102 this type is recognised when debugging.
2103
2104 2005-11-19 Andreas Schwab <schwab@suse.de>
2105
2106 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
2107 Lisp_Cons and Lisp_Float.
2108
2109 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2110
2111 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
2112 New variable.
2113 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
2114 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
2115 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
2116 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
2117
2118 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
2119
2120 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
2121
2122 * xfaces.c (Qignore_defface): New variable.
2123 (syms_of_xfaces): Provide `:ignore-defface'.
2124 (IGNORE_DEFFACE_P): New macro.
2125 (check_lface_attrs, lface_fully_specified_p)
2126 (Finternal_set_lisp_face_attribute)
2127 (Fface_attribute_relative_p, Fmerge_face_attribute):
2128 Handle Qignore_defface as a possible value.
2129 (merge_face_vectors): The merged face is `unspecified' if the
2130 mergee specifies `:ignore-defface'.
2131
2132 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2133
2134 * lread.c (readevalloop): Add missing GCPROs.
2135
2136 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
2137
2138 * xfns.c (xg_set_icon_from_xpm_data): New function.
2139
2140 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
2141 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
2142
2143 * xterm.c (x_bitmap_icon): Use the xpm if available.
2144
2145 * image.c (x_create_bitmap_from_xpm_data): New function.
2146 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
2147
2148 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
2149
2150 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
2151
2152 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
2153
2154 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
2155
2156 2005-11-15 Andreas Schwab <schwab@suse.de>
2157
2158 * lisp.h (struct Lisp_Cons): Make cdr a union.
2159 (XCDR_AS_LVALUE): Adjust.
2160 (struct Lisp_Float): Make data a union.
2161 (XFLOAT_DATA): Adjust.
2162
2163 * alloc.c (free_float): Make free list chaining aliasing-safe.
2164 (make_float): Likewise.
2165 (free_cons): Likewise.
2166 (Fcons): Likewise.
2167 (check_cons_list): Likewise.
2168 (Fmake_symbol): Likewise.
2169 (allocate_misc): Likewise.
2170 (free_misc): Likewise.
2171 (gc_sweep): Likewise.
2172
2173 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2174
2175 * mac.c (HASHKEY_QUERY_CACHE): New define.
2176 (xrm_create_database, xrm_q_put_resource): Empty query cache.
2177 (xrm_get_resource): Use query cache.
2178
2179 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
2180 inhibit_window_system is set.
2181
2182 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2183
2184 * macgui.h (USE_CG_TEXT_DRAWING): New define.
2185 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
2186 and cg_glyphs.
2187
2188 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
2189 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
2190 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
2191 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
2192 not used and font substitution never occurs for ASCII and Latin-1
2193 characters.
2194 (XLoadQueryFont): Maximum and minimum metrics are now those among
2195 ASCII characters.
2196 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
2197 height adjustments for Courier, Helvetica, and Times.
2198
2199 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
2200
2201 2005-11-11 David Reitter <david.reitter@gmail.com>
2202
2203 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
2204 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
2205 Vmac_control_modifier / mac-control-modifier,
2206 Vmac_option_modifier / mac-option-modifier,
2207 Vmac_command_modifier / mac-command-modifier.
2208 (mac_to_emacs_modifiers): Use the new style modifier
2209 variables. Return UInt32 (modifiers are longs now.)
2210 (backtranslate_modified_keycode): New function (refactoring).
2211 (XTread_socket): Use new modifier variables and refactored function.
2212 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
2213 no dedicated meta key. Not in use anyway.)
2214 (convert_fn_keycode): Map Fn-keys to their original keycode
2215 using a table (english keyboard only).
2216
2217 2005-11-11 Kim F. Storm <storm@cua.dk>
2218
2219 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
2220 Add post hook to "backtrace" to always dump lisp call stack to
2221 increase chance of people sending it to us when reporting bugs.
2222
2223 * doc.c (Fsubstitute_command_keys): Doc fix.
2224
2225 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
2226
2227 * xdisp.c (handle_stop): Skip overlay string handling if
2228 ignore_overlay_strings_at_pos_p is set.
2229 (set_iterator_to_next): At end of display vector, set
2230 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
2231 string, so we skip those overlay strings at current pos.
2232
2233 2005-11-10 Lars Hansen <larsh@soem.dk>
2234
2235 * fileio.c (file-regular-p): Doc fix.
2236
2237 2005-11-10 Kim F. Storm <storm@cua.dk>
2238
2239 * alloc.c (valid_lisp_object_p): New function to validate that
2240 an object is really a valid Lisp_Object.
2241
2242 * lisp.h (valid_lisp_object_p): Add prototype.
2243
2244 * print.c (safe_debug_print): New function to be called from gdb
2245 to print Lisp objects; use valid_lisp_object_p to avoid crashing
2246 if user tries to print something which is not a Lisp object.
2247
2248 * .gdbinit (pp, pp1): Use safe_debug_print.
2249 (pv, pv1): New commands to print value of a lisp variable.
2250
2251 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
2252
2253 * .gdbinit (pp1): New user-defined function.
2254
2255 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2256
2257 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
2258
2259 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
2260 related variables for dumped executable.
2261
2262 * unexmacosx.c (unexec_write_zero): New function.
2263 (copy_data_segment): Clear uninitialized local variables in
2264 statically linked libraries.
2265
2266 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
2267
2268 2005-11-09 Juri Linkov <juri@jurta.org>
2269
2270 * keymap.c (shadow_lookup): If Flookup_key returns a number,
2271 call it again with a sub-key-sequence, and if its return value
2272 is non-nil (sub-key is bound), return nil.
2273
2274 2005-11-08 Kim F. Storm <storm@cua.dk>
2275
2276 * process.c (Fsignal_process): Recognize signal names with and
2277 without SIG prefix, e.g. SIGHUP and HUP.
2278
2279 * search.c (search_buffer): No need to initialize base_pat.
2280
2281 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
2282
2283 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
2284 Don't abuse the `mini' arg. Use the `obj' arg instead.
2285
2286 2005-11-04 Kim F. Storm <storm@cua.dk>
2287
2288 * xdisp.c (show_mouse_face): Clear mouse face to eol.
2289
2290 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
2291
2292 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
2293 font-lock.elc and jit-lock.elc.
2294
2295 2005-11-03 Richard M. Stallman <rms@gnu.org>
2296
2297 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
2298 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
2299 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
2300
2301 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
2302
2303 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
2304
2305 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2306
2307 * window.c (Fdisplay_buffer): Fix last change to not use
2308 a dedicated window.
2309
2310 2005-11-01 Kim F. Storm <storm@cua.dk>
2311
2312 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
2313 Instead, rotate the bottom angle bitmap 180 degrees to indicate
2314 that the bottom row does not end in a newline.
2315
2316 2005-11-01 Andreas Schwab <schwab@suse.de>
2317
2318 * unexelf.c (unexec): Handle .plt section in BSS segment.
2319
2320 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2321
2322 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
2323
2324 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
2325 determine whether to consider dedicated windows as well.
2326 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
2327 (Fdisplay_buffer): Do consider dedicated windows in those cases where
2328 we will split the window rather than reuse it.
2329 Don't try to use windows on other displays.
2330
2331 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
2332
2333 * puresize.h (BASE_PURESIZE): Increment to 1170000.
2334
2335 2005-10-31 Romain Francoise <romain@orebokech.com>
2336
2337 * macfns.c: Update copyright year.
2338 * m/gould.h: Likewise.
2339
2340 2005-10-30 Kim F. Storm <storm@cua.dk>
2341
2342 * xdisp.c (display_line): Restore it->current_x and call
2343 extend_face_to_end_of_line when last glyph doesn't fit on line.
2344 (set_glyph_string_background_width): Remove specific tests here
2345 to see if face background should extend to end of line. Simplify.
2346
2347 2005-10-30 Richard M. Stallman <rms@gnu.org>
2348
2349 * alloc.c (BYTES_USED): Use uordblks, not arena.
2350 (bytes_used_when_reconsidered): New variable.
2351 (emacs_blocked_free): Set that.
2352
2353 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
2354
2355 * alloc.c (emacs_blocked_free): Fix typo.
2356
2357 2005-10-29 Richard M. Stallman <rms@gnu.org>
2358
2359 * data.c (Fmake_variable_frame_local): Doc fix.
2360
2361 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
2362 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
2363 controls whether to save and restore mode_line_proptrans_alist.
2364 Callers changed.
2365 (unwind_format_mode_line): Work with that feature.
2366 (redisplay_internal): Don't call prepare_menu_bars if memory full.
2367 (move_elt_to_front): New function.
2368 (display_mode_element): Use move_elt_to_front.
2369 Don't bother munging text props on a null string.
2370 Delete obsolete elts from mode_line_proptrans_alist.
2371 (decode_mode_spec): Test Vmemory_full, not spare_memory.
2372 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
2373
2374 * lisp.h (memory_full_cons_threshold): Declare.
2375 (internal_lisp_condition_case): Declare.
2376
2377 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
2378 (Fmemory_full_p): Function deleted.
2379 (syms_of_alloc): Don't defsubr it.
2380 (memory_full_cons_threshold): New variable.
2381 (spare_memory): Now a vector of 7 elts.
2382 (buffer_memory_full): Don't set Vmemory_full here.
2383 (xfree): Don't try to refill here.
2384 (emacs_blocked_free): Record BYTES_USED in local var.
2385 (memory_full): Now free all the slots in spare_memory.
2386 (refill_memory_reserve): Allocate each slot in spare_memory.
2387 (init_alloc_once): Call refill_memory_reserve.
2388
2389 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
2390
2391 * eval.c (internal_lisp_condition_case): New function.
2392 (Fcondition_case): Use internal_lisp_condition_case.
2393 (Feval): Test Vmemory_full and memory_full_cons_threshold.
2394 (Ffuncall): Likewise.
2395
2396 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
2397
2398 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2399
2400 * syntax.c (Fparse_partial_sexp): Fix docstring.
2401
2402 2005-10-28 Romain Francoise <romain@orebokech.com>
2403
2404 * puresize.h (BASE_PURESIZE): Increment to 1130000.
2405
2406 2005-10-28 Richard M. Stallman <rms@gnu.org>
2407
2408 * xfns.c (syms_of_xfns): Provide `x' as feature.
2409
2410 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
2411
2412 * editfns.c (Fformat): Don't include string padding
2413 between info[n].start and info[n].end.
2414
2415 * alloc.c (spare_memory): No longer static.
2416 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
2417
2418 * puresize.h (BASE_PURESIZE): Increment to 1120000.
2419
2420 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
2421
2422 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
2423
2424 * fringe.c (update_window_fringes): Handle case where buffer ends
2425 with a newline.
2426
2427 2005-10-27 Kenichi Handa <handa@m17n.org>
2428
2429 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
2430
2431 2005-10-24 Kenichi Handa <handa@m17n.org>
2432
2433 * charset.h (charset_mule_unicode_0100_24ff)
2434 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
2435 Extern them.
2436
2437 * charset.c (charset_mule_unicode_0100_24ff)
2438 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
2439 New variables.
2440 (Fsetup_special_charsets): Initialize them.
2441
2442 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
2443 supported Unicode characters.
2444
2445 2005-10-25 Jason Rumney <jasonr@gnu.org>
2446
2447 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
2448
2449 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2450
2451 * image.c [MAC_OS] (image_load_qt_1): Check image size.
2452 Use GraphicsImportGetImageDescription instead of
2453 GraphicsImportGetNaturalBounds.
2454 [MAC_OSX] (image_load_quartz2d): Check image size.
2455 [MAC_OS] (xpm_load_image): Likewise.
2456
2457 * macterm.c (last_mouse_glyph_frame): New var.
2458 (note_mouse_movement): Say mouse moved if current frame differs
2459 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2460 (XTmouse_position): Set last_mouse_glyph_frame.
2461 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
2462 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
2463 Use EndianU16_BtoN.
2464 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
2465 (x_per_char_metric, XLoadQueryFont)
2466 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
2467 glyph bounds.
2468 (mac_to_x_fontname, mac_do_list_fonts)
2469 (mac_initialize_display_info): Change screen resolutions to 72dpi.
2470
2471 2005-10-25 Masatake YAMATO <jet@gyve.org>
2472
2473 * minibuf.c (Fdisplay_completion_list): Small doc fix.
2474
2475 2005-10-24 Kim F. Storm <storm@cua.dk>
2476
2477 * xterm.c: Undo 2005-10-23 change.
2478 (last_mouse_glyph_frame): New var.
2479 (note_mouse_movement): Say mouse moved if current frame differs
2480 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2481 (XTmouse_position): Set last_mouse_glyph_frame.
2482 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
2483 last_mouse_glyph] on mouse up/down event.
2484
2485 * editfns.c (Fcompare_buffer_substrings): Fix last change.
2486
2487 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2488
2489 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
2490
2491 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2492
2493 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
2494 so tool tips don't interfere with press on tool bar button.
2495
2496 2005-10-23 Richard M. Stallman <rms@gnu.org>
2497
2498 * casetab.c (Fset_case_table): Doc fix.
2499
2500 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
2501 (readevalloop): Compute ENTIRE properly.
2502 (syms_of_lread) <load-history>: Doc fix.
2503
2504 2005-10-21 Richard M. Stallman <rms@gnu.org>
2505
2506 * lread.c (Fload): Simplify gcpro structure.
2507 Gcpro FOUND as well as FILE, but not EFOUND.
2508 Unless preloading, record FOUND instead of FILE in Vload_history.
2509 Rename repeat local FILE to MSG_FILE.
2510 (syms_of_lread) <load-history>: Doc fix.
2511
2512 2005-10-21 Kenichi Handa <handa@m17n.org>
2513
2514 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
2515
2516 2005-10-20 Kim F. Storm <storm@cua.dk>
2517
2518 * buffer.c (clone_per_buffer_values): Remove unused var tem.
2519 (init_buffer): Remove unused vars dotstat, pwdstat.
2520
2521 * ccl.c (check_ccl_update): Remove unused var vp.
2522
2523 * fileio.c (auto_save_error): Call SAFE_FREE.
2524
2525 * fns.c (Fchar_table_range): Remove unused var i.
2526
2527 * minibuf.c (display_completion_list_1): New wrapper function
2528 for Fdisplay_completion_list.
2529 (Fminibuffer_completion_help): Use it.
2530
2531 * term.c (encode_terminal_code): Remove unused var src_start.
2532
2533 * window.c (Fwindow_tree): Remove unused var alist.
2534
2535 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
2536
2537 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
2538
2539 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
2540
2541 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
2542
2543 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
2544
2545 2005-10-20 Andreas Schwab <schwab@suse.de>
2546
2547 * minibuf.c (Fdisplay_completion_list): Doc fix.
2548
2549 2005-10-19 Kim F. Storm <storm@cua.dk>
2550
2551 * image.c (check_image_size): Handle integer Vmax_image_size value
2552 directly as max pixel value. Use default frame size for null frame.
2553 (syms_of_image) <max-image-size>: Describe integer value.
2554
2555 2005-10-19 Romain Francoise <romain@orebokech.com>
2556
2557 * emacs.c (main): Update copyright year.
2558
2559 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
2560
2561 * image.c (Vmax_image_size): New variable.
2562 (check_image_size): New function.
2563 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
2564 (gif_load, gs_load): Use it.
2565 (lookup_image): Try loading again if previous load failed.
2566 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
2567 to display in, NULL if none.
2568 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
2569 argument.
2570
2571 2005-10-18 Richard M. Stallman <rms@gnu.org>
2572
2573 * search.c (Fstring_match): Doc fix.
2574
2575 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2576
2577 * macterm.c (note_mouse_movement): Use PtInRect.
2578 (XTread_socket): Also ignore mouse motion just before a button
2579 release event. Don't process button release event when mouse is
2580 not grabbed.
2581
2582 2005-10-16 Masatake YAMATO <jet@gyve.org>
2583
2584 * minibuf.c (Fdisplay_completion_list): Add new optional
2585 argument COMMON_SUBSTRING. Bind `completion-common-substring'
2586 to the optional argument during running `completion-setup-hook'.
2587
2588 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2589
2590 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
2591 Allow nil as argument.
2592 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
2593 for encoding arguments as UTF-16 in native byte order, no BOM.
2594
2595 * macfns.c (Fx_create_frame): Add debugging code.
2596 (Fx_show_tip): Set frame pixel width and height.
2597
2598 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
2599 (FRAME_NORMAL_GC): New macro.
2600 (mac_draw_line, mac_clear_area, mac_clear_window)
2601 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
2602 (mac_draw_image_string, mac_draw_image_string_16): Rename from
2603 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
2604 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
2605 All uses changed.
2606 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
2607 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
2608 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
2609 (mac_draw_string_16, mac_draw_image_string)
2610 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
2611 (mac_scroll_area): Drawing functions now take frame as destination.
2612 All uses changed.
2613 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
2614 (x_draw_fringe_bitmap): Set clipping area in face->gc.
2615
2616 * macterm.h (mac_clear_area): Add extern.
2617
2618 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2619
2620 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
2621 changes for xterm.c.
2622
2623 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
2624
2625 2005-10-14 Kenichi Handa <handa@m17n.org>
2626
2627 * search.c (search_buffer): Give up BM search on case-fold-search
2628 if one of a target character has a case-equivalence of different
2629 charset even if that target charcter is an ASCII.
2630
2631 * casefiddle.c (casify_object): Fix for the case that case
2632 conversion change the byte length.
2633
2634 2005-10-14 Kim F. Storm <storm@cua.dk>
2635
2636 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
2637 (handle_one_xevent): Only clear help_echo_string; restore it if
2638 note_mouse_movement didn't record any mouse movement.
2639
2640 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
2641 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
2642
2643 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
2644 (Fposn_at_x_y): Fix calculation of x coordinate.
2645 (Fposn_at_point): Return nil if point is hscrolled out of view.
2646
2647 2005-10-13 Andreas Schwab <schwab@suse.de>
2648
2649 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
2650 non-interactive mode.
2651
2652 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2653
2654 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
2655
2656 2005-10-12 Kim F. Storm <storm@cua.dk>
2657
2658 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
2659
2660 2005-10-12 Romain Francoise <romain@orebokech.com>
2661
2662 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
2663
2664 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2665
2666 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
2667 get end of text rows. Obtain header-line/mode-line rows directly.
2668
2669 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
2670 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
2671
2672 2005-10-12 Kim F. Storm <storm@cua.dk>
2673
2674 * xdisp.c (remember_mouse_glyph): New generic version based on
2675 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
2676 properly handle all different window areas.
2677
2678 * dispextern.h (remember_mouse_glyph): Add prototype.
2679
2680 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
2681 (note_mouse_movement, XTmouse_position): Use generic
2682 remember_mouse_glyph, add last_mouse_glyph arg.
2683
2684 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
2685 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
2686 (note_mouse_movement, w32_mouse_position): Use generic
2687 remember_mouse_glyph, add last_mouse_glyph arg.
2688
2689 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
2690 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
2691 (XTmouse_position): Adapt to use generic remember_mouse_glyph
2692 instead of pixel_to_glyph_coords.
2693
2694 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
2695 Fix x position for ON_TEXT when left margin width > 0.
2696
2697 2005-10-11 Kim F. Storm <storm@cua.dk>
2698
2699 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
2700
2701 * keyboard.c (make_lispy_position): Fix buffer calculations for
2702 mouse click or movement in right fringe and the margins.
2703
2704 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
2705
2706 * image.c (fn_jpeg_stdio_src): Don't define it.
2707 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
2708 (our_common_init_source): Rename from `our_init_source'.
2709 (our_common_term_source): Rename from `our_term_source'.
2710 (our_memory_fill_input_buffer): Rename from
2711 `our_fill_input_buffer'.
2712 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
2713 (jpeg_memory_src): Use the new names.
2714 (struct jpeg_stdio_mgr): New struct.
2715 (JPEG_STDIO_BUFFER_SIZE): New constant.
2716 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
2717 (jpeg_file_src): New functions.
2718 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
2719
2720 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2721
2722 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
2723 (fm_font_family_alist): New variable.
2724 (syms_of_macterm): Initialize and staticpro it.
2725 (decode_mac_font_name): Replace '-' in family name with '_' if it
2726 occurs just once. Lower family name.
2727 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
2728 All uses changed. Remove argument MF and code conversion for it.
2729 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
2730 to CHARSET. Parse font size. Lower family name. Return integer
2731 value for status of parsing.
2732 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
2733 Don't use Fdowncase because family name is already lowered by
2734 decode_mac_font_name.
2735 (init_font_name_table): Always call decode_mac_font_name.
2736 Add pair of family name and its reference to fm_font_family_alist.
2737 (mac_clear_font_name_table): Clear fm_font_family_alist.
2738 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
2739 Lookup fm_font_family_alist to get font family reference.
2740 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
2741 name is already lowered by parse_x_font_name.
2742
2743 2005-10-11 Kim F. Storm <storm@cua.dk>
2744
2745 * xterm.c (glyph_rect): Return 0 if position is outside text area.
2746
2747 * keyboard.c (make_lispy_position): Fix buffer position calculation for
2748 mouse click or movement in fringe.
2749
2750 2005-10-10 Jason Rumney <jasonr@gnu.org>
2751
2752 * xterm.c (remember_mouse_glyph): New function.
2753 (note_mouse_movement): Use it to remember the current glyph if changed.
2754 (XTmouse_position): Fix calculation of fake glyph under mouse.
2755 Move code to calculate glyph under mouse into remember_mouse_glyph.
2756
2757 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2758
2759 * emacs.c (USAGE3, standard_args): -nb => -nbi.
2760
2761 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
2762
2763 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
2764 (next_frame, prev_frame, set_term_frame_name): Make static.
2765
2766 * window.c (Fwindow_tree): Fix spelling.
2767
2768 2005-10-09 Romain Francoise <romain@orebokech.com>
2769
2770 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
2771
2772 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2773
2774 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
2775 Add options -nb, --no-bitmap-icon.
2776
2777 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
2778
2779 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2780
2781 * macgui.h (MAX_CLIP_RECTS): New define.
2782 (struct _XGC): New member clip_region.
2783 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
2784 clip_rects.
2785
2786 * macterm.c (GC_CLIP_REGION): New macro.
2787 (saved_port_clip_region): New variable.
2788 (mac_begin_clip, mac_end_clip): New functions.
2789 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
2790 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
2791 (mac_copy_area_with_mask, mac_scroll_area): Use them.
2792 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
2793 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
2794 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
2795 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
2796 rectangles stored in gc.
2797 (XFreeGC): Dispose of clipping region.
2798 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
2799 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
2800 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
2801 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
2802 (x_draw_bar_cursor): Use them.
2803 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
2804 get multiple clipping rectangles.
2805
2806 * macterm.h (mac_term_init): Add types to extern.
2807 (struct mac_output): Remove members mWP and pending_menu_activation.
2808 Put members scroll_bar_foreground_pixel and
2809 scroll_bar_background_pixel in #if 0.
2810 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
2811
2812 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2813 Add debugging code.
2814
2815 2005-10-08 Kim F. Storm <storm@cua.dk>
2816
2817 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
2818
2819 2005-10-07 Kim F. Storm <storm@cua.dk>
2820
2821 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
2822 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
2823 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
2824
2825 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2826
2827 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
2828 to for_overlaps. Now occupy 3 bits.
2829 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
2830 (OVERLAPS_ERASED_CURSOR): New defines.
2831 (struct redisplay_interface): Add new OVERLAPS arg to member
2832 fix_overlapping_area.
2833 (x_fix_overlapping_area): Add new OVERLAPS arg.
2834 (get_glyph_string_clip_rects): Add extern.
2835
2836 * dispnew.c (redraw_overlapping_rows):
2837 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
2838
2839 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
2840 for_overlaps.
2841 (get_glyph_string_clip_rects): New function created from
2842 get_glyph_string_clip_rect. Set clipping rectangles according to the
2843 value of for_overlaps. Enable to store multiple clipping rectangles.
2844 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
2845 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
2846 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
2847 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
2848 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
2849 calculating clipping rectangles later. Call x_fix_overlapping_area
2850 with new OVERLAPS arg to draw only erased cursor area.
2851 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
2852 to draw overlaps in both preceding and succeeding rows.
2853
2854 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
2855 struct glyph_string to for_overlaps.
2856
2857 2005-10-04 Richard M. Stallman <rms@gnu.org>
2858
2859 * alloc.c (refill_memory_reserve): Conditionalize the body,
2860 not the function's existence.
2861
2862 2005-10-04 Kim F. Storm <storm@cua.dk>
2863
2864 * window.c (window_split_tree): New function.
2865 (Fwindow_split_tree): New defun.
2866 (syms_of_window): Defsubr it.
2867
2868 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2869
2870 * macterm.c (mac_invert_rectangle): New function.
2871 (XTflash): Use it.
2872
2873 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
2874
2875 * regex.h (re_char): Don't expose it in the interface.
2876 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
2877
2878 * regex.c (re_char): Move it back here.
2879 (re_set_whitespace_regexp): Change the arg's type to not use it.
2880
2881 * keyboard.c (make_lispy_event): If point has moved between down and up
2882 event, make it a drag, not a click, to mirror what
2883 mouse-drag-region expects.
2884
2885 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2886
2887 * lisp.h (fatal): Undo previous change.
2888 * term.c (fatal): Undo previous change.
2889
2890 2005-10-01 Richard M. Stallman <rms@gnu.org>
2891
2892 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
2893
2894 2005-10-01 Kim F. Storm <storm@cua.dk>
2895
2896 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
2897
2898 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2899
2900 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
2901
2902 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2903 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
2904 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
2905 Try ATSUI-compatible 12pt Monaco font first.
2906
2907 * macgui.h (struct _XCharStruct): New member valid_p.
2908 (STORE_XCHARSTRUCT): Set valid_p.
2909 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
2910
2911 * macterm.c (mac_draw_string_common, x_per_char_metric)
2912 (mac_compute_glyph_string_overhangs, init_font_name_table)
2913 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
2914 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
2915 (x_draw_glyph_string_background)
2916 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
2917 XDrawImageString. Always draw background and foreground separately.
2918 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
2919 functions for one-byte chars when using ATSUI-compatible fonts.
2920 (atsu_font_id_hash) [USE_ATSUI]: New variable.
2921 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
2922 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
2923 max_char_or_byte2 more in detail.
2924 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
2925
2926 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2927
2928 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
2929 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
2930
2931 * unexelf.c (fatal): Fix prototype.
2932
2933 * term.c (fatal): Implement using varargs.
2934
2935 * regex.c (re_char): Move typedef ...
2936 * regex.h (re_char): ... here.
2937 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
2938
2939 * emacs.c (malloc_set_state): Fix return type.
2940 (endif): Fix type.
2941
2942 * lisp.h (fatal): Add argument types.
2943
2944 * dispextern.h (fatal): Delete prototype.
2945
2946 * systime.h (make_time): Prototype moved from ...
2947 * editfns.c (make_time): ... here.
2948
2949 * editfns.c: Move systime.h include after lisp.h.
2950 * dired.c:
2951 * xsmfns.c:
2952 * process.c: Likewise.
2953
2954 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
2955 Add parameter types.
2956 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
2957 (emacs_blocked_free): Change definition to match __free_hook.
2958 (emacs_blocked_malloc): Change definition to match __malloc_hook.
2959 (emacs_blocked_realloc): Change definition to match __realloc_hook.
2960
2961 2005-09-30 Romain Francoise <romain@orebokech.com>
2962
2963 * minibuf.c (Fread_buffer): Follow convention for reading from the
2964 minibuffer with a default value. Doc fix.
2965
2966 2005-09-29 Juri Linkov <juri@jurta.org>
2967
2968 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
2969 Rename argument name `string' to `format-string'.
2970 (Fformat): Doc fix.
2971
2972 2005-09-28 Kim F. Storm <storm@cua.dk>
2973
2974 * image.c (gif_load): Fix size of allocated image buffer
2975 for images where a sub-image may be larger than the image's
2976 total height/width specifications.
2977
2978 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2979
2980 * macgui.h (struct _XCharStruct): Each member now takes short value.
2981
2982 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
2983
2984 * xfaces.c (lookup_derived_face): Add parameter type.
2985
2986 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
2987
2988 * marker.c (verify_bytepos): Add parameter type.
2989
2990 * process.c (get_operating_system_release): Move prototype ...
2991
2992 * systime.h (get_operating_system_release): ... here.
2993
2994 * xterm.c (handle_one_xevent): Refer to union field to match the
2995 type required by the function definition.
2996 (set_vertical_scroll_bar): Move prototype ...
2997
2998 * xterm.h: ... here.
2999
3000 * fns.c (internal_equal, seed_random): Fix prototypes.
3001 (internal_equal): Add missing parameter.
3002
3003 2005-09-25 Richard M. Stallman <rms@gnu.org>
3004
3005 * keyboard.c (update_menu_bindings): Variable deleted.
3006 (syms_of_keyboard): Don't defvar it.
3007 (parse_menu_item): Don't test it.
3008
3009 2005-09-23 Richard M. Stallman <rms@gnu.org>
3010
3011 * editfns.c (Fformat): Explicitly test for end of format string
3012 and don't use `index'.
3013
3014 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
3015
3016 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
3017 Define BROKEN_GET_CURRENT_DIR_NAME.
3018
3019 * sysdep.c (get_current_dir_name): Also define if
3020 BROKEN_GET_CURRENT_DIR_NAME.
3021
3022 * m/ibmrs6000.h: Test for USG5, not USG5_4.
3023
3024 2005-09-22 Kim F. Storm <storm@cua.dk>
3025
3026 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
3027 (message2): Fix commentary. Ok to use alloca'ed memory.
3028 Still not ok to use Lisp string data (because of GC).
3029 (set_message): Add comment why GC cannot happen.
3030
3031 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3032
3033 * macterm.c (xlfdpat_block_match_1): Fix assertion.
3034 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
3035 variants for a scalable font multiple times.
3036
3037 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3038
3039 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
3040 Setup slave tty options before forking.
3041
3042 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3043
3044 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
3045 positions have been set for the frame (as is done for frames in
3046 special-display-buffer-names).
3047
3048 2005-09-19 Kim F. Storm <storm@cua.dk>
3049
3050 * editfns.c (Fformat): Don't scan past end of format string that
3051 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
3052
3053 2005-09-18 Andreas Schwab <schwab@suse.de>
3054
3055 * window.h (struct window): Remove height_fixed_p, no longer set.
3056
3057 * window.c (make_window): Don't initialize height_fixed_p.
3058 (window_fixed_size_p): Don't use it.
3059
3060 2005-09-18 John Paul Wallington <jpw@pobox.com>
3061
3062 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
3063
3064 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3065
3066 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
3067
3068 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
3069 New variables.
3070 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
3071 file selection.
3072
3073 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
3074
3075 2005-09-17 Eli Zaretskii <eliz@gnu.org>
3076
3077 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
3078 (obj): Use XMENU_OBJ, not a literal xmenu.o.
3079
3080 2005-09-16 Romain Francoise <romain@orebokech.com>
3081
3082 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
3083
3084 2005-09-15 Richard M. Stallman <rms@gnu.org>
3085
3086 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
3087 (display_mode_element): Instead of `lisp_string' and `this',
3088 record `offset' and increment that.
3089 `last_offset' replaces `last'.
3090
3091 * Makefile.in (XMENU_OBJ): Variable deleted.
3092 (obj): Use xmenu.o unconditionally.
3093 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
3094
3095 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
3096
3097 2005-09-15 Kim F. Storm <storm@cua.dk>
3098
3099 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
3100 (reseat_at_next_visible_line_start): Likewise (in xassert).
3101
3102 2005-09-14 Romain Francoise <romain@orebokech.com>
3103
3104 * fileio.c (write_region_inhibit_fsync): New variable.
3105 (Fwrite_region): Use it to skip call to fsync.
3106 (syms_of_fileio): Initialize it.
3107
3108 2005-09-14 Kenichi Handa <handa@m17n.org>
3109
3110 * coding.c (code_convert_region_unwind): Argument format changed.
3111 (run_pre_post_conversion_on_str): If pre-write-conversion function
3112 changed the current buffer, delete the new buffer.
3113 (run_pre_write_conversin_on_c_str): Likewise.
3114
3115 * fileio.c (Fexpand_file_name): Check multibyteness of
3116 default_directory.
3117
3118 2005-09-13 Kenichi Handa <handa@m17n.org>
3119
3120 * composite.c (compose_chars_in_text): Delete it.
3121
3122 * composite.h (compose_chars_in_text): Delete extern.
3123
3124 2005-09-13 Kim F. Storm <storm@cua.dk>
3125
3126 * print.c (print_error_message): Fix last change.
3127
3128 2005-09-12 Kim F. Storm <storm@cua.dk>
3129
3130 * composite.c (compose_chars_in_text): Fix setup of `pend'.
3131 Unconditionally reload `ptr' and `pend' after eval.
3132
3133 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
3134
3135 * print.c (print_error_message): Pass copy of caller name to
3136 message_dolog.
3137
3138 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
3139
3140 2005-09-12 Kenichi Handa <handa@m17n.org>
3141
3142 * xdisp.c (display_mode_element): Be sure to make variables THIS
3143 and LISP_STRING point into a string data of ELT.
3144
3145 2005-09-12 Kim F. Storm <storm@cua.dk>
3146
3147 * editfns.c (Ftranslate_region_internal): Reload `tt' after
3148 signal_after_change that may have GC'ed.
3149 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
3150
3151 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
3152 after insert while runs signal_after_change.
3153
3154 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
3155 declaration to where it is used.
3156
3157 * w32.c (check_windows_init_file): Fix allocation of error buffer.
3158
3159 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
3160 (x_set_name_internal): Call x_encode_text with new FREEP arg to
3161 know if xfree is needed instead of guessing.
3162
3163 * xterm.h (x_encode_text): Remove prototype.
3164
3165 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
3166
3167 * w32term.c (x_bitmap_icon): Load small icons too.
3168
3169 2005-09-10 Romain Francoise <romain@orebokech.com>
3170
3171 * buffer.c (init_buffer): Grow buffer to add directory separator
3172 and terminal zero. Fix typos.
3173
3174 2005-09-10 Eli Zaretskii <eliz@gnu.org>
3175
3176 * buffer.c (init_buffer): Fix error message for failed call to
3177 get_current_dir_name.
3178 (get_current_dir_name): Remove prototype.
3179
3180 * xsmfns.c (get_current_dir_name): Remove prototype.
3181
3182 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
3183 Add prototype.
3184
3185 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
3186 Don't #undef NULL after including blockinput.h.
3187
3188 * config.in: Regenerated.
3189
3190 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
3191
3192 Remove the MAXPATHLEN limitations:
3193
3194 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
3195 New function.
3196
3197 * buffer.c (init_buffer): Use it.
3198
3199 * xsmfns.c (smc_save_yourself_CB): Ditto.
3200
3201 2005-09-09 Kim F. Storm <storm@cua.dk>
3202
3203 * doc.c (Fsubstitute_command_keys): Lookup key binding for
3204 commands that are remapped from some other command.
3205
3206 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
3207 flag in disabled rows below the window.
3208
3209 * frame.h (struct frame): New member updated_p.
3210
3211 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
3212 member. Remove local `updated' array and associated variables.
3213
3214 2005-09-07 Kim F. Storm <storm@cua.dk>
3215
3216 * xdisp.c (handle_display_prop): Respect overlay window property.
3217
3218 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
3219 Fixes crash reported by YAMAMOTO Mitsuharu.
3220
3221 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3222
3223 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
3224 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
3225 (xlfdpat_block_match_1, xlfdpat_match): New functions.
3226 (xlfdpat_block_match): New macro.
3227 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
3228 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
3229 (add_font_name_table_entry): Increase font_name_table_size more
3230 rapidly.
3231 (mac_c_string_match): Remove function.
3232 (mac_do_list_fonts): Use XLFD pattern match instead of regular
3233 expression match.
3234
3235 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
3236
3237 2005-09-03 Richard M. Stallman <rms@gnu.org>
3238
3239 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
3240 (move_it_in_display_line_to): Stop after last char on line even
3241 on a windowing terminal, if that's the specified stop position.
3242
3243 * fns.c (Fsort): Doc fix.
3244
3245 * editfns.c (Fpropertize): Don't insist that properties be symbols.
3246
3247 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
3248
3249 * dired.c (directory_files_internal_unwind, directory_files_internal)
3250 (file_name_completion): Use a Save_Value object rather than a cons of
3251 two 16bit ints to store the DIR*.
3252 (directory_files_internal, file_name_completion): Handle both EINTR and
3253 EAGAIN consistently after `readdir'.
3254
3255 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3256
3257 * intervals.c (update_interval): Add position info in error.
3258
3259 * dispnew.c (window_to_frame_hpos, update_window):
3260 Avoid gcc warning about unused variable `f'.
3261
3262 2005-08-31 Jason Rumney <jasonr@gnu.org>
3263
3264 * w32menu.c (add_menu_item): If unicode_append_menu returns an
3265 error, revert to using AppendMenu.
3266
3267 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3268
3269 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
3270 All uses changed.
3271 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
3272 cases.
3273 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
3274 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
3275 Use posix_pathname_to_fsspec.
3276 [MAC_OS] (xpm_load_image): Fill in background_transparent field
3277 while we have mask.
3278
3279 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
3280
3281 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
3282
3283 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3284
3285 * syntax.c (update_syntax_table): Properly reproduce the special +1
3286 setting of e_property at the end of the buffer when bumping into the
3287 INTERVALS_AT_ONCE limit.
3288
3289 2005-08-27 Eli Zaretskii <eliz@gnu.org>
3290
3291 * emacs.c (USAGE1): Fix the description of the -Q option.
3292
3293 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
3294
3295 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
3296
3297 2005-08-26 Kim F. Storm <storm@cua.dk>
3298
3299 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
3300 Don't move PT to new window start.
3301
3302 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3303
3304 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
3305 ICONIFY/DEICONIFY_EVENT.
3306
3307 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
3308 Restore background color.
3309 (mac_handle_visibility_change): New function.
3310 (x_make_frame_invisible, x_iconify_frame)
3311 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
3312 [USE_CARBON_EVENTS] (mac_handle_window_event)
3313 (install_window_handler): Handle visibility change events.
3314 (x_make_frame_visible): Don't reposition window if it is iconified
3315 or asked for visible before. Select and uncollapse window when it
3316 is made visible.
3317 (x_make_frame_invisible): Don't reset x_highlight_frame.
3318 (x_iconify_frame): Likewise. Make invisible frame visible before
3319 it is iconified.
3320 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
3321 (do_window_update): Don't change visibility of invisible frame.
3322
3323 2005-08-22 Juri Linkov <juri@jurta.org>
3324
3325 * term.c (turn_on_face): Check for TS_set_foreground and
3326 TS_set_background depending on standout_mode. Simplify.
3327
3328 2005-08-21 Kim F. Storm <storm@cua.dk>
3329
3330 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
3331 bitmaps on fully visible rows.
3332
3333 * fringe.c (update_window_fringes): Replace FORCE_P arg with
3334 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
3335 and return 0.
3336
3337 * xdisp.c (redisplay_window): Call update_window_fringes with
3338 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
3339
3340 2005-08-20 Richard M. Stallman <rms@gnu.org>
3341
3342 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
3343 (resize_mini_window): Set w->start, and PT, so as to display the tail
3344 end of the buffer, if it doesn't all fit.
3345
3346 2005-08-18 Kim F. Storm <storm@cua.dk>
3347
3348 * xdisp.c (calc_pixel_width_or_height): Use actual display
3349 resolution when available instead of Vdisplay_pixels_per_inch.
3350
3351 2005-08-17 Kim F. Storm <storm@cua.dk>
3352
3353 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
3354
3355 * dispnew.c (buffer_posn_from_coords): Check that target row is
3356 within matrix.
3357
3358 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3359
3360 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
3361 xg_set_frame_icon and call it.
3362
3363 * gtkutil.c (xg_set_frame_icon): New function.
3364
3365 * gtkutil.h (xg_set_frame_icon): Declare it.
3366
3367 2005-08-16 Kim F. Storm <storm@cua.dk>
3368
3369 * dispnew.c (increment_row_positions): Skip non-enabled rows.
3370
3371 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
3372 (Fcurrent_window_configuration): Use VECSIZE macro instead.
3373
3374 2005-08-15 Richard M. Stallman <rms@gnu.org>
3375
3376 * xdisp.c (message3_nolog): Clear echo_message_buffer.
3377
3378 2005-08-15 Kim F. Storm <storm@cua.dk>
3379
3380 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
3381
3382 * process.c (deactivate_process, status_notify, read_process_output)
3383 (update_status, status_convert, decode_status, allocate_pty)
3384 (make_process, remove_process, list_processes_1)
3385 (create_process_1, unwind_request_sigio, read_process_output)
3386 (send_process, keyboard_bit_set): Declare static.
3387 (Fdelete_process): Simplify. Pass process to status_notify, so we
3388 don't try to read output from it.
3389 (status_notify): New arg deleting_process--don't try to read
3390 output from that process.
3391
3392 * lisp.h (deactivate_process, status_notify, read_process_output):
3393 Remove prototypes.
3394
3395 2005-08-14 Richard M. Stallman <rms@gnu.org>
3396
3397 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
3398 define_image_type.
3399
3400 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3401
3402 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
3403 (xg_get_image_for_pixmap): Move some code to
3404 xg_get_pixbuf_from_pix_and_mask, and call it.
3405
3406 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
3407
3408 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
3409 to get an GTK icon and set it with GTK functions to avoid having GTK
3410 override an icon set with just X functions.
3411
3412 2005-08-11 Richard M. Stallman <rms@gnu.org>
3413
3414 * image.c (syms_of_image): Init image_types here, and call
3415 define_image_type.
3416 (init_image): Not here.
3417
3418 2005-08-09 Richard M. Stallman <rms@gnu.org>
3419
3420 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
3421
3422 * lisp.h (QUIT): Throw t to Vthrow_on_input.
3423
3424 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
3425
3426 * floatfns.c (Fexpt): Use floats for negative exponent.
3427
3428 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3429
3430 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
3431 should not be there, causing menu display errors with GTK 2.6.9.
3432
3433 2005-08-07 Richard M. Stallman <rms@gnu.org>
3434
3435 * floatfns.c (Fexpt): Undo previous change.
3436
3437 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
3438 so it can be used with various state vectors.
3439
3440 * emacs.c (endif): Convert -script into -scriptload.
3441 (standard_args): Add -scriptload. Allow -basic-display with one dash.
3442
3443 * fns.c (syms_of_fns): Add `emacs' to features.
3444
3445 * term.c (set_terminal_modes): If no TS_termcap_modes string,
3446 output newlines to scroll the old screen contents off the screen.
3447
3448 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
3449
3450 * floatfns.c (Fexpt): Use floats for negative exponent.
3451 Reported by D Goel.
3452
3453 2005-08-02 Richard M. Stallman <rms@gnu.org>
3454
3455 * frame.c (Fframe_char_width): Doc fix.
3456
3457 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
3458
3459 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
3460 Defvar it.
3461
3462 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
3463
3464 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
3465 (my_create_window, my_create_tip_window): Make static.
3466
3467 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
3468 (my_set_foreground_window, my_destroy_window): Make static.
3469
3470 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
3471
3472 Merge gnulib getopt implementation into Emacs.
3473
3474 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
3475 now part of lib-src.
3476
3477 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
3478
3479 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
3480
3481 2005-07-25 Jason Rumney <jasonr@gnu.org>
3482
3483 * w32menu.c (w32_menu_display_help): Suppress tooltip when
3484 navigating menus with the keyboard.
3485
3486 2005-07-23 Richard M. Stallman <rms@gnu.org>
3487
3488 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
3489
3490 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
3491 gc_relative_threshold, one by one.
3492
3493 * keyboard.c (read_char): Test gc_cons_threshold.
3494 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
3495
3496 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
3497 gc_relative_threshold, one by one.
3498
3499 * alloc.c (gc_cons_threshold): Not static.
3500 (gc_cons_combined_threshold): Var deleted.
3501 (gc_relative_threshold): New variable.
3502 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
3503 instead of gc_cons_combined_threshold.
3504
3505 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
3506 (gc_cons_combined_threshold): Declaration deleted.
3507
3508 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3509
3510 * mac.c: Don't include stdlib.h or string.h.
3511 (Fdo_applescript, Fmac_file_name_to_posix)
3512 (Fmac_file_name_to_posix): Doc fixes.
3513 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
3514 (Fmac_code_convert_string): Likewise.
3515 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
3516 if the executable is not contained in a bundle.
3517
3518 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
3519 (gray_width, gray_height): Remove defines.
3520 (gray_bits, gray_bitmap_width, gray_bitmap_height)
3521 (gray_bitmap_bits): Remove variables.
3522 (lispy_function_keys): Remove extern.
3523 (free_frame_menubar): Add extern.
3524 (x_window_to_frame): Remove function.
3525 (unwind_create_tip_frame): Add declaration.
3526 (x_set_name_internal): New function.
3527 (x_set_name, x_set_title): Use it.
3528 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
3529 (Fx_display_pixel_height, Fx_display_planes)
3530 (Fx_display_color_cells, Fx_server_max_request_size)
3531 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3532 (Fx_display_mm_height, Fx_display_mm_width)
3533 (Fx_display_backing_store, Fx_display_visual_class)
3534 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
3535
3536 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3537
3538 * macselect.c (Fx_own_selection_internal): Follow error conventions.
3539 (Fx_get_selection_internal, Fx_selection_owner_p)
3540 (Fx_selection_exists_p): Doc fixes.
3541 (syms_of_macselect) <selection-converter-alist>: Likewise.
3542
3543 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
3544
3545 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3546
3547 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
3548 (Fccl_execute_on_string): Likewise; add usage info.
3549
3550 * composite.c (Fcompose_region_internal)
3551 (Fcompose_string_internal):
3552 Improve argument/docstring consistency.
3553
3554 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
3555 Fix typos in docstrings.
3556
3557 * textprop.c (Fnext_char_property_change)
3558 (Fprevious_char_property_change): Doc fixes.
3559
3560 * window.c (Fset_window_margins, Fset_window_fringes):
3561 Improve argument/docstring consistency.
3562
3563 * xfaces.c (Finternal_lisp_face_p): Doc fix.
3564
3565 2005-07-21 Andreas Schwab <schwab@suse.de>
3566
3567 * eval.c (restore_stack_limits): Return a value.
3568
3569 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
3570
3571 * eval.c (Fdefvar): Doc fix.
3572
3573 2005-07-20 Kim F. Storm <storm@cua.dk>
3574
3575 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
3576 Use make_save_value to unwind protect stream.
3577
3578 * lread.c (Fload, load_unwind):
3579 Use make_save_value to unwind protect stream.
3580
3581 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
3582
3583 * eval.c (Fprog2, Fcalled_interactively_p),
3584 (syms_of_eval) <debug-on-quit>: Doc fixes.
3585 (syms_of_eval) <max-specpdl-size>:
3586 (Finteractive_p): Fix typos in docstrings.
3587
3588 2005-07-19 Kim F. Storm <storm@cua.dk>
3589
3590 * w32fns.c (Vx_hand_shape): Variable removed.
3591 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
3592
3593 2005-07-19 Kenichi Handa <handa@m17n.org>
3594
3595 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
3596
3597 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
3598
3599 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
3600
3601 2005-07-18 Kim F. Storm <storm@cua.dk>
3602
3603 * frame.h (struct frame): New member already_hscrolled_p.
3604
3605 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
3606 to avoid redisplay looping hscrolling back and forth ad infinitum.
3607
3608 2005-07-18 Juri Linkov <juri@jurta.org>
3609
3610 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
3611 * keymap.c (Fminor_mode_key_binding):
3612 * macterm.c (mac-emulate-three-button-mouse):
3613 Delete duplicate duplicate words.
3614
3615 2005-07-18 Ken Raeburn <raeburn@gnu.org>
3616
3617 * minibuf.c (Ftest_completion): Fix odd syntax in test.
3618
3619 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3620
3621 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
3622
3623 * macgui.h (struct _XGC): New struct.
3624 (GC): Use it.
3625 (GCForeground, GCBackground, GCFont): Use X11 mask values.
3626 (XCreateGC, XParseGeometry): Move externs to macterm.h.
3627
3628 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
3629 (XSetFont): Add declaration.
3630 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
3631 Remove functions.
3632 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
3633 New defines.
3634 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
3635 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
3636 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
3637 Use them.
3638 (mac_erase_rectangle): New function.
3639 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
3640 (x_draw_stretch_glyph_string): Use it.
3641 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
3642 (XSetBackground, XSetFont): Adjust for new GC implementation.
3643 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
3644 (XTset_vertical_scroll_bar): Clear area under scroll bar.
3645
3646 * macterm.h (struct mac_display_info): Change types of
3647 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
3648 (XCreateGC, XParseGeometry): Move externs from macgui.h.
3649
3650 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
3651
3652 2005-07-16 Richard M. Stallman <rms@gnu.org>
3653
3654 * buffer.c (Fmake_overlay): Doc fix.
3655
3656 2005-07-16 Eli Zaretskii <eliz@gnu.org>
3657
3658 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
3659 Vw32_valid_locale_ids, and Vw32_valid_codepages.
3660
3661 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3662
3663 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
3664 Use Fstring_as_unibyte instead of string_make_unibyte.
3665
3666 2005-07-15 Richard M. Stallman <rms@gnu.org>
3667
3668 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
3669
3670 2005-07-15 Kim F. Storm <storm@cua.dk>
3671
3672 * xdisp.c: Fix redisplay loop in last change.
3673 (IT_POS_VALID_AFTER_MOVE_P): New macro.
3674 (move_it_vertically_backward, move_it_by_lines): Use it.
3675
3676 2005-07-14 Jason Rumney <jasonr@gnu.org>
3677
3678 * w32.c (init_environment): Default HOME directory to user's
3679 appdata directory if possible.
3680
3681 2005-07-14 Kim F. Storm <storm@cua.dk>
3682
3683 * .gdbinit (pitx): Fix output format. Print string charpos.
3684
3685 * lread.c (syms_of_lread): Initialize seen_list.
3686
3687 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
3688
3689 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
3690 Staticpro re_match_object.
3691
3692 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3693
3694 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
3695 dereference.
3696
3697 * macterm.c (mac_window_to_frame): Remove duplicate define.
3698
3699 2005-07-14 Kenichi Handa <handa@m17n.org>
3700
3701 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
3702 (code_convert_region): Adjust for the above change.
3703 (set_conversion_work_buffer): If the work buffer is already in
3704 use, generate a new buffer and return it. Otherwise return Qnil.
3705 (run_pre_post_conversion_on_str): Adjust for the above change.
3706 (run_pre_write_conversin_on_c_str): Likewise.
3707
3708 2005-07-13 Kim F. Storm <storm@cua.dk>
3709
3710 * xdisp.c (start_display): Don't reseat to next visible line start
3711 if current start position is in a string or image.
3712 (move_it_vertically_backward): Be sure to move out of strings and
3713 images when moving it2 forward.
3714 (move_it_by_lines): When moving forward, move to next buffer
3715 position if we end up in a string or image. When moving backward,
3716 count rows moved over when moving to start of current row in case
3717 row starts in middle of a string or image. Also move further
3718 backward if we end up in a string or image.
3719 (try_cursor_movement): If overlay string spans multiple lines,
3720 move backward to set cursor on start of an overlay string.
3721 (cursor_row_p): Row is ok if cursor is at newline from string, but
3722 string starts on this line (so we always position cursor at start
3723 of string).
3724
3725 * indent.c (Fvertical_motion): If start position is on an image,
3726 don't move back if we move too far (that's almost certain to happen).
3727
3728 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
3729 row in minibuffer windows.
3730 (try_window): Don't check margins in minibuffer windows.
3731
3732 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3733
3734 * macterm.c: Don't include stdlib.h or composite.h.
3735 (x_use_underline_position_properties, last_mouse_press_frame)
3736 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
3737 (syms_of_macterm, mac_initialize): Don't initialize them.
3738 (waiting_for_input, initial_argv, initial_argc)
3739 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
3740 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
3741 (extra_keyboard_modifiers): Fix type in extern.
3742 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
3743 (x_scroll_bar_report_motion): Add argument types to declaration.
3744 (mac_compute_glyph_string_overhangs): Add declaration.
3745 (disable_mouse_highlight): Remove unused variable.
3746 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
3747 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
3748 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
3749 All callers changed.
3750 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
3751 timestamp.
3752 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
3753 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
3754 only when its width is less than the height.
3755 (XTredeem_scroll_bar): Sync with xterm.c.
3756 (font_name_table, font_name_table_size, font_name_count):
3757 Make static.
3758 (drag_and_drop_file_list): Remove variable. Previous use is now
3759 local to function.
3760 (do_ae_open_documents): Move DRAG_N_DROP event construction part
3761 from XTread_socket.
3762 (XTread_socket): Consolidate setting of event timestamp.
3763 Move DRAG_N_DROP event construction part to do_ae_open_documents.
3764 Support extra_keyboard_modifiers.
3765
3766 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
3767 beginning with that for ASCII.
3768
3769 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
3770
3771 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
3772 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
3773 (syms_of_alloc): Declare gc-cons-percentage.
3774
3775 * eval.c (Feval, Ffuncall):
3776 * keyboard.c (read_char):
3777 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
3778
3779 * lisp.h (gc_cons_combined_threshold): Declare.
3780
3781 2005-07-12 Kim F. Storm <storm@cua.dk>
3782
3783 * coding.c (Qprocess_argument):
3784 * coding.h (Qprocess_argument): Remove unused var.
3785
3786 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
3787
3788 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3789
3790 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
3791 Endian.h.
3792 [!MAC_OSX] (fchmod, fchown): New functions.
3793 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
3794 Use SBYTES and EndianU32_BtoN.
3795 (mac_get_object_from_code): Return 4 byte string even if argument
3796 is 0. Use make_unibyte_string and EndianU32_NtoB.
3797 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
3798 (Fmac_set_file_type): Fix documents and argument declarations.
3799 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
3800
3801 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
3802
3803 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
3804
3805 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3806
3807 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
3808 Lucid if X_I18N, font otherwise.
3809
3810 2005-07-10 Steven Tamm <steventamm@mac.com>
3811
3812 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
3813 (Fmac_set_file_type, Fmac_set_file_creator): Add.
3814 (mac_get_object_from_code, mac_get_code_from_arg): Add.
3815
3816 2005-07-10 Richard M. Stallman <rms@gnu.org>
3817
3818 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
3819 (syms_of_lread): Set up eval-buffer-list.
3820 (Feval_buffer, Feval_region): Bind eval-buffer-list.
3821
3822 2005-07-08 Richard M. Stallman <rms@gnu.org>
3823
3824 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
3825
3826 2005-07-08 Kim F. Storm <storm@cua.dk>
3827
3828 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
3829 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
3830
3831 2005-07-07 Kim F. Storm <storm@cua.dk>
3832
3833 * window.c (Frecenter): Fix last change (set iarg before use).
3834
3835 2005-07-06 Richard M. Stallman <rms@gnu.org>
3836
3837 * window.c (Frecenter): When arg is inside the scroll margin,
3838 move it out of the margin.
3839
3840 2005-07-06 Jason Rumney <jasonr@gnu.org>
3841
3842 * w32console.c (initialize_w32_display): Detect when the console
3843 dimensions are insane, and default to 80x25 instead.
3844 (w32_use_full_screen_buffer): Default to NIL.
3845
3846 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3847
3848 * macterm.c (mac_draw_vertical_window_border): Use foreground of
3849 VERTICAL_BORDER_FACE_ID for vertical border line.
3850 (mac_encode_char): Call check_ccl_update in advance.
3851 (mac_to_x_fontname, x_font_name_to_mac_font_name)
3852 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
3853 Don't assume that font family length is less than 32.
3854 (x_compute_min_glyph_bounds): Make static.
3855 (x_load_font): Never set fonts_changed_p to zero.
3856
3857 2005-07-04 Lute Kamstra <lute@gnu.org>
3858
3859 * Update FSF's address in GPL notices.
3860
3861 2005-07-03 Richard M. Stallman <rms@gnu.org>
3862
3863 * xdisp.c (try_window): Fix previous change in how it handles
3864 a partially-visible line or one only partly past the margin.
3865
3866 * window.c (window_scroll_pixel_based): Take account
3867 of this_scroll_margin when finding point when scrolling up.
3868
3869 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
3870
3871 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3872 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
3873 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3874
3875 2005-07-02 Juri Linkov <juri@jurta.org>
3876
3877 * w32term.c (w32_draw_vertical_window_border): Use foreground of
3878 VERTICAL_BORDER_FACE_ID for vertical border line.
3879
3880 2005-07-02 Eli Zaretskii <eliz@gnu.org>
3881
3882 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
3883 fchmod so that chmod doesn't get called on MSDOS before the file
3884 is closed.
3885
3886 2005-07-01 Jason Rumney <jasonr@gnu.org>
3887
3888 * w32term.c (cleartype_active): New flag for enabling sub-pixel
3889 workaround.
3890 (w32_initialize): Initialize it.
3891 (w32_native_per_char_metric): Allow a couple of extra pixels when
3892 Cleartype is active.
3893
3894 * w32term.c (w32_initialize): Move check for screen reader here
3895 from syms_of_w32term.
3896
3897 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3898
3899 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
3900 is not zero.
3901
3902 2005-07-01 Masatake YAMATO <jet@gyve.org>
3903
3904 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
3905
3906 2005-06-30 Juri Linkov <juri@jurta.org>
3907
3908 * xdisp.c (x_draw_vertical_border): If left fringe is not present
3909 decrease x coord of vertical border by 1 pixel to not occupy text
3910 area of the right window.
3911
3912 * xterm.c (x_draw_vertical_window_border): Use foreground of
3913 VERTICAL_BORDER_FACE_ID for vertical border line.
3914
3915 * term.c (turn_on_face): In standout mode apply specified
3916 fg to bg, and specified bg to fg (this makes the logic of
3917 inversion on terminal consistent with X).
3918
3919 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
3920
3921 * eval.c (user_variable_p_eh): New function.
3922 (Fuser_variable_p): Use it. Clarify docstring.
3923 Return t for aliases of user options, nil for alias loops.
3924
3925 2005-06-27 Richard M. Stallman <rms@gnu.org>
3926
3927 * eval.c (Fdefvar): Improve error message.
3928
3929 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3930
3931 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
3932 change.
3933
3934 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
3935
3936 * eval.c (Fdefvar): Don't try to set constant symbols.
3937
3938 2005-06-25 Richard M. Stallman <rms@gnu.org>
3939
3940 * macfns.c (Fx_show_tip): Pass new arg to try_window.
3941
3942 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
3943
3944 * xfns.c (Fx_show_tip): Pass new arg to try_window.
3945
3946 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
3947 (redisplay_window): Handle try_window reporting point in scroll margin.
3948
3949 * dispextern.h (try_window): Declare new arg.
3950
3951 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
3952 Use fchmod to copy the file modes.
3953 (Frename_file): Don't copy UID and GID here;
3954 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
3955
3956 * eval.c (call_debugger): Take full care of extending stack limits
3957 to make space for the debugger, and restore the change afterward.
3958 Bind debug-on-error to nil.
3959 (restore_stack_limits): New subroutine.
3960 (Fsignal): Extend specpdl bound along with eval depth bound,
3961 for calling edebug. Don't do either one, for calling debugger.
3962 (find_handler_clause): Don't bind debug-on-error here.
3963 Don't unbind anything either.
3964 Temporarily advance max_specpdl_size for calling
3965 internal_with_output_to_temp_buffer.
3966 (grow_specpdl): Don't alter max_specpdl_size before signaling
3967 an error.
3968 (syms_of_eval) <max-specpdl-size>: Doc fix.
3969
3970 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
3971
3972 2005-06-24 Eli Zaretskii <eliz@gnu.org>
3973
3974 * fileio.c (Frename_file): Undo last change: no need to ifdef away
3975 chown on DOS_NT platforms.
3976
3977 * w32.c (sys_chown): New function.
3978
3979 * s/ms-w32.h (chown): New; define to sys_chown.
3980
3981 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
3982
3983 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
3984 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
3985
3986 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
3987
3988 2005-06-23 Richard M. Stallman <rms@gnu.org>
3989
3990 * xdisp.c (get_next_display_element): Finish reversing the tests of
3991 Vnobreak_char_display.
3992
3993 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
3994 All uses changed.
3995 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
3996 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
3997
3998 * fileio.c (Frename_file): Preserve owner and group, if possible,
3999 when copying.
4000
4001 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
4002
4003 * abbrev.c (Funexpand_abbrev):
4004 * category.c (Fmake_category_set):
4005 * dispnew.c (Fsleep_for, Fsit_for):
4006 * editfns.c (Fsubst_char_in_region):
4007 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
4008 * frame.c (make_frame_without_minibuffer):
4009 * lread.c (read_vector):
4010 * macfns.c (check_x_frame):
4011 * process.c (Fstop_process, Fcontinue_process):
4012 * search.c (Freplace_match):
4013 * syntax.c (Fstring_to_syntax):
4014 * w32fns.c (check_x_frame, check_x_display_info):
4015 * xfaces.c (x_supports_face_attributes_p):
4016 * xselect.c (Fx_own_selection_internal): Follow error conventions.
4017
4018 * image.c (fn_png_init_io): Don't define it.
4019 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
4020 (png_read_from_file): New function, based on png_read_from_memory.
4021 (png_load): Use it, instead of fn_png_init_io.
4022
4023 2005-06-23 Kim F. Storm <storm@cua.dk>
4024
4025 * search.c (Fmatch_data): Remove evaporate option.
4026 (Fset_match_data): Do not mention evaporate option in doc string.
4027 Add commentary explaining evaporate arg (for internal use only).
4028 (unwind_set_match_data): Add comment on evaporate use.
4029
4030 2005-06-22 Miles Bader <miles@gnu.org>
4031
4032 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
4033 (realize_basic_faces, syms_of_xfaces): Update references to it.
4034 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
4035 to `VERTICAL_BORDER_FACE_ID'.
4036 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
4037
4038 2005-06-21 Juri Linkov <juri@jurta.org>
4039
4040 * dispextern.h: Add extern Qframe_set_background_mode.
4041
4042 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
4043 Qframe_set_background_mode.
4044
4045 * frame.c (Fmodify_frame_parameters):
4046 Call frame-set-background-mode after changing the background color
4047 on non-window non-dos branch.
4048
4049 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
4050
4051 * fns.c (Fchar_table_range):
4052 * process.c (Fmake_network_process): Fix spellings.
4053
4054 2005-06-20 Kim F. Storm <storm@cua.dk>
4055
4056 * fns.c (Fsort): Doc fix.
4057
4058 2005-06-20 Miles Bader <miles@gnu.org>
4059
4060 * xfaces.c (Qvertical_divider): New variable.
4061 (realize_basic_faces): Realize its face.
4062 (syms_of_xfaces): Initialize it.
4063
4064 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
4065
4066 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
4067 window-separator on ttys using `vertical-divider' face by default.
4068
4069 2005-06-17 Richard M. Stallman <rms@gnu.org>
4070
4071 * xdisp.c (get_next_display_element):
4072 Reverse test of Vshow_nonbreak_escape.
4073
4074 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
4075 (Ftty_no_underline): New function.
4076 (syms_of_term): defsubr it.
4077
4078 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
4079
4080 * dispnew.c (spec_glyph_lookup_face): New function.
4081 (build_frame_matrix_from_leaf_window): Use it.
4082
4083 * dispextern.h (spec_glyph_lookup_face): Add declaration.
4084
4085 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4086
4087 2005-06-12 Richard M. Stallman <rms@gnu.org>
4088
4089 * keyboard.c (read_char): After catching a longjmp,
4090 call restore_getcjmp.
4091
4092 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
4093
4094 * xselect.c (lisp_data_to_selection_data): Fix spelling.
4095
4096 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4097
4098 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
4099 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
4100 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
4101 events.
4102 (XTread_socket): Don't pass keyboard events with the option
4103 modifier to the system when Vmac_command_key_is_meta is nil or
4104 Vmac_option_modifier is non-nil.
4105 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
4106 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
4107 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
4108 handler function.
4109 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
4110 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
4111 handler part to mac_handle_mouse_event.
4112
4113 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
4114
4115 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
4116 NEW-ALIAS and BASE-VARIABLE, respectively.
4117
4118 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
4119
4120 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
4121 (get_phys_cursor_geometry, format_mode_line_unwind_data)
4122 (get_line_height_property, x_produce_glyphs): Remove unused vars.
4123
4124 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
4125
4126 2005-06-13 Eli Zaretskii <eliz@gnu.org>
4127
4128 * w32term.c (x_use_underline_position_properties): New variable.
4129 (x_draw_glyph_string): Remind in a comment to change doc string of
4130 x-use-underline-position-properties if/when underline positioning
4131 is implemented.
4132 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
4133 and initialize it to nil.
4134
4135 2005-06-12 Jason Rumney <jasonr@gnu.org>
4136
4137 * w32fns.c (NEWOPENFILENAME): New struct.
4138 (Fx_file_dialog): Use it to trick the system into giving us up to
4139 date dialogs on systems that are documented to support it.
4140 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
4141
4142 2005-06-12 Eli Zaretskii <eliz@gnu.org>
4143
4144 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
4145 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
4146
4147 2005-06-11 Eli Zaretskii <eliz@gnu.org>
4148
4149 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
4150 to CreateDIBSection to avoid a compiler warning.
4151 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
4152 warning.
4153 (png_load): Cast return values of fn_png_create_read_struct and
4154 fn_png_create_info_struct, to avoid compiler warnings on W32.
4155 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
4156 to avoid compiler warnings.
4157 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
4158 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
4159 avoid a compiler warning.
4160 (tiff_load): Cast return values of fn_TIFFOpen and
4161 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
4162 to IMAGE_BACKGROUND to avoid a compiler warning.
4163 (gif_load): Cast return values of fn_DGifOpenFileName and
4164 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
4165 IMAGE_BACKGROUND to avoid a compiler warning.
4166 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
4167 before redefining.
4168
4169 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
4170 the call to CreateDIBSection, to avoid a compiler warning.
4171
4172 2005-06-11 Jason Rumney <jasonr@gnu.org>
4173
4174 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
4175 minibuffer.
4176 * macfns.c (Fx_file_dialog): Likewise.
4177
4178 2005-06-10 Eli Zaretskii <eliz@gnu.org>
4179
4180 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
4181
4182 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
4183
4184 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
4185 * w32fns.c (syms_of_w32fns): Fix spellings.
4186
4187 2005-06-10 Eli Zaretskii <eliz@gnu.org>
4188
4189 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
4190 `verbose'; print diagnostic messages only if it is non-zero.
4191 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4192 in the environment.
4193 (copy_executable_and_dump_data): Print section names with %.8s.
4194
4195 2005-06-10 Masatake YAMATO <jet@gyve.org>
4196
4197 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
4198 when mouse_face is not given.
4199
4200 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
4201
4202 * window.c (Fselect_window): Adapt call to Fselect_frame.
4203
4204 * lisp.h: Update EXFUN of Fselect_frame.
4205
4206 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
4207
4208 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
4209 no_enter.
4210 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
4211 Adapt to above change.
4212
4213 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
4214
4215 * fns.c (Fmemq, Fmaphash): Doc fixes.
4216
4217 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
4218
4219 * xfaces.c (Fdisplay_supports_face_attributes_p):
4220 Fix typo in docstring.
4221
4222 2005-06-08 Steven Tamm <steventamm@mac.com>
4223
4224 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
4225 used by gcc4 on intel mac.
4226
4227 2005-06-09 Kim F. Storm <storm@cua.dk>
4228
4229 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
4230 in REUSE list if non-nil; free them if equal to evaporate.
4231 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
4232 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
4233 (restore_search_regs): Rename from restore_match_data. Uses changed.
4234 (unwind_set_match_data): New function.
4235 (record_unwind_save_match_data): New function like save-match-data.
4236
4237 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
4238 (record_unwind_save_match_data): Add prototype.
4239 (restore_search_regs): Rename from restore_match_data.
4240
4241 * composite.c (compose_chars_in_text):
4242 * eval.c (do_autoload):
4243 * macmenu.c (set_frame_menubar):
4244 * process.c (read_process_output, exec_sentinel):
4245 * xmenu.c (set_frame_menubar):
4246 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
4247 * w32menu.c (set_frame_menubar):
4248 Use record_unwind_save_match_data.
4249
4250 2005-06-08 Richard M. Stallman <rms@gnu.org>
4251
4252 * xdisp.c (get_next_display_element): Alter previous change:
4253 Distinguish Vshow_nonbreak_escape = t or not t.
4254 For t, use escape_glyph once again, as before previous change.
4255 Use space or hyphen for display, instead of the non-ASCII char.
4256 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
4257
4258 * process.c (Fstart_process): Don't touch command_channel_p slot.
4259
4260 * process.h (struct process): Delete command_channel_p.
4261
4262 2005-06-07 Masatake YAMATO <jet@gyve.org>
4263
4264 * xdisp.c (note_mode_line_or_margin_highlight):
4265 Check the overlapping of re-rendering area to avoid flickering.
4266 (note_mouse_highlight): Call clear_mouse_face if PART
4267 is not ON_MODE_LINE nor ON_HEADER_LINE.
4268
4269 2005-06-07 Kim F. Storm <storm@cua.dk>
4270
4271 * process.c: Improve commentary for adaptive read buffering.
4272
4273 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
4274
4275 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
4276 if available.
4277
4278 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4279
4280 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
4281 New functions for popping down menus on C-g.
4282 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
4283
4284 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
4285 non-static.
4286
4287 * config.in: Add HAVE_CANCELMENUTRACKING.
4288
4289 2005-06-06 Eli Zaretskii <eliz@gnu.org>
4290
4291 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
4292
4293 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
4294
4295 * w32proc.c (RVA_TO_PTR): New macro.
4296
4297 * w32heap.c (RVA_TO_PTR): No need to #undef now.
4298
4299 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
4300 Depend on w32heap.h.
4301
4302 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
4303
4304 * keyboard.c (command_loop_1): Update Vthis_original_command.
4305
4306 2005-06-06 Richard M. Stallman <rms@gnu.org>
4307
4308 * xmenu.c (popup_get_selection): Undo previous change.
4309
4310 2005-06-06 Juri Linkov <juri@jurta.org>
4311
4312 * xdisp.c (Qno_break_space): New variable.
4313 (syms_of_xdisp): Initialize it.
4314 (get_next_display_element): Add no-break space and soft hypen
4315 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
4316 Use `no-break-space' face for no-break spaces.
4317
4318 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4319
4320 * window.c (delete_window): Handle the case where a h/vchild has
4321 a h/vchild.
4322
4323 2005-06-05 Eli Zaretskii <eliz@gnu.org>
4324
4325 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
4326 call to pfn_setsockopt, cast optval to `const char *'.
4327
4328 2005-06-04 Eli Zaretskii <eliz@gnu.org>
4329
4330 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
4331 (open_unc_volume): Cast return value of map_w32_filename, to avoid
4332 compiler warnings.
4333
4334 * s/ms-w32.h (fileno): Don't define if already defined.
4335
4336 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
4337
4338 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
4339
4340 2005-06-04 Richard M. Stallman <rms@gnu.org>
4341
4342 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
4343
4344 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4345
4346 * macmenu.c (cleanup_popup_menu): New function.
4347 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
4348 mac_menu_show Quit:s.
4349 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
4350 a dialog).
4351
4352 2005-06-04 Kim F. Storm <storm@cua.dk>
4353
4354 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
4355
4356 * callproc.c (Fcall_process): Don't use alloca to gradually
4357 increase size of buf, as it effectively uses twice the necessary
4358 space on the stack. Instead, pre-allocate buf of full size, and
4359 gradually increase the read size.
4360
4361 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
4362
4363 * eval.c (unbind_to): Preserve value of Vquit_flag.
4364
4365 * xterm.c (handle_one_xevent): Also ignore mouse motion just
4366 before a button release event.
4367
4368 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
4369
4370 * xfaces.c (Finternal_lisp_face_equal_p): Really report
4371 on faces in a frame, if the argument FRAME is non-nil.
4372 Improve argument/docstring consistency.
4373
4374 2005-06-02 Kim F. Storm <storm@cua.dk>
4375
4376 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
4377 (x_consider_frame_title, Fformat_mode_line): Save offset into
4378 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
4379
4380 2005-06-01 Kim F. Storm <storm@cua.dk>
4381
4382 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
4383
4384 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4385
4386 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
4387 resolution fields for scalable fonts to 0.
4388
4389 * xfaces.c (build_scalable_font_name): Round pixel size to the
4390 nearest integer.
4391
4392 2005-06-01 Kim F. Storm <storm@cua.dk>
4393
4394 * xdisp.c (display_mode_line): Support nested calls to redisplay
4395 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
4396
4397 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4398
4399 * fileio.c (Finsert_file_contents):
4400 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
4401
4402 2005-05-31 Kim F. Storm <storm@cua.dk>
4403
4404 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
4405 (mode_line_noprop_ptr): Rename from frame_title_*.
4406 (store_mode_line_noprop_char): Rename from store_frame_title_char.
4407 (store_mode_line_noprop): Rename from store_frame_title.
4408 (mode_line_target): New enum to specify current output target
4409 for mode line formatting.
4410 (display_mode_element): Test it rather than frame_title_ptr and
4411 mode_line_string_list to determine where output should go.
4412 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
4413 (Vmode_line_unwind_vector): New variable.
4414 (format_mode_line_unwind_data, unwind_format_mode_line):
4415 New functions for unwind protection in mode line formatting.
4416 (x_consider_frame_title): Use them and new local var 'title_start'
4417 to support nested calls to format-mode-line and redisplay.
4418 Set mode_line_target to MODE_LINE_TITLE.
4419 (Fformat_mode_line): Use them and new local var 'string_start' to
4420 support nested calls to format-mode-line and redisplay.
4421 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
4422 Don't trim trailing dashes.
4423 (decode_mode_spec): Don't make infinite number of trailing dashes
4424 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
4425 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
4426 mode_line_string_face_prop, and Vmode_line_unwind_vector.
4427 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
4428 Initialize mode_line_target to MODE_LINE_DISPLAY.
4429
4430 2005-05-29 Richard M. Stallman <rms@gnu.org>
4431
4432 * buffer.c (Fbuffer_local_value): Call indirect_variable.
4433
4434 2005-05-28 Masatake YAMATO <jet@gyve.org>
4435
4436 * xdisp.c (note_mode_line_or_margin_highlight): Change the
4437 pointer to a hand cursor when hoovering over a mouse-face.
4438
4439 2005-05-27 Kenichi Handa <handa@m17n.org>
4440
4441 * xterm.c (x_encode_char): Call check_ccl_update in advance.
4442
4443 * ccl.c: Now an element of Vccl_program_table is a vector of
4444 length 4, not 3.
4445 (ccl_get_compiled_code): New arg idx. Caller changed.
4446 Adjust for the change of Vccl_program_table.
4447 (setup_ccl_program): Adjust for the change of Vccl_program_table.
4448 (check_ccl_update): New function.
4449 (Fregister_ccl_program): Use ASET to set an element of a vector.
4450 Adjusted for the change of Vccl_program_table.
4451
4452 * ccl.h (struct ccl_program): New member idx.
4453 (check_ccl_update): Extern it.
4454
4455 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
4456
4457 * image.c (Vimage_library_alist): Move from image.el.
4458 (syms_of_image): Defvar it.
4459 (lookup_image_type): Use it.
4460
4461 * buffer.c (Fbuffer_local_value): Make argument name match its use
4462 in docstring.
4463
4464 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
4465
4466 * keyboard.c (Frecursive_edit): Fix typo in docstring.
4467 (Fposn_at_x_y): Make argument name match its use in docstring.
4468
4469 2005-05-26 Lute Kamstra <lute@gnu.org>
4470
4471 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
4472
4473 2005-05-24 Masatake YAMATO <jet@gyve.org>
4474
4475 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
4476 as loop sentinels.
4477
4478 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
4479
4480 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
4481 select frame title ("Question"/"Information").
4482 (xdialog_show): Use it.
4483
4484 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
4485
4486 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
4487
4488 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
4489 a third argument (Qnil).
4490
4491 * lisp.h: x-popup-dialog can have three arguments.
4492
4493 * editfns.c (Fmessage_box): Use "Information" for frame title.
4494
4495 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
4496
4497 * termcap.c [VMS]: Include <starlet.h>.
4498
4499 2005-05-23 Masatake YAMATO <jet@gyve.org>
4500
4501 * xdisp.c (note_mode_line_or_margin_highlight): Add code
4502 for mouse-face. Change the type of the first argument from `window'
4503 to `Lisp_Object'.
4504 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
4505 window instead of w.
4506
4507 2005-05-22 Andreas Schwab <schwab@suse.de>
4508
4509 * process.c (send_process): Move misplaced volatile.
4510
4511 2005-05-21 Richard M. Stallman <rms@gnu.org>
4512
4513 * xdisp.c (display_mode_element): If we're processing a list and
4514 padding is specified, put it after the last element.
4515
4516 2005-05-21 Eli Zaretskii <eliz@gnu.org>
4517
4518 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
4519 "superroot" on DOS_NT systems.
4520
4521 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
4522
4523 * process.c (send_process): Restore the SIGPIPE handler if we
4524 catch a SIGPIPE.
4525
4526 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
4527
4528 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
4529 misleading comments).
4530 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
4531
4532 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
4533
4534 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
4535 Correct the right value.
4536
4537 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
4538
4539 * keyboard.c (syms_of_keyboard): Remove Lisp variables
4540 post-command-idle-hook and post-command-idle-delay.
4541 (command_loop_1): Don't try to execute post-command-idle-hook.
4542
4543 2005-05-16 Kim F. Storm <storm@cua.dk>
4544
4545 * xdisp.c (handle_display_prop): Handle empty replacement.
4546 (handle_single_display_spec): Return -1 for empty replacement.
4547
4548 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
4549
4550 * .gdbinit (pitx): Print more info about iterator.
4551
4552 2005-05-16 Andreas Schwab <schwab@suse.de>
4553
4554 * unexmacosx.c (unexec_realloc): Move declarations before statements.
4555
4556 2005-05-14 Richard M. Stallman <rms@gnu.org>
4557
4558 * xdisp.c (message3): Call cancel_echoing.
4559
4560 * alloc.c (Fmemory_full_p): New function.
4561 (syms_of_alloc): defsubr it.
4562
4563 * process.c (send_process_trap): Unblock SIGPIPE.
4564 (send_process): Reset SIGPIPE handler before reporting error.
4565
4566 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
4567
4568 * emacs.c (syms_of_emacs): Fix doc string for system-type.
4569
4570 2005-05-13 Richard M. Stallman <rms@gnu.org>
4571
4572 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
4573 (Finsert_file_contents): If we read 0 bytes from a special file,
4574 unlock the visited file if we locked it.
4575 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
4576 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
4577
4578 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4579
4580 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
4581
4582 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
4583 Regard toolkit scroll bar thumb drag events as squeezable and prevent
4584 redisplay from being paused by them.
4585
4586 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
4587 [!MAC_OSX] (target_ticks): Remove variable.
4588 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
4589 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
4590 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
4591 event occurs before timeout, behave as if the function were interrupted.
4592 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
4593 handling using Time Manager routines.
4594 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
4595 New variables.
4596 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
4597 (setitimer): New functions.
4598
4599 * macfns.c, macmenu.c: Don't include signal.h.
4600
4601 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
4602 Rename from get_control_part_bound. All callers changed.
4603 (x_scroll_bar_clear): New function.
4604 (x_clear_frame): Use it.
4605 (XTset_vertical_scroll_bar): Don't call Draw1Control.
4606 (x_scroll_bar_handle_click): Change type of second argument from
4607 int to ControlPartCode.
4608 (check_alarm): Remove declaration.
4609 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
4610 (XTread_socket): Use ControlPartCode instead of SInt16.
4611
4612 2005-05-13 Nozomu Ando <nand@mac.com>
4613
4614 * unexmacosx.c: Include assert.h.
4615 (MACOSX_MALLOC_MULT16): New define.
4616 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
4617 ptr is in unexec regions by checking it is multiple of 16.
4618 (unexec_malloc_header_t): New typedef.
4619 (unexec_malloc, unexec_realloc, unexec_free): Store and use
4620 allocated size information in unexec_malloc_header.
4621
4622 2005-05-10 Richard M. Stallman <rms@gnu.org>
4623
4624 * xterm.c (noinclude): Add #undef.
4625
4626 * image.c, xfns.c, xmenu.c: Don't include signal.h.
4627
4628 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
4629
4630 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
4631 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
4632 Doc fixes.
4633
4634 * dired.c (Ffile_name_completion): Make argument name
4635 match its use in docstring.
4636
4637 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
4638
4639 * eval.c (Fdefvaralias): Remove any pre-existing
4640 variable-documentation property of the alias.
4641
4642 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
4643
4644 * xfns.c (start_hourglass): Do nothing when running on a tty.
4645
4646 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
4647
4648 * fns.c (Fchar_table_range): Fix typos in docstring.
4649
4650 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4651
4652 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
4653
4654 2005-05-06 Eli Zaretskii <eliz@gnu.org>
4655
4656 * lread.c (Flocate_file_internal): Doc fix.
4657
4658 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
4659
4660 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4661
4662 * macselect.c (x_own_selection): Accept Lisp string as result of
4663 selection converter function.
4664 (x_clear_frame_selections): Don't call x-lost-selection-functions
4665 if Emacs is not owner of the selection.
4666 (Vmac_services_selection): Put variable and initialization in
4667 #ifdef MAC_OSX.
4668 (syms_of_macselect) [MAC_OSX]: Set default value of
4669 Vmac_services_selection to PRIMARY.
4670
4671 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
4672 (mac_handle_tool_bar_click): Remove unused function and declaration.
4673 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
4674 (install_scroll_bar_timer, set_scroll_bar_timer)
4675 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
4676 (get_control_part_bound, x_scroll_bar_handle_press)
4677 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
4678 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
4679 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
4680 (scroll_bar_timer_event_posted_p): New variables.
4681 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
4682 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
4683 (x_scroll_bar_create): Set control reference with NewControl.
4684 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
4685 Initialize track_top and track_height to nil.
4686 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
4687 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
4688 (XTset_vertical_scroll_bar): Don't make space between scroll bar
4689 and associated window.
4690 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
4691 from window config.
4692 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
4693 Set track_top and track_height to nil when scroll bar size is changed.
4694 Recalculate them if they are nil.
4695 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
4696 clicked control is a scroll bar.
4697 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
4698 event handler functions. Don't add modifiers to scroll bar click
4699 events. Call scroll bar release handler when window is deactivated.
4700 (mac_initialize): Remove unused code for X toolkit.
4701 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
4702 Initialize Vx_toolkit_scroll_bars to nil.
4703
4704 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
4705 New members track_top and track_height.
4706
4707 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
4708 init_process when including sys/select.h.
4709
4710 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
4711
4712 * eval.c (Fdefvaralias): Doc fix.
4713
4714 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
4715
4716 2005-05-05 Kim F. Storm <storm@cua.dk>
4717
4718 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
4719 default value.
4720 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
4721 Fix type of cursor-in-non-selected-windows.
4722
4723 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4724
4725 * mac.c: #undef init_process so not to conflict with system headers.
4726
4727 2005-05-02 Richard M. Stallman <rms@gnu.org>
4728
4729 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
4730
4731 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
4732
4733 * xdisp.c (Vcursor_in_non_selected_windows)
4734 (Qcursor_in_non_selected_windows): Vars deleted.
4735 (syms_of_xdisp): Don't initialize them.
4736 (get_window_cursor_type): Use cursor_in_non_selected_windows
4737 buffer slot.
4738
4739 2005-05-02 Kim F. Storm <storm@cua.dk>
4740
4741 * macros.c (executing_kbd_macro_index): Rename from
4742 executing_macro_index. All uses changed.
4743 (executing_kbd_macro_iterations): Rename from
4744 executing_macro_iterations. All uses changed.
4745 (executing_kbd_macro): Rename from executing_macro.
4746 All uses changed.
4747 (syms_of_macros): Rename Lisp var executing-macro-index to
4748 executing-kbd-macro-index.
4749
4750 * xdisp.c (move_it_in_display_line_to): Fix last change.
4751
4752 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
4753
4754 * xmenu.c (Fx_popup_menu): Doc fix.
4755
4756 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
4757
4758 2005-05-02 Jason Rumney <jasonr@gnu.org>
4759
4760 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
4761
4762 2005-05-02 Nozomu Ando <nand@mac.com>
4763
4764 * sysselect.h: Fix typo.
4765
4766 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
4767
4768 * charset.c (Fchars_in_region): Remove as obsolete.
4769
4770 2005-05-01 Kim F. Storm <storm@cua.dk>
4771
4772 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
4773 TO_CHARPOS. This may happen if last glyphs was an image or stretch
4774 glyph.
4775
4776 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
4777
4778 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
4779
4780 2005-05-01 Richard M. Stallman <rms@gnu.org>
4781
4782 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
4783 If user cancels the menu, quit unless FOR_CLICK.
4784
4785 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
4786 All uses changed.
4787 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
4788 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
4789 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
4790 * commands.h (Vexecuting_kbd_macro): Likewise.
4791
4792 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
4793
4794 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
4795
4796 2005-04-30 Richard M. Stallman <rms@gnu.org>
4797
4798 * fileio.c (Ffind_file_name_handler): Handle the `operations'
4799 property of the file name handler.
4800 (Qoperations): New variable.
4801 (syms_of_fileio): Initialize and staticpro it.
4802
4803 * xdisp.c (set_message_1): Delete xassert.
4804
4805 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4806
4807 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
4808
4809 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
4810
4811 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
4812 before/after including Carbon.h if there is a working mktime.
4813
4814 2005-04-28 Kim F. Storm <storm@cua.dk>
4815
4816 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
4817 Fix cyclic alias check. If alias loop is detected, signal
4818 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
4819
4820 2005-04-28 Lute Kamstra <lute@gnu.org>
4821
4822 * eval.c (do_autoload): Record only autoloads in the autoload
4823 property of symbols.
4824
4825 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
4826
4827 * emacs.c (USAGE1): Add --basic-display and --quick options.
4828
4829 2005-04-27 Kim F. Storm <storm@cua.dk>
4830
4831 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
4832
4833 2005-04-26 Richard M. Stallman <rms@gnu.org>
4834
4835 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
4836 (syms_of_window): Doc fixes.
4837
4838 * indent.c (Fvertical_motion): Undo previous change.
4839
4840 2005-04-26 Kenichi Handa <handa@m17n.org>
4841
4842 * fns.c (char_table_range): New function.
4843 (Fchar_table_range): Signal an error if characters in the range
4844 have inconsistent values. Don't check the parent.
4845
4846 2005-04-25 Kenichi Handa <handa@m17n.org>
4847
4848 * fontset.c (fontset_set): Fix previous change.
4849
4850 2005-04-24 Richard M. Stallman <rms@gnu.org>
4851
4852 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
4853
4854 2005-04-24 Eli Zaretskii <eliz@gnu.org>
4855
4856 * regex.c (re_search_2, re_match_2_internal): Convert second arg
4857 of RE_TRANSLATE to int, to shut up GCC warnings.
4858
4859 * fileio.c (Fcopy_file): Doc fix.
4860 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
4861 not needed.
4862
4863 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4864
4865 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
4866 (SOME_MACHINE_OBJECTS): Likewise.
4867 (mac.o): Depend on ccl.h.
4868 (macselect.o): New target.
4869
4870 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
4871 Call syms_of_macselect.
4872
4873 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
4874
4875 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
4876 (QCLIPBOARD): Remove variable.
4877 (syms_of_mac): Don't initialize it.
4878 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
4879 Remove functions.
4880 (syms_of_mac): Don't defsubr them.
4881 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
4882 (QHFS_plus_D, QHFS_plus_C): New variables.
4883 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
4884 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
4885 (cfstring_create_normalized): New functions.
4886 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
4887 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4888
4889 * macterm.c (handling_window_update, terminate_flag):
4890 Remove variables.
4891 (do_window_update, do_ae_quit_application, XTread_socket):
4892 Don't use them.
4893 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
4894 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
4895 (init_service_handler): Move to macselect.c. Remove declarations.
4896 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
4897 (Qapplication, Qabout): New variables.
4898 (syms_of_mac): Initialize them.
4899 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
4900 (Qperform): New variables.
4901 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
4902 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
4903 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
4904 (mac_store_application_menu_event, init_menu_bar): New functions.
4905 [USE_CARBON_EVENTS] (mac_handle_command_event)
4906 (init_command_handler): New functions.
4907 (mac_handle_window_event): Return noErr on window update event.
4908 (do_ae_quit_application): Call mac_store_application_menu_event.
4909 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
4910 and init_menu_bar.
4911
4912 * macterm.h (x_clear_frame_selections): Add extern.
4913
4914 * macselect.c: New file for selection processing on Mac OS.
4915
4916 2005-04-23 Richard M. Stallman <rms@gnu.org>
4917
4918 * fileio.c (Fcopy_file): New arg MUSTBENEW.
4919 (Frename_file): Pass new arg to Fcopy_file.
4920
4921 * window.c (window_size_fixed): Variable deleted.
4922 (syms_of_window): Initialize window-size-fixed to nil.
4923 But don't DEFVAR window_size_fixed.
4924
4925 2005-04-23 Andreas Schwab <schwab@suse.de>
4926
4927 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
4928 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
4929 use lib64 instead of lib.
4930 (_LP64) [_ARCH_PPC64]: Define if not defined.
4931
4932 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
4933
4934 * s/ms-w32.h (HAVE_PWD_H): Define.
4935
4936 2005-04-22 Kenichi Handa <handa@m17n.org>
4937
4938 * fns.c (copy_sub_char_table): Explicitly copy the default value
4939 of the sub-chartable.
4940
4941 * fontset.c (fontset_set): When a sub-chartable is created,
4942 explicitly sets the defalt value.
4943
4944 2005-04-22 Kim F. Storm <storm@cua.dk>
4945
4946 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
4947 (Fsafe_plist_get): Rename to Fplist_get.
4948 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
4949 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
4950
4951 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
4952
4953 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
4954 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4955 Use Fplist_get instead of Fsafe_plist_get.
4956
4957 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
4958
4959 2005-04-21 Miles Bader <miles@gnu.org>
4960
4961 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
4962
4963 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
4964
4965 * sysdep.c: Remove reference to defunct vms-pwd.h.
4966 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
4967 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
4968
4969 * config.in: Regenerate.
4970
4971 2005-04-20 Kenichi Handa <handa@m17n.org>
4972
4973 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
4974 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
4975 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
4976
4977 * alloc.c (make_sub_char_table): Argument changed to initial
4978 value of the slots.
4979
4980 * data.c (Faref): Handle special slots used as default values of
4981 ascii, eight-bit-control, eight-bit-control. Don't ignore a
4982 default value set for a group of characters.
4983 (Faset): Signal an error if IDXVAL is not a valid character code.
4984 Make a sub-chartable with correct initial value.
4985
4986 * fns.c (Fset_char_table_range): Don't set slots used as default
4987 values for ascii, eight-bit-control, eight-bit-graphic.
4988 Don't call Faref with charset-id.
4989 (Fset_char_table_default): Document how to treat normal character
4990 argument. Handle special slots used as default values of ascii,
4991 eight-bit-control, eight-bit-control. Make a sub chartable if
4992 necessary.
4993
4994 2005-04-20 Kenichi Handa <handa@m17n.org>
4995
4996 * search.c (boyer_moore): Fix previous change.
4997
4998 2005-04-19 Kim F. Storm <storm@cua.dk>
4999
5000 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
5001 face unless last visible char and first invisible char have the
5002 same face. Also use default face if saved_face_id is undefined.
5003
5004 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5005
5006 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
5007 `full_name'.
5008 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
5009 mac_scriptcode member.
5010
5011 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
5012 (syms_of_mac): Don't initialize them.
5013 (Vmac_charset_info_alist): New variable.
5014 (syms_of_mac): Defvar it.
5015 (create_text_encoding_info_alist): New function.
5016 (decode_mac_font_name, mac_to_x_fontname)
5017 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
5018 code the correspondence among XLFD charsets, Mac script codes, and
5019 Emacs coding systems. Use Vmac_charset_info_alist and result of
5020 create_text_encoding_info_alist instead.
5021 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
5022 routines also on Mac OS Classic.
5023 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
5024 Use add_font_name_table_entry.
5025 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
5026 specified. Derive unspecified scalable fields from specified one.
5027 (x_list_fonts): Consider Valternate_fontname_alist.
5028 (kDefaultFontSize): Change value from 9 to 12.
5029 (XLoadQueryFont): Get decoded font family, font face, and charset
5030 from x_font_name_to_mac_font_name. Set full name of loaded font.
5031 (mac_unload_font): Free `full_name' member.
5032 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
5033 NULL. Copy full_name member of struct MacFontStruct to that of
5034 struct font_info.
5035
5036 2005-04-19 Kim F. Storm <storm@cua.dk>
5037
5038 * xdisp.c (handle_stop): Set saved_face_id to current face if
5039 selective_display_ellipsis_p so ellipsis will be shown in same
5040 face as preceding text.
5041 (setup_for_ellipsis): Don't set saved_face_id here.
5042 (next_element_from_display_vector): Default to saved_face_id.
5043
5044 * fns.c (Fsafe_get): New function.
5045 (syms_of_fns): Defsubr it.
5046
5047 * lisp.h (Fsafe_get): EXFUN it.
5048
5049 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
5050 loops in case of bad face property lists. Limit number of face
5051 alias lookups to 10 (in case of face alias loops).
5052
5053 2005-04-18 Kim F. Storm <storm@cua.dk>
5054
5055 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
5056 It replaces the corresponding member from struct window, as a
5057 window may now show multiple overlay arrows.
5058 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
5059
5060 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
5061 Compare overlay_arrow_bitmap than overlay_arrow_p members.
5062
5063 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
5064 rather than from window.
5065 (update_window_fringes): Compare overlay_arrow_bitmap rather than
5066 overlay_arrow_p members.
5067 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
5068 if not default.
5069
5070 * window.h (struct window): Remove member overlay_arrow_bitmap.
5071
5072 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
5073
5074 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
5075 Calls changed. Don't check for overlay-arrow-bitmap property here.
5076 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
5077 fringe is present, return Lisp integer for bitmap (or -1 for default).
5078 Fix value of overlay-arrow-bitmap property to be a symbol, use
5079 lookup_fringe_bitmap to parse it.
5080 (display_line): Change call to overlay_arrow_at_row. Store integer
5081 return value as overlay bitmap in row rather than window.
5082 Only show overlay arrow if row displays text, or if no other overlay
5083 arrow is seen in window (if overlay marker is at point-max).
5084
5085 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
5086
5087 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
5088
5089 2005-04-18 Lute Kamstra <lute@gnu.org>
5090
5091 * lread.c (Vloads_in_progress): Static.
5092 * fns.c (Vloads_in_progress): Remove extern.
5093 (load_in_progress): Add extern.
5094 (Frequire): Use load_in_progress instead of Vloads_in_progress.
5095
5096 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
5097
5098 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
5099
5100 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5101
5102 * macterm.c (XTread_socket): Don't beep on keyboard input even if
5103 no frame is visible.
5104
5105 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5106
5107 * term.c (struct keys): Add support for shifted keys.
5108
5109 2005-04-16 Richard M. Stallman <rms@gnu.org>
5110
5111 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
5112 (set_message): Call with_echo_area_buffer with WHICH = 0.
5113 (set_message_1): Erase the echo area buffer first thing.
5114 (echo_area_display): Don't clear echo_message_buffer.
5115
5116 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5117
5118 * Makefile.in (mac.o): Depend on charset.h and coding.h.
5119
5120 * mac.c: Include charset.h and coding.h.
5121 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
5122 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
5123 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
5124
5125 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5126
5127 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
5128
5129 * macterm.c (x_autoselect_window_p): Remove variable.
5130 (last_window): New variable.
5131 (XTreassert_line_highlight, x_change_line_highlight):
5132 Remove declarations.
5133 (mac_focus_changed, x_detect_focus_change): New functions and
5134 declarations.
5135 (XTextExtents16, front_emacs_window): Remove function.
5136 (mac_focus_frame): New function.
5137 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
5138 (mac_check_for_quit_char): Use it instead of front_emacs_window.
5139 (x_scroll_bar_report_motion): Obtain window from control owner.
5140 (x_make_frame_invisible): Set window manager size hint.
5141 (do_mouse_moved): Remove function.
5142 (XTread_socket): Move its contents here. Generate select-window
5143 event on mouse movement if needed. Use x_detect_focus_change on
5144 activate/deactivate events. Don't deiconify frame or invalidate
5145 window rectangle when dnd items are dropped.
5146 Don't activate/deactivate root control.
5147 (frame_highlight, frame_unhighlight): Activate/deactivate root
5148 control here.
5149 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
5150
5151 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
5152 New extern.
5153
5154 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
5155
5156 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
5157 (lisp): Use it.
5158 (SOME_MACHINE_LISP): Add tooltip.
5159
5160 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5161
5162 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
5163 Don't include TextEncodingConverter.h.
5164 (mac_system_script_code, Vmac_system_locale): New variables.
5165 (syms_of_mac): Defvar them.
5166 (mac_get_system_locale): New function.
5167
5168 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
5169 Use ENCODE_SYSTEM to encode title bar string.
5170 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
5171 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
5172 Use CFStringGetSystemEncoding to get system default string encoding.
5173
5174 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
5175 TextEncodingConverter.h.
5176
5177 2005-04-13 Steven Tamm <steventamm@mac.com>
5178
5179 * macterm.c (syms_of_macterm): Remove redundant definition of
5180 mac-pass-control-to-system.
5181
5182 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * window.c (Fset_window_configuration): Be careful when you choose
5185 among several possible points for the new_current_buffer.
5186
5187 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5188
5189 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
5190 poll_for_input_1. Set interrupt_input_pending to 1 instead.
5191 (Qlanguage_change) [MAC_OS]: New variable.
5192 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
5193 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
5194
5195 * macterm.c (mac_keyboard_text_encoding)
5196 (current_mac_keyboard_text_encoding): Remove variables.
5197 (XTread_socket): Store language-change event if keyboard script change
5198 is detected. Don't convert input to `mac_keyboard_text_encoding'.
5199 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
5200
5201 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
5202
5203 2005-04-10 Richard M. Stallman <rms@gnu.org>
5204
5205 * emacs.c (standard_args): Rename --bare-bones to --quick.
5206 Add -D aka --basic-display.
5207
5208 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
5209
5210 2005-04-09 Richard M. Stallman <rms@gnu.org>
5211
5212 * keymap.c (where_is_internal): Convert a string used as event type
5213 into "(any string)".
5214
5215 * lread.c (Vloads_in_progress): Not static.
5216 * fns.c (Vloads_in_progress): Add extern.
5217 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
5218
5219 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
5220
5221 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
5222
5223 2005-04-09 Lute Kamstra <lute@gnu.org>
5224
5225 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
5226 within the accessible part of the buffer.
5227
5228 2005-04-09 Kim F. Storm <storm@cua.dk>
5229
5230 * lread.c (readevalloop): Add args START and END as region in
5231 current buffer to read. Callers changed.
5232 When specified, narrow to this region only when reading,
5233 not during eval. Track next point to read from during eval.
5234 Also restore point to "real" buffer position before eval.
5235 (Feval_region): Don't save excursion and restriction here, and
5236 don't narrow to region. Just pass region to readevalloop.
5237 Note: Point is now preserved even when PRINTFLAG is nil.
5238
5239 2005-04-08 Kim F. Storm <storm@cua.dk>
5240
5241 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
5242
5243 2005-04-06 Kim F. Storm <storm@cua.dk>
5244
5245 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
5246
5247 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5248
5249 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
5250 (Fmac_get_preference): Doc fix.
5251
5252 * macfns.c (Fx_create_frame, x_create_tip_frame):
5253 Add "fontset-mac" to fallback font/fontsets.
5254
5255 2005-04-04 Kim F. Storm <storm@cua.dk>
5256
5257 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
5258
5259 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
5260 Call it again after autoload.
5261
5262 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5263
5264 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
5265 mallopt.
5266
5267 * ralloc.c (r_alloc_init): Ditto.
5268
5269 2005-04-01 Kenichi Handa <handa@m17n.org>
5270
5271 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
5272 (Vascii_eqv_table): Extern them.
5273
5274 * casetab.c (set_case_table): If standard is nonzero, setup
5275 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
5276
5277 * search.c (looking_at_1): Use current_buffer->case_canon_table,
5278 not DOWNCASE_TABLE.
5279 (string_match_1): Likewise.
5280 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
5281 Vascii_downcase_table.
5282 (fast_string_match_ignore_case): Likewise.
5283 (search_buffer): Fix checking of boyer-moore usability.
5284 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
5285 No need of tranlating characters in PAT. Fix calculation of
5286 simple_translate.
5287
5288 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5289
5290 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
5291 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
5292 Use XtNtopShadowPixel and XtNbottomShadowPixel.
5293 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
5294 really work and that breaks with some versions of Xaw3d.
5295
5296 2005-03-31 Kenichi Handa <handa@m17n.org>
5297
5298 * coding.c (syms_of_coding): Fix previous change.
5299
5300 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
5301
5302 * fileio.c (search_embedded_absfilename): Fix last change.
5303
5304 2005-03-25 Kenichi Handa <handa@m17n.org>
5305
5306 * coding.c (syms_of_coding): Suggest to use set-coding-category in
5307 the docstring of coding-category-list.
5308
5309 2005-03-31 Kim F. Storm <storm@cua.dk>
5310
5311 * keyboard.c (Qmouse_fixup_help_message): New var.
5312 (syms_of_keyboard): Intern and staticpro it.
5313 (show_help_echo): Apply mouse-fixup-help-message to help string.
5314
5315 2005-03-30 Kim F. Storm <storm@cua.dk>
5316
5317 * xdisp.c (display_line): Allow multiple overlay arrows in window.
5318
5319 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5320
5321 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
5322 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
5323 (Ffile_name_absolute_p): Use it.
5324 (search_embedded_absfilename): New fun, extracted from
5325 Fsubstitute_in_file_name. Use file_name_absolute_p.
5326 Free the pw data after use.
5327 (Fsubstitute_in_file_name): Use it.
5328 After cutting a prefix, re-check file-name-handler.
5329
5330 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
5331
5332 * w32term.h (x_output): Add focus_state.
5333
5334 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
5335 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
5336
5337 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
5338
5339 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
5340 Use Fexit_minibuffer.
5341 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
5342
5343 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5344
5345 * dired.c (Ffile_attributes): Add a missing gcpro.
5346
5347 * alloc.c (make_number): The arg can be bigger than `int'.
5348 * lisp.h (make_number): Make prototype more precise.
5349
5350 * process.c, dired.c (Vfile_name_coding_system)
5351 (Vdefault_file_name_coding_system):
5352 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
5353 (Vdefault_file_name_coding_system): Remove unused declarations.
5354
5355 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5356
5357 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
5358 if it failed to pop up (Gnome "show pointer on ctrl" option makes
5359 menus fail to pop up).
5360
5361 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5362
5363 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
5364 Just prepend a backslash without replacing the NBSP by an SPC.
5365
5366 2005-03-22 Kim F. Storm <storm@cua.dk>
5367
5368 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
5369 * dispextern.h (lookup_derived_face): Fix prototype.
5370 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
5371
5372 * xdisp.c (handle_single_display_spec): Derive left-fringe and
5373 right-fringe face from fringe face.
5374
5375 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
5376 Derive face from fringe face.
5377
5378 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5379
5380 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
5381
5382 2005-03-22 David Kastrup <dak@gnu.org>
5383
5384 * textprop.c (Fnext_char_property_change)
5385 (Fprevious_char_property_change): Allow marker as limit.
5386 (Fnext_single_char_property_change)
5387 (Fprevious_single_char_property_change): Check that limit is a
5388 number in strings.
5389 (Fnext_single_char_property_change): Coerce position to integer.
5390 (Fprevious_single_char_property_change): Same here.
5391
5392 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
5393
5394 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
5395
5396 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
5397
5398 * frame.c (Fignore_event): Remove.
5399 (syms_of_frame): Don't defsubr it.
5400
5401 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
5402 redundant `ignore-event'.
5403
5404 2005-03-19 Eli Zaretskii <eliz@gnu.org>
5405
5406 * unexec.c (write_segment, unexec): Move these functions to avoid
5407 forward references (which cause errors with "gcc -gcoff").
5408
5409 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5410
5411 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
5412 that it doesn't become "tooltip". The specbind is enough.
5413
5414 * xrdb.c (x_load_resources): Use different char *helv when I18N
5415 is present.
5416
5417 2005-03-17 Kenichi Handa <handa@m17n.org>
5418
5419 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
5420
5421 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5422
5423 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
5424 Use xic_create_fontsetname even for non-Motif menus.
5425 Don't forget to free the fontsetname.
5426
5427 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
5428
5429 2005-03-17 Richard M. Stallman <rms@gnu.org>
5430
5431 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
5432
5433 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
5434 (Fmake_symbolic_link): Use G to read the new file name.
5435
5436 * callint.c (Finteractive): Document G option.
5437 (Fcall_interactively): Implement G option.
5438
5439 * buffer.c (buffer_lisp_local_variables): New function,
5440 broken out from Fbuffer_local_variables.
5441 (clone_per_buffer_values): Use buffer_lisp_local_variables.
5442
5443 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5444
5445 * xfns.c (xic_create_fontsetname): Add `motif' argument.
5446 Always return a freshly allocated string.
5447 (xic_create_xfontset): Adjust call.
5448
5449 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
5450 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
5451 (dump_realized_face): Fix warning.
5452
5453 * emacs.c (Fkill_emacs): YAILOM.
5454
5455 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
5456
5457 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5458
5459 * mac.c (HASHKEY_TERMINAL): Remove.
5460 (HASHKEY_MAX_NID): New macro.
5461 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
5462 argument.
5463 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
5464 (xrm_create_database, xrm_q_put_resource)
5465 (xrm_merge_string_database, xrm_q_get_resource_1)
5466 (xrm_q_get_resource): Change resource database representation so
5467 that it may not use multiple hash tables for a single database.
5468 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
5469
5470 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
5471
5472 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
5473
5474 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
5475 locale-coding-system, as was already done for WINDOWSNT.
5476
5477 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
5478 translation for chars in the 0-255 range.
5479
5480 2005-03-16 Lute Kamstra <lute@gnu.org>
5481
5482 * floatfns.c (Ffloor): Doc fix.
5483
5484 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5485
5486 * mac.c: Include macterm.h instead of directly including Carbon.h.
5487 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
5488 (Qarray, Qdictionary): New variables.
5489 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
5490 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
5491 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
5492 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
5493 in callback for CFDictionaryApplyFunction.
5494 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
5495 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
5496 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
5497 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
5498 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
5499 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
5500 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
5501 (skip_white_space, parse_comment, parse_include_file)
5502 (parse_binding, parse_component, parse_resource_name, parse_value)
5503 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
5504 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
5505 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
5506 New functions.
5507
5508 * macfns.c (mac_get_rdb_resource): Remove function.
5509 (x_get_string_resource): Use xrm_get_resource.
5510
5511 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
5512
5513 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
5514 name_list_element.
5515 (mac_make_rdb): Create resource database from preferences and
5516 argument string.
5517 (mac_term_init): Save resource database to cddr part of
5518 name_list_element.
5519
5520 * macterm.h (xrm_merge_string_database, xrm_get_resource)
5521 (xrm_get_preference_database): Add externs.
5522 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
5523 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
5524 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
5525
5526 * process.c (init_process): Change `#ifdef DARWIN' to `#if
5527 defined (DARWIN) || defined (MAC_OSX)'
5528
5529 * s/darwin.h (DARWIN): Don't define.
5530
5531 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5532
5533 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
5534 Remove unused variables.
5535 (syms_of_macfns): Don't initialize them. Likewise for
5536 Qface_set_after_frame_default. Defvar and initialize
5537 Vx_window_horizontal_drag_shape.
5538 (x_set_mouse_color): Change mouse pointer shape.
5539 (mac_window) [!MAC_OSX]: Create root control.
5540 (Fx_create_frame): Remove initializations of mouse pointer shapes.
5541 (hourglass_started): New function (from xfns.c).
5542 (start_hourglass, cancel_hourglass): Put function body in #ifdef
5543 MAC_OSX.
5544 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
5545 indicator for each non-tooltip frame if needed, and show it.
5546 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
5547
5548 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
5549 Controls.h. Use ThemeCursor instead of CursHandle.
5550
5551 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
5552 Remove functions and declarations.
5553 (mac_set_colors): Take argument for saving background color.
5554 All callers changed.
5555 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
5556 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
5557 background color.
5558 (x_update_end, mac_do_track_drag): Don't reset background color.
5559 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
5560 Use SetThemeCursor.
5561 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
5562 indicator control to the upper-right corner of the window.
5563 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
5564 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
5565 (do_window_update): Update controls after updating content area.
5566 (mac_handle_window_event): Remove unused extern.
5567 (XTread_socket): Check both control handle and control part code
5568 to determine whether a scroll bar is clicked. Activate/deactivate
5569 root control instead of contained scroll bar controls.
5570 (make_mac_terminal_frame): Use ThemeCursor constants.
5571
5572 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
5573 New member hourglass_control.
5574 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
5575 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
5576
5577 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5578
5579 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
5580 coincides with that in Apple X11 except `clear', `enter' on
5581 laptops, and fn + `enter' on laptops.
5582
5583 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5584
5585 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
5586 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
5587 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
5588
5589 * xfns.c (xic_defaut_fontset): New constant.
5590 (xic_create_fontsetname): New function.
5591 Extracted from create_frame_xic. Try to generate a slightly
5592 better fontset.
5593 (xic_create_xfontset): Use it.
5594 (create_frame_xic): Simplify.
5595
5596 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
5597
5598 * fileio.c (Fmake_symbolic_link): Fix last change.
5599
5600 2005-03-11 Richard M. Stallman <rms@gnu.org>
5601
5602 * fileio.c (Frename_file, Fadd_name_to_file)
5603 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
5604 expand the basename of FILE relative to it.
5605
5606 2005-03-11 Kenichi Handa <handa@m17n.org>
5607
5608 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
5609 before calling setup_coding_system so that autoloading of a coding
5610 system work.
5611
5612 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5613
5614 * xfns.c (hourglass_started): New function.
5615
5616 * dispextern.h: Declare hourglass_started.
5617
5618 * keyboard.c (Fexecute_extended_command): Restart hourglass
5619 after call to Fcompleting_read if already started.
5620
5621 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
5622 GTK main loop is entered in xterm.c, thus doing the redraw.
5623
5624 2005-03-10 Kim F. Storm <storm@cua.dk>
5625
5626 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
5627
5628 2005-03-08 Kenichi Handa <handa@m17n.org>
5629
5630 * frame.c (x_set_font): Call set_default_ascii_font if an
5631 available font is found.
5632
5633 * fontset.c (set_default_ascii_font): New function.
5634 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
5635
5636 * fontset.h (set_default_ascii_font): Extern it.
5637
5638 2005-03-07 Kim F. Storm <storm@cua.dk>
5639
5640 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
5641 (clear_image_cache_count): New var.
5642 (redisplay_internal): Don't clear face and image caches in the
5643 middle of redisplay; do it afterwards.
5644
5645 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
5646
5647 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
5648 is valid. If not, clear phys_cursor_on_p and return.
5649
5650 2005-03-07 Andreas Schwab <schwab@suse.de>
5651
5652 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
5653
5654 2005-03-06 Richard M. Stallman <rms@gnu.org>
5655
5656 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
5657
5658 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
5659 (Feval, Ffuncall): Use CHECK_CONS_LIST.
5660
5661 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
5662
5663 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
5664 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
5665
5666 2005-03-05 Juri Linkov <juri@jurta.org>
5667
5668 * emacs.c (USAGE1): Replace Info node name "command arguments"
5669 with "emacs invocation".
5670 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
5671 allow arguments `--color' and `MODE' to be separated by space.
5672 Add --no-blinking-cursor, -nbc.
5673 (standard_args): Add -nbc, --no-blinking-cursor.
5674
5675 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
5676
5677 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
5678 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
5679 * fileio.c (Fexpand_file_name) [VMS]:
5680 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
5681 * doc.c (munge_doc_file_name) [VMS]: Likewise.
5682 (Fsnarf_documentation): Call munge_doc_file_name.
5683
5684 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
5685
5686 * s/vms.h (FILE_SYSTEM_CASE): New macro.
5687 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
5688 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
5689
5690 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5691
5692 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
5693 defined (MAC_OSX) && defined (HAVE_CARBON)'.
5694
5695 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
5696
5697 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
5698 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
5699 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
5700 (mac_clear_font_name_table): Move extern to macterm.h.
5701
5702 * macfns.c (install_window_handler): Move extern to macterm.h.
5703 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
5704 valid. Don't check !NILP (dir) because it is already checked with
5705 CHECK_STRING.
5706 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
5707 specifying the default location and obtaining the selected filename.
5708
5709 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
5710
5711 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
5712 are included via Carbon.h.
5713
5714 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
5715 Define USE_CARBON_EVENTS to 1.
5716 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
5717 (x_free_frame_resources): Call remove_window_handler for
5718 non-tooltip windows.
5719 [TARGET_API_MAC_CARBON]: Don't include headers that are included
5720 via Carbon.h.
5721 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
5722 (mac_do_receive_dragUPP): New variables.
5723 (mac_handle_service_event, init_service_handler): Put declarations
5724 and definitions in #ifdef MAC_OSX.
5725 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
5726 drag-and-drop handler functions and register them.
5727 (remove_window_handler): New function.
5728 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
5729 Use fsspec_to_posix_pathname.
5730 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
5731 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
5732 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
5733 Set default cursors.
5734 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
5735 init_service_handler or init_quit_char_handler.
5736 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
5737
5738 * macterm.h (install_window_handler, remove_window_handler)
5739 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
5740 (mac_clear_font_name_table): New externs.
5741
5742 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
5743
5744 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
5745 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
5746 (Fexpand_file_name): Likewise.
5747
5748 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
5749
5750 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
5751 no longer special-case VMS. Add bogus return value.
5752
5753 2005-03-02 Kim F. Storm <storm@cua.dk>
5754
5755 * dispextern.h (XASSERTS): Define to 0 if not already defined.
5756 (xassert) [!XASSERTS]: Define dummy version.
5757
5758 2005-03-02 Kim F. Storm <storm@cua.dk>
5759
5760 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
5761 Reported by David Kastrup.
5762
5763 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
5764
5765 * xdisp.c (get_next_display_element): Fix control and escape
5766 glyph from display vector.
5767
5768 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
5769
5770 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
5771
5772 2005-02-27 Richard M. Stallman <rms@gnu.org>
5773
5774 * xdisp.c (fast_find_position): Rename END to BEG.
5775 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
5776
5777 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5778
5779 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
5780 gtk_window_resize and x_wm_set_size_hint.
5781
5782 2005-02-25 Kim F. Storm <storm@cua.dk>
5783
5784 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
5785
5786 * xdisp.c (init_from_display_pos): Don't read past end of
5787 it->overlay_strings array.
5788
5789 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
5790
5791 * buffer.c (syms_of_buffer): Fix typo.
5792
5793 2005-02-23 Lute Kamstra <lute@gnu.org>
5794
5795 * buffer.c (Foverlay_buffer): Doc fix.
5796
5797 2005-02-22 Kim F. Storm <storm@cua.dk>
5798
5799 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
5800 and symbol keys in alists and hash tables.
5801
5802 * xdisp.c (fast_find_position): Fix search for start of overlay.
5803
5804 2005-02-21 Kim F. Storm <storm@cua.dk>
5805
5806 * window.c (window_scroll_pixel_based): When scrolling backwards,
5807 handle partial visible line at end of window even when we hit PT.
5808
5809 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
5810
5811 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
5812
5813 2005-02-21 Kim F. Storm <storm@cua.dk>
5814
5815 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
5816 I think those asserts are bogus if buffer contains invisible text
5817 or images.
5818
5819 2005-02-21 David Kastrup <dak@gnu.org>
5820
5821 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
5822
5823 2005-02-20 Kim F. Storm <storm@cua.dk>
5824
5825 * xdisp.c (pos_visible_p): Be sure to move to the specified
5826 position. Always get the full ascent / descent of the
5827 corresponding row, to return reliable rtop and rbot values.
5828 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
5829 Must look one character back, as back_to_previous_line_start
5830 returns position after the newline.
5831 (move_it_vertically_backward): Fix heuristic for when to move further
5832 back in case line_height * 2/3 is larger than window height.
5833 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
5834 as it does not do anything anymore. Add arg current_matrix_p to
5835 use current matrix rather than desired matrix when set.
5836 (try_cursor_movement): Don't scroll to make cursor row fully
5837 visible if cursor didn't move. This avoids unexpected recentering
5838 in case of blinking cursor or accepting process output.
5839 Use current matrix to check cursor row visibility.
5840 (redisplay_window): Fix whether to recenter or move to top in case
5841 cursor line is taller than window height.
5842 (find_first_unchanged_at_end_row): Stop search if we reach a row
5843 which not enabled (instead of abort).
5844
5845 2005-02-18 Kim F. Storm <storm@cua.dk>
5846
5847 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
5848 to be nil in a :box attribute value list; customize prints that
5849 as lisp value when no box color is specified.
5850
5851 * .gdbinit (pitx, pit): Pretty print display iterator.
5852 (prowx, prow): Pretty print glyph row.
5853 (pcursorx, pcursor): Pretty print a window cursor.
5854 (pwinx, pwin): Pretty print struct window.
5855
5856 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5857
5858 * alloc.c (BLOCK_BYTES): Harmless typo.
5859
5860 2005-02-17 Andreas Schwab <schwab@suse.de>
5861
5862 * xfns.c (hack_wm_protocols): Use correct type for last parameter
5863 of XGetWindowProperty to avoid aliasing issues.
5864 (Fx_window_property): Likewise.
5865
5866 * xselect.c (Fx_disown_selection_internal): Use union of struct
5867 input_event and struct selection_input_event to avoid aliasing issues.
5868
5869 * xterm.c (handle_one_xevent): Use union of struct input_event and
5870 struct selection_input_event to avoid aliasing issues.
5871 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
5872
5873 2005-02-17 Kim F. Storm <storm@cua.dk>
5874
5875 * dispextern.h (enum it_method): New enum.
5876 (GET_FROM_*): Its members.
5877 (struct it): Change member method from function pointer to enum.
5878
5879 * xdisp.c (check_it, init_from_display_pos, handle_stop)
5880 (setup_for_ellipsis, handle_single_display_spec)
5881 (handle_composition_prop, next_overlay_string)
5882 (get_overlay_strings, reseat_1, reseat_to_string)
5883 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
5884 (in_display_vector_p, display_line, get_next_display_element):
5885 Change it->method from function pointer to enum.
5886 (get_next_element): New array to map it->method to function.
5887 (get_next_display_element): Use it.
5888 (set_iterator_to_next): Use switch instead of if/else chain.
5889
5890 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
5891
5892 * w32select.c: Summary: Thorough rework to implement Unicode
5893 clipboard operations and delayed rendering.
5894
5895 Drop last_clipboard_text and related code, keep track of
5896 ownership via clipboard_owner instead. Drop old #if0 sections.
5897
5898 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
5899 (clipboard_owner, modifying_clipboard, cfg_coding_system)
5900 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
5901 (current_coding_system, current_requires_encoding)
5902 (current_num_nls, current_clipboard_type, current_lcid):
5903 New static variables.
5904
5905 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
5906 (render, render_all, run_protected, lisp_error_handler)
5907 (owner_callback, create_owner, setup_config)
5908 (enum_locale_callback, cp_from_locale, coding_from_cp):
5909 New local functions.
5910
5911 (term_w32select, globals_of_w32select): New global functions.
5912
5913 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
5914 clipboard_owner instead. Use delayed rendering and provide
5915 all text formats. Provide CF_LOCALE if necessary.
5916
5917 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
5918 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
5919 available. Force DOS line-ends for decoding.
5920
5921 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
5922
5923 (syms_of_w32select): Init and register new variables.
5924
5925 * w32.h: Add prototypes for globals_of_w32select and
5926 term_w32select. Make the neighboring K&R declarations into
5927 prototypes, too.
5928
5929 * emacs.c: Include w32.h to get function prototypes.
5930 (main): Call globals_of_w32select.
5931
5932 * w32.c (term_ntproc): Call term_w32select.
5933
5934 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
5935
5936 2005-02-16 Kim F. Storm <storm@cua.dk>
5937
5938 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
5939 at end of display vector.
5940
5941 2005-02-15 Richard M. Stallman <rms@gnu.org>
5942
5943 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
5944 for mode and header lines.
5945
5946 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
5947
5948 * keymap.h (describe_map_tree): Change decl.
5949
5950 * keyboard.c (command_loop_1): Always use safe_run_hooks
5951 to run Qdeferred_action_function.
5952
5953 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
5954 (describe_map, describe_vector): Likewise. When it's 1,
5955 don't omit shadowed bindings, instead mark them as shadowed.
5956
5957 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
5958 for describe_map_tree. Pass 1 for MENTION_SHADOW.
5959
5960 * data.c (Fsetq_default): Allow no arg case.
5961
5962 2005-02-14 Kenichi Handa <handa@m17n.org>
5963
5964 * coding.c (encode_coding_string): Always return a unibyte string.
5965 If NOCOPY is nonzero and there's no need of encoding, make STR
5966 unibyte directly.
5967
5968 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
5969 multibyte string, signal an error instead of aborting.
5970
5971 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
5972
5973 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
5974
5975 2005-02-12 Kim F. Storm <storm@cua.dk>
5976
5977 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
5978
5979 2005-02-10 Kim F. Storm <storm@cua.dk>
5980
5981 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
5982 if it moves outside window or it doesn't display text.
5983
5984 2005-02-09 Kim F. Storm <storm@cua.dk>
5985
5986 * undo.c (Fprimitive_undo): Check that undo function does not
5987 switch buffer.
5988
5989 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5990
5991 * xselect.c (selection_data_to_lisp_data): For the special case
5992 type == XA_ATOM, data contains array of int, not array of Atom.
5993 (x_property_data_to_lisp, selection_data_to_lisp_data):
5994 Comment update: data must be array of int for format == 32.
5995
5996 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5997
5998 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
5999
6000 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6001
6002 * xfns.c (Fx_change_window_property): Use long array when format is 32.
6003 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
6004 convert long array returned from XGetWindowProperty to an int array.
6005 (x_set_tool_bar_lines): Check that width and height is greater than
6006 zero before clearing area.
6007
6008 * xselect.c (x_reply_selection_request): Pass long array to
6009 XChangeProperty so that 64 bit longs are handeled correctly.
6010 (x_get_window_property): If format is 32 and long is bigger than 32
6011 bits convert data from XGetWindowProperty from long array to int array.
6012 (lisp_data_to_selection_data): When the input is a vector and the
6013 format is 32, allocate a long array even if long is bigger than 32 bits.
6014 (x_fill_property_data): Use char, short and long as the man page
6015 for XChangeProperty specifies. This way the data returned is OK for
6016 both 32 and 64 bit machines.
6017 (x_handle_dnd_message): Calculate size correctly even for 64 bit
6018 machines.
6019 (Fx_send_client_event): Undo change from 2005-02-05,
6020 x_fill_property_data now handles that case.
6021
6022 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
6023 reason for the approach in the code.
6024
6025 2005-02-07 Kim F. Storm <storm@cua.dk>
6026
6027 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
6028
6029 2005-02-06 Richard M. Stallman <rms@gnu.org>
6030
6031 * eval.c (Frun_hook_with_args)
6032 (Frun_hook_with_args_until_success)
6033 (Frun_hook_with_args_until_failure): Doc fixes.
6034
6035 2005-02-05 Andreas Schwab <schwab@suse.de>
6036
6037 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
6038
6039 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6040
6041 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
6042 the longs in a XClientMessageEvent correctly when long is 64 bits.
6043
6044 2005-02-05 Eli Zaretskii <eliz@gnu.org>
6045
6046 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
6047 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
6048
6049 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6050
6051 * xmenu.c (menubar_selection_callback): Force out GTK buffered
6052 events so the menu event comes after them. This is to prevent sit-for
6053 from exiting on buffered events directly after a menu selection,
6054 lisp code for Help => About Emacs uses sit-for.
6055
6056 * gtkutil.c (create_menus): Connect selection-done event instead of
6057 the deactivate event to deactivate_cb. This will make the last
6058 leave event come before the call to deactivate_cb, so the leave
6059 event does not make sit-for exit after a menu selection.
6060
6061 2005-02-03 Kim F. Storm <storm@cua.dk>
6062
6063 * dispnew.c (build_frame_matrix_from_leaf_window)
6064 [!GLYPH_DEBUG]: Fix xassert.
6065
6066 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
6067
6068 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6069
6070 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6071
6072 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
6073 the compiling OS version.
6074
6075 * macfns.c (x_create_tip_frame): Likewise.
6076
6077 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
6078
6079 2005-02-03 Richard M. Stallman <rms@gnu.org>
6080
6081 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
6082
6083 * xdisp.c (echo_area_display): Clear echo_message_buffer.
6084
6085 * buffer.c (Fbury_buffer): Doc fix.
6086
6087 2005-02-02 Steven Tamm <steventamm@mac.com>
6088
6089 * macfns.c (unwind_create_frame): Fix compile error due to
6090 xassert being uncondition, but predicate is.
6091 * dispnew.c (update_window): Fix compile error due to
6092 xassert being uncondition, but predicate is.
6093
6094 2005-02-02 Miles Bader <miles@gnu.org>
6095
6096 * dispextern.h (xassert): Enable unconditionally.
6097
6098 2005-02-02 Kim F. Storm <storm@cua.dk>
6099
6100 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
6101
6102 2005-02-02 Kenichi Handa <handa@m17n.org>
6103
6104 * casefiddle.c (casify_object): Enable changing characters of
6105 different byte length.
6106 (casify_region): Fix loop condition, args to replace_range_2, and
6107 update opoint_byte.
6108
6109 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
6110
6111 2005-02-01 Kim F. Storm <storm@cua.dk>
6112
6113 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
6114 stack before calling handle_display_prop.
6115
6116 2005-01-31 Kim F. Storm <storm@cua.dk>
6117
6118 * undo.c (Qapply): New lisp var.
6119 (syms_of_undo): Intern and staticpro it.
6120 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
6121 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
6122
6123 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
6124
6125 2005-01-30 Jesper Harder <harder@phys.au.dk>
6126
6127 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
6128 <mac-emulate-three-button-mouse>: Fix docstring indentation.
6129
6130 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
6131
6132 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6133 Increase value to 3 Meg.
6134
6135 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6136
6137 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
6138 button events are not received otherwise.
6139
6140 2005-01-29 Richard M. Stallman <rms@gnu.org>
6141
6142 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
6143
6144 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
6145
6146 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
6147
6148 * keymap.c (access_keymap): YAILOM.
6149
6150 2005-01-27 Kim F. Storm <storm@cua.dk>
6151
6152 * xdisp.c (get_phys_cursor_geometry): New function to calculate
6153 phys cursor position and size for hollow cursor. Position is
6154 aligned with get_glyph_string_clip_rect and ensures that a hollow
6155 cursor is shown, even when the actual glyph is not visible.
6156
6157 * dispextern.h (get_phys_cursor_geometry): Add prototype.
6158
6159 * xterm.c (x_clip_to_row): Ensure y >= 0.
6160 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6161
6162 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6163
6164 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6165
6166 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
6167
6168 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
6169
6170 2005-01-27 Kim F. Storm <storm@cua.dk>
6171
6172 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
6173 glyph, even when row is only partially visible and actual cursor
6174 position is not visible.
6175
6176 2005-01-24 Richard M. Stallman <rms@gnu.org>
6177
6178 * xterm.c (x_error_quitter): No longer static, and moved after
6179 x_error_handler.
6180
6181 2005-01-24 Kim F. Storm <storm@cua.dk>
6182
6183 * xdisp.c (move_it_by_lines): If we move forward after going too
6184 far back, cancel move if end position is same as start position.
6185
6186 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6187
6188 * dispextern.h (struct glyph_string): New members clip_head and
6189 clip_tail.
6190
6191 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
6192 region to the area between clip_head and clip_tail.
6193 (draw_glyphs): Record the area that need to be actually redrawn to
6194 the new variables clip_head and clip_tail when there are
6195 overhangs. Set values of these variables to the corresponding
6196 members in struct glyph_string. Refine x coordinates for
6197 notice_overwritten_cursor using clip_head and clip_tail.
6198
6199 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
6200
6201 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
6202 QDTextBounds.
6203 (x_draw_glyph_string): Don't fill the background of the successor
6204 of a glyph with a right overhang if the successor will draw a cursor.
6205 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6206 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
6207
6208 2005-01-24 Kim F. Storm <storm@cua.dk>
6209
6210 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
6211 direction if window height was smaller than next-screen-context-lines.
6212 Now always scroll at least one line in the requested direction.
6213 Ensure that we actually do scroll backwards when requested to do so.
6214
6215 * xdisp.c (redisplay_window): Only try to make cursor line fully
6216 visible once (to avoid redisplay loop).
6217
6218 2005-01-23 Kim F. Storm <storm@cua.dk>
6219
6220 * window.c (Fpos_visible_in_window_p): Simplify return value for
6221 partially visible rows.
6222 (window_scroll_pixel_based): Adapt to that change.
6223
6224 * window.c (window_scroll_pixel_based): Force moving to next line
6225 if scrolling doesn't move start point, e.g. if looking at tall image.
6226
6227 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
6228 Clear last_height before calling line_bottom_y to get real height.
6229 Fix calculation of y.
6230
6231 2005-01-22 Steven Tamm <steventamm@mac.com>
6232
6233 * s/darwin.h: Removed PTY_ITERATION from here.
6234 (DARWIN): Define.
6235
6236 * process.c (init_process): Default process-connection-type to
6237 nil on darwin 6 or less, t if it is 7 or higher. This way the
6238 broken pty behavior is still allowed on darwin 6 for interactive
6239 processes for people that know what they are doing.
6240
6241 2005-01-22 Kim F. Storm <storm@cua.dk>
6242
6243 * window.c (auto_window_vscroll_p): New boolean.
6244 (syms_of_window): DEFVAR_BOOL it.
6245 (Fpos_visible_in_window_p): Extend return value to include RTOP
6246 and RBOT values if FULLY is nil.
6247 (window_scroll_pixel_based): Adjust vscroll for partially visible
6248 rows if auto_window_vscroll_p is set.
6249 (Fset_window_vscroll): Do nothing if vscroll is not modified.
6250
6251 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
6252 to return number of partially invisible pixels at top and bottom
6253 of the dislay row at POS.
6254
6255 * lisp.h (pos_visible_p): Fix prototype.
6256
6257 2005-01-21 Richard M. Stallman <rms@gnu.org>
6258
6259 * fileio.c (Fcopy_file): Doc fix.
6260
6261 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6262
6263 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
6264 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
6265 start of function for older compilers.
6266
6267 2005-01-20 Richard M. Stallman <rms@gnu.org>
6268
6269 * editfns.c (Fmessage): If arg is "", return "" (as before).
6270
6271 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
6272
6273 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
6274 variable.
6275
6276 2005-01-20 Steven Tamm <steventamm@mac.com>
6277
6278 * editfns.c (Voperating_system_release): Add.
6279 (init_editfns): Assign new variable operating-system-release
6280 based on call to uname if available.
6281 (get_operating_system_release): Add function to
6282 allow c-level access to operating system release.
6283
6284 * config.h: Regenerated.
6285
6286 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
6287 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
6288 using ptys as '7'.
6289
6290 2005-01-20 Kim F. Storm <storm@cua.dk>
6291
6292 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
6293
6294 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
6295 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
6296
6297 * macterm.c (x_draw_glyph_string_box): Likewise.
6298
6299 * w32term.c (x_draw_glyph_string_box): Likewise.
6300
6301 * indent.c (Fvertical_motion): Temporarily disable selective display.
6302
6303 2005-01-19 Kim F. Storm <storm@cua.dk>
6304
6305 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
6306 image property.
6307
6308 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
6309
6310 2005-01-18 Kim F. Storm <storm@cua.dk>
6311
6312 * xdisp.c (fast_find_position): Backtrack to find first row if
6313 charpos is inside a display overlay that spans multiple lines.
6314
6315 2005-01-18 Kenichi Handa <handa@m17n.org>
6316
6317 * coding.c (decode_coding_iso2022): Translate invalid codes if
6318 translation-table is specified.
6319
6320 2005-01-18 Kim F. Storm <storm@cua.dk>
6321
6322 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
6323 change. If handle_display_prop indicates newline is replaced by
6324 image or text, move back to start of relevant overlay or interval
6325 and continue scan from there. Simplify.
6326
6327 2005-01-17 Kim F. Storm <storm@cua.dk>
6328
6329 * dispnew.c (mode_line_string, marginal_area_string):
6330 Fix off-by-one error in search for glyph.
6331
6332 2005-01-16 Kim F. Storm <storm@cua.dk>
6333
6334 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
6335
6336 2005-01-16 Steven Tamm <steventamm@mac.com>
6337
6338 * macterm.c (mac_to_x_fontname): Remove spurious argument.
6339
6340 2005-01-16 Andreas Schwab <schwab@suse.de>
6341
6342 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
6343
6344 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6345
6346 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
6347 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
6348
6349 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6350
6351 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
6352 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
6353 New flags for readable_events.
6354 (get_filtered_input_pending, readable_filtered_events): Remove.
6355 (tracking_off): Call readable_events and get_input_pending with
6356 flag READABLE_EVENTS_DO_TIMERS_NOW.
6357 (readable_events): Move code from old readable_filtered_events here,
6358 but check new READABLE_EVENTS_* in argument flags instead of previous
6359 two boolean arguments do_timers_now and filter_events.
6360 If we are doing mouse tracking and the mouse moved, return only if
6361 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
6362 (swallow_events): Call get_input_pending with flag
6363 READABLE_EVENTS_DO_TIMERS_NOW.
6364 (get_input_pending): Move code from old get_filtered_input_pending
6365 here. Replace boolean arguments do_timers_now, filter_events with
6366 flags, and pass flags to readable_events. Document new
6367 READABLE_EVENTS_* flags.
6368 (detect_input_pending_ignore_squeezables): New function.
6369 (detect_input_pending_run_timers): Call get_input_pending with flag
6370 READABLE_EVENTS_DO_TIMERS_NOW.
6371 (Finput_pending_p): Call get_input_pending with flags
6372 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
6373
6374 * dispnew.c (update_window, update_frame_1): Replace calls to
6375 detect_input_pending with detect_input_pending_ignore_squeezables
6376 so that redisplay is not paused if the event queue contains only
6377 mouse movements.
6378
6379 * lisp.h: Declare detect_input_pending_ignore_squeezables.
6380
6381 2005-01-15 Steven Tamm <steventamm@mac.com>
6382
6383 * macterm.c (Vmac_use_core_graphics): Declare variable for
6384 mac-allow-anti-aliasing.
6385 (syms_of_macterm): DEFVAR_LISP and initialize it.
6386 (mac_draw_string_common): Use core graphics text rendering if
6387 mac-allow-anti-aliasing is enabled.
6388
6389 * macfns.c (Fx_file_dialog): Save As dialog includes only the
6390 file name in the text box.
6391
6392 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6393
6394 * macfns.c (x_set_foreground_color, x_set_background_color):
6395 Sync with xfns.c.
6396 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
6397 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
6398 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
6399
6400 2005-01-14 Kim F. Storm <storm@cua.dk>
6401
6402 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
6403
6404 2005-01-13 Richard M. Stallman <rms@gnu.org>
6405
6406 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
6407 if Voverriding_terminal_local_map is non-nil.
6408
6409 * keyboard.c (syms_of_keyboard): Doc fix.
6410
6411 2005-01-13 Kim F. Storm <storm@cua.dk>
6412
6413 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
6414 (specify 0 for FACE instead). Reorder arg list. Doc fix.
6415
6416 2005-01-12 Richard M. Stallman <rms@gnu.org>
6417
6418 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
6419 face property for characters that don't specify one.
6420
6421 * fns.c (Frequire): Record in load-history unconditionally.
6422
6423 2005-01-10 Kim F. Storm <storm@cua.dk>
6424
6425 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
6426
6427 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
6428 Callers changed.
6429 Add support to merge with lisp face id too (if face_name is t).
6430
6431 * xdisp.c (get_next_display_element, next_element_from_display_vector):
6432 Don't lookup lface_id from display table glyphs here; instead use
6433 merge_faces to merge the lisp face id into current face.
6434
6435 2005-01-09 Kim F. Storm <storm@cua.dk>
6436
6437 * dispextern.h (struct it): New member dpvec_face_id.
6438 (merge_into_realized_face): Add prototype.
6439
6440 * xfaces.c (merge_into_realized_face): New function. Used to
6441 merge escape-glyph face or face from display table into current face.
6442
6443 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
6444 (syms_of_xdisp): DEFVAR_LISP it.
6445 (escape_glyph_face): Remove var.
6446 (redisplay_window): Don't initialize it.
6447 (setup_for_ellipsis, get_next_display_element):
6448 Set it->dpvec_face_id to -1.
6449 (get_next_display_element): Test Vshow_nonbreak_escape.
6450 Do not setup escape_glyph_face.
6451 Properly merge escape-glyph face or face from display table with
6452 current face for escape and control characters.
6453 Set it->dpvec_face_id to relevant face id instead of adding it to each
6454 element of display vector.
6455 (next_element_from_display_vector): If it->dpvec_face_id is set,
6456 use that instead of lface_id from glyph itself.
6457
6458 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6459
6460 * xterm.h (struct x_output): New member, toolbar_detached.
6461
6462 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
6463 38.
6464 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
6465 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
6466 (xg_create_tool_bar): Initialize toolbar_detached.
6467 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
6468 toolbar_detached is zero.
6469
6470 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6471
6472 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
6473 gtk_menu_popup if not for_click, so callbacks for the menu are called.
6474
6475 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
6476 (xg_tool_bar_callback, xg_tool_bar_help_callback)
6477 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
6478
6479 * xselect.c (x_get_foreign_selection, x_fill_property_data)
6480 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
6481 XFLOAT_DATA to get extract number from Lisp object.
6482
6483 2005-01-07 Kim F. Storm <storm@cua.dk>
6484
6485 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
6486 Set stop_charpos to current charpos instead of 0.
6487
6488 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
6489
6490 * xdisp.c (Fformat_mode_line): First arg now required.
6491
6492 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6493
6494 * macterm.c (XLoadQueryFont): Correctly handle 0 size
6495 font widths that are returned from some Japanese fonts.
6496
6497 2005-01-06 Kim F. Storm <storm@cua.dk>
6498
6499 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
6500 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
6501 (destroy_fringe_bitmap): Set fringe_faces element to nil.
6502 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
6503 fringe_faces array and init elements to nil.
6504 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
6505 non-persistent face id.
6506 (mark_fringe_data): New function for GC.
6507
6508 * alloc.c (mark_fringe_data): Declare extern.
6509 (Fgarbage_collect): Call mark_fringe_data.
6510
6511 * alloc.c (overrun_check_free): Invalidate freed memory if
6512 XMALLOC_CLEAR_FREE_MEMORY is defined.
6513
6514 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6515
6516 * macfns.c: Include sys/param.h.
6517 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
6518 and function.
6519 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
6520 of filename string. Set event callback function when creating
6521 dialog boxes. Add code conversions for filenames. Don't dispose
6522 of apple event descriptor record if failed to create it.
6523
6524 * macterm.c: Include sys/param.h.
6525 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
6526 kEventWindowUpdate.
6527 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
6528 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
6529 of FSSpec from apple event descriptor record.
6530 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
6531 size of filename string.
6532 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
6533 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
6534 file dialog is in action.
6535 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
6536 Reject only when there are no filename items. Set background color
6537 before (un)highlighting the window below the dragged items.
6538 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
6539
6540 2005-01-05 Romain Francoise <romain@orebokech.com>
6541
6542 * term.c (encode_terminal_code): Fix buffer size computation.
6543
6544 2005-01-04 Richard M. Stallman <rms@gnu.org>
6545
6546 * xdisp.c (Fformat_mode_line): Doc fix.
6547
6548 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6549
6550 * alloc.c (refill_memory_reserve): Move.
6551 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
6552 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
6553
6554 2005-01-03 Richard M. Stallman <rms@gnu.org>
6555
6556 * window.c (window_scroll_pixel_based): Don't correct preserve_y
6557 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
6558
6559 2005-01-03 Jason Rumney <jasonr@gnu.org>
6560
6561 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
6562 fontp->space_width to FONT_WIDTH so they are valid.
6563
6564 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
6565 average width. Set fontp->average_width and fontp->space_width to
6566 their appropriate values.
6567
6568 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
6569 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
6570 fontp->space_width.
6571
6572 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6573
6574 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
6575 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
6576 metrics for max and min bounds.
6577 (x_load_font): Correctly calculate average font width metrics.
6578
6579 2005-01-02 Richard M. Stallman <rms@gnu.org>
6580
6581 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
6582
6583 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6584
6585 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
6586
6587 2004-12-31 Richard M. Stallman <rms@gnu.org>
6588
6589 * xdisp.c (setup_for_ellipsis, get_next_display_element):
6590 Set it->ellipsis_p to 1 or 0.
6591 (display_line): Record whether row ends in mid-ellipsis.
6592 (set_cursor_from_row): If ends in ellipsis, find start of it.
6593 (cursor_row_p): If PT's at the end of the ellipsis the row
6594 ends within, don't display cursor on this row.
6595
6596 * dispextern.h (struct it): New element ellipsis_p.
6597 (struct glyph_row): New element ends_in_ellipsis_p.
6598
6599 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
6600 position if we're reading from something other than the buffer.
6601
6602 * window.c (window_scroll_pixel_based): Only look at
6603 Vscroll_preserve_screen_position if the old PT can't be kept.
6604 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6605
6606 2004-12-30 Kim F. Storm <storm@cua.dk>
6607
6608 * xdisp.c (get_line_height_property): New function extracted from
6609 original calc_line_height_property.
6610 (calc_line_height_property): Rework. Handle t and (nil . ratio).
6611 (x_produce_glyphs): Use them to handle line-height and
6612 line-spacing according to new height spec.
6613 (Qtotal): Remove.
6614 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
6615
6616 2004-12-30 Kenichi Handa <handa@m17n.org>
6617
6618 * fileio.c (Finsert_file_contents): Don't use
6619 current_buffer->buffer_file_coding_system even if REPLACE is
6620 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
6621
6622 * fontset.h (struct font_info): New members space_width and
6623 average_width.
6624
6625 * frame.h (struct frame): New member space_width.
6626 (FRAME_SPACE_WIDTH): New macro.
6627
6628 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
6629
6630 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
6631 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
6632 fontp->space_width.
6633 (x_load_font): Calculate fontp->space_width and fontp->average_width.
6634 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
6635
6636 * xdisp.c (x_produce_glyphs): Calculate tab width by
6637 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
6638
6639 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
6640
6641 * macterm.c (SelectionRange): Add Xcode position apple event struct.
6642 (do_ae_open_documents): Handle Xcode-style file position open events.
6643
6644 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
6645
6646 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
6647
6648 2004-12-29 Richard M. Stallman <rms@gnu.org>
6649
6650 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
6651
6652 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6653
6654 * macfns.c (install_window_handler): Modify extern to return OSErr
6655 value.
6656 (mac_window): Handle return value of install_window_handler.
6657
6658 * macterm.c (reflect_byte): Remove function.
6659 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
6660 Lookup table instead.
6661 (mac_do_font_lists): Simplify calculation of the longest
6662 nonspecial string.
6663 (init_mac_drag_n_drop): Remove function and declaration.
6664 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
6665 init_mac_drag_n_drop.
6666 (mac_do_track_drag): New function and declaration.
6667 (install_window_handler): Return OSErr value.
6668 (install_window_handler) [TARGET_API_MAC_CARBON]:
6669 Register handlers for tracking/receiving drag-and-drop items.
6670 (do_ae_open_documents): Generate unibyte strings for filenames.
6671 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
6672 Reject only non-filename items. Set event modifiers, and return value.
6673
6674 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
6675
6676 * coding.c (decode_coding): Fix previous change.
6677
6678 2004-12-28 Richard M. Stallman <rms@gnu.org>
6679
6680 * xdisp.c (back_to_previous_visible_line_start):
6681 Don't call handle_display_prop.
6682
6683 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
6684
6685 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
6686 (decode_coding_emacs_mule, encode_coding_emacs_mule)
6687 (decode_coding_iso2022, encode_designation_at_bol)
6688 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
6689 (decode_coding): Constify arguments and local vars.
6690
6691 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6692
6693 * xmenu.c (popup_get_selection): Only pop down dialogs
6694 on C-g and Escape.
6695 (popup_get_selection): Remove parameter down_on_keypress.
6696 (create_and_show_popup_menu, create_and_show_dialog):
6697 Remove parameter down_on_keypress to popup_get_selection.
6698
6699 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6700
6701 * dispextern.h: Change HAVE_CARBON to MAC_OS.
6702 (struct glyph_string): Likewise.
6703
6704 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
6705 mac_initialize.
6706
6707 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
6708 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
6709
6710 * fns.c (vector): Change MAC_OSX to MAC_OS.
6711
6712 * frame.c (x_set_frame_parameters, x_report_frame_params)
6713 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
6714 (x_set_border_width, Vdefault_frame_scroll_bars):
6715 Change HAVE_CARBON to MAC_OS.
6716
6717 * image.c [MAC_OS]: Include sys/stat.h.
6718 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
6719 QuickTimeComponents.h.
6720
6721 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
6722 [!MAC_OSX] (select): Use mac_wait_next_event.
6723 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
6724 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
6725 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
6726 (mac_clear_font_name_table): Add extern.
6727 (Fmac_clear_font_name_table): New defun.
6728 (syms_of_mac): Defsubr it.
6729 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
6730 [MAC_OSX] (select_and_poll_event): New function.
6731 [MAC_OSX] (sys_select): Use it.
6732 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
6733 [MAC_OSX && SELECT_USE_CFSOCKET]
6734 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
6735 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
6736 RunLoop for simultaneously monitoring two kinds of inputs, window
6737 events and process outputs, without periodically polling.
6738
6739 * macfns.c (mac_initialized): Remove extern.
6740 (stricmp): Put in #if 0. All callers changed to use xstricmp in
6741 xfaces.c.
6742 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
6743 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
6744 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
6745 (mac_get_rdb_resource): New function (from w32reg.c).
6746 (x_get_string_resource): Use it.
6747 (install_window_handler): Add extern.
6748 (mac_window): New function.
6749 (Fx_create_frame): Use it instead of make_mac_frame.
6750 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
6751 (Fx_open_connection, Fx_close_connection): New defuns.
6752 (syms_of_macfns): Defsubr them.
6753 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
6754 Add kWindowNoUpdatesAttribute to the window attribute.
6755 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
6756 (x_create_tip_frame): Don't call ShowWindow.
6757 (Fx_show_tip): Call ShowWindow.
6758 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
6759 TARGET_API_MAC_CARBON'.
6760 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
6761 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
6762
6763 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
6764 (Window): Typedef to WindowPtr and move outside `#if
6765 TARGET_API_MAC_CARBON'.
6766 (XSizeHints): New struct.
6767
6768 * macterm.c (x_update_begin, x_update_end)
6769 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
6770 frame.
6771 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6772 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
6773 (construct_mouse_click): Put in #if 0.
6774 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
6775 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
6776 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
6777 (activate_scroll_bars, deactivate_scroll_bars)
6778 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
6779 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
6780 if the position is neither user-specified nor program-specified.
6781 (x_free_frame_resources): Free size_hints.
6782 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
6783 (mac_clear_font_name_table): New function.
6784 (mac_do_list_fonts): Initialize font_name_table if needed.
6785 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
6786 around mac_do_list_fonts.
6787 (mac_unload_font): New function.
6788 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
6789 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
6790 and definitions with #if TARGET_API_MAC_CARBON.
6791 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
6792 (install_window_handler): Add decl.
6793 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
6794 window. Use UpdateControls. Get the rectangle that should be
6795 updated and restrict the target of expose_frame to it.
6796 (do_grow_window): Set minimum height/width according to size_hints.
6797 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
6798 (do_zoom_window): Don't use x_set_window_size.
6799 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
6800 (install_window_handler): New function.
6801 [!USE_CARBON_EVENTS] (mouse_region): New variable.
6802 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
6803 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
6804 GetEventDispatcherTarget inside BLOCK_INPUT.
6805 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
6806 Update mouse_region when mouse is moved.
6807 (make_mac_frame): Remove.
6808 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
6809 Initialize mouse pointer shapes. Change values of f->left_pos and
6810 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
6811 Don't call ShowWindow.
6812 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
6813 Vinvocation_name and Vsystem_name.
6814 (mac_make_rdb): New function (from w32term.c).
6815 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
6816 already been opened. Don't pass argument to
6817 mac_initialize_display_info. Don't set dpyinfo->height/width.
6818 Add entries to x_display_list and x_display_name_list.
6819 (x_delete_display): New function.
6820 (mac_initialize): Don't call mac_initialize_display_info.
6821 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
6822
6823 * macterm.h (check_mac): Add extern.
6824 (struct mac_output): New member size_hints.
6825 (FRAME_SIZE_HINTS): New macro.
6826 (mac_unload_font): Add extern.
6827
6828 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
6829
6830 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
6831
6832 2004-12-27 Richard M. Stallman <rms@gnu.org>
6833
6834 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
6835 (syms_of_buffer): Don't defsubr it.
6836
6837 * process.c (list_processes_1): Set undo_list instead
6838 of calling Fbuffer_disable_undo.
6839
6840 * xdisp.c (single_display_spec_string_p): Rename from
6841 single_display_prop_string_p.
6842 (single_display_spec_intangible_p): Rename from
6843 single_display_prop_intangible_p.
6844 (handle_single_display_spec): Rename from handle_single_display_prop.
6845 Rewritten to be easier to understand.
6846
6847 Change in load-history format. Functions now get (defun . NAME),
6848 and variables get just NAME.
6849
6850 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
6851
6852 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
6853 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
6854 (Qdefvar): Var deleted.
6855 (syms_of_eval): Don't initialze it.
6856
6857 * lread.c (syms_of_lread) <load-history>: Doc fix.
6858
6859 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6860
6861 * xmenu.c (popup_get_selection): Pop down on C-g.
6862 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
6863 pops down menu on C-g.
6864 (xdialog_show): If dialog popped down and no button in the dialog was
6865 pushed, call Fsignal to quit.
6866 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
6867 Fsignal to quit.
6868
6869 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
6870
6871 * gtkutil.c (xg_initialize): Install bindings for C-g so that
6872 dialogs and menus pop down.
6873
6874 2004-12-27 Kenichi Handa <handa@m17n.org>
6875
6876 * coding.c (code_convert_region): Fix calculation of `ratio'.
6877
6878 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6879
6880 * gtkutil.c (update_frame_tool_bar): Make the value of
6881 tool-bar-button-margin control margins of images in tool bar.
6882
6883 * alloc.c (check_depth): New variable.
6884 (overrun_check_malloc, overrun_check_realloc): Only add
6885 overhead and write check pattern if check_depth is 1 (to handle
6886 recursive calls). Increase/decrease check_depth in entry/exit.
6887 (overrun_check_free): Only check for overhead if check_depth is 1.
6888 Increase/decrease check_depth in entry/exit.
6889
6890 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6891
6892 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
6893 before touching input_available_clear_time, to avoid accessing it
6894 from multiple threads.
6895
6896 2004-12-23 Jason Rumney <jasonr@gnu.org>
6897
6898 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
6899 of JPEG library.
6900
6901 2004-12-22 Richard M. Stallman <rms@gnu.org>
6902
6903 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
6904
6905 * lisp.h (Vundo_outer_limit): Fix decl.
6906
6907 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
6908 Uses changed.
6909 (syms_of_undo): Initialize appropriately.
6910 (truncate_undo_list): If it's nil, there's no limit.
6911
6912 2004-12-22 Kenichi Handa <handa@m17n.org>
6913
6914 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
6915
6916 2004-12-21 Richard M. Stallman <rms@gnu.org>
6917
6918 * eval.c (unwind_to_catch): Clear immediate_quit.
6919
6920 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
6921 specially as `\ ' and `\-'.
6922
6923 * keyboard.c (kbd_buffer_store_event_hold):
6924 In the code for while-no-input, handle immediate_quit.
6925
6926 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
6927 Call that at the very start.
6928 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
6929 (syms_of_alloc): Don't define undo-limit,
6930 undo-strong-limit and undo-outer-limit here.
6931
6932 * undo.c (truncate_undo_list): Return void.
6933 Take just one argument, the buffer.
6934 Make it current, and inhibit recursive GC.
6935 Access and update the undo list directly; return void.
6936 Refer to the undo...limit variables directly.
6937 Test undo_outer_limit only after counting the whole current command.
6938 When it's exceeded, call the function in undo-outer-limit-function.
6939 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
6940 (Vundo_outer_limit_function): New variable.
6941 (syms_of_undo): Define undo-limit, undo-strong-limit
6942 and undo-outer-limit here, and undo-outer-limit-function.
6943 Doc fixes.
6944
6945 * lisp.h (truncate_undo_list): Update decl.
6946
6947 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
6948
6949 * fileio.c (Fread_file_name): Delete duplicates in
6950 file-name-history when history_delete_duplicates is true.
6951
6952 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6953
6954 * macterm.c (mac_do_list_fonts): Fix memory leak
6955
6956 2004-12-20 Richard M. Stallman <rms@gnu.org>
6957
6958 * regex.c (re_match_2_internal) <symend, wordend>:
6959 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
6960
6961 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6962
6963 * macterm.c (endif, x_font_name_to_mac_font_name):
6964 Use maccentraleurroman instead of maccentraleuropean
6965 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
6966 quickly finding a specific font without needing regexps.
6967
6968 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6969
6970 * syssignal.h: Declare main_thread.
6971 (SIGNAL_THREAD_CHECK): New macro.
6972
6973 * keyboard.c (input_available_signal): Move thread checking code
6974 to macro SIGNAL_THREAD_CHECK and call that macro.
6975 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
6976
6977 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
6978
6979 * emacs.c: Define main_thread.
6980 (main): Initialize main_thread.
6981 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
6982 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
6983
6984 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
6985
6986 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
6987
6988 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
6989
6990 * process.c (send_process_trap, sigchld_handler):
6991 Call SIGNAL_THREAD_CHECK.
6992
6993 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
6994
6995 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
6996
6997 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
6998 returning when xg_ignore_gtk_scrollbar is true.
6999
7000 2004-12-14 Kim F. Storm <storm@cua.dk>
7001
7002 * keyboard.c (read_char): Save and restore echo_string when
7003 handling input method.
7004
7005 2004-12-13 Richard M. Stallman <rms@gnu.org>
7006
7007 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
7008
7009 * keyboard.c (Vthrow_on_input): New variable.
7010 (syms_of_keyboard): Defvar and initialize it.
7011 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
7012
7013 * lisp.h (QUIT): Check for Vthrow_on_input.
7014 (Vthrow_on_input): Declare it.
7015
7016 2004-12-13 Kim F. Storm <storm@cua.dk>
7017
7018 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
7019 vector.
7020
7021 2004-12-12 Richard M. Stallman <rms@gnu.org>
7022
7023 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
7024
7025 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
7026 (Ftry_completion): Really use outer `zero'; eliminate inner one.
7027
7028 2004-12-12 Kenichi Handa <handa@m17n.org>
7029
7030 * term.c (encode_terminal_code): Fix previous change.
7031
7032 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
7033
7034 * keyboard.c (handle_async_input): Remove pthread mutex handling.
7035 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
7036
7037 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
7038 in macro arguments.
7039
7040 * minibuf.c (Ftry_completion, Fall_completions): Don't use
7041 XFASTINT blindly.
7042
7043 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
7044
7045 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7046
7047 * w32term.c (x_calc_absolute_position): Remove calculation of
7048 difference between inner and outer window. Don't subtract difference
7049 for left and top calculations.
7050
7051 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
7052 for left and top calculations. Remove call to x_real_positions.
7053 [Bug report by Drew Adams in November]
7054 (x_check_expected_move): Do not set change_gravity to 1 when calling
7055 x_set_offset.
7056
7057 2004-12-08 Richard M. Stallman <rms@gnu.org>
7058
7059 * xdisp.c (get_next_display_element): Use `escape-glyph' for
7060 control chars and escaped octal codes.
7061 (Qescape_glyph): New variable.
7062 (syms_of_xdisp): Initialize it.
7063 (escape_glyph_face): New variable.
7064 (redisplay_window): Initialize it.
7065
7066 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
7067
7068 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
7069 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
7070
7071 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7072
7073 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
7074 reset_malloc_hooks.
7075
7076 * keyboard.c (handle_async_input, input_available_signal):
7077 Add ! defined (SYSTEM_MALLOC) around thread code.
7078
7079 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
7080
7081 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
7082
7083 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
7084
7085 * config.in: Regenerate.
7086
7087 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7088
7089 * xmenu.c (Fx_popup_menu): Correct documentation about position.
7090 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
7091 if not given by a mouse click to correspond with x-popup-menu
7092 documentation.
7093
7094 * config.in: Regenerate.
7095
7096 * gtkutil.c: Include signal.h and syssignal.h.
7097 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
7098
7099 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
7100 new variables main_thread and alloc_mutex,
7101 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
7102 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
7103 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
7104 (UN)BLOCK_INPUT.
7105 (emacs_blocked_free, emacs_blocked_malloc)
7106 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
7107 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
7108 (reset_malloc_hooks): New function.
7109
7110 * lisp.h: Declare reset_malloc_hooks.
7111
7112 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
7113
7114 * keyboard.c: Conditionally include pthread.h
7115 (handle_async_input, input_available_signalt): If not in the main
7116 thread, block signal, send signal to main thread and return.
7117
7118 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
7119 Set current folder in file chooser if default_filename is a directory.
7120
7121 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
7122
7123 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
7124 Remove redundant correctness checks.
7125 (regex_compile): Fix up error codes for \{..\} expressions.
7126
7127 2004-12-05 Richard M. Stallman <rms@gnu.org>
7128
7129 * regex.c (regex_compile): Fix end-of-pattern case for space.
7130
7131 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7132
7133 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
7134 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
7135 crashes with invalid characters.
7136 * macmenu.c (add_menu_item): Use it.
7137 * image.c (image_load_quartz2d): Likewise.
7138 * macfns.c (x_set_name, x_set_title): Likewise.
7139 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
7140 creating them each time for labels.
7141
7142 2004-12-02 Richard M. Stallman <rms@gnu.org>
7143
7144 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
7145 don't use it here.
7146
7147 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
7148 (interactive_p): Skip Scalled_interactively_p frames
7149 like Sinteractive_p frames.
7150 (unwind_to_catch): Clear handling_signal.
7151
7152 * data.c (Fmake_variable_buffer_local): Doc fix.
7153 (Fmake_local_variable): Doc fix.
7154
7155 * insdel.c (insert_from_string_before_markers)
7156 (insert_from_string): Don't modify buffer on empty insertion.
7157
7158 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
7159
7160 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7161
7162 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
7163 menu text as UTF8 fails.
7164
7165 2004-12-01 Kim F. Storm <storm@cua.dk>
7166
7167 * alloc.c: Add commentary for last change.
7168 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
7169 sizeof(size_t) != 4.
7170 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
7171 Use them. Also clear header and trailer of freed memory.
7172 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
7173 (string_overrun_cookie): Rename from string_overrun_pattern.
7174 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
7175
7176 2004-12-01 Andreas Schwab <schwab@suse.de>
7177
7178 * lisp.h: Declare string_to_multibyte.
7179
7180 2004-12-01 Kenichi Handa <handa@m17n.org>
7181
7182 * w32console.c (w32con_write_glyphs): Decide coding here.
7183 Adjusted for the change of encode_terminal_code.
7184
7185 * term.c (encode_terminal_code): Don't make it "static".
7186
7187 2004-11-30 Kenichi Handa <handa@m17n.org>
7188
7189 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
7190 (encode_terminal_code): Argument changed. Encode all
7191 characters at once, and return a pointer to the result of encoding.
7192 (write_glyphs): Decide coding here. Adjusted for the above change.
7193 (insert_glyphs): Likewise.
7194 (term_init): Initialize encode_terminal_bufsize to 0.
7195
7196 * coding.c (Vcode_conversion_workbuf_name): New variable.
7197 (syms_of_coding): Initialize and staticpro it.
7198 (set_conversion_work_buffer): New function.
7199 (run_pre_post_conversion_on_str): Use it.
7200 (run_pre_write_conversin_on_c_str): New function.
7201
7202 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
7203
7204 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7205
7206 * keyboard.c: Don't undef SIGIO
7207 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
7208 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
7209 (macfns.o): Don't depend on ccl.h.
7210 * macfns.c (mac_frame_parm_handlers): Set handlers for
7211 Qleft_fringe and Qright_fringe.
7212 * macterm.c (mac_fill_rectangle_to_pixmap)
7213 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
7214 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
7215 Put in #if 0.
7216 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
7217 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
7218 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
7219 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7220 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
7221 XDrawImageString. Always draw background and foreground separately.
7222 (x_draw_image_foreground): Use clipping instead of computing the
7223 intersection rectangle.
7224 (x_draw_image_glyph_string): Don't draw an image with mask to a
7225 pixmap.
7226 (x_redisplay_interface): Set flush_display_optional member to 0.
7227 (XTread_socket): Correctly reset the TEConverter
7228 object.
7229
7230 2004-11-30 Kim F. Storm <storm@cua.dk>
7231
7232 * lisp.h: New defines to enable buffer overrun checking.
7233 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
7234 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
7235
7236 * alloc.c: Add more checks for buffer overruns.
7237 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
7238 xmalloc_overrun_check_trailer, overrun_check_malloc)
7239 overrun_check_realloc, overrun_check_free): Add.
7240 (GC_STRING_EXTRA, string_overrun_pattern): Add.
7241 (check_sblock, allocate_string_data, compact_small_strings):
7242 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
7243 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
7244 (check_string_free_list): Add.
7245 (allocate_string, sweep_strings): Call check_string_free_list.
7246
7247 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
7248 XMALLOC_OVERRUN_CHECK to avoid crash during load.
7249
7250 2004-11-29 Kim F. Storm <storm@cua.dk>
7251
7252 * fns.c (concat): Use SAFE_ALLOCA.
7253
7254 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
7255
7256 * sysdep.c (emacs_write): Don't use QUIT.
7257
7258 2004-11-29 Kenichi Handa <handa@m17n.org>
7259
7260 * buffer.c (init_buffer): Set current_buffer->directory to a
7261 multibyte string made by string_to_multibyte.
7262
7263 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
7264
7265 2004-11-27 Andreas Schwab <schwab@suse.de>
7266
7267 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
7268
7269 * s/gnu-linux.h: Enable no-op gcpros on ia64.
7270 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
7271
7272 * filelock.c (lock_file_1): Call get_boot_time early.
7273 Increase buffer size.
7274
7275 2004-11-27 Eli Zaretskii <eliz@gnu.org>
7276
7277 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
7278 is not defined.
7279
7280 2004-11-27 Kim F. Storm <storm@cua.dk>
7281
7282 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
7283 marker out of doc string.
7284
7285 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
7286
7287 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
7288 which was not mentioned in the log.
7289
7290 2004-11-26 Kim F. Storm <storm@cua.dk>
7291
7292 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
7293 angle bitmaps at top/bottom line.
7294
7295 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
7296 set it when it->method is set to next_element_from_display_vector.
7297 (setup_for_ellipsis): Add LEN argument. Callers changed.
7298 Set it->saved_face_id.
7299 (get_next_display_element): Use loop instead of recursion.
7300 Set it->saved_face_id. Combine duplicate code for ctr chars.
7301 (next_element_from_display_vector): Do not set it->saved_face_id.
7302 (next_element_from_ellipsis): Use setup_for_ellipsis.
7303
7304 2004-11-26 Eli Zaretskii <eliz@gnu.org>
7305
7306 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
7307 prevent compiler warnings.
7308
7309 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
7310
7311 * keyboard.c (command_loop_1): Print a message describing the key
7312 the user just pressed when this key has no binding.
7313
7314 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
7315 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
7316
7317 * lread.c (readchar): Check QUIT when `getc' is interrupted.
7318
7319 2004-11-24 Richard M. Stallman <rms@gnu.org>
7320
7321 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
7322
7323 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
7324
7325 2004-11-24 Kim F. Storm <storm@cua.dk>
7326
7327 * xdisp.c (move_it_in_display_line_to, display_line):
7328 Restore saved_face_id also when truncate-lines or hscrolled.
7329
7330 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7331
7332 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
7333 x-use-old-gtk-file-dialog.
7334
7335 * xfns.c: Define x_use_old_gtk_file_dialog.
7336 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
7337 outside ifdef USE_GTK.
7338
7339 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
7340
7341 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
7342 Don't use XFASTINT blindly.
7343
7344 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
7345
7346 * indent.c (skip_invisible): Avoid non-idempotent side-effects
7347 in macro arguments.
7348
7349 * keymap.c (Flookup_key): Check INTEGERP before XINT.
7350
7351 * lread.c (oblookup): Don't use XFASTINT blindly.
7352
7353 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
7354 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
7355
7356 2004-11-23 Kim F. Storm <storm@cua.dk>
7357
7358 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
7359 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
7360
7361 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
7362 signal_p is zero and face name is unknown.
7363 (Fx_list_fonts): Don't signal error in lookup_named_face.
7364 (Fface_font): Signal error in lookup_named_face.
7365 (ascii_face_of_lisp_face): Likewise.
7366
7367 * dispextern.h (lookup_named_face): Fix prototype.
7368
7369 * xdisp.c (handle_single_display_prop): Don't signal error in
7370 lookup_named_face for unknown fringe face name.
7371 (highlight_trailing_whitespace): Don't signal error in
7372 lookup_named_face if trailing-whitespace face unknown.
7373 (calc_line_height_property): Don't signal error in
7374 lookup_named_face if specified face name is unknown.
7375
7376 * fringe.c (update_window_fringes): Show top row indicator if
7377 window has header-line. Don't show arrow at bob and eob
7378 if the boundary indicators are not used.
7379 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
7380
7381 * window.c (set_window_buffer): Clear display_error_modiff.
7382
7383 2004-11-22 Kim F. Storm <storm@cua.dk>
7384
7385 * fringe.c (update_window_fringes): Provide sensible fall-back
7386 value for non-nil indicate-buffer-boundaries setting.
7387
7388 2004-11-22 Markus Rost <rost@ias.edu>
7389
7390 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
7391
7392 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
7393
7394 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
7395
7396 2004-11-21 Kim F. Storm <storm@cua.dk>
7397
7398 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
7399
7400 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
7401 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7402
7403 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
7404 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7405
7406 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
7407 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7408
7409 * xdisp.c (move_it_in_display_line_to, display_line):
7410 Restore saved_face_id if overflow-newline-into-fringe is enabled and
7411 line is continued before or in middle of element from display vector.
7412
7413 * indent.c (Fvertical_motion): Fix last change. Use another
7414 method to detect if iterator moved too far ahead after reseat.
7415
7416 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
7417 expand matrix width for overflow in zero-width area.
7418 (append_glyph, append_composite_glyph, produce_image_glyph)
7419 (append_stretch_glyph): Use it to avoid loop in redisplay.
7420 (note_mode_line_or_margin_highlight): Don't let help-echo from
7421 string override help-echo from image map.
7422
7423 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
7424
7425 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
7426 * callint.c (Fcall_interactively): Ditto.
7427
7428 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
7429
7430 * minibuf.c (Fminibuffer_complete_and_exit):
7431 Fixup the case of the completed value, for case-indep completion.
7432
7433 2004-11-20 Richard M. Stallman <rms@gnu.org>
7434
7435 * lisp.h (Fread_from_minibuffer): Add arg in decl.
7436
7437 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
7438 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
7439
7440 * search.c (Vsearch_spaces_regexp):
7441 Rename from Vsearch_whitespace_regexp. All uses changed.
7442
7443 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
7444
7445 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
7446
7447 2004-11-19 Richard M. Stallman <rms@gnu.org>
7448
7449 * search.c (Vsearch_whitespace_regexp): New variable.
7450 (syms_of_search): Defvar it.
7451 (compile_pattern_1): Call re_set_whitespace_regexp with it.
7452 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
7453 is non-nil.
7454 (struct regexp_cache): New element whitespace_regexp.
7455 (syms_of_search): Initialize whitespace_regexp elements.
7456 (compile_pattern): Compare whitespace_regexp elements.
7457 (compile_pattern_1): Set whitespace_regexp elements.
7458
7459 * regex.c (regex_compile): Substitute whitespace_regexp
7460 for spaces, if it is nonzero.
7461 (whitespace_regexp): New variable.
7462 (re_set_whitespace_regexp): New function.
7463
7464 2004-11-19 Kim F. Storm <storm@cua.dk>
7465
7466 * indent.c (Fvertical_motion): Fix last change.
7467
7468 2004-11-18 Kim F. Storm <storm@cua.dk>
7469
7470 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
7471 Instead, move back again if reseating moves too far ahead.
7472
7473 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
7474
7475 * xdisp.c (message3): Call clear_message.
7476
7477 2004-11-17 Kim F. Storm <storm@cua.dk>
7478
7479 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
7480
7481 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7482
7483 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
7484
7485 * xmenu.c (x_menu_in_use): Remove.
7486 (x_menu_set_in_use): Also set popup_activated_flag.
7487
7488 * xfns.c (Fx_file_dialog): Call popup_activated instead of
7489 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
7490
7491 * xterm.h (x_menu_in_use): Remove.
7492
7493 2004-11-16 Richard M. Stallman <rms@gnu.org>
7494
7495 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
7496 Use map-keymap-internal to implement that.
7497
7498 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
7499
7500 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
7501
7502 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
7503 a window before using XWINDOW.
7504
7505 * window.c (make_window, Fselect_window, make_dummy_parent)
7506 (save_window_save):
7507 * frame.c (make_frame):
7508 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
7509
7510 * lisp.h (NILP): Use EQ rather than XFASTINT.
7511
7512 2004-11-16 Kim F. Storm <storm@cua.dk>
7513
7514 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
7515
7516 * indent.c (Fvertical_motion): Fix last change. Only reseat when
7517 moving backwards.
7518
7519 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
7520
7521 * dispextern.h: Extern reseat_at_previous_visible_line_start.
7522
7523 2004-11-16 Kenichi Handa <handa@m17n.org>
7524
7525 * xdisp.c (display_mode_element): Fix previous change (calculate
7526 end position of substring to display correctly).
7527
7528 2004-11-16 Kim F. Storm <storm@cua.dk>
7529
7530 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
7531 Reported by Andrew M. Scott.
7532
7533 2004-11-15 Kim F. Storm <storm@cua.dk>
7534
7535 * fns.c (Fsafe_plist_get): New defun.
7536 (syms_of_fns): Defsubr it.
7537
7538 * lisp.h (Fsafe_plist_get): Add EXFUN.
7539
7540 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
7541 Use Fsafe_plist_get.
7542 (note_mode_line_or_margin_highlight, note_mouse_highlight):
7543 Fix image map element parsing. Use Fsafe_plist_get.
7544
7545 2004-11-15 Richard M. Stallman <rms@gnu.org>
7546
7547 * xdisp.c (get_next_display_element): Fix previous change.
7548
7549 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7550
7551 * window.c (shrink_windows): Handle special case of one window left
7552 when trying to shrink the final reminder. Grow windows if
7553 total_removed is less than total_shrink.
7554
7555 * xmenu.c (pop_down_menu): Remove global variable current_menu,
7556 extract pointer from arg with XSAVE_VALUE.
7557 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
7558 Construct arg to record_unwind_protect with make_save_value.
7559
7560 2004-11-13 Richard M. Stallman <rms@gnu.org>
7561
7562 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
7563 (get_next_display_element): Fix previous change to apply only to \n.
7564
7565 * indent.c (Fvertical_motion): Scan to PT from start of line to
7566 make iterator consistent.
7567
7568 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
7569
7570 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7571
7572 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
7573
7574 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
7575 Record unwind with clean_up_file_dialog.
7576
7577 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
7578 Declare.
7579
7580 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
7581
7582 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7583
7584 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
7585 (xg_file_sel_destroy): Remove.
7586 (xg_file_response_cb, pop_down_file_dialog)
7587 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
7588 New functions.
7589 (xg_get_file_with_chooser, xg_get_file_with_selection):
7590 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
7591 Move common code to xg_get_file_name. Return widget created.
7592 (xg_get_file_name): Set name, transient for, modal and destroy
7593 with parent here. Connect response signal to xg_file_response_cb,
7594 connect delete-event to gtk_true. Record pop_down_file_dialog
7595 for unwind. Do event loop and call x_menu_wait_for_event in loop.
7596 (xg_create_widget): Make dialogs modal.
7597
7598 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
7599 Lisp_Object.
7600 (popup_get_selection): Move unwind protect ...
7601 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
7602 Move destroy of widget to pop_down_menu.
7603 (popup_widget_loop): Move unwind protect ...
7604 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
7605 Move destroy of widget to pop_down_menu.
7606 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
7607 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
7608 x_mouse_leave and grabbed = 0 to pop_down_menu.
7609
7610 2004-11-13 Kim F. Storm <storm@cua.dk>
7611
7612 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
7613 (syms_of_xdisp): DEFVAR_BOOL it.
7614 (make_cursor_line_fully_visible, try_cursor_movement)
7615 (try_window_id): Use it.
7616
7617 2004-11-12 Kim F. Storm <storm@cua.dk>
7618
7619 * dispextern.h (struct glyph_row): New member extra_line_spacing.
7620 (struct it): New member max_extra_line_spacing.
7621 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
7622 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
7623 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
7624 part of last line is only extra line spacing (so the text on the
7625 line is fully visible). Use helper macros.
7626 Add W arg (to use them). All callers changed.
7627 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
7628 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
7629
7630 * window.c (window_scroll_pixel_based, Frecenter):
7631 Use move_it_vertically_backward directly.
7632 (Frecenter): Fix calculation of new start pos for negative arg.
7633 Before, the new start pos was sometimes chosen too far back, so
7634 the last line became only partially visible, and thus would be
7635 either only semi-visible or automatically scrolled to the middle
7636 of the window by redisplay.
7637
7638 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
7639 (move_it_vertically_backward): Don't recure to move further back.
7640 (move_it_vertically): Remove superfluous condition.
7641 (move_it_by_lines): Clear last_height when moved 0 lines.
7642 (resize_mini_window): Use it.max_extra_line_spacing.
7643 (display_tool_bar_line): Clear row->extra_line_spacing.
7644 (try_scrolling): Use move_it_vertically_backward directly.
7645 (redisplay_window): Likewise.
7646 (compute_line_metrics): Set row->extra_line_spacing.
7647 (display_line, display_string): Likewise.
7648 (x_produce_glyphs): Update it->max_extra_line_spacing.
7649
7650 * xmenu.c (pop_down_menu): Return nil.
7651
7652 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7653
7654 * xmenu.c (x_menu_wait_for_event): New function.
7655 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
7656 to handle timers.
7657 (popup_widget_loop): Add argument do_timers.
7658 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
7659 do_timers to popup_widget_loop.
7660 (xmenu_show): Call XMenuActivateSetWaitFunction so that
7661 x_menu_wait_for_event is called by XMenuActivate.
7662 (create_and_show_popup_menu): Pass 1 for do_timers to
7663 popup_get_selection.
7664 (pop_down_menu): New function.
7665 (popup_get_selection, popup_widget_loop): Unwind protect to
7666 pop_down_menu.
7667 (popup_widget_loop): Add argument widget.
7668 (create_and_show_popup_menu, create_and_show_dialog): Pass new
7669 argument widget to popup_widget_loop.
7670
7671 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7672
7673 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
7674
7675 2004-11-09 Kim F. Storm <storm@cua.dk>
7676
7677 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
7678 Fix various comments referring to XEvents instead of input events.
7679 (x_queue_event): Fix format strings.
7680 (x_stop_queuing_selection_requests): Likewise.
7681
7682 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
7683 (pint2hrstr): Add extra braces to silence compiler.
7684
7685 * print.c (print_object): Fix format string.
7686
7687 * lread.c (read1): Fix next_char matching.
7688
7689 * lisp.h (Fdelete): Add EXFUN.
7690 (replace_range_2): Add prototype.
7691
7692 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
7693
7694 * intervals.h (NULL_INTERVAL_P): Add separate version when
7695 ENABLE_CHECKING is not defined to silence compiler.
7696 (compare_string_intervals): Add prototype.
7697
7698 * fringe.c (destroy_fringe_bitmap): Fix return type.
7699 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
7700
7701 * emacs.c (Fdump_emacs): Fix format string.
7702
7703 * doc.c: Include <ctype.h>.
7704 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
7705
7706 * data.c (store_symval_forwarding): Remove unused variables.
7707
7708 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
7709
7710 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7711
7712 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
7713 to ${OLDXMENU}.
7714
7715 2004-11-09 Kim F. Storm <storm@cua.dk>
7716
7717 * process.c (Fmake_network_process): Remove kludge for interrupted
7718 connects on BSD. If connect is interrupted, just close socket and
7719 start over rather than sleeping and retry with same socket.
7720
7721 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7722
7723 * .cvsignore: Add buildobj.lst.
7724
7725 * doc.c: New variable Vbuild_files.
7726 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
7727 file names from buildobj.lst. Only attach docstrings from files
7728 that are in Vbuild_files.
7729 (syms_of_doc): Defvar Vbuild_files.
7730
7731 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
7732 and w32*.o.
7733 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
7734 (mostlyclean): Rm buildobj.lst
7735
7736 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
7737 is linked.
7738
7739 2004-11-09 Kim F. Storm <storm@cua.dk>
7740
7741 * fringe.c (update_window_fringes): Update fringe bitmaps if
7742 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
7743 also update previous row to get rid of misc. artifacts.
7744
7745 2004-11-08 Kim F. Storm <storm@cua.dk>
7746
7747 * xdisp.c (fast_find_position): Fix start pos if header line present.
7748 (note_mouse_highlight): Clear mouse face if we move out of text area.
7749
7750 2004-11-08 Eli Zaretskii <eliz@gnu.org>
7751
7752 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
7753 Don't include <sys/time.h> explicitly.
7754 Include <stdio.h> unconditionally, not just on MacOS.
7755
7756 2004-11-08 Kenichi Handa <handa@m17n.org>
7757
7758 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
7759 don't pay attention to '\' before '*'.
7760 (fontset_pattern_regexp): Change the meaning of the second arg.
7761 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
7762 (check_fontset_name): Try NAME as literal at first, and if it
7763 failes, try NAME as pattern.
7764
7765 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7766
7767 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
7768
7769 2004-11-07 Andreas Schwab <schwab@suse.de>
7770
7771 * lisp.h (Fmsdos_downcase_filename): Declare.
7772 * dired.c (Fmsdos_downcase_filename): Don't declare here.
7773 * fileio.c: Likewise.
7774
7775 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7776
7777 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
7778 comparisons with integers instead of Lisp_Object address.
7779 (Fmsdos_set_keyboard): Declare argument allkeys.
7780
7781 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
7782
7783 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
7784 int/Lisp_Object mixup.
7785
7786 * fileio.c: Ditto.
7787
7788 2004-11-06 Steven Tamm <steventamm@mac.com>
7789
7790 * editfns.c: Need to include sys/time.h before resource.h on darwin.
7791
7792 2004-11-06 Richard M. Stallman <rms@gnu.org>
7793
7794 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
7795
7796 * xfaces.c (merge_named_face): GCPRO the face_name in the
7797 named_merge_point struct that we make.
7798 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
7799
7800 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
7801 before deciding whether to inactivate mark.
7802
7803 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
7804
7805 * config.in: Regenerate (add HAVE_GETRUSAGE).
7806 * editfns.c (Fget_internal_run_time): New function.
7807 (syms_of_data): Defsubr it.
7808 * fns.c (sxhash): As far as possible, merge calculation of
7809 hash code for symbols and strings.
7810
7811 2004-11-06 Eli Zaretskii <eliz@gnu.org>
7812
7813 * frame.c (syms_of_frame): Fix the example in the doc string.
7814
7815 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7816
7817 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
7818
7819 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
7820 (create_and_show_dialog): Revert change from 2004-10-31.
7821
7822 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
7823
7824 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
7825
7826 2004-11-05 Kim F. Storm <storm@cua.dk>
7827
7828 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
7829
7830 * fileio.c (Ffile_modes): Doc fix.
7831 (auto_save_1): Check for Ffile_modes nil value.
7832
7833 2004-11-05 Kim F. Storm <storm@cua.dk>
7834
7835 * xselect.c (struct selection_event_queue, selection_queue)
7836 (x_queue_selection_requests, x_queue_event)
7837 (x_start_queuing_selection_requests)
7838 (x_stop_queuing_selection_requests): Add new queue for selection
7839 input events to replace previous XEvent queue in xterm.c.
7840 (queue_selection_requests_unwind): Adapt to new queue.
7841 (x_reply_selection_request): Adapt to new queue.
7842 Unexpect wait_object in case of x errors (memory leak).
7843 (x_handle_selection_request, x_handle_selection_clear): Make static.
7844 (x_handle_selection_event): New function. May queue selection events.
7845 (wait_for_property_change_unwind): Use save_value instead of cons.
7846 Clear property_change_reply_object.
7847 (wait_for_property_change): Abort if already waiting.
7848 Use save_value instead of cons for unwind data.
7849 (x_handle_property_notify): Skip events already arrived, but don't
7850 free them, as "arrived" field is checked by wait_for_property_change,
7851 and it will be freed by unwind or explicit unexpect_property_change.
7852 (x_get_foreign_selection): Add to new queue.
7853 (receive_incremental_selection): Don't unexpect wait_object when done
7854 as it has already been freed by previous wait_for_property_change.
7855
7856 * xterm.h (x_start_queuing_selection_requests)
7857 (x_stop_queuing_selection_requests, x_handle_selection_request)
7858 (x_handle_selection_clear): Remove prototypes.
7859 (x_handle_selection_event): Add prototype.
7860
7861 * xterm.c (handle_one_xevent): Don't queue X selection events
7862 here, it may be too late if we start queuing after we have already
7863 stored some selection events into the kbd buffer.
7864 (struct selection_event_queue, queue, x_queue_selection_requests)
7865 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
7866 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
7867 (x_catch_errors_unwind): Block input around final XSync.
7868
7869 * keyboard.h (kbd_buffer_unget_event): Add prototype.
7870
7871 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
7872 (kbd_buffer_unget_event): New function.
7873 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
7874 and use x_handle_selection_event.
7875 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
7876
7877 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7878
7879 * xselect.c (TRACE3): New debug macro.
7880 (x_reply_selection_request): Use it.
7881 (receive_incremental_selection): In call to TRACE0, the name of
7882 a symbol is in xname.
7883
7884 2004-11-05 Kim F. Storm <storm@cua.dk>
7885
7886 * fontset.c (fontset_pattern_regexp): Use unsigned char.
7887
7888 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7889
7890 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
7891
7892 * gtkutil.h (use_old_gtk_file_dialog): Declare.
7893
7894 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
7895 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
7896 * xfns.c (syms_of_xfns): ... to here.
7897
7898 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
7899 it doesn't start with /.
7900
7901 2004-11-04 Kenichi Handa <handa@m17n.org>
7902
7903 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
7904 treat it as a literal character.
7905
7906 2004-11-03 Kim F. Storm <storm@cua.dk>
7907
7908 * .gdbinit (ppt): New function.
7909
7910 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7911
7912 * xterm.c (x_window_to_scroll_bar): Only call
7913 xg_get_scroll_id_for_window if toolkit scroll bars are used.
7914
7915 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
7916 of save.
7917
7918 2004-11-02 Andreas Schwab <schwab@suse.de>
7919
7920 * window.c (Fscroll_right): Fix last change.
7921
7922 2004-11-02 Kim F. Storm <storm@cua.dk>
7923
7924 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
7925
7926 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7927
7928 * callproc.c (Fcall_process): Block input around vfork.
7929
7930 2004-11-02 Kim F. Storm <storm@cua.dk>
7931
7932 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
7933 (syms_of_eval): Defsubr it.
7934
7935 2004-11-02 Richard M. Stallman <rms@gnu.org>
7936
7937 * insdel.c (replace_range_2): New function.
7938
7939 * casefiddle.c (casify_region): Handle changes in byte-length
7940 using replace_range_2.
7941
7942 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
7943
7944 * xdisp.c (back_to_previous_visible_line_start):
7945 Subtract 1 from pos when checking previous newline for invisibility.
7946
7947 * window.c (window_scroll_pixel_based): Update preserve_y
7948 for header line if any.
7949 (Fscroll_left, Fscroll_right): Don't call interactive_p;
7950 use a new second argument instead.
7951
7952 * eval.c (Fcall_interactive_p): New function.
7953 (interactive_p): Don't test INTERACTIVE here.
7954 (Finteractive_p): Doc fix.
7955
7956 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
7957
7958 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7959
7960 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
7961 comparing font names.
7962
7963 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7964
7965 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
7966 Fx_file_dialog if only directories should be read.
7967
7968 * lisp.h: Fx_file_dialog takes 5 parameters.
7969
7970 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
7971 Add parameter only_dir_p.
7972 In Motif version, don't put DEFAULT_FILENAME in filter part of the
7973 dialog, just text field part. Do not add DEFAULT_FILENAME
7974 to list of files if it isn't there.
7975 In GTK version, pass only_dir_p parameter to xg_get_file_name.
7976
7977 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
7978 Check only_dir_p instead of comparing prompt to "Dired". When using
7979 a save dialog, add option kNavDontConfirmReplacement, change title
7980 to "Enter name", change text for save button to "Ok".
7981
7982 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
7983 Check only_dir_p instead of comparing prompt to "Dired".
7984
7985 * gtkutil.c (xg_get_file_with_chooser)
7986 (xg_get_file_with_selection): New functions, only defined ifdef
7987 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
7988 respectively.
7989 (xg_get_file_name): Add parameter only_dir_p.
7990 Call xg_get_file_with_chooser or xg_get_file_with_selection
7991 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
7992 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
7993
7994 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
7995
7996 * config.in: Rebuild (added HAVE_GTK_FILE_*).
7997
7998 2004-11-01 Kim F. Storm <storm@cua.dk>
7999
8000 * process.c (connect_wait_mask, num_pending_connects):
8001 Only declare and use them if NON_BLOCKING_CONNECT is defined.
8002 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
8003 (IF_NON_BLOCKING_CONNECT): New helper macro.
8004 (wait_reading_process_output): Only declare and use local vars
8005 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
8006
8007 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
8008
8009 * w32term.c (x_scroll_run): Delete region objects after use.
8010
8011 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8012
8013 * xmenu.c: Add prototypes for forward function declarations.
8014 (popup_get_selection): Remove parameter do_timers, remove call to
8015 timer_check.
8016 (create_and_show_popup_menu, create_and_show_dialog):
8017 Remove parameter do_timers from call to popup_get_selection.
8018
8019 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
8020 tool_bar_items and assign the result to f->tool_bar_items if
8021 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
8022 tool_bar_items to assignment of result.
8023
8024 * atimer.c (alarm_signal_handler): Do not call set_alarm if
8025 pending_atmers is non-zero.
8026
8027 2004-10-31 Kim F. Storm <storm@cua.dk>
8028
8029 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
8030
8031 2004-10-28 Will <will@glozer.net>
8032
8033 * macterm.c: Allow user to assign key modifiers to the Mac Option
8034 key via a 'mac-option-modifier' variable.
8035
8036 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8037
8038 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
8039 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
8040 (x_handle_selection_request, x_handle_selection_clear)
8041 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
8042
8043 2004-10-28 Richard M. Stallman <rms@gnu.org>
8044
8045 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
8046
8047 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
8048
8049 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
8050
8051 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
8052 comment-starter over a 1-char one.
8053
8054 2004-10-27 Richard M. Stallman <rms@gnu.org>
8055
8056 * xdisp.c (get_next_display_element): In mode lines,
8057 treat newline and tab like other control characters.
8058
8059 * editfns.c (Fmessage): Doc fix.
8060
8061 * indent.c (vmotion): When moving up, check the newline before.
8062 Make prevline an int, not a Lisp_Object.
8063
8064 2004-10-27 Kim F. Storm <storm@cua.dk>
8065
8066 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
8067 Only allocate info and discarded tables once.
8068
8069 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
8070 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
8071 (SAFE_FREE): Test it to determine if we need to unwind to free.
8072 Remove size arg. All users changed.
8073 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
8074
8075 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8076
8077 * gtkutil.c: Put empty line between comment and function body.
8078 (xg_destroy_widgets): Rename from remove_from_container.
8079 Just destroy all widgets in list. Argument wcont removed.
8080 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
8081 instead of remove_from_container.
8082 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
8083 (free_frame_tool_bar): Add comment.
8084
8085 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
8086 is not NULL before strcmp.
8087
8088 2004-10-26 Kim F. Storm <storm@cua.dk>
8089
8090 * callint.c (Fcall_interactively): Add 'U' code to get the
8091 up-event discarded by a previous 'k' or 'K' argument.
8092
8093 2004-10-26 David Kastrup <dak@gnu.org>
8094
8095 * buffer.c (syms_of_buffer): Fix a few typos.
8096
8097 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8098
8099 * xsmfns.c: Put empty line between comment and function body.
8100 Use two spaces before comment end.
8101
8102 2004-10-25 Kenichi Handa <handa@m17n.org>
8103
8104 * fontset.c (fontset_pattern_regexp): Optimize for the case that
8105 PATTERN is full XLFD.
8106
8107 2004-10-24 Kenichi Handa <handa@m17n.org>
8108
8109 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
8110
8111 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
8112 (regex_compile): Return REG_ERANGEX if appropriate.
8113
8114 2004-10-22 Kenichi Handa <handa@m17n.org>
8115
8116 * editfns.c (Ftranslate_region_internal): New function.
8117 (syms_of_editfns): Defsubr it.
8118
8119 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8120
8121 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
8122
8123 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8124
8125 * xterm.h (x_output): New member `xic_base_fontname'.
8126 (FRAME_XIC_BASE_FONTNAME): New macro.
8127 (xic_free_xfontset): Declare.
8128
8129 * xfns.c (xic_create_xfontset): Share fontsets between frames
8130 based on base_fontname.
8131 (xic_free_xfontset): New function.
8132 (free_frame_xic): Use it.
8133 (xic_set_xfontset): Ditto.
8134
8135 * xterm.c (xim_destroy_callback): Ditto.
8136
8137
8138 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
8139
8140 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
8141
8142 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8143
8144 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
8145 XSync.
8146
8147 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
8148 New variables and constant.
8149 (main): Calculate heap_bss_diff. If we are dumping and the
8150 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
8151 and exec ourself again.
8152 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
8153 print a warning.
8154
8155 * lastfile.c: Make my_endbss and my_endbss_static available on all
8156 platforms.
8157
8158 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
8159 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
8160
8161 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
8162
8163 * data.c (Flocal_variable_if_set_p): Doc fix.
8164
8165 2004-10-19 Jason Rumney <jasonr@gnu.org>
8166
8167 * w32.c (init_environment): Set emacs_dir correctly when running
8168 emacs from the build directory.
8169
8170 2004-10-19 Richard M. Stallman <rms@gnu.org>
8171
8172 * editfns.c (Fdelete_and_extract_region):
8173 If region is empty, return null string.
8174
8175 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8176
8177 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
8178 and canon_width.
8179 (xg_frame_cleared): Remove.
8180
8181 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
8182 (xg_find_top_left_in_fixed): Remove.
8183 (xg_create_scroll_bar): Put an event box widget between
8184 the scroll bar widget and the edit widget.
8185 (xg_show_scroll_bar): Show the parent widget (the event box).
8186 (xg_remove_scroll_bar): Destroy parent (the event box) also.
8187 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
8188 Move the parent (the event box) widget inside the fixed widget.
8189 Move window clear to xterm.c.
8190
8191 * gtkutil.h (xg_frame_cleared): Remove.
8192
8193 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
8194 (x_scroll_bar_create, XTset_vertical_scroll_bar):
8195 Remove arguments left and width to xg_update_scrollbar_pos.
8196 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
8197
8198 2004-10-19 Kenichi Handa <handa@m17n.org>
8199
8200 * xdisp.c (display_mode_element): Fix display of wide chars.
8201
8202 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8203
8204 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
8205 gdk_window_clear and move gdk_window_process_all_updates after
8206 clear so events are sent to the X server in correct order.
8207
8208 2004-10-18 Kenichi Handa <handa@m17n.org>
8209
8210 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
8211 comparing font names.
8212 (fs_query_fontset): Use fast_string_match for comparing fontset names.
8213 (list_fontsets): Likewise.
8214
8215 * search.c (fast_string_match_ignore_case): New function.
8216
8217 * lisp.h (fast_string_match_ignore_case): Extern it.
8218
8219 2004-10-17 Kim F. Storm <storm@cua.dk>
8220
8221 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
8222 than bitmap if there is not left fringe.
8223 (get_overlay_arrow_glyph_row): Also used on windows system.
8224 (display_line): Display overlay string if no left fringe.
8225
8226 2004-10-16 Jason Rumney <jasonr@gnu.org>
8227
8228 * w32fns.c (w32_font_match): Encode font name being matched.
8229
8230 2004-10-16 Richard M. Stallman <rms@gnu.org>
8231
8232 * window.c (Fspecial_display_p): Doc fix.
8233
8234 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
8235
8236 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
8237 Don't ignore menus, because where-is-internal already does it for us.
8238
8239 2004-10-15 Kim F. Storm <storm@cua.dk>
8240
8241 * xdisp.c (redisplay_window): Only update fringes and vertical
8242 border on window frames.
8243
8244 2004-10-14 Andreas Schwab <schwab@suse.de>
8245
8246 * m/ia64.h (DATA_SEG_BITS): Don't define.
8247
8248 2004-10-14 Kim F. Storm <storm@cua.dk>
8249
8250 * xterm.h: Include Xutil.h after keysym.h to work around bug
8251 in some X versions.
8252
8253 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
8254
8255 * fns.c (map_char_table): Add missing gcpros.
8256
8257 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
8258
8259 * keymap.c (get_keymap): An autoload form is not a keymap.
8260
8261 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
8262
8263 2004-10-13 Kim F. Storm <storm@cua.dk>
8264
8265 * callproc.c (Fcall_process): Simplify handling of display arg.
8266 Resume `display_on_the_fly' once a coding system is determined.
8267
8268 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
8269
8270 2004-10-12 Kim F. Storm <storm@cua.dk>
8271
8272 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
8273 caller, such as call-process, is not going to poll for input.
8274 (calc_line_height_property): Handle case where it->object is nil.
8275
8276 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
8277
8278 2004-10-12 Kenichi Handa <handa@m17n.org>
8279
8280 * xdisp.c (get_next_display_element):
8281 If unibyte_display_via_language_environment is zero, display 8-bit
8282 chars in octal in unibyte buffer.
8283
8284 2004-10-12 Kim F. Storm <storm@cua.dk>
8285
8286 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
8287 are no ordinary bindings.
8288
8289 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8290
8291 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
8292
8293 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8294
8295 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
8296 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
8297 (make_mac_frame): Add BLOCK_INPUT around the making of a
8298 terminal frame.
8299 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
8300 * macgui.h (mktime): Use emacs_mktime.
8301 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
8302 Make a cancel file-open dialog be like C-g.
8303 * mac.c (mktime): Use emacs_mktime.
8304 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
8305 (Fmac_paste_function): Add better error handling for carbon cut/paste.
8306
8307 2004-10-10 Kim F. Storm <storm@cua.dk>
8308
8309 * keyboard.c (timer_resume_idle): New function to resume idle
8310 timer without resetting timers on the idle list.
8311 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
8312 (timer_start_idle, timer_stop_idle): Declare static.
8313 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
8314
8315 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
8316
8317 2004-10-08 Steven Tamm <steventamm@mac.com>
8318
8319 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
8320 * macterm.c (mac_check_for_quit_char): Remove warning for using
8321 NULL where 0 should be used.
8322 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
8323 objc/malloc.h
8324 * mac.c: Include time.h for Tiger compatibility.
8325
8326 2004-10-07 Kim F. Storm <storm@cua.dk>
8327
8328 * xdisp.c (redisplay_window): Fix flicker on vertical line between
8329 windows. Update vertical line after drawing window fringes, but
8330 only if actually drawing any bitmaps--or there is no fringe.
8331
8332 * xterm.c (x_update_window_end): Likewise.
8333 * macterm.c (x_update_window_end): Likewise.
8334 * w32term.c (x_update_window_end): Likewise.
8335
8336 * fringe.c (draw_window_fringes): Return value now indicates if
8337 any fringe bitmaps were redrawn (or there are no fringes).
8338
8339 * dispextern.h (draw_window_fringes): Update prototype.
8340
8341 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8342
8343 * macfns.c (mac_get_window_bounds): Add extern.
8344 (x_real_positions): Use mac_get_window_bounds.
8345
8346 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
8347 xmenu.c (YAILOM).
8348
8349 * macterm.c [!MAC_OSX]: Include Windows.h.
8350 (front_emacs_window): Rename from mac_front_window. All uses
8351 changed. Return the frontmost non-tooltip emacs window.
8352 (mac_get_window_bounds): New function.
8353 (x_calc_absolute_position): Use the difference of width and height
8354 between the inner and outer window.
8355 (x_set_offset): Specify window position by the coordinae of the
8356 outer window. Adjust the position if the title bar is completely
8357 outside the screen.
8358 (app_is_suspended, app_sleep_time): Remove unused variables.
8359 (do_app_resume, do_app_suspend): Remove their contents because
8360 window-activate/deactivate events will do the job.
8361 (do_zoom_window): Remove unused variables. Make compliant to the
8362 standard way of zooming. Set f->left_pos and f->top_pos.
8363 (XTread_socket): Don't use argument `expected'. Don't use
8364 FrontWindow to determine the clicked window. Exclude unprocessed
8365 mouseUp cases in the early stage. Add parentheses to fix operator
8366 precedence.
8367 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
8368
8369 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
8370
8371 * config.in: Regenerate.
8372
8373 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
8374 HAVE_EXECSHIELD.
8375
8376 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8377
8378 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
8379 a row if Alt or Meta has been found for that row. Also stop scanning
8380 for Keysyms for that row.
8381
8382 2004-10-04 Kim F. Storm <storm@cua.dk>
8383
8384 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
8385 to list. Include overlay arrow bitmap in return value.
8386
8387 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
8388 bars with fractional column width. If scroll bar separates two
8389 windows, move it towards the window it belongs to. Only update
8390 the padding area below the scroll bar widget when necessary,
8391 i.e. when scroll bar widget is created, moved, or resized.
8392
8393 * xdisp.c (define_frame_cursor1): Do not change frame cursor
8394 while tracking/dragging mouse.
8395 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
8396
8397 * window.c (coordinates_in_window): Relax check for cursor
8398 on vertial border between mode lines.
8399 (Fset_window_fringes): Do not allow negative widths.
8400 (Fset_window_scroll_bars): Likewise.
8401
8402 * .gdbinit (pp): Shorthand for p ARG + pr.
8403 (ff): New command: flush frame updates (X only).
8404
8405 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
8406
8407 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
8408
8409 2004-09-30 Kenichi Handa <handa@m17n.org>
8410
8411 * process.c (send_process): Free composition data.
8412
8413 * fileio.c (Finsert_file_contents): Free composition data.
8414
8415 * coding.c (code_convert_region): Don't skip ASCIIs if there are
8416 compositions to encode.
8417 (encode_coding_string): Likewise. Free composition data.
8418
8419 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
8420
8421 * coding.c (code_convert_region): Free composition data.
8422
8423 2004-09-29 Kim F. Storm <storm@cua.dk>
8424
8425 * fringe.c: Remove limit on number of bitmaps.
8426 (fringe_bitmaps, fringe_faces): Change to pointers.
8427 (max_fringe_bitmaps): New var.
8428 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
8429 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
8430
8431 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
8432 (struct glyph_row): Reorder fringe_bitmap related fields.
8433 (struct it): Likewise.
8434
8435 * w32term.c (fringe_bmp): Change to pointer.
8436 (max_fringe_bmp): New var.
8437 (w32_define_fringe_bitmap): Expand fringe_bmp.
8438 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
8439 (w32_destroy_fringe_bitmap): Likewise.
8440
8441 2004-09-29 Kim F. Storm <storm@cua.dk>
8442
8443 * fringe.c: Simplify last change.
8444 (lookup_fringe_bitmap): New function.
8445 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
8446 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
8447 Keep standard bitmaps in Vfringe_bitmaps.
8448 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
8449 (Fset_fringe_bitmap_face): Likewise.
8450
8451 * dispextern.h (lookup_fringe_bitmap): Add prototype.
8452 (valid_fringe_bitmap_p): Remove prototype.
8453
8454 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
8455
8456 2004-09-29 Kim F. Storm <storm@cua.dk>
8457
8458 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
8459 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
8460
8461 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
8462
8463 * fringe.c (Vfringe_bitmaps): New variable.
8464 (syms_of_fringe): DEFVAR_LISP it.
8465 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
8466 Change arg to Lisp_Object and fail if not an integer.
8467 (get_fringe_bitmap_name, resolve_fringe_bitmap)
8468 (destroy_fringe_bitmap): New functions.
8469 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
8470 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
8471 clear its fringe property.
8472 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
8473 Fdestroy_fringe_bitmap.
8474 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
8475 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
8476 and set fringe property. Signal error if no free slots.
8477 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
8478 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
8479
8480 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
8481 symbols with a fringe property.
8482
8483 2004-09-27 Kim F. Storm <storm@cua.dk>
8484
8485 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
8486 Doc fix. Format may now be a symbol or alist, not a cons.
8487
8488 * fringe.c (update_window_fringes): Handle new formats of
8489 indicate-buffer-boundaries (symbol or alist). No longer
8490 allow a simple cons.
8491 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
8492
8493 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8494
8495 * config.in: Rebuild.
8496
8497 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8498
8499 * config.in: Rebuild.
8500
8501 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
8502
8503 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
8504
8505 * xterm.c (x_term_init): Work around a bug in some X servers.
8506
8507 2004-09-18 Richard M. Stallman <rms@gnu.org>
8508
8509 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
8510
8511 * xdisp.c (try_window_reusing_current_matrix):
8512 Handle the case where we reach the old displayed text,
8513 out of sync with the old line boundary.
8514
8515 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
8516
8517 * fileio.c (Finsert_file_contents): Fix case of replacement in a
8518 narrowed buffer.
8519
8520 2004-09-14 Kim F. Storm <storm@cua.dk>
8521
8522 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
8523
8524 * xfaces.c (Qface_no_inherit): New var.
8525 (syms_of_xfaces): Intern and staticpro it.
8526 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
8527 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
8528 Don't increment face_change_count when face has non-nil
8529 face-no-inherit property.
8530
8531 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
8532
8533 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
8534 (Fbyte_code): Remove dead code after `wrong_type_argument'.
8535
8536 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
8537 before doing the mark_stack_check_gcpros since they're not on the stack.
8538
8539 2004-09-12 Kim F. Storm <storm@cua.dk>
8540
8541 * editfns.c (Fformat): Handle format strings with multiple text
8542 properties. Reverse text property list from the format string,
8543 so the positions are in increasing order.
8544
8545 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8546
8547 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
8548 x_uncatch_errors so that possible protocol errors are delivered.
8549
8550 2004-09-10 Eli Zaretskii <eliz@gnu.org>
8551
8552 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
8553 blockinput.h.
8554 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
8555 charset.h, and coding.h
8556 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
8557 (term.o): Depend on window.h and keymap.h.
8558 (abbrev.o): Depend on syntax.h.
8559 (callint.o): Depend on keymap.h.
8560 (casefiddle.o): Depend on charset.h and keymap.h.
8561 (category.o): Depend on keymap.h.
8562 (coding.o): Depend on dispextern.h.
8563 (cmds.o): Depend on keyboard.h and keymap.h.
8564 (dispnew.o): Depend on indent.h and intervals.h.
8565 (doc.o): Depend on keymap.h.
8566 (editfns.o): Depend on frame.h.
8567 (emacs.o): Depend on dispextern.h.
8568 (fileio.o): Don't depend on ccl.h.
8569 (filelock.o): Depend on charset.h and coding.h.
8570 (frame.o): Depend on w32term.h and macterm.h.
8571 (insdel.o): Depend on region-cache.h.
8572 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
8573 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
8574 (search.o): Depend on $(INTERVALS_SRC).
8575 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
8576 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
8577 xterm.h, w32term.h, and macterm.h.
8578 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
8579 w32term.h, and macterm.h.
8580 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
8581 region-cache.h, xterm.h, w32term.h, and macterm.h.
8582 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
8583 (data.o): Depend on frame.h.
8584 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
8585 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
8586 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
8587 (intervals.o): Depend on keymap.h.
8588
8589 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
8590 Add debugging print-out to termscript.
8591
8592 2004-09-09 Richard M. Stallman <rms@gnu.org>
8593
8594 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
8595
8596 2004-09-08 Richard M. Stallman <rms@gnu.org>
8597
8598 * window.c (Fset_window_buffer): Doc fix.
8599
8600 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
8601
8602 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
8603
8604 * minibuf.c (history_delete_duplicates): New variable.
8605 (read_minibuf): Use it.
8606 (syms_of_minibuf): Create the corresponding lisp variable.
8607
8608 2004-09-08 Kim F. Storm <storm@cua.dk>
8609
8610 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
8611 overlay just before point.
8612
8613 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
8614
8615 * buffer.h (struct buffer): Add auto_save_file_format field.
8616 * buffer.c (reset_buffer, init_buffer_once):
8617 Handle auto_save_file_format field.
8618 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
8619 `buffer-auto-save-file-format'.
8620 * fileio.c: Delete declaration for removed Vauto_save_file_format.
8621 (build_annotations): Adapt to replacement of
8622 `auto-save-file-format' with the new buffer-local variable
8623 `buffer-auto-save-file-format'.
8624 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
8625
8626 2004-09-07 Jason Rumney <jasonr@gnu.org>
8627
8628 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
8629
8630 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
8631 Handle Unicode menu titles.
8632
8633 2004-09-07 Kim F. Storm <storm@cua.dk>
8634
8635 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
8636 property from text property or overlay strings at point.
8637
8638 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8639
8640 * xmenu.c (update_submenu_strings): YAILOM.
8641 (set_frame_menubar): Make sure last_i is initialized.
8642
8643 2004-09-03 Jason Rumney <jasonr@gnu.org>
8644
8645 * w32menu.c (_widget_value): Add lname and lkey.
8646 (digest_single_submenu): Set lname and lkey in widget_value
8647 instead of name and key.
8648 (update_submenu_strings): New function.
8649 (set_frame_menubar): Remove call to inhibit_garbage_collection,
8650 call update_submenu_strings.
8651
8652 * w32menu.c (globals_of_w32menu): Check for Unicode API.
8653 (digest_single_submenu, w32_menu_show): Encode menu strings as
8654 UTF-8 if Unicode API is available.
8655 (utf8to16): New function.
8656 (add_menu_item): Use it when calling Unicode API.
8657
8658 2004-09-03 Kim F. Storm <storm@cua.dk>
8659
8660 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
8661 in overlay or text-property strings; set cursor on corresponding
8662 glyph rather than at end of the string.
8663
8664 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8665
8666 * macfns.c (x_real_positions): Save the current window port and
8667 set a new one before obtaining the global coordinate.
8668 Use FRAME_MAC_WINDOW.
8669 (x_set_name, x_set_title): Encode title to UTF8.
8670 Use SetWindowTitleWithCFString.
8671 (Fx_server_version): Get correct OS version.
8672
8673 * macmenu.c (add_menu_item): Remove unused variable `i'.
8674 Don't let separator items destroy refence constants of other menu items.
8675
8676 * macterm.c (x_update_end): Move SetPortWindowPort to inside
8677 BLOCK_INPUT.
8678 (x_set_offset): Use FRAME_MAC_WINDOW.
8679
8680 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
8681 nontext_cursor if it is on a scroll bar.
8682
8683 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
8684 Carbon support.
8685 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
8686 Use LIBS_CARBON.
8687
8688 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8689
8690 * xfns.c (x_set_name_internal): New function. Check if we shall call
8691 xfree before ENCODE_UTF_8.
8692 (x_set_name, x_set_title): Call x_set_name_internal.
8693
8694 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
8695
8696 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
8697 reload it.
8698
8699 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8700
8701 * macmenu.c (_widget_value): Add lname and lkey.
8702 (single_submenu): Set lname and lkey in widget_value
8703 instead of name and key.
8704 (update_submenu_strings): New function.
8705 (set_frame_menubar): Remove call to inhibit_garbage_collection,
8706 call update_submenu_strings.
8707
8708 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
8709 instead of name and key.
8710 (update_submenu_strings): New function.
8711 (set_frame_menubar): Remove call to inhibit_garbage_collection,
8712 call update_submenu_strings.
8713
8714 * gtkutil.h (_widget_value): Added lname and lkey.
8715
8716 2004-08-30 Steven Tamm <steventamm@mac.com>
8717
8718 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
8719 by using different names for inner loop variables.
8720
8721 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8722
8723 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
8724 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
8725
8726 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
8727 tool bar items is 0.
8728
8729 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8730
8731 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
8732 strings in menu items.
8733 (single_submenu): Use ENCODE_MENU_STRING
8734 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
8735 button release isn't passed to event loop
8736 (add_menu_item): Use SetMenuItemWithCFString
8737
8738 2004-08-26 Steven Tamm <steventamm@mac.com>
8739
8740 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
8741 tool-bar/menu click.
8742 * macfns.c (Fx_file_dialog): Implement using NavServices.
8743
8744 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8745
8746 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
8747
8748 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8749 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8750 (x_top_window_to_frame): Return 0 if wdesc is None.
8751
8752 2004-08-22 Richard M. Stallman <rms@gnu.org>
8753
8754 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
8755 HAVE_TERMIOS]: If there's no char for this signal, drop through
8756 and use system calls.
8757
8758 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
8759
8760 2004-08-20 Kim F. Storm <storm@cua.dk>
8761
8762 * process.c (wait_reading_process_output): Rename from
8763 wait_reading_process_input. All uses changed.
8764 (wait_reading_process_output_1): Rename from
8765 wait_reading_process_input_1. All uses changed.
8766
8767 * dispnew.c (Fsleep_for): Remove obsolete code.
8768
8769 2004-08-20 Kenichi Handa <handa@m17n.org>
8770
8771 * syntax.c (skip_chars): Fix for unibyte case.
8772
8773 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8774
8775 * syntax.c (char_quoted): Mixup byte/char pos.
8776 (back_comment): Fixup globals in all cases.
8777
8778 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8779
8780 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
8781 passing it to gtk_window_set_title.
8782
8783 2004-08-19 Kim F. Storm <storm@cua.dk>
8784
8785 * process.c (wait_reading_process_input): Clean up.
8786 Add wait_for_cell, wait_proc, and just_wait_proc args
8787 to avoid overloading `read_kbd' and `do_display' args.
8788 Change read_kbd arg to int. All callers changed.
8789
8790 * process.c (process_send_signal): Use CDISABLE.
8791
8792 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
8793
8794 2004-08-18 Kim F. Storm <storm@cua.dk>
8795
8796 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
8797 forward to wait_reading_process_input via DO_DISPLAY arg.
8798 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
8799 object, only process output from that process; also inhibit
8800 running timers if DO_DISPLAY==-2.
8801
8802 2004-08-17 Kim F. Storm <storm@cua.dk>
8803
8804 * process.c (process_send_signal): Fix last change--use
8805 _POSIX_VDISABLE instead of CVDISABLE when available.
8806
8807 2004-08-16 Richard M. Stallman <rms@gnu.org>
8808
8809 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
8810 Set VQUIT and VINTR chars to the standard ones if they are unset.
8811 [AIX]: Don't do that here. And don't force VINTR to standard
8812 when SIGNALS_VIA_CHARACTERS.
8813
8814 * process.c (process_send_signal)
8815 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
8816 Do nothing if the character is CVDISABLE.
8817
8818 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
8819
8820 * intervals.c (move_if_not_intangible):
8821 Force POSITION to be between BEGV and ZV.
8822
8823 2004-08-14 John Paul Wallington <jpw@gnu.org>
8824
8825 * buffer.c (Frestore_buffer_modified_p): Doc fix.
8826
8827 * fileio.c (Fread_file_name): Doc fix.
8828
8829 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
8830
8831 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
8832
8833 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
8834
8835 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
8836
8837 * keyboard.c: Declare Qdisabled_command_function instead of
8838 Qdisabled_command_hook.
8839 (Fcommand_execute): Use Qdisabled_command_function instead of
8840 Qdisabled_command_hook.
8841 (syms_of_keyboard): Ditto.
8842
8843 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
8844
8845 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
8846 (syms_of_keymap) <key-translation-map>: Doc fixes.
8847
8848 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
8849
8850 * window.c (window_list_1): YAILOM.
8851
8852 * fileio.c (make_temp_name): Handle multibyte prefixes.
8853
8854 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
8855
8856 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
8857 Doc fix.
8858
8859 2004-08-03 Kenichi Handa <handa@m17n.org>
8860
8861 * coding.c (decode_coding_string): Adjust coding->consumed, and
8862 etc. with shrinked_bytes.
8863
8864 2004-08-03 Kim F. Storm <storm@cua.dk>
8865
8866 * indent.c (compute_motion): Fix check for full width window
8867 in non-window case. Do not count left truncation glyph on
8868 window systems.
8869
8870 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
8871
8872 * data.c (Finteractive_form): Doc fix.
8873
8874 2004-08-02 Kim F. Storm <storm@cua.dk>
8875
8876 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
8877 properly accounting for continuation glyph on non-window systems.
8878 (Fcompute_motion): Use actual window width if WIDTH is nil, and
8879 actual window width/height if TOPOS is nil, properly accounting for
8880 continuation glyphs on non-window systems, and optional header lines.
8881 (vmotion): Let compute_motion calculate actual window width.
8882
8883 * window.c (window_scroll_line_based): Let compute_motion
8884 calculate actual window width.
8885
8886 2004-08-02 Kim F. Storm <storm@cua.dk>
8887
8888 * process.c (read_process_output): Use whole read buffer.
8889 Don't trigger adaptive read buffering on errors.
8890
8891 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
8892
8893 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
8894
8895 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
8896
8897 * callint.c (Fcall_interactively): Doc fix.
8898
8899 2004-07-30 Richard M. Stallman <rms@gnu.org>
8900
8901 * abbrev.c (Fexpand_abbrev): Undo previous change.
8902
8903 2004-07-30 Kim F. Storm <storm@cua.dk>
8904
8905 * editfns.c (Fformat): Allocate extra (dummy) element in info.
8906
8907 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
8908
8909 * eval.c (Fdefvar, Fdefconst): Doc fixes.
8910
8911 2004-07-27 Kim F. Storm <storm@cua.dk>
8912
8913 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
8914 we have ensured that the glyph fits on the current line (or returned
8915 MOVE_LINE_CONTINUED otherwise).
8916
8917 2004-07-26 Kim F. Storm <storm@cua.dk>
8918
8919 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
8920 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
8921 if target position is at end of display line but char is not a newline.
8922
8923 2004-07-25 Richard M. Stallman <rms@gnu.org>
8924
8925 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
8926 instead of ON_VERTICAL_BORDER, when on scroll bar.
8927 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
8928
8929 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
8930
8931 * window.c (Fcoordinates_in_window_p):
8932 Take account of FRAME_INTERNAL_BORDER_WIDTH.
8933
8934 * alloc.c (check_cons_list): New function (contents commented out).
8935
8936 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
8937
8938 * xfaces.c (Fcolor_supported_p): Doc fix.
8939
8940 * frame.c (Fselect_frame, Fset_frame_selected_window)
8941 (Fframe_visible_p, Fraise_frame): Doc fixes.
8942
8943 2004-07-24 Richard M. Stallman <rms@gnu.org>
8944
8945 * keyboard.h (not_single_kboard_state): Declare.
8946
8947 * fileio.c (Fwrite_region): Doc fix.
8948
8949 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
8950
8951 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
8952 only when a real abbrev is present.
8953
8954 * xfns.c (x_icon_verify): New function.
8955 (Fx_create_frame): Use it.
8956
8957 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
8958
8959 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
8960
8961 2004-07-21 Kim F. Storm <storm@cua.dk>
8962
8963 * window.h (struct glyph_matrix): New members nrows_scale_factor
8964 and ncols_scale_factor.
8965
8966 * window.c (make_window): Initialize nrows_scale_factor and
8967 ncols_scale_factor members.
8968
8969 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
8970 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
8971 (required_matrix_height): Apply nrows_scale_factor.
8972 (required_matrix_width): Apply ncols_scale_factor.
8973
8974 * xdisp.c (display_line): Increment nrows_scale_factor and set
8975 fonts_changed_p if past last allocated row.
8976 (append_glyph, append_composite_glyph, produce_image_glyph)
8977 (append_stretch_glyph): Increment ncols_scale_factor and set
8978 fonts_changed_p if current area is full.
8979
8980 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8981
8982 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
8983
8984 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
8985
8986 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
8987 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
8988 (Fset_window_start, Fscroll_up, Fscroll_down)
8989 (Fother_window_for_scrolling, Fscroll_other_window)
8990 (Fsave_window_excursion, Fset_window_vscroll)
8991 (syms_of_window) <window-size-fixed>: Doc fixes.
8992
8993 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8994
8995 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
8996 ENCODE_SYSTEM for filenames.
8997
8998 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8999
9000 * mac.c (sys_select): Block input around call to
9001 ReceiveNextEvent to prevent breakage. Correctly handle
9002 blocking on event queue only by calling ReceiveNextEvent
9003 instead of select (since GUI events aren't on an fd).
9004 (sys_read): Remove function
9005 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
9006
9007 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9008
9009 * mac.c (sys_select): Redo sys_select to use alarm-based
9010 polling instead of 1 sec timeouts (like solaris).
9011
9012 * macterm.c (x_make_frame_visible): Comment in polling on
9013 frame creation.
9014
9015 * keyboard.c: Undef SIGIO on Carbon
9016
9017 * atimer.c (alarm_signal_handler): Call alarm handlers after
9018 scheduling.
9019
9020 * eval.c (Feval): Remove quit_char test
9021
9022 * process.c (wait_reading_process_input): Remove clearing
9023 stdin for select call on process input.
9024
9025 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
9026
9027 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
9028 capitalization error in docstring.
9029
9030 2004-07-17 Juanma Barranquero <lektu@terra.es>
9031
9032 * keyboard.c (not_single_kboard_state): Do nothing unless
9033 MULTI_KBOARD is defined.
9034
9035 2004-07-17 Richard M. Stallman <rms@gnu.org>
9036
9037 * window.c (coordinates_in_window): Inside the window but outside
9038 its box to the L or R, return ON_VERTICAL_BORDER.
9039 (window_list_1): Rotate the list to start with WINDOW.
9040
9041 * print.c (print_preprocess): Test for print_depth at limit
9042 before entering in being_printed.
9043
9044 * keyboard.c (not_single_kboard_state): New function.
9045 (stuff_buffered_input): Now no-op only if no SIGTSTP.
9046
9047 * frame.c (Fdelete_frame): If we're in single_bboard_state on
9048 this kboard, and we delete its last frame, go to any_kboard_state.
9049
9050 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
9051
9052 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9053
9054 * w32fns.c (Fx_file_dialog): Encode strings in system coding
9055 system before passing them to OS functions for display.
9056
9057 2004-07-15 David Kastrup <dak@gnu.org>
9058
9059 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
9060 Apparently fixes an abort condition.
9061
9062 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
9063
9064 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
9065 instead of a cons.
9066
9067 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
9068
9069 * keyboard.c (echo_dash): Do nothing if there already is a dash
9070 at the end of the echo string.
9071
9072 2004-07-12 Kim F. Storm <storm@cua.dk>
9073
9074 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
9075 if GC_MARK_STACK.
9076
9077 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
9078
9079 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
9080
9081 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
9082 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
9083 (Freplace_buffer_in_windows, Fset_window_buffer)
9084 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
9085 (syms_of_window): Expand docstring of `display-buffer-function'.
9086
9087 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
9088
9089 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
9090 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
9091 that time values of the type (HIGH . LOW) are considered obsolete.
9092
9093 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
9094
9095 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
9096 docstring.
9097
9098 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
9099
9100 2004-07-06 John Paul Wallington <jpw@gnu.org>
9101
9102 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
9103
9104 * fns.c (Fclear_string): Signal an error if STRING is not a string.
9105
9106 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9107
9108 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
9109 instead of CGMainDisplayID (only in OSX 10.2 and later).
9110
9111 2004-07-04 John Paul Wallington <jpw@gnu.org>
9112
9113 * fileio.c (read_file_name_completion_ignore_case): New variable.
9114 (syms_of_fileio): Declare and initialise it.
9115 (Fread_file_name): Bind `completion-ignore-case' to respect it.
9116
9117 2004-07-03 Eli Zaretskii <eliz@gnu.org>
9118
9119 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
9120 for event.x and event.y.
9121
9122 2004-07-01 Kenichi Handa <handa@m17n.org>
9123
9124 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
9125 after getting a new string by pre-write-conversion.
9126
9127 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
9128
9129 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
9130 (x_calc_absolute_position): Remove unused var `child'.
9131
9132 * xfaces.c (x_supports_face_attributes_p)
9133 (Fdisplay_supports_face_attributes_p): YAILOM.
9134 (tty_supports_face_attributes_p): Remove unused var `i'.
9135
9136 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
9137 back_unibyte_ok.
9138
9139 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
9140
9141 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
9142
9143 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
9144
9145 2004-06-30 Andreas Schwab <schwab@suse.de>
9146
9147 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
9148 (Finit_image_library): Pass LIBRARIES through to
9149 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
9150 (lookup_image_type): Pass Qnil as second argument to
9151 Finit_image_library.
9152
9153 * lisp.h (Finit_image_library): Declare.
9154
9155 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9156
9157 * macterm.c (do_window_activate, do_window_deactivate): Remove.
9158 (XTread_socket): Send mouse button events to the toolbox
9159 dispatcher even when the mouse is grabbed. Don't process window
9160 activate events for non-Emacs windows. Replace function calls to
9161 do_window_activate and do_window_deactivate with their contents.
9162 Reset mouse grabbing status when a window is deactivated.
9163
9164 2004-06-29 Steven Tamm <steventamm@mac.com>
9165
9166 * macterm.c (mac_get_emulated_btn)
9167 (mac_event_to_emacs_modifiers): Fix emulated mouse button
9168 support to correctly mask out modifiers.
9169
9170 2004-06-29 David Kastrup <dak@gnu.org>
9171
9172 * search.c (Fset_match_data): Allow buffer before end of list
9173 which can happen if set-match-data is using a pre-consed list.
9174
9175 2004-06-28 Steven Tamm <steventamm@mac.com>
9176
9177 * macterm.c (XTread_socket): Correctly set the frame position
9178 after the window is moved.
9179
9180 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9181
9182 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
9183 gpix and gmask just before return to avoid memory leak.
9184 (xg_get_image_for_pixmap): Add workaround for monochrome displays
9185 so insensitive and activated icons look ok.
9186
9187 2004-06-27 Jason Rumney <jasonr@gnu.org>
9188
9189 * w32fns.c (file_dialog_callback): Disable edit control if set
9190 to directories only on CDN_INITDONE message.
9191 (Fx_file_dialog): Default to directories only when prompt starts
9192 with "Dired".
9193
9194 2004-06-25 Kim F. Storm <storm@cua.dk>
9195
9196 * alloc.c (allocate_misc): Update total_free_markers.
9197 (free_misc): New function.
9198 (safe_alloca_unwind, free_marker): Use it.
9199
9200 * lisp.h (free_misc): Add prototype.
9201
9202 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
9203
9204 2004-06-24 Richard M. Stallman <rms@gnu.org>
9205
9206 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
9207 (syms_of_emacs): Lisp variables deleted.
9208
9209 2004-06-23 David Kastrup <dak@gnu.org>
9210
9211 * search.c (Freplace_match): Adjust the match-data more thoroughly
9212 when replacing strings in the buffer.
9213 (Fmatch_data): When INTEGERS is non-nil and the last match was in
9214 a buffer, add the buffer as last element to the match data.
9215 (Fset_match_data): If an additional element of the match-data is a
9216 buffer, restore it to last_thing_searched.
9217 (save_search_regs): Save last_thing_searched as part of the match data.
9218 (restore_match_data): Restore it again.
9219
9220 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
9221
9222 * keymap.c (Ftext_char_description): Doc fix.
9223 * doc.c (Fsnarf_documentation): Doc fix.
9224
9225 2004-06-22 Kim F. Storm <storm@cua.dk>
9226
9227 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
9228
9229 * lisp.h (struct Lisp_Save_Value): New member dogc.
9230 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
9231 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
9232 (SAFE_FREE_LISP): New macro.
9233
9234 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
9235 (make_save_value): Init new dogc member.
9236 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
9237
9238 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
9239 SAFE_FREE_LISP macros.
9240
9241 2004-06-22 Kim F. Storm <storm@cua.dk>
9242
9243 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
9244 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
9245 in that memory area are unknown to GC. Add comments.
9246
9247 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
9248
9249 2004-06-21 Kim F. Storm <storm@cua.dk>
9250
9251 * lisp.h (MAX_ALLOCA): Define here.
9252 (safe_alloca_unwind): Add prototype.
9253 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
9254
9255 * alloc.c (safe_alloca_unwind): New function.
9256
9257 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
9258
9259 * charset.c (Fstring): Use SAFE_ALLOCA.
9260
9261 * coding.c (MAX_ALLOCA): Remove define.
9262
9263 * data.c (MAX_ALLOCA): Remove define.
9264 (Faset): Use SAFE_ALLOCA.
9265
9266 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
9267
9268 * fns.c (string_make_multibyte, string_to_multibyte)
9269 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
9270 (MAX_ALLOCA): Remove define.
9271 (Fbase64_encode_region, Fbase64_encode_string)
9272 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
9273 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
9274 memory leak if encoding fails.
9275
9276 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
9277
9278 2004-06-21 Eli Zaretskii <eliz@gnu.org>
9279
9280 * print.c (Fwith_output_to_temp_buffer): Doc fix.
9281
9282 2004-06-20 Richard M. Stallman <rms@gnu.org>
9283
9284 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
9285
9286 * search.c (match_limit): Cleaner err msg when no match data available.
9287
9288 * window.c (syms_of_window): Doc fix.
9289
9290 * keyboard.c (command_loop_1): Handle values `only' and `identity'
9291 for Vtransient_mark_mode.
9292
9293 * buffer.c (syms_of_buffer): Doc fix.
9294
9295 2004-06-21 David Kastrup <dak@gnu.org>
9296
9297 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
9298 and unbinding of `case-fold-search' according to
9299 `completion-ignore-case' around calls of string-match and
9300 predicates, respectively. Should give satisfactory performance
9301 in all relevant cases.
9302
9303 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9304
9305 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
9306 clip_x/y_origin.
9307
9308 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
9309
9310 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
9311
9312 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
9313 on Mac OSX.
9314
9315 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
9316
9317 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
9318
9319 2004-06-16 Kim F. Storm <storm@cua.dk>
9320
9321 * dispextern.h (Vimage_types): Remove extern.
9322
9323 2004-06-16 Miles Bader <miles@gnu.org>
9324
9325 * image.c (lookup_image_type): Initialize image type if necessary.
9326
9327 2004-06-15 Kim F. Storm <storm@cua.dk>
9328
9329 * xdisp.c (try_cursor_movement): Exclude header line from scroll
9330 margin at top of window.
9331 (try_window_reusing_current_matrix): Calculate proper cursor position
9332 after scrolling up with non-zero scroll margin, as the old cursor
9333 position corresponds to value of PT before executing this command.
9334 (try_window_id): Consider scroll margin at bottom of window too;
9335 otherwise we fail to scroll when hl-line-mode is enabled.
9336
9337 * syntax.c (skip_chars): Only recognize [:class:] when it has the
9338 proper format and class is a lower-case word.
9339
9340 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9341
9342 * gtkutil.c (xg_get_image_for_pixmap): New function.
9343 (xg_get_gdk_pixmap_and_mask): Remove.
9344 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
9345 xg_get_gdk_pixmap_and_mask.
9346
9347 * xterm.h (struct x_display_info): Typo in comment fixed.
9348
9349 2004-06-14 Juanma Barranquero <lektu@terra.es>
9350
9351 * dispextern.h (Vimage_types): Make it conditional on
9352 HAVE_WINDOW_SYSTEM.
9353
9354 * image.c (Vimage_types): Move from xdisp.c.
9355 (Vimage_type_cache): New variable.
9356 (define_image_type): New argument indicating whether an image
9357 library was loaded; cache loaded status and return t on success,
9358 nil otherwise.
9359 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
9360 (w32_delayed_load): New function to load an image library from a
9361 list of possible filenames.
9362 (init_xpm_functions, init_png_functions, init_jpeg_functions)
9363 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
9364 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
9365 (Finit_image_library): New function, extracted from `init_image'.
9366 Try to initialize an image library on demand and cache whether we
9367 were successful or not.
9368 (syms_of_image): Initialize `Vimage_types' and
9369 `Vimage_type_cache'. Add recognized image types to Vimage_types.
9370 Export `init-image-library'.
9371 (init_image): Remove initialization of all image types, except xbm
9372 and pbm.
9373
9374 * xdisp.c (Vimage_types): Delete (moved to image.c).
9375
9376 2004-06-14 Andreas Schwab <schwab@suse.de>
9377
9378 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
9379 Avoid calling specbind when completion-regexp-list is empty.
9380
9381 2004-06-13 Richard M. Stallman <rms@gnu.org>
9382
9383 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
9384 (re_wctype, re_iswctype, re_wctype_to_bit):
9385 Non-function definitions moved here from regex.c.
9386
9387 * regex.c (re_wctype, re_iswctype): Function defs longer static.
9388 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
9389 (re_wctype, re_iswctype, re_wctype_to_bit):
9390 Non-function definitions moved to regex.h.
9391
9392 * window.c (Fselect_window): Doc fix.
9393
9394 * syntax.c: Include regex.h.
9395 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
9396 If requested, make a list of classes, then check the scanned
9397 chars for membership in them.
9398 (in_classes): New function.
9399 Doc fix.
9400
9401 * keyboard.c (cmd_error): Don't call any_kboard_state
9402 if inside a recursive edit level.
9403
9404 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
9405
9406 * keyboard.c (command_loop): Call any_kboard_state before
9407 command_loop_2 when at top level.
9408
9409 2004-06-13 Andreas Schwab <schwab@suse.de>
9410
9411 * print.c (print_object): Always use %ld for printing EMACS_INT.
9412
9413 * keyboard.c (cancel_hourglass_unwind): Return a value.
9414 (modify_event_symbol): Always use %ld for printing EMACS_INT.
9415 (Fexecute_extended_command): Likewise.
9416
9417 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
9418 avoid clashes.
9419 (SYNTAX): Likewise.
9420 (SYNTAX_WITH_FLAGS): Likewise.
9421 (SYNTAX_MATCH): Likewise.
9422
9423 * syntax.c (char_quoted): Avoid warning about undefined operation.
9424 (find_defun_start): Likewise.
9425 (scan_lists): Likewise.
9426 (INC_FROM): Likewise.
9427 (scan_sexps_forward): Likewise.
9428
9429 * image.c: Include <ctype.h>.
9430
9431 * xfaces.c (face_attr_equal_p): Declare parameters.
9432
9433 2004-06-13 Kenichi Handa <handa@m17n.org>
9434
9435 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
9436
9437 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
9438
9439 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
9440
9441 2004-06-12 Kenichi Handa <handa@m17n.org>
9442
9443 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
9444 ccl_prog_stack_struct and update it.
9445 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
9446 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
9447 ccl->eof_ic on EOF.
9448 (ccl_debug_hook): New function.
9449 (struct ccl_prog_stack): New member eof_ic.
9450 (ccl_driver): Handle EOF in subrountine call correctly.
9451
9452 2004-06-11 Kenichi Handa <handa@m17n.org>
9453
9454 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
9455
9456 2004-06-11 Kim F. Storm <storm@cua.dk>
9457
9458 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
9459
9460 2004-06-11 Juanma Barranquero <lektu@terra.es>
9461
9462 * keyboard.c (Fposn_at_point): Doc fix.
9463
9464 2004-06-11 David Kastrup <dak@gnu.org>
9465
9466 * search.c (match_limit): Don't flag an error if match-data
9467 exceeding the allocated search_regs.num_regs gets requested, just
9468 return Qnil.
9469
9470 2004-06-08 Miles Bader <miles@gnu.org>
9471
9472 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
9473
9474 2004-06-07 Juanma Barranquero <lektu@terra.es>
9475
9476 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
9477 (Fcurrent_time_string, Fcurrent_time_zone)
9478 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
9479
9480 2004-06-07 Miles Bader <miles@gnu.org>
9481
9482 * xfaces.c (struct named_merge_point): New type.
9483 (push_named_merge_point): New function.
9484 (merge_named_face): New function.
9485 (merge_face_ref, face_at_buffer_position, face_at_string_position):
9486 Use `merge_named_face'.
9487 (merge_face_inheritance): Function removed.
9488 (merge_face_ref): Rename from `merge_face_vector_with_property'.
9489 Add new `err_msgs' and `named_merge_points' args. Return error
9490 status. Only print error messages if ERR_MSGS is true. Don't try to
9491 do :inherit attribute validation.
9492 (merge_face_heights): Handle `unspecified' in both directions.
9493 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
9494 Call `merge_face_ref' instead of `merge_face_inheritance'.
9495 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
9496 (compute_char_face, face_at_buffer_position)
9497 (face_at_string_position): Call `merge_face_ref' instead of
9498 `merge_face_vector_with_property'.
9499
9500 2004-06-07 Kenichi Handa <handa@m17n.org>
9501
9502 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
9503 the necessary places.
9504
9505 2004-06-07 Kim F. Storm <storm@cua.dk>
9506
9507 * process.c (Fdelete_process): Undo 2004-05-28 change.
9508 Instead, call status_notify also for network process.
9509 (status_message): Use process instead of status as arg.
9510 Give messages "deleted" or "connection broken by remote peer" for
9511 an exited network process.
9512 (status_notify): Change call to status_message.
9513 (read_process_output): Increase readmax to 4096. Do not increase
9514 buffer size for datagram channels (default is now large enough).
9515
9516 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
9517
9518 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
9519 problem due to newly defined variable.
9520
9521 2004-06-06 Miles Bader <miles@gnu.org>
9522
9523 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
9524 immediately if non-interactive or not initialized.
9525
9526 2004-06-05 Richard M. Stallman <rms@gnu.org>
9527
9528 * minibuf.c (Fcompleting_read): Doc fix.
9529
9530 2004-06-05 Andreas Schwab <schwab@suse.de>
9531
9532 * macfns.c (x_create_tip_frame): Fix declaration after statement.
9533
9534 2004-06-05 Juanma Barranquero <lektu@terra.es>
9535
9536 * keymap.c (Fdescribe_vector): Fix docstring.
9537 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
9538
9539 2004-06-05 Miles Bader <miles@gnu.org>
9540
9541 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
9542 attributes have different values than the default face.
9543
9544 2004-06-04 Eli Zaretskii <eliz@gnu.org>
9545
9546 * xfaces.c (x_supports_face_attributes_p): Make this function
9547 conditional on HAVE_WINDOW_SYSTEM.
9548 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
9549 Don't call x_supports_face_attributes_p if it was not compiled in.
9550
9551 2004-06-04 Miles Bader <miles@gnu.org>
9552
9553 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
9554 from Ftty_supports_face_attributes_p.
9555 (x_supports_face_attributes_p): New function.
9556 (Ftty_supports_face_attributes_p): Function deleted.
9557 (Fdisplay_supports_face_attributes_p): New function.
9558 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
9559 (face_attr_equal_p): New function.
9560 (lface_equal_p): Use it.
9561
9562 2004-06-03 Juanma Barranquero <lektu@terra.es>
9563
9564 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
9565 (Vw32_color_map): Fix typo in docstring.
9566 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
9567 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
9568 Make argument names match their use in docstring.
9569
9570 2004-06-02 Juanma Barranquero <lektu@terra.es>
9571
9572 Work around bugs/problems with MinGW builds of graphics libraries
9573 called from MSVC builds of Emacs.
9574
9575 * image.c (lookup_image): Make pointer to img static.
9576 (png_read_from_memory): Disable "global" optimization.
9577
9578 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
9579
9580 * eval.c (Fcondition_case): Fix usage. Simplify.
9581
9582 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
9583
9584 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9585
9586 * macfns.c: Don't include ccl.h.
9587 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
9588 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
9589 TextUtils.h.
9590 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
9591 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
9592 display height/width.
9593 (compute_tip_xy, Vx_max_tooltip_size): Declare.
9594 (unwind_create_tip_frame, compute_tip_xy): New functions.
9595 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
9596 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
9597 and last_show_tip_args.
9598
9599 * macgui.h [!MAC_OSX]: Include Gestalt.h.
9600 (Cursor, No_Cursor): New defines.
9601 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
9602 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
9603
9604 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
9605
9606 * macterm.c: Don't include Gestalt.h.
9607 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
9608 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
9609 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
9610 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
9611 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
9612 (construct_mouse_click, XTmouse_position)
9613 (x_scroll_bar_report_motion, x_calc_absolute_position)
9614 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
9615 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
9616 (note_mouse_movement): Clear the mouse face and reset the pointer
9617 shape when the pointer goes outside the frame without grabbing.
9618 (mac_front_window): New function.
9619 (mac_window_to_frame): New macro.
9620 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
9621 (do_window_activate, do_window_deactivate, do_app_resume)
9622 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
9623 (do_zoom_window, mac_do_receive_drag, XTread_socket)
9624 (mac_check_for_quit_char): Use mac_front_window and/or
9625 mac_window_to_frame.
9626 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
9627 scroll-bar click event.
9628 (mac_define_frame_cursor): Change the pointer shape.
9629 (x_free_frame_resources): Reset tip_window to NULL when it is
9630 disposed of.
9631 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
9632 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
9633 (do_window_update): Don't do anything if the updated window is the
9634 tooltip window.
9635 (do_mouse_moved): Handle mouse movement events here (previously in
9636 XTread_socket). Clear the mouse face if
9637 dpyinfo->mouse_face_hidden is set.
9638 (do_os_event, do_events): Remove (now in XTread_socket).
9639 (XTread_socket): Immediately return if interrupt_input_blocked.
9640 Loop until all the events in the queue are processed.
9641 Rearrange codes for mouse grabbing. Add tooltip support. Include the
9642 contents of do_os_event and do_events. Remove mouse movement
9643 handling (now in do_mouse_moved). Add the case where
9644 Vmouse_highlight has an integer value.
9645 (NewMacWindow): Remove.
9646 (make_mac_frame): Do what NewMacWindow previously did. Don't do
9647 excess initializations.
9648 (make_mac_terminal_frame): Previous initializations in
9649 make_mac_frame are moved here.
9650 (mac_initialize_display_info):
9651 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
9652
9653 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
9654 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
9655
9656 2004-05-29 Richard M. Stallman <rms@gnu.org>
9657
9658 * lisp.h (truncate_undo_list): Update decl.
9659
9660 * alloc.c (undo_outer_limit): New variable.
9661 (syms_of_alloc): Defvar it.
9662 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
9663
9664 * undo.c (truncate_undo_list): New arg LIMITSIZE.
9665
9666 * alloc.c (lisp_align_malloc): Check for base == 0
9667 regardless of HAVE_POSIX_MEMALIGN.
9668 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
9669
9670 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9671
9672 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
9673 (marker_blocks_pending_free): Remove.
9674 (Fgarbage_collect): Sweep after cleaning up undo-lists.
9675 Mark the undo lists after claning them up.
9676 Don't free block in marker_blocks_pending_free.
9677 (mark_buffer): Don't mark undo_list.
9678 (gc_sweep): Sweep hash-tables and strings first.
9679 Do free marker blocks that are empty.
9680
9681 2004-05-28 Jim Blandy <jimb@redhat.com>
9682
9683 * regex.c (print_partial_compiled_pattern): Add missing 'break'
9684 after 'case wordend'. For symbeg and symend, print to stderr,
9685 like the other cases.
9686
9687 2004-05-28 Noah Friedman <friedman@splode.com>
9688
9689 * process.c (Fdelete_process): Do not call remove_process.
9690
9691 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9692
9693 * alloc.c (struct backtrace): Remove.
9694 (Fgarbage_collect): Use the new mark_backtrace.
9695
9696 * eval.c (mark_backtrace): New function.
9697
9698 * minibuf.c (run_exit_minibuf_hook): New function.
9699 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
9700 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
9701
9702 2004-05-27 Kim F. Storm <storm@cua.dk>
9703
9704 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
9705 over display properties, e.g. images, that replace buffer text.
9706
9707 2004-05-25 Kim F. Storm <storm@cua.dk>
9708
9709 * alloc.c (marker_blocks_pending_free): New var.
9710 (gc_sweep): Store free marker blocks on that list.
9711 (Fgarbage_collect): Free them after undo-list cleanup.
9712
9713 * process.c (wait_reading_process_input): Check connect_wait_mask
9714 before actually accepting connection in case it has already been
9715 accepted due to recursion.
9716
9717 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
9718
9719 * coding.c (Fset_safe_terminal_coding_system_internal):
9720 Set suppress_error in safe_terminal_coding, not terminal_coding.
9721
9722 2004-05-22 Richard M. Stallman <rms@gnu.org>
9723
9724 * alloc.c (Fmake_string): Doc fix.
9725
9726 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
9727 and the alist pairs too.
9728
9729 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
9730
9731 * emacs.c (main): Update copyright year.
9732
9733 * fileio.c (Fread_file_name): Expand DIR if not absolute.
9734
9735 * insdel.c (del_range_2, replace_range): Don't write an anchor
9736 if the gap is empty.
9737
9738 * xdisp.c (try_scrolling): If scroll-up-aggressively or
9739 scroll-down-aggressively is small but positive, put point
9740 near the screen edge.
9741
9742 2004-05-22 Juanma Barranquero <lektu@terra.es>
9743
9744 * keymap.c (Fdefine_key): Doc fix.
9745
9746 2004-05-22 Kim F. Storm <storm@cua.dk>
9747
9748 * alloc.c (struct backtrace): Add debug_on_exit member.
9749 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
9750 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
9751 the removed cons cells.
9752 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
9753 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
9754 any cons cells pointing to unallocated stings.
9755 Do not lisp_free any marker blocks, as there may still be pointers
9756 to them from buffer undo lists at this stage of GC.
9757
9758 * keyboard.c (struct backtrace): Add debug_on_exit member.
9759 (Fcommand_execute): Clear it.
9760
9761 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
9762
9763 * intervals.c (lookup_char_property): Do not prematurely return nil.
9764
9765 2004-05-19 Jim Blandy <jimb@redhat.com>
9766
9767 Add support for new '\_<' and '\_>' regexp operators, matching the
9768 beginning and end of symbols.
9769
9770 * regex.c (enum syntaxcode): Add Ssymbol.
9771 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
9772 (re_opcode_t): New opcodes `symbeg' and `symend'.
9773 (print_partial_compiled_pattern): Print the new opcodes properly.
9774 (regex_compile): Parse the new operators.
9775 (analyse_first): Skip sym(beg|end) (they match only the empty string).
9776 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
9777 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
9778 (re_match_2_internal): Match symbeg and symend.
9779
9780 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
9781
9782 2004-05-19 Kim F. Storm <storm@cua.dk>
9783
9784 * .gdbinit (xsymbol): Fix last change.
9785
9786 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
9787
9788 * .gdbinit (xprintstr): New fun.
9789 (xstring, xprintsym): Use it.
9790
9791 * w32proc.c (create_child): Use INTMASK.
9792
9793 * alloc.c (Fgarbage_collect): Do all the marking before flushing
9794 unmarked elements of the undo list.
9795
9796 2004-05-18 David Ponce <david@dponce.com>
9797
9798 * print.c (print): Reset print_depth before to call print_object.
9799
9800 2004-05-18 Jason Rumney <jasonr@gnu.org>
9801
9802 * w32console.c: Prefix RIF functions with w32con_ to avoid
9803 namespace clash with functions in term.c and w32term.c.
9804
9805 * w32menu.c (add_menu_item, w32_menu_display_help)
9806 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
9807
9808 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
9809
9810 2004-05-18 Eli Zaretskii <eliz@gnu.org>
9811
9812 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
9813
9814 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
9815 with make_number.
9816 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
9817 with XINT.
9818
9819 2004-05-18 Kim F. Storm <storm@cua.dk>
9820
9821 * blockinput.h (INPUT_BLOCKED_P): New macros.
9822
9823 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
9824 (Ftop_level): Unblock input if blocked.
9825
9826 * buffer.h (GET_OVERLAYS_AT): New macro.
9827 * msdos.c (IT_note_mouse_highlight): Use it.
9828 * textprop.c (get_char_property_and_overlay): Use it.
9829 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
9830 * xfaces.c (face_at_buffer_position): Use it.
9831
9832 * print.c (print_object): Increase buf size.
9833
9834 2004-05-17 Jason Rumney <jasonr@gnu.org>
9835
9836 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
9837 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
9838 Lisp_Object using i member.
9839 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
9840 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
9841 consistently.
9842
9843 * w32proc.c (create_child): Use make_number instead of masking pid.
9844
9845 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
9846 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
9847 Use EQ to compare Lisp_Objects.
9848 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
9849
9850 * w32term.c (w32_num_mouse_buttons): Rename from
9851 Vw32_num_mouse_buttons and make it an int.
9852
9853 * w32.c (init_environment): Use it.
9854
9855 * w32fns.c (w32_wnd_proc): Likewise.
9856
9857 * w32proc.c (w32_pipe_read_delay): Rename from
9858 Vw32_pipe_read_delay and make it an int.
9859
9860 * w32.c (_sys_read_ahead): Use it.
9861
9862 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
9863
9864 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
9865
9866 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
9867 (key_event): Don't mix Lisp_Object and int.
9868
9869 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
9870
9871 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
9872 modifiers in language change event.
9873
9874 2004-05-17 Kim F. Storm <storm@cua.dk>
9875
9876 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
9877 Such objects may be freed markers which still exist on an undo list.
9878
9879 2004-05-16 Juanma Barranquero <lektu@terra.es>
9880
9881 * data.c (Fset_default): Make argument names match their use in
9882 docstring.
9883
9884 2004-05-15 Andreas Schwab <schwab@suse.de>
9885
9886 * emacs.c (gdb_array_mark_flag): Define.
9887 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
9888
9889 2004-05-15 Eli Zaretskii <eliz@gnu.org>
9890
9891 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
9892 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
9893 defined for the MS-DOS build.
9894
9895 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9896
9897 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
9898
9899 2004-05-14 Kenichi Handa <handa@m17n.org>
9900
9901 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
9902
9903 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9904
9905 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
9906 section to frame.c section.
9907 (Fxw_display_color_p, Fx_file_dialog): Declare if
9908 HAVE_WINDOW_SYSTEM defined.
9909
9910 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
9911
9912 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
9913
9914 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
9915 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
9916 (XTread_socket): Fix int/Lisp_Object mixup.
9917 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
9918
9919 * macterm.h (struct frame, struct face, struct image)
9920 (display_x_get_resource, Fx_display_color_p)
9921 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
9922 Add prototypes.
9923
9924 2004-05-14 Kim F. Storm <storm@cua.dk>
9925
9926 * process.c (wait_reading_process_input): Make reentrant.
9927 Make Available and Connecting non-static. Save and restore value
9928 of waiting_for_user_input_p.
9929
9930 2004-05-13 Kim F. Storm <storm@cua.dk>
9931
9932 * keyboard.c (mark_kboards): Don't mark x and y members
9933 that are overloaded in selection request events.
9934
9935 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9936
9937 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
9938
9939 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
9940
9941 * window.c (Fdisplay_buffer, Fsplit_window)
9942 (split-height-threshold): Doc fix.
9943
9944 2004-05-13 Juanma Barranquero <lektu@terra.es>
9945
9946 * xfaces.c (Ftty_supports_face_attributes_p)
9947 (Finternal_copy_lisp_face): Fix typo in docstring.
9948 (Finternal_get_lisp_face_attribute): Fix docstring.
9949
9950 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9951
9952 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
9953
9954 2004-05-11 Steven Tamm <steventamm@mac.com>
9955
9956 * macfns.c (Fx_create_frame): Default to using tool-bar by
9957 setting tool-bar-lines to 1 in default-frame-alist.
9958
9959 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9960
9961 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
9962 (xpm_get_color_table_v, xpm_make_color_table_h)
9963 (xpm_put_color_table_h, xpm_get_color_table_h)
9964 (xpm_str_to_color_key, xpm_load_image, xpm_load)
9965 (syms_of_image): Support XPM on Carbon Emacs. Does not
9966 depend on libXpm, but only supports XPM version 3 without extensions.
9967
9968 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9969
9970 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
9971 instead of FRAME_X_P
9972
9973 2004-05-11 Kim F. Storm <storm@cua.dk>
9974
9975 * process.c (read_process_output): Grow decoding_buf when needed;
9976 this could cause a crash in allocate_string and compact_small_strings.
9977
9978 2004-04-29 Jim Blandy <jimb@redhat.com>
9979
9980 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
9981 against proper opcode.
9982
9983 2004-05-10 Juanma Barranquero <lektu@terra.es>
9984
9985 * process.c (Fstart_process): Fix docstring.
9986
9987 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
9988 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
9989 (Fsplit_char, Fchar_charset): Make argument names match their use
9990 in docstring.
9991
9992 2004-05-10 Richard M. Stallman <rms@gnu.org>
9993
9994 * print.c (print_preprocess): Use being_printed, loop_count and
9995 halftail to detect overdeep nesting and cyclic cdr chains.
9996
9997 2004-05-10 Andreas Schwab <schwab@suse.de>
9998
9999 * lisp.h (Fmake_symbolic_link): Declare.
10000
10001 * fileio.c (Frename_file): Remove extra argument in call to
10002 Fmake_symbolic_link.
10003
10004 2004-05-10 Kim F. Storm <storm@cua.dk>
10005
10006 * xdisp.c (calc_line_height_property): Use string position when
10007 object is a string.
10008
10009 2004-05-10 Kenichi Handa <handa@m17n.org>
10010
10011 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
10012 inhibit-modification-hooks to t temporarily before calling
10013 Ferase_buffer.
10014
10015 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
10016 inhibit-modification-hooks to t temporarily before calling
10017 Ferase_buffer.
10018
10019 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
10020 inhibit-modification-hooks to t temporarily before calling
10021 Ferase_buffer.
10022
10023 * fns.c (count_combining): Delete it.
10024 (concat): Don't check combining bytes.
10025
10026 2004-05-09 Jason Rumney <jasonr@gnu.org>
10027
10028 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
10029 (globals_of_w32fns): Set it.
10030
10031 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
10032
10033 * data.c (Fquo): Simplify.
10034
10035 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
10036
10037 * data.c (Fquo): If any argument is float, do the computation in
10038 floating point.
10039
10040 2004-05-08 Juanma Barranquero <lektu@terra.es>
10041
10042 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
10043 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
10044 Fix spelling of Emacs on docstring.
10045 (Fset_process_coding_system, Fprocess_coding_system)
10046 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
10047 Make argument names match their use in docstring.
10048 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
10049 Fix docstring.
10050
10051 * editfns.c (Finsert_buffer_substring): Make argument names match their
10052 use in docstring.
10053
10054 * syntax.c (Fmodify_syntax_entry): Fix docstring.
10055
10056 2004-05-07 Steven Tamm <steventamm@mac.com>
10057
10058 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
10059 around call to ReceiveEvent to avoid certain crashes.
10060
10061 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10062
10063 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
10064 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
10065 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
10066 Save/restore the current graphics port and device handle when
10067 drawing into an offscreen graphics world.
10068
10069 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
10070 (gif_load): Likewise.
10071
10072 2004-05-07 Juanma Barranquero <lektu@terra.es>
10073
10074 * window.c (Fset_window_buffer): Fix docstring.
10075
10076 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
10077
10078 * emacs.c (main) [VMS]: Fix var ref.
10079
10080 2004-05-06 Romain Francoise <romain@orebokech.com>
10081
10082 * data.c (Fsetq_default): Fix docstring.
10083
10084 2004-05-06 Jason Rumney <jasonr@gnu.org>
10085
10086 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
10087 to avoid name clash.
10088
10089 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10090
10091 * fileio.c (barf_or_query_if_file_exists): Use lstat.
10092 (Frename_file): Handle renaming of symlinks across file systems.
10093 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
10094
10095 2004-05-04 Kim F. Storm <storm@cua.dk>
10096
10097 * xdisp.c (Qtotal): New var.
10098 (syms_of_xdisp): Intern and staticpro it.
10099 (calc_line_height_property): New arg total. Set it if
10100 line-spacing property has format (total . VALUE).
10101 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
10102 Handle total line-spacing property.
10103
10104 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10105
10106 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
10107 "under" scroll bar when size/position changes.
10108
10109 2004-05-03 Jason Rumney <jasonr@gnu.org>
10110
10111 * makefile.nt: Remove.
10112
10113 2004-05-02 Eli Zaretskii <eliz@gnu.org>
10114
10115 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
10116 Avoid compiler warnings.
10117
10118 * Makefile.in (region-cache.o): Depend on config.h.
10119
10120 2004-05-02 Romain Francoise <romain@orebokech.com>
10121
10122 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
10123 with continuation lines, too.
10124
10125 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
10126
10127 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
10128
10129 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
10130
10131 * xdisp.c (calc_line_height_property): YAILOM (yet another
10132 int/Lisp_Object mixup).
10133
10134 2004-05-01 Eli Zaretskii <eliz@gnu.org>
10135
10136 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
10137 undo bad effect of pack(4) in some versions of system headers.
10138
10139 2004-05-01 Jason Rumney <jasonr@gnu.org>
10140
10141 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
10142
10143 2004-04-30 Kim F. Storm <storm@cua.dk>
10144
10145 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
10146 (syms_of_buffer) <cursor-type>: Doc fix.
10147
10148 * dispextern.h (struct it): Remove member use_default_face.
10149 Add members override_ascent, override_descent, override_boff.
10150
10151 * xdisp.c (init_iterator): Handle line-spacing float value.
10152 Initialize override_ascent member.
10153 (append_space_for_newline): Reset override_ascent.
10154 Remove use_default_face.
10155 (calc_line_height_property): New function to calculate value of
10156 line-height and line-spacing properties. Look at overlays, too.
10157 Set override_ascent, override_descent, override_boff members when
10158 using another face than the current face. Float values are now
10159 relative to the frame default font, by default; accept a cons
10160 of ratio and face name to specify value relative to a specific face.
10161 (x_produce_glyphs): Use calc_line_height_property.
10162 Use override_ascent etc. when set to handle different face heights.
10163 A negative line-spacing property value is interpreted as a total
10164 line height, rather than inter-line spacing.
10165 (note_mouse_highlight): Allocate room for 40 overlays initially.
10166
10167 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
10168
10169 * data.c (Fsubr_name): New fun.
10170 (syms_of_data): Defsubr it.
10171
10172 2004-04-29 Kim F. Storm <storm@cua.dk>
10173
10174 * xdisp.c (null_glyph_slice): New var.
10175 (append_glyph, append_composite_glyph, append_stretch_glyph):
10176 Use it to initialize glyph slice.
10177
10178 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
10179
10180 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
10181 (on_hot_spot_p): Make sure we always return a value.
10182 (Flookup_image_map): Remove unused var ix and iy.
10183 (note_mode_line_or_margin_highlight): Remove unused var `image'.
10184
10185 2004-04-27 Eli Zaretskii <eliz@gnu.org>
10186
10187 * msdos.c (init_environment): If one of the TMP... environment
10188 variables is set to a drive letter without a trailing slash,
10189 append a slash.
10190
10191 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
10192
10193 * editfns.c (lisp_time_argument): Provide externally.
10194
10195 * fileio.c (Fset_file_times): New function.
10196 (syms_of_fileio): Intern and staticpro it.
10197
10198 2004-04-27 Kim F. Storm <storm@cua.dk>
10199
10200 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
10201 header line strings.
10202
10203 * dispextern.h (struct it): New member use_default_face.
10204
10205 * xdisp.c (Qline_height): New variable.
10206 (syms_of_xdisp): Intern and staticpro it.
10207 (append_space_for_newline): Partially undo 2004-04-25 change;
10208 add default_face_p arg, and restore callers.
10209 Clear it->use_default_face after use.
10210 (x_produce_glyphs): Set default font for ascii char if
10211 it->use_default_font is set. Change line-spacing property to set
10212 just extra line spacing. Handle new line-height property.
10213
10214 2004-04-26 Andreas Schwab <schwab@suse.de>
10215
10216 * print.c (print_object): Print non-ascii characters in bool
10217 vector representation as octal escapes.
10218
10219 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
10220 * print.c (print_object): Use it instead of BITS_PER_CHAR for
10221 bool vectors.
10222 * lread.c (read1): Likewise.
10223 * alloc.c (Fmake_bool_vector): Likewise.
10224 * data.c (Faref, Faset): Likewise.
10225 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
10226 (mapcar1): Likewise.
10227
10228 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
10229
10230 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
10231
10232 2004-04-26 Miles Bader <miles@gnu.org>
10233
10234 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
10235
10236 2004-04-26 Juanma Barranquero <lektu@terra.es>
10237
10238 * buffer.c (Fpop_to_buffer): Fix docstring.
10239
10240 2004-04-26 Steven Tamm <steventamm@mac.com>
10241
10242 * lread.c (init_lread): Don't display missing lisp directory
10243 warnings with Carbon Emacs because self-contained bundled Emacs
10244 may be built without correct installation path.
10245
10246 2004-04-25 Kim F. Storm <storm@cua.dk>
10247
10248 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
10249
10250 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
10251
10252 * xdisp.c (append_space_for_newline): Rename from append_space.
10253 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
10254 (x_produce_glyphs): Handle line-spacing property on newline char.
10255 If value is t, adjust ascent and descent to fit current row height.
10256 If value is an integer or float, set extra_line_spacing to integer
10257 value, or to float value x current line height.
10258
10259 2004-04-23 Kenichi Handa <handa@m17n.org>
10260
10261 * fontset.c (Finternal_char_font): If POSITION is nil, return
10262 font for displaying CH with the default face.
10263
10264 2004-04-23 Juanma Barranquero <lektu@terra.es>
10265
10266 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
10267
10268 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10269
10270 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
10271 Don't make assumptions about the relative place of i and val.
10272 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
10273
10274 2004-04-21 Kim F. Storm <storm@cua.dk>
10275
10276 * dispextern.h (struct glyph_slice): New struct.
10277 (struct glyph): New member slice.
10278 (GLYPH_SLICE_EQUAL_P): New macro.
10279 (GLYPH_EQUAL_P): Use it.
10280 (struct glyph_string): New member slice.
10281 (struct it_slice): New struct.
10282 (struct it): New member slice, add member to stack too.
10283 New member constrain_row_ascent_descent_p.
10284 (image_ascent): Add prototype.
10285
10286 * dispnew.c (buffer_posn_from_coords): Return full image width
10287 and height even for image slices (posn is relative to full image).
10288 (marginal_area_string): Adjust x0,y0 for image slice.
10289
10290 * image.c (image_ascent): Add slice arg; calculate ascent for
10291 image slice (or full image).
10292
10293 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
10294 (syms_of_keyboard): Defsubr them.
10295
10296 * lisp.h (pos_visible_p): Fix prototype.
10297
10298 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
10299 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10300 (x_draw_image_foreground, x_draw_image_relief)
10301 (x_draw_image_foreground_1, x_draw_image_glyph_string):
10302 Draw sliced images.
10303
10304 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
10305 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10306 (x_draw_image_foreground, x_draw_image_relief)
10307 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
10308 Draw sliced images.
10309
10310 * w32term.h (image_ascent): Remove prototype.
10311
10312 * window.c (Fpos_visible_in_window_p): Return pixel position if
10313 PARTIALLY arg is non-nil. Simplify. Doc fix.
10314 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
10315 to return/set vscroll in pixels.
10316
10317 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
10318
10319 * xdisp.c (Qslice): New variable.
10320 (syms_of_xdisp): Intern and staticpro it.
10321 (pos_visible_p): Return pixel position in new x and y args.
10322 (init_iterator): Reset it->slice info.
10323 (handle_display_prop): Parse (slice ...) property.
10324 (push_it, pop_it): Save/restore slice info.
10325 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
10326 force repositioning of tall row if window is vscrolled, as that
10327 would reset vscroll.
10328 (append_space): Set it->constrain_row_ascent_descent_p to avoid
10329 increasing row height if row is non-empty.
10330 (fill_image_glyph_string): Copy slice info.
10331 (take_vertical_position_into_account): Simplify.
10332 (produce_image_glyph): Handle iterator slice info, setup glyph
10333 slice info. Do not force minimum line height.
10334 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
10335 do not increase height (ascent/descent) of non-empty row when
10336 adding normal character glyph; instead reduce glyph ascent/descent
10337 appropriately; if row is higher than current glyph, adjust glyph
10338 descent/ascent to reposition glyph within the existing row.
10339 Likewise, when char is newline, only set ascent/descent if row is
10340 currently empty.
10341 (note_mouse_highlight): Handle hotspots with sliced image.
10342
10343 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
10344 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10345 (x_draw_image_foreground, x_draw_image_relief)
10346 (x_draw_image_foreground_1, x_draw_image_glyph_string):
10347 Draw sliced images.
10348
10349 * xterm.h (image_ascent): Remove prototype.
10350
10351 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10352
10353 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
10354
10355 2004-04-20 John Paul Wallington <jpw@gnu.org>
10356
10357 * fns.c (Fassoc, Feql): Fix indentation.
10358
10359 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
10360
10361 2004-04-19 John Paul Wallington <jpw@gnu.org>
10362
10363 * fns.c (Feql): New function.
10364 (syms_of_fns): Defsubr it.
10365
10366 2004-04-18 Jason Rumney <jasonr@gnu.org>
10367
10368 * w32select.c (Fw32_set_clipboard_data): Get sequence number
10369 after closing the clipboard.
10370
10371 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
10372
10373 * buffer.c (Fbuffer_base_buffer): Doc fix.
10374
10375 2004-04-17 Kim F. Storm <storm@cua.dk>
10376
10377 * keymap.c (Fkey_description): Add optional PREFIX arg.
10378 Combine prefix with KEYS to make up the full key sequence to describe.
10379 Correlate meta_prefix_char and following (simple) key to describe
10380 as meta modifier. All callers changed.
10381 (describe_map): Rename arg `keys' to `prefix'. Remove local
10382 `elt_prefix' var. Use Fkey_description with prefix instead of
10383 elt_prefix combined with Fsingle_key_description.
10384 (describe_vector): Declare static. Replace arg `elt_prefix' with
10385 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
10386 if !KEYMAP_P. Use Fkey_description with prefix instead of
10387 Fsingle_key_description.
10388
10389 * keymap.h (Fkey_description): Fix prototype.
10390 (describe_vector): Remove prototype.
10391
10392 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
10393
10394 * image.c (PNG_BG_COLOR_SHIFT): Remove.
10395 (png_load): Fix calculation of transparent background color on X
10396 and W32 platforms.
10397
10398 2004-04-16 Juanma Barranquero <lektu@terra.es>
10399
10400 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
10401 not too large before computing how much to scroll.
10402
10403 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
10404
10405 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
10406
10407 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
10408
10409 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
10410 Add hyperlink to Elisp manual to the docstring.
10411
10412 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
10413
10414 * callint.c (fix_command): Use XDCR.
10415
10416 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
10417
10418 * window.c (Fget_lru_window): Doc fix.
10419
10420 2004-04-14 Kim F. Storm <storm@cua.dk>
10421
10422 * editfns.c (Fformat): Fix allocation size of precision array.
10423
10424 * dispnew.c (update_window): Only set changed_p if
10425 scrolling_window actually did scroll.
10426 (scrolling_window): Only return 1 if we actually did scroll.
10427
10428 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
10429 height to glyph height when cursor row is not fully visible.
10430 (make_cursor_line_fully_visible): Add FORCE_P arg to return
10431 failure in case row is higher than window. Callers changed.
10432 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
10433 Try to scroll partially visible, higher-than-window cursor row.
10434 (redisplay_window): Always try to scroll partially visible,
10435 higher-than-window cursor row - both initially and again with
10436 centering_position = 0.
10437 Clear desired matrix before retrying with centering_position = 0.
10438
10439 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10440
10441 * syntax.c (scan_lists): Simplify backward string scan.
10442 Fix off-by-one boundary check for string and comment fences.
10443
10444 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
10445
10446 * sheap.c, unexcw.c: New files.
10447
10448 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
10449
10450 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
10451 base buffer has been killed. Correct the error message if the
10452 base buffer does not exist.
10453
10454 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
10455
10456 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
10457 Cygwin itself. Add support for Xaw3d scrollbars.
10458
10459 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
10460
10461 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
10462
10463 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
10464 before Cygwin unexec.
10465
10466 * Makefile.in: Link changes for Cygwin unexec() support.
10467
10468 2004-04-12 Andreas Schwab <schwab@suse.de>
10469
10470 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
10471
10472 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
10473
10474 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
10475 IGNORE argument equals NAME. Doc fix.
10476
10477 2004-04-11 Masatake YAMATO <jet@gyve.org>
10478
10479 * buffer.c (fix_start_end_in_overlays): Make overlays
10480 empty if they are backwards.
10481
10482 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10483
10484 * xfaces.c (face_color_supported_p): Fix compilation without X11.
10485
10486 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
10487
10488 * doc.c (Fsnarf_documentation): Ignore new file name entries.
10489
10490 2004-04-06 Kim F. Storm <storm@cua.dk>
10491
10492 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
10493 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
10494
10495 * w32term.c (w32_read_socket): Set mouse_face_hidden after
10496 clearing highlight.
10497
10498 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
10499
10500 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
10501 clearing highlight.
10502
10503 * indent.c (vmotion): Do not reserve one column for continuation
10504 marks on window frames.
10505
10506 2004-04-04 Eli Zaretskii <eliz@gnu.org>
10507
10508 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
10509 from GCC.
10510
10511 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10512
10513 * .gdbinit-union: Remove.
10514
10515 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
10516 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
10517 ($nonvalbits): Remove.
10518 ($valmask): Set it by calling xreload to avoid redundancy.
10519
10520 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
10521 (gdb_emacs_intbits): Remove.
10522
10523 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10524
10525 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
10526
10527 2004-03-30 Kenichi Handa <handa@m17n.org>
10528
10529 * editfns.c (Fformat): Fix initialization of the array info.
10530
10531 2004-03-30 Kim F. Storm <storm@cua.dk>
10532
10533 * xterm.c (x_mouse_click_focus_ignore_position): New var.
10534 (syms_of_xterm): DEFVAR_BOOL it.
10535 (ignore_next_mouse_click_timeout): New var.
10536 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
10537 Use it to filter mouse clicks following focus event.
10538
10539 2004-03-29 David Ponce <david@dponce.com>
10540
10541 * callint.c (Fcall_interactively): Fix last change.
10542
10543 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10544
10545 * eval.c (Fcommandp): Simplify.
10546
10547 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
10548 Extend to handle all kinds of functions.
10549
10550 * lisp.h (Finteractive_form): Declare.
10551
10552 * callint.c (Fcall_interactively): Use it.
10553
10554 2004-03-26 Kim F. Storm <storm@cua.dk>
10555
10556 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
10557 to catch errors in calc_pixel_width_or_height during redisplay.
10558
10559 2004-03-26 Masatake YAMATO <jet@gyve.org>
10560
10561 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
10562
10563 * lisp.h (fix_start_end_in_overlays): Likewise.
10564
10565 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
10566
10567 * editfns.c (Ftranspose_regions): Likewise.
10568
10569 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10570
10571 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
10572
10573 2004-03-19 Richard M. Stallman <rms@gnu.org>
10574
10575 * s/sol2-6.h: Delete previous change.
10576
10577 2004-03-19 Kim F. Storm <storm@cua.dk>
10578
10579 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
10580 to_charpos corresponds to newline in right fringe. Use local
10581 BUFFER_POS_REACHED_P macro.
10582
10583 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10584
10585 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
10586 to compile on non-window system.
10587
10588 2004-03-19 Kim F. Storm <storm@cua.dk>
10589
10590 * dispextern.h (calc_pixel_width_or_height): Add prototype.
10591
10592 * image.c (Qcenter): Move to xdisp.c.
10593
10594 * xdisp.c (Qcenter): Declare here.
10595 (syms_of_xdisp): Intern and staticpro it.
10596 (handle_single_display_prop): Allow space display property on all
10597 platforms.
10598 (display_mode_line): Set mode_line_p before displaying line.
10599 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
10600 handling. Remove complex cases for fringes and scroll-bars.
10601 Add left, right, and center alignment positions. Add text (area)
10602 width/height. Return width or height for image specs.
10603 (produce_stretch_glyph): Improve handling of :align-to. Is now
10604 relative to left of text area by default, but other base offsets
10605 can be specified -- also for text lines.
10606
10607 * term.c (produce_glyphs): Handle IT_STRETCH.
10608 (produce_stretch_glyph): New function to handle space width and
10609 align-to display properties on non-window systems.
10610
10611 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10612
10613 * fileio.c (Fread_file_name): Set completion-ignore-case for
10614 case-insensitive systems.
10615
10616 2004-03-14 Masatake YAMATO <jet@gyve.org>
10617
10618 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
10619 when keymap and cursor are setup.
10620
10621 2004-03-14 Steven Tamm <steventamm@mac.com>
10622
10623 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
10624
10625 2004-03-14 Kim F. Storm <storm@cua.dk>
10626
10627 * dispextern.h (x_find_image_file): Add prototype.
10628
10629 * image.c (x_find_image_file): Make extern.
10630
10631 * xfns.c (x_find_image_file): Remove prototype.
10632
10633 2004-03-13 Eli Zaretskii <eliz@gnu.org>
10634
10635 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
10636
10637 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
10638
10639 2004-03-12 Richard M. Stallman <rms@gnu.org>
10640
10641 * fns.c (internal_equal): New arg PROPS controls comparing
10642 text properties. All callers changed.
10643 (Fequal_including_properties): New function.
10644 (syms_of_fns): defsubr it.
10645
10646 2004-03-12 Kim F. Storm <storm@cua.dk>
10647
10648 Fix image support on MAC. From YAMAMOTO Mitsuharu.
10649
10650 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
10651 (image_background, image_background_transparent): Fix prototypes.
10652
10653 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
10654
10655 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
10656 (x_query_font, x_find_ccl_program, x_set_window_size)
10657 (x_make_frame_visible, mac_initialize, XCreatePixmap)
10658 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
10659 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
10660
10661 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
10662 (x_query_font, x_find_ccl_program, x_set_window_size)
10663 (x_make_frame_visible, mac_initialize, XCreatePixmap)
10664 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
10665 (mac_draw_line_to_pixmap): Add prototypes.
10666
10667 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10668
10669 * macterm.c (XTread_socket): Fix mouse click on tool bar.
10670
10671 2004-03-11 Kim F. Storm <storm@cua.dk>
10672
10673 * dispextern.h: Move image related prototypes from xfns.c section
10674 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
10675 HAVE_X_WINDOWS.
10676
10677 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
10678 Move gtkutil.o to new GTK_OBJ list.
10679 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
10680 (GTK_OBJ) [USE_GTK]: New declaration.
10681 (obj): Add $(GTK_OBJ) to list.
10682
10683 2004-03-11 Steven Tamm <steventamm@mac.com>
10684
10685 * image.c [MAC_OSX]: Include sys/stat.h.
10686
10687 * macfns.c (syms_of_macfns): Remove definitions of things now
10688 defined in image.c.
10689
10690 2004-03-11 Kim F. Storm <storm@cua.dk>
10691
10692 The following changes consolidates the identical/similar image
10693 support code previously found in xfns.c, w32fns.c, and macfns.c
10694 into a new file image.c.
10695
10696 * makefile.w32-in (OBJ1): Add image.o.
10697 ($(BLD)/image.$(O)): Add dependencies.
10698
10699 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
10700 (image.o): Add dependencies.
10701
10702 * image.c: New file with consolidated image support code.
10703 (COLOR_TABLE_SUPPORT): New define to control whether
10704 color table support is available (X only).
10705 (Bitmap_Record): Common name for x_bitmap_record,
10706 w32_bitmap_record, and mac_bitmap_record.
10707 (XImagePtr): Common name for pointer to XImage or equivalent.
10708 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
10709 to XImagePtr on X+MAC, and to HDC on W32.
10710 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
10711 (NO_PIXMAP): Common name for "None" or equivalent.
10712 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
10713 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
10714 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
10715 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
10716 Define with suitable equivalents on W32 and MAC for code sharing.
10717 (XDrawLine): Define on MAC for code sharing.
10718 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
10719 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
10720 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10721 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10722 (x_reference_bitmap, x_create_bitmap_from_data)
10723 (x_create_bitmap_from_file, x_destroy_bitmap)
10724 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10725 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10726 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10727 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10728 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10729 (define_image_type, lookup_image_type, valid_image_p)
10730 (image_error, enum image_value_type, struct image_keyword)
10731 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10732 (make_image, free_image, prepare_image_for_display, image_ascent)
10733 (four_corners_best, image_background, image_background_transparent)
10734 (x_clear_image_1, x_clear_image, x_alloc_image_color)
10735 (make_image_cache, free_image_cache, clear_image_cache)
10736 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10737 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10738 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10739 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
10740 (init_image_func_pointer, image_load_quartz2d)
10741 (struct ct_color, init_color_table, free_color_table)
10742 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10743 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10744 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10745 (x_disable_image, x_build_heuristic_mask)
10746 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10747 (TIFF support, GIF support, Ghostscript support): Consolidate image
10748 code from xfns.c, w32fns.c, and macfns.c.
10749 (syms_of_image): Consolidate image related symbol setup here.
10750 (init_image): Consolidate image related initializations here.
10751
10752 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
10753 and init_image. Remove call to init_xfns.
10754
10755 * macterm.h (struct mac_bitmap_record): Add file member.
10756 Not currently used, but simplifies code sharing.
10757
10758 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10759 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10760 (x_reference_bitmap, x_create_bitmap_from_data)
10761 (x_create_bitmap_from_file, x_destroy_bitmap)
10762 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10763 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10764 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10765 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10766 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10767 (define_image_type, lookup_image_type, valid_image_p)
10768 (image_error, enum image_value_type, struct image_keyword)
10769 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10770 (make_image, free_image, prepare_image_for_display, image_ascent)
10771 (four_corners_best, image_background, image_background_transparent)
10772 (x_clear_image_1, x_clear_image, x_alloc_image_color)
10773 (make_image_cache, free_image_cache, clear_image_cache)
10774 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10775 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10776 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10777 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
10778 (init_image_func_pointer, image_load_quartz2d)
10779 (struct ct_color, init_color_table, free_color_table)
10780 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10781 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10782 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10783 (x_disable_image, x_build_heuristic_mask)
10784 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10785 (TIFF support, GIF support, Ghostscript support): Merge with image
10786 code from xfns.c and macfns.c into image.c.
10787 (syms_of_xfns): Move image related symbols to image.c.
10788 (init_external_image_libraries, init_xfns): Remove; initialization
10789 moved to init_image in image.c.
10790
10791 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10792 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10793 (x_reference_bitmap, x_create_bitmap_from_data)
10794 (x_create_bitmap_from_file, x_destroy_bitmap)
10795 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10796 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10797 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10798 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10799 (define_image_type, lookup_image_type, valid_image_p)
10800 (image_error, enum image_value_type, struct image_keyword)
10801 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10802 (make_image, free_image, prepare_image_for_display, image_ascent)
10803 (four_corners_best, image_background, image_background_transparent)
10804 (x_clear_image_1, x_clear_image, x_alloc_image_color)
10805 (make_image_cache, free_image_cache, clear_image_cache)
10806 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10807 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10808 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10809 (struct ct_color, init_color_table, free_color_table)
10810 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10811 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10812 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10813 (x_disable_image, x_build_heuristic_mask)
10814 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10815 (TIFF support, GIF support, Ghostscript support): Merge with image
10816 code from xfns.c and macfns.c into image.c.
10817 (syms_of_xfns): Move image related symbols to image.c.
10818 (init_external_image_libraries, init_xfns): Remove; initialization
10819 moved to init_image in image.c.
10820
10821 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10822 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10823 (x_reference_bitmap, x_create_bitmap_from_data)
10824 (x_create_bitmap_from_file, x_destroy_bitmap)
10825 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10826 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10827 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10828 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10829 (define_image_type, lookup_image_type, valid_image_p)
10830 (image_error, enum image_value_type, struct image_keyword)
10831 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10832 (make_image, free_image, prepare_image_for_display, image_ascent)
10833 (four_corners_best, image_background, image_background_transparent)
10834 (x_clear_image_1, x_clear_image, x_alloc_image_color)
10835 (make_image_cache, free_image_cache, clear_image_cache)
10836 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10837 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10838 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10839 (struct ct_color, init_color_table, free_color_table)
10840 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10841 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10842 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10843 (x_disable_image, x_build_heuristic_mask)
10844 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10845 (TIFF support, GIF support, Ghostscript support): Merge with
10846 w32fns.c and macfns.c image code into image.c.
10847 (syms_of_xfns): Move image related symbols to image.c.
10848 (init_xfns): Remove; initialization moved to init_image in image.c.
10849
10850 * lisp.h (syms_of_image, init_image): Add protoypes.
10851 (init_xfns): Remove prototype.
10852
10853 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10854 (x_reference_bitmap, x_create_bitmap_from_data)
10855 (x_create_bitmap_from_file, x_destroy_bitmap)
10856 (x_create_bitmap_mask): Move prototypes from dispextern.h.
10857 (gamma_correct) [MAC_OS]: Add prototype.
10858
10859 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10860 (x_reference_bitmap, x_create_bitmap_from_data)
10861 (x_create_bitmap_from_file, x_destroy_bitmap)
10862 (x_create_bitmap_mask): Move prototypes to dispextern.h.
10863
10864 2004-03-09 Kenichi Handa <handa@etlken2>
10865
10866 * coding.c (decode_coding_emacs_mule): Handle insufficent source
10867 correctly.
10868
10869 2004-03-04 Richard M. Stallman <rms@gnu.org>
10870
10871 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
10872
10873 * window.c (Fdisplay_buffer): Doc fix.
10874
10875 * buffer.c (Fpop_to_buffer): Doc fix.
10876
10877 2004-03-03 Kim F. Storm <storm@cua.dk>
10878
10879 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
10880
10881 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
10882
10883 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
10884
10885 2004-03-02 Richard M. Stallman <rms@gnu.org>
10886
10887 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
10888
10889 2004-03-02 Kenichi Handa <handa@m17n.org>
10890
10891 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
10892
10893 2004-03-02 Kim F. Storm <storm@cua.dk>
10894
10895 * window.h (struct window): New member overlay_arrow_bitmap.
10896
10897 * window.c (make_window): Initialize overlay_arrow_bitmap.
10898
10899 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
10900 implement and integrate multiple overlay arrows with redisplay.
10901 (syms_of_xdisp): DEFVAR_LISP and initialize it.
10902 (last_arrow_position, last_arrow_string): Replace by properties.
10903 (Qlast_arrow_position, Qlast_arrow_string)
10904 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
10905 (syms_of_xdisp): Intern and staticpro them.
10906 (overlay_arrow_string_or_property, update_overlay_arrows)
10907 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
10908 (overlay_arrow_at_row): New functions for multiple overlay arrows.
10909 (redisplay_internal): Use them instead of directly accessing
10910 Voverlay_arrow_position etc. for multiple overlay arrows.
10911 (mark_window_display_accurate): Use update_overlay_arrows.
10912 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
10913 (try_window_id): Use overlay_arrows_changed_p.
10914 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
10915 (display_line): Use overlay_arrow_at_row to check multiple
10916 overlay arrows, and get relevant overlay-arrow-string and
10917 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
10918 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
10919 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
10920
10921 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
10922 (update_window_fringes): Remove unused code.
10923
10924 2004-03-01 Jason Rumney <jasonr@gnu.org>
10925
10926 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
10927
10928 2004-03-01 Juanma Barranquero <lektu@terra.es>
10929
10930 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
10931
10932 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
10933
10934 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10935
10936 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
10937 how many colors can be displayed.
10938
10939 2004-03-01 Kenichi Handa <handa@m17n.org>
10940
10941 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
10942 correctly.
10943
10944 2004-02-28 Kim F. Storm <storm@cua.dk>
10945
10946 * dispnew.c (update_window): Update header line also if there are
10947 no other changes in window (move code after set_cursor label).
10948
10949 * lisp.h (mark_window_display_accurate): Remove prototype.
10950
10951 * window.c (window_loop, Fforce_window_update): Force mode line
10952 updates by setting prevent_redisplay_optimizations_p and
10953 update_mode_lines.
10954
10955 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10956
10957 * xfns.c (x_window): Fix indentation.
10958
10959 * xterm.c (x_calc_absolute_position): Call x_real_positions
10960 to get WM window sizes and use those to calculate position.
10961 (x_set_offset): Remove code commented out.
10962
10963 2004-02-28 Miles Bader <miles@gnu.org>
10964
10965 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
10966
10967 2004-02-28 Kim F. Storm <storm@cua.dk>
10968
10969 * keyboard.c (kbd_buffer_store_event_hold): New function to store
10970 an event into kbd fifo, but with special handling of quit event;
10971 a quit event is saved for later, and further events are discarded
10972 until the saved quit event has been processed.
10973 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
10974 (gen_help_event): Store help event in kbd fifo.
10975 (NREAD_INPUT_EVENTS): Remove.
10976 (read_avail_input): Adapt to new read_socket_hook interface.
10977 Remove allocation and initialization of local input_event buffer,
10978 as read_socket_hook stores events directly in fifo. Allocate and
10979 initialize local hold_quit event to handle postponed quit event
10980 (and store it if set by kbd_buffer_store_event_hold).
10981
10982 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
10983 (gen_help_event): Fix prototype.
10984
10985 * macterm.c (XTread_socket): Remove bufp_r and
10986 numcharsp args. Add hold_quit arg.
10987 Rework to use just one, local, inev input_event. Store inev
10988 directly in fifo using kbd_buffer_store_event_hold.
10989
10990 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
10991 (read_input_waiting): Adapt to new read_socket_hook interface.
10992 Remove allocation and initialization of local input_event buffer,
10993 as read_socket_hook stores events directly in fifo. Allocate and
10994 initialize local hold_quit event to handle postponed quit event
10995 (and store it if set by kbd_buffer_store_event_hold).
10996
10997 * term.c (read_socket_hook): Fix arg list.
10998
10999 * termhooks.h (read_socket_hook): Fix prototype.
11000
11001 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
11002 numcharsp args. Add hold_quit arg.
11003 Rework to use just one, local, inev input_event. Store inev
11004 directly in fifo using kbd_buffer_store_event_hold.
11005
11006 * w32inevt.h (w32_console_mouse_position): Fix prototype.
11007
11008 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
11009 Add hold_quit arg. Rework to use just one, local, inev
11010 input_event. Store inev directly in fifo using
11011 kbd_buffer_store_event_hold. Update count in one place.
11012 Postpone call to gen_help_event until inev is stored; use new
11013 local do_help for this.
11014 Remove local emacs_event in handing of ButtonPress event; just use
11015 inev instead (so no reason to copy it later).
11016
11017 * xsmfns.c (x_session_check_input): Remove numchars arg.
11018
11019 * xterm.c (x_focus_changed, x_detect_focus_change):
11020 Remove numchars arg. Always store event into bufp arg.
11021 Return nothing. Callers changed accordingly.
11022 (glyph_rect): Simplify.
11023 (STORE_KEYSYM_FOR_DEBUG): New macro.
11024 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
11025 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
11026 (current_hold_quit) [USE_GTK]: Add.
11027 (event_handler_gdk): Adapt to new handle_one_xevent.
11028 (handle_one_xevent): Remove bufp_r and numcharsp args.
11029 Add hold_quit arg. Rework to use just one, local, inev
11030 input_event. Store inev directly in fifo using
11031 kbd_buffer_store_event_hold. Update count in one place.
11032 Postpone call to gen_help_event until inev is stored; use new
11033 local do_help for this.
11034 Simplify handling of keysyms (consolidate common code). Fix bug
11035 where count was updated with nchars instead of nbytes.
11036 Remove local emacs_event in handing of ButtonPress event; just use
11037 inev instead (so no reason to copy it later).
11038 Remove `out' label. Rename label `ret' to `done'; add various
11039 `goto done' to clarify code flow in deeply nested blocks.
11040 (x_dispatch_event): Simplify as handle_one_xevent now calls
11041 kbd_buffer_store_event itself.
11042 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
11043 arg. Call handle_one_xevent with new arglist. Store event from
11044 x_session_check_input in fifo.
11045 [USE_GTK]: Setup current_hold_quit.
11046 Decrement handling_signal before unblocking input.
11047 (x_initialize) [USE_GTK]: Initialize current_count.
11048
11049 * xterm.h (x_session_check_input): Fix prototype.
11050
11051 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11052
11053 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
11054
11055 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
11056 macgui.h).
11057
11058 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
11059
11060 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
11061 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
11062 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
11063 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
11064 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
11065 (Bitmap): Remove typedef.
11066 (Pixmap): Change int to GWorldPtr.
11067
11068 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11069
11070 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11071 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
11072 New #define to extract 16-bit depth color components from unsigned
11073 long representation.
11074 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
11075 colors used for masks.
11076 (struct mac_display_info): Add color_p. Remove n_cbits.
11077
11078 * macfns.c: Include sys/types.h and sys/stat.h.
11079 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
11080 Include QuickTime/QuickTime.h.
11081 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11082 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
11083 functions defined in macterm.c.
11084 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
11085 (ZPixmap): New #define for compatibility with xfns.c.
11086 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11087 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
11088 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
11089 New functions.
11090 (four_corners_best, x_create_x_image_and_pixmap)
11091 (x_destroy_x_image, unwind_create_frame, x_disable_image)
11092 (x_edge_detection, init_color_table, colors_in_color_table)
11093 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
11094 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
11095 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
11096 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
11097 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
11098 long mixup.
11099 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
11100 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
11101 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
11102 (x_set_cursor_type, Fxw_color_values, valid_image_p)
11103 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
11104 (x_alloc_image_color, clear_image_cache, lookup_image)
11105 (x_find_image_file, xbm_read_bitmap_file_data)
11106 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
11107 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
11108 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
11109 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
11110 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
11111 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
11112 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
11113 #if 0.
11114 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
11115 #if 0. Free white_relief.gc and black_relief.gc.
11116 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
11117 New functions (from xfns.c).
11118 (Fx_create_frame): Record unwind_create_frame.
11119 (Fxw_display_color_p): Use dpyinfo->color_p.
11120 (Fx_display_grayscale_p, Fx_display_planes): Don't use
11121 dpyinfo->n_cbits.
11122 (Fx_display_color_cells): Use dpyinfo->n_planes;
11123 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
11124 (Qheuristic, cross_disabled_images, emboss_matrix)
11125 (laplace_matrix): New variables (from xfns.c).
11126 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
11127 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
11128 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
11129 (image_background_transparent): New function (from xfns.c).
11130 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11131 (image_load_quicktime): Add declaration.
11132 [MAC_OSX] (image_load_quartz2d): Likewise.
11133 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
11134 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
11135 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
11136 (xbm_load_image_from_file, x_laplace_read_row)
11137 (x_laplace_write_row, pbm_read_file): Remove functions.
11138 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
11139 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
11140 (colors_in_color_table): Sync with xfns.c (although not used).
11141 (lookup_rgb_color): Don't lookup color table. Just do gamma
11142 correction.
11143 (COLOR_INTENSITY): New #define (from xfns.c).
11144 (x_disable_image): New function (from xfns.c).
11145 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11146 (x_build_heuristic_mask): Sync with xfns.c.
11147 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11148 (HAVE_PBM): Remove #ifdef.
11149 (pbm_load): Sync with xfns.c. Set img->width and img->height
11150 before IMAGE_BACKGROUND.
11151 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
11152 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
11153 Don't enclose with #if HAVE_PNG.
11154 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
11155 symbol _CGImageCreateWithPNGDataProvider is defined.
11156 Otherwise use image_load_quicktime.
11157 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
11158 [HAVE_PNG] (png_load): Sync with xfns.c.
11159 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11160 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
11161 HAVE_JPEG.
11162 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
11163 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
11164 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
11165 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
11166 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
11167 (tiff_image_p, tiff_load): Don't enclose declarations with #if
11168 HAVE_TIFF.
11169 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
11170 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
11171 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
11172 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
11173 New functions (from xfns.c).
11174 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
11175 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
11176 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
11177 Don't enclose with #if HAVE_GIF.
11178 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
11179 animated gif. Otherwise use image_load_quicktime.
11180 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
11181 gif_DrawText to avoid conflict with QuickdrawText.h.
11182 [HAVE_GIF] (gif_load): Sync with xfns.c.
11183 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
11184 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
11185 Ghostscript is not supported yet).
11186 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
11187 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
11188 cross_disabled_images (from xfns.c). Remove #if 0 for supported
11189 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
11190 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
11191 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
11192 HAVE_PNG. Call EnterMovies to support animated gifs.
11193 Call init_image_func_pointer to bind a symbol
11194 _CGImageCreateWithPNGDataProvider if it is defined.
11195
11196 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11197 (x_draw_bar_cursor): Sync declaration with xterm.c.
11198 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
11199 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
11200 graphics).
11201 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
11202 (mac_draw_line_to_pixmap, XCreatePixmap)
11203 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
11204 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
11205 New functions.
11206 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
11207 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
11208 Cast bits to char *.
11209 (reflect_byte): New function (from w32fns.c).
11210 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
11211 due to byte alignment.
11212 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
11213 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
11214 (XSetForeground): Remove static (now used in macfns.c).
11215 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
11216 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
11217 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
11218 (x_draw_glyph_string_box, x_draw_image_foreground)
11219 (x_draw_image_foreground_1, x_draw_image_glyph_string)
11220 (x_draw_stretch_glyph_string, x_draw_glyph_string)
11221 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
11222 Sync with xterm.c.
11223 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
11224 than the xterm.c version when a strictly horizontal or vertical
11225 line is drawn.
11226 (XTset_terminal_window): Add static.
11227 (x_make_frame_visible): Add UNBLOCK_INPUT.
11228 (x_free_frame_resources): New funcion (from xterm.c).
11229 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
11230 occurs in tool bar area.
11231 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
11232 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
11233 Initialize image cache.
11234 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
11235 Enclose unused functions with #if 0.
11236 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
11237 (decode_mac_font_name): New function to apply code conversions
11238 from a mac font name to an XLFD font name according to its script code.
11239 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
11240 font name to a mac font name according to REGISTRY and ENCODING fields.
11241 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
11242 whose name starts with `.'.
11243 (init_font_name_table): Use decode_mac_font_name. Add both
11244 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
11245 of a font is smJapanese.
11246 (mac_do_list_fonts): New function to list fonts that match a given
11247 pattern.
11248 (x_list_fonts, XLoadQueryFont): Use it.
11249 (XLoadQueryFont): Set rbearing field for each variable width
11250 character to avoid needless redraw.
11251 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
11252
11253 2004-02-26 Kim F. Storm <storm@cua.dk>
11254
11255 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
11256 as read_socket_hook handler on X aborts if buffer is too small
11257 and W32 handler doesn't always check buffer limit.
11258
11259 * xdisp.c (handle_single_display_prop): Handle left-fringe and
11260 right-fringe similar to a display margin image. Specifically,
11261 the characters having the fringe prop are no longer shown, and
11262 we use IT_IMAGE/next_element_from_image with image_id = -1 to
11263 do this. Set fringe bitmap face_id in it->face_id.
11264 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
11265 still realize it->face (i.e. the fringe bitmap face).
11266
11267 2004-02-25 Miles Bader <miles@gnu.org>
11268
11269 * xdisp.c (check_it): Check string/string_pos consistency.
11270 (init_iterator): Initialize string-related fields properly.
11271
11272 2004-02-11 Miles Bader <miles@gnu.org>
11273
11274 * xdisp.c (produce_image_glyph): Force negative descents to zero.
11275
11276 2004-02-10 Miles Bader <miles@gnu.org>
11277
11278 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
11279 BLOCK_INPUT can be nested, so it doesn't make much sense.
11280
11281 2004-02-24 Michael Mauger <mmaug@yahoo.com>
11282
11283 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
11284 (xbm_read_bitmap_data): Use unsigned char for image data.
11285
11286 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
11287
11288 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
11289
11290 2004-02-22 Jason Rumney <jasonr@gnu.org>
11291
11292 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
11293 correctly over other bitmaps.
11294
11295 2004-02-21 Eli Zaretskii <eliz@gnu.org>
11296
11297 * emacs.c (USAGE1): Split into two halves.
11298 (USAGE2): Second half of the old USAGE1.
11299 (USAGE3): Rename from USAGE2.
11300 (USAGE4): Rename from USAGE3.
11301
11302 2004-02-21 Juri Linkov <juri@jurta.org>
11303
11304 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
11305 Fix --multibyte. Move --help, --version to USAGE2. Add alias
11306 --file. Fix -f, -l. Sort options. Untabify.
11307 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
11308
11309 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
11310
11311 * category.c (Fdefine_category, Fcategory_docstring)
11312 (Fget_unused_category, Fset_category_table)
11313 (Fcategory_set_mnemonics): Doc fixes.
11314
11315 2004-02-20 Kim F. Storm <storm@cua.dk>
11316
11317 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
11318 The following changes are relative to the 2004-01-21 revision.
11319 (NREAD_INPUT_EVENTS): Define as max number of input events to read
11320 in one call to read_socket_hook. Value is 8.
11321 (read_avail_input): Separate and rework handling of read_socket_hook
11322 and non-read_socket_hook cases. Use smaller input_event buffer
11323 in read_socket_hook case, and repeat if full buffer is read.
11324 Use new local variable 'discard' to skip input after C-g.
11325 In non-read_socket_hook case, just use a single input_event, and
11326 call kbd_buffer_store_event on the fly for each character.
11327
11328 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11329
11330 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
11331 Remove unused `gu' alternative.
11332
11333 2004-02-19 Andreas Schwab <schwab@suse.de>
11334
11335 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
11336 warning.
11337
11338 2004-02-18 Kim F. Storm <storm@cua.dk>
11339
11340 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
11341 Fix last change.
11342
11343 2004-02-17 Kim F. Storm <storm@cua.dk>
11344
11345 * xdisp.c (fast_find_position): Fix return value of new version;
11346 it was inverted compared to the 21.1 version.
11347 (get_window_cursor_type): Don't look at glyph if NULL.
11348 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
11349
11350 * keyboard.c: Rework previous change; it didn't consider that the
11351 buf array was allocated on the stack.
11352 (prev_read): Remove variable.
11353 (read_avail_input_buf): New static event buffer array.
11354 (in_read_avail_input): New static variable to handle re-entrancy.
11355 (read_avail_input): Change buf to pinter to read_avail_input_buf.
11356 Use in_read_avail_input to handle re-entrance; when re-entered,
11357 fully initialize and use tmp_buf array instead of read_avail_input_buf.
11358 Do not initialize read_avail_input_buf in full here; instead assume it
11359 is always cleared on entry. To ensure that, we clear (just) the
11360 entries that were used before we return.
11361 (init_keyboard): Initialize read_avail_input_buf here.
11362
11363 2004-02-16 Jesper Harder <harder@ifa.au.dk>
11364
11365 * cmds.c (Fend_of_line): Doc fix.
11366
11367 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
11368
11369 * keyboard.c (prev_read): New static variable.
11370 (read_avail_input): Use it to zero out only those slots in buf[]
11371 that were used last time we were called.
11372
11373 2004-02-16 Eli Zaretskii <eliz@gnu.org>
11374
11375 * Makefile.in (obj): Move fringe.o from here...
11376 (XOBJ, MAC_OBJ): ...to here.
11377
11378 2004-02-16 Stephen Eglen <stephen@gnu.org>
11379
11380 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
11381
11382 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
11383
11384 * data.c (Fbyteorder):
11385 * fringe.c (Fdefine_fringe_bitmap):
11386 * xdisp.c (handle_single_display_prop):
11387 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
11388
11389 2004-02-16 Jason Rumney <jasonr@gnu.org>
11390
11391 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
11392
11393 2004-02-15 Steven Tamm <steventamm@mac.com>
11394
11395 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
11396 controlling emulation of a three button mouse with option and
11397 command keys.
11398 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
11399 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
11400
11401 2004-02-15 Kim F. Storm <storm@cua.dk>
11402
11403 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
11404
11405 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
11406 Perform byte-swapping.
11407
11408 2004-02-14 Kim F. Storm <storm@cua.dk>
11409
11410 * dispextern.h (struct draw_fringe_bitmap_params): Change member
11411 bits from char to short to facilitate wider bitmaps.
11412 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
11413 member.
11414
11415 * fringe.c (struct fringe_bitmap): Change member bits from char to
11416 short to facilitate 16 bits wide bitmaps. Modify all standard
11417 bitmaps accordingly.
11418 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
11419 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
11420 (draw_fringe_bitmap): Ditto.
11421 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
11422 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
11423 handle up to 16 bits wide bitmaps.
11424 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
11425 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
11426
11427 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
11428 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
11429 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
11430
11431 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
11432 so it is no longer necessary to expand them here.
11433
11434 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
11435
11436 2004-02-12 Kim F. Storm <storm@cua.dk>
11437
11438 * window.c (Fwindow_fringes): Doc fix.
11439
11440 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11441
11442 * xselect.c (x_get_foreign_selection): Add new optional parameter
11443 time_stamp.
11444 (Fx_get_selection_internal): Ditto, pass time_stamp to
11445 x_get_foreign_selection.
11446
11447 * data.c (Fbyteorder): New function.
11448
11449 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11450
11451 * atimer.c: Move include stdio.h to same place as in other files.
11452
11453 * region-cache.c: Ditto.
11454
11455 * sysdep.c: Ditto.
11456
11457 * xfaces.c: Ditto.
11458
11459 2004-02-09 Sam Steingold <sds@gnu.org>
11460
11461 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
11462
11463 2004-02-09 Kim F. Storm <storm@cua.dk>
11464
11465 * fringe.c: New file. Move original fringe related declarations
11466 and code from dispextern.h and xdisp.c here.
11467 Rework code to support user defined fringe bitmaps, redefining
11468 standard bitmaps, ability to overlay user defined bitmap with
11469 overlay arrow bitmap, and add faces to bitmaps.
11470 (Voverflow_newline_into_fringe): Declare here.
11471 (enum fringe_bitmap_align): New enum.
11472 (..._bits): All bitmaps are now defined without bitswapping; that
11473 is now done in init_fringe_once (if necessary).
11474 (standard_bitmaps): New array with specifications for the
11475 standard fringe bitmaps.
11476 (fringe_faces): New array.
11477 (valid_fringe_bitmap_id_p): New function.
11478 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
11479 (draw_fringe_bitmap): New function which draws fringe bitmap,
11480 possibly overlaying bitmap with cursor in right fringe or the
11481 overlay arrow in the left fringe.
11482 (update_window_fringes): Do not handle overlay arrow here.
11483 Compare and copy fringe bitmap faces.
11484 (init_fringe_bitmap): New function.
11485 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
11486 define and destroy user defined fringe bitmaps.
11487 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
11488 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
11489 (syms_of_fringe): New function. Defsubr new DEFUNs.
11490 DEFVAR_LISP Voverflow_newline_into_fringe.
11491 (init_fringe_once, init_fringe): New functions.
11492 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
11493
11494 * Makefile.in (obj): Add fringe.o.
11495 (fringe.o): New dependencies.
11496
11497 * dispextern.h (FRINGE_ID_BITS): New definition for number of
11498 bits allocated to hold a fringe number. Increase number of bits
11499 from 4 to 8 to allow user defined fringe bitmaps.
11500 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
11501 left_user_fringe_face_id, right_user_fringe_bitmap,
11502 right_user_fringe_face_id.
11503 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
11504 Move to new file fringe.c.
11505 (MAX_FRINGE_BITMAPS): Define here.
11506 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
11507 and overlay_p. Change member which to int.
11508 (struct redisplay_interface): New members define_fringe_bitmap
11509 and destroy_fringe_bitmap.
11510 (valid_fringe_bitmap_id_p): Add prototype.
11511 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
11512
11513 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
11514 arrows.
11515 (update_frame): Do flush_display if force_flush_display_p to
11516 ensure display (specifically fringes) are updated in a timely
11517 manner when resizing the frame by dragging the mouse.
11518 (update_window_line): Update row if overlay arrow changed.
11519 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
11520 or overlay arrow changed.
11521
11522 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
11523 syms_of_fringe, and init_fringe.
11524
11525 * frame.h (struct frame): New member force_flush_display_p.
11526
11527 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
11528 Add prototypes.
11529
11530 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
11531 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
11532 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
11533 Use cursor color for displaying cursor in fringe.
11534 (x_redisplay_interface): Add null handlers for
11535 define_fringe_bitmap and destroy_fringe_bitmap functions.
11536
11537 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
11538 xterm.c to handle overlayed fringe bitmaps and to use cursor color
11539 for displaying cursor in fringe.
11540 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
11541 specific functions to define and destroy fringe bitmaps in fringe_bmp.
11542 (w32_redisplay_interface): Add them to redisplay_interface.
11543 (w32_term_init): Call w32_init_fringe instead of explicitly
11544 defining fringe bitmaps in fringe_bmp array.
11545 (x_delete_display): Call w32_reset_fringes instead of explicitly
11546 destroying fringe bitmaps in fringe_bmp array.
11547
11548 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
11549 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
11550 (continued_bits, continuation_bits, ov_bits, first_line_bits)
11551 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
11552 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
11553 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
11554 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
11555 Move fringe handling vars and code to new file fringe.c.
11556 (handle_display_prop): Handle left-fringe and right-fringe
11557 display properties; store user fringe bitmaps in iterator.
11558 (move_it_in_display_line_to): Handle cursor in fringe at eob.
11559 (clear_garbaged_frames): Set force_flush_display_p if resized.
11560 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
11561 (display_line): Handle cursor in fringe at eob.
11562 (display_line): Set row user fringe bitmaps from iterator.
11563
11564 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
11565 Use cursor color for displaying cursor in fringe.
11566 (x_redisplay_interface): Add null handlers for
11567 define_fringe_bitmap and destroy_fringe_bitmap functions.
11568
11569 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11570
11571 * macfns.c (Fx_change_window_property): Make doc string and
11572 parameters same as for X version.
11573
11574 * w32fns.c (Fx_change_window_property): Ditto.
11575
11576 2004-02-07 Kim F. Storm <storm@cua.dk>
11577
11578 * xdisp.c (hscroll_window_tree): Position cursor near to right
11579 margin in hscrolled window when jumping to end of line (rather
11580 than centering cursor).
11581
11582 * process.c (wait_reading_process_input): Don't do adaptive read
11583 buffering if waiting for a specific process.
11584
11585 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
11586
11587 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
11588 (Fread_minibuffer, Feval_minibuffer)
11589 (Fread_string, Fread_no_blanks_input)
11590 (Fcompleting_read): Doc fixes.
11591 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
11592 completion-regexp-list. Define Qcase_fold_search and staticpro it.
11593 (read_minibuf): Fix initial comment.
11594 (Ftry_completion, Fall_completions, Ftest_completion): Bind
11595 case-fold-search to the value of completion-ignore-case when
11596 checking completion-regexp-list.
11597 (Fdisplay_completion_list): Make it handle arguments that are
11598 symbols. Doc fix.
11599
11600 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11601
11602 * xterm.h: Add declaration of free_frame_menubar.
11603
11604 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
11605 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
11606 (Fx_change_window_property): Add declaration of parameters type and
11607 format. Remove unused variable cons.
11608
11609 * xselect.c: Include stdio.h.
11610
11611 2004-02-05 Kenichi Handa <handa@m17n.org>
11612
11613 * fns.c (Fset_char_table_range): Fix previous change.
11614
11615 * buffer.c (Fset_buffer_multibyte): Fix docstring.
11616
11617 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
11618
11619 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
11620
11621 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
11622
11623 * keymap.c (Vmouse_events): Rename from Vmenu_events.
11624 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
11625
11626 2004-02-04 Kenichi Handa <handa@m17n.org>
11627
11628 * fns.c (Fset_char_table_range): Handle charsets ascii,
11629 eight-bit-control, and eight-bit-graphic correctly.
11630
11631 2004-02-03 Jason Rumney <jasonr@gnu.org>
11632
11633 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
11634
11635 * w32fns.c (x_to_w32_font): Likewise.
11636
11637 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11638
11639 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
11640 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
11641
11642 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
11643 ClientMessages.
11644
11645 * xselect.c: Include termhooks.h and X11/Xproto.h
11646 (x_check_property_data, x_fill_property_data)
11647 (x_property_data_to_lisp, mouse_position_for_drop)
11648 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
11649 (Fx_send_client_event): Move here from xfns.c.
11650 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
11651
11652 * xfns.c (x-send-client-message): Move to xselect.c
11653 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
11654 OUTER_P.
11655 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
11656 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
11657 if vector_ret_p is true.
11658 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
11659
11660 2004-02-02 Eli Zaretskii <eliz@gnu.org>
11661
11662 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
11663 basename of FILE relative to it, not FILE itself.
11664
11665 2004-02-02 Kenichi Handa <handa@m17n.org>
11666
11667 * coding.c (coding_restore_composition): Check invalid
11668 composition data more rigidly.
11669
11670 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
11671
11672 * fileio.c (Fread_file_name_internal): Correctly handle the case
11673 where insert-default-directory is nil.
11674 (Fread_file_name): Always return an empty string if the user exits
11675 with an empty minibuffer. Adapt the docstring accordingly.
11676 (syms_of_fileio): Adapt the docstring of insert-default-directory
11677 to the change in Fread_file_name.
11678
11679 2004-01-29 Eli Zaretskii <eliz@gnu.org>
11680
11681 * alloca.c [!alloca]: Fix the prototype for xfree.
11682
11683 2004-01-29 Kenichi Handa <handa@m17n.org>
11684
11685 * fns.c (string_char_to_byte): Optimize for ASCII only string.
11686 (string_byte_to_char): Likewise.
11687
11688 2004-01-28 Peter Runestig <peter@runestig.com>
11689
11690 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
11691
11692 2004-01-27 Steven Tamm <steventamm@mac.com>
11693
11694 * unexmacosx.c (unexec_copy): Do not copy more than was
11695 requested to prevent overwriting during unexec.
11696
11697 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11698
11699 * process.c (sigchld_handler): Add comment about not calling malloc.
11700
11701 * process.h: Add extern to synch_process_termsig.
11702
11703 2004-01-27 Steven Tamm <steventamm@mac.com>
11704
11705 * macterm.c (make_mac_frame, make_mac_terminal_frame):
11706 Move setting of scroll bars from make_mac_frame to
11707 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
11708
11709 2004-01-26 Richard M. Stallman <rms@gnu.org>
11710
11711 * search.c (Freplace_match): Handle nonexistent
11712 back-references properly.
11713
11714 2004-01-03 Richard M. Stallman <rms@gnu.org>
11715
11716 * window.c (decode_any_window): New function.
11717 (Fwindow_height, Fwindow_width, Fwindow_edges)
11718 (Fwindow_pixel_edges, Fwindow_inside_edges)
11719 (Fwindow_inside_pixel_edges): Use decode_any_window.
11720
11721 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11722
11723 * process.h: synch_process_termsig new variable.
11724
11725 * callproc.c: Define synch_process_termsig.
11726 (Fcall_process): Initiate synch_process_termsig to zero and
11727 check if non-zero and get signal name after subprocess has ended.
11728
11729 * process.c (sigchld_handler): Set synch_process_termsig
11730 if terminated by a signal. synch_process_death setting removed.
11731
11732 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
11733
11734 2004-01-26 Andreas Schwab <schwab@suse.de>
11735
11736 * print.c (print_preprocess): Declare size as EMACS_INT to not
11737 lose bits.
11738 (print_object): Likewise.
11739 * alloc.c (Fpurecopy): Likewise.
11740
11741 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
11742
11743 * window.c (Fwindow_minibuffer_p): Doc fix.
11744
11745 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
11746
11747 * editfns.c (Fformat): Make both passes accept the same set of flags.
11748
11749 2004-01-23 Kenichi Handa <handa@m17n.org>
11750
11751 * fns.c (Fmd5): If OBJECT is a buffer different from the current
11752 one, set buffer to OBJECT temporarily.
11753
11754 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
11755
11756 * keyboard.c (kbd_buffer_gcpro): Remove.
11757 (kbd_buffer_store_event, clear_event, Fdiscard_input)
11758 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
11759 Don't initialize and/or maintain the variable any more. It was made
11760 redundant by my commit of 2003-06-15.
11761
11762 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
11763
11764 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11765
11766 * lisp.h: Add undef DECL_ALIGN.
11767
11768 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
11769
11770 * process.c (wait_reading_process_input) [SYNC_INPUT]:
11771 Check interrupt_input_pending explicitly.
11772
11773 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
11774
11775 * keyboard.c (handle_async_input): New fun,
11776 extracted from input_available_signal.
11777 (input_available_signal, reinvoke_input_signal): Use it.
11778
11779 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
11780
11781 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
11782
11783 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
11784 manipulation macros for when tags are in the lower bits.
11785 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
11786 (DECL_ALIGN): New macro.
11787 (DEFUN): Use it.
11788
11789 * lisp.h [ENABLE_CHECKING]: Don't force union type.
11790
11791 * s/darwin.h (__attribute__): Remove outdated workaround.
11792
11793 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
11794
11795 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
11796 Don't check range of malloc address.
11797 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
11798
11799 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
11800
11801 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
11802
11803 2004-01-19 Kenichi Handa <handa@m17n.org>
11804
11805 * fontset.c (fontset_font_pattern): Fix previous change.
11806
11807 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
11808
11809 * xdisp.c (Voverflow_newline_into_fringe)
11810 (move_it_in_display_line_to, redisplay_internal)
11811 (update_window_fringes, redisplay_window, display_line, window):
11812 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
11813 that it compiles without a window-system.
11814 * dispnew.c (direct_output_for_insert, update_window): Likewise.
11815
11816 2004-01-16 Kim F. Storm <storm@cua.dk>
11817
11818 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
11819
11820 * buffer.c (init_buffer_once): Set buffer_defaults and
11821 buffer_local_flags for indicate_buffer_boundaries.
11822 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
11823 default- variable for it.
11824
11825 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
11826 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
11827 New members exact_window_width_line_p and cursor_in_fringe_p for
11828 overflowing newlines into right fringe.
11829 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
11830 and indicate_bottom_line_p for buffer boundaries and scrolling.
11831 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
11832 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
11833 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
11834 and HOLLOW_SQUARE_BITMAP.
11835 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
11836 Add prototypes.
11837
11838 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
11839 instead of related indicator fields.
11840 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
11841 (direct_output_for_insert): Handle exact width lines like
11842 contined lines. Call update_window_fringes.
11843 (update_window): Call update_window_fringes.
11844 (scrolling_window): Don't skip desired rows with changed bitmaps.
11845 Check if fringe bitmaps changes when assigning scrolled rows.
11846
11847 * xdisp.c (Voverflow_newline_into_fringe): New variable.
11848 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
11849 (move_it_in_display_line_to): Overflow newline into fringe for
11850 rows that are exactly as wide as the window.
11851 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
11852 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
11853 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
11854 (fringe_bitmaps): Add new bitmaps.
11855 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
11856 Select proper bitmap for cursor in fringe when appropriate.
11857 Handle alignment of bitmap to top or bottom of row.
11858 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
11859 done by update_window_fringes.
11860 (update_window_fringes, draw_window_fringes): New functions.
11861 (redisplay_internal): Call update_window_fringes in case only
11862 cursor row is updated.
11863 (redisplay_window): Call update_window_fringes.
11864 Explicitly call draw_window_fringes if redisplay was done using
11865 the current matrix or the overlay arrow is in the window.
11866 (try_window_reusing_current_matrix): Mark scrolled rows for
11867 fringe update (to update buffer-boundaries / scrolling icons).
11868 (find_last_unchanged_at_beg_row): Handle exact width lines line
11869 continued lines.
11870 (display_line): Overflow newline into fringe for rows that are
11871 exactly as wide as the window. Don't append space for newline
11872 in this case.
11873 (notice_overwritten_cursor): Explicitly clear cursor bitmap
11874 in fringe as if it had been overwritten.
11875 (erase_phys_cursor): Erase cursor bitmap in fringe.
11876 (syms_of_xdisp): Mark show-trailing-whitespace and
11877 void-text-area-pointer as user options.
11878 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
11879
11880 * xterm.c (x_update_window_end): Call draw_window_fringes.
11881 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11882 in row instead of actually drawing fringe bitmaps.
11883 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11884 (x_draw_window_cursor): Draw cursor in fringe.
11885
11886 * w32term.c (x_update_window_end): Call draw_window_fringes.
11887 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11888 in row instead of actually drawing fringe bitmaps.
11889 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11890 (w32_draw_window_cursor): Draw cursor in fringe.
11891
11892 * macterm.c (x_update_window_end): Call draw_window_fringes.
11893 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11894 in row instead of actually drawing fringe bitmaps.
11895 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11896 (mac_draw_window_cursor): Draw cursor in fringe.
11897
11898 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11899
11900 * xterm.c (handle_one_xevent): Don't handle characters that are part
11901 of an old style (XLookupString) compose sequence.
11902
11903 2004-01-15 Kenichi Handa <handa@m17n.org>
11904
11905 * search.c (Freplace_match): Use make_multibyte_string or
11906 make_unibyte_string according to the buffer multibyteness.
11907
11908 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
11909
11910 * alloc.c (struct interval_block, struct string_block)
11911 (struct symbol_block, struct marker_block, live_string_p)
11912 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
11913 Better preserve alignment for objects in blocks.
11914 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
11915
11916 * lread.c (defvar_per_buffer): Remove dead declaration.
11917
11918 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
11919 space size.
11920
11921 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11922
11923 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
11924 if a key press should pop down. Only pop down if a key is pressed
11925 outside the menu/dialog.
11926 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
11927 popup_get_selection.
11928 (create_and_show_dialog): Pass 1 for down_on_keypress to
11929 popup_get_selection.
11930
11931 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11932
11933 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
11934 BLOCK/UNBLOCK_INPUT.
11935
11936 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11937
11938 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
11939 specified.
11940
11941 2004-01-08 Kenichi Handa <handa@m17n.org>
11942
11943 * editfns.c (Fformat): Fix '&' to '&&'.
11944
11945 2004-01-08 Andreas Schwab <schwab@suse.de>
11946
11947 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
11948 size if PSEUDOVECTOR_FLAG is set.
11949
11950 2004-01-07 Kenichi Handa <handa@m17n.org>
11951
11952 * charset.c (Fdeclare_equiv_charset): Fix docstring.
11953
11954 * fontset.c (fontset_ref_via_base): Fix previous change.
11955
11956 2004-01-07 Kim F. Storm <storm@cua.dk>
11957
11958 * process.c (read_process_output): Only activate adaptive
11959 buffering if we read less than 256 bytes at a time.
11960
11961 2004-01-06 Kim F. Storm <storm@cua.dk>
11962
11963 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
11964 object and image object. Return glyph width and height.
11965 (mode_line_string, marginal_area_string): Ditto.
11966
11967 * dispextern.h (buffer_posn_from_coords, mode_line_string)
11968 (marginal_area_string): Fix prototypes.
11969
11970 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
11971 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
11972 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
11973
11974 * keyboard.c (make_lispy_position): Use modified mode_line_string,
11975 buffer_posn_from_coords, and marginal_area_string functions to
11976 include both string object and image object in the lispy position.
11977 Also add actual glyph width and height to position.
11978 (read_key_sequence): Use real buffer position from mouse
11979 event to find keymap property even when click is in marginal area.
11980
11981 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
11982 mode_line_string and marginal_area_string functions to handle
11983 both string object and image object properties.
11984
11985 2004-01-06 Andreas Schwab <schwab@suse.de>
11986
11987 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
11988 character.
11989
11990 2004-01-02 Andreas Schwab <schwab@suse.de>
11991
11992 * macterm.c (emacs_options, x_initialized, same_x_server):
11993 Remove unused (and duplicated) definitions.
11994
11995 2004-01-02 Kim F. Storm <storm@cua.dk>
11996
11997 * process.h (struct Lisp_Process): New members for adaptive read
11998 buffering: adaptive_read_buffering, read_output_delay, and
11999 read_output_skip.
12000
12001 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
12002 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
12003 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
12004 (process_output_delay_count, process_output_skip): New vars.
12005 (Vprocess_adaptive_read_buffering): New variable.
12006 (make_process): Initialize adaptive read buffering members.
12007 (Fstart_process): Set adaptive_read_buffering member.
12008 (deactivate_process): Cleanup adaptive read buffering.
12009 (wait_reading_process_input): Temporarily omit delayed
12010 subprocesses from the set of file descriptors to read from;
12011 adjust the select timeout if we skipped any subprocesses.
12012 (read_process_output): Increase adaptive read buffering delay if
12013 we read less than a full buffer; reduce delay when we read a
12014 full buffer.
12015 (send_process): Simplify using local Lisp_Process var.
12016 Reset adaptive read buffering delay after write.
12017 (init_process): Initialize process_output_delay_count and
12018 process_output_skip.
12019 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
12020
12021 2004-01-01 Jason Rumney <jasonr@gnu.org>
12022
12023 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
12024
12025 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
12026
12027 * print.c (Ferror_message_string): Add hyperlink in the docstring
12028 to the definition of `signal' in the Elisp manual.
12029 * eval.c (Fsignal): Ditto.
12030
12031 2003-12-29 James Clark <jjc@jclark.com>
12032
12033 * fns.c (internal_equal): Return t for two NaN arguments.
12034
12035 2003-12-29 Richard M. Stallman <rms@gnu.org>
12036
12037 * data.c (store_symval_forwarding): Handle setting
12038 default-fill-column, etc., by changing the value in
12039 buffers that use the default.
12040
12041 * minibuf.c (Fset_minibuffer_window): Doc fix.
12042
12043 * fileio.c (choose_write_coding_system): Ignore auto_saving
12044 if using the visited file for auto saves.
12045 (Fwrite_region): Don't update SAVE_MODIFF
12046 if auto-saving in visited file.
12047
12048 2003-12-29 Kenichi Handa <handa@m17n.org>
12049
12050 * dispextern.h (face_font_available_p): Extern it.
12051
12052 * fontset.c (Voverriding_fontspec_alist): New variable.
12053 (lookup_overriding_fontspec): New function.
12054 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
12055 (fontset_font_pattern): Likewise.
12056 (regulalize_fontname): New function.
12057 (Fset_fontset_font): Call regulalize_fontname.
12058 (Fset_overriding_fontspec_internal): New function.
12059 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
12060 Defsubr Sset_overriding_fontspec_internal.
12061
12062 * xfaces.c (face_font_available_p): New function.
12063
12064 2003-12-28 Richard M. Stallman <rms@gnu.org>
12065
12066 * buffer.c (Fother_buffer): Don't crash if BUF is nil
12067 or if its name is nil.
12068
12069 * buffer.c (Fkill_buffer): Don't delete auto-save file
12070 if it's the same as the visited file.
12071
12072 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
12073
12074 * coding.c (Fcheck_coding_system): Doc fix.
12075
12076 2003-12-28 Kim F. Storm <storm@cua.dk>
12077
12078 * Makefile.in (eval.o): Depend on dispextern.h.
12079
12080 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
12081 image glyph using image's ascent.
12082 (mode_line_string): Return image glyph as object clicked on.
12083 Adjust y0 for image glyph using image's ascent.
12084
12085 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
12086 (struct glyph): New members, ascent and descent. Used to save
12087 this glyph's ascent and descent, instead of having.
12088 (struct glyph): Declare member face_id using FACE_ID_BITS.
12089 (find_hot_spot): Add prototype.
12090
12091 * keyboard.c (Qimage): Remove extern (now in lisp.h).
12092 (QCmap): Declare extern.
12093 (make_lispy_position): When position is inside image hot-spot,
12094 use hot-spot element's id as posn element.
12095
12096 * lisp.h (IMAGEP): New macro to test for image object type.
12097 (Qimage): Declare extern.
12098
12099 * macfns.c (Qimage): Remove extern (now in lisp.h).
12100 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12101
12102 * macterm.c (Qface, Qmouse_face): Remove unused externs.
12103
12104 * w32fns.c (Qimage): Remove extern (now in lisp.h).
12105 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12106
12107 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
12108
12109 * w32term.c (Qface, Qmouse_face): Remove unused externs.
12110
12111 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
12112 pointer types.
12113 (Qrelative_width, Qalign_to): Remove unused variables.
12114 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
12115 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
12116 image maps.
12117 (x_y_to_hpos_vpos): Return glyph relative coordinates through
12118 new dx and dy args.
12119 Remove buffer_only_p arg (always 0). Simplify code accordingly.
12120 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
12121 than row's ascent and height, to get sensible height on tall rows.
12122 (build_desired_tool_bar_string): Remove Qimage extern.
12123 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
12124 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
12125 image glyph is alone on the last line.
12126 (append_glyph, append_composite_glyph, produce_image_glyph)
12127 (append_stretch_glyph): Set glyph's ascent and descent.
12128 (on_hot_spot_p): New function to check if position is inside an
12129 rectangular, circular, or polygon-shaped image hot-spot,
12130 (find_hot_spot): New function to search for image hot-spot.
12131 (Flookup_image_map): New defun to search for image hot-spot.
12132 (define_frame_cursor1): New aux function to determine frame pointer.
12133 (note_mode_line_or_margin_highlight, note_mouse_highlight):
12134 Handle `pointer' text property and :pointer image property to
12135 control frame pointer shape. Detect image hot-spots for pointer
12136 and help_echo properties. Use define_frame_cursor1.
12137 (note_mouse_highlight): Use Vvoid_text_area_pointer.
12138 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
12139 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
12140
12141 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
12142
12143 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
12144 (Qimage): Remove extern (now in lisp.h).
12145 (valid_image_p, parse_image_spec): Use IMAGEP macro.
12146
12147 * xmenu.c (show_help_event): Remove unused code.
12148
12149 * xterm.c (Qface, Qmouse_face): Remove unused externs.
12150 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
12151 row's ascent and descent, to get a sensible height on tall rows.
12152
12153 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
12154
12155 * minibuf.c (Fcompleting_read): Undo previous change.
12156
12157 2003-12-25 Lars Hansen <larsh@math.ku.dk>
12158
12159 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
12160 Arguments GCPRO'ed in call to file name handler.
12161
12162 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
12163
12164 * termcap.c (tgetst1): Scan for "%pN"; if all
12165 N are continuous in [1,9], remove all "%pN".
12166
12167 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12168
12169 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
12170
12171 * xfaces.c (lface_fully_specified_p): Take into account that
12172 MAC OS always have unspecified stipple.
12173
12174 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
12175
12176 * tparam.c (tparam1): Add handling for `%pN', which
12177 means use param N for the next substitution.
12178
12179 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
12180
12181 * xfaces.c (Fcolor_gray_p): Fix omission bug:
12182 In case `frame' is nil, consult the selected frame.
12183 (Fcolor_supported_p): Likewise.
12184
12185 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
12186
12187 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
12188 Doc fixes.
12189
12190 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
12191 and an integer. Adapt the introductory comment accordingly.
12192 (Fread_from_minibuffer): Delete code moved into read_minibuf.
12193 Doc fix.
12194 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
12195 read_minibuf.
12196 (Fcompleting_read): Delete code moved into read_minibuf.
12197 (Ftest_completion): Make it handle obarrays and hash tables correctly.
12198
12199 2003-12-03 Kenichi Handa <handa@m17n.org>
12200
12201 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
12202 encoding sequence.
12203
12204 2003-12-01 Kenichi Handa <handa@m17n.org>
12205
12206 * composite.c (syms_of_composite): Don't make the compostion hash
12207 table week.
12208
12209 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
12210
12211 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
12212 * textprop.c (Fget_char_property_and_overlay): New function.
12213 (syms_of_textprop): Defsubr it.
12214
12215 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12216
12217 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
12218 to compile on terminal configuration.
12219
12220 * fileio.c (Fread_file_name): Check use_file_dialog also before
12221 calling Fx_file_dialog.
12222
12223 * fns.c (use_file_dialog): New variable.
12224 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
12225
12226 2003-11-29 Kim F. Storm <storm@cua.dk>
12227
12228 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
12229 (syms_of_msdos): Don't intern and staticpro them.
12230
12231 2003-11-27 Kim F. Storm <storm@cua.dk>
12232
12233 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
12234 coordinates relative to glyph at posn. If glyph is an image,
12235 return that as object at posn. Callers changed.
12236 (mode_line_string, marginal_area_string): Calculate and return
12237 pixel coordinates relative to glyph. Callers changed.
12238
12239 * dispextern.h (buffer_posn_from_coords, mode_line_string)
12240 (marginal_area_string): Fix prototypes.
12241 (window_box_left_offset, window_box_right_offset): Add prototypes.
12242
12243 * frame.h (get_specified_cursor_type, get_window_cursor_type):
12244 Remove prototypes.
12245
12246 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
12247
12248 * keyboard.c (make_lispy_position): Add x and y coordinates
12249 relative to the current glyph as 7th element of position.
12250 If glyph is an image, return it in the object element.
12251 (read_key_sequence): Skip checks for keymap property in cases
12252 where POSN_STRING is not a string (e.g. an image).
12253
12254 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
12255 (Vshow_text_cursor_in_void): New variable.
12256 (glyph_to_pixel_coords): Don't use negative hpos.
12257 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
12258 (append_stretch_glyph): Change ascent arg to be actual value
12259 in pixels rather than ratio to height. Callers changed.
12260 (calc_pixel_width_or_height): New aux function, implementing
12261 pixel based artihmetic for glyph widths and heights.
12262 (produce_stretch_glyph): Use calc_pixel_width_or_height for
12263 :width, :height, :align-to, and :ascent, thus allowing these to
12264 be specified in pixels as well as multiples of characters.
12265 Don't produce stretch glyphs with zero width or height.
12266 (get_specified_cursor_type): Declare static.
12267 (get_window_cursor_type): Declare static. Add glyph arg to be
12268 able to know when cursor is on an image; always substitute
12269 hollow-box cursor for filled-box cursor on images, to avoid
12270 negative images and flicker when blinking the cursor.
12271 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
12272 (note_mode_line_or_margin_highlight): Use non-text cursor rather
12273 than vertical scroll-bar cursor in display margins.
12274 (note_mouse_highlight): Use non-text cursor rather than text
12275 cursor in fringes and over images in the text area.
12276 Use non-text cursor when mouse pointer is outside editable text,
12277 i.e. in the void after end-of-line or end-of-buffer; this was
12278 already done for W32, but is now standard for all systems --
12279 user can toggle show-text-cursor-in-void to get old behaviour.
12280 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
12281 Vdisplay_pixels_per_inch.
12282
12283 2003-11-25 Andreas Schwab <schwab@suse.de>
12284
12285 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
12286 EMACS_INT to not lose bits.
12287 (Ffillarray): Don't set bits beyond the size of a bool vector.
12288
12289 2003-11-25 Kim F. Storm <storm@cua.dk>
12290
12291 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
12292 define this defun on systems that cannot use stderr as lvalue.
12293
12294 2003-11-24 Gerd Moellmann <gerd@gnu.org>
12295
12296 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
12297 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
12298 ld's default is incompatible with unexec.
12299
12300 2003-11-23 Kim F. Storm <storm@cua.dk>
12301
12302 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
12303 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
12304 (Fforce_window_update): New defun.
12305 (syms_of_window): Defsubr it.
12306 (Fset_window_margins, Fset_window_fringes): Doc fix.
12307
12308 * print.c (Fredirect_debugging_output): New defun.
12309 (syms_of_print): Defsubr it.
12310
12311 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
12312
12313 * fns.c (Fset_char_table_parent): Doc fix.
12314
12315 2003-11-22 Kim F. Storm <storm@cua.dk>
12316
12317 * dispnew.c (buffer_posn_from_coords): Return actual row/column
12318 for glyph clicked on, rather than (unused) pixel positions.
12319 (mode_line_string, marginal_area_string): Change X and Y args to
12320 pointers for returning actual row/column for glyph clicked on.
12321 Simplify and optimize loops.
12322
12323 * dispextern.h (mode_line_string, marginal_area_string):
12324 Update prototypes.
12325
12326 * keyboard.c (make_lispy_position): New function for generating
12327 mouse click positions from frame and pixel coordinates.
12328 Enhanced to return buffer position and actual row/column for
12329 events outside the text area using updated mode_line_string and
12330 marginal_area_string functions.
12331 Return left-fringe and right-fringe clicks as such, rather than
12332 clicks in text area.
12333 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
12334 pixel_to_glyph_coords, as we never use the results.
12335 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
12336 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
12337 Eliminate unused code in WHEEL_EVENT handling.
12338 (make_lispy_movement): Use make_lispy_position.
12339
12340 * window.c (coordinates_in_window): Remove redundant tests.
12341 Fix returned X pixel value for left-margin.
12342
12343 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
12344 mode_line_string and marginal_area_string parameters.
12345
12346 2003-11-22 Lars Hansen <larsh@math.ku.dk>
12347
12348 * w32.c (struct the_group, getgrgid): Add.
12349 * mac.c (struct my_group, getgrgid): Add.
12350
12351 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
12352
12353 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
12354
12355 2003-11-21 Lars Hansen <larsh@math.ku.dk>
12356
12357 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
12358 include in call to file name handler. Optionally translate numeric
12359 UID and GID to strings. Update docstring.
12360 (directory_files_internal): Add parameter ID-FORMAT.
12361 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
12362 include in call to file name handler and call to
12363 directory_files_internal. Update Docstring.
12364 (Fdirectory_files): Add dummy parameter in call to
12365 directory_files_internal.
12366 * lisp.h (Qinteger): Add.
12367 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
12368 (Ffile_attributes): Add parameter.
12369 * data.c (Qinteger): Export.
12370
12371 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
12372
12373 * fns.c (Freverse, Fnreverse): Doc fixes.
12374
12375 2003-11-19 Kim F. Storm <storm@cua.dk>
12376
12377 * xdisp.c (init_iterator): Initialize it->start to position
12378 before reseating (in case start position is invisible).
12379 (init_to_row_start): Set it->start to row-start.
12380 (redisplay_window): Accept optional_new_start if start position
12381 is invisible (in which case IT_CHARPOS overshoots PT).
12382 (display_line): Setup row->start from it->start (rather than
12383 it->current which is wrong if first char on line is invisible).
12384 When done, reseat it->start to it->current (= start of next row).
12385 (expose_area): Fix exposure of text area when first char (e.g. TAB)
12386 is only partially visible.
12387
12388 * dispextern.h (struct it): New member start.
12389
12390 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12391
12392 * alloc.c (make_float, Fcons): Clear the markbit at init time.
12393 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
12394 of block_index outside of the macro call.
12395 (Fgarbage_collect): Remove null code.
12396
12397 * m/amdx86-64.h: Don't redefine XPNTR.
12398
12399 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
12400 of VALMASK.
12401
12402 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
12403 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
12404 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
12405
12406 * lisp.h (VALMASK): Only define for non-union type.
12407 (MARKBIT): Remove.
12408 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
12409 (XTYPE): Define unconditionally.
12410 (XSETTYPE): Remove one more remnant.
12411 (EQ): Define differently for the union and non-union cases.
12412 (INTMASK): New bit mask.
12413 (struct Lisp_Marker): Move down to prepare for upcoming patch.
12414 (GC_EQ): Delegate to EQ.
12415
12416 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
12417
12418 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12419
12420 * xterm.c (x_window_to_scroll_bar): Move check of display to
12421 where window_id is compared.
12422
12423 2003-11-17 Kim F. Storm <storm@cua.dk>
12424
12425 * dispextern.h (struct it): New member first_vpos.
12426
12427 * xdisp.c (start_display): Set it->first_vpos.
12428 (try_window_id): Use first_vpos to start display in first _text_
12429 line if no reusable lines at start of window with header line.
12430
12431 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12432
12433 * w32fns.c (XPutPixel):
12434 * w32bdf.c (w32_init_bdf_font):
12435 * sunfns.c (sel_read):
12436 * process.c (Fmake_network_process):
12437 * frame.c (store_frame_param):
12438 * fontset.c (Fset_fontset_font):
12439 * emacs.c (shut_down_emacs):
12440 * ccl.c (ccl_driver): Remove period at end of error message.
12441
12442 * config.in: Regenerate.
12443
12444 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12445 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12446 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
12447 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
12448 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
12449
12450 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
12451
12452 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
12453 (XTmouse_position, handle_one_xevent): Pass Display* to
12454 x_window_to_scroll_bar.
12455 (x_window_to_scroll_bar): Take a Display* argument.
12456 Check that display for frame is equal to Display* argument.
12457 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
12458 x_display_info_for_display instead. Use Display in xev instead
12459 of GDK_DISPLAY.
12460 (x_dispatch_event): Call x_display_info_for_display.
12461 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
12462 (x_connection_closed): Call xg_display_close for GTK.
12463 (x_term_init): Call xg_display_open for additional displays.
12464 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
12465 for GTK.
12466
12467 * xmenu.c (single_menu_item, mouse_position_for_popup)
12468 (x_activate_menubar): Formatting adjustments.
12469
12470 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
12471 adjustments.
12472
12473 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
12474 (xg_display_close, xg_create_default_cursor)
12475 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
12476 handling.
12477 (xg_left_ptr_cursor): Remove.
12478 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
12479 cursor here.
12480 (xg_win_to_widget): Take Display* argument, call
12481 gdk_xid_table_lookup_for_display.
12482 (xg_create_frame_widgets, xg_get_file_name, create_menus)
12483 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
12484 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
12485 in FRAME_X_DISPLAY_INFO.
12486 (xg_get_scroll_id_for_window): Take Display* argument.
12487 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
12488 (xg_initialize): Remove xg_left_ptr_cursor.
12489
12490 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
12491 Display* argument.
12492 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
12493
12494 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12495
12496 * xterm.c (x_detect_focus_change): Do not change focus frame for
12497 Enter/LeaveNotify if the current focus frame has explicit focus.
12498
12499 2003-11-14 Kim F. Storm <storm@cua.dk>
12500
12501 * dispnew.c (update_text_area): Fix redisplay error when hscroll
12502 is active and first glyph is only partially visible.
12503
12504 2003-11-13 Kenichi Handa <handa@m17n.org>
12505
12506 * xdisp.c (select_frame_for_redisplay): New function.
12507 (redisplay_internal): Record also selected_frame for
12508 unwind_redisplay. Call select_frame_for_redisplay before
12509 redrawing each frame.
12510 (unwind_redisplay): Argument changed to a cons.
12511
12512 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
12513
12514 * fns.c (Fstring_to_multibyte): Doc fix.
12515
12516 2003-11-11 Kenichi Handa <handa@m17n.org>
12517
12518 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12519
12520 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12521
12522 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
12523 program specified positions.
12524
12525 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12526
12527 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
12528
12529 2003-11-08 Kenichi Handa <handa@m17n.org>
12530
12531 * Makefile.in (lisp): Add kannada.el.
12532 (shortlisp): Likewise.
12533
12534 2003-11-07 Kenichi Handa <handa@m17n.org>
12535
12536 * coding.c (coding_allocate_composition_data):
12537 Reset coding->composing to COMPOSITION_NO.
12538 (coding_restore_composition): Detect invalid composition data.
12539 Give Fstring and Fvector a Lispy integer, not C int.
12540
12541 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * floatfns.c (Flogb): Don't use VALMASK.
12544
12545 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
12546 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
12547
12548 * lisp.h (XINT): Move the cast to clarify what is going on.
12549 (GCTYPEMASK, XSETTYPE): Remove.
12550 (XGCTYPE): Make it an alias of XTYPE.
12551
12552 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12553
12554 * xterm.c (x_term_init): Fix formatting.
12555
12556 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12557
12558 * gtkutil.h (xg_have_tear_offs): Declare.
12559 (xg_keep_popup, xg_did_tearoff): Remove.
12560
12561 * gtkutil.c: Remove variable xg_did_tearoff.
12562 (xg_have_tear_offs): New function.
12563 (tearoff_remove): Just decrease xg_detached_menus.
12564 (tearoff_activate): Increase xg_detached_menus and call
12565 tearoff_remove when tearoff is removed.
12566 (xg_keep_popup): Remove function.
12567 (create_menus): Give add_tearoff_p as argument to recursive
12568 call to create_menus.
12569 (xg_create_widget): Use variables instead of multiple
12570 strcmp. Tell create_menus to create tear off only for
12571 menu bar menus.
12572 (xg_update_menubar): Change title for a detached menu also.
12573 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
12574 of deep_p.
12575 (xg_initialize): Initialize xg_detached_menus, remove
12576 initialization of xg_did_tearoff.
12577
12578 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
12579 xg_have_tear_offs returns non-zero.
12580 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
12581 call to xg_keep_popup.
12582
12583 2003-11-01 Andrew Choi <akochoi@shaw.ca>
12584
12585 * macterm.c (XTread_socket): Handle menubar selection and grow
12586 window only for mouseDown events.
12587
12588 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12589
12590 * xterm.c (x_term_init): For GTK part, increase x_initialized
12591 to check for more than one display. Use error instead of return 0.
12592
12593 2003-10-31 Andrew Choi <akochoi@shaw.ca>
12594
12595 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
12596 (copy_dysymtab): Call it.
12597
12598 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
12599
12600 * eval.c (Fdefvaralias): Doc fix.
12601
12602 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
12603
12604 * data.c (Fsetplist): Doc fix.
12605
12606 2003-10-14 Lute Kamstra <lute@gnu.org>
12607
12608 * window.c (Fset_window_fringes): Clarify docstring.
12609
12610 2003-10-14 Kim F. Storm <storm@cua.dk>
12611
12612 * window.c (Fset_window_margins): Simplify arg checking.
12613
12614 2003-10-13 Richard M. Stallman <rms@gnu.org>
12615
12616 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
12617 (print_partial_compiled_pattern): Replace assert with a printout.
12618 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
12619
12620 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
12621
12622 * window.c (Fset_window_margins): Allow only integers as args.
12623 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
12624 Doc fixes.
12625
12626 2003-10-13 Lute Kamstra <lute@gnu.org>
12627
12628 * window.c (Fset_window_fringes): Elaborate docstring.
12629
12630 2003-10-12 Andrew Choi <akochoi@shaw.ca>
12631
12632 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
12633
12634 * s/darwin.h (GC_MARK_STACK): Define.
12635
12636 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12637
12638 * window.c (shrink_windows): New function.
12639 (size_window): Call shrink_windows to calculate window sizes when
12640 shrinking frame with more than one window.
12641
12642 2003-10-12 Kim F. Storm <storm@cua.dk>
12643
12644 * xdisp.c (compute_fringe_widths): Doc fix.
12645
12646 2003-10-08 Kenichi Handa <handa@m17n.org>
12647
12648 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
12649
12650 2003-10-07 Kenichi Handa <handa@m17n.org>
12651
12652 * coding.c (Qcoding_system_define_form): New variable.
12653 (syms_of_coding): Intern and staticpro it.
12654 (Fcheck_coding_system): Try to autoload the definition of
12655 CODING-SYSTEM.
12656
12657 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
12658
12659 * fns.c (Frequire): Doc fix.
12660
12661 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12662
12663 * xfns.c (Fx_send_client_event): New function as a base for
12664 manipulating extended window manager hints.
12665 (Fx_send_client_event): Remove unused variable s.
12666
12667 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
12668 that function is removed.
12669
12670 * xterm.c (x_set_offset): Use move_offset_left/top instead of
12671 x/y_pixels_outer_diff.
12672 (x_check_expected_move): Calculate move_offset_left/top.
12673
12674 * xterm.h (struct x_output): New members: move_offset_top/left.
12675
12676 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
12677 call x_set_offset directly.
12678
12679 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
12680
12681 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
12682
12683 * xterm.c (x_delete_display): Free font names and font_encoder
12684 in dpyinfo->font_table.
12685
12686 * xfns.c (Fx_close_connection): Only call XFreeFont here.
12687 Move xfree of font names to x_delete_display.
12688
12689 * xterm.h (struct x_display_info): New member, wm_type.
12690 (struct x_output): New members, expected_top/left and
12691 check_expected_move.
12692
12693 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
12694 is received.
12695 (handle_one_xevent): Rename x_check_expected_move from
12696 x_check_fullscreen_move.
12697 (x_set_offset): Only add WM decoration sizes to modified_top/left
12698 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
12699 (x_check_expected_move): Rename from x_check_fullscreen_move.
12700 Removed fullscreen specific code. Use check_expected_move,
12701 expected_left/top instead. Also, set wm_type.
12702 (x_term_init): Initialize wm_type to unknown.
12703
12704 * frame.c (x_fullscreen_move): Remove addition of WM decoration
12705 sizes to move_x/y.
12706
12707 2003-10-03 Kenichi Handa <handa@m17n.org>
12708
12709 * macterm.c (x_load_font): Clear all members of FONTP before start
12710 filling them.
12711
12712 2003-10-02 Kenichi Handa <handa@m17n.org>
12713
12714 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
12715 before calling find_ccl_program_func. Call find_ccl_program_func
12716 only when fontp->font_encoder is not NULL.
12717
12718 * xterm.c (x_load_font): Clear all members of FONTP before start
12719 filling them.
12720
12721 2003-10-03 John Paul Wallington <jpw@gnu.org>
12722
12723 * keymap.c (map_keymap): Don't abort when binding is a vector.
12724
12725 2003-10-02 Jason Rumney <jasonr@gnu.org>
12726
12727 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
12728 Sync dependencies with Makefile.in.
12729 (alloca.o): Remove.
12730
12731 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
12732 filling them.
12733
12734 * w32bdf.c (w32_load_bdf_font): Likewise.
12735
12736 2003-09-30 Richard M. Stallman <rms@gnu.org>
12737
12738 * term.c (set_tty_color_mode): Calculate current_mode_spec
12739 regardless of value of VAL.
12740
12741 * intervals.c (graft_intervals_into_buffer):
12742 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
12743 Handle over_used when splitting UNDER.
12744
12745 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12746
12747 * regex.c (regex_compile): Free the stack when returning from function.
12748
12749 2003-09-28 Kenichi Handa <handa@m17n.org>
12750
12751 * fontset.c (Finternal_char_font): Change return value to
12752 cons (FONT-NAME . GLYPH-CODE).
12753
12754 2003-09-28 Eli Zaretskii <eliz@gnu.org>
12755
12756 * term.c (tty_setup_colors): Treat any negative argument as -1.
12757
12758 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
12759
12760 * process.c (send_process): Delete unused temp_buf.
12761
12762 2003-09-26 Dave Love <fx@gnu.org>
12763
12764 * xterm.c (x_bitmap_mask): Declare.
12765
12766 2003-09-25 Dave Love <fx@gnu.org>
12767
12768 * Makefile.in (fns.o): Depend on md5.h.
12769
12770 2003-09-25 Kim F. Storm <storm@cua.dk>
12771
12772 * window.c (set_window_buffer): Fix redisplay problems when
12773 switching between buffers with different display margin widths.
12774
12775 2003-09-23 Kim F. Storm <storm@cua.dk>
12776
12777 * process.c (set_socket_option): Fix :bindtodevice option.
12778 (Fset_network_process_option): Update process contact list when
12779 setting option succeeds.
12780 (Fmake_network_process): Doc fix.
12781
12782 2003-09-23 Dave Love <fx@gnu.org>
12783
12784 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
12785
12786 2003-09-22 Eli Zaretskii <eliz@gnu.org>
12787
12788 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
12789 color mode is an integer number (it could be -1).
12790
12791 2003-09-22 Richard M. Stallman <rms@gnu.org>
12792
12793 * intervals.c (graft_intervals_into_buffer): Correct the main loop
12794 in the case where OVER is longer than UNDER.
12795
12796 2003-09-22 Masatake YAMATO <jet@gyve.org>
12797
12798 * window.c (Fset_window_scroll_bars): Validate the value of
12799 `vertical_type'.
12800
12801 2003-09-21 Kim F. Storm <storm@cua.dk>
12802
12803 * frame.c (Vdefault_frame_scroll_bars): New variable.
12804 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
12805 (syms_of_frame): DEFVAR_LISP it, and initialize according to
12806 window-system default scroll bar position.
12807
12808 * window.c (Fwindow_scroll_bars): Doc fix.
12809
12810 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12811
12812 * xterm.c (x_set_offset): Take window manager decorations into account.
12813
12814 2003-09-19 Richard M. Stallman <rms@gnu.org>
12815
12816 * atimer.h: Don't include lisp.h.
12817 (P_): Define it here (as well as elsewhere).
12818
12819 * print.c (Fprin1_to_string): Move the PRINTPREPARE
12820 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
12821
12822 * data.c (Fvariable_binding_locus): New function.
12823 (syms_of_data): defsubr it.
12824 (Flocal_variable_p): Delete duplicate call to indirect_variable.
12825
12826 2003-09-18 Dave Love <fx@gnu.org>
12827
12828 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
12829
12830 * process.c (Fnetwork_interface_info): Fix type error.
12831 (Fnetwork_interface_list): Doc fix.
12832 (read_process_output, read_process_output): Delete unused var.
12833
12834 2003-09-17 Kim F. Storm <storm@cua.dk>
12835
12836 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
12837 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
12838 (Fnetwork_interface_info): Check that ifreq struct has required
12839 fields before accessing them; this requires that those fields are
12840 defined as macros, which may be too restrictive on some platforms,
12841 but it is better than failing on other platforms.
12842 (syms_of_process): Only defsubr above fns when included.
12843
12844 2003-09-17 Dave Love <fx@gnu.org>
12845
12846 * unexalpha.c: Don't include varargs.h.
12847
12848 2003-09-17 Kim F. Storm <storm@cua.dk>
12849
12850 * process.c (Fset_process_sentinel): Add sentinel to childp plist
12851 for network process.
12852 (socket_options): Add `:' prefix to option names. Add optbit field.
12853 (set_socket_option): Remove no_error arg and special handling of s < 0.
12854 Return 1<<optbit for known option, 0 for unknown.
12855 Do not interpret 0 as false for boolean option (only nil).
12856 Pass failed option and value to report_file_error.
12857 (Fset_network_process_options): Replace by Fset_network_process_option.
12858 (Fset_network_process_option): New function to set just one option.
12859 (Fmake_network_process): Allow :coding arg to be a cons.
12860 Allow :server arg to be an integer specifying backlog size.
12861 Remove :options arg, and allow options to be specified directly
12862 as :KEY, VALUE pairs. Parse these options before binding socket.
12863 As before, :reuseaddr t is default for a server process, but this
12864 can now be disabled by specifying :reuseaddr nil.
12865 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
12866 (init_process): Availability of network options is now checked with
12867 simpler syntax (featurep 'make-network-process :OPTION); use loop to
12868 setup features.
12869 (syms_of_process): Fix defsubr's for the replaced functions.
12870
12871 2003-09-16 Dave Love <fx@gnu.org>
12872
12873 * Makefile.in: Depend on coding.h.
12874
12875 2003-09-14 Kim F. Storm <storm@cua.dk>
12876
12877 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
12878 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
12879 (syms_of_process): Defsubr them.
12880
12881 * config.in: Regenerate.
12882
12883 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12884
12885 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
12886 * m/news-r6.h (XUNMARK): Remove.
12887 * m/mips.h (XUNMARK): Remove.
12888 * m/mips-siemens.h (XUNMARK): Remove.
12889 * m/iris4d.h (XUNMARK): Remove.
12890 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
12891
12892 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12893
12894 * lisp.h (VALBITS): Don't remove 1 for the markbit.
12895 (union Lisp_Object): Use unsigned int for types. Remove markbit.
12896 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
12897 (XTYPE): Use unsigned right-shift.
12898 (XMARKBIT, XMARK, XUNMARK): Remove.
12899
12900 * alloc.c (init_intervals, init_symbol, init_marker):
12901 Don't preallocate anything.
12902 (Fgarbage_collect, mark_object): Ignore the markbit.
12903
12904 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
12905
12906 2003-09-08 Lute Kamstra <lute@gnu.org>
12907
12908 * xdisp.c (pint2hrstr): New function.
12909 (decode_mode_spec): Add `%i' and `%I' specs.
12910 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
12911 for `mode-line-format'.
12912
12913 2003-09-07 Andreas Schwab <schwab@suse.de>
12914
12915 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
12916 avoid warning.
12917
12918 2003-09-07 Eli Zaretskii <eliz@gnu.org>
12919
12920 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
12921
12922 2003-09-03 Kim F. Storm <storm@cua.dk>
12923
12924 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
12925 change (superseded by 2002-08-30 change); the default blink-off
12926 cursor is now again "no cursor".
12927
12928 2003-09-01 Jason Rumney <jasonr@gnu.org>
12929
12930 * makefile.w32-in (alloca.o): Remove.
12931 (coding.o): Depend on intervals.h
12932 (emacs.o, bytecode.o): Depend on window.h
12933
12934 2003-09-01 Dave Love <fx@gnu.org>
12935
12936 * Makefile.in (alloca.o): Remove commands.
12937 (coding.o): Depend on intervals.h composite.h window.h.
12938 (emacs.o): Depend on window.h keyboard.h keymap.h.
12939 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
12940 (bytecode.o): Depend on window.h.
12941
12942 2003-08-31 Jason Rumney <jasonr@gnu.org>
12943
12944 * w32term.c (w32_per_char_metric): Allow cached metrics to be
12945 returned even when font_type is unknown.
12946
12947 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
12948
12949 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12950
12951 * xterm.c (x_term_init): Initialize new fields in x_display_info.
12952
12953 * xterm.h (struct x_display_info): Add red/green/blue_bits and
12954 *_offset.
12955
12956 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
12957 calculate pixel value.
12958
12959 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
12960
12961 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
12962 Don't tell redisplay display is accurate when it's actually been
12963 paused for pending input.
12964
12965 2003-08-29 Richard M. Stallman <rms@gnu.org>
12966
12967 * dispnew.c (adjust_glyph_matrix): Call window_box
12968 whenever W is nonzero.
12969
12970 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12971 (Fkill_local_variable, Fmake_variable_frame_local)
12972 (Flocal_variable_p, Flocal_variable_if_set_p):
12973 Use indirect_variable to trace thru variable aliases.
12974
12975 * config.in: Updated.
12976
12977 * callint.c (Fcall_interactively): Save and restore
12978 Vthis_command, Vthis_original_command, real_this_command,
12979 and current_kboard->Vlast_command.
12980
12981 * abbrev.c (Fexpand_abbrev): Insert before deleting.
12982
12983 2003-08-29 Gerd Moellmann <gerd@gnu.org>
12984
12985 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
12986
12987 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
12988
12989 * coding.c (decode_coding_iso2022): Initialize local variable c2.
12990 (decode_coding_sjis_big5): Likewise.
12991
12992 2003-08-27 Jason Rumney <jasonr@gnu.org>
12993
12994 * w32.c (sys_pipe): Protect against file descriptor overflow.
12995
12996 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
12997
12998 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
12999
13000 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
13001
13002 * xfns.c (Vgtk_version_string): New variable.
13003 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
13004
13005 2003-08-24 Eli Zaretskii <eliz@gnu.org>
13006
13007 * term.c (term_init): Remove `const' from buffer_size's declaration.
13008
13009 * Makefile.in (msdos.o): Depend on intervals.h.
13010
13011 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
13012
13013 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13014
13015 * xterm.h (struct x_display_info): New fields: client_leader_window
13016 and Xatom_wm_client_leader.
13017
13018 * xterm.c (x_initialize): Move call to x_session_initialize to ...
13019 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
13020
13021 * xsmfns.c (create_client_leader_window): New function.
13022 (x_session_initialize): Call create_client_leader_window, take
13023 dpyinfo as argument.
13024
13025 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
13026
13027 * Makefile.in (xsmfns.o): Add more depenedencies.
13028
13029 2003-08-21 Dave Love <fx@gnu.org>
13030
13031 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
13032
13033 2003-08-21 Kenichi Handa <handa@m17n.org>
13034
13035 * term.c (term_init): Fix previous change; don't rely on the
13036 length of `buffer' if TERMINFO is defined.
13037
13038 2003-08-20 Dave Love <fx@gnu.org>
13039
13040 * atimer.h: Include lisp.h.
13041
13042 * lisp.h (EMACS_LISP_H): New.
13043 (popup_activated_flag): Don't declare.
13044
13045 * alloca.c: Some merging with gnulib. Change logic and doc
13046 concerning (x)malloc/(x)free -- no longer Emacs-specific.
13047 [DO_BLOCK_INPUT]: Don't include lisp.h.
13048 (xmalloc, xfree): Declare.
13049 (malloc): Don't declare.
13050
13051 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
13052 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
13053 atimer.h, blockinput.h.
13054
13055 * alloc.c (lisp_align_malloc): Change type of `aligned'.
13056
13057 * alloca.s: Remove.
13058
13059 2003-08-19 Gerd Moellmann <gerd@gnu.org>
13060
13061 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
13062 use -lncurses.
13063
13064 * term.c (term_init): Use a buffer of size 4096 for tgetent since
13065 FreeBSD returns something longer than 2044. Abort if the end of
13066 the buffer is overwritten.
13067
13068 2003-08-19 Miles Bader <miles@gnu.org>
13069
13070 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
13071
13072 2003-08-19 Gerd Moellmann <gerd@gnu.org>
13073
13074 * alloc.c (lisp_align_malloc): Check for memory full when
13075 allocating ablocks, which also avoids freeing a pointer into an
13076 ablocks structure.
13077
13078 * puresize.h (BASE_PURESIZE): Increase to 1100000.
13079
13080 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
13081
13082 2003-08-16 Richard M. Stallman <rms@gnu.org>
13083
13084 * editfns.c (Fencode_time): Doc fix.
13085
13086 2003-08-16 David Ponce <david@dponce.com>
13087
13088 * fileio.c (Fwrite_region): Fix conditional expression to issue
13089 the right message.
13090
13091 2003-08-16 Juri Linkov <juri@jurta.org>
13092
13093 * syntax.c (Fforward_word): Argument changed to optional.
13094 Set default value to 1.
13095
13096 2003-08-15 Kenichi Handa <handa@m17n.org>
13097
13098 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
13099 what autoscaled.
13100 (best_matching_font): Once we find a better scalable font, set
13101 non_scalable_has_exact_height_p to 1.
13102 (try_font_list): Call try_alternative_families to try any family
13103 with the given registry.
13104
13105 2003-08-09 Andreas Schwab <schwab@suse.de>
13106
13107 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
13108
13109 * print.c (print_string): Fix printing of multibyte string with
13110 nontrivial printcharfun.
13111
13112 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13113
13114 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
13115
13116 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
13117
13118 2003-07-31 Kenichi Handa <handa@m17n.org>
13119
13120 * process.c (read_process_output): Return the actually read bytes
13121 instead of the result of decoding.
13122
13123 2003-07-31 Kenichi Handa <handa@m17n.org>
13124
13125 * xterm.h (struct x_bitmap_record): New member have_mask.
13126
13127 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
13128 to 0.
13129 (x_create_bitmap_from_file): Likewise.
13130 (x_destroy_bitmap): Check have_mask member before freeing a mask.
13131 (x_destroy_all_bitmaps): Likewise.
13132 (x_create_bitmap_mask): Set have_mask member to 1.
13133
13134 2003-07-30 Richard M. Stallman <rms@gnu.org>
13135
13136 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
13137
13138 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13139
13140 * gtkutil.c (xg_mark_data): Update calls to mark_object.
13141
13142 2003-07-29 Richard M. Stallman <rms@gnu.org>
13143
13144 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
13145 Conditionalize XIM code on HAVE_XIM.
13146
13147 * fns.c (Fclear_string): New function.
13148 (syms_of_fns): defsubr it.
13149
13150 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13151
13152 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
13153
13154 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
13155
13156 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
13157
13158 * buffer.c (delete_all_overlays): New function.
13159 * buffer.h (delete_all_overlays): Declare.
13160 * coding.c (run_pre_post_conversion_on_str):
13161 * print.c (temp_output_buffer_setup):
13162 * fileio.c (Finsert_file_contents):
13163 * minibuf.c (get_minibuffer): Use it.
13164
13165 2003-07-22 Andrew Choi <akochoi@shaw.ca>
13166
13167 * unexmacosx.c (unexec_regions_sort_compare):
13168 (unexec_regions_merge): New functions. Sort and merge unexec
13169 regions before dumping them.
13170
13171 2003-07-22 Dave Love <fx@gnu.org>
13172
13173 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
13174
13175 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
13176
13177 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
13178 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
13179 MARKBIT as the gcmarkbit for strings.
13180
13181 2003-07-21 Richard M. Stallman <rms@gnu.org>
13182
13183 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
13184
13185 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
13186 (syms_of_fns): Corresponding change.
13187
13188 * alloc.c (syms_of_alloc): Doc fixes.
13189
13190 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
13191
13192 * s/netbsd.h: Use -Wl syntax.
13193
13194 2003-07-17 Richard M. Stallman <rms@gnu.org>
13195
13196 * xterm.c (xim_initialize): Redo 6/24 change.
13197
13198 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
13199
13200 * buffer.c (copy_overlays): Use EMACS_INT for positions.
13201 (Fswitch_to_buffer): Don't signal an error when switching to the same
13202 buffer in a dedicated window.
13203
13204 * alloc.c: Use bitmaps for cons, as was done for floats.
13205 (init_float, init_cons): Let the normal code allocate the first block.
13206 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
13207 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
13208 New macros.
13209 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
13210 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
13211 (live_cons_p): Check the pointer is not past the `conses' array.
13212 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
13213 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
13214 (survives_gc_p): Use CONS_MARKED_P and simplify.
13215 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
13216
13217 2003-07-13 Paul Eggert <eggert@twinsun.com>
13218
13219 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
13220 puts it into BSS instead, at least on Solaris 8 and 9.
13221 This is a valid optimization, and it may occur on other platforms,
13222 so Emacs should not assume that initializing a static variable to
13223 zero puts it into data.
13224 * alloc.c (pure, staticvec):
13225 Initialize these arrays to nonzero, so that they're not
13226 put into BSS by that optimization.
13227
13228 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
13229
13230 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
13231 (lisp_align_malloc): Use posix_memalign is available.
13232 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
13233 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
13234 for consistency. Update users.
13235
13236 2003-07-13 Richard M. Stallman <rms@gnu.org>
13237
13238 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
13239
13240 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
13241
13242 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
13243 and use the Gtk+ function gtk_window_icon_from_file if available.
13244
13245 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
13246 handle mask of bitmaps.
13247 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
13248 mask property.
13249 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
13250
13251 * xterm.h (xg_set_icon): New function.
13252
13253 2003-07-12 Paul Eggert <eggert@twinsun.com>
13254
13255 * unexelf.c (unexec): Consider a section to precede the .bss
13256 section if its addresses overlap that of .bss.
13257
13258 2003-07-12 Richard M. Stallman <rms@gnu.org>
13259
13260 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
13261
13262 * config.in (HAVE_CRTIN): Add #undef.
13263 (INLINE): Really inline only if OPTIMIZE is defined.
13264
13265 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
13266 END_FILES_1.
13267 (START_FILES_1, END_FILES_1): New macros (conditional).
13268 (LD_SWITCH_SYSTEM_TEMACS): Define.
13269
13270 * s/openbsd.h: Don't include bsd4-3.h.
13271 (TERMINFO): Define.
13272 (LIBS_TERMCAP): Define.
13273 (LD_SWITCH_SYSTEM): Define (two definitions).
13274
13275 * xfns.c: Include libpng/png.h instead of png.h.
13276
13277 2003-07-11 Andreas Schwab <schwab@suse.de>
13278
13279 * buffer.c (modify_overlay): Update prototype.
13280 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
13281 Likewise.
13282
13283 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13284
13285 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
13286 (struct interval): Move to intervals.h.
13287 (struct Lisp_Marker): Use EMACS_INT for position info.
13288 (forward_point): Remove prototype of defunct function.
13289 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
13290 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
13291 (syms_of_textprop, set_text_properties): Remove prototypes that are
13292 already in intervals.h.
13293
13294 * intervals.h (struct interval): Move from lisp.h.
13295 Use EMACS_INT for position and size info.
13296
13297 * coding.c: Include intervals.h for Fset_text_properties.
13298
13299 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
13300 position and length information.
13301
13302 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13303
13304 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
13305 position and length information.
13306
13307 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13308
13309 Change overlays_after and overlays_before so the overlays themselves
13310 are linked into lists, rather than using cons cells. After all each
13311 Lisp_Misc already occupies 5 words, so we can add a `next' field to
13312 Lisp_Overlay for free and save up one cons cell per overlay (not
13313 to mention one indirection when traversing the list of overlay).
13314
13315 * lisp.h (struct Lisp_Overlay): New field `next'.
13316
13317 * buffer.h (struct buffer): Change overlays_before and overlays_after
13318 from Lisp lists of overlays to pointers to overlays.
13319
13320 * buffer.c (overlay_strings, recenter_overlay_lists):
13321 Fix typo in eassert in last commit.
13322 (unchain_overlay): New function.
13323 (add_overlay_mod_hooklist): Use AREF.
13324 (copy_overlays, reset_buffer, overlays_at, overlays_in)
13325 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
13326 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
13327 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
13328 (report_overlay_modification, evaporate_overlays, init_buffer_once):
13329 Adjust to new type of overlays_(before|after).
13330
13331 * alloc.c (mark_object): Mark the new `next' field of overlays.
13332 (mark_buffer): Manually mark the overlays_(after|before) fields.
13333
13334 * coding.c (run_pre_post_conversion_on_str):
13335 * editfns.c (overlays_around):
13336 * xdisp.c (load_overlay_strings):
13337 * fileio.c (Finsert_file_contents):
13338 * indent.c (current_column):
13339 * insdel.c (signal_before_change, signal_after_change):
13340 * intervals.c (set_point_both):
13341 * print.c (temp_output_buffer_setup): Use new type for
13342 overlays_(before|after).
13343
13344 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
13345
13346 * buffer.c (report_overlay_modification): Don't run hooks while
13347 traversing the list of overlays.
13348
13349 * buffer.h (struct buffer): Use an int for overlay_center.
13350 (overlays_at, evaporate_overlays, recenter_overlay_lists)
13351 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
13352
13353 * buffer.c (reset_buffer, recenter_overlay_lists)
13354 (adjust_overlays_for_insert, adjust_overlays_for_delete)
13355 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
13356 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
13357 (overlays_at, evaporate_overlays, recenter_overlay_lists)
13358 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
13359
13360 * xdisp.c (fast_find_position): Remove unused var.
13361
13362 * cmds.c (Qexpand_abbrev): New sym.
13363 (syms_of_cmds): Initialize it.
13364 (internal_self_insert): Use it to call expand-abbrev.
13365
13366 2003-07-09 Kim F. Storm <storm@cua.dk>
13367
13368 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
13369 was configured with --without-xim.
13370 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
13371
13372 2003-07-07 Richard M. Stallman <rms@gnu.org>
13373
13374 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
13375
13376 * alloc.c (Fgarbage_collect): Doc fix.
13377
13378 2003-07-07 Nozomu Ando <nand@mac.com>
13379
13380 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
13381
13382 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
13383
13384 * minibuf.c (read_minibuf): UNGCPRO before returning.
13385 (Ftry_completion, Fall_completions): Doc fix.
13386
13387 * alloc.c (live_float_p): Check that p is not past the `floats' array,
13388 now that `floats' is not the last element of the struct any more.
13389
13390 2003-07-06 Jason Rumney <jasonr@gnu.org>
13391
13392 * w32term.h (ClipboardSequence_Proc): New type.
13393
13394 * w32fns.c (clipboard_sequence_fn): New variable.
13395 (globals_of_w32fns): Initialize it.
13396
13397 * w32select.c (last_clipboard_sequence_number): New variable.
13398 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
13399 number if possible.
13400
13401 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
13402
13403 * m/amdx86-64.h (MARKBIT):
13404 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
13405 MARKBIT and ARRAY_MARK_FLAG any more.
13406
13407 * m/hp800.h (XSETMARKBIT):
13408 * m/sr2k.h (XSETMARKBIT):
13409 * lisp.h (XSETMARKBIT): Remove unused macro.
13410
13411 * lisp.h (mark_object): Change prototype.
13412
13413 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
13414 (last_marked): Change accordingly.
13415 (mark_interval, mark_maybe_object, mark_maybe_pointer)
13416 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
13417 (mark_buffer): Update calls to mark_object.
13418
13419 * bytecode.c (mark_byte_stack):
13420 * fns.c (sweep_weak_table):
13421 * keyboard.c (mark_kboards): Update calls to mark_object.
13422
13423 2003-07-06 Jason Rumney <jasonr@gnu.org>
13424
13425 * alloc.c (struct ablock): Only include padding when there is some.
13426
13427 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
13428
13429 * alloc.c (ALIGN): Add casts to simplify usage.
13430 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
13431 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
13432 (struct ablock, struct ablocks): New types.
13433 (free_ablock): New global var.
13434 (lisp_align_malloc, lisp_align_free): New functions.
13435 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
13436 (struct float_block): Reorder and add gcmarkbits.
13437 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
13438 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
13439 (init_float, make_float): Use lisp_align_malloc.
13440 (free_float, live_float_p): Don't use `type' any more.
13441 (make_float): Use FLOAT_UNMARK to access to mark bit.
13442 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
13443 Use FLOAT_MARKED_P to access the mark bit.
13444 (pure_alloc): Simplify use of ALIGN.
13445 (mark_object): Use FLOAT_MARK to access the mark bit.
13446 (gc_sweep): Use new macros to access the float's mark bit.
13447 (init_alloc_once): Init free_ablock.
13448
13449 * lisp.h (struct Lisp_Float): Remove unused field `type'.
13450
13451 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
13452
13453 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
13454 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
13455 (allocate_buffer): Move.
13456 (string_bytes): Don't mask markbit of `size_byte'.
13457 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
13458 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
13459 Use the `size' field of buffers (rather than the `name' field) for
13460 the mark bit, as is done for all other vectorlike objects.
13461 Use the new macros to access the mark bit of vectorlike objects.
13462
13463 2003-06-26 Richard M. Stallman <rms@gnu.org>
13464
13465 * puresize.h (BASE_PURESIZE): Increment base size.
13466
13467 * xdisp.c (fast_find_position): Enable Gerd's new definition.
13468
13469 * xterm.c (xim_initialize): Undo previous change.
13470
13471 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
13472
13473 * alloc.c (survives_gc_p): Simplify.
13474
13475 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
13476
13477 * window.c (Fset_window_dedicated_p): Simplify.
13478 (display_buffer_1): Don't raise the win from which minibuf was entered.
13479 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
13480 (Fminibuffer_selected_window): Simplify.
13481
13482 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
13483
13484 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
13485 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
13486
13487 * insdel.c (check_markers, adjust_markers_for_delete)
13488 (adjust_markers_for_insert, adjust_markers_for_replace)
13489 (prepare_to_modify_buffer, RESTORE_VALUE):
13490 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
13491 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
13492 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
13493 * alloc.c (Fmake_marker, free_marker, gc_sweep):
13494 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
13495 * editfns.c (save_excursion_restore, transpose_markers):
13496 * window.c (delete_window):
13497 * xdisp.c (message_dolog): Update for new types.
13498
13499 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13500
13501 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
13502 (realize_default_face): Use default_face_done_p for the force_p
13503 argument to set_lface_from_font_name. Set default_face_done_p to one.
13504
13505 * frame.c (make_frame): Initialize default_face_done_p.
13506
13507 * frame.h (struct frame): Add default_face_done_p.
13508
13509 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
13510 will be defined.
13511
13512 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
13513
13514 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
13515 Initialize the new field `gcmarkbit'.
13516 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
13517 (mark_interval_tree): Don't mark the tree separately from the nodes.
13518 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
13519 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
13520 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
13521
13522 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
13523 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
13524 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
13525 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
13526 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
13527
13528 2003-06-24 Dave Love <fx@gnu.org>
13529
13530 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
13531
13532 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
13533 from gnulib.
13534
13535 2003-06-21 Richard M. Stallman <rms@gnu.org>
13536
13537 * fileio.c (Fwrite_region): Alternate messages
13538 for append and partial write.
13539
13540 * keyboard.c (read_key_sequence): When converting upcase fn key to
13541 downcase, update fkey and keytran so `backspace' gets translated.
13542
13543 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
13544
13545 * process.c (wait_reading_process_input): Don't signal SIGIO
13546 in batch mode.
13547
13548 2003-06-17 Kenichi Handa <handa@m17n.org>
13549
13550 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
13551 composite.h.
13552
13553 * xselect.c: Don't include charset.h, coding.h, composite.h.
13554 (Qforeign_selection): New variable.
13555 (syms_of_xselect): Intern and static it.
13556 (selection_data_to_lisp_data): Return a unibyte string made from
13557 data with `foreign-selection' text property.
13558
13559 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
13560
13561 * termhooks.h (EVENT_INIT): New macro.
13562
13563 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
13564
13565 * alloc.c (mark_kboards): Move to keyboard.c.
13566
13567 * keyboard.c (record_asynch_buffer_change, read_avail_input):
13568 * xterm.c (x_dispatch_event):
13569 * xmenu.c (find_and_call_menu_selection):
13570 * xdisp.c (handle_tool_bar_click):
13571 * w32menu.c (menubar_selection_callback):
13572 * sysdep.c (kbd_input_ast, read_input_waiting):
13573 * msdos.c (dos_rawgetc):
13574 * macterm.c (mac_check_for_quit_char):
13575 * macmenu.c (menubar_selection_callback):
13576 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
13577 data to kbd_buffer_store_event.
13578
13579 2003-06-15 Kim F. Storm <storm@cua.dk>
13580
13581 * xdisp.c (x_fix_overlapping_area): Always use area relative X
13582 to fix redisplay problem with tall characters (such as \e,AC\e(B).
13583
13584 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
13585
13586 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
13587
13588 2003-06-12 Kenichi Handa <handa@m17n.org>
13589
13590 * fileio.c (Fwrite_region): Save and restore restriction.
13591
13592 2003-06-12 Dave Love <fx@gnu.org>
13593
13594 * alloca.c (alloca): Declare arg as size_t.
13595
13596 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
13597 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
13598
13599 2003-06-11 Dave Love <fx@gnu.org>
13600
13601 * search.c (shrink_regexp_cache): Use xrealloc.
13602 (syms_of_search): Use xmalloc.
13603
13604 2003-06-10 Kim F. Storm <storm@cua.dk>
13605
13606 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
13607 Adjust phys_cursor.x to be relative to window box, rather than
13608 text area before checking -- to ensure cursor is redrawn when
13609 exposing window.
13610 Note: This also fixes a similar (older) bug if display margins
13611 are present.
13612
13613 2003-06-06 Kenichi Handa <handa@m17n.org>
13614
13615 * coding.c (encoding_buffer_size): If coding->type is
13616 coding_type_ccl, double magnification on CRLF encoding.
13617
13618 2003-06-06 Jason Rumney <jasonr@gnu.org>
13619
13620 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
13621 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
13622
13623 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
13624 Mac too.
13625
13626 2003-06-05 Dave Love <fx@gnu.org>
13627
13628 * strftime.c: Merge changes from gnulib.
13629
13630 * mktime.c (__mktime_internal): Merge changes from gnulib
13631 involving year 69 and dst2.
13632
13633 Changes to merge with gnulib version and be consistent with the
13634 autoconf test:
13635
13636 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
13637 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
13638 [HAVE_LOCALE_H]: Include locale.h.
13639 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
13640
13641 2003-06-05 Kim F. Storm <storm@cua.dk>
13642
13643 * window.c (coordinates_in_window): Convert X and Y to window
13644 relative coordinates inside mode-line and header-line parts.
13645 Convert X and Y to margin area relative coordinates inside left
13646 and right display margin parts.
13647
13648 2003-06-05 Jason Rumney <jasonr@gnu.org>
13649
13650 * w32fns.c (add_system_logical_colors_to_map): New function.
13651 (Fx_open_connection): Use it.
13652
13653 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
13654
13655 * process.c (allocate_pty): Revert part of the previous patch.
13656 (Faccept_process_output): Simplify.
13657
13658 2003-06-04 Jason Rumney <jasonr@gnu.org>
13659
13660 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
13661
13662 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
13663 (lispy_mouse_wheel_names): Remove.
13664 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
13665 Always define drag_and_drop_syms.
13666
13667 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
13668 WHEEL_EVENT events.
13669
13670 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
13671
13672 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
13673
13674 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
13675
13676 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13677
13678 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
13679 menu item label.
13680
13681 2003-06-03 Richard M. Stallman <rms@gnu.org>
13682
13683 * window.c (Fwindow_edges): Doc fix.
13684 (Fwindow_pixel_edges, Fwindow_inside_edges)
13685 (Fwindow_inside_pixel_edges): New functions.
13686 (syms_of_window): defsubr them.
13687
13688 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
13689 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
13690
13691 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
13692
13693 * dispnew.c (Fsit_for): Don't lie about the number of args.
13694
13695 2003-06-02 Dave Love <fx@gnu.org>
13696
13697 * callproc.c: Use HAVE_FCNTL_H, not USG5.
13698 (syms_of_callproc) <process-environment>: Doc fix.
13699
13700 * doc.c: Use HAVE_FCNTL_H, not USG5.
13701
13702 * xfaces.c (font_rescale_ratio): Fix for K&R.
13703
13704 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
13705
13706 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
13707
13708 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
13709
13710 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
13711 (xg_create_frame_widgets): Use ENCODE_UTF_8.
13712
13713 * xterm.c (Qutf_8): Move to coding.c
13714
13715 * xmenu.c (ENCODE_MENU_STRING): New.
13716 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
13717 Use it.
13718
13719 * coding.h (ENCODE_UTF_8): New.
13720 (Qutf_8): Declare.
13721
13722 * coding.c (Qutf_8): New.
13723 (syms_of_coding): Intern it.
13724
13725 * fns.c: Doc fixes.
13726
13727 2003-06-02 Kenichi Handa <handa@m17n.org>
13728
13729 * buffer.c (Fset_buffer_multibyte): Fix previous change.
13730
13731 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
13732
13733 * lread.c (openp): Make sure STR is a string.
13734
13735 2003-06-01 David Ponce <david@dponce.com>
13736
13737 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
13738 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
13739
13740 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
13741 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
13742 (discard_mouse_events): Discard WHEEL_EVENT events too.
13743 (lispy_wheel_names, wheel_syms): New.
13744 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
13745 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
13746 (make_lispy_event): Add WHEEL_EVENT handler.
13747
13748 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
13749 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
13750 WHEEL_EVENT events.
13751
13752 2003-05-31 John Paul Wallington <jpw@gnu.org>
13753
13754 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
13755 timer are in lisp/emacs-lisp.
13756
13757 2003-05-31 Kenichi Handa <handa@m17n.org>
13758
13759 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
13760 region when a buffer is changed to unibyte.
13761
13762 * charset.h (VALID_LEADING_CODE_P): New macro.
13763 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
13764
13765 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
13766 is nonzero, accept multibyte form of eight-bit-control chars.
13767 (decode_composition_emacs_mule): Likewise.
13768 (decode_coding_emacs_mule): Likewise.
13769 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
13770 multibyte form of eight-bit-control chars.
13771
13772 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
13773 (Finsert_file_contents): If coding-system-for-read is bound to
13774 Qauto_save_coding, use the coding system emacs-mule with special
13775 setting for recovering a file.
13776 (choose_write_coding_system): On auto saving, use the coding
13777 system emacs-mule with special setting for auto saving.
13778 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
13779
13780 2003-05-30 Kenichi Handa <handa@m17n.org>
13781
13782 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
13783 properly before calling ccl_driver.
13784
13785 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
13786
13787 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
13788 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
13789 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
13790
13791 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
13792
13793 * xfaces.c (realize_default_face): Do not abort if lface is
13794 non-existent - reverts change from 2003-05-19.
13795
13796 2003-05-29 Kenichi Handa <handa@m17n.org>
13797
13798 * coding.c (decode_coding_iso2022): Pay attention to the byte
13799 sequence of CTEXT extended segment, and retain those bytes as is.
13800
13801 2003-05-28 Kenichi Handa <handa@m17n.org>
13802
13803 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
13804 of CODING_REPLACEMENT_CHARACTER.
13805 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
13806 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
13807 check this flag on encoding.
13808 (encode_coding_sjis_big5):
13809 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
13810 (Fset_terminal_coding_system_internal):
13811 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
13812 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
13813
13814 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
13815 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13816 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
13817
13818 2003-05-28 Richard M. Stallman <rms@gnu.org>
13819
13820 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
13821
13822 * eval.c (unbind_to): Move init of this_binding to separate statement.
13823
13824 2003-05-28 Kim F. Storm <storm@cua.dk>
13825
13826 * xdisp.c (expose_window): Fix error in calculation of
13827 window relative coordinates of area to redisplay.
13828
13829 2003-05-27 Jason Rumney <jasonr@gnu.org>
13830
13831 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
13832
13833 2003-05-27 David Ponce <david@dponce.com>
13834
13835 Handle W32 mouse wheel events as mouse click events, like in X.
13836
13837 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
13838 MOUSE_WHEEL_EVENT anymore.
13839
13840 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
13841 Scrolling down/up the mouse wheel is respectively mapped to mouse
13842 button 4 and 5.
13843 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
13844 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
13845 WM_MOUSEWHEEL events.
13846
13847 2003-05-27 Andreas Schwab <schwab@suse.de>
13848
13849 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
13850
13851 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
13852 partially visible line.
13853
13854 * alloc.c (Fgarbage_collect): Fix last change.
13855
13856 2003-05-26 John Paul Wallington <jpw@gnu.org>
13857
13858 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
13859
13860 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
13861
13862 * window.c (Fset_window_buffer): Add type of `keep_margins'.
13863 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
13864
13865 * window.h (window_box_text_cols): Declare.
13866
13867 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
13868 (x_draw_vertical_border): Remove unused var `f'.
13869
13870 * xfaces.c (build_scalable_font_name): Remove `unused var
13871 pixel_size' warning.
13872
13873 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
13874
13875 * unexelf.c (unexec): Remove `unused var n' warning.
13876
13877 * strftime.c (my_strftime_localtime_r): Remove `defined but
13878 unused' warning.
13879
13880 * process.c (allocate_pty): Remove `unused var stb' and
13881 `cp might be used uninitialized' warnings.
13882
13883 * dispnew.c (mode_line_string): Remove unused var `f'.
13884
13885 * coding.c (find_safe_codings): Remove unused var `i'.
13886
13887 * bytecode.c (Fbyte_code): Remove `unused val' warning.
13888
13889 * buffer.c (Fkill_buffer): Remove unused var `list'.
13890
13891 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
13892
13893 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13894
13895 * frame.c (make_frame): Condition want_fullscreen with
13896 HAVE_WINDOW_SYSTEM.
13897
13898 2003-05-25 Juanma Barranquero <lektu@terra.es>
13899
13900 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
13901 (Fwindow_scroll_bars): Fix typo in docstring.
13902
13903 2003-05-24 Kim F. Storm <storm@cua.dk>
13904
13905 The following changes serve several purposes:
13906
13907 1) Swap the position of fringes and display margins in windows, i.e.
13908 the fringes are now displayed between the margins and the text area
13909 (by default).
13910
13911 2) Allow fringe and scroll bar parameters to be set per-buffer and
13912 per-window (like display margins). Such settings are now stored
13913 in window configurations, preserved when frames are resized, and
13914 copied when windows are split vertically or horizontally.
13915 Several bugs related to display margins have been fixed.
13916
13917 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
13918
13919 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
13920 rather than FRAME_WIDTH (FRAME_FONT (f)).
13921
13922 5) Introduce a consistent naming of variables, members and macros
13923 depending on whether their value is measured in pixels or in
13924 canonical columns/lines. Pixel dimensions are named *_width and
13925 *_height, while canonical columns/lines are named *_cols and
13926 *_lines. Pixel positions are named *_x and *_y, while column/line
13927 positions are named *_col and *_line.
13928
13929 6) Consolidate more of the X, W32, and MAC gui code by moving
13930 common data into struct frame, and generalize it for the non-gui
13931 case by using suitable defaults.
13932
13933 7) Cleanup and consolidate the macros controlling frame and window
13934 layout into frame.h and window.h, and generalize the use of the
13935 various window_box_* functions (enhanced to handle the new fringe
13936 position and the per-window fringe and scroll bar settings).
13937
13938 * frame.h (struct frame): Rename members height to text_lines,
13939 width to text_cols, window_height to total_lines, window_width to
13940 total_cols, new_height to new_text_lines, new_width to
13941 new_text_cols. All uses changed.
13942 (struct frame): New members which consolidate common members of
13943 x_output, w32_output, and mac_output structures: left_pos,
13944 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
13945 win_gravity, size_hint_flags, border_width, internal_border_width,
13946 line_height, fringe_cols, left_fringe_width, right_fringe_width,
13947 want_fullscreen. All uses changed.
13948 (struct frame): New member column_width contaning the canonical
13949 column width, analogue to line_height. All uses changed.
13950 (struct frame): Rename members scroll_bar_pixel_width to
13951 config_scroll_bar_width, and scroll_bar_cols to
13952 config_scroll_bar_cols. All uses changed.
13953 (struct frame): New member scroll_bar_actual_width which
13954 consolidates and renames the vertical_scroll_bar_extra member of
13955 x_output, w32_output, and mac_output structures. All uses changed.
13956 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
13957 from x/w32/macterm.h files. All uses changed. Also change code
13958 which referred to f->output_data...->pixel_height.
13959 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
13960 from x/w32/macterm.h files. All uses changed. Also change code
13961 which referred to f->output_data...->pixel_width.
13962 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
13963 Also change code which referred to f->height.
13964 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
13965 Also change code which referred to f->width.
13966 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
13967 to update new_text_lines and new_text_cols members directly.
13968 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
13969 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
13970 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
13971 FRAME_SCROLL_BAR_COLS. All uses changed.
13972 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
13973 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
13974 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
13975 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
13976 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
13977 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
13978 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
13979 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
13980 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
13981 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
13982 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
13983 Unconditionally return line_height member (it now has proper value
13984 also for non-window frames).
13985 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
13986 return new column_width member (rather than the default font width).
13987 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
13988 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
13989 from x/w32/macterm.h files. Unconditionally return corresponding
13990 member of frame structure (they now have proper values also for
13991 non-window frames).
13992 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
13993 Calculate return value from left and right widths.
13994 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
13995 internal_border_width member (has proper value for non-window frame).
13996 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
13997 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
13998 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
13999 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
14000 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
14001 consolidated from xterm.h, macterm.h, and w32term.h.
14002 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
14003 consolidated from xterm.h, macterm.h, and w32term.h.
14004 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
14005 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
14006 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
14007 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
14008 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
14009 consolidated from x/mac/w32term.h.
14010 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
14011 consolidated from x/mac/w32term.h.
14012 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
14013 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
14014 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
14015 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
14016
14017 * window.h (struct window): Rename members left to left_col,
14018 top to top_line, height to total_lines, width to total_cols,
14019 left_margin_width to left_margin_cols, right_margin_width to
14020 right_margin_cols, orig_height to orig_total_lines, orig_top to
14021 orig_top_line. All uses changed.
14022 (struct window): New members left_fringe_width, right_fringe_width,
14023 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
14024 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
14025 New macros primarily used to simplify other macros.
14026 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
14027 referred to XINT (w->width).
14028 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
14029 referred to XINT (w->height).
14030 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
14031 referred to XINT (w->width) * canon_x_unit.
14032 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
14033 referred to XINT (w->height) * canon_y_unit.
14034 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
14035 referred to XINT (w->left).
14036 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
14037 all uses and code that referred to XINT (w->left) + XINT (w->width).
14038 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
14039 referred to XINT (w->top).
14040 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
14041 referred to XINT (w->top) + XINT (w->height).
14042 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
14043 referred to XINT (w->left) * canon_x_unit.
14044 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
14045 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
14046 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
14047 referred to XINT (w->top) * canon_y_unit.
14048 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
14049 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
14050 (WINDOW_LEFTMOST_P): New macro.
14051 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
14052 All uses changed.
14053 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
14054 All uses changed.
14055 (WINDOW_BOX_LEFT_EDGE_X): Rename from
14056 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
14057 Do not exclude left fringe width.
14058 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
14059 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
14060 Do not exclude fringe widths.
14061 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
14062 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
14063 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
14064 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
14065 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
14066 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
14067 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
14068 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
14069 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
14070 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
14071 New macros. Change code which referenced corresponding
14072 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
14073 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
14074 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
14075 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
14076 allow per-window scroll-bar settings.
14077 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
14078 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
14079 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
14080 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
14081 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
14082 FRAME_SCROLL_BAR_WIDTH.
14083 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
14084 (WINDOW_SCROLL_BAR_AREA_X): New macros.
14085 (WINDOW_HEADER_LINE_HEIGHT): Rename from
14086 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
14087 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
14088 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
14089 (WINDOW_BOX_TEXT_HEIGHT): Rename from
14090 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
14091 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
14092 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
14093 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
14094 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
14095 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
14096 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
14097 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
14098 (window_from_coordinates): Update prototype.
14099 (Fset_window_buffer): Update EXFUN.
14100 (set_window_buffer): Update prototype.
14101
14102 * dispextern.h (struct glyph_matrix): Rename members window_left_x
14103 to window_left_col, window_top_y to window_top_line. All uses
14104 changed.
14105 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
14106 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
14107 internal_border_width is now set to 0 for non-window frames.
14108 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
14109 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
14110 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
14111 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
14112 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
14113 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
14114 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
14115 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
14116 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
14117 Move to window.h and renamed [see window.h changes].
14118 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
14119 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
14120 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
14121 Use WINDOW_TOTAL_LINES.
14122 (frame_update_line_height): Remove prototype.
14123
14124 * buffer.h (struct buffer): Rename members measured in columns:
14125 left_margin_width to left_margin_cols, right_margin_width to
14126 right_margin_cols. All uses changed.
14127 New members left_fringe_width, right_fringe_width,
14128 fringes_outside_margins for per-buffer fringe settings.
14129 New members scroll_bar_width and vertical_scroll_bar_type for
14130 per-buffer scroll bar settings.
14131
14132 * buffer.c (init_buffer_once): Set buffer_defaults and
14133 buffer_local_flags for new buffer-local variables
14134 left_fringe_width, right_fringe_width, fringes_outside_margins,
14135 scroll_bar_width, and vertical_scroll_bar_type.
14136 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
14137 default-* variables for them.
14138
14139 * dispnew.c: Make (many) trivial substitutions for renamed and
14140 new macros in dispextern.h, frame.h and window.h.
14141 (mode_line_string): No need to adjust width for mode lines, as it
14142 is already adjusted by the caller.
14143 (marginal_area_string): Handle fringes inside/outside margins.
14144
14145 * frame.c: Make (many) trivial substitutions for renamed and
14146 new macros in dispextern.h, frame.h and window.h.
14147 (make_frame): Initialize left_fringe_width, right_fringe_width,
14148 fringe_cols, scroll_bar_actual_width, border_width,
14149 internal_border_width, column_width, line_height, x_pixels_diff,
14150 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
14151 members with values suitable for a non-window frames.
14152
14153 * gtkutil.c: Make (many) trivial substitutions for renamed and
14154 new macros in dispextern.h, frame.h and window.h.
14155
14156 * indent.c: Make (few) trivial substitutions for renamed and
14157 new macros in dispextern.h, frame.h and window.h.
14158
14159 * keyboard.c: Make (many) trivial substitutions for renamed and
14160 new macros in dispextern.h, frame.h and window.h.
14161 (make_lispy_event): Use window positions returned from
14162 window_from_coordinates when constructing the lisp event for
14163 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
14164 (incorrect) values locally.
14165 (make_lispy_movement): Use window positions returned from
14166 window_from_coordinates when constructing the lisp event, rather
14167 than calculating (incorrect) values locally.
14168
14169 * scroll.c: Make (some) trivial substitutions for renamed and
14170 new macros in dispextern.h, frame.h and window.h.
14171
14172 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
14173 scroll-bars.
14174
14175 * sysdep.c: Make (few) trivial substitutions for renamed and
14176 new macros in dispextern.h, frame.h and window.h.
14177
14178 * term.c: Make (some) trivial substitutions for renamed and
14179 new macros in dispextern.h, frame.h and window.h.
14180
14181 * widget.c: Make (few) trivial substitutions for renamed and
14182 new macros in dispextern.h, frame.h and window.h.
14183
14184 * window.c: Make (many) trivial substitutions for renamed and
14185 new macros in dispextern.h, frame.h and window.h.
14186 (make_window): Initialize new members
14187 left_margin_cols, right_margin_cols, left_fringe_width,
14188 right_fringe_width, fringes_outside_margins, scroll_bar_width,
14189 and vertical_scroll_bar_type.
14190 (coordinates_in_window): Adapt to new fringe/margin positions
14191 and per-window fringes and scroll-bars.
14192 Fix bug related to incorrectly adjusting coordinates by
14193 frame's internal_border_width (the effect normally negible since
14194 the internal_border_width is typically 0 or 1 pixel, but very
14195 noticeable for an internal_border_width of e.g. 25 pixels).
14196 Upon successful return (other than ON_NOTHING), the coordinates
14197 are now always properly converted to window relative for the
14198 given display element.
14199 (window_from_coordinates): Add new parameters wx and wy to
14200 return the window relative x and y position in the returned
14201 window and part. A null arg means, don't return the position.
14202 All callers changed.
14203 (adjust_window_margins): New function which may reduce the width
14204 of the display margins if a window's text area is too small after
14205 resizing or splitting windows.
14206 (size_window): Fix bug that did not account for display margin
14207 widths when checking the minimum width of a window; use
14208 adjust_window_margins.
14209 (set_window_buffer): Call Fset_window_fringes and
14210 Fset_window_scroll_bars to setup per-window elements.
14211 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
14212 existing display margin, fringe widths, and scroll bar settings
14213 (e.g. after splitting a window or resizing the frame).
14214 All callers changed.
14215 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
14216 (Fsplit_window): Duplicate original window's display margin,
14217 fringe, and scroll-bar settings; then call Fset_window_buffer with
14218 KEEP_MARGINS non-nil. This fixes a bug which caused a split
14219 window to only preserve the display margins in one of the windows.
14220 When splitting horizontally, call adjust_window_margins on both
14221 windows to ensure that the text area of the new windows is non too
14222 narrow. This fixes a bug which could cause Emacs to trap if the
14223 width of the split window was less than the width of the display
14224 margins.
14225 (window_box_text_cols): Rename from window_internal_width.
14226 All uses changed. Adapt to per-window fringes and scroll bars.
14227 Fix bug that caused vertical separator to be subtracted also on
14228 window frames. Fix another bug that did not reduce the returned
14229 value by the columns used for display margins.
14230 (window_scroll_line_based): Fix bug related to scrolling too much
14231 when display margins are present (implicitly fixed by the fix to
14232 window_box_text_cols).
14233 (scroll_left, scroll_right): Fix bug related to scrolling too far
14234 by default when display margins are present (implicitly fixed by
14235 the fix to window_box_text_cols).
14236 (struct saved_window): Rename members left to left_col, top to
14237 top_line, width to total_cols, height to total_lines, orig_top to
14238 orig_top_line, orig_height to orig_total_lines. All uses changed.
14239 New members left_margin_cols, right_margin_cols,
14240 left_fringe_width, right_fringe_width, fringes_outside_margins,
14241 scroll_bar_width, and vertical_scroll_bar_type for saving
14242 per-window display elements.
14243 (Fset_window_configuration): Restore display margins, fringes,
14244 and scroll bar settings. This fixes a bug which caused display
14245 margins to be discarded when saving and restoring a window
14246 configuration.
14247 (save_window_save): Save display margins, fringes, and scroll bar
14248 settings. This fixes a bug which caused display margins to be
14249 discarded when saving and restoring a window configuration.
14250 (Fset_window_margins): Do nothing if display margins are not
14251 really changed. Otherwise, call adjust_window_margins to ensure
14252 the text area doesn't get too narrow. This fixes a bug which
14253 could cause Emacs to trap if setting display margins wider than
14254 the width of the window.
14255 (Fset_window_fringes): New defun to allow user to specifically set
14256 this window's fringe widths and position vs. display margins.
14257 (Fwindow_fringes): New defun to return window's actual fringe settings.
14258 (Fset_window_scroll_bars): New defun to allow user to specifically
14259 set this window's scroll bar width and position.
14260 (Fwindow_scroll_bars): New defun to return window's actual scroll
14261 bar settings.
14262 (compare_window_configurations): Also compare display margins,
14263 fringes, and scroll bar settings.
14264 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
14265
14266 * xdisp.c: Make (many) trivial substitutions for renamed and
14267 new macros in dispextern.h, frame.h and window.h.
14268 (window_box_width): Adapt to per-window fringes and scroll bars,
14269 and new fringe vs. display margin position. Note that returned
14270 value is no longer guaranteed to be a whole multiple of the frame
14271 column width, since per-window fringes may now be any width.
14272 (window_box_left_offset): New function like window_box_left, but
14273 value is relative to left border of window (rather than frame).
14274 (window_box_right_offset): New function like window_box_right,
14275 but value is relative to left border of window.
14276 (window_box_left): Adapt to per-window fringes and scroll bars,
14277 and new fringe vs. display margin position. Simplify by using
14278 WINDOW_LEFT_EDGE_X and window_box_left_offset.
14279 (window_box): Allow null args for unnecessary return values;
14280 change/simplify relevant callers.
14281 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
14282 and new fringe vs. display margin position.
14283 Use window_box_left_offset and window_box_right_offset
14284 (get_glyph_string_clip_rect): Adapt to per-window fringes and
14285 scroll bars, and new fringe vs. display margin position.
14286 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
14287 (draw_fringe_bitmap): Rework to handle per-window fringes and new
14288 fringe vs. display margin position.
14289 (hscroll_window_tree): Use window_box_width instead of window_box.
14290 (redisplay_window): Adapt to per-window scroll bars.
14291 (draw_glyphs): Rework to handle per-window fringes and scroll
14292 bars, and new fringe vs. display margin position.
14293 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
14294 (x_clear_end_of_line): Adapt to per-window fringes and scroll
14295 bars, and new fringe vs. display margin position. Fix bug which
14296 increased total width of full_width rows by width of scroll bars
14297 although window's total width already includes that.
14298 (x_fix_overlapping_area): Simplify using window_box_left_offset.
14299 (expose_area): Simplify using window_box_left_offset.
14300 (x_draw_vertical_border): Handle per-window scroll bar settings,
14301 mixing windows with left, right and no scroll bars.
14302
14303 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
14304 where it's used in x_list_fonts (for clarity).
14305 (frame_update_line_height): Remove unused function; functionality
14306 is now done directly when setting the default font in x_set_font.
14307
14308 * xfns.c: Make (many) trivial substitutions for renamed and
14309 new macros in dispextern.h, frame.h and window.h.
14310
14311 * xmenu.c: Make (some) trivial substitutions for renamed and
14312 new macros in dispextern.h, frame.h and window.h.
14313
14314 * xterm.h (struct x_output): Move members left_pos, top_pos,
14315 border_width, pixel_height, pixel_width, line_height,
14316 internal_border_width, vertical_scroll_bar_extra,
14317 left_fringe_width, right_fringe_width, fringe_cols,
14318 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14319 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
14320 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14321 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14322 (PIXEL_WIDTH, PIXEL_HEIGHT)
14323 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14324 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14325 frame.h and renamed [see frame.h changes].
14326 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14327 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14328 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14329 and renamed [see frame.h changes].
14330
14331 * xterm.c: Make (several) trivial substitutions for renamed and
14332 new macros in dispextern.h, frame.h and window.h.
14333 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14334 (scroll_run): Adapt to new fringe position.
14335 (glyph_rect): Use window coordinates returned from
14336 window_from_coordinates rather than frame_to_window_pixel_xy.
14337 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14338 scroll-bars.
14339 (handle_one_xevent): Simplify a USE_GTK conditional.
14340 (x_clip_to_row): Remove superfluous whole_line_p arg and code
14341 (fringes are now inside margins, i.e. always in the clipping area).
14342 All callers changed.
14343 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14344 directly, then call compute_fringe_widths. Don't call
14345 frame_update_line_height.
14346
14347 * w32term.h (struct w32_output): Move members left_pos, top_pos,
14348 border_width, pixel_height, pixel_width, line_height,
14349 internal_border_width, vertical_scroll_bar_extra,
14350 left_fringe_width, right_fringe_width, fringe_cols,
14351 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14352 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
14353 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14354 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14355 (PIXEL_WIDTH, PIXEL_HEIGHT)
14356 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14357 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14358 frame.h and renamed [see frame.h changes].
14359 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14360 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14361 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14362 and renamed [see frame.h changes].
14363
14364 * w32term.c: Make (several) trivial substitutions for renamed and
14365 new macros in dispextern.h, frame.h and window.h.
14366 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14367 (glyph_rect): Use window coordinates returned from
14368 window_from_coordinates rather than frame_to_window_pixel_xy.
14369 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14370 scroll-bars.
14371 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
14372 (fringes are now inside margins, i.e. always in the clipping area).
14373 All callers changed.
14374 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14375 directly, then call compute_fringe_widths. Don't call
14376 frame_update_line_height.
14377
14378 * w32console.c: Make (few) trivial substitutions for renamed and
14379 new macros in dispextern.h, frame.h and window.h.
14380
14381 * w32fns.c: Make (many) trivial substitutions for renamed and
14382 new macros in dispextern.h, frame.h and window.h.
14383
14384 * w32menu.c: Make (few) trivial substitutions for renamed and
14385 new macros in dispextern.h, frame.h and window.h.
14386
14387 * macterm.h (struct mac_output): Move members left_pos, top_pos,
14388 border_width, pixel_height, pixel_width, line_height,
14389 internal_border_width, vertical_scroll_bar_extra,
14390 left_fringe_width, right_fringe_width, fringe_cols,
14391 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14392 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
14393 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14394 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14395 (PIXEL_WIDTH, PIXEL_HEIGHT)
14396 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14397 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14398 frame.h and renamed [see frame.h changes].
14399 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14400 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14401 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14402 and renamed [see frame.h changes].
14403
14404 * macterm.c: Make (several) trivial substitutions for renamed and
14405 new macros in dispextern.h, frame.h and window.h.
14406 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14407 (glyph_rect): Use window coordinates returned from
14408 window_from_coordinates rather than frame_to_window_pixel_xy.
14409 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14410 scroll-bars.
14411 (x_clip_to_row): Remove superfluous whole_line_p arg and code
14412 (fringes are now inside margins, i.e. always in the clipping area).
14413 All callers changed.
14414 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14415 directly, then call compute_fringe_widths. Don't call
14416 frame_update_line_height.
14417
14418 * macfns.c: Make (several) trivial substitutions for renamed and
14419 new macros in dispextern.h, frame.h and window.h.
14420 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
14421
14422 * macmenu.c: Make (few) trivial substitutions for renamed and
14423 new macros in dispextern.h, frame.h and window.h.
14424
14425 * msdos.h (struct x_output): Remove members left_pos, top_pos,
14426 and line_height, and use corresponding new members in struct
14427 frame. All uses changed.
14428 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
14429 superseeded by corresponding macros in frame.h.
14430
14431 * msdos.c: Make (several) trivial substitutions for renamed and
14432 new macros in dispextern.h, frame.h and window.h.
14433 (IT_note_mouse_highlight): Use updated window coordinates returned
14434 by window_from_coordinates, rather than adjusting them locally.
14435 (internal_terminal_init): No need to initialize line_height here;
14436 it now defaults to 1.
14437
14438 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
14439
14440 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
14441 dropping `down' events.
14442
14443 2003-05-24 Andreas Schwab <schwab@suse.de>
14444
14445 * coding.c (find_safe_codings): Fix last change.
14446
14447 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
14448
14449 * xfns.c (x_window): Fix typo from 2003-05-21 change.
14450
14451 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
14452
14453 * xdisp.c (display_mode_element): Increase max depth.
14454 Simplify the error handling code. Use a different error string
14455 for the case where we hit the depth limit.
14456
14457 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
14458
14459 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
14460
14461 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
14462
14463 * intervals.c (get_local_map): Don't get char-property of previous
14464 point any more: get_pos_property already does it and better.
14465
14466 2003-05-21 Dave Love <fx@gnu.org>
14467
14468 [Merged from unicode branch.]
14469
14470 * xfns.c (x_window, x_window): Use use_xim.
14471
14472 * xterm.c (use_xim): Initialize.
14473 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14474 (x_term_init): Maybe set use_xim.
14475
14476 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14477
14478 2003-05-21 Jason Rumney <jasonr@gnu.org>
14479
14480 * unexw32.c (_start): Remove _fmode initialization.
14481
14482 * emacs.c (main) [WINDOWSNT]: Move it here.
14483
14484 2003-05-20 Dave Love <fx@gnu.org>
14485
14486 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
14487
14488 2003-05-19 Richard M. Stallman <rms@gnu.org>
14489
14490 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
14491 as value for QCfont attribute.
14492 (realize_default_face): lface should already exist; crash if not.
14493 Specify 0 for FORCE_P when calling set_lface_from_font_name.
14494
14495 * frame.c (Fignore_event): Doc fix.
14496
14497 2003-05-19 Kenichi Handa <handa@m17n.org>
14498
14499 * coding.c (decode_coding_string): Handle post-read-conversion
14500 even if the coding doesn't require decoding.
14501
14502 2003-05-18 Richard M. Stallman <rms@gnu.org>
14503
14504 * callproc.c (Fcall_process_region): Doc fix.
14505
14506 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
14507
14508 * lread.c (Fload): Print a message if package is obsolete.
14509
14510 * window.c (Fselect_window): Add optional `norecord' arg.
14511 (select_window_1): Fold into Fselect_window.
14512 (select_window_norecord): New function.
14513 (temp_output_buffer_show): Use it. Preserve current buffer.
14514
14515 * window.h (Fselect_window): Update declaration.
14516
14517 * window.c (delete_window, Fother_window, Fset_window_configuration):
14518 * minibuf.c (read_minibuf):
14519 * macterm.c (x_new_focus_frame):
14520 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
14521 * callint.c (Fcall_interactively):
14522 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
14523
14524 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
14525
14526 2003-05-17 David Kastrup <dak@gnu.org>
14527
14528 * process.c (read_process_output): Back out change from 2003-03-09.
14529
14530 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
14531
14532 * editfns.c (get_pos_property): Don't assume that `object' = nil.
14533
14534 * textprop.c (text_property_stickiness): New arg `buffer'.
14535
14536 * intervals.h (text_property_stickiness): New arg `buffer'.
14537 (get_pos_property): Declare.
14538
14539 * intervals.c (get_local_map): Use get_pos_property, to obey
14540 stickiness and empty overlays.
14541 (create_root_interval, graft_intervals_into_buffer): Use BEG.
14542 (merge_properties, intervals_equal, merge_properties_sticky):
14543 Use XCAR, XCDR.
14544 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
14545
14546 2003-05-17 Richard M. Stallman <rms@gnu.org>
14547
14548 * minibuf.c (read_minibuf): If buffer is empty, record the default
14549 in the history.
14550 (Fminibuffer_complete_word): When deleting the overlap, take account
14551 of its real position.
14552
14553 * fns.c (map_char_table): Fix previous change.
14554
14555 * syntax.c (find_defun_start):
14556 When open_paren_in_column_0_is_defun_start,
14557 return beginning of buffer.
14558
14559 * lisp.h (map_char_table): Declare added arg.
14560
14561 * fns.c (map_char_table): New arg TABLE gets the master table.
14562 All calls changed.
14563 Process default and inheritance, resorting to Faref if necessary.
14564
14565 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14566 (Faccessible_keymaps): Pass new arg to map_char_table.
14567
14568 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
14569
14570 * casetab.c (set_case_table): Pass new arg to map_char_table.
14571
14572 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
14573
14574 * lisp.h (specbinding_func): New typedef.
14575 (struct specbinding): Use specbinding_func, to put the `volatile'
14576 in the right place.
14577
14578 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
14579 to avoid GCC warning.
14580
14581 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
14582
14583 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
14584
14585 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
14586
14587 * keyboard.c (apply_modifiers): Don't fill the other cache.
14588
14589 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
14590
14591 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
14592
14593 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
14594 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
14595 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
14596 (Fset_window_configuration, Fcurrent_window_configuration)
14597 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
14598 (Fpos_visible_in_window_p, mark_window_cursors_off)
14599 (window_internal_height, window_internal_width, Frecenter)
14600 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
14601 (replace_buffer_in_all_windows, init_window_once, init_window)
14602 (syms_of_window, keys_of_window): Move from lisp.h.
14603 * lisp.h: Move window.c declarations to window.h.
14604
14605 * bytecode.c: Include window.h.
14606 * emacs.c: Include window.h.
14607
14608 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
14609 (keyremap): Add `parent' field.
14610 (keyremap_step): Use it. Remove `parent' argument.
14611 (read_key_sequence): Setup and use the new `parent' field.
14612
14613 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
14614
14615 * keyboard.c (adjust_point_for_property): Ensure termination.
14616
14617 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
14618
14619 * keyboard.c (follow_key): Remove dead variable `did_meta'.
14620 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
14621 duplicated handling of function-key-map and key-translation-map
14622 in read_key_sequence.
14623 (read_key_sequence): Use them.
14624
14625 * keyboard.c (adjust_point_for_property): Try harder to move point
14626 to the non-sticky end of an invisible property.
14627
14628 * xdisp.c (single_display_prop_intangible_p): Make `space' display
14629 property intangible as well.
14630
14631 2003-05-10 Andreas Schwab <schwab@suse.de>
14632
14633 * xmenu.c (single_menu_item): Change last parameter to void* to
14634 avoid warning.
14635
14636 2003-05-09 Richard M. Stallman <rms@gnu.org>
14637
14638 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
14639 Bind Qinhibit_modification_hooks to t so there will be no GC.
14640 Rename local `tem' to `save_deactivate_mark'.
14641
14642 * eval.c (specpdl_ptr): Declare volatile.
14643 (unbind_to): Copy the whole binding and decrement specpdl_ptr
14644 before doing the work of unbinding it.
14645
14646 * lisp.h (struct specbinding): Declare elements volatile.
14647 (specpdl_ptr): Declare volatile.
14648
14649 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
14650
14651 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
14652 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
14653
14654 2003-05-08 Dave Love <fx@gnu.org>
14655
14656 * coding.c (Vlast_coding_system_used): Doc fix.
14657
14658 2003-05-07 Jason Rumney <jasonr@gnu.org>
14659
14660 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
14661 when system does not support them.
14662
14663 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
14664
14665 * fileio.c (Qwrite_region_annotate_functions): New var.
14666 (build_annotations): Use it to process the global part of the hook.
14667 (syms_of_fileio): Init and staticpro it.
14668
14669 * keyboard.c (safe_run_hooks_error): Display a message instead of
14670 silently ignoring the error.
14671
14672 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
14673
14674 * keyboard.c (input_available_signal): Mark static.
14675 (menu_bar_items): Use map_keymap.
14676 (menu_bar_one_keymap): Remove.
14677 (menu_bar_item): Adjust arglist (for use in map_keymap).
14678 Properly hide a second binding when not both are keymaps.
14679
14680 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
14681 (single_keymap_panes): Use it and map_keymap.
14682 (single_menu_item): Use skp as well.
14683
14684 * keymap.h (map_keymap_function_t): New type.
14685 (map_keymap): Declare.
14686
14687 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
14688 (map_keymap_call, Fmap_keymap): New functions.
14689 (syms_of_keymap): Defsubr map-keymap.
14690
14691 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14692
14693 * gtkutil.c (create_dialog, make_widget_for_menu_item)
14694 (make_menu_item, create_menus, xg_update_menu_item): Don't call
14695 ..._with_mnemonic functions for menu items.
14696
14697 2003-05-01 Kenichi Handa <handa@m17n.org>
14698
14699 * coding.c (coding_system_accept_latin_extra_p): Delete this
14700 function.
14701 (find_safe_codings): Pay attention to
14702 the property tranlsation-table-for-encode of each codings.
14703 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
14704
14705 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
14706
14707 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
14708
14709 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
14710
14711 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
14712
14713 * lisp.h (CHECK): Wrap args in parenthesis.
14714 (specbind): Fix doc: symbol = Qnil is not supported any more.
14715
14716 * bytecode.c (Fbyte_code) <unwind-protect>:
14717 Use Fprogn rather than 0 and Qnil.
14718
14719 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
14720 `double', and `triple' modifiers as well.
14721
14722 2003-04-30 Richard M. Stallman <rms@gnu.org>
14723
14724 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
14725
14726 * alloc.c (abort_on_gc): New variable.
14727 (Fgarbage_collect): Abort if abort_on_gc is set.
14728
14729 * lisp.h (abort_on_gc): Add decl.
14730
14731 * eval.c (Fsignal): Clear abort_on_gc.
14732
14733 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
14734 Reinit FORMAT_START and END before second scan.
14735
14736 * xdisp.c (move_it_vertically_backward): Do the final big else
14737 even if nlines is 0.
14738
14739 * xdisp.c (redisplay_internal): Finish the per-frame loop
14740 even if redisplay is suspended by input.
14741
14742 2003-04-24 Andrew Choi <akochoi@shaw.ca>
14743
14744 * macterm.c (x_list_fonts): Return all fonts that match if
14745 maxnames = -1.
14746
14747 2003-04-25 Kenichi Handa <handa@m17n.org>
14748
14749 * syntax.c (skip_chars): Fix previous change.
14750
14751 2003-04-24 Kenichi Handa <handa@m17n.org>
14752
14753 * syntax.c (skip_chars): Make the code faster by using the common
14754 technique of *p, *stop, and *endp.
14755
14756 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14757
14758 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
14759 tool_bar_items so GTK tool bar expose callback does not access items
14760 being updated.
14761
14762 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
14763
14764 * eval.c (Fapply): Undo last change and add a comment about why.
14765
14766 2003-04-18 Miles Bader <miles@gnu.org>
14767
14768 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
14769 pickier PARSE_MULTIBYTE_SEQ.
14770
14771 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
14772
14773 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
14774 Use XCDR, XCAR, CONSP.
14775 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
14776 (Fapply): Remove unnecessary GCPRO.
14777
14778 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
14779
14780 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
14781
14782 * buffer.h: Don't hardcode BEG==1.
14783
14784 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
14785
14786 2003-04-16 Richard M. Stallman <rms@gnu.org>
14787
14788 * xdisp.c (try_window, try_window_reusing_current_matrix):
14789 When at end of window, set window_end_pos to Z-ZV.
14790
14791 * buffer.c (Foverlay_recenter): Doc fix.
14792
14793 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
14794
14795 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
14796
14797 2003-04-14 Andrew Choi <akochoi@shaw.ca>
14798
14799 * macterm.c (mac_check_for_quit_char): Don't check more often than
14800 once a second.
14801
14802 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
14803
14804 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
14805 specially, so that they can't hide an implicit switch-frame event.
14806 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
14807 (head_table): Use switch-frame as event_kind for select-window.
14808 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
14809
14810 * editfns.c (Fformat): Lisp_Object/int mixup.
14811 (format2): Remove unused var numargs.
14812
14813 2003-04-11 Kenichi Handa <handa@m17n.org>
14814
14815 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
14816 (Qafter_insert_file_set_coding): New variable.
14817 (syms_of_fileio): Initialize and staticpro it. Delete declaration
14818 for after-insert-file-adjust-coding-function.
14819 (Finsert_file_contents): Call Qafter_insert_file_set_coding
14820 instead of Vafter_insert_file_adjust_coding_function.
14821
14822 2003-04-11 Kenichi Handa <handa@m17n.org>
14823
14824 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
14825
14826 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
14827 string. Callers changed.
14828
14829 2003-04-10 Kenichi Handa <handa@m17n.org>
14830
14831 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
14832 (syms_of_fileio): Declare it as a lisp variable.
14833 (Finsert_file_contents):
14834 Call Vafter_insert_file_adjust_coding_function before calling
14835 decode-format.
14836
14837 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14838
14839 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
14840 get GtkAdjustment as widget now is a GtkRange.
14841
14842 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
14843 GtkRange to avoid memory leak.
14844
14845 2003-04-09 Kenichi Handa <handa@m17n.org>
14846
14847 * xfaces.c (Vface_font_rescale_alist): New variable.
14848 (struct font_name): New member rescale_ratio.
14849 (font_rescale_ratio): New function.
14850 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
14851 (better_font_p): On comparing point sized, pay attention to
14852 recale_ratio member of fonts.
14853 (build_scalable_font_name): Reflect font->rescale_ratio in the
14854 font name.
14855 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14856
14857 * lread.c (read1): Before calling index, check if the 2nd
14858 arguemnt is in ASCII range.
14859
14860 2003-04-08 Richard M. Stallman <rms@gnu.org>
14861
14862 * fileio.c (Ffile_symlink_p): Doc fix.
14863
14864 * editfns.c (Fformat): Translate positions of text properties
14865 in the format string to apply them to the result.
14866
14867 * fileio.c (Finsert_file_contents): Doc fix.
14868 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14869
14870 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
14871
14872 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
14873
14874 2003-04-08 Steven Tamm <steventamm@mac.com>
14875
14876 * mac.c (init_mac_osx_environment): Switch libexec and bin so
14877 that self-contained application finds libexec files.
14878
14879 2003-04-08 Kenichi Handa <handa@m17n.org>
14880
14881 * coding.c (code_convert_region_unwind):
14882 Set Vlast_coding_system_used to the argument.
14883 (code_convert_region): If post-read-conversion function changed
14884 the value of last-coding-sytem, keep the new value in
14885 coding->symbol so that it won't be overridden.
14886 (run_pre_post_conversion_on_str): Likewise.
14887 (coding_system_accept_latin_extra_p): New function.
14888 (find_safe_codings): Pay attention to characters registered in
14889 latin-extra-code-table.
14890
14891 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
14892
14893 * Makefile.in (md5.o): Add missing dependency info.
14894
14895 2003-04-06 Richard M. Stallman <rms@gnu.org>
14896
14897 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
14898
14899 * marker.c (verify_bytepos): New function.
14900
14901 * intervals.c (set_intervals_multibyte_1): When becoming
14902 multibyte, adjust right and left child sizes to a whole set of
14903 characters. If an interval gets zero total-length, delete it.
14904 If an interval consists of just its children, delete one of them.
14905
14906 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
14907 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
14908
14909 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
14910 All calls deleted.
14911 (lisp_malloc): Do the work here directly.
14912
14913 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
14914
14915 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
14916 char tables.
14917
14918 2003-04-04 Kenichi Handa <handa@m17n.org>
14919
14920 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
14921 destructively change "%S" to "%s".
14922
14923 2003-04-03 Miles Bader <miles@gnu.org>
14924
14925 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
14926 always set.
14927
14928 2003-04-01 Dave Love <fx@gnu.org>
14929
14930 * xfns.c (xpm_lookup_color): Grok "opaque".
14931
14932 2003-03-31 Andrew Choi <akochoi@shaw.ca>
14933
14934 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
14935 parent window ID.
14936
14937 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
14938
14939 * macterm.h (struct mac_output): Define x_pixels_diff and
14940 y_pixels_diff.
14941
14942 2003-03-31 Juanma Barranquero <lektu@terra.es>
14943
14944 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
14945 blockinput.h and files included from it.
14946
14947 2003-03-31 Kim F. Storm <storm@cua.dk>
14948
14949 The following changes consolidates the common code related to
14950 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
14951 files into frame.c.
14952
14953 * frame.c: Include blockinput.h.
14954 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
14955 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
14956 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
14957 related vars here.
14958 (struct frame_parm_table, frame_parms): New table for describing
14959 frame parameters and their associated Q-variable.
14960 The order of the parameters corresponds to the sequence of the
14961 frame_parm_handlers table in redisplay_interface.
14962 (x_fullscreen_move, x_set_frame_parameters)
14963 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
14964 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
14965 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14966 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
14967 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
14968 Generic functions for processing of frame parameters.
14969 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
14970 (display_x_get_resource, x_get_resource_string): Functions for
14971 generic access to X resources.
14972 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
14973 (x_default_parameter, Fx_parse_geometry): Functions for generic
14974 access to frame parameters.
14975 (x_figure_window_size): Generic calculation of frame size.
14976 Fixed to add space needed for tool bar. Also setup size_hint_flags.
14977 (syms_of_frame): Intern and staticpro frame parameter variables.
14978 Defvar_lisp Vx_resource_class and Vx_resource_name here.
14979 Defsubr Sx_get_resource and Sx_parse_geometry.
14980
14981 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
14982 parameter related vars defined in frame.c.
14983 (EMACS_CLASS): Define here.
14984 (enum FULLSCREEN_*): Define here.
14985 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
14986 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
14987 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
14988 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
14989 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
14990 (x_set_visibility, x_set_autoraise, x_set_autolower)
14991 (x_set_unsplittable, x_set_vertical_scroll_bars)
14992 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
14993 (x_figure_window_size): Add prototypes.
14994
14995 * dispextern.h (frame_parm_handler): New typedef.
14996 (struct redisplay_interface): New member frame_parm_handlers.
14997 (enum resource_types): Move declaration here.
14998 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
14999 (x_default_parameter): Add prototypes.
15000
15001 * window.c: Remove extern decl for frame parameter vars.
15002 (change_window_heights): New generic function;
15003 replaces x_change_window_heights. All users changed.
15004
15005 * window.h (change_window_heights): Add prototype.
15006
15007 * xfaces.c: Remove extern decl for frame parameter vars.
15008
15009 * xterm.h (EMACS_CLASS): Remove. Use generic define.
15010 (struct w32_display_info): Fix type of xrdb member.
15011 (enum FULLSCREEN_*): Remove.
15012 Remove prototypes for generic functions (in frame.h).
15013
15014 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15015 parameters now defined in frame.h and frame.c.
15016 (Vx_resource_name): Remove. Use generic var.
15017 (enum x_frame_parms): Remove (bogus, unused enum).
15018 (check_x_display_info): Make non-static (for frame.c).
15019 (struct x_frame_parm_table, x_frame_parms): Remove.
15020 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15021 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15022 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15023 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15024 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15025 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15026 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15027 Remove. Use generic functions instead.
15028 (enum resource_types): Remove.
15029 (x_set_scroll_bar_default_width): New global function (for frame.c).
15030 (Fx_create_frame): Depend on x_figure_window_size to add space for
15031 toolbar and setup size_hint_flags.
15032 (x_frame_parm_handlers): New table for redisplay_interface.
15033 (syms_of_xfns): Don't intern/staticpro removed vars.
15034
15035 * xterm.c: Remove unnecessary extern declarations.
15036 (x_fullscreen_adjust): Remove. Use generic instead.
15037 (x_redisplay_interface): Add x_frame_parm_handlers member.
15038
15039 * w32gui.h (XrmDatabase): New (dummy) typedef.
15040
15041 * w32term.h (EMACS_CLASS): Remove. Use generic define.
15042 (struct w32_display_info): Fix type of xrdb member.
15043 (enum FULLSCREEN_*): Remove.
15044 (x_fullscreen_adjust): Remove prototype.
15045
15046 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15047 parameters now defined in frame.h and frame.c.
15048 (Vx_resource_name): Remove. Use generic var.
15049 (enum x_frame_parms): Remove (bogus, unused enum).
15050 (check_x_display_info): Make non-static (for frame.c).
15051 (struct x_frame_parm_table, x_frame_parms): Remove.
15052 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15053 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15054 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15055 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15056 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15057 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15058 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15059 Remove. Use generic functions instead.
15060 (enum resource_types): Remove.
15061 (x_set_scroll_bar_default_width): New global function (for frame.c).
15062 (Fx_create_frame): Depend on x_figure_window_size to add space for
15063 toolbar and setup size_hint_flags.
15064 (w32_frame_parm_handlers): New table for redisplay_interface.
15065 (syms_of_w32fns): Don't intern/staticpro removed vars.
15066
15067 * w32term.c: Remove unnecessary extern declarations.
15068 (x_fullscreen_adjust): Remove. Use generic instead.
15069 (x_redisplay_interface): Add w32_frame_parm_handlers member.
15070
15071 * w32reg.c (x_get_string_resource): Use XrmDatabase.
15072
15073 * macgui.h (XrmDatabase): New (dummy) typedef.
15074
15075 * macterm.h (EMACS_CLASS): Remove.
15076 (struct mac_display_info): Add xrdb member.
15077 (struct mac_output): Add want_fullscreen member.
15078
15079 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
15080 parameters now defined in frame.h and frame.c.
15081 (Vx_resource_name): Remove. Use generic var.
15082 (check_x_display_info): Make non-static (for frame.c).
15083 (struct x_frame_parm_table, x_frame_parms): Remove.
15084 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
15085 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
15086 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
15087 (x_change_window_heights, x_set_autoraise, x_set_autolower)
15088 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
15089 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
15090 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
15091 Remove. Use generic functions instead.
15092 (enum resource_types): Remove.
15093 (x_set_scroll_bar_default_width): New global function (for frame.c).
15094 (mac_frame_parm_handlers): New table for redisplay_interface.
15095 (syms_of_macfns): Don't intern/staticpro removed vars.
15096
15097 * macterm.c: Remove unnecessary extern declarations.
15098 (x_redisplay_interface): Add mac_frame_parm_handlers member.
15099
15100 * Makefile.in (frame.o): Add dependency on blockinput.h and files
15101 included from it (atimer.h and systime.h).
15102
15103 2003-03-30 Andreas Schwab <schwab@suse.de>
15104
15105 * xdisp.c (x_insert_glyphs): Fix swapped width and height
15106 parameters for shift_glyphs_for_insert.
15107
15108 * macterm.c (x_redisplay_interface): Add missing entry for
15109 draw_vertical_window_border.
15110
15111 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
15112
15113 * fileio.c (Fexpand_file_name): In the no-handler case, after
15114 expanding, look again for a handler and invoke it. This is needed
15115 for filenames like "/foo/../user@host:/bar/../baz" -- the first
15116 expansion produces "/user@host:/bar/../baz" which needs to be
15117 expanded again for the finame result "/user@host:/baz".
15118
15119 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15120
15121 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
15122 of area to be redrawn for better performance.
15123
15124 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
15125
15126 * xterm.c (take_vertical_position_into_account): Remove.
15127 (xt_action_hook): Call set_vertical_scroll_bar if needed.
15128 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
15129 (xm_scroll_callback, x_create_toolkit_scroll_bar)
15130 (x_set_toolkit_scroll_bar_thumb): Simplify.
15131 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
15132 (XTread_socket): Remove unused var.
15133 (x_make_frame_invisible): Replace goto with else.
15134
15135 * xdisp.c (set_vertical_scroll_bar): New fun.
15136 (redisplay_window): Use it.
15137
15138 2003-03-26 Richard M. Stallman <rms@gnu.org>
15139
15140 * xdisp.c (update_tool_bar): Recompute tool bar if
15141 update_mode_lines is set. Set w->update_mode_line
15142 only if the tool bar contents actually change.
15143 (update_menu_bar): Undo previous change.
15144
15145 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15146
15147 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
15148 (xg_frame_set_char_size): Calculate scroll bar width before frame
15149 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
15150 (xg_separator_p): Check for all documented separator types.
15151 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
15152 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
15153
15154 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
15155 so tool bar gets updated.
15156
15157 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
15158
15159 * data.c (store_symval_forwarding): Re-instate part of the code
15160 that was deleted with too much enthusiasm.
15161
15162 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
15163
15164 * data.c (store_symval_forwarding): Delete special read-only
15165 hack for type == -1, since we now use ->constant instead.
15166 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
15167
15168 * buffer.c (overlays_in): Declare static.
15169 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
15170 `constant' field rather than the variable's `type' field.
15171
15172 2003-03-24 Andrew Choi <akochoi@shaw.ca>
15173
15174 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
15175
15176 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
15177
15178 * fns.c [MAC_OSX]: Do not redefine vector.
15179
15180 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
15181
15182 * macgui.h: Remove definition of No_Cursor.
15183
15184 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
15185
15186 * xdisp.c: Define No_Cursor.
15187 (x_write_glyphs, notice_overwritten_cursor)
15188 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
15189 (note_mouse_highlight): Remove Mac-specific code.
15190 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
15191
15192 2003-03-24 John Paul Wallington <jpw@gnu.org>
15193
15194 * xdisp.c (redisplay_window): If mini window's buffer is not
15195 empty, then redisplay it like other windows.
15196
15197 2003-03-23 Kim F. Storm <storm@cua.dk>
15198
15199 * w32term.c (w32_draw_window_cursor): Fix last change.
15200
15201 2003-03-23 Kenichi Handa <handa@m17n.org>
15202
15203 * alloc.c (make_string_from_bytes, make_specified_string):
15204 Add `const' for the arg CONTENTS.
15205
15206 * lisp.h (make_string_from_bytes, make_specified_string):
15207 Prototypes adjusted.
15208
15209 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15210
15211 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
15212
15213 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
15214 (XG_SB_RANGE): New define.
15215
15216 * gtkutil.c (xg_fixed_handle_expose): New function.
15217 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
15218 expose events.
15219 (xg_update_scrollbar_pos): Take two more arguments, left and width
15220 of scroll bar including borders.
15221 Clear left and right part outside scroll bar separately as some
15222 themes have bars that are not an even number of pixels.
15223 Don't set reallocate_redraws, don't call
15224 gdk_window_process_all_updates.
15225 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
15226 so no need to change it. Calculate size and value with XG_SB_RANGE.
15227
15228 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
15229 Pass left and width of scroll bar including borders to
15230 xg_update_scrollbar_pos.
15231
15232 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
15233
15234 * Makefile.in: Make sure space precedes end-of-line backslashes.
15235
15236 2003-03-22 Kim F. Storm <storm@cua.dk>
15237
15238 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
15239 Add generic versions here. Remove system specific versions
15240 defined elsewhere.
15241
15242 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
15243 Add prototypes.
15244
15245 * xterm.h (STORE_NATIVE_RECT): New macro.
15246
15247 2003-03-21 Kim F. Storm <storm@cua.dk>
15248
15249 * xdisp.c (get_glyph_string_clip_rect):
15250 Use FRAME_INTERNAL_BORDER_WIDTH.
15251
15252 * dispextern.h (struct redisplay_interface): Add active_p
15253 argument to draw_window_cursor member. All uses changed.
15254
15255 2003-03-21 Kim F. Storm <storm@cua.dk>
15256
15257 The following changes consolidate code related to writing and
15258 inserting glyphs, exposing frame, the tool bar, the mouse face,
15259 the output cursor, and help echo from xterm.c, w32term.c and
15260 macterm.c into xdisp.c. It also generalizes the use of the
15261 window_part enum instead of using numeric values throughout.
15262
15263 * xdisp.c: Consolidate gui-independent code here.
15264 Include keymap.h.
15265 (Qhelp_echo): Import.
15266 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
15267 (help_echo_string, help_echo_window, help_echo_object)
15268 (previous_help_echo_string, help_echo_pos): Declare here.
15269 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
15270 (estimate_mode_line_height): Define here. Handle windowing
15271 systems directly (without using estimate_mode_line_height_hook).
15272 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
15273 (update_window_cursor, update_cursor_in_window_tree)
15274 (fast_find_position, fast_find_string_pos)
15275 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
15276 (expose_area, expose_line, expose_overlaps, expose_window)
15277 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
15278 declared static as they are only used locally in xdisp.c.
15279 (draw_glyphs): Rename from x_draw_glyphs and make static.
15280 (tool_bar_item_info, notice_overwritten_cursor): Make static.
15281 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
15282 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
15283 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
15284 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
15285 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
15286 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
15287 (note_mouse_highlight, x_clear_window_mouse_face)
15288 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
15289 (x_intersect_rectangles): New generic functions for use by xdisp.c
15290 and GUI front-ends.
15291 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
15292 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
15293
15294 * dispextern.h (Display_Info): Generic typedef for *_display_info.
15295 (NativeRectangle): Generic typedef for rectangle type.
15296 (enum window_part): Move here from window.c.
15297 (struct redisplay_interface): New members flush_display_optional,
15298 define_frame_cursor, clear_frame_area, draw_window_cursor,
15299 draw_vertical_window_border, shift_glyphs_for_insert.
15300 Rename member clear_mouse_face to clear_window_mouse_face.
15301 (estimate_mode_line_height_hook): Remove hook.
15302 (auto_raise_tool_bar_buttons_p): Don't declare extern.
15303 (tool_bar_item_info): Remove prototype.
15304 (help_echo_string, help_echo_window, help_echo_object)
15305 (previous_help_echo_string, help_echo_pos)
15306 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
15307 (x_stretch_cursor_p, output_cursor): Declare extern.
15308 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
15309 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
15310 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
15311 (display_and_set_cursor, set_output_cursor, x_cursor_to)
15312 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
15313 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
15314 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
15315 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
15316 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
15317 Add prototypes.
15318 (mode_line_string, marginal_area_string): Fix prototypes.
15319
15320 * window.c (enum window_part): Move to dispextern.h.
15321 (coordinates_in_window): Use enum window_part member names
15322 instead of numbers to describe return value.
15323 (struct check_window_data): Change part member to window_part.
15324 (check_window_containing): Return window_part unaltered.
15325 (window_from_coordinates): Change part arg from int to enum
15326 window_part. Allow part arg to be null. All users changed.
15327
15328 * window.h (window_from_coordinates): Fix prototype.
15329
15330 * term.c (estimate_mode_line_height): Move to xdisp.c.
15331
15332 * keyboard.c (make_lispy_event): Use enum window_part.
15333
15334 * dispnew.c (mode_line_string, marginal_area_string): Use enum
15335 window_part instead of int in arg list. Users changed.
15336
15337 * xterm.h (No_Cursor): Declare as None for X.
15338 (struct mac_output): Replace member cross_cursor by hand_cursor.
15339
15340 * xterm.c: Remove consolidated defines and code.
15341 (BETWEEN): Remove unused macro.
15342 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
15343 (x_define_frame_cursor, x_clear_frame_area)
15344 (x_draw_window_cursor): New X-specific functions for RIF.
15345 (x_redisplay_interface): Add new members.
15346
15347 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
15348
15349 * w32term.h (struct w32_output): Remove cross_cursor member.
15350
15351 * w32term.c: Remove consolidated defines and code.
15352 (BETWEEN): Remove unused macro.
15353 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
15354 (w32_define_frame_cursor, w32_clear_frame_area)
15355 (w32_draw_window_cursor): New W32-specific functions for RIF.
15356 (w32_redisplay_interface): Add new members.
15357
15358 * w32gui.h (No_Cursor): Define as 0 for W32.
15359 (XRectangle): Add X compatible rectangle type.
15360 (NativeRectangle): Declare as RECT for W32.
15361 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
15362
15363 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
15364
15365 * w32console.c: Remove consolidated defines and code.
15366
15367 * msdos.h (Display_Info): Add generic typedef.
15368
15369 * msdos.c: Remove consolidated defines and code.
15370 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
15371
15372 * macterm.h (struct mac_output): Replace member cross_cursor by
15373 hand_cursor.
15374 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
15375
15376 * macterm.c: Remove consolidated defines and code.
15377 (BETWEEN): Remove unused macro.
15378 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
15379 (mac_define_frame_cursor, mac_clear_frame_area)
15380 (mac_draw_window_cursor): New Mac-specific functions for RIF.
15381 (x_redisplay_interface): Add new members.
15382
15383 * macgui.h (No_Cursor): Define as 0 for Mac.
15384 (XRectangle): Add X compatible rectangle type.
15385 (NativeRectangle): Declare as Rect for Mac.
15386 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
15387
15388 * macfns.c (x_set_mouse_color): Setup hand_cursor.
15389 (x_set_cursor_color): Use x_display_and_set_cursor.
15390
15391 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
15392 included from it. Add dependency on keymap.h.
15393
15394 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
15395
15396 2003-03-21 Kenichi Handa <handa@m17n.org>
15397
15398 * fileio.c (Fexpand_file_name): Fix previous change.
15399
15400 2003-03-19 Kenichi Handa <handa@m17n.org>
15401
15402 * fileio.c (Ffile_name_directory): Reconstruct file name by
15403 make_specified_string.
15404 (Ffile_name_nondirectory, Ffile_name_as_directory)
15405 (Fdirectory_file_name, Fexpand_file_name)
15406 (Fsubstitute_in_file_name): Likewise.
15407 (Fread_file_name): Compare decoded homedir with DIR and
15408 DEFAULT_FILENAME.
15409
15410 * alloc.c (make_specified_string): If NCHARS is negative, count
15411 the number of characters.
15412
15413 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15414
15415 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
15416 all widgets.
15417
15418 * gtkutil.h: Removed xg_ignore_next_thumb.
15419
15420 2003-03-18 Kenichi Handa <handa@m17n.org>
15421
15422 * coding.c (Vchar_coding_system_table): Remove this variable.
15423 (Vcoding_system_safe_chars): New variable.
15424 (intersection): Remove this function.
15425 (find_safe_codings): Don't use Vchar_coding_system_table, but try
15426 all codings in SAFE_CODINGS.
15427 (Ffind_coding_systems_region_internal): Adjust for the change of
15428 find_safe_codings. Get generic coding systems from
15429 Vcoding_system_safe_chars.
15430 (Fdefine_coding_system_internal): New function.
15431 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
15432 Initialize and staticpro Vcoding_system_safe_chars.
15433
15434 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15435
15436 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
15437 equal old values before updating.
15438
15439 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
15440
15441 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
15442
15443 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15444
15445 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
15446 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
15447 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
15448 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
15449 (xg_create_scroll_bar): Pass bar to button event callback.
15450 (xg_find_top_left_in_fixed): New function.
15451 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
15452 whole scroll bar area. Get old position with
15453 xg_find_top_left_in_fixed, calculate and only clear needed areas.
15454 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
15455 dragging is in progress. Calculate whole as for Motif.
15456 Remove code that saved last values. Call gtk_range functions to
15457 set scroll bar sizes.
15458
15459 * gtkutil.h: Removed xg_ignore_next_thumb.
15460
15461 2003-03-17 Juanma Barranquero <lektu@terra.es>
15462
15463 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
15464 and files included from it.
15465
15466 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
15467
15468 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
15469 multiple occurrences of the same keymap under different prefixes.
15470 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
15471
15472 2003-03-16 Jason Rumney <jasonr@gnu.org>
15473
15474 * w32gui.h: Use HDC for Display.
15475
15476 * w32term.c (w32_encode_char): Prevent double-byte chars from
15477 crashing Emacs.
15478
15479 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
15480 as binary.
15481
15482 2003-03-16 Juanma Barranquero <lektu@terra.es>
15483
15484 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
15485
15486 2003-03-16 Kim F. Storm <storm@cua.dk>
15487
15488 The following changes consolidate some of the gui-independent
15489 parts of the processing and drawing of "glyph strings" from
15490 xterm.c, w32term.c, and macterm.c into xdisp.c.
15491
15492 * dispextern.h (struct glyph): Reduce face_id member from 22 to
15493 21 bits (this reduces number of faces from 4M to 2M).
15494 Replace W32 specific w32_font_type member (2 bits) by generic
15495 font_type member (3 bits) for portability.
15496 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
15497 (enum draw_glyphs_face): Define here.
15498 (struct glyph_string): Define here. Merge W32 and X versions.
15499 (struct redisplay_interface): New members per_char_metric,
15500 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
15501 (VCENTER_BASELINE_OFFSET): Define here.
15502 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
15503 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
15504
15505 * xdisp.c: Consolidate gui-independent "glyph string" code here.
15506 (dump_glyph_string): Moved here.
15507 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
15508 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
15509 (fill_composite_glyph_string, fill_glyph_string)
15510 (fill_image_glyph_string, fill_stretch_glyph_string)
15511 (left_overwritten, left_overwriting, right_overwritten)
15512 (right_overwriting, get_char_face_and_encoding)
15513 (set_glyph_string_background_width, compute_overhangs_and_x)
15514 (append_glyph, append_composite_glyph, produce_image_glyph)
15515 (take_vertical_position_into_account, append_stretch_glyph)
15516 (produce_stretch_glyph): New generic functions (based on X version).
15517 Call platform specific functions through rif.
15518 (INIT_GLYPH_STRING): New macro, hides W32 details.
15519 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
15520 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
15521 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
15522 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
15523 (notice_overwritten_cursor):
15524 Generic functions exported to platform modules. Users changed.
15525
15526 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
15527 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
15528 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
15529 New macros for consolidated code.
15530
15531 * xterm.c: Remove consolidated defines and code.
15532 (x_per_char_metric, x_encode_char)
15533 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
15534 (x_redisplay_interface): Add new members.
15535
15536 * w32gui.h (Display): Add dummy typedef for consolidation.
15537 (XChar2b): Define alias for wchar_t for consolidation.
15538 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
15539
15540 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
15541 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
15542 New macros for consolidation.
15543
15544 * w32term.c: Remove consolidated defines and code.
15545 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
15546 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
15547 (w32_per_char_metric): Change font_type arg to int for RIF.
15548 (w32_encode_char): Return int according to RIF requirements.
15549 (w32_compute_glyph_string_overhangs): Adapt to RIF.
15550 (w32_get_glyph_overhangs): New function for RIF. Uses generic
15551 x_get_glyph_overhangs.
15552 (w32_redisplay_interface): Add new members.
15553
15554 * macgui.h (XChar2b): Move typedef here for consolidation.
15555 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
15556
15557 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
15558 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
15559 consolidation.
15560
15561 * macterm.c: Remove consolidated defines and code.
15562 (mac_per_char_metric): New function for RIF.
15563 (mac_encode_char): Adapt to new RIF requirements.
15564 (mac_compute_glyph_string_overhangs): Adapt for RIF.
15565 (x_redisplay_interface): Add new members.
15566
15567 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
15568
15569 * keymap.c (Vmenu_events): New var.
15570 (syms_of_keymap): Initialize it.
15571 (where_is_internal): Check more carefully what is a menu event.
15572
15573 2003-03-14 Richard M. Stallman <rms@gnu.org>
15574
15575 * lread.c (read1): After #!, exit loop on eof.
15576
15577 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15578
15579 * gtkutil.h: Add declaration for xg_frame_cleared.
15580
15581 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
15582
15583 * gtkutil.c (struct xg_last_sb_pos): New structure.
15584 (handle_fixed_child): New function.
15585 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
15586 and force a redraw on them.
15587 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
15588 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
15589 so we can avoid unneeded redraws.
15590 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
15591 and force a redraw on the scroll bar.
15592 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
15593 if xg_last_sb_pos shows the positions are up to date.
15594 (xg_frame_cleared): New function.
15595
15596 2003-03-13 Kenichi Handa <handa@m17n.org>
15597
15598 * coding.c (Fdetect_coding_region): Fix docstring.
15599 (Fdetect_coding_string): Fix docstring.
15600
15601 2003-03-13 Andreas Schwab <schwab@suse.de>
15602
15603 * gtkutil.c: Add prototype for create_menus.
15604
15605 * data.c (long_to_cons): Fix type of top.
15606
15607 * xselect.c (selection_data_to_lisp_data): Use int instead of
15608 long for an integer of size 4.
15609
15610 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
15611 (xg_tool_bar_help_callback): Likewise.
15612
15613 2003-03-12 Andreas Schwab <schwab@suse.de>
15614
15615 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
15616
15617 2003-03-12 Kim F. Storm <storm@cua.dk>
15618
15619 The following changes consolidate the fringe handling from
15620 xterm.c, w32term.c, and macterm.c into xdisp.c.
15621
15622 * xdisp.c: Consolidate fringe handling code here.
15623 (left_bits, right_bits, continued_bits, continuation_bits)
15624 (ov_bits, zv_bits): Define fringe bitmaps.
15625 (fringe_bitmaps): New array holding fringe bitmaps.
15626 (draw_fringe_bitmap): Draw a specific bitmap; call display
15627 specific drawing routine via rif->draw_fringe_bitmap.
15628 (draw_row_fringe_bitmaps): Generic replacement for
15629 x_draw_row_fringe_bitmaps; all callers changed.
15630 (compute_fringe_widths): Generic replacement for
15631 x_compute_fringe_widths; all callers changed.
15632
15633 * dispextern.h (enum fringe_bitmap_type): Define here.
15634 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
15635 (fringe_bitmaps): Declare extern.
15636 (struct redisplay_interface): New member draw_fringe_bitmap.
15637 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
15638
15639 * xterm.c: Remove generic fringe code.
15640 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
15641 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
15642
15643 * w32term.c: Remove generic fringe code.
15644 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
15645 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
15646
15647 * macterm.c: Remove generic fringe code.
15648 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
15649 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
15650
15651 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
15652
15653 * print.c (Fprin1_to_string): Return unibyte string if possible.
15654
15655 2003-03-09 David Kastrup <dak@gnu.org>
15656
15657 * process.c (read_process_output): We have allocated enough space
15658 for readmax and carryover, so actually use the alloted space.
15659
15660 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15661
15662 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
15663 toolkit scrollbar click.
15664
15665 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
15666 for USE_GTK.
15667 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
15668 also.
15669 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
15670 scrollbar and control is pressed, call x_scroll_bar_handle_click.
15671
15672 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
15673
15674 * gtkutil.c (xg_get_scroll_id_for_window): New function.
15675 (xg_tool_bar_item_expose_callback): New function.
15676 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
15677 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
15678 on the tool bar widget.
15679 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
15680 to expose on the tool bar item widgets.
15681
15682 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15683
15684 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
15685 struct image* when deciding to update (struct image* may have been
15686 deleted from the image cache).
15687
15688 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
15689 the event isn't for a frame (i.e. for dialogs).
15690
15691 2003-03-07 Kenichi Handa <handa@m17n.org>
15692
15693 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
15694 composition components reaches the limit, terminate composing.
15695 (COMPOSITION_OK): New macro.
15696 (detect_coding_iso2022): Use it if an escape sequence for
15697 composition is found.
15698 (coding_restore_composition): Adjust the number of composition
15699 components if it is not sane.
15700
15701 2003-03-06 Juanma Barranquero <lektu@terra.es>
15702
15703 * w32term.h (struct w32_display_info): Add xrdb member to support
15704 passing resources via -xrm on Windows.
15705
15706 * w32term.c (w32_make_rdb): New function.
15707 (w32_term_init): Use it to initialize xrdb member of w32_display_info
15708 struct. Delete leftover code.
15709
15710 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
15711 for resources passed on the command line.
15712
15713 * w32reg.c (w32_get_rdb_resource): New function.
15714 (x_get_string_resource): Use it, so resources passed with -xrm
15715 supercede the ones in the registry.
15716
15717 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15718
15719 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
15720 instead of x_top_window_to_frame.
15721
15722 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15723
15724 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
15725 when restarting Emacs.
15726
15727 2003-03-03 Richard M. Stallman <rms@gnu.org>
15728
15729 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
15730 to run kill-buffer-query-functions.
15731 (Qkill_buffer_query_functions): New var.
15732 (syms_of_buffer): Init and staticpro it.
15733
15734 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15735
15736 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
15737
15738 2003-02-25 Kim F. Storm <storm@cua.dk>
15739
15740 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
15741 If centering point failed to make whole line visible and vscroll
15742 is non-zero, disable vscroll and try centering point again.
15743
15744 * lread.c (read1): Accept `single space' syntax like (? x).
15745
15746 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15747
15748 * keyboard.c (cancel_hourglass_unwind): Surround with
15749 #ifdef HAVE_X_WINDOWS
15750
15751 2003-02-25 Kenichi Handa <handa@m17n.org>
15752
15753 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
15754 process only when "subprocesses" is defined.
15755
15756 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
15757
15758 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
15759
15760 2003-02-24 Juanma Barranquero <lektu@terra.es>
15761
15762 * callint.c (fix_command): Declare as static void and move before
15763 Fcall_interactively.
15764
15765 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
15766 (syms_of_xdisp): Don't initialize Qwhen.
15767
15768 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15769
15770 * keyboard.c (cancel_hourglass_unwind): New function.
15771 (command_loop_1): Cancel hourglass with unwind-protect.
15772
15773 2003-02-23 Richard M. Stallman <rms@gnu.org>
15774
15775 * callint.c (fix_command): New subroutine, from Fcall_interactively.
15776 Detect (when ... (region-beginning)) etc.
15777 (Fcall_interactively): Call fix_command.
15778 (Qif, Qwhen): New variables.
15779 (syms_of_callint): Init and staticpro them.
15780
15781 * regex.c (print_partial_compiled_pattern): Output to stderr.
15782
15783 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
15784
15785 * dired.c (directory_files_internal): Don't expand directory.
15786 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
15787 instead. From Lars Hansen <larsh@math.ku.dk>.
15788
15789 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
15790
15791 * fns.c (string_to_multibyte): Remove unused var i.
15792 (Flanginfo): Fix int/Lisp_Object mixup.
15793 (void_call2): New fun.
15794 (Fmap_char_table): Use it in place of call2.
15795
15796 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
15797
15798 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
15799
15800 * keymap.c (copy_keymap_1): Make it static.
15801
15802 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
15803
15804 2003-02-22 David Ponce <david@dponce.com>
15805
15806 * lread.c (Fload): Don't check STRING_MULTIBYTE.
15807
15808 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15809
15810 * process.h: Removed subtty field from struct Lisp_Process.
15811
15812 * process.c (create_process): Remove setting of subtty.
15813 (emacs_get_tty_pgrp): New function.
15814 (Fprocess_running_child_p, process_send_signal):
15815 Call emacs_get_tty_pgrp instead of ioctl.
15816 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
15817
15818 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
15819
15820 * keymap.c (Fdefine_key): Doc fix.
15821
15822 2003-02-21 Juanma Barranquero <lektu@terra.es>
15823
15824 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
15825
15826 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
15827 POLLING_PROBLEM_IN_SELECT.
15828
15829 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
15830 Delete #undef of POLLING_PROBLEM_IN_SELECT.
15831
15832 * s/hpux10-20.h: New file.
15833
15834 * process.c (wait_reading_process_input):
15835 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
15836
15837 2003-02-20 Kenichi Handa <handa@m17n.org>
15838
15839 * fontset.c (check_fontset_name): If NAME is nil, return the
15840 default fontset.
15841 (override_font_info): New function.
15842 (Fset_fontset_font): Document that NAME nil means the default fontset.
15843 (Ffontset_info): If FONTSET is not the default fontset, merge
15844 FONTSET onto the copy of the default fontset, and work on that
15845 copy. Document that NAME nil means the default fontset.
15846 (Ffontset_font): Document that NAME nil means the default fontset.
15847
15848 * process.c (setup_process_coding_systems): If the process's
15849 in/out descriptor is -1, do nothing.
15850
15851 2003-02-19 Andreas Schwab <schwab@suse.de>
15852
15853 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
15854 Add prototypes.
15855
15856 2003-02-19 Kenichi Handa <handa@m17n.org>
15857
15858 * xfaces.c (try_alternative_families): Try all scalable fonts if
15859 Vscalable_fonts_allowed is not Qt.
15860
15861 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15862
15863 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
15864
15865 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15866
15867 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
15868 names.
15869
15870 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
15871 (sorted_font_list): Move allocation of struct font_name to
15872 x_face_list_fonts.
15873 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
15874 (Fx_list_fonts): Set maxnames to -1 to get all font names.
15875
15876 2003-02-18 Kim F. Storm <storm@cua.dk>
15877
15878 * lread.c (read1): Fix last change.
15879 "`" is not always special. Allow "?" after a character constant.
15880
15881 2003-02-18 Andrew Choi <akochoi@shaw.ca>
15882
15883 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
15884
15885 2003-02-18 Andreas Schwab <schwab@suse.de>
15886
15887 * window.c (window_scroll_pixel_based): Move outside a
15888 multi-glyph character before setting new window start.
15889
15890 * xdisp.c (in_display_vector_p): New function.
15891 * dispextern.h (in_display_vector_p): Declare.
15892
15893 2003-02-18 Kim F. Storm <storm@cua.dk>
15894
15895 * lread.c (read1): Fix and relax read syntax.
15896 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
15897 Only recognize "," after dotted-pair dot if inside backquote.
15898 Never include "`" or "," (inside backquote) in a symbol.
15899 Allow dotted-pair dot after a character constant.
15900 Allow "`" and "," (inside backquote) after a character constant.
15901
15902 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15903
15904 * gtkutil.c (xg_tool_bar_expose_callback): New function.
15905 (xg_create_tool_bar): Force style of tool bar to be horizontal with
15906 icons. Set name of tool bar to emacs-toolbar.
15907 (update_frame_tool_bar): Connect expose event to
15908 xg_tool_bar_expose_callback.
15909
15910 2003-02-17 Richard M. Stallman <rms@gnu.org>
15911
15912 * keyboard.c (this_command_key_count_reset): New variable.
15913 Initiatize to 0 where this_command_key_count is set.
15914 (read_char): Save and restore this_command_key_count_reset
15915 around input method code.
15916 (read_char): If this_command_key_count_reset, echo reread commands.
15917 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
15918
15919 2003-02-17 Kenichi Handa <handa@m17n.org>
15920
15921 * fns.c (string_to_multibyte): Always return a multibyte string.
15922
15923 2003-02-16 Jason Rumney <jasonr@gnu.org>
15924
15925 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
15926 Negative max_fonts parameter means list all.
15927
15928 2003-02-14 Dave Love <fx@gnu.org>
15929
15930 * fns.c (Flanginfo): Doc fix.
15931
15932 2003-02-13 Kim F. Storm <storm@cua.dk>
15933
15934 * lread.c (read_escape): Interpret \s as a SPACE character, except
15935 for \s-X in a character constant which still is the super modifier.
15936 (read1): Signal an `invalid read syntax' error if a character
15937 constant is immediately followed by a digit or symbol character.
15938
15939 * search.c (Fmatch_data): Doc fix. Explicitly state that
15940 match-data is undefined if last search failed.
15941
15942 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
15943 All uses changed.
15944
15945 2003-02-12 Juanma Barranquero <lektu@terra.es>
15946
15947 * eval.c (Fdefmacro): Fix typo.
15948
15949 2003-02-12 Kim F. Storm <storm@cua.dk>
15950
15951 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
15952 macro is a string, convert meta modifiers in string when copying
15953 the string into a vector.
15954
15955 2003-02-11 Kim F. Storm <storm@cua.dk>
15956
15957 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
15958
15959 2003-02-11 Kenichi Handa <handa@m17n.org>
15960
15961 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
15962
15963 2003-02-10 Kim F. Storm <storm@cua.dk>
15964
15965 * process.c: Doc fixes.
15966 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
15967
15968 2003-02-10 Kenichi Handa <handa@m17n.org>
15969
15970 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
15971
15972 * process.c (QCfilter_multibyte): New variable.
15973 (setup_process_coding_systems): New function.
15974 (Fset_process_buffer, Fset_process_filter):
15975 Call setup_process_coding_systems.
15976 (Fstart_process): Initialize the member `filter_multibyte' of
15977 struct Lisp_Process.
15978 (create_process): Call setup_process_coding_systems.
15979 (Fmake_network_process): New keyward `:filter-multibyte'.
15980 Initialize the member `filter_multibyte' of struct Lisp_Process.
15981 Call setup_process_coding_systems.
15982 (server_accept_connection): Call setup_process_coding_systems.
15983 (read_process_output): If the process has a filter, decide the
15984 multibyteness of a string to given to the filter by
15985 `filter_multibyte' member of the process. If the process doesn't
15986 have a filter and the result of conversion is unibyte, use
15987 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
15988 multibyte form.
15989 (Fset_process_coding_system): Call setup_process_coding_systems.
15990 (Fset_process_filter_multibyte): New function.
15991 (Fprocess_filter_multibyte_p): New function.
15992 (syms_of_process): Intern and staticpro QCfilter_multibyte.
15993 Defsubr Sset_process_filter_multibyte and
15994 Sprocess_filter_multibyte_p.
15995
15996 * process.h (struct Lisp_Process): New member filter_multibyte.
15997
15998 * lisp.h (setup_process_coding_systems): Add prototype.
15999
16000 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
16001 process, update coding systems for the process.
16002
16003 2003-02-09 Kenichi Handa <handa@m17n.org>
16004
16005 * fns.c (string_to_multibyte): New function.
16006 (Fstring_to_multibyte): New function.
16007 (syms_of_fns): Defsubr it.
16008
16009 2003-02-08 Andreas Schwab <schwab@suse.de>
16010
16011 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
16012 instead of the substitution.
16013
16014 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16015
16016 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
16017
16018 * xmenu.c (menu_position_func): Adjust menu popup position so that
16019 the menu is fully visible.
16020
16021 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16022
16023 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
16024 (x_make_frame_invisible, x_wm_set_icon_position):
16025 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
16026
16027 * xfns.c (x_set_name, x_set_title): Ditto.
16028
16029 2003-02-04 Richard M. Stallman <rms@gnu.org>
16030
16031 * keyboard.c (echo_now): Update before_command_echo_length.
16032 (Freset_this_command_lengths): Reset this_command_key_count etc.
16033 immediately rather than arranging to do it later.
16034 (before_command_key_count_1, before_command_echo_length_1)
16035 (before_command_restore_flag): Vars deleted.
16036 (add_command_key): Don't handle before_command_restore_flag.
16037 (read_char, record_menu_key): Don't update before_command_key_count or
16038 before_command_echo_length.
16039 (read_char): Don't handle before_command_restore_flag.
16040
16041 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
16042 in direct-output clauses if it wouldn't be called in the ordinary case.
16043
16044 2003-02-04 Kim F. Storm <storm@cua.dk>
16045
16046 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
16047
16048 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16049
16050 * gtkutil.c (remove_from_container): Copying list is not needed.
16051 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
16052 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
16053 on list returned from gtk_container_get_children to avoid memory leak.
16054
16055 2003-02-01 Jason Rumney <jasonr@gnu.org>
16056
16057 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
16058 local malloc.
16059 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
16060 definitions in xpm.h.
16061 (init_xpm_functions): New function.
16062 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
16063 (init_external_image_libraries): Try to load libXpm.dll.
16064
16065 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
16066 timestamp.
16067
16068 2003-01-31 Dave Love <fx@gnu.org>
16069
16070 * syntax.c (Fskip_chars_forward)
16071 (open-paren-in-column-0-is-defun-start): Doc fix.
16072
16073 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
16074
16075 * fileio.c: Support // at start of name for Cygwin (just added proper
16076 preprocessor tests).
16077
16078 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
16079
16080 * Makefile.in: Use @EXEEXT@ for Cygwin.
16081
16082 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
16083
16084 * s/cygwin.h: Added for Cygwin port.
16085
16086 2003-01-31 Juanma Barranquero <lektu@terra.es>
16087
16088 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
16089 when including gif_lib.h.
16090 (init_gif_functions, init_tiff_functions): New functions.
16091 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
16092 Windows. Disable color table lookups. Call library functions
16093 through pointers determined at runtime.
16094 (init_external_image_libraries): Try to load libungif.dll and
16095 libtiff.dll.
16096
16097 2003-01-31 Kenichi Handa <handa@m17n.org>
16098
16099 * xdisp.c (SKIP_GLYPHS): New macro.
16100 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
16101
16102 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16103
16104 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
16105
16106 2003-01-30 Dave Love <fx@gnu.org>
16107
16108 * alloc.c (Vgc_elapsed, gcs_done): New variables.
16109 (Fgarbage_collect): Use them.
16110 (init_alloc, syms_of_alloc): Set them up.
16111
16112 2003-01-30 Juanma Barranquero <lektu@terra.es>
16113
16114 * w32fns.c (init_external_image_libraries): Add missing operator.
16115
16116 2003-01-29 Jason Rumney <jasonr@gnu.org>
16117
16118 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
16119 an alternative name for jpeg.dll.
16120
16121 2003-01-29 Kenichi Handa <handa@m17n.org>
16122
16123 * xdisp.c (set_cursor_from_row): Pay attention to string display
16124 properties.
16125
16126 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
16127
16128 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
16129 <escape>.
16130 (keycode_to_xkeysym_table): Reformat and add more comments.
16131 (XTread_socket): Drop special case for backspace.
16132
16133 2003-01-28 Andrew Choi <akochoi@shaw.ca>
16134
16135 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
16136 values in old-style RGB specs.
16137
16138 2003-01-27 Juanma Barranquero <lektu@terra.es>
16139
16140 * w32fns.c (init_external_image_libraries): Try alternate names for the
16141 jpeg dll.
16142
16143 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16144
16145 * gtkutil.c (create_dialog, xg_separator_p)
16146 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
16147 before calling strcmp or strlen.
16148
16149 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16150
16151 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
16152 and handle image load failure.
16153
16154 2003-01-26 Jason Rumney <jasonr@gnu.org>
16155
16156 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
16157 New functions.
16158 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
16159 Disable color table lookups. Call jpeg library functions
16160 through pointers determined at runtime.
16161 (init_external_image_libraries): Try to load jpeg.dll.
16162
16163 2003-01-25 Richard M. Stallman <rms@gnu.org>
16164
16165 * lisp.h: Declare format2 instead of format1.
16166
16167 * fileio.c (barf_or_query_if_file_exists):
16168 Call format2 instead of format1.
16169
16170 * editfns.c (format2): New function, replaces format1
16171 but takes exactly two Lisp Objects as format args.
16172
16173 * buffer.c (Fkill_buffer): Call format2 instead of format1.
16174
16175 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16176
16177 * xterm.h: Change to return value of x_dispatch_event to int.
16178
16179 * xterm.c (x_filter_event): New function.
16180 (event_handler_gdk, XTread_socket): Call x_filter_event.
16181 (x_dispatch_event): Change to return value of finish.
16182 (event_handler_gdk): Use return value from x_dispatch_event.
16183
16184 * xfns.c (x_window): Call create_frame_xic for GTK version to
16185 initialize input methods.
16186
16187 * gtkutil.h: Add (void) prototypes.
16188
16189 * gtkutil.c (create_menus): Remove code that puts the help menu to
16190 the right.
16191
16192 2003-01-25 Jason Rumney <jasonr@gnu.org>
16193
16194 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
16195 [HAVE_PNG]: Sync with xfns.c version.
16196 (png_load): Adjust colors for Windows. Use Windows
16197 bitmaps. Disable color table lookups.
16198 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
16199 (init_png_functions): New function.
16200 (png_read_from_memory, png_load): Call png library functions
16201 through pointers determined at runtime.
16202 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
16203 (init_external_image_libraries): New function.
16204 (init_xfns): Call it.
16205
16206 2003-01-24 Andreas Schwab <schwab@suse.de>
16207
16208 * minibuf.c (Fminibuffer_message): Verify type of parameter.
16209
16210 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16211
16212 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
16213 of static initializer.
16214
16215 2003-01-24 Dave Love <fx@gnu.org>
16216
16217 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
16218 architectures.
16219
16220 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
16221 Use __alignof__.
16222
16223 2003-01-24 Kenichi Handa <handa@m17n.org>
16224
16225 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
16226 It it is nonzero, don't pretend that an invisible area doesn't exist.
16227 (command_loop_1): Call adjust_point_for_property with proper
16228 second arg.
16229
16230 2003-01-22 Jason Rumney <jasonr@gnu.org>
16231
16232 Sync changes with xterm.c and xfns.c.
16233
16234 * w32term.c (x_draw_glyph_string_foreground)
16235 (x_draw_composite_glyph_string_foreground): Implement overstriking.
16236
16237 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
16238 phys_cursor's hpos is overwritten. This is still not completely
16239 correct, as it doesn't really make sense to use hpos at all to
16240 get the cursor glyph (as that is relative to the width of the
16241 characters on the line, which may have changed during the update).
16242
16243 * w32term.c (notice_overwritten_cursor): Handle the special case
16244 of the cursor being in the first blank non-text line at the
16245 end of a window.
16246
16247 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
16248 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
16249 Compute from the x position returned by x_draw_glyphs.
16250
16251 (x_display_and_set_cursor): Don't set phys_cursor_width here,
16252 except for NO_CURSOR and system caret, to make phys_cursor_width
16253 contain what its name suggests.
16254 (notice_overwritten_cursor): Consider the cursor image erased if
16255 the output area intersects the cursor image in y-direction.
16256
16257 * w32term.c (note_mode_line_or_margin_highlight): Rename from
16258 note_mode_line_highlight and extend.
16259
16260 * w32term.c (last_window): New variable.
16261 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
16262 (note_mouse_movement): Remove reimplemented code in #if 0.
16263
16264 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
16265 not update_mode_lines, and always set it to 1.
16266
16267 2003-01-21 Jason Rumney <jasonr@gnu.org>
16268
16269 * w32fns.c (IDC_HAND): Define it if system headers don't.
16270
16271 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
16272
16273 * w32term.h (struct w32_output): New member hand_cursor.
16274 (WM_EMACS_SETCURSOR): New message definition.
16275
16276 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
16277 function w32_define_cursor.
16278 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
16279 position, change member name output_data.x to output_data.w32 and
16280 add function w32_define_cursor.
16281 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
16282 and change member name output_data.x to output_data.w32.
16283 (w32_initialize_display_info):
16284 Setup dpyinfo->vertical_scroll_bar_cursor.
16285
16286 * w32fns.c (Vx_hand_shape): New variable.
16287 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
16288 WM_EMACS_SETCURSOR.
16289 (x-create-frame): Setup Cursor types.
16290
16291 2003-01-21 David Ponce <david@dponce.com>
16292
16293 * w32term.c (w32_encode_char): For DIM=1 charset, set
16294 ccl->reg[2] to -1 before calling ccl_driver.
16295 (Sync. with xterm.c x_encode_char change by Kenichi Handa
16296 <handa@m17n.org> on 2002-09-30.)
16297 (w32_draw_relief_rect): Declare all args.
16298 (w32_define_cursor): New.
16299
16300 * w32fns.c (w32_load_cursor): New function.
16301 (w32_init_class): Use it.
16302 (x_put_x_image): Declare all args.
16303
16304 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
16305
16306 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
16307
16308 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16309
16310 * gtkutil.c: Must include stdio.h before termhooks.h
16311
16312 2003-01-21 Dave Love <fx@gnu.org>
16313
16314 * alloc.c (Fgc_status): Print zombie list.
16315 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
16316 Fix assignment of zombies.
16317 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
16318 Don't take car of non-cons.
16319
16320 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16321
16322 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16323
16324 2003-01-20 David Ponce <david@dponce.com>
16325
16326 * w32menu.c (digest_single_submenu): Declare all args.
16327
16328 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
16329 changes in xmenu.c:
16330
16331 (parse_single_submenu): Use individual keymap's prompt
16332 string as pane name, if there is one.
16333 (set_frame_menubar): Save menu_items_n_panes from each call to
16334 parse_single_submenu and use it when calling digest_single_submenu.
16335
16336 2003-01-20 Steven Tamm <steventamm@mac.com>
16337
16338 * macterm.c (XTread_socket): Check for valid, visible window
16339 before sending a scroll-wheel event.
16340
16341 2003-01-20 Richard M. Stallman <rms@gnu.org>
16342
16343 * xdisp.c (redisplay_window): If mini window's buffer is not
16344 a minibuffer, then redisplay it like other windows.
16345
16346 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16347
16348 * gtkutil.c (xg_create_frame_widgets): Check if there is an
16349 external tool bar before setting tool bar height.
16350
16351 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16352
16353 * xterm.c (handle_one_xevent): Surround popup_activated
16354 with #ifdef:s for non-toolkit version.
16355
16356 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
16357 (gtkutil.o): New file.
16358 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
16359 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
16360
16361 * gtkutil.c: New file for GTK version.
16362
16363 * gtkutil.h: New file for GTK version.
16364
16365 * xterm.h: Add xt_or_gtk_widget.
16366 Include gtk files for USE_GTK.
16367 (struct x_output): Add toolbar_height.
16368 (struct x_output): Add GTK widgets and Gdk size_hints.
16369 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
16370 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
16371 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
16372
16373 * xterm.c: Include gtkutil.h for USE_GTK.
16374 (free_frame_menubar): Declare extern void for USE_GTK.
16375 (note_mouse_highlight): Check popup_activated for USE_GTK.
16376 (xt_action_hook): Don't compile if USE_GTK.
16377 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
16378 (xg_scroll_callback): New function.
16379 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
16380 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
16381 for USE_GTK.
16382 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
16383 xg_show_scroll_bar for USE_GTK.
16384 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
16385 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
16386 (event_handler_gdk): New function for USE_GTK.
16387 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
16388 (handle_one_xevent): Make sure widget is mapped before
16389 calling x_real_positions for USE_GTK.
16390 (XTread_socket): Add GTK event loop for USE_GTK.
16391 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
16392 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
16393 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
16394 (x_iconify_frame): Add code for USE_GTK.
16395 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
16396 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
16397 is in gtkutil.c.
16398 (x_term_init): Add initialization for GTK.
16399 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
16400
16401 * xmenu.c: Include gtkutil.h for USE_GTK.
16402 (Fx_popup_menu): Use current position if x and y is NIL.
16403 (single_menu_item, single_menu_item, Fx_popup_dialog):
16404 Check for USE_GTK.
16405 (popup_widget_loop): New function for USE_GTK.
16406 (x_activate_menubar): Add code for USE_GTK.
16407 (popup_activate_callback, popup_deactivate_callback)
16408 (menu_highlight_callback, menubar_selection_callback):
16409 Add USE_GTK versions.
16410 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
16411 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
16412 (free_frame_menubar): Only compile if not USE_GTK. GTK version
16413 is in gtkutil.c.
16414 (popup_selection_callback): New version for USE_GTK.
16415 (create_and_show_popup_menu): New fuction, one USE_GTK version and
16416 one USE_X_TOOLKIT version.
16417 (xmenu_show): Call create_and_show_popup_menu.
16418 (dialog_selection_callback): New version for USE_GTK.
16419 (create_and_show_dialog): New fuction, one USE_GTK version and
16420 one USE_X_TOOLKIT version.
16421 (xdialog_show): Call create_and_show_dialog.
16422
16423 * xfns.c: Include gtkutil for USE_GTK.
16424 (x_window_to_frame, x_any_window_to_frame)
16425 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
16426 (x_top_window_to_frame): Add code for USE_GTK.
16427 (x_set_background_color): Call xg_set_background_color for GTK.
16428 (x_set_menu_bar_lines): Check for USE_GTK.
16429 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
16430 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
16431 (x_window): Call xg_create_frame_widgets for USE_GTK.
16432 (Fx_create_frame): Check for USE_GTK
16433 (Fx_file_dialog): New implementation for USE_GTK.
16434
16435 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
16436 (update_menu_bar): Add check for USE_GTK.
16437 (update_tool_bar): Add check for USE_GTK and external tool bar.
16438 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
16439 (redisplay_internal): Add check for USE_GTK and popup_activated.
16440 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
16441 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
16442 (display_menu_bar): Add check for USE_GTK
16443
16444 * lisp.h (Vx_resource_name): Declare extern.
16445
16446 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
16447 for USE_GTK.
16448 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
16449
16450 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
16451 (FRAME_EXTERNAL_TOOL_BAR): New macro.
16452 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
16453
16454 * fileio.c (Fread_file_name): Add check for USE_GTK.
16455
16456 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
16457 Add check for USE_GTK.
16458
16459 * config.in: Added HAVE_GTK
16460
16461 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
16462
16463 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
16464
16465 * charset.h (Funibyte_char_to_multibyte): Export.
16466
16467 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16468
16469 * xmenu.c (mouse_position_for_popup): New function.
16470 (Fx_popup_menu): Call mouse_position_for_popup for X and
16471 mouse_position_hook for others.
16472
16473 2003-01-17 Kim F. Storm <storm@cua.dk>
16474
16475 * editfns.c (Finsert): Mention `string-make-multibyte' and
16476 `string-as-multibyte' in doc string.
16477
16478 2003-01-17 Kenichi Handa <handa@m17n.org>
16479
16480 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
16481
16482 * editfns.c (Fformat): Convert an unibyte char argument that is
16483 formatted by "%c" to multibyte if the total result must be a
16484 multibyte string.
16485
16486 2003-01-16 Kim F. Storm <storm@cua.dk>
16487
16488 * process.c (set-process-filter): Document unibyte/multibyte-ness
16489 of string argument.
16490
16491 2003-01-16 Kenichi Handa <handa@m17n.org>
16492
16493 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
16494
16495 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
16496 (re_search_2): Likewise.
16497
16498 2003-01-15 Kenichi Handa <handa@m17n.org>
16499
16500 * xdisp.c (message_dolog): Fix bug of the case that *Message*
16501 buffer is unibyte.
16502
16503 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
16504
16505 * fns.c (Fsubstring): Clarify doc string.
16506
16507 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
16508 (Fprevious_char_property_change)
16509 (Fnext_single_char_property_change)
16510 (Fprevious_single_char_property_change, Fnext_property_change)
16511 (Fnext_single_property_change, Fprevious_property_change)
16512 (Fprevious_single_property_change, Fadd_text_properties)
16513 (Fput_text_property, Fset_text_properties)
16514 (Fremove_text_properties, Fremove_list_of_text_properties)
16515 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
16516
16517 2003-01-14 Kim F. Storm <storm@cua.dk>
16518
16519 * process.h (struct Lisp_Process): New member plist replaces old
16520 member private_vars. All uses changed.
16521
16522 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
16523 (QCplist): Rename from QCvars. Change all uses.
16524 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
16525 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
16526 (syms_of_process): Intern, staticpro, defsubr these.
16527 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
16528
16529 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
16530
16531 * m/delta.h: Remove (obsolete).
16532
16533 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
16534
16535 * fileio.c (Fdelete_directory, Fdelete_file): Document the
16536 behaviour in front of symlinks.
16537 (Fdelete_file): Raise an error on directories.
16538
16539 2003-01-13 Dave Love <fx@gnu.org>
16540
16541 * fns.c (Freverse): Use QUIT.
16542
16543 2003-01-13 Richard M. Stallman <rms@gnu.org>
16544
16545 * minibuf.c (minibuffer_completion_contents):
16546 Error if point is inside prompt.
16547
16548 * keyboard.c (command_loop_1): Don't redisplay directly
16549 if there's a post-command-hook.
16550
16551 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
16552 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
16553
16554 2003-01-12 Kim F. Storm <storm@cua.dk>
16555
16556 * process.h (struct Lisp_Process): New member private_vars.
16557
16558 * process.c (QCvars): New variable.
16559 (syms_of_process): Intern and staticpro it.
16560 (Fset_process_contact): Removed function.
16561 (Fprocess_variable, Fset_process_variable): New functions.
16562 (syms_of_process): Defsubr them.
16563 (Fstart_process): Initialize private_vars plist to nil.
16564 (Fmake_network_process): New arg :vars to setup the private
16565 variables for new network process.
16566 (server_accept_connection): Copy server's private variables to
16567 client process.
16568
16569 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
16570 crashes). Code rewritten and simplified. Now directly aligns the
16571 pointer and recalculates pure_bytes_used, rather than aligning the
16572 size and adjusting the pointer.
16573
16574 2003-01-11 Kim F. Storm <storm@cua.dk>
16575
16576 * process.c (Fset_process_contact): New function.
16577 (syms_of_process): defsubr it.
16578 (make-network-process): Update doc.
16579
16580 2003-01-10 Andreas Schwab <schwab@suse.de>
16581
16582 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
16583 Reported by Berthold Gunreben <b.gunreben@web.de>.
16584
16585 2003-01-10 Dave Love <fx@gnu.org>
16586
16587 * composite.c (syms_of_composite): Make composition_hash_table weak.
16588
16589 2003-01-09 Kim F. Storm <storm@cua.dk>
16590
16591 * process.c (Fmake_network_process): Convert new port number
16592 to host byte order for `:service t' case. From Mario Lang.
16593
16594 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16595
16596 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
16597 instead of XtAppProcessEvent.
16598
16599 * xterm.c (handle_one_xevent): New function.
16600 (x_dispatch_event): New function.
16601 (XTread_socket): Call handle_one_xevent.
16602
16603 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
16604
16605 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
16606 call XQueryPointer to get coordinates.
16607 (popup_get_selection): Do not set popup_activated_flag to zero,
16608 let popup_deactivate_callback do that. Needed for Motif.
16609 Call x_dispatch_event instead of XtDispatchEvent.
16610 (xmenu_show): Calculate root coordinate from frame top/left position.
16611
16612 2003-01-08 Kim F. Storm <storm@cua.dk>
16613
16614 * process.c (server_accept_connection): Fix recording of new
16615 connection's local address in :local property of contact info.
16616 (Fmake_network_process): Record local network address for new
16617 client processes in :local property of contact info.
16618 (format-network-address): Add arg OMIT-PORT. Change callers.
16619
16620 2003-01-07 Dave Love <fx@gnu.org>
16621
16622 * Makefile.in (fns.o): Depend on coding.h.
16623
16624 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
16625
16626 * minibuf.c (Fread_variable): Doc fix.
16627
16628 * eval.c (Fuser_variable_p): Doc change. For custom variables,
16629 use the same test as for custom-variable-p.
16630
16631 2003-01-05 Richard M. Stallman <rms@gnu.org>
16632
16633 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
16634 Count LAST_LINE_MISFIT in scroll margin for end of window.
16635 Move label too_near_end before setting SCROLL_MARGIN_POS.
16636 Set LAST_LINE_MISFIT before jumping there.
16637
16638 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
16639 scroll_conservatively case. If scrolling that much doesn't change
16640 STARTP, move it down one line.
16641
16642 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
16643 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
16644
16645 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
16646 selected frame.
16647
16648 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
16649 (syms_of_keymap): Staticpro them.
16650 (Fapropos_internal): Initialize them and clear them out.
16651 Don't GCPRO them.
16652
16653 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
16654 Doc fixes.
16655
16656 * lisp.h: New misc type Lisp_Save_Value.
16657 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
16658 (XSAVE_VALUE): New macro.
16659 (struct Lisp_Save_Value): New data type.
16660 (union Lisp_Misc): Add u_save_value alternative.
16661 (make_save_value): Declare.
16662
16663 * alloc.c (make_save_value): New function.
16664
16665 * xterm.c (x_catch_errors): Save dpy using make_save_value.
16666 (x_catch_errors_unwind): Call XSync.
16667
16668 2003-01-01 Richard M. Stallman <rms@gnu.org>
16669
16670 * window.c (window_scroll_pixel_based): Partially undo last change.
16671
16672 * keyboard.c (command_loop_1): Call adjust_point_for_property
16673 in direct action cases for Qforward_char and Qbackward_char.
16674 Set already_adjusted so it won't be done twice.
16675
16676 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
16677
16678 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
16679 type definition of size_t.
16680
16681 2003-01-02 Steven Tamm <steventamm@mac.com>
16682
16683 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
16684 distinguish Carbon GUI builds from X11 builds on darwin.
16685
16686 2002-12-30 Steven Tamm <steventamm@mac.com>
16687
16688 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
16689 to default to t.
16690
16691 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
16692
16693 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
16694
16695 2002-12-28 Steven Tamm <steventamm@mac.com>
16696
16697 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
16698 allow building in a different directory than source. Uses some
16699 GNU Make extensions, but there is no other make on Mac OS X.
16700
16701 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
16702
16703 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
16704 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
16705 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
16706 (Fstring_to_number): Mention the returned value in the doc strings.
16707
16708 2002-12-23 Richard M. Stallman <rms@gnu.org>
16709
16710 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
16711 <scroll-down-aggressively>: Doc fix.
16712
16713 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
16714 string as pane name, if there is one.
16715 (set_frame_menubar): Save menu_items_n_panes from each call to
16716 parse_single_submenu and use it when calling digest_single_submenu.
16717
16718 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
16719 Don't try to make last line fully visible if it is past end of window.
16720
16721 2002-12-22 Steven Tamm <steventamm@mac.com>
16722
16723 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
16724 (mac_menu_show): Add support for hierarchical popup menus.
16725 (add_menu_item): Remove indentation support.
16726 (fill_submenu, fill_menu): Create hierarchical menus
16727 instead of using indentation.
16728
16729 2002-12-22 Richard M. Stallman <rms@gnu.org>
16730
16731 * xdisp.c (try_cursor_movement): Don't call try_window here.
16732 (redisplay_window): Never redisplay minibuffer when inactive.
16733
16734 * window.c (select_window_1): Undo 9/21 change.
16735
16736 2002-12-22 Steven Tamm <steventamm@mac.com>
16737
16738 * macterm.c (XTread_socket): Call KeyTranslate for control and
16739 meta to deal correctly shifted non-alpha characters, like C-S-5
16740 being treated like C-%. Do not look for shift key to deal
16741 with masking off control-key with mac-reverse-ctrl-meta.
16742
16743 2002-12-21 Richard M. Stallman <rms@gnu.org>
16744
16745 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
16746 If it is non-nil, run timers. Use an unwind-protect to requeue
16747 the events that were read ahead.
16748 (popup_get_selection_unwind): New subroutine.
16749 (popup_get_selection_queue): File-scope variable now holds that queue.
16750 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
16751 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
16752 Use an unwind-protect to pop down the dialog box.
16753 (xdialog_show_unwind): New subroutine implements that.
16754
16755 * xdisp.c (row_containing_pos): Change exit test using last_y.
16756 (try_window_id): Abort if row_containing_pos returns null.
16757
16758 * lread.c (load_error_handler): New function.
16759 (Fload): Handle errors in Fsubstitute_in_file_name.
16760 Don't expect Fsignal to return.
16761
16762 * eval.c: Errors and throws work right with interrupt blocking.
16763 (struct catchtag): New elt interrupt_input_blocked.
16764 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
16765 (internal_catch, Fcondition_case, internal_condition_case)
16766 (internal_condition_case_1, internal_condition_case_2): Save it.
16767 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
16768
16769 * editfns.c (Fformat): Add parens.
16770
16771 * dired.c (file_name_completion): Fix that change.
16772 Delete special quit-handling code; just use QUIT.
16773
16774 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
16775
16776 * dired.c (file_name_completion): Close directory on error
16777 just as in directory_files_internal.
16778
16779 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
16780
16781 * window.c (Fset_window_configuration): Set old_point to correct
16782 value when new_current_buffer == current_buffer.
16783
16784 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
16785
16786 Revisited my earlier fix for the following entry in etc/PROBLEMS:
16787 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
16788 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
16789
16790 These changes were in part based upon suggestions made by Peter
16791 'Luna' Runestig [peter@runestig.com].
16792
16793 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
16794 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
16795 (g_b_init_get_sid_identifier_authority ): Add several static
16796 global variables.
16797
16798 * w32.c (globals_of_w32): New function. Used to initialize those
16799 global variables that must always be initialized on startup even
16800 when the global variable initialized is non zero. Its primary
16801 purpose at this time is to set the global variables
16802 g_b_init_is_windows_9x, g_b_init_open_process_token,
16803 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
16804 g_b_init_get_sid_identifier_authority to 0 on startup.
16805 Called from main.
16806
16807 * w32.c (is_windows_9x): Perform initialization only if
16808 g_b_init_is_windows_9x is equal to 0. On initialization set
16809 g_b_init_is_windows_9x equal to 1.
16810
16811 * w32.c (open_process_token): Perform initialization only if
16812 g_b_init_open_process_token is equal to 0. On initialization set
16813 g_b_init_open_process_token equal to 1.
16814
16815 * w32.c (get_token_information): Perform initialization only if
16816 g_b_init_get_token_information is equal to 0. On initialization
16817 set g_b_init_get_token_information equal to 1.
16818
16819 * w32.c (lookup_account_sid): Perform initialization only if
16820 g_b_init_lookup_account_sid is equal to 0. On initialization
16821 set g_b_init_lookup_account_sid equal to 1.
16822
16823 * w32.c (get_sid_identifier_authority): Perform initialization
16824 only if g_b_init_get_sid_identifier_authority is equal to 0.
16825 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
16826
16827 * w32fns.c (globals_of_w32fns): New function. Used to initialize
16828 those global variables that must always be initialized on startup
16829 even when the global variable initialized is non zero.
16830 Its primary purpose at this time is to initialize the global variable
16831 track_mouse_event_fn.
16832
16833 * w32fns.c (w32_wnd_proc): Remove initialization of
16834 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
16835
16836 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
16837
16838 * w32menu.c (globals_of_w32menu): New function. Used to
16839 initialize those global variables that must always be initialized
16840 on startup even when the global variable initialized is non zero.
16841 Its primary purpose at this time is to initialize the global
16842 variables get_menu_item_info and set_menu_item_info.
16843
16844 * w32menu.c (initialize_frame_menubar): Remove initialization of
16845 get_menu_item_info and set_menu_item_info.
16846
16847 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
16848
16849 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
16850 Declare them.
16851
16852 * emacs.c (main): Call globals_of_w32 prior to calling
16853 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
16854 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
16855 is defined.
16856
16857 * w32term.c (x_update_window_begin): Fix Windows API error
16858 detected by BoundsChecker. Test to determine if
16859 w32_system_caret_hwnd is NULL prior to attempting to use
16860 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
16861
16862 * w32term.c (x_update_window_end): Fix Windows API error
16863 detected by BoundsChecker. Test to determine if
16864 w32_system_caret_hwnd is NULL prior to attempting to use
16865 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
16866
16867 2002-12-17 Kenichi Handa <handa@m17n.org>
16868
16869 * coding.c (coding_system_require_warning): New variable.
16870 (syms_of_coding): DEFVAR it.
16871
16872 * coding.h (coding_system_require_warning): Extern it.
16873
16874 * fileio.c (choose_write_coding_system): Even if
16875 Vcoding_system_for_write is non-nil, if
16876 coding_system_require_warning is nonzero, call
16877 Vselect_safe_coding_system_function.
16878
16879 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
16880
16881 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
16882 (lisp): Add font-core.
16883
16884 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
16885
16886 * textprop.c (text_read_only): New arg `propval'.
16887 (get_char_property_and_overlay): Remove unused var `next_overlay'.
16888 (verify_interval_modification): Use text_read_only's new arg.
16889
16890 2002-12-13 Kenichi Handa <handa@m17n.org>
16891
16892 * coding.c (Funencodable_char_position): Set pend correctly.
16893
16894 2002-12-12 Jason Rumney <jasonr@gnu.org>
16895
16896 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
16897 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
16898 Be more careful about when help_events are generated.
16899
16900 2002-12-12 Steven Tamm <steventamm@mac.com>
16901
16902 * macterm.c (mac_check_for_quit_char): Correctly set the
16903 modifiers of the event to 0.
16904 * mac.c (sys_select): Duplicate rfds before calling select to
16905 ensure that rfds survive the while loop.
16906
16907 2002-12-11 Kim F. Storm <storm@cua.dk>
16908
16909 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
16910 row_containing_pos returned NULL.
16911
16912 2002-12-10 Steven Tamm <steventamm@mac.com>
16913
16914 * mac.c (sys_read): Fix sys_read to not call select if IO is
16915 non-blocking.
16916 (sys_select): Fix sys_select to not use a timeout larger than
16917 the one given.
16918
16919 2002-12-10 Juanma Barranquero <lektu@terra.es>
16920
16921 * editfns.c (Fformat): Use alloca, not _alloca.
16922
16923 2002-12-09 Richard M. Stallman <rms@gnu.org>
16924
16925 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
16926 as the last thing.
16927
16928 2002-12-09 Dave Love <fx@gnu.org>
16929
16930 * s/sol2-8.h: Removed. (Not necessary.)
16931
16932 2002-12-09 Matthew Swift <swift@alum.mit.edu>
16933
16934 * editfns.c (Fformat): Handle precision in string conversion
16935 specifiers like libc functions do (ie, print at most that many
16936 characters).
16937
16938 2002-12-08 Richard M. Stallman <rms@gnu.org>
16939
16940 * xdisp.c (row_containing_pos): Check more carefully
16941 whether charpos is really in the row before returning it.
16942
16943 2002-12-07 Steven Tamm <steventamm@mac.com>
16944
16945 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
16946
16947 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
16948 each stack frame. This may change as it could be time consuming.
16949
16950 * macterm.c (mac_check_for_quit_char, quit_char_comp)
16951 (init_quit_char_handler, mac_determine_quit_char_modifiers)
16952 (mac_initialize): Add code to check for pressing of quit_char
16953 in the OS event queue.
16954
16955 * mac.c (sys_select): Call mac_check_for_quit_char every second
16956 while blocking on select.
16957
16958 * mac.c (sys_read): Use sys_select to test for input first
16959 before calling read, to allow C-g to break.
16960
16961 2002-12-07 Richard M. Stallman <rms@gnu.org>
16962
16963 * minibuf.c (Fcompleting_read): Doc fix.
16964
16965 * lread.c (syms_of_lread) <load-history>: Doc fix.
16966
16967 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
16968
16969 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
16970 autoload.
16971
16972 * data.c (Fdefalias): Record in load-history redefining an autoload.
16973
16974 * alloca.c: Undo ifdef change accidentally made on 12-04.
16975
16976 2002-12-06 Francesco Potorti` <pot@gnu.org>
16977
16978 * xfns.c (png_load): Avoid double gamma correction for PNG images.
16979
16980 2002-12-04 Richard M. Stallman <rms@gnu.org>
16981
16982 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
16983
16984 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
16985
16986 * alloca.c: Don't use #error.
16987
16988 2002-12-03 Dave Love <fx@gnu.org>
16989
16990 * buffer.c (Qucs_set_table_for_input): New.
16991 (Fget_buffer_create): Use it.
16992 (Qset_buffer_major_mode_hook): Deleted.
16993 (Fset_buffer_major_mode): Revert previous change.
16994 (init_buffer_once): Intern ucs-set-table-for-input.
16995 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
16996 Add &Qucs_set_table_for_input.
16997
16998 2002-12-03 Andreas Schwab <schwab@suse.de>
16999
17000 * callint.c (Fcall_interactively): Use next_event only if less
17001 than key_count.
17002
17003 2002-12-02 Andrew Choi <akochoi@shaw.ca>
17004
17005 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
17006 names to 255 characters.
17007
17008 * macterm.c (XTread_socket): If all frames have been collapsed,
17009 expand the first one before handling drag-and-drop events.
17010
17011 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
17012 which is detected by autoconf.
17013
17014 2002-12-01 Steven Tamm <steventamm@mac.com>
17015
17016 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
17017 offset in two hints table to allow prebinding to be redone and
17018 allow the executable to be stripped.
17019
17020 2002-11-29 Dave Love <fx@gnu.org>
17021
17022 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
17023 already provided.
17024
17025 2002-11-29 Richard M. Stallman <rms@gnu.org>
17026
17027 * xdisp.c (start_display): Check more intelligently for
17028 whether the line is continued.
17029 (move_it_vertically_backward): Clear it->continuation_lines_width.
17030
17031 2002-11-28 Dave Love <fx@gnu.org>
17032
17033 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
17034 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
17035
17036 2002-11-27 Steven Tamm <steventamm@mac.com>
17037
17038 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
17039 more descriptive error output from lread.c:Fload upon most require
17040 cycles during boostrapping.
17041
17042 2002-11-27 Jason Rumney <jasonr@gnu.org>
17043
17044 * fileio.c (Finsert_file_contents): Give a more appropriate error
17045 for files bigger than 2Gb when off_t is 32 bit.
17046
17047 * dired.c (Ffile_attributes): Don't return negative file sizes for
17048 files bigger than 2Gb when off_t is 32 bit.
17049
17050 2002-11-27 Dave Love <fx@gnu.org>
17051
17052 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17053
17054 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
17055 Test GETPGRP_VOID instead.
17056 [BSD_TERMIOS]: Remove definitions (never used).
17057
17058 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
17059 Don't define.
17060 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
17061
17062 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
17063
17064 2002-11-25 Jason Rumney <jasonr@gnu.org>
17065
17066 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
17067 supported.
17068
17069 2002-11-25 Dave Love <fx@gnu.org>
17070
17071 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
17072
17073 * Makefile.in (TEMACS_LDFLAGS): Update last change.
17074
17075 2002-11-25 Andreas Schwab <schwab@suse.de>
17076
17077 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
17078
17079 2002-11-24 Steven Tamm <steventamm@mac.com>
17080
17081 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
17082 determine the size of pointers alloced in unexed space instead
17083 of using possibly invalid emacs_zone pointers. This fixes the
17084 binary incompatibility problems caused by updates to libSystem.B.
17085
17086 2002-11-24 Richard M. Stallman <rms@gnu.org>
17087
17088 * search.c (Fstring_match): Doc fix.
17089
17090 * callint.c (Fcall_interactively): If a command fails because
17091 `*' detects a read-only buffer, but RECORD_FLAG is set,
17092 record it anyway if the args don't actually do tty input.
17093
17094 2002-11-22 Dave Love <fx@gnu.org>
17095
17096 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
17097
17098 * keyboard.c (interrupt_signal): Provide forward declaration.
17099 (kbd_buffer_store_event): Don't declare interrupt_signal.
17100
17101 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
17102
17103 2002-11-21 Richard M. Stallman <rms@gnu.org>
17104
17105 * eval.c (interactive_p): Skip any number of bytecode
17106 and special form frames, in any order.
17107
17108 2002-11-20 Jason Rumney <jasonr@gnu.org>
17109
17110 * w32fns.c (convert_mono_to_color_image): New function.
17111 (xbm_load, xbm_load_image): Use it when foreground or background
17112 is explicitly set.
17113
17114 2002-11-19 Dave Love <fx@gnu.org>
17115
17116 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
17117
17118 2002-11-18 Jason Rumney <jasonr@gnu.org>
17119
17120 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
17121 (XPutPixel): Swap blue and red.
17122 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
17123 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
17124 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
17125 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
17126
17127 2002-11-18 Dave Love <fx@gnu.org>
17128
17129 * m/orion105.h (HAVE_ALLOCA): Don't define.
17130
17131 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
17132
17133 * m/intel386.h: Don't include alloca.h or define alloca.
17134
17135 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
17136 malloc, realloc, calloc.
17137
17138 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
17139 (bcmp): Don't define.
17140
17141 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
17142
17143 * m/amdahl.h: Don't define LIB_STANDARD.
17144
17145 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
17146
17147 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
17148
17149 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
17150 Don't include alloca.h.
17151
17152 * s/aix3-2.h (HAVE_FSYNC): Don't define.
17153
17154 * regex.c (_GNU_SOURCE): Don't define.
17155
17156 * process.c (_GNU_SOURCE): Don't define.
17157
17158 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
17159
17160 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
17161
17162 * s/sol2-8.h: Include sol2-6.h.
17163
17164 2002-11-18 Miles Bader <miles@gnu.org>
17165
17166 * dispextern.h (struct face): Add `overstrike' field.
17167 * xterm.c (x_draw_glyph_string_foreground)
17168 (x_draw_composite_glyph_string_foreground): Implement overstriking.
17169 * xfaces.c (load_face_font): Set `face->overstrike' based on
17170 result from choose_face_font.
17171 (best_matching_font, choose_face_font): Add `needs_overstrike'
17172 argument, and use it to return whether overstriking is desirable
17173 for this face/font combo.
17174 (set_font_frame_param: Pass new argument to choose_face_font.
17175
17176 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
17177
17178 This change is my fix for the following entry in etc/PROBLEMS:
17179 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
17180 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
17181
17182 * w32.c: Added wrapper functions around the win32 API functions
17183 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
17184 GetSidIdentifierAuthority. These wrapper functions serve two
17185 purposes:
17186 1. They ensure that the wrapped function can never be called
17187 when Emacs is running on an operating system on which they are
17188 not supported (Microsoft Windows 95 / 98 / ME).
17189 2. They call the wrapped functions via function pointers rather
17190 than calling them directly. This avoids taking advantage of the
17191 undocumented fact that although these functions are not supported
17192 in the 9x branch of Microsoft Windows, the functions do exist in
17193 the version of advapi32.dll that is found in the 9x branch of
17194 Microsoft Windows.
17195
17196 * w32.c (init_user_info): Replace the calls to the win32 API
17197 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
17198 and GetSidIdentifierAuthority with calls to the newly added
17199 wrapper functions.
17200
17201 * w32.h: Added extern declarations for the following functions:
17202 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
17203 syms_of_w32menu, and void syms_of_fontset.
17204
17205 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
17206 function pointer track_mouse_event_fn in the handler for the
17207 WM_SETFOCUS message.
17208
17209 * w32menu.c (initialize_frame_menubar): Add code to
17210 reinitialize the function pointers set_menu_item_info and
17211 get_menu_item_info.
17212
17213 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
17214
17215 * sound.c: Added a partial implementation of play-sound-internal
17216 for Microsoft Windows. Added various #ifdef / #else / #endif
17217 code blocks to separate the code that will compile under
17218 Microsoft Windows from the code that is specific to GNU/Linux.
17219 Moved several blocks of code around to make this separation of code
17220 into Windows compatible and GNU/Linux compatible code blocks easier.
17221
17222 * makefile.w32-in: Include sound.c and link with WinMM.lib.
17223
17224 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
17225 added support for play-sound-internal under Windows would be
17226 included in the build of Emacs.
17227
17228 2002-11-16 Jason Rumney <jasonr@gnu.org>
17229
17230 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
17231
17232 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
17233
17234 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
17235
17236 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
17237 (adjust_point_for_property): Move out of display and invisible even if
17238 we were already inside before (in case a property was added while
17239 we weren't looking). Be more careful when handling invisible props.
17240 Skip invisible text as if it really wasn't there at all.
17241
17242 2002-11-15 Jason Rumney <jasonr@gnu.org>
17243
17244 * w32term.c (x_draw_image_foreground)
17245 (w32_draw_image_foreground_1): Use standard copy and invert
17246 operations to draw images.
17247
17248 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
17249 depth of 1.
17250 (xbm_read_bitmap_data): Invert bits as xbm is read in.
17251 (XPutPixel): Don't invert bits here.
17252
17253 2002-11-15 Jason Rumney <jasonr@gnu.org>
17254
17255 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
17256 (w32_draw_image_foreground_1): Handle image masks.
17257 (x_draw_image_glyph_string): Don't BitBlt transparently.
17258
17259 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
17260 (x_from_xcolors): Adjust RGB values for W32.
17261 (image_background, image_background_transparent)
17262 (postprocess_image, x_to_xcolors, x_disable_image)
17263 (x_build_heuristic_mask): Adapt for W32 and enable.
17264 (x_create_x_image_and_pixmap): Mark images with palettes as such.
17265 (xbm_load): Remove unused variable.
17266
17267 2002-11-14 Richard M. Stallman <rms@gnu.org>
17268
17269 * buffer.c (syms_of_buffer): Doc fix.
17270
17271 2002-11-14 Dave Love <fx@gnu.org>
17272
17273 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
17274
17275 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
17276 * xmenu.c (unuse_menu_items, digest_single_submenu):
17277 * xfns.c (x_put_x_image):
17278 * xdisp.c (message2_nolog, set_message):
17279 * undo.c (record_point):
17280 * terminfo.c (tparam):
17281 * syntax.c (scan_sexps_forward):
17282 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17283 * composite.c (update_compositions):
17284 * cm.c (calccost, cmgoto):
17285 * charset.c (c_string_width): Declare all args (per C99).
17286
17287 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
17288
17289 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
17290 Don't declare.
17291
17292 * emacs.c (main) [!VMS]: Avoid third arg.
17293
17294 * fns.c (Fcopy_sequence): Doc fix.
17295 (Fmap_char_table): Cast `call2'.
17296
17297 2002-11-14 Francesco Potorti` <pot@gnu.org>
17298
17299 * s/sol2-8.h: New file.
17300
17301 2002-11-14 Kim F. Storm <storm@cua.dk>
17302
17303 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
17304 dependency on `risky-local-variable' and the :propertize form.
17305
17306 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
17307
17308 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
17309
17310 * syntax.c (scan_sexps_forward): Undo last patch.
17311 Use a more obvious fix: check eob before updating the syntax table.
17312
17313 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
17314
17315 * syntax.c (scan_sexps_forward): Update syntax table before reading
17316 a char rather than after so we don't update the table past eob.
17317
17318 2002-11-09 Dave Love <fx@gnu.org>
17319
17320 * buffer.c (Fset_buffer_major_mode): Fix last change.
17321
17322 * regex.c (regexec): Fix pmatch declaration.
17323
17324 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
17325
17326 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
17327 to self-inserting characters.
17328 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
17329
17330 * coding.c (Vtranslation_table_for_input): New.
17331 (syms_of_coding): DEFVAR it.
17332
17333 2002-11-08 Juanma Barranquero <lektu@terra.es>
17334
17335 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
17336 window.
17337
17338 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17339
17340 * process.c (Fformat_network_address): Remove unused locals p,
17341 cp, and i.
17342
17343 2002-11-06 Dave Love <fx@gnu.org>
17344
17345 * buffer.c (Qset_buffer_major_mode_hook): New.
17346 (Fset_buffer_major_mode): Use it.
17347
17348 2002-11-06 Richard M. Stallman <rms@gnu.org>
17349
17350 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
17351 and stop_polling.
17352
17353 * process.c (wait_reading_process_input):
17354 Test POLLING_PROBLEM_IN_SELECT, not hpux.
17355 Avoid initialization for auto Lisp_Object var.
17356
17357 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
17358
17359 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
17360
17361 2002-11-05 Richard M. Stallman <rms@gnu.org>
17362
17363 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
17364
17365 * callint.c (Fcall_interactively): New local filter_specs.
17366 (Fcall_interactively): Check for progn as well as let.
17367 Add a gcpro.
17368 (Qprogn): New variable.
17369 (syms_of_callint): Staticpro and init Qprogn.
17370
17371 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
17372
17373 * lread.c (Feval_buffer): Doc fix.
17374
17375 2002-11-04 Dave Love <fx@gnu.org>
17376
17377 * keyboard.c (read_char): Always translate iff
17378 Vkeyboard_translate_table is a char table and c is valid.
17379
17380 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17381 and fix C types.
17382
17383 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
17384
17385 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
17386
17387 * editfns.c (get_pos_property): Don't hardcode Qfield.
17388
17389 * keyboard.c (adjust_point_for_property): Handle `display' prop on
17390 overlays. Also handle `invisible' prop.
17391
17392 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
17393
17394 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
17395 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
17396
17397 2002-11-01 Andreas Schwab <schwab@suse.de>
17398
17399 * editfns.c (Fmessage): Revert last change to properly handle %%.
17400
17401 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
17402
17403 * xmenu.c (unuse_menu_items): New fun.
17404 (menu_items_inuse): New var.
17405 (syms_of_xmenu): Initialize it.
17406 (init_menu_items): Use it to detect re-entrance.
17407 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
17408 (Fx_popup_menu): Remove spurious XSETFRAME.
17409
17410 * editfns.c (find_field): Make an exception for nil fields.
17411
17412 2002-11-01 Dave Love <fx@gnu.org>
17413
17414 * m/gec63.h: Deleted.
17415
17416 2002-10-31 Dave Love <fx@gnu.org>
17417
17418 * xterm.c (XTread_socket): Fix last change.
17419 (xaw_scroll_callback): Cast call_data to long to avoid warning.
17420
17421 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
17422
17423 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
17424
17425 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
17426
17427 * editfns.c (overlays_around, get_pos_property): New funs.
17428 (find_field): Use them.
17429 Also be careful not to modify POS before its last use.
17430 (Fmessage): Don't Fformat if there's nothing to format.
17431
17432 2002-10-30 Dave Love <fx@gnu.org>
17433
17434 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
17435 [HAVE_PTY_H]; Include pty.h.
17436
17437 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
17438
17439 * xterm.c (Qeql): Declare.
17440 (Vx_keysym_table): New.
17441 (syms_of_xterm): Initialize it.
17442 (XTread_socket): Use it. Deal with ASCII keysyms.
17443 (XSetIMValues) [HAVE_X11R6]: Prototype.
17444
17445 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
17446 (lispy_kana_keys): Comment out.
17447 (make_lispy_event) [XK_kana_A]: Comment out.
17448 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
17449 Fix sprintf call.
17450
17451 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
17452 regexp.h change).
17453 (TERMINFO, LIBS_TERMCAP): Define.
17454
17455 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
17456 (bcmp): Define conditional on HAVE_BCMP.
17457 (NO_SIOCTL_H): Don't define.
17458 (TIOCSIGSEND): Don't make conditional on IRIX6.
17459
17460 * s/sol2-5.h: Don't include strings.h.
17461 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
17462
17463 * s/irix6-0.h (IRIX6): Don't define.
17464 (bcopy, bcmp, bzero): Don't undef.
17465
17466 * s/irix6-5.h: Don't include strings.h.
17467 (IRIX6): Don't define.
17468 (bcopy, bcmp, bzero): Don't undef.
17469
17470 * syntax.c (Fforward_comment): Doc fix.
17471
17472 2002-10-29 Kim F. Storm <storm@cua.dk>
17473
17474 * process.c (Fsignal_process): Allow PROCESS to be specified by
17475 name in addition to pid (as integer or string).
17476
17477 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
17478
17479 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
17480 environments.
17481
17482 2002-10-27 Kim F. Storm <storm@cua.dk>
17483
17484 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
17485
17486 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
17487
17488 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
17489
17490 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
17491
17492 2002-10-26 Richard M. Stallman <rms@gnu.org>
17493
17494 * editfns.c (Fformat): Detect invalid format letters for floats.
17495
17496 2002-10-25 Kenichi Handa <handa@m17n.org>
17497
17498 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
17499 (x_set_title): Likewise.
17500
17501 2002-10-25 Juanma Barranquero <lektu@terra.es>
17502
17503 * macgui.h:
17504 * w32gui.h: Remove definition of XColor.
17505
17506 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
17507
17508 2002-10-24 Kim F. Storm <storm@cua.dk>
17509
17510 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
17511 Callers changed (supply dummy arg).
17512
17513 * lisp.h (get_window_cursor_type): Update prototype.
17514
17515 * w32term.c (x_display_and_set_cursor): Get active_cursor from
17516 get_window_cursor_type to track system caret.
17517
17518 2002-10-24 Kim F. Storm <storm@cua.dk>
17519
17520 * process.c (Fformat_network_address): New function.
17521 (syms_of_process): Defsubr it.
17522 (list_processes_1): Use it to format :local/:remote address if
17523 service/host is not set; before Emacs would crash in that case.
17524 (Fmake_network_process): Don't use Ffind_operation_coding_system
17525 to setup coding system if host or service is not set.
17526
17527 2002-10-23 Juanma Barranquero <lektu@terra.es>
17528
17529 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
17530
17531 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
17532 COLORREF.
17533
17534 * macgui.h:
17535 * w32gui.h: Add definition of XColor.
17536
17537 * macfns.c:
17538 * w32fns.c:
17539 * xfaces.c: Remove definition of XColor.
17540
17541 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
17542
17543 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
17544
17545 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
17546 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
17547 window if it is dedicated.
17548 (Fshrink_window): Add preserve_before as was done for enlarge_window.
17549 (Vspecial_display_function): Update docstring.
17550
17551 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
17552 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
17553 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
17554
17555 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
17556
17557 * casefiddle.c (casify_region): Don't treat a prefix char as part
17558 of a word when at the beginning.
17559
17560 2002-10-17 Juanma Barranquero <lektu@terra.es>
17561
17562 * lread.c (syms_of_lread): Fix typos.
17563
17564 2002-10-17 Dave Love <fx@gnu.org>
17565
17566 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
17567
17568 2002-10-16 Richard M. Stallman <rms@gnu.org>
17569
17570 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
17571
17572 2002-10-14 Juanma Barranquero <lektu@terra.es>
17573
17574 * w16select.c (syms_of_win16select): Fix docstring for
17575 `selection-coding-system'.
17576
17577 * w32select.c (syms_of_w32select): Likewise.
17578
17579 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
17580
17581 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
17582 a backslash-quoted char.
17583 (scan_lists, scan_sexps_forward): Pacify the compiler.
17584
17585 2002-10-13 Richard M. Stallman <rms@gnu.org>
17586
17587 * window.c (window_scroll): Set immediate_quit.
17588
17589 * print.c (print): When backquote form is the car of a list,
17590 output in old style. Use old_backquote_output to output all
17591 comma forms inside it in old style too.
17592
17593 * buffer.h (struct buffer): Move `undo_list' down below `name'.
17594
17595 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
17596
17597 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
17598 batch mode).
17599
17600 * lread.c (Fload): Doc fix (load-suffixes).
17601
17602 2002-10-10 Steven Tamm <steventamm@mac.com>
17603
17604 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
17605 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
17606 Also switch the default to Qnil from Qt.
17607
17608 2002-10-08 Kenichi Handa <handa@m17n.org>
17609
17610 * coding.c (code_convert_region): When we need more GAP for
17611 conversion, pay attention to the case that coding->produced is not
17612 greater than coding->consumed.
17613
17614 2002-10-07 Richard M. Stallman <rms@gnu.org>
17615
17616 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
17617
17618 2002-10-06 Andrew Choi <akochoi@shaw.ca>
17619
17620 * macmenu.c (mac_menu_show): Add j to count menu items; match
17621 menu_item_selection to it to find selected item.
17622
17623 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17624
17625 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
17626 cases. The correct fix is to pass ReparentNotify to Xt.
17627 The shell widget interprets ConfigureNotify differently depending
17628 on if it has been reparented or not.
17629
17630 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
17631
17632 * editfns.c (Fformat_time_string): Doc fix.
17633
17634 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
17635
17636 * fns.c (Flength): Doc fix.
17637
17638 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
17639
17640 * keyboard.c (keyremap): New struct.
17641 (read_key_sequence): Use it: globally replace keytran_foo with
17642 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
17643 keytran_next and fkey_next to just `next'.
17644
17645 2002-10-04 Steven Tamm <steventamm@mac.com>
17646
17647 * macterm.c (keycode_to_xkeysym_table): Change return to be
17648 treated like an X keysym.
17649
17650 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17651
17652 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
17653 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
17654 This is to also handle x/y changes that occur because of a resize.
17655
17656 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
17657
17658 * frame.c (Vdelete_frame_functions): New variable.
17659 (syms_of_frame): Initialize and defvar it.
17660 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
17661 it when frame's `tooltip' parameter is non-nil.
17662
17663 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
17664
17665 * w32fns.c (x_create_tip_frame): Likewise.
17666
17667 * macfns.c (x_create_tip_frame): Likewise.
17668
17669 2002-09-30 Kenichi Handa <handa@m17n.org>
17670
17671 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
17672 -1 before calling ccl_driver.
17673
17674 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
17675 Only when it is non-nil, handle composition sequence.
17676 (setup_coding_system) <0>: Don't force composition handling.
17677
17678 * Makefile.in (lisp, shortlisp): Add utf-16.elc
17679
17680 2002-09-29 Richard M. Stallman <rms@gnu.org>
17681
17682 * search.c (Freplace_match): Adjust match data for the substitution
17683 just made in the buffer.
17684
17685 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
17686 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
17687
17688 2002-09-27 Richard M. Stallman <rms@gnu.org>
17689
17690 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
17691 (read_char): Use them. Do all exits thru the end of the function.
17692
17693 2002-09-27 Kenichi Handa <handa@etl.go.jp>
17694
17695 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
17696 is nil.
17697
17698 2002-09-26 Richard M. Stallman <rms@gnu.org>
17699
17700 * regex.h (__restrict_arr): Don't define if already defined.
17701
17702 * coding.c (run_pre_post_conversion_on_str):
17703 Save and restore Vdeactivate_mark.
17704
17705 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
17706
17707 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
17708
17709 2002-09-26 Kenichi Handa <handa@etl.go.jp>
17710
17711 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
17712 nonzero, try face's family at first. Otherwise try FAMILY at first.
17713 (choose_face_font): If C is a single byte char or latin-1, call
17714 try_font_list with PREFER_FACE_FAMILY 1.
17715
17716 2002-09-21 Richard M. Stallman <rms@gnu.org>
17717
17718 * window.c (select_window_1): Don't select frame.
17719 Set frame's selected window only when frame itself is selected.
17720 (Fselect_window): Doc fix.
17721
17722 2002-09-18 Kim F. Storm <storm@cua.dk>
17723
17724 * process.c (make-network-process): Doc fix (there is no
17725 network-server-log-function hook).
17726
17727 2002-09-18 Richard M. Stallman <rms@gnu.org>
17728
17729 * print.c (print): Clear out the unused parts of Vprint_number_table.
17730 (syms_of_print): Doc fix for `print-number-table'.
17731
17732 * unexelf.c (unexec): Undo previous change.
17733
17734 2002-09-17 Andreas Schwab <schwab@suse.de>
17735
17736 * m/alpha.h [LINUX]: Don't define DATA_START.
17737
17738 2002-09-16 Dave Love <fx@gnu.org>
17739
17740 * unexelf.c (unexec): Deal with .got, reinstating change from
17741 25-08-1999.
17742
17743 2002-09-13 Richard M. Stallman <rms@gnu.org>
17744
17745 * s/sol2-6.h (UNEXEC): Comment out definition.
17746
17747 * unexsol.c (unexec): Don't downcase first letter of error msg.
17748
17749 * xfaces.c (Fcolor_supported_p): Just one arg is required.
17750
17751 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
17752
17753 * unexsol.c: Include buffer.h, charset.h, coding.h.
17754
17755 2002-09-11 Richard M. Stallman <rms@gnu.org>
17756
17757 * unexsol.c: Don't use report_file_error; do it by hand
17758 using dlerror.
17759
17760 * process.c (wait_reading_process_input, both versions):
17761 Before calling turn_on_atimers, call stop_polling.
17762
17763 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
17764
17765 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
17766 we go to too_near_end, call clear_glyph_matrix.
17767 (redisplay_window): After make_cursor_line_fully_visible,
17768 call clear_glyph_matrix and bypass `goto done'.
17769
17770 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
17771 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
17772
17773 2002-09-10 Richard M. Stallman <rms@gnu.org>
17774
17775 * fileio.c (Fdo_auto_save): Catch error making directory.
17776 Only call push_message if we need to.
17777 At the same time, make an unwind-protect to pop it.
17778 Rename local message_p to old_message_p.
17779 (do_auto_save_make_dir, do_auto_save_eh): New functions.
17780 (do_auto_save_unwind): Don't call pop_message.
17781
17782 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
17783
17784 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
17785
17786 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
17787
17788 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
17789
17790 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
17791
17792 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
17793 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
17794 (re_match_2_internal): Be more careful with infinite loops.
17795
17796 2002-09-10 Kim F. Storm <storm@cua.dk>
17797
17798 * macros.c (end_kbd_macro): New function.
17799 (Fend_kbd_macro): Use it.
17800
17801 * macros.h (end_kbd_macro): Declare extern.
17802
17803 * keyboard.c (Fdiscard_input): If defining keyboard macro,
17804 end and save it instead of discarding it.
17805
17806 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
17807
17808 * s/sol2-6.h: Fix typo. Add comment.
17809
17810 2002-09-09 Richard M. Stallman <rms@gnu.org>
17811
17812 * regex.c (regnum_t): Use signed int, not unsigned int.
17813
17814 * s/sol2-6.h: New file.
17815
17816 * s/sol2-5.h (UNEXEC): Definition deleted.
17817
17818 2002-09-08 Kim F. Storm <storm@cua.dk>
17819
17820 * macros.c (executing_macro_index): Change type to EMACS_INT.
17821 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
17822
17823 * macros.h (executing_macro_index): Change type to EMACS_INT.
17824
17825 2002-09-06 Richard M. Stallman <rms@gnu.org>
17826
17827 * casetab.c (set_case_table): Make canon table point to eqv table.
17828
17829 2002-09-06 Juanma Barranquero <lektu@terra.es>
17830
17831 * coding.c (syms_of_coding): Fix spacing.
17832
17833 * composite.c (Fcompose_region_internal)
17834 (Fcompose_string_internal): Likewise.
17835
17836 * data.c (Flsh): Likewise.
17837
17838 * fontset.c (Fset_fontset_font): Likewise.
17839
17840 * macfns.c (Fx_server_max_request_size): Likewise.
17841
17842 * w16select.c (syms_of_win16select): Likewise.
17843
17844 * w32select.c (syms_of_w32select): Likewise.
17845
17846 * xselect.c (syms_of_xselect): Likewise.
17847
17848 2002-09-05 Richard M. Stallman <rms@gnu.org>
17849
17850 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
17851 call EXTEND_RANGE_TABLE and return a proper value.
17852 (set_image_of_range): Don't call set_image_of_range_1
17853 if no TRANSLATE or if range includes all of Latin-1.
17854 Only call it for the Latin-1 part of the range.
17855 For other cases, make two separate ranges,
17856 one for the original specified characters and one for
17857 their case-conversions.
17858
17859 2002-09-04 Richard M. Stallman <rms@gnu.org>
17860
17861 * s/sol2-5.h (UNEXEC): Use unexsol.o.
17862
17863 * window.c (displayed_window_lines): Correct for one-off bug
17864 in HEIGHT on non-window displays.
17865
17866 * regex.c (set_image_of_range_1): New function.
17867 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
17868 Return a value to indicate running out of memory.
17869 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
17870 (extend_range_table_work_area): New subroutine.
17871 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
17872 Different calling conventions, and used from set_image_of_range{,_1}.
17873 (IMMEDIATE_QUIT_CHECK): Definitions moved.
17874
17875 2002-09-04 Juanma Barranquero <lektu@terra.es>
17876
17877 * makefile.w32-in: All dependencies updated.
17878
17879 2002-09-01 Richard M. Stallman <rms@gnu.org>
17880
17881 * unexsol.c: New file.
17882
17883 * xfns.c (Qbox): Declare external, don't define.
17884
17885 * xdisp.c (redisplay_window) <force-start case>:
17886 If point is on semi-visible last line, reposition
17887 it at previous line.
17888
17889 * alloc.c (display_malloc_warning): Use display-warning.
17890 (malloc_warning_1): Function deleted.
17891
17892 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
17893
17894 * lread.c (read1): Handle #! by skipping the line.
17895
17896 2002-08-31 Richard M. Stallman <rms@gnu.org>
17897
17898 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
17899 Don't include LDFLAGS.
17900 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
17901
17902 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
17903
17904 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
17905 member of x_display_info unless we compile for some window system.
17906
17907 2002-08-31 Kim F. Storm <storm@cua.dk>
17908
17909 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
17910 (get_window_cursor_type): Don't use them.
17911 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
17912
17913 2002-08-30 Kenichi Handa <handa@etl.go.jp>
17914
17915 * xdisp.c (get_next_display_element): Fix previous change.
17916
17917 2002-08-30 Andrew Choi <akochoi@shaw.ca>
17918
17919 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
17920 (expose_window): Use it to fix the display of overlapping
17921 rows (merge code from xterm.c).
17922
17923 * macfns.c (Qbox): Add extern declaration.
17924
17925 2002-08-30 Juanma Barranquero <lektu@terra.es>
17926
17927 * w32fns.c (Qbox): Make extern.
17928 (syms_of_w32fns): Remove initialization of Qbox.
17929
17930 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
17931
17932 * xfns.c (Fx_open_connection): Fix error message.
17933
17934 2002-08-30 Kim F. Storm <storm@cua.dk>
17935
17936 The following changes consolidates the handling of the cursor
17937 type in xdisp.c, moving duplicate code and functionality from
17938 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
17939
17940 * frame.h (enum text_cursor_kinds): Consolidated here.
17941 Added DEFAULT_CURSOR value.
17942 (struct frame) <desired_cursor, cursor_width>
17943 <blink_off_cursor, blink_off_cursor_width>: New fields.
17944 Consolidated from output_x, output_w32 and output_mac structs.
17945 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17946 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
17947
17948 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
17949 Variables consolidated here.
17950 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
17951 (Vcursor_in_non_selected_windows): Renamed from
17952 cursor_in_non_selected_windows and changed to Lisp_Object.
17953 (syms_of_xdisp): Define and staticpro new and moved variables.
17954 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
17955 consolidated here. Recognize Qhollow setting.
17956 (set_frame_cursor_types): New function to set frame cursor types
17957 based on the frame parameters.
17958 (get_window_cursor_type): New function to calculate new cursor
17959 type and width for the specified window. Based on duplicated
17960 code consolidated here.
17961 Enhancements: cursor-in-non-selected-windows may be a cursor type,
17962 check buffer-local alternate-cursor-type and blink-cursor-alist
17963 before using built-in blink off methods.
17964
17965 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
17966
17967 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
17968 (get_specified_cursor_type, get_window_cursor_type)
17969 (set_frame_cursor_types): Added prototypes.
17970
17971 * macfns.c (x_specified_cursor_type): Removed.
17972 (x_set_cursor_type): Use set_frame_cursor_types.
17973 (Qbar, Qbox): Removed.
17974 (syms_of_macfns): Don't intern or staticpro them.
17975
17976 * macterm.c (x_specified_cursor_type): Remove prototype.
17977 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17978 (x_display_and_set_cursor): Use get_window_cursor_type.
17979 Remove unused local variables cursor_non_selected, active_cursor.
17980 Redraw cursor if hbar cursor width changes.
17981 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
17982
17983 * macterm.h (enum text_cursor_kinds): Removed.
17984 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
17985 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17986 (FRAME_DESIRED_CURSOR): Macro removed.
17987
17988 * w32fns.c (Vblink_cursor_alist): Removed.
17989 (Qbar, Qhbar, Qbox, Qhollow): Removed.
17990 (syms_of_w32fns): Don't intern, staticpro, or define them.
17991 (x_specified_cursor_type): Removed.
17992 (x_set_cursor_type): Use set_frame_cursor_types.
17993
17994 * w32term.c (x_specified_cursor_type): Remove prototype.
17995 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17996 (x_display_and_set_cursor): Use get_window_cursor_type.
17997 Remove unused local variables cursor_off_state.
17998 Redraw cursor if hbar cursor width changes.
17999 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
18000
18001 * w32term.h (enum text_cursor_kinds): Removed.
18002 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
18003 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18004 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18005 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18006 (struct w32_display_info) <x_highlight_frame>: Renamed member from
18007 w32_highlight_frame.
18008
18009 * xfns.c (Vblink_cursor_alist): Removed.
18010 (Qbar, Qhbar, Qbox, Qhollow): Removed.
18011 (syms_of_xfns): Don't intern, staticpro, or define them.
18012 (x_specified_cursor_type): Removed.
18013 (x_set_cursor_type): Use set_frame_cursor_types.
18014
18015 * xterm.c (x_specified_cursor_type): Remove prototype.
18016 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
18017 (x_display_and_set_cursor): Use get_window_cursor_type.
18018 Remove unused local variables cursor_off_state.
18019 Redraw cursor if hbar cursor width changes.
18020
18021 * xterm.h (enum text_cursor_kinds): Removed.
18022 (struct output_x) <current_cursor, desired_cursor, cursor_width>
18023 <blink_off_cursor, blink_off_cursor_width>: Members removed.
18024 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
18025 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
18026 (x_specified_cursor_type): Remove prototype.
18027
18028 2002-08-28 Richard M. Stallman <rms@gnu.org>
18029
18030 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
18031 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
18032 (Vblink_cursor_alist): New variable.
18033 (syms_of_w32fns): Initialize and defvar it.
18034 (x_specified_cursor_type): Recognize Qbox for filled box.
18035 Exceptions are hollow boxes.
18036 (Qbox, Qhollow): New variables.
18037 (syms_of_w32fns): Initialize and staticpro them.
18038
18039 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
18040 New macros.
18041 (struct w32_output): New fields blink_off_cursor,
18042 blink_off_cursor_width.
18043 (FRAME_CURSOR_WIDTH): New macro.
18044
18045 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
18046 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
18047
18048 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
18049 for bar cursor.
18050
18051 * w32term.c (expose_overlaps): New function.
18052 (expose_window): Use it to fix the display of overlapping rows.
18053
18054 2002-08-28 Simon Josefsson <jas@extundo.com>
18055
18056 * xfns.c (Fx_open_connection): Improve help when X connection
18057 fails, xhost is insecure and xauth is better.
18058
18059 2002-08-28 Juanma Barranquero <lektu@terra.es>
18060
18061 * makefile.w32-in: Add missing dependencies on w32term.h and
18062 composite.h.
18063
18064 * emacs.c (USAGE1): Add missing newline.
18065
18066 2002-08-27 Andrew Choi <akochoi@shaw.ca>
18067
18068 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
18069
18070 2002-08-27 Richard M. Stallman <rms@gnu.org>
18071
18072 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
18073 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
18074 (Vblink_cursor_alist): New variable.
18075 (syms_of_xfns): Initialize and defvar it.
18076 (x_specified_cursor_type): Recognize Qbox for filled box.
18077 Exceptions are hollow boxes.
18078 (Qbox, Qhollow): New variables.
18079 (syms_of_xfns): Initialize and staticpro them.
18080
18081 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
18082 New macros.
18083 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
18084
18085 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
18086 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
18087
18088 * emacs.c (main): Handle --script.
18089 (USAGE1): Mention --script.
18090 (standard_args): Define sort order for --script.
18091
18092 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
18093
18094 * xdisp.c (redisplay_updating_p): Variable removed.
18095 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
18096 New variables.
18097 (init_iterator): Don't free realized faces if
18098 inhibit_free_realized_faces is set.
18099 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
18100 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
18101 initialize Qinhibit_free_realized_faces.
18102
18103 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
18104 when iterator is adding glyphs to a glyph matrix.
18105
18106 2002-08-27 Kenichi Handa <handa@etl.go.jp>
18107
18108 * xdisp.c (get_next_display_element): In unibyte case, don't use
18109 octal form for such eight-bit characters that can be converted to
18110 multibyte char.
18111
18112 2002-08-26 Kim F. Storm <storm@cua.dk>
18113
18114 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
18115 foreground and background colors. From Joe Buehler.
18116
18117 2002-08-26 Miles Bader <miles@gnu.org>
18118
18119 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
18120
18121 2002-08-25 Andrew Choi <akochoi@shaw.ca>
18122
18123 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
18124 defined instead of MAC_OSX.
18125
18126 * s/darwin.h (select): Define select to sys_select only if
18127 HAVE_CARBON is defined.
18128 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
18129 (DONT_REOPEN_PTY): #def it.
18130
18131 * macterm.c (XTread_socket): Remove code to call
18132 SendEventToEventTarget for keys with command modifiers when
18133 mac_command_key_is_meta is nil.
18134
18135 2002-08-24 Andreas Schwab <schwab@suse.de>
18136
18137 * eval.c (Fdefvar): Fix last change.
18138
18139 2002-08-23 Richard M. Stallman <rms@gnu.org>
18140
18141 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
18142 Record variables in load history as (defvar . VAR).
18143 (Fdefvar): Don't record in load history if no initial value.
18144 (Qdefvar): New variable.
18145 (syms_of_eval): Init and staticpro it.
18146
18147 * lread.c (syms_of_lread): Doc fix.
18148 (build_load_history): Use Fmember to see if a definition
18149 is already in the Vload_history element.
18150
18151 * process.c (Fstart_process): Remove /: from program name.
18152
18153 * emacs.c (decode_env_path): Don't add /: if file name handler
18154 has a `safe-magic' property.
18155
18156 * callproc.c (Fcall_process): Remove /: from program name.
18157
18158 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
18159
18160 * regex.c (PATFETCH): Remove the translating fetch.
18161 (PATFETCH_RAW): Rename to PATFETCH.
18162 (set_image_of_range): New fun.
18163 (SET_RANGE_TABLE_WORK_AREA): Use it.
18164 (regex_compile): Don't translate the pattern chars so eagerly.
18165 Only do it when inserting an `exactn' bytecode or when handling
18166 a char-range.
18167 (mutually_exclusive_p): Avoid empty statement.
18168
18169 2002-08-22 Kim F. Storm <storm@cua.dk>
18170
18171 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
18172 end up on a partially visible line; this reverts a specific part
18173 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
18174 display error which has been reported several times now.
18175 However it introduces the problem that changes was supposed to fix.
18176 See my comments in the source if you want to debug this further.
18177
18178 2002-08-20 Kenichi Handa <handa@etl.go.jp>
18179
18180 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18181
18182 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
18183
18184 * msdos.c (croak): Add `void' to definition.
18185
18186 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
18187 Don't define them, they are defined in msdos.c.
18188
18189 * mem-limits.h [MSDOS]: Declare etext.
18190
18191 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
18192 `const' since CORRECT_DIR_SEPS modifies its target.
18193
18194 2002-08-19 Kim F. Storm <storm@cua.dk>
18195
18196 * keyboard.c (Fclear_this_command_keys): Add optional arg
18197 KEEP-RECORD to avoid clearing lossage when we just want to clear
18198 the current key sequence (kmacro needs this).
18199
18200 2002-08-19 Kenichi Handa <handa@localhost>
18201
18202 * composite.c (run_composition_function): Call FUNC if it is fboundp.
18203
18204 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
18205 cons, return Qnil.
18206
18207 2002-08-17 Richard M. Stallman <rms@gnu.org>
18208
18209 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
18210
18211 * sysdep.c [!VMS]: Include sys/files.h.
18212
18213 * editfns.c (save_restriction_restore): Defend from unchained marker.
18214
18215 * buffer.c (overlays_at): Handle extending vec uniformly.
18216 (overlays_in): Handle extending vec from length 0 as in overlays_at.
18217
18218 2002-08-15 Andrew Choi <akochoi@shaw.ca>
18219
18220 * mac.c (init_mac_osx_environment): New function.
18221
18222 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
18223
18224 2002-08-14 Kim F. Storm <storm@cua.dk>
18225
18226 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
18227 executing macro before appending to it (when used from Lisp).
18228 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
18229 which is called prior to each iteration of macro (for kmacro.el).
18230 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
18231
18232 * lisp.h (Fexecute_kbd_macro): Update prototype.
18233
18234 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
18235
18236 2002-08-14 Kenichi Handa <handa@etl.go.jp>
18237
18238 * xselect.c (QUTF8_STRING): New variable.
18239 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
18240 (x_atom_to_symbol): Likewise.
18241 (x_get_local_selection): New argument local_request. If it is
18242 nonzero, call handler_fn with the second arg nil.
18243 (x_handle_selection_request): Call x_get_local_selection with
18244 local_request 0.
18245 (lisp_data_to_selection_data): Don't encode the string here.
18246 (Fx_get_selection_internal): Call x_get_local_selection with
18247 local_request 1.
18248 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
18249
18250 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
18251
18252 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
18253
18254 2002-08-13 Richard M. Stallman <rms@gnu.org>
18255
18256 * minibuf.c (Fminibufferp): New function.
18257 (syms_of_minibuf): Defsubr it.
18258 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
18259
18260 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
18261
18262 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
18263
18264 2002-08-12 Richard M. Stallman <rms@gnu.org>
18265
18266 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
18267 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
18268 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
18269 already.
18270
18271 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
18272
18273 2002-08-11 Andrew Choi <akochoi@shaw.ca>
18274
18275 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
18276 (Vmac_pass_command_to_system): New variable.
18277 (Vmac_pass_control_to_system): New variable.
18278 (do_mouse_moved): Check wp with is_emacs_window.
18279 (XTread_socket): Check window_ptr with is_emacs_window.
18280 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
18281 events back to Mac Toolbox for processing, depending on values of
18282 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
18283 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
18284 Vmac_pass_control_to_system.
18285
18286 2002-08-10 Kenichi Handa <handa@etl.go.jp>
18287
18288 * coding.c (unencodable_char_position): New function.
18289 (Funencodable_char_position): New function.
18290 (syms_of_coding): Defsubr Funencodable_char_position.
18291
18292 2002-08-10 Andrew Choi <akochoi@shaw.ca>
18293
18294 * mac.c (sys_select) [MAC_OSX]: New function.
18295
18296 * macterm.c (MakeMeTheFrontProcess): New function.
18297 (mac_initialize): Call MakeMeTheFrontProcess.
18298
18299 * s/darwin.h: Define select to sys_select.
18300
18301 2002-08-09 Richard M. Stallman <rms@gnu.org>
18302
18303 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
18304
18305 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
18306
18307 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
18308 end of the buffer.
18309
18310 2002-08-08 Ken Raeburn <raeburn@gnu.org>
18311
18312 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
18313
18314 * puresize.h (BASE_PURESIZE): Increase to 910000.
18315
18316 2002-08-08 Kenichi Handa <handa@etl.go.jp>
18317
18318 * coding.c (Ffind_operation_coding_system): For write-region, if
18319 VISIT is a filename, make it the target.
18320
18321 2002-08-07 Richard M. Stallman <rms@gnu.org>
18322
18323 * alloc.c (mark_object): Detect long lists for debugging.
18324 (mark_object_loop_halt): New variable.
18325
18326 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
18327
18328 * data.c (Fmake_variable_frame_local): Doc fix.
18329
18330 2002-08-01 David Ponce <david@dponce.com>
18331
18332 * w32menu.c (local_heap, local_alloc, local_free): New macros.
18333 (malloc_widget_value, free_widget_value)
18334 (w32_free_submenu_strings): Use them.
18335
18336 (push_submenu_start, push_submenu_end, push_left_right_boundary)
18337 (push_menu_pane, push_menu_item, single_keymap_panes)
18338 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
18339 (single_submenu, set_frame_menubar)
18340 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
18341
18342 (Fx_popup_menu): Don't show pop up menu until preceding one is
18343 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
18344
18345 * w32menu.c: Changes adapted from xmenu.c
18346 (set_frame_menubar): First parse all submenus,
18347 then make widget_value trees from them.
18348 Don't allocate any widget_value objects
18349 until we are done with the parsing.
18350 (parse_single_submenu): New function.
18351 (digest_single_submenu): New function.
18352 (single_submenu): Function deleted, replaced by those two.
18353
18354 2002-08-04 Andrew Choi <akochoi@shaw.ca>
18355
18356 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
18357 returns a valid window pointer before proceeding for keyDown and
18358 autoKey events.
18359
18360 2002-08-03 Andrew Choi <akochoi@shaw.ca>
18361
18362 * macterm.c (USE_CARBON_EVENTS): New macro.
18363 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
18364 (x_iconify_frame): Call CollapseWindow.
18365 (Vmac_reverse_ctrl_meta): New variable.
18366 (Vmac_wheel_button_is_mouse_2): New variable.
18367 (init_mac_drag_n_drop): New function.
18368 (mac_do_receive_drag): New function.
18369 (mac_handle_service_event): New function.
18370 (init_service_handler): New function.
18371 (mac_to_emacs_modifiers): New function.
18372 (mac_event_to_emacs_modifiers): New function.
18373 (mac_get_mouse_btn): New function.
18374 (mac_convert_event_ref): New function.
18375 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
18376 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
18377 mac_get_mouse_btn.
18378 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
18379
18380 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
18381 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
18382 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
18383 TOOL_BAR_EVENT for MAC_OS as well.
18384 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
18385 as for WINDOWS_NT.
18386 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
18387
18388 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
18389
18390 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
18391
18392 * xdisp.c (forward_to_next_line_start): Fix a condition that
18393 lead to a newline being skipped.
18394
18395 2002-08-02 Andrew Choi <akochoi@shaw.ca>
18396
18397 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
18398
18399 2002-08-01 Richard M. Stallman <rms@gnu.org>
18400
18401 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
18402
18403 2002-07-31 Andrew Choi <akochoi@shaw.ca>
18404
18405 * macfns.c: #undef init_process before #define-ing it.
18406
18407 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
18408 HAVE_CARBON is defined.
18409
18410 2002-07-31 Richard M. Stallman <rms@gnu.org>
18411
18412 * xmenu.c (set_frame_menubar): First parse all submenus,
18413 then make widget_value trees from them.
18414 Don't allocate any widget_value objects
18415 until we are done with the parsing.
18416 (parse_single_submenu): New function.
18417 (digest_single_submenu): New function.
18418 (single_submenu): Function deleted, replaced by those two.
18419
18420 2002-07-30 Juanma Barranquero <lektu@terra.es>
18421
18422 * w32proc.c (syms_of_ntproc): Fix docstring of
18423 `w32-get-true-file-attributes'.
18424
18425 2002-07-28 Richard M. Stallman <rms@gnu.org>
18426
18427 * s/hpux8.h (HPUX8): Define this before including hpux.h.
18428 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
18429
18430 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
18431
18432 * keyboard.c (make_lispy_event):
18433 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
18434 Explicitly clear up_modifier in event->modifiers.
18435
18436 2002-07-27 Richard M. Stallman <rms@gnu.org>
18437
18438 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
18439
18440 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
18441 for bar cursor.
18442
18443 2002-07-26 Kenichi Handa <handa@etl.go.jp>
18444
18445 * coding.c (detect_coding_iso2022): While checking a byte sequence
18446 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
18447 it in the normal loop.
18448
18449 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
18450
18451 * xterm.c (expose_overlaps): New function.
18452 (expose_window): Use it to fix the display of overlapping rows.
18453
18454 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
18455
18456 2002-07-23 Ken Raeburn <raeburn@gnu.org>
18457
18458 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
18459 since it only depends on XUINT.
18460
18461 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
18462 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
18463 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
18464 Macros deleted.
18465
18466 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
18467 its value over other approaches.
18468 * sysdep.c (start_of_data): Don't define the function if a macro
18469 form has been defined.
18470
18471 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
18472
18473 * xdisp.c (redisplay_updating_p): New variable.
18474 (init_iterator): Don't free realized faces when
18475 redisplay_updating_p is set.
18476 (redisplay_internal): Set redisplay_updating_p while updating
18477 the display.
18478
18479 2002-07-23 Richard M. Stallman <rms@gnu.org>
18480
18481 * editfns.c (Fmessage): Treat "" like nil.
18482
18483 2002-07-23 Kenichi Handa <handa@etl.go.jp>
18484
18485 * xdisp.c (face_before_or_after_it_pos):
18486 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18487
18488 2002-07-22 Juanma Barranquero <lektu@terra.es>
18489
18490 * callproc.c (init_callproc) [DOS_NT]:
18491 Initialize Vshared_game_score_directory to nil.
18492 (syms_of_callproc) [DOS_NT]: Likewise.
18493
18494 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
18495
18496 * xdisp.c (display_line): Replace an abort with xassert.
18497
18498 2002-07-21 Richard M. Stallman <rms@gnu.org>
18499
18500 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
18501 and END_UNCHANGED when setting buffer_unchanged_p.
18502 Use current_matrix_up_to_date_p to decide whether to use
18503 try_cursor_movement.
18504
18505 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
18506
18507 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
18508
18509 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
18510 Set to nil if dir does not exist.
18511 (syms_of_callproc): Init unconditionally and simply.
18512
18513 * buffer.c (Fbuffer_list): Doc fix.
18514
18515 2002-07-21 Ken Raeburn <raeburn@gnu.org>
18516
18517 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
18518
18519 * buffer.c (mmap_realloc): When shrinking, make sure number of
18520 pages to unmap is rounded towards zero.
18521
18522 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
18523 (XSETINT): Deleted.
18524
18525 * m/att3b.h (XINT): Don't define.
18526 (VALBITS, VALMASK, XTYPE): Deleted.
18527 (DATA_SEG_BITS): Define.
18528 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
18529 ARRAY_MARK_FLAG): Deleted.
18530 (DATA_SEG_BITS): Define.
18531 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
18532 (DATA_SEG_BITS): Define.
18533
18534 2002-07-20 Richard M. Stallman <rms@gnu.org>
18535
18536 * print.c (print_error_message): New args CONTEXT and CALLER.
18537 Calls changed.
18538
18539 * lisp.h (print_error_message): Declare new args.
18540
18541 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
18542 and CONTEXT to print_error_message, don't print them here.
18543 For a Quit, don't use Vsignaling_function.
18544 Call message_log_maybe_newline.
18545
18546 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
18547
18548 2002-07-20 Kim F. Storm <storm@cua.dk>
18549
18550 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
18551
18552 2002-07-19 Ken Raeburn <raeburn@gnu.org>
18553
18554 * bytecode.c (struct byte_stack): Pointers into byte string now
18555 point to const.
18556 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
18557 const.
18558 * charset.h (BCOPY_SHORT): Source pointer now points to const.
18559 * coding.c (encode_eol, detect_coding, detect_eol):
18560 (decode_coding, encode_coding, detect_coding_system):
18561 Source strings now treated as const.
18562 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
18563 modify Lisp string contents.
18564 * coding.h (decode_coding, encode_coding, detect_coding,
18565 detect_eol): Declarations updated.
18566 * composite.c (compose_chars_in_text): Treat Lisp string contents
18567 as const.
18568 * dispnew.c (safe_bcopy): Source pointer now points to const.
18569 * lisp.h (STRING_COPYIN): New macro.
18570 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
18571 (internal_with_output_to_temp_buffer): Declarations updated.
18572 * print.c (temp_output_buffer_setup):
18573 (internal_with_output_to_temp_buffer): Buffer name argument is now
18574 pointer to const.
18575 * sound.c (struct sound_device): Function pointer field "write"
18576 buffer argument now points to const.
18577 (vox_write): Buffer argument points to const.
18578 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
18579 contents as const.
18580 * sysdep.c (emacs_write): Buffer pointer now const.
18581 * term.c (encode_terminal_code): Buffer pointer now const.
18582 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
18583 (x_face_list_fonts, x_update_menu_appearance):
18584 (hash_string_case_insensitive): Treat Lisp string contents as const.
18585
18586 2002-07-19 Juanma Barranquero <lektu@terra.es>
18587
18588 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
18589
18590 * fileio.c (syms_of_fileio): Likewise.
18591 (Ffile_name_as_directory): Fix argument name in docstring.
18592 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
18593
18594 2002-07-18 Richard M. Stallman <rms@gnu.org>
18595
18596 * data.c (Fdefalias): Doc fix.
18597
18598 2002-07-17 Dave Love <fx@gnu.org>
18599
18600 * intervals.h (text_property_stickiness): Use P_.
18601
18602 * ccl.c: Remove `emacs' conditionals.
18603 (ccl_backtrace_table): Fix size spec.
18604 (ccl_driver): Fix type errors.
18605
18606 2002-07-16 Ken Raeburn <raeburn@gnu.org>
18607
18608 * alloc.c (xstrdup, make_string, make_unibyte_string)
18609 (make_multibyte_string, build_string): String pointer args now
18610 point to const.
18611 * charset.c (find_charset_in_text, c_string_width):
18612 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
18613 * fileio.c (report_file_error):
18614 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
18615 (count_combining_before, count_combining_after, insert_1_both):
18616 (insert, insert_and_inherit, insert_string):
18617 (insert_before_markers, insert_before_markers_and_inherit):
18618 * lread.c (intern, oblookup, hash_string):
18619 * minibuf.c (temp_echo_area_glyphs):
18620 * search.c (fast_c_string_match_ignore_case):
18621 * sysdep.c (emacs_open, set_file_times):
18622 * xfaces.c (xstricmp):
18623 * xdisp.c (store_frame_title, string_char_and_length):
18624 (message_dolog, message2, message2_nolog, set_message): Likewise.
18625 (set_message_1): Cast message string argument to const pointer.
18626 * editfns.c (general_insert_function): Insertion function now
18627 takes pointer to const for input data.
18628 * charset.h (find_charset_in_text, c_string_width):
18629 (parse_str_as_multibyte): Declarations updated.
18630 * dispextern.h (xstricmp): Declaration updated.
18631 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
18632 (count_size_as_multibyte, count_combining_before):
18633 (count_combining_after, insert_1, insert_1_both, message_dolog):
18634 (insert, insert_and_inherit, insert_before_markers)
18635 (insert_before_markers_and_inherit, set_message, message2):
18636 (message2_dolog, build_string, make_string, make_unibyte_string):
18637 (make_multibyte_string, intern, oblookup, report_file_error):
18638 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
18639 (emacs_open, xstrdup): Declarations updated.
18640 * systime.h (set_file_times): Declaration updated.
18641
18642 * charset.c (find_charset_in_text, lisp_string_width): Use const
18643 for pointer to lisp string data.
18644 * charset.h (FETCH_STRING_CHAR_ADVANCE):
18645 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
18646 * coding.c (Ffind_coding_systems_region_interval):
18647 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
18648 (Fmake_directory_internal, Fdelete_directory):
18649 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
18650 * fontset.c (font_family_registry, fs_query_fontset):
18651 (list_fontsets):
18652 * frame.c (Fframe_parameter):
18653 * keyboard.c (cmd_error_internal):
18654 * keymap.c (Fdescribe_buffer_bindings):
18655 * lread.c (complete_filename_p, openp):
18656 * minibuf.c (Fminibuffer_complete_word):
18657 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
18658 (face_before_or_after_it_pos, next_element_from_string):
18659 (get_overlay_arrow_glyph_row, display_mode_element):
18660 (decode_mode_spec_coding):
18661 * xterm.c (same_x_server): Likewise.
18662
18663 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
18664 settings of non-existent fields.
18665
18666 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
18667 copy a lisp value.
18668
18669 * lread.c (Fintern_soft): Use string macros instead of
18670 Lisp_String fields.
18671 * keyboard.c (echo_char, parse_modifiers_uncached):
18672 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
18673 * textprop.c (validate_interval_range, interval_of): Likewise.
18674
18675 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
18676
18677 * charset.h (FETCH_STRING_CHAR_ADVANCE)
18678 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
18679 XSTRING()->size_byte.
18680
18681 * lisp.h (SDATA, SREF): Produce rvalue.
18682 (SSET): New macro.
18683 * alloc.c (make_event_array): Use SSET for storing into a string.
18684 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
18685 a string.
18686 * casefiddle.c (casify_object): Use SSET.
18687 * charset.h (FETCH_STRING_CHAR_ADVANCE)
18688 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
18689 address of string contents.
18690 * data.c (Faref): Use SDATA.
18691 (Faset): Use SDATA, SSET.
18692 * dired.c (directory_files_internal): Use SSET.
18693 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
18694 (Fread_file_name): Use SREF, SSET.
18695 * fns.c (concat): Use SSET.
18696 (concat, Fdelete): Use SDATA.
18697 * insdel.c (insert_from_string_1): Use SDATA.
18698 * keyboard.c (Fevent_convert_list): Use SREF.
18699 * lread.c (Fload): Use SDATA, SSET.
18700 * macfns.c (validate_x_resource_name): Use SSET.
18701 * process.c (status_message): Use SSET.
18702 * search.c (wordify): Use SDATA.
18703 (Freplace_match): Use SREF.
18704 * w32fns.c (validate_x_resource_name): Use SSET.
18705 * xfns.c (validate_x_resource_name): Use SSET.
18706 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
18707
18708 2002-07-16 Richard M. Stallman <rms@gnu.org>
18709
18710 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
18711
18712 * xdisp.c (reconsider_clip_changes):
18713 Don't test prevent_redisplay_optimizations_p.
18714 (redisplay_internal): Test prevent_redisplay_optimizations_p
18715 along with clip_changed in some cases.
18716 (try_window_id): Likewise.
18717 (redisplay_window): New local var buffer_unchanged_p.
18718
18719 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
18720
18721 * process.c (create_process): Test USG_SUBTTY_WORKS.
18722 (process_send_signal): Clean up handling of GID.
18723 Detect errors in ioctls meant to set GID.
18724
18725 * window.c (temp_output_buffer_show):
18726 Don't set prevent_redisplay_optimizations_p.
18727
18728 2002-07-15 Juanma Barranquero <lektu@terra.es>
18729
18730 * eval.c (Fdefvaralias): Add docstring argument.
18731
18732 2002-07-15 Ken Raeburn <raeburn@gnu.org>
18733
18734 * lisp.h (STRING_INTERVALS): Produce rvalue.
18735 (STRING_SET_INTERVALS): New macro.
18736 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
18737 * fns.c (Fstring_as_multibyte): Likewise.
18738 * intervals.c (balance_possible_root_interval, delete_interval)
18739 (create_root_interval, copy_intervals_to_string): Likewise.
18740 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
18741 instead of 0.
18742
18743 2002-07-14 Ken Raeburn <raeburn@gnu.org>
18744
18745 * lisp.h (STRING_SET_CHARS): New macro.
18746 (SCHARS, SBYTES): Produce rvalues.
18747 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
18748 * fns.c (concat): Likewise.
18749 * lread.c (read_vector): Likewise.
18750
18751 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
18752 (STRING_SET_UNIBYTE): New macro.
18753 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
18754 length of -1) changed to use STRING_SET_UNIBYTE.
18755 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
18756 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
18757 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
18758 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
18759 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
18760 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
18761 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
18762 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
18763 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
18764 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
18765 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
18766 STRING_BYTES or indirection changed to SCHARS, SBYTES,
18767 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
18768 unchanged for now.
18769
18770 2002-07-13 Kim F. Storm <storm@cua.dk>
18771
18772 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
18773
18774 2002-07-12 Richard M. Stallman <rms@gnu.org>
18775
18776 * fileio.c (Fwrite_region): Doc fix.
18777
18778 * print.c (print_error_message): Don't handle Vsignaling_function here.
18779
18780 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
18781 (command_loop_1): Avoid certain actions after memory-full error.
18782
18783 * eval.c (Fsignal): Don't call cancel_hourglass.
18784 For a memory-full error, don't call Vsignal_hook_function
18785 and don't set Vsignaling_function.
18786
18787 * process.c (process_send_signal): Add abort call.
18788
18789 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
18790
18791 * keymap.c (Fkey_binding): Fix typo.
18792
18793 2002-07-11 Richard M. Stallman <rms@gnu.org>
18794
18795 * alloc.c (Vmemory_full): New variable.
18796 (Vmemory_signal_data): Rename from memory_signal_data.
18797 Uses changed.
18798 (syms_of_alloc): Defvar them.
18799 (memory_full, buffer_memory_full): Set Vmemory_full.
18800
18801 * lisp.h (Vmemory_full): Add declaration.
18802 (current_column, indented_beyond_p): Change declaration.
18803
18804 * indent.c (last_known_column): Declare as double, not float.
18805 (current_column, current_column_1, string_display_width)
18806 (position_indentation): Return `double'.
18807 (indented_beyond_p): Arg `column' is `double'. Callers changed.
18808
18809 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
18810 (back_to_previous_visible_line_start)
18811 (reseat_at_next_visible_line_start, next_element_from_buffer):
18812 Use `double', not `float', when calling indented_beyond_p.
18813
18814 * s/hpux11.h (BROKEN_SA_RESTART): Define.
18815
18816 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
18817
18818 2002-07-11 Juanma Barranquero <lektu@terra.es>
18819
18820 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
18821 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
18822 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
18823 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
18824 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
18825 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
18826
18827 2002-07-10 Juanma Barranquero <lektu@terra.es>
18828
18829 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
18830 All callers changed.
18831
18832 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
18833
18834 * data.c (Fdefalias): Add an optional `docstring' argument.
18835 (set_internal, Fsetq_default): Use XCAR/XCDR.
18836
18837 * composite.c (HASH_VALUE, HASH_KEY):
18838 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
18839
18840 2002-07-09 Kenichi Handa <handa@etl.go.jp>
18841
18842 * callproc.c (Fcall_process): Fix previous change.
18843
18844 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
18845
18846 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
18847 Add support for hash-tables.
18848 (Ftry_completion): Return t even if the string appears multiple times.
18849
18850 * fns.c (Fnconc): Use XCDR.
18851 (Fprovide): Use CONSP and XCDR.
18852 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
18853 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
18854 (Fmake_hash_table): Accept `:size nil'.
18855 (Fmakehash): Delete: moved to subr.el.
18856 (syms_of_fns): Don't defsubr makehash.
18857
18858 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
18859 (HASH_TABLE_SIZE): Move from fns.c.
18860
18861 2002-07-07 Richard M. Stallman <rms@gnu.org>
18862
18863 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
18864 Instead just return 0 when there is something to be done.
18865 (try_scrolling): If make_cursor_line_fully_visible returns 0,
18866 retry scrolling as if cursor were off the bottom.
18867 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
18868 return CURSOR_MOVEMENT_MUST_SCROLL.
18869 (redisplay_window): If make_cursor_line_fully_visible returns 0,
18870 go to try_to_scroll.
18871
18872 * buffer.c (Fbuffer_local_value): Store current value into its binding
18873 so we get the up-to-date value for the binding that is loaded.
18874
18875 * eval.c (Fdefmacro): Doc fix.
18876
18877 2002-07-05 Dave Love <fx@gnu.org>
18878
18879 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
18880 correctly.
18881
18882 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
18883 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
18884 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
18885 CCL_LookupCharConstTbl.
18886 (syms_of_ccl): Defvar translation-hash-table-vector.
18887
18888 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18889
18890 * xdisp.c: Remove unused variable `face'.
18891
18892 2002-07-04 Juanma Barranquero <lektu@terra.es>
18893
18894 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
18895 obsolescence information.
18896
18897 2002-07-03 Andrew Choi <akochoi@shaw.ca>
18898
18899 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
18900 pattern. Search cache first.
18901 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
18902 for Japanese font.
18903 (XLoadQueryFont): Use it.
18904
18905 2002-07-02 Richard M. Stallman <rms@gnu.org>
18906
18907 * keymap.c (Fdefine_key): Doc fix.
18908
18909 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
18910
18911 2002-07-02 Juanma Barranquero <lektu@terra.es>
18912
18913 * keymap.c (syms_of_keymap): Fix typo.
18914
18915 2002-07-01 Andrew Choi <akochoi@shaw.ca>
18916
18917 * s/darwin.h: Define POSIX_SIGNALS.
18918
18919 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
18920 and FSRefMakePath to convert FSSpec returned with Apple Event to
18921 Posix pathname.
18922 (mac_initialize) [TARGET_API_MAC_CARBON]:
18923 Call init_required_apple_events and disable the `Quit' menu item
18924 provided automatically by the Carbon Toolbox.
18925
18926 2002-07-01 Dave Love <fx@gnu.org>
18927
18928 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18929 for K&R.
18930
18931 * xterm.c: Fix prototype for K&R.
18932
18933 * term.c (costs_set): Declare static, non-initialized for pcc.
18934
18935 2002-07-01 Richard M. Stallman <rms@gnu.org>
18936
18937 * keyboard.c (timer_last_idleness_start_time): New variable.
18938 (timer_start_idle): Set that.
18939 (read_key_sequence): Use that to reset timer_idleness_start_time
18940 to previous value.
18941
18942 * window.c (Frecenter): With arg, set optional_new_start.
18943
18944 * xdisp.c (redisplay_internal): Make optional_new_start really work.
18945
18946 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
18947 buffer for completion.
18948
18949 2002-06-29 Ken Raeburn <raeburn@gnu.org>
18950
18951 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
18952
18953 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18954
18955 * keyboard.c (readable_filtered_events): New function that filters
18956 FOCUS_IN_EVENT depending on parameter.
18957 (readable_events): Calls readable_filtered_events, not filtering
18958 FOCUS_IN_EVENT.
18959 (get_filtered_input_pending): New function, filtering parameter passed
18960 to readable_filtered_events.
18961 (get_input_pending): Calls get_filtered_input_pending, not filtering
18962 FOCUS_IN_EVENT.
18963 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
18964 FOCUS_IN_EVENT.
18965
18966 * xterm.h (struct x_output): Add focus_state.
18967
18968 * xterm.c (x_focus_changed): New function.
18969 (x_detect_focus_change): New function.
18970 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
18971 EnterNotify and LeaveNotify to track X focus changes.
18972
18973 2002-06-28 Andreas Schwab <schwab@suse.de>
18974
18975 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
18976
18977 2002-06-27 Kim F. Storm <storm@cua.dk>
18978
18979 * xdisp.c (mode_line_string_list, mode_line_string_face)
18980 (mode_line_string_face_prop): New variables.
18981 (store_mode_line_string): New function.
18982 (display_mode_element): Use store_mode_line_string to
18983 add mode-line string elements to mode_line_string_list
18984 when mode_line_string_list is non-nil.
18985 (Fformat_mode_line): Now returns propertized string by
18986 default. New arg NO-PROPS to ignore properties.
18987 (decode_mode_spec): Only add two dashes for %- in propertized
18988 mode-line string.
18989 (syms_of_xdisp): Init and staticpro mode_line_string_list.
18990
18991 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
18992
18993 * minibuf.c (minibuffer_completion_contents): Add return type.
18994
18995 2002-06-27 Juanma Barranquero <lektu@terra.es>
18996
18997 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
18998
18999 2002-06-26 Juanma Barranquero <lektu@terra.es>
19000
19001 * fileio.c (read_file_name_cleanup): Add missing return.
19002
19003 2002-06-26 Richard M. Stallman <rms@gnu.org>
19004
19005 * window.c (Frecenter): Don't set force_start flag.
19006
19007 * minibuf.c (do_completion, Fminibuffer_complete_word)
19008 (Fminibuffer_completion_help): Complete just the text before point.
19009 (minibuffer_completion_contents): New function.
19010
19011 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
19012
19013 * frame.c (frames_bury_buffer): Function deleted.
19014
19015 2002-06-25 Miles Bader <miles@gnu.org>
19016
19017 * callint.c (Fcall_interactively): When checking to see if doprnt hit
19018 the end of callint_message, allow for a terminating '\0'.
19019
19020 2002-06-24 Juanma Barranquero <lektu@terra.es>
19021
19022 * w32select.c: Include composite.h.
19023
19024 * w16select.c: Likewise.
19025
19026 2002-06-24 Kenichi Handa <handa@etl.go.jp>
19027
19028 * callproc.c (Fcall_process): If code detection is necessary,
19029 call detect_coding directly here.
19030
19031 * coding.c (detect_eol): Preserve coding->cmp_data.
19032
19033 * w16select.c (Fw16_get_clipboard_data):
19034 * w32fns.c (w32_to_x_font):
19035 * w32select.c (Fw32_get_clipboard_data):
19036 * xselect.c (selection_data_to_lisp_data):
19037 * xterm.c (XTread_socket): Disable composition handling.
19038
19039 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
19040
19041 * print.c (temp_output_buffer_setup): Kill all local variables.
19042
19043 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
19044
19045 * lread.c (Fread): Remove redundant and imprecise declaration.
19046
19047 * xfns.c (check_x_display_info): Use check_x_frame.
19048
19049 * .gdbinit (xprintsym): Use the new `xname' field.
19050 (xsymbol): Use it.
19051
19052 2002-06-22 Jason Rumney <jasonr@gnu.org>
19053
19054 * w32fns.c (file_dialog_callback): New function.
19055 (Fx_file_dialog): Allow selecting directories as well as files.
19056
19057 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19058
19059 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
19060 OpenBSD. Add support for mipseb-*-netbsd* machines.
19061
19062 2002-06-17 Andrew Choi <akochoi@shaw.ca>
19063
19064 * macterm.c (mac_scroll_area): Set foreground and backcolor to
19065 black and white before scrolling. Restore frame background and
19066 foreground color after scrolling.
19067 (do_window_update): Call XClearWindow before calling expose_frame.
19068 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
19069 FRAME_FOREGROUND_PIXEL of frame.
19070
19071 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
19072 test Mac command key as <ALT> key.
19073
19074 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
19075
19076 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
19077
19078 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
19079 Lookup keys in function-key-map immediately so that key-translation-map
19080 can be applied earlier.
19081 Remove function_key_possible and key_translation_possible, replaced
19082 by checking `keytran_start < t'.
19083
19084 * .gdbinit (xsymbol): Use the new `xname' field.
19085
19086 2002-06-17 Andrew Choi <akochoi@shaw.ca>
19087
19088 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
19089 test Mac command key as <ALT> key.
19090
19091 * mac.c (do_applescript): Call initialize_applescript if necessary
19092 when first called. Dispose of result_desc only when there is no error.
19093 (Fdo_applescript): Use %d format specifier instead of %ld.
19094
19095 2002-06-16 Andrew Choi <akochoi@shaw.ca>
19096
19097 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
19098 of FrontWindow for cases keyDown and autoKey.
19099
19100 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
19101 Vdefault_fontset to Monaco with mac-roman coding.
19102
19103 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
19104 init_process before and after inclusion of Carbon/Carbon.h, resp.
19105
19106 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
19107 cursor_gc.
19108 (add_font_name_table_entry): New function.
19109 (init_font_name_table): Use add_font_name_table_entry; add italic,
19110 bold, and bold-italic entries for truetype fonts.
19111
19112 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
19113 for Mac too.
19114 (try_font_list) [MAC_OS]: If no font matches given registry, try
19115 fonts with any registry matching face_family.
19116 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
19117
19118 * s/darwin.h: If autoconf detects the Ncurses library, define
19119 LIBS_TERMCAP to -lncurses to use it.
19120
19121 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
19122
19123 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
19124
19125 2002-06-15 Richard M. Stallman <rms@gnu.org>
19126
19127 * window.c (Fset_window_configuration): Explicitly preserve
19128 the point value that new_current_buffer had at the start.
19129
19130 2002-06-14 Juanma Barranquero <lektu@terra.es>
19131
19132 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
19133 Fix typos.
19134
19135 2002-06-14 Kim F. Storm <storm@cua.dk>
19136
19137 * insdel.c (insert_1_both, insert_from_string_1)
19138 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
19139 insert happened in the end_unchanged region. Otherwise, the
19140 redisplay may be confused and duplicate the last line in the
19141 buffer [seen after save-buffer when require-final-newline==t].
19142
19143 2002-06-13 Jason Rumney <jasonr@gnu.org>
19144
19145 * w32.c (init_environment): Remove EMACSLOCKDIR.
19146 (stat): Swap _S_IFDIR and _S_IFREG.
19147
19148 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19149
19150 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
19151 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
19152 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
19153 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
19154 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
19155 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
19156 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
19157 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
19158 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
19159 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
19160 SELECTION_REQUEST_EVENT, selection_clear_event to
19161 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
19162 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
19163 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
19164 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
19165 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
19166 no_event to NO_EVENT.
19167
19168 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19169
19170 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
19171
19172 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
19173
19174 * intervals.c (textget): Don't forget to `return'.
19175 (lookup_char_property): Use XCAR/XCDR.
19176
19177 2002-06-12 Juanma Barranquero <lektu@terra.es>
19178
19179 * xdisp.c (Fformat_mode_line): Fix typo.
19180
19181 2002-06-12 Kim F. Storm <storm@cua.dk>
19182
19183 * xdisp.c (Fformat_mode_line): New function.
19184 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
19185 (store_frame_title_char, store_frame_title): Use unconditionally.
19186 (init_xdisp): Defsubr Fformat_mode_line.
19187 Initialize frame_title_buf etc. unconditionally.
19188
19189 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
19190
19191 * keyboard.c (read_key_sequence):
19192 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
19193 things through those maps after downcasing events.
19194 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
19195 applies after function-key-map.
19196 Make sure that keytran can be done in the middle in the sequence.
19197 Be careful not to throw away events past the one we downcase.
19198
19199 * lread.c (read_integer): Remove unused var `tem'.
19200 (read1): Fix int/Lisp_Object mixup.
19201
19202 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
19203
19204 2002-06-11 Richard M. Stallman <rms@gnu.org>
19205
19206 * keyboard.c (readable_events): Ignore any number of
19207 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
19208
19209 2002-06-09 Miles Bader <miles@gnu.org>
19210
19211 * xfaces.c (Ftty_supports_face_attributes_p): New function.
19212 (parse_rgb_list, tty_lookup_color): New functions.
19213 (tty_defined_color): Use `tty_lookup_color' to do all the work.
19214 (color_distance, Fcolor_distance): New functions.
19215 (TTY_SAME_COLOR_THRESHOLD): New macro.
19216 (Qtty_color_standard_values): New variable.
19217 (syms_of_xfaces): Initialize new vars & functions.
19218
19219 2002-06-08 Colin Walters <walters@verbum.org>
19220
19221 * textprop.c (Vchar_property_alias_alist): New variable.
19222 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
19223
19224 * intervals.c (lookup_char_property): New function for looking up
19225 overlay and text properties, created from textget.
19226 (textget): Use it.
19227
19228 * intervals.h (lookup_char_property): Declare.
19229 (Vchar_property_alias_alist): Declare.
19230
19231 * buffer.c (Foverlay_get): Use lookup_char_property.
19232
19233 2002-06-07 Sam Steingold <sds@gnu.org>
19234
19235 * xselect.c (lisp_data_to_selection_data): Fix last change:
19236 *data_ret is not a Lisp string, while unibyte_string is.
19237
19238 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
19239
19240 * xselect.c (lisp_data_to_selection_data): Fix last change:
19241 set size_ret.
19242
19243 2002-06-07 Andreas Schwab <schwab@suse.de>
19244
19245 * m/amdx86-64.h: New file.
19246
19247 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
19248
19249 * fns.c (Fstring_make_unibyte): Doc fix.
19250
19251 * xselect.c (lisp_data_to_selection_data): If the requested type
19252 is STRING, call string_make_unibyte to encode the selected text
19253 as a string.
19254
19255 * window.c (Fset_window_hscroll): Doc fix.
19256
19257 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19258
19259 * fileio.c (choose_write_coding_system):
19260 Call select-safe-coding-system properly.
19261
19262 2002-06-03 Richard M. Stallman <rms@gnu.org>
19263
19264 * xdisp.c (message_with_string): Error if STRING is not a string.
19265
19266 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
19267
19268 * fileio.c (choose_write_coding_system): Pass FILE arg to
19269 Vselect_safe_coding_system_function.
19270
19271 2002-06-03 Ken Raeburn <raeburn@gnu.org>
19272
19273 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
19274
19275 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
19276
19277 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
19278 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
19279 * keymap.c (describe_command): Likewise.
19280 * minibuf.c (read_minibuf): Likewise.
19281
19282 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
19283 Cast `current_column' return value to int.
19284 (back_to_previous_visible_line_start)
19285 (reseat_at_next_visible_line_start, next_element_from_buffer):
19286 Cast `indented_beyond_p' 3rd arg to float.
19287
19288 * indent.c (last_known_column): Now a float.
19289 (current_column_1, position_indentation, current_column)
19290 (string_display_width): Return float.
19291 (Fcurrent_column): Cast `current_column' return value to int.
19292 (Fcurrent_indentation): Cast `position_indentation' retval to int.
19293 (indented_beyond_p): Third arg now a float.
19294 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
19295
19296 * lisp.h (current_column): Now returns float.
19297 (indented_beyond_p): 3rd arg now a float.
19298
19299 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
19300
19301 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
19302 is Qcompound_text_with_extensions.
19303
19304 * xselect.c (lisp_data_to_selection_data): Always set selection
19305 type as string if x_encode_text returns streingp non-NULL.
19306
19307 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
19308
19309 2002-05-30 Richard M. Stallman <rms@gnu.org>
19310
19311 * window.c (Fset_window_configuration): Correct the handling
19312 of point in current buffer, to work with multiple windows.
19313
19314 2002-05-29 Colin Walters <walters@verbum.org>
19315
19316 * lread.c (Fread_from_string): Don't depend on order of evaluation
19317 for C function parameters.
19318
19319 2002-05-28 Richard M. Stallman <rms@gnu.org>
19320
19321 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
19322 way for blinked-off state and for a nonselected window.
19323
19324 * window.c (window_scroll_pixel_based): Don't call Fbolp;
19325 instead, see if the new start pos is at beginning of line.
19326
19327 * fileio.c (Fwrite_region): If START is a string, don't
19328 make any annotations.
19329
19330 * eval.c (syms_of_eval): Doc fix.
19331
19332 2002-05-28 Colin Walters <walters@debian.org>
19333
19334 * emacs.c (USAGE1): Add --no-splash.
19335 (standard_args): Ditto.
19336
19337 2002-05-28 Colin Walters <walters@gnu.org>
19338
19339 * lread.c (readchar_count): New variable.
19340 (readchar): Increment it.
19341 (unreadchar): Decrement it.
19342 (read_multibyte): Decrement it.
19343 (Vread_with_symbol_positions): New variable.
19344 (Vread_symbol_positions_list): New variable.
19345 (read_internal_start): New function, created from Fread and
19346 Fread_from_string. Handle Vread_symbol_positions_list and
19347 Vread_with_symbol_positions.
19348 (readevalloop, Fread, Fread_from_string): Use it.
19349 (read1): Use readchar_count to add symbol positions to
19350 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
19351 (syms_of_lread): DEFVAR_LISP and initialize them.
19352
19353 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
19354 (substitute_object_recurse, substitute_object_in_subtree)
19355 (substitute_in_interval): Prototype.
19356 (read_multibyte): Return c if it's less than zero.
19357
19358 2002-05-28 Kim F. Storm <storm@cua.dk>
19359
19360 * fileio.c (Fread_file_name_internal): Added brute-force
19361 speed up for using predicate file-directory-p.
19362
19363 2002-05-28 Kim F. Storm <storm@cua.dk>
19364
19365 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
19366 New variables.
19367 (syms_of_fileio): DEFVAR_LISP them.
19368 (read_file_name_cleanup): New unwind function.
19369 (Fread_file_name_internal): Only return completions satifying
19370 Vread_file_name_predicate. Temporarily unwind protect and rebind
19371 default-directory while checking completions against the predicate.
19372 (Fread_file_name): Added PREDICATE argument. Specbind it to
19373 Vread_file_name_predicate during completion.
19374 Call Vread_file_name_function to read the file name if non-nil.
19375
19376 * lisp.h (Fread_file_name): Now has 6 args.
19377
19378 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
19379 predicate for Fread_file_name when reading directory name.
19380 Supply Qnil for predicate in other calls to Fread_file_name.
19381
19382 2002-05-26 Miles Bader <miles@gnu.org>
19383
19384 * term.c (tty_capable_p): New function.
19385 * dispextern.h (tty_capable_p): New function declaration.
19386 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
19387 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
19388
19389 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
19390
19391 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
19392 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
19393 (Vwrite_region_annotate_functions): Docstring fix.
19394
19395 2002-05-23 Kim F. Storm <storm@cua.dk>
19396
19397 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
19398 phys_cursor's hpos is overwritten. This is still not completely
19399 correct, as it doesn't really make sense to use hpos at all to
19400 get the cursor glyph (as that is relative to the width of the
19401 characters on the line, which may have changed during the update).
19402
19403 2002-05-22 Jason Rumney <jasonr@gnu.org>
19404
19405 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
19406 Lisp_Object.
19407 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
19408 Use modified enumfont_t struct.
19409
19410 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
19411
19412 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
19413 Handle the `hbar' cursor type.
19414 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
19415
19416 * w32fns.c (Qhbar): New variable.
19417 (x_specified_cursor_type): Use it.
19418
19419 2002-05-21 Ken Raeburn <raeburn@gnu.org>
19420
19421 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
19422 now, when the address is needed.
19423
19424 2002-05-21 Colin Walters <walters@gnu.org>
19425
19426 * Makefile.in (shortlisp): Add font-core.el.
19427
19428 2002-05-20 Richard M. Stallman <rms@gnu.org>
19429
19430 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
19431
19432 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
19433 equivalent key bindings here.
19434
19435 2002-05-20 Ken Raeburn <raeburn@gnu.org>
19436
19437 Change symbol structure to contain a lisp object for the symbol
19438 name:
19439 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
19440 object field named "xname".
19441 (SYMBOL_NAME): New macro.
19442 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
19443 name field.
19444 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
19445 (mark_object, gc_sweep): Use symbol xname field and XSTRING
19446 instead of name field.
19447 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
19448 SYMBOL_NAME instead of XSYMBOL and name field.
19449 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
19450 instead of XSYMBOL and name field.
19451 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
19452 and SYMBOL_NAME instead of XSYMBOL and name field.
19453 * coding.c (Fread_coding_system, code_convert_region1)
19454 (code_convert_string1, code_convert_string_norecord)
19455 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
19456 XSYMBOL and name field.
19457 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
19458 (Fmake_variable_buffer_local, Fmake_local_variable)
19459 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
19460 of XSYMBOL and name field.
19461 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
19462 XSYMBOL and name field.
19463 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
19464 instead of XSYMBOL and name field.
19465 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
19466 XSYMBOL and name field.
19467 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
19468 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19469 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
19470 instead of XSYMBOL and name field.
19471 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
19472 (parse_modifiers, apply_modifiers, Fevent_convert_list)
19473 (parse_solitary_modifier, Fexecute_extended_command):
19474 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19475 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
19476 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
19477 of XSYMBOL and name field.
19478 (describe_command, describe_translation): Use SYMBOL_NAME and
19479 assignment instead of XSYMBOL and name field and XSETSTRING.
19480 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
19481 instead of XSYMBOL and name field.
19482 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
19483 name field and XSETSTRING.
19484 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
19485 of XSYMBOL and name field.
19486 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
19487 assignment instead of XSYMBOL and name field and XSETSTRING.
19488 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
19489 XSTRING instead of XSYMBOL and name field.
19490 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
19491 and XSTRING instead of XSYMBOL and name field.
19492 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
19493 and XSTRING instead of XSYMBOL and name field.
19494 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
19495 XSTRING instead of XSYMBOL and name field.
19496 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
19497 of XSYMBOL and name field.
19498 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
19499 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19500
19501 2002-05-19 Ken Raeburn <raeburn@gnu.org>
19502
19503 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
19504 and XCDR real rvalues in most configurations.
19505
19506 * buffer.c (fix_overlays_in_range, fix_overlays_before):
19507 Don't take the address of the cdr part of a cons cell; instead, track
19508 the parent cell and call XSETCDR, or set the variable for the head
19509 of the list if we haven't started down the list yet.
19510
19511 2002-05-19 Richard M. Stallman <rms@gnu.org>
19512
19513 * doc.c (reread_doc_file): Don't ask for confirmation.
19514
19515 2002-05-18 Jason Rumney <jasonr@gnu.org>
19516
19517 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
19518 (xbm_load_image): Use it.
19519 (xbm_load): Ditto.
19520 (xbm_read_bitmap_data): Reverted to xfns.c version.
19521 From David Ponce <david@dponce.com>.
19522
19523 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
19524
19525 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
19526 2.02 and later.
19527
19528 2002-05-16 Juanma Barranquero <lektu@terra.es>
19529
19530 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
19531
19532 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
19533
19534 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
19535 meaningful test.
19536 (read_char_minibuf_menu_prompt): Fix typo.
19537
19538 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
19539
19540 * eval.c (Fcommandp): Doc fix.
19541
19542 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
19543
19544 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
19545 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
19546 (Fset_keymap_parent): Gcpro a bit more.
19547 (access_keymap): Gcpro around meta_map call and around the main loop.
19548 (get_keyelt): Gcpro when following indirect references.
19549 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
19550 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
19551 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
19552 Remove useless ad-hoc remap code.
19553
19554 2002-05-13 Richard M. Stallman <rms@gnu.org>
19555
19556 * search.c (search_buffer): Give up boyer moore search if inverse
19557 translation change charset_base.
19558
19559 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
19560
19561 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
19562 characters is carried over from the previous block of text, adjust
19563 coding->produced to account for the extra character.
19564
19565 2002-05-11 Andreas Schwab <schwab@suse.de>
19566
19567 * coding.c (intersection): Keep the elements of the returned list
19568 in the same order as in the first list.
19569
19570 2002-05-11 Kim F. Storm <storm@cua.dk>
19571
19572 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
19573 only update cmm_size if realloc actually succeeds.
19574 Testing with initial size of 2 elements revealed that using
19575 realloc on GNU/Linux would cause a random trap in xmalloc
19576 later on, so I rewrote the code to use malloc/bcopy/free instead
19577 of realloc.
19578
19579 2002-05-10 Jason Rumney <jasonr@gnu.org>
19580
19581 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
19582
19583 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
19584
19585 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
19586 parens, to ensure correct evaluation order.
19587
19588 2002-05-10 Kim F. Storm <storm@cua.dk>
19589
19590 * keymap.c (Vemulation_mode_map_alists): New variable.
19591 (syms_of_keymap): DEFVAR_LISP it.
19592 (current_minor_maps): Process keymap alists in that list before
19593 minor-mode-overriding-map-alist and minor-mode-map-alist.
19594
19595 2002-05-09 Richard M. Stallman <rms@gnu.org>
19596
19597 * search.c (Freplace_match): Doc fix.
19598
19599 2002-05-09 Kim F. Storm <storm@cua.dk>
19600
19601 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
19602 Enlarge cursor rectangle drawn around image with non-zero relief.
19603
19604 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
19605 Enlarge cursor rectangle drawn around image with non-zero relief.
19606
19607 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
19608 Enlarge cursor rectangle drawn around image with non-zero relief.
19609
19610 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
19611
19612 * xselect.c (lisp_data_to_selection_data): Don't set selection
19613 type if comes from the Lisp object's car. If the selection
19614 contains a pure ASCII text, always return QSTRING as its type.
19615
19616 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19617
19618 * mac.c (mac-cut-function): Doc fix.
19619
19620 2002-05-05 Richard M. Stallman <rms@gnu.org>
19621
19622 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
19623
19624 2002-05-04 Jason Rumney <jasonr@gnu.org>
19625
19626 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
19627 for event-click-count.
19628
19629 * process.c (init_process): Only add server subfeature if we can
19630 use non-blocking I/O.
19631
19632 2002-05-04 Andrew Choi <akochoi@shaw.ca>
19633
19634 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
19635 repeatedly.
19636
19637 2002-05-03 Jason Rumney <jasonr@gnu.org>
19638
19639 * process.c (Fmake_network_process): Only support server sockets
19640 when we can make them non-blocking.
19641
19642 * s/ms-w32.h (HAVE_SELECT): Define.
19643
19644 * w32.h (FILE_NDELAY): New flag.
19645
19646 * w32.c (sys_getpeername, fcntl): New functions.
19647 (_sys_read_ahead): Temporarily block on non-blocking sockets.
19648
19649 * w32proc.c: Include sys/file.h.
19650
19651 2002-05-03 Colin Walters <walters@verbum.org>
19652
19653 * callproc.c (Vgame_score_directory): Renamed to
19654 Vshared_game_score_directory.
19655
19656 2002-04-30 Richard M. Stallman <rms@gnu.org>
19657
19658 * s/gnu.h [emacs]: Include stdio.h.
19659 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
19660
19661 * eval.c (do_autoload): Error if called while preparing to dump.
19662
19663 * fns.c (Frequire): Error if need to load while preparing to dump.
19664
19665 2002-04-28 Colin Walters <walters@verbum.org>
19666
19667 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
19668 Default to "~/.emacs.d/games".
19669
19670 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
19671
19672 * lread.c (openp): Change arg exec_only to predicate.
19673 (build_load_history): Use XCAR/XCDR.
19674 (Flocate_file_internal): New fun.
19675 (syms_of_lread): Defsubr it.
19676 (Fload): Update call to openp.
19677
19678 * lisp.h (openp): Update prototype.
19679
19680 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
19681 * w32proc.c (sys_spawnve):
19682 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
19683 * w32.c (check_windows_init_file):
19684 * sound.c (Fplay_sound_internal):
19685 * process.c (Fstart_process):
19686 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
19687 * mac.c (run_mac_command):
19688 * emacs.c (init_cmdargs):
19689 * callproc.c (Fcall_process): Update call to openp.
19690
19691 * textprop.c (remove_properties): Don't use XCAR without CONSP.
19692
19693 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
19694
19695 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19696
19697 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
19698 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
19699
19700 2002-04-28 Richard M. Stallman <rms@gnu.org>
19701
19702 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
19703
19704 * eval.c (Fcommandp): New arg for_call_interactively.
19705 * lisp.h (Fcommandp): Declare new arg.
19706
19707 2002-04-28 Jason Rumney <jasonr@gnu.org>
19708
19709 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
19710
19711 * w32.c (stat, fstat): Use file index information to generate
19712 inodes for directories where available.
19713
19714 2002-04-26 Andrew Choi <akochoi@shaw.ca>
19715
19716 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
19717 [HAVE_CARBON]: Include Mac object files.
19718
19719 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
19720 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
19721 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
19722 MAC_OSX, and MAC_OS instead of macintosh.
19723
19724 * editfns.c [MAC_OS8]: Include stdio.h.
19725
19726 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
19727
19728 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
19729 Apple Monaco.
19730
19731 * process.c (QCfamily, QCfilte): Declare extern.
19732 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
19733 calling select.
19734
19735 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
19736
19737 * tparam.c [MAC_OSX]: Don't define BC and UP.
19738
19739 * config.in [HAVE_CARBON]: Add.
19740
19741 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
19742 Move here from mac/src and mac/inc.
19743
19744 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
19745
19746 2002-04-26 Gerd Moellmann <gerd@gnu.org>
19747
19748 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
19749 Compute phys_cursor_width from the x position returned
19750 by x_draw_glyhs, which is cheaper.
19751 (x_display_and_set_cursor): Compute the buffer-local value
19752 of `cursor-in-non-selected-windows' only when needed.
19753
19754 2002-04-25 Gerd Moellmann <gerd@gnu.org>
19755
19756 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
19757 cursor on a stretch glyph has a width that depends on
19758 x_stretch_cursor_p.
19759
19760 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19761
19762 * abbrev.c (abbrev-start-location): Doc fix.
19763
19764 * indent.c (Fvertical_motion): Fix last change.
19765
19766 2002-04-25 Gerd Moellmann <gerd@gnu.org>
19767
19768 * indent.c (Fvertical_motion): Move to the start of the line
19769 containing PT before moving up or down.
19770
19771 2002-04-24 Gerd Moellmann <gerd@gnu.org>
19772
19773 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
19774 case of writing a whole row, more or less analogous to the case of
19775 writing only parts of a row.
19776
19777 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
19778 0 for NO_CURSOR.
19779
19780 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
19781
19782 2002-04-23 Colin Walters <walters@verbum.org>
19783
19784 * buffer.c (syms_of_buffer): Doc fix.
19785
19786 2002-04-23 Gerd Moellmann <gerd@gnu.org>
19787
19788 * xterm.c (notice_overwritten_cursor): Handle the special case
19789 of the cursor being in the first blank non-text line at the
19790 end of a window.
19791
19792 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
19793 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
19794 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
19795 bar cursors only, to make phys_cursor_width contain what its name
19796 suggests.
19797 (notice_overwritten_cursor): Consider the cursor image erased if
19798 the output area intersects the cursor image in y-direction.
19799
19800 2002-04-23 Simon Marshall <simon@gnu.org>
19801
19802 * xfns.c (x_set_mouse_color): Change default for cross_cursor
19803 to XC_hand2.
19804
19805 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19806
19807 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
19808
19809 2002-04-22 Kim F. Storm <storm@cua.dk>
19810
19811 * textprop.c (remove_properties): Fixed trap for malformed plist.
19812
19813 2002-04-22 Richard M. Stallman <rms@gnu.org>
19814
19815 * cmds.c (Fend_of_line): Handle intangible text in mid line.
19816
19817 * window.c (make_window): Initialize height_fixed_p,
19818 last_cursor_off_p, and p->cursor_off_p slots.
19819
19820 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19821
19822 * fns.c (use-dialog-box): Doc fix.
19823
19824 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19825
19826 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
19827 variables `row', `i' and `area'.
19828 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
19829 toolkit library.
19830
19831 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
19832
19833 * xfaces.c (clear_font_table): Don't free the default font of
19834 a frame even if it's on another display.
19835 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
19836 that could be Qt.
19837
19838 2002-04-19 Juanma Barranquero <lektu@terra.es>
19839
19840 * indent.c (Fmove_to_column): Remove unused local variable
19841 `next_boundary_byte'.
19842 (current_column_1): Likewise.
19843
19844 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
19845
19846 * msdos.c (Qhbar): New variable.
19847 (syms_of_msdos): Intern and staticpro it.
19848 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
19849 cursor type.
19850
19851 2002-04-19 Dave Lambert <dlambert@acm.org>
19852
19853 Theses change implement an underscore-like (`hbar') cursor.
19854
19855 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
19856
19857 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
19858 Handle the `hbar' cursor type.
19859 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
19860
19861 * xfns.c (Qhbar): New variable.
19862 (syms_of_xfns): Intern and staticpro it.
19863 (x_specified_cursor_type): Handle `hbar' cursor.
19864
19865 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
19866 not defined.
19867
19868 2002-04-18 Richard M. Stallman <rms@gnu.org>
19869
19870 * textprop.c (remove_properties): New arg LIST allows scanning
19871 either a list or a plist.
19872 (interval_has_some_properties_list): New function, like
19873 interval_has_some_properties using list instead of plist.
19874 All callers changed.
19875 (Fremove_list_of_text_properties): New function.
19876 (syms_of_textprop): Defsubr it.
19877
19878 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
19879
19880 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
19881
19882 2002-04-17 Juanma Barranquero <lektu@terra.es>
19883
19884 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
19885
19886 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
19887
19888 * window.c (coordinates_in_window): Don't report on margin area
19889 if its width is zero.
19890
19891 2002-04-16 Jason Rumney <jasonr@gnu.org>
19892
19893 * w32fns.c (Fx_file_dialog): Decode file name before using.
19894
19895 * w32term.c (construct_drag_n_drop): Likewise.
19896
19897 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
19898
19899 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
19900 store load-history in pure space.
19901
19902 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
19903
19904 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
19905
19906 * xterm.c (Qlatin_1, Qutf_8): New vars.
19907 (syms_of_xterm): Initialize them.
19908 (XTread_socket): Eliminate incorrect optimization that tried to avoid
19909 decoding the output of X*LookupString.
19910 Always use latin-1 to decode the output of XLookupString.
19911 Try Xutf8LookupString if XmbLookupString failed.
19912
19913 * region-cache.c (new_region_cache): Use BEG.
19914
19915 2002-04-16 Gerd Moellmann <gerd@gnu.org>
19916
19917 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
19918 configuration files.
19919 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
19920 returns 0.
19921
19922 2002-04-15 Andreas Schwab <schwab@suse.de>
19923
19924 * config.in: Regenerated using autoheader.
19925
19926 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
19927 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
19928 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
19929 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
19930 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
19931 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
19932 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
19933 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
19934 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
19935 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
19936 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
19937 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
19938 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
19939 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
19940 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
19941 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
19942 STACK_DIRECTION, now set by autoconf.
19943
19944 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19945
19946 * dispnew.c (marginal_area_string): Sort arguments.
19947
19948 * dispextern.h (marginal_area_string): Add prototype.
19949
19950 2002-04-13 Richard M. Stallman <rms@gnu.org>
19951
19952 * fileio.c (Finsert_file_contents):
19953 Don't call temp_output_buffer_setup--do just part, by hand.
19954
19955 * coding.c (run_pre_post_conversion_on_str):
19956 Don't call temp_output_buffer_setup--do just part, by hand.
19957
19958 * keyboard.c (command_loop_1): Don't call start_hourglass
19959 or cancel_hourglass when executing a macro.
19960
19961 * marker.c (count_markers): New function.
19962
19963 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
19964 grow without limit. Move recently used elements to the front.
19965
19966 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
19967
19968 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
19969
19970 2002-04-12 Gerd Moellmann <gerd@gnu.org>
19971
19972 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
19973 rows marginal areas.
19974 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
19975 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
19976
19977 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
19978
19979 2002-04-12 Dave Love <fx@gnu.org>
19980
19981 * dispnew.c (marginal_area_string): New.
19982
19983 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
19984 (Qleft_margin, Qright_margin): Declare.
19985 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
19986
19987 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
19988 note_mode_line_highlight and extended.
19989
19990 * keyboard.c (Qleft_margin, Qright_margin): Declare.
19991 (make_lispy_event): Deal with mouse events in margins.
19992
19993 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
19994
19995 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
19996
19997 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
19998 than deactivating the mark if tmm is set to `lambda'.
19999 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
20000 Use a single event for HELP_EVENT.
20001 (Fexecute_extended_command): Save last_point_position.
20002
20003 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20004
20005 * lisp.h (Fpropertize): Add prototype.
20006
20007 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
20008
20009 2002-04-10 Colin Walters <walters@verbum.org>
20010
20011 * config.in: Add HAVE_SHARED_GAME_DIR.
20012
20013 * callproc.c (Vgame_score_directory): New variable.
20014 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
20015
20016 2002-04-10 Richard M. Stallman <rms@gnu.org>
20017
20018 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
20019
20020 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
20021
20022 * minibuf.c (read_minibuf): Use empty_string.
20023 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
20024 Short-circuit the search as soon as it "failed".
20025 (Fall_completions): Allow lambda forms and lists of strings for alist.
20026 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
20027 when require_match is nil.
20028 (Ftest_completion): Rename from `test_completion' and export to elisp.
20029 Call the predicate also when alist is a list.
20030 Obey Vcompletion_regexp_list.
20031 (do_completion, Fminibuffer_complete_and_exit): Use it.
20032 (Fassoc_string): Rename from `assoc_for_completion'.
20033 Allow list of strings as well and export to elisp.
20034
20035 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
20036
20037 * puresize.h (BASE_PURESIZE): Increase to 900KB.
20038
20039 2002-04-08 Juanma Barranquero <lektu@terra.es>
20040
20041 * w32.c (sys_accept): Don't hide variable `s'.
20042
20043 2002-04-05 Gerd Moellmann <gerd@gnu.org>
20044
20045 * callint.c (Fcall_interactively): Use INTEGERP instead of
20046 NUMBERP for checking Vhistory_length.
20047
20048 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20049
20050 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
20051 Doc fix to reflect it.
20052
20053 2002-04-04 Richard M. Stallman <rms@gnu.org>
20054
20055 * xdisp.c (display_mode_element): New arg RISKY.
20056 Disregard text props found or specified within a variable
20057 that isn't marked risky-local-variable.
20058 (Qrisky_local_variable): New variable.
20059 (syms_of_xdisp): Init and staticpro it.
20060
20061 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
20062
20063 * undo.c (record_point): New fun.
20064 (record_delete, record_insert): Use it.
20065
20066 2002-04-03 Juanma Barranquero <lektu@terra.es>
20067
20068 * doc.c (Fdocumentation): Add missing parentheses.
20069 (Fdocumentation_property): Likewise.
20070
20071 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
20072
20073 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
20074 data is 0, just return nil.
20075
20076 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
20077
20078 * msdos.c (syms_of_msdos): Fix last change with
20079 mouse_autoselect_window.
20080
20081 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20082
20083 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
20084 mouse_autoselect_window.
20085
20086 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
20087
20088 * keyboard.c (make_lispy_event): Handle unknown keysyms together
20089 with system-specific keysyms. Use it also for unknown function keys.
20090
20091 * doc.c (reread_doc_file): Return whether reload was attempted.
20092 (Fdocumentation, Fdocumentation_property): Don't try to reload
20093 if the doc is 0 and only ask once.
20094
20095 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
20096
20097 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
20098
20099 * keyboard.c (read_char): If the event was Qselect_window,
20100 restore timer_idleness_start_time to its previous value.
20101
20102 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
20103
20104 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
20105
20106 * region-cache.c (new_region_cache): Use BEG.
20107
20108 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
20109 Use BEG and BEG_BYTE.
20110
20111 * doc.c (get_doc_string): Return nil if the location is wrong.
20112 (reread_doc_file): New fun.
20113 (Fdocumentation, Fdocumentation_property):
20114 Call it if get_doc_string fails.
20115 (Fsnarf_documentation): Make it work for a dumped Emacs.
20116
20117 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
20118 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
20119
20120 * charset.c (Fstring): Allow 0 arguments.
20121
20122 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
20123
20124 * process.c (DATAGRAM_CONN_P, list_processes_1)
20125 (Fprocess_datagram_address, Fset_process_datagram_address)
20126 (Fset_network_process_options, server_accept_connection):
20127 Fix some int/Lisp_Object confusions (thank you union types).
20128
20129 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20130
20131 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
20132
20133 * w32term.c: Likewise.
20134 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
20135
20136 * keyboard.c (Qselect_window): New symbol.
20137 (head_table): Use it.
20138 (keys_of_keyboard): Bound select-window event to handle-select-window.
20139 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
20140
20141 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
20142 (last_window): New variable.
20143 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
20144 (note_mouse_movement): Remove reimplemented code in #if 0.
20145 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
20146 Emacs windows.
20147
20148 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
20149
20150 2002-03-31 Gerd Moellmann <gerd@gnu.org>
20151
20152 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
20153 Callers changed.
20154
20155 2002-03-30 Richard M. Stallman <rms@gnu.org>
20156
20157 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
20158 loop whenever it stops making progress.
20159
20160 * widget.c (set_frame_size): Don't call change_frame_size.
20161
20162 2002-03-30 Gerd Moellmann <gerd@gnu.org>
20163
20164 * dispnew.c (direct_output_for_insert):
20165 Call mark_window_display_accurate.
20166
20167 2002-03-29 Jason Rumney <jasonr@gnu.org>
20168
20169 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
20170
20171 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
20172
20173 * Makefile.in (lread.o): Depend on coding.h.
20174
20175 * lread.c (openp, Fload): Encode the file name before passing it
20176 to `stat', `access', and `emacs_open'.
20177 (openp): GCPRO the encoded file name. Don't recompute Lisp
20178 strings unnecessarily.
20179
20180 2002-03-29 Kim F. Storm <storm@cua.dk>
20181
20182 * fns.c (Flax_plist_put): Doc fix.
20183
20184 2002-03-28 Miles Bader <miles@gnu.org>
20185
20186 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
20187
20188 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20189
20190 * process.c (set-network-process-options): Add usage.
20191 (make-network-process): Doc fix.
20192
20193 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
20194
20195 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
20196
20197 2002-03-26 Richard M. Stallman <rms@gnu.org>
20198
20199 * fns.c (Fsubstring_no_properties): New function.
20200 (Flax_plist_get, Flax_plist_put): New functions.
20201 (syms_of_fns): defsubr them.
20202
20203 * xdisp.c (update_menu_bar): Test only update_mode_lines;
20204 don't test or alter w->update_mode_line.
20205
20206 * window.c (Fdisplay_buffer): Doc fix.
20207
20208 2002-03-24 Richard M. Stallman <rms@gnu.org>
20209
20210 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
20211
20212 2002-03-24 Gerd Moellmann <gerd@gnu.org>
20213
20214 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
20215 (Fdefmacro): Handle `(declare ...)'.
20216 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
20217 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
20218
20219 2002-03-24 Jason Rumney <jasonr@gnu.org>
20220
20221 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
20222 (xbm_file_p): Add prototypes.
20223 (xbm_format, xbm_image_p): Sync with xfns.c.
20224 (reflect_byte): New function.
20225 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
20226 (xbm_load_image): Create bitmaps with a depth of 1.
20227 (init_xfns): Enable XBM images.
20228
20229 2002-03-23 Jason Rumney <jasonr@gnu.org>
20230
20231 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
20232 correctly. Do not pass up_modifier to keyboard buffer.
20233
20234 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
20235
20236 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
20237
20238 * Makefile.in (bootstrapclean): New target.
20239 (bootstrap-temacs, bootstrap-doc): Remove.
20240 (bootstrap-emacs): Use a bog-standard `temacs'.
20241 Don't bother to build a DOC file.
20242
20243 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
20244
20245 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
20246 in temacs even if !CANNOT_DUMP.
20247 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
20248
20249 * alloc.c (check_pure_size): Only output a warning.
20250
20251 2002-03-22 Jason Rumney <jasonr@gnu.org>
20252
20253 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
20254 supported.
20255
20256 * w32term.c (zv_bits): Declare as short, for word alignment.
20257 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
20258 (syms_of_w32term): Define x-use-underline-position-properties.
20259
20260 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
20261 (clear_image_cache): Block input, fix logic, clear matrices in
20262 all frames that share this cache.
20263
20264 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
20265
20266 * emacs.c (main): Update the Copyright year in the blurb printed
20267 by "emacs --version".
20268
20269 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
20270
20271 * xterm.c (XTread_socket): If XK_ISO_Lock and
20272 XK_ISO_Last_Group_Lock are defined, handle keysyms between
20273 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
20274
20275 2002-03-21 Kim F. Storm <storm@cua.dk>
20276
20277 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
20278 menu-bar bindings in keymap and local-map properties _are_ used.
20279 But try keymap property first in accordance with 2002-01-03 patch.
20280 Added comment describing why this is not always reliable.
20281 (tool_bar_items): Ditto for tool-bar.
20282
20283 2002-03-21 Jason Rumney <jasonr@gnu.org>
20284
20285 * w32fns.c (x_clear_image_1): Disable color table code.
20286
20287 2002-03-21 Kim F. Storm <storm@cua.dk>
20288
20289 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
20290 removed the wrong version of the DEFUN macro; fixed it.
20291
20292 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
20293 Fmember rather than Fmemq).
20294 (Fprovide): Check that subfeatures is a list.
20295
20296 * process.c (QCfeature, QCdatagram): Removed variables.
20297 (QCtype, Qdatagram): New variables.
20298 (network_process_featurep): Removed function.
20299 (Fmake_network_process): Removed :feature check.
20300 Use :type 'datagram instead of :datagram t to create a datagram
20301 socket. This allows us to add other connection types (e.g. raw
20302 sockets) later in a consistent manner.
20303 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
20304 supported subfeatures for feature make-network-process.
20305 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
20306 Intern and staticpro QCtype and Qdatagram.
20307 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
20308
20309 * xfns.c (QCtype): Remove duplicate declaration and
20310 initialization (is now declared in process.c).
20311
20312 * w32fns.c (QCtype): Remove duplicate declaration and
20313 initialization (is now declared in process.c).
20314
20315 2002-03-21 Richard M. Stallman <rms@gnu.org>
20316
20317 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
20318 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
20319 when jumping to `fail' to avoid undoing reg changes in the
20320 last iteration of the loop.
20321 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
20322
20323 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
20324 Depend on process.h.
20325
20326 2002-03-20 Jason Rumney <jasonr@gnu.org>
20327
20328 Most of the following changes are still conditional on HAVE_IMAGES
20329 which is not set by default on Windows.
20330
20331 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
20332
20333 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
20334 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
20335 (four_corners_best, x_clear_image_1, x_clear_image)
20336 (x_alloc_image_color, postprocess_image)
20337 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
20338 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
20339 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
20340
20341 * w32gui.h (struct XImage): Define.
20342
20343 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
20344 extract mouse co-ordinates.
20345
20346 2002-03-20 Jason Rumney <jasonr@gnu.org>
20347
20348 * w32.c (init_winsock): Dynamically load new server and UDP
20349 socket functions.
20350 (socket_to_fd): New function.
20351 (sys_socket): Use it.
20352 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
20353 (sys_recvfrom, sys_sendto): New wrapper functions.
20354
20355 * process.c (QCfamily, QCfilter): Remove duplicate declaration
20356 and initialization.
20357
20358 * makefile.w32-in (LIBS): Remove $(WSOCK32).
20359
20360 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
20361
20362 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
20363 Don't use "sun" as a variable, it's a predefined constant on Sun
20364 machines.
20365
20366 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20367
20368 * bytecode.c (Fbyte_code): Revert last change.
20369
20370 2002-03-19 Kim F. Storm <storm@cua.dk>
20371
20372 * makefile.w32-in (LIBS): Add $(WSOCK32).
20373 From David Ponce <dponce@voila.fr>.
20374
20375 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20376
20377 * process.c (wait_reading_process_input): Move variables `pname'
20378 and `pnamelen' down where they are used.
20379
20380 * bytecode.c (Fbyte_code): Discard unused computed value to
20381 prevent gcc warning.
20382
20383 * lisp.h (Fplist_member): Add prototype.
20384
20385 2002-03-18 Kim F. Storm <storm@cua.dk>
20386
20387 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
20388 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
20389
20390 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
20391 Remove explicit GNU_LINUX settings for datagram support.
20392
20393 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20394
20395 * process.c (Fmake_network_process): Remove unused variable `sa'.
20396 Doc fix. Add usage:.
20397 (set_socket_options): Remove unused variables `optnum' and `opttype'.
20398
20399 2002-03-17 Richard M. Stallman <rms@gnu.org>
20400
20401 * xdisp.c (cursor_type_changed): New variable.
20402 (redisplay_internal): Redisplay all windows if cursor_type_changed.
20403 Clear it when clearing windows_or_buffers_changed.
20404 (try_cursor_movement, redisplay_window, try_window_id)
20405 (try_window_reusing_current_matrix): Test cursor_type_changed
20406 along with windows_or_buffers_changed.
20407
20408 * window.h (cursor_type_changed): New variable.
20409
20410 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
20411 not update_mode_lines, and always set it to 1.
20412
20413 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
20414 if no frames needed redrawing.
20415
20416 2002-03-17 Kim F. Storm <storm@cua.dk>
20417
20418 The following changes add support for network server processes,
20419 datagram connections, and local (unix) sockets.
20420
20421 * process.h (struct Lisp_Process): New member log.
20422 Doc fix: Member command used to indicate stopped network process.
20423 Doc fix: Member childp contains plist for network process.
20424 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
20425
20426 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
20427 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
20428 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
20429 New variables.
20430 (NETCONN1_P): New macro.
20431 (DATAGRAM_SOCKETS): New conditional symbol.
20432 (datagram_address): New array.
20433 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
20434 (status_message): Use concat3.
20435 (Fprocess_status): Add `listen' status to doc string. Return `stop'
20436 for a stopped network process.
20437 (Fset_process_buffer): Update contact plist for network process.
20438 (Fset_process_filter): Ditto. Don't enable input for stopped
20439 network processes. Server must listen, even if filter is t.
20440 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
20441 New functions.
20442 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
20443 (Fprocess_contact): Added KEY argument. Handle datagrams.
20444 (list_processes_1): Optionally show only processes with the query
20445 on exit flag set. Dynamically adjust column widths. Omit tty
20446 column if not needed. Report stopped network processes.
20447 Identify server and datagram network processes.
20448 (Flist_processes): New optional arg `query-only'.
20449 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
20450 (conv_lisp_to_sockaddr, set_socket_options)
20451 (network_process_featurep, unwind_request_sigio): New helper functions.
20452 (Fprocess_datagram_address, Fset_process_datagram_address):
20453 (Fset_network_process_options): New lisp functions.
20454 (Fopen_network_stream): Removed. Now defined in simple.el.
20455 (Fmake_network_process): New lisp function. Code is based on previous
20456 Fopen_network_stream, but heavily reworked with new property list based
20457 argument list, support for datagrams, server processes, and local
20458 sockets in addition to old client-only functionality.
20459 (server_accept_connection): New function.
20460 (wait_reading_process_input): Use it to handle incoming connects.
20461 Do not enable input on a new connection if process is stopped.
20462 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
20463 (send_process): Handle datagram sockets.
20464 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
20465 network process is indicated by setting command field to t .
20466 (Fprocess_send_eof): No-op if datagram connection.
20467 (Fstatus_notify): Don't read input for a stream server socket or a
20468 stopped network process.
20469 (init_process): Initialize datagram_address array.
20470 (syms_of_process): Intern and staticpro new variables, defsubr new
20471 functions.
20472
20473 2002-03-16 Jason Rumney <jasonr@gnu.org>
20474
20475 * w32fns.c (w32_to_all_x_charsets): Return correct type in
20476 startup case.
20477
20478 2002-03-16 Richard M. Stallman <rms@gnu.org>
20479
20480 * xdisp.c (redisplay_internal, redisplay_windows):
20481 Use list_of_error to call internal_condition_case_1.
20482 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
20483 so as to catch all errors with no possibility of debugger redisplay.
20484 (list_of_error): New variable.
20485 (syms_of_xdisp): Init and staticpro it.
20486
20487 * print.c (print_object): Delete `\ ' from printed rep of frame.
20488
20489 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
20490
20491 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
20492 until its implementation is fixed.
20493
20494 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20495
20496 * xfns.c (png_load): Remove unused variable `gamma_str'.
20497
20498 2002-03-14 Richard M. Stallman <rms@gnu.org>
20499
20500 * xfns.c (x_real_positions): Handle failure in XQueryTree.
20501
20502 2002-03-14 Miles Bader <miles@gnu.org>
20503
20504 * intervals.c (adjust_for_invis_intang): New function.
20505 (set_point_both): Use `adjust_for_invis_intang' to do most of the
20506 work for dealing with invisible+intangible regions. Do so before
20507 and after both forward and backward movements, to handle both
20508 front-sticky and rear-sticky cases.
20509 * textprop.c (text_property_stickiness): Function moved here from
20510 `editfns.c'.
20511 * intervals.h (text_property_stickiness): New declaration.
20512 * editfns.c (char_property_eq): Function removed.
20513 (text_property_stickiness): Function moved to `textprop.c'.
20514
20515 2002-03-13 Jason Rumney <jasonr@gnu.org>
20516
20517 * config.in: Add STRFTIME_NO_POSIX2.
20518
20519 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
20520 and %OX when underlying strftime does not.
20521
20522 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
20523
20524 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
20525 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
20526 line) to avoid annoying flicker.
20527 (xm_scroll_callback): Get rid of the now unnecessary kludge.
20528 (XTread_socket): Mark it static.
20529
20530 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
20531
20532 2002-03-13 Kim F. Storm <storm@cua.dk>
20533
20534 * puresize.h (BASE_PURESIZE): Increase to 775000.
20535
20536 2002-03-12 Juanma Barranquero <lektu@terra.es>
20537
20538 * editfns.c (syms_of_editfns): Fix typo.
20539
20540 2002-03-12 Gerd Moellmann <gerd@gnu.org>
20541
20542 * xsmfns.c: Include stdio.h because termhooks.h needs it.
20543 Include termopt.h for interrupt_input.
20544
20545 2002-03-11 Andreas Schwab <schwab@suse.de>
20546
20547 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
20548
20549 2002-03-11 Gerd Moellmann <gerd@gnu.org>
20550
20551 * xterm.c (note_mouse_movement): Put code for
20552 x_autoselect_window_p in #if 0.
20553
20554 * lread.c (Fload): Don't assume that message_with_string uses the
20555 string it is given like a C string.
20556
20557 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20558
20559 * xterm.h (x_session_check_input, x_session_initialize): Declare.
20560
20561 * xterm.c (XTread_socket): Add call to x_session_check_input and
20562 x_session_have_connection.
20563 (x_initialize): Add call to x_session_initialize.
20564
20565 * termhooks.h (enum event_kind): Add save_session_event.
20566
20567 * keyboard.c: Add Emacs event save_session_event.
20568
20569 * emacs.c (main): Add call to syms_of_xsmfns.
20570
20571 * lisp.h (syms_of_xsmfns): Declare extern.
20572
20573 * config.in: Add HAVE_X_SM.
20574
20575 * Makefile.in (LIBXT): Add -lSM -lICE
20576 if HAVE_X_SM and not USE_X_TOOLKIT.
20577 (XOBJ): New file xsmfns.c added.
20578
20579 * xsmfns.c: New file for X session management.
20580
20581 2002-03-09 Jason Rumney <jasonr@gnu.org>
20582
20583 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
20584 read-only when setting modified time.
20585
20586 2002-03-08 Gerd Moellmann <gerd@gnu.org>
20587
20588 * xdisp.c (move_it_vertically_backward): At the end of the function,
20589 when moving forward by lines, treat terminal frames specially.
20590
20591 * keyboard.c (echo_char): Make sure to add a separator between
20592 keys even if echo_dash hasn't been called.
20593
20594 * xdisp.c: Use new string macros.
20595 (update_echo_area): Pass number of bytes to message3 instead of
20596 number of chars.
20597 (set_message_1): Don't access a string's size_byte directly.
20598 (decode_mode_spec_coding): Use number of bytes of eoltype string
20599 instead number of chars.
20600
20601 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
20602
20603 2002-03-08 Juanma Barranquero <lektu@terra.es>
20604
20605 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
20606 24-bit.
20607
20608 2002-03-06 Jason Rumney <jasonr@gnu.org>
20609
20610 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
20611
20612 2002-03-06 Gerd Moellmann <gerd@gnu.org>
20613
20614 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
20615 (cancel_echoing, echo_length, echo_truncate): Changed to
20616 work with new kboard definition.
20617 (echo_now): Use message3_nolog instead of message2_nolog.
20618
20619 * alloc.c (mark_kboards): Mark echo_string.
20620
20621 * keyboard.h (ECHOBUFSIZE): Removed.
20622 (struct kboard): Member echoptr removed, member echobuf renamed
20623 to echo_string.
20624
20625 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
20626 message3 instead of message2 to display the message using STRING's
20627 text properties.
20628
20629 2002-03-05 Andreas Schwab <schwab@suse.de>
20630
20631 * xdisp.c (hscroll_margin): Change to EMACS_INT.
20632
20633 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
20634
20635 * frame.c (default-frame-alist): Explain that setting it doesn't
20636 affect existing frames.
20637
20638 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
20639
20640 * indent.c (skip_invisible): Fix my brain fart.
20641
20642 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
20643
20644 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
20645
20646 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
20647 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
20648 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
20649 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
20650 and variables to use EMACS_INT instead of just int.
20651
20652 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
20653
20654 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
20655
20656 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
20657 environment, pass it down with corrected value.
20658
20659 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20660
20661 * lread.c (read_filtered_event): Do not call start_hourglass
20662 before returning.
20663
20664 2002-03-04 Juanma Barranquero <lektu@terra.es>
20665
20666 * w32term.c (x_display_and_set_cursor): Fix typo.
20667
20668 2002-03-03 Richard M. Stallman <rms@gnu.org>
20669
20670 * fileio.c (Fmake_temp_name): Doc fix.
20671
20672 2002-03-03 Gary Wong <gtw@gnu.org>
20673
20674 * termcap.c [!emacs]: Replace ospeed for building standalone
20675 libtermcap, for binary compatibility.
20676
20677 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
20678
20679 2002-03-03 Richard M. Stallman <rms@gnu.org>
20680
20681 * xrdb.c (file_p): Rename arg `path' to `filename'.
20682
20683 * abbrev.c (Fexpand_abbrev): Increment plist as use count
20684 only if it is an integer.
20685
20686 * xfns.c (png_load): Set screen_gamma based on f->gamma.
20687 If png_get_sRGB gives an answer, call png_set_gamma
20688 using the default image gamma value.
20689
20690 * lread.c (read1): When reading from a file, default string to
20691 multibyte only if it has some multibyte characters.
20692
20693 * print.c (print_object): Output multibyte chars 128...255
20694 using \x even if ! print_escape_multibyte.
20695
20696 * xdisp.c (display_mode_element): Move the places where
20697 bytepos, charpos, this, and lisp_string are set.
20698 Use lisp_string to set bytepos.
20699
20700 * xdisp.c (redisplay_internal):
20701 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
20702
20703 * xdisp.c (display_mode_element): Merge properties specified with
20704 :propertize onto those that come with the string.
20705
20706 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
20707
20708 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
20709 automatic-hscrolling. Users changed.
20710 <hscroll-margin>: Renamed from automatic-hscroll-margin.
20711 Users changed.
20712 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
20713
20714 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
20715
20716 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
20717
20718 2002-03-02 Kim F. Storm <storm@cua.dk>
20719
20720 * window.c (Fminibuffer_selected_window): New function.
20721 (syms_of_window): Defsubr it.
20722
20723 2002-03-01 Kim F. Storm <storm@cua.dk>
20724
20725 * window.h (struct window): New member phys_cursor_width.
20726
20727 * window.c (make_window, replace_window): Init phys_cursor_width.
20728
20729 * xterm.c (x_display_and_set_cursor): Blink box cursor using
20730 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
20731
20732 * w32term.c (x_display_and_set_cursor): Blink box cursor using
20733 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
20734
20735 * lisp.h (GCPRO6): New macro.
20736
20737 * process.c (Fopen_network_stream): Use GCPRO6.
20738
20739 2002-03-01 Kim F. Storm <storm@cua.dk>
20740
20741 * process.c (Qconnect, Qfailed): New variables.
20742 (syms_of_process): Intern and staticpro them.
20743 (Fprocess_status): Document connect and failed return values.
20744 [NON_BLOCKING_CONNECT]: New conditional.
20745 (connect_wait_mask, num_pending_connects): New variables.
20746 (status_message): Convert Qfailed status.
20747 (Fopen_network_stream): Added support for non-blocking connect.
20748 New optional args: filter, sentinel, non_blocking. Doc updated.
20749 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
20750 (deactivate_process): Handle pending non-blocking connect.
20751 (wait_reading_process_input): Poll for status of non-blocking
20752 connects. Exec sentinel directly when connect succeeds.
20753 (status_notify): Don't read process output if not yet connected.
20754
20755 2002-02-28 Kim F. Storm <storm@cua.dk>
20756
20757 * window.c (minibuf_selected_window): Renamed from
20758 Vminibuf_selected_window. Users changed.
20759 (syms_of_window): Staticpro it.
20760
20761 2002-02-26 Kim F. Storm <storm@cua.dk>
20762
20763 The following changes add a new Vminibuf_selected_window variable
20764 which is similar to Vminibuf_scroll_window, but which is only set
20765 on entry to the minibuffer (from a non-minibuffer window):
20766
20767 * window.c (Vminibuf_selected_window): New variable.
20768 (struct save_window_data): New member minibuf_selected_window.
20769 (Fset_window_configuration): Restore Vminibuf_selected_window.
20770 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
20771 Set minibuf_scroll_window member to nil if minibuf_level is 0.
20772 (compare_window_configurations): Compare minibuf_selected_window.
20773
20774 * window.h (Vminibuf_selected_window): Declare extern.
20775
20776 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
20777 entry to minibuffer or on entry from a non-minibuffer window.
20778
20779 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
20780 Vminibuf_selected_window instead of Vminibuf_scroll_window.
20781
20782 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
20783 instead of Vminibuf_scroll_window when deciding in which window
20784 the region should be highlighted. Consequently, the region remains
20785 highlighteded even when a completion buffer is also displayed.
20786
20787 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
20788
20789 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
20790
20791 * xselect.c (Qcompound_text_with_extensions): Renamed from
20792 Qcompound_text_no_extensions.
20793 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
20794
20795 2002-02-26 Juanma Barranquero <lektu@terra.es>
20796
20797 * w32proc.c (syms_of_ntproc): Doc fix.
20798
20799 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20800
20801 * intervals.h: Include "dispextern.h" unconditionally.
20802
20803 2002-02-24 Jason Rumney <jasonr@gnu.org>
20804
20805 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
20806 and disp-table.elc.
20807 (lisp): Add emacs-lisp/backquote.elc.
20808
20809 2002-02-24 Kim F. Storm <storm@cua.dk>
20810
20811 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
20812 The validation of the event type was too strict as it didn't
20813 allow string events; buffer names are used in bindings for
20814 menu-bar-select-buffer (see `menu-bar-update-buffers').
20815
20816 2002-02-23 Kim F. Storm <storm@cua.dk>
20817
20818 The following changes rework my patch of 2002-02-06 which
20819 added command remapping by entering the commands directly into
20820 the keymaps. Now, command remapping uses an explicit `remap'
20821 prefix in the keymaps, i.e. [remap COMMAND].
20822
20823 * keymap.c (Qremap, remap_command_vector): New variables.
20824 (is_command_symbol): Remove function.
20825 (Fdefine_key): No longer accept a symbol for KEY.
20826 Added validation of [remap COMMAND] argument for KEY.
20827 The DEF is no longer required to be a symbol when remapping a command.
20828 (Fremap_command): New function to remap command through keymaps.
20829 (Flookup_key): Perform command remapping initiated by
20830 Fremap_command directly for speed.
20831 (Fkey_binding): Use Fremap_command for command remapping.
20832 (where_is_internal): Handle new command remapping representation.
20833 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
20834 staticpro them. Defsubr Fremap_command.
20835
20836 * keymap.h (Fremap_command): Declare extern.
20837 (is_command_symbol): Remove extern.
20838
20839 * keyboard.c (command_loop_1): Use Fremap_command for command
20840 remapping; now try command remapping for all symbols.
20841
20842 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
20843
20844 * coding.h (run_pre_post_conversion_on_str): Add prototype.
20845
20846 2002-02-23 Jason Rumney <jasonr@gnu.org>
20847
20848 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
20849 on the string before encoding it.
20850 (Fw32_get_clipboard_data): Run post-read-conversion on the string
20851 after decoding it.
20852
20853 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
20854
20855 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20856
20857 * w32term.c (enter_timestamp): Remove unused static variable to
20858 prevent warning.
20859
20860 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
20861
20862 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
20863
20864 * w16select.c (Fw16_get_clipboard_data): Fix last change.
20865
20866 * xselect.c (selection_data_to_lisp_data): Fix last change.
20867
20868 2002-02-22 Jason Rumney <jasonr@gnu.org>
20869
20870 * w32term.h (struct w32_output): New member menu_command_in_progress.
20871
20872 * w32menu.c (menubar_selection_callback): Free the menu and
20873 clear the menu_command_in_progress flag.
20874
20875 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
20876 (menu_free_timer): New variable.
20877 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
20878 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
20879 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
20880 menu command is in progress.
20881 <WM_COMMAND>: Set the menu_command_in_progress flag.
20882 Kill any menu_free_timer that is running.
20883
20884 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
20885 Call ExtTextOutA rather than ExtTextOut.
20886
20887 2002-02-22 Eli Zaretskii <eliz@gnu.org>
20888
20889 * puresize.h (BASE_PURESIZE): Increase to 755000.
20890
20891 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
20892
20893 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
20894 on the string before encoding it.
20895 (Fw16_get_clipboard_data): Run post-read-conversion on the string
20896 after decoding it.
20897
20898 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
20899
20900 Support for ICCCM Extended Segments in X selections:
20901
20902 * xselect.c <Qcompound_text_no_extensions>: New variable.
20903 (syms_of_xselect): Intern and staticpro it.
20904 (selection_data_to_lisp_data): Run post-read-conversion on decoded
20905 selection text.
20906 (lisp_data_to_selection_data): If next-selection-coding-system is
20907 compound-text-no-extensions, set the type of selection to be
20908 compound-text.
20909
20910 * xterm.h (x_encode_text): Update prototype.
20911
20912 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
20913 callers changed. If SELECTIONP is non-zero, run the
20914 pre-write-conversion function before encoding the selection text.
20915
20916 2002-02-21 Kim F. Storm <storm@cua.dk>
20917
20918 * frame.c (syms_of_frame): Change mouse-highlight default to t.
20919
20920 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
20921 Correct composing of language-change event.
20922
20923 2002-02-20 Kim F. Storm <storm@cua.dk>
20924
20925 * keyboard.c (menu_bar_items): Don't include keymap or local-map
20926 bindings at PT when building menu (the menu is not updated often
20927 enough for this to work reliable).
20928 (tool_bar_items): Likewise.
20929 (current_active_maps): Removed unused (and buggy) function.
20930
20931 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20932
20933 * xfns.c (gif_load): Use correct width and height for GIF images.
20934
20935 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
20936
20937 * floatfns.c (Fatan): Accept an optional second arg and call
20938 atan2 if passed 2 args.
20939
20940 2002-02-18 Jason Rumney <jasonr@gnu.org>
20941
20942 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
20943
20944 2002-02-17 Jason Rumney <jasonr@gnu.org>
20945
20946 * w32term.c (x_autoselect_window_p): New variable.
20947 (syms_of_w32term): DEFVAR_BOOL and initialize it.
20948 (note_mouse_movement): Use it.
20949
20950 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
20951
20952 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
20953
20954 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
20955 New variables.
20956 (syms_of_w32fns): Intern and staticpro them.
20957 (x_frame_parms) <"fullscreen">: New parameter.
20958 (x_fullscreen_move, x_set_fullscreen): New functions.
20959 (x_set_frame_parameters): Support Qfullscreen.
20960 (x_real_positions): Save x/y_pixels_diff frame params.
20961 (x_figure_window_size): Support full-screen frames.
20962 (Fx_create_frame): Default the fullscreen parameter.
20963
20964 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
20965 (x_fullscreen_adjust): New functions.
20966 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
20967 fullscreen. Call x_check_fullscreen_move, and set the
20968 want_fullscreen member of output_data.w32
20969 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
20970
20971 * w32term.h: New enum for FULLSCREEN_* constants.
20972 (struct w32_output): New members want_fullscreen, x_pixels_diff,
20973 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
20974 (x-fullscreen-adjust): New prototype.
20975
20976 2002-02-17 Kim F. Storm <storm@cua.dk>
20977
20978 * frame.c (Vmouse_highlight): New variable.
20979 (syms_of_frame): DEFVAR_LISP it.
20980
20981 * frame.h (Vmouse_highlight): Declare extern.
20982
20983 * xterm.h (struct x_display_info): Add mouse_face_hidden.
20984
20985 * xterm.c (disable_mouse_highlight): Removed variable.
20986 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
20987 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20988 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
20989 and on after keyboard input.
20990 (x_term_init): Initialize mouse_face_hidden.
20991
20992 * msdos.h (struct display_info): Add mouse_face_hidden.
20993
20994 * msdos.c (disable_mouse_highlight): Removed variable.
20995 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20996 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
20997 (internal_terminal_init): Initialize mouse_face_hidden.
20998 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
20999 and on after keyboard input.
21000
21001 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
21002
21003 * w32term.c (disable_mouse_highlight): Removed variable.
21004 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
21005 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
21006 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
21007 and on after keyboard input.
21008 (w32_initialize_display_info): Initialize mouse_face_hidden.
21009
21010 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
21011
21012 * msdos.c (last_mouse_window): New variable.
21013 (dos_rawgetc): Fix last change--if the mouse is in the same window
21014 as recorded in last_mouse_window, don't select this window.
21015
21016 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
21017
21018 * msdos.c (x_autoselect_window_p): New variable.
21019 (syms_of_msdos): Defvar it.
21020 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
21021 which the last mouse movement occured, unless it is already selected.
21022
21023 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
21024 New variables.
21025 (syms_of_xdisp): DEVFAR them.
21026 (hscroll_window_tree): Use automatic_hscroll_margin and
21027 Vautomatic_hscroll_step to compute the amount of window scrolling.
21028
21029 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21030
21031 * xterm.c (x-autoselect-window): New variable.
21032 (note_mouse_movement): Use it.
21033
21034 * keyboard.c: Do not include "systime.h" twice.
21035
21036 2002-02-15 Andreas Schwab <schwab@suse.de>
21037
21038 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
21039
21040 * alloc.c (NSTATICS): Increase to 1280.
21041
21042 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
21043
21044 * alloc.c (NSTATICS): Bump to 1026.
21045
21046 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
21047 (Vx_super_keysym): New variables.
21048 (syms_of_xterm): DEFVAR_LISP them.
21049 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
21050 variables to determine which keys to use for the various modifiers.
21051
21052 2002-02-13 Kim F. Storm <storm@cua.dk>
21053
21054 * window.c (Vmode_line_in_non_selected_windows): Removed.
21055 (mode_line_in_non_selected_windows): New variable.
21056 (syms_of_window): DEFVAR_BOOL it.
21057
21058 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
21059 Use mode_line_in_non_selected_windows.
21060 (mode_line_in_non_selected_windows): Declare extern.
21061 (Vmode_line_in_non_selected_windows): Removed extern.
21062
21063 2002-02-13 Richard M. Stallman <rms@gnu.org>
21064
21065 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
21066 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
21067 (Fclear_this_command_keys): Doc fixes.
21068
21069 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
21070 (update_face_from_frame_parameter): Increment face_change_count
21071 and windows_or_buffers_changed to force redisplay using changed faces.
21072
21073 * xdisp.c (QCpropertize): New variable.
21074 (mode_line_proptrans_alist): New variable.
21075 (display_mode_element): New arg PROPS; all calls changed.
21076 Implement this, for strings.
21077 Handle literal output of strings by sharing the
21078 main-line code for strings, using local var `literal'.
21079 Handle :propertize feature.
21080 (syms_of_xdisp): Initialze and staticpro QCpropertize and
21081 mode_line_proptrans_alist.
21082
21083 2002-02-11 Kim F. Storm <storm@cua.dk>
21084
21085 * window.c (Vmode_line_in_non_selected_windows): New variable.
21086 (syms_of_window): DEFVAR_LISP it.
21087
21088 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
21089 (CURRENT_MODE_LINE_FACE_ID): Use it.
21090 (Vmode_line_in_non_selected_windows): Declare extern.
21091
21092 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
21093 to get mode line face.
21094
21095 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
21096
21097 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
21098 variables; cus-start.el doesn't need them anymore.
21099
21100 2002-02-09 Kim F. Storm <storm@cua.dk>
21101
21102 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
21103 reduction. This fixes a display problem where stray newlines were
21104 inserted in the window (corrected by C-l). Clarified code (IMHO).
21105
21106 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
21107
21108 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
21109
21110 * xdisp.c (display_mode_lines): Fix last change.
21111
21112 2002-02-09 Jason Rumney <jasonr@gnu.org>
21113
21114 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
21115 match each other.
21116 (w32_load_system_font): Prevent Cleartype fonts from loading.
21117 (Fx_show_tip): Ensure tip frames are above other topmost windows.
21118
21119 2002-02-09 Kim F. Storm <storm@cua.dk>
21120
21121 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
21122 (CURRENT_MODE_LINE_HEIGHT): Use it.
21123 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
21124
21125 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
21126 (pos_visible_p, handle_face_prop): Likewise.
21127 (display_mode_lines): Likewise, but for the real selected window.
21128 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
21129
21130 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
21131 in non-selected windows.
21132 (realize_basic_faces): Realize it.
21133 (syms_of_term): Intern and staticpro it.
21134
21135 2002-02-08 Kim F. Storm <storm@cua.dk>
21136
21137 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
21138 Changed mail addresses to emacs-devel@gnu.org.
21139
21140 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
21141
21142 * fileio.c (Fsubstitute_in_file_name): If the file name includes
21143 ~user, and there's no such user, don't discard everything before ~user.
21144
21145 * floatfns.c (Fround): Doc fix.
21146
21147 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21148
21149 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
21150
21151 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
21152
21153 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
21154
21155 2002-02-07 Kim F. Storm <storm@cua.dk>
21156
21157 * keymap.c (where_is_internal): Only check whether definition is
21158 remapped if it fulfills is_command_symbol.
21159
21160 2002-02-07 Andreas Schwab <schwab@suse.de>
21161
21162 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
21163
21164 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
21165
21166 2002-02-06 Kim F. Storm <storm@cua.dk>
21167
21168 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
21169 defining command remapping. Doc updated.
21170 (Flookup_key): Remap command through keymap if KEY is a symbol.
21171 (is_command_symbol): New function.
21172 (Fkey_binding): Use it. New optional argument NO-REMAP.
21173 Doc updated. Callers changed. Perform command remapping via
21174 recursive call unless that arg is non-nil.
21175 (where_is_internal): New argument no_remap. Callers changed.
21176 Call recursively to find original key bindings for a remapped
21177 comand unless that arg is non-nil.
21178 (Fwhere_is_internal): New optional argument NO-REMAP.
21179 Doc updated. Callers changed. Pass arg to where_is_internal.
21180
21181 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
21182 (is_command_symbol): Add prototype.
21183
21184 * keyboard.c (Vthis_original_command): New variable.
21185 (syms_of_keyboard): DEFVAR_LISP it.
21186 (command_loop_1): Set it, and perform command remapping.
21187
21188 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21189
21190 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
21191
21192 2002-02-06 Jason Rumney <jasonr@gnu.org>
21193
21194 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
21195
21196 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
21197
21198 * charset.c (get_charset_id): Use if-else instead of ?:.
21199
21200 2002-02-06 Richard M. Stallman <rms@gnu.org>
21201
21202 * filelock.c (S_ISLNK): Define if not defined.
21203
21204 2002-02-03 Richard M. Stallman <rms@gnu.org>
21205
21206 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
21207
21208 * lread.c (read1): Redesign strategy for force_multibyte and
21209 force_singlebyte. Now is_multibyte records whether read_buffer
21210 is multibyte. Encountering any multibyte character makes it so.
21211
21212 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
21213
21214 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
21215 with the same sequence, map that sequence to f10 rather than f0.
21216
21217 2002-02-03 Andreas Schwab <schwab@suse.de>
21218
21219 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
21220 latter never being defined on GNU/Linux.
21221
21222 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
21223
21224 * xfaces.c (realize_default_face): Don't set the weight and slant of
21225 the default face to Qnormal, unless these attributes are unspecified.
21226
21227 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21228
21229 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
21230 Call cancel_hourglass unconditionally.
21231
21232 * eval.c (Fsignal): Remove duplicated declaration of
21233 the variable `display_hourglass_p'.
21234
21235 2002-01-31 Richard M. Stallman <rms@gnu.org>
21236
21237 * editfns.c (region_limit): Nicer error message.
21238
21239 * coding.c (decode_composition_emacs_mule):
21240 Give up if NCOMPONENT gets too large to index `component'.
21241
21242 * callint.c (check_mark): New arg to specify clearer error message.
21243 Callers changed.
21244
21245 2002-01-27 Richard M. Stallman <rms@gnu.org>
21246
21247 * minibuf.c (Fcompleting_read): Doc fix.
21248
21249 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21250
21251 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
21252 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
21253 Fix doc-strings.
21254
21255 2002-01-26 Richard M. Stallman <rms@gnu.org>
21256
21257 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
21258
21259 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
21260 and scroll_up_aggressively.
21261
21262 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21263
21264 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
21265
21266 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
21267
21268 * textprop.c (Fnext_property_change, Fnext_single_property_change)
21269 (Fprevious_property_change, Fprevious_single_property_change):
21270 Stay within the narrowed-buffer boundaries.
21271
21272 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
21273
21274 * term.c (Ftty_display_color_cells): New function.
21275 (syms_of_term): Defsubr it.
21276 (Ftty_display_color_cells, Ftty_display_color_p): Change the
21277 argument name to DISPLAY. Doc fix.
21278
21279 * dispextern.h: Add prototype for set_tty_color_mode and
21280 tty_setup_colors.
21281
21282 2002-01-24 Jason Rumney <jasonr@gnu.org>
21283
21284 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
21285 If region left to draw is not what was expected, mark the frame as
21286 garbaged.
21287
21288 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
21289 Combine the regions returned by BeginPaint and GetUpdateRect.
21290
21291 2002-01-23 Jason Rumney <jasonr@gnu.org>
21292
21293 * w32term.c (x_update_window_begin): Only hide caret if
21294 w32_use_visible_system_caret is set.
21295 (x_update_window_end): Only show caret if
21296 w32_use_visible_system_caret is set.
21297 (syms_of_w32term): Handle SystemParametersInfo call failing.
21298
21299 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
21300
21301 2002-01-22 Richard M. Stallman <rms@gnu.org>
21302
21303 * unexelf.c (unexec): Define n so as to cause compilation error
21304 for the code where people have often written n instead of nn.
21305
21306 * .gdbinit (hookpost-run): Defined.
21307
21308 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21309
21310 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
21311
21312 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21313
21314 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
21315 if fullscreen is being set.
21316
21317 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21318
21319 * minibuf.c (Fminibuffer_contents)
21320 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
21321 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
21322
21323 2002-01-21 Richard M. Stallman <rms@gnu.org>
21324
21325 * window.c (check_frame_size): Fix minimum height calculation.
21326
21327 2002-01-20 Ken Raeburn <raeburn@gnu.org>
21328
21329 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
21330 height before comparison.
21331 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
21332
21333 2002-01-20 Jason Rumney <jasonr@gnu.org>
21334
21335 * w32term.c (w32_system_caret_width): Remove.
21336 (w32_use_visible_system_caret): New user flag.
21337 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
21338 Windows reports a screen reader running.
21339 (x_update_window_begin): Hide the system caret.
21340 (x_update_window_end): Show the system caret.
21341 (x_display_and_set_cursor): Don't draw a cursor when
21342 w32_use_visible_system_caret is set. Do not adjust width.
21343
21344 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
21345 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
21346 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
21347 the user requests it. Use system default width when creating.
21348 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
21349
21350 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
21351 New window messages.
21352
21353 2002-01-20 Richard M. Stallman <rms@gnu.org>
21354
21355 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
21356
21357 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21358
21359 * doprnt.c (doprnt1): Fix typos in error call.
21360
21361 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
21362
21363 * unexelf.c (unexec) [__sgi]: Support the .got sections.
21364
21365 2002-01-20 Jason Rumney <jasonr@gnu.org>
21366
21367 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
21368 that Windows returns. If a double check fails, try to guess how
21369 ExtTextOut is going to act.
21370
21371 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
21372 in place of stricmp.
21373 (w32_list_synthesized_fonts): Removed.
21374 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
21375 (struct enumfont_t): New element; list.
21376 (enum_font_cb2): List all style and charset variations of a font.
21377 (Fw32_select_font): New optional argument; include_proportional.
21378 Exclude vertical fonts. Exclude proportional fonts unless
21379 include_proportional is non-nil.
21380 (w32_enable_synthesized_fonts): Change to a boolean.
21381 (Fw32_send_sys_command): Doc fix.
21382
21383 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21384
21385 * dispnew.c (update_frame): Move the variable `tem' to the block
21386 where it is used.
21387
21388 2002-01-19 Jason Rumney <jasonr@gnu.org>
21389
21390 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
21391 call to face-set-after-frame-default.
21392
21393 2002-01-18 Richard M. Stallman <rms@gnu.org>
21394
21395 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
21396 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
21397
21398 2002-01-17 Richard M. Stallman <rms@gnu.org>
21399
21400 * window.c (enlarge_window): When exceeding size of parent,
21401 directly delete all the siblings instead of trying to resize it.
21402
21403 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21404
21405 * term.c (set_tty_color_mode): Remove unused variable `tem'.
21406
21407 2002-01-16 Henrik Enberg <henrik@enberg.org>
21408
21409 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
21410
21411 2002-01-16 Kim F. Storm <storm@cua.dk>
21412
21413 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
21414 is invisible. This can happen if cursor is on top line of a
21415 window, and we switch to a buffer with a header line.
21416
21417 * w32term.c (x_erase_phys_cursor): Ditto.
21418
21419 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21420
21421 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
21422 `dont_resize' only when used.
21423
21424 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
21425
21426 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
21427
21428 * xdisp.c (display_mode_element): When computing charpos, depend
21429 on multibyteness of elt, not the text in field.
21430
21431 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21432
21433 * buffer.c (Fkill_all_local_variables):
21434 Increment `update_mode_lines' only once.
21435
21436 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21437
21438 * lisp.h (adjust_after_replace_noundo)
21439 (Fupdate_coding_systems_internal): Add prototypes.
21440
21441 * sound.c (Fplay_sound): Initialize header_size also for :data case.
21442
21443 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
21444
21445 Support for the --color command-line argument and tty-color-mode
21446 frame parameter:
21447
21448 * term.c (tty_default_color_capabilities, tty_setup_colors)
21449 (set_tty_color_mode): New functions.
21450 (term_init): Call tty_default_color_capabilities.
21451 (Qtty_color_mode_alist): New variable.
21452 (syms_of_term): Intern and staticpro it.
21453
21454 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
21455 frames.
21456 (do_switch_frame): For termcap frames, switch the tty
21457 color mode as specified by the frame's parameters.
21458 (Qtty_color_mode): New variable.
21459 (syms_of_frame): Intern and staticpro it.
21460
21461 * emacs.c (USAGE2): Add the --color option.
21462 (standard_args): Ditto.
21463
21464 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21465
21466 * xterm.h (struct x_output): New members want_fullscreen,
21467 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
21468 y_pixels_outer_diff.
21469 New enum for FULLSCREEN_* constants.
21470 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
21471 is NULL.
21472 (x_fullscreen_adjust): Add prototype.
21473
21474 * emacs.c (USAGE2): Add the new full-screen arguments.
21475 (standard_args): Ditto.
21476
21477 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
21478 New variables.
21479 (syms_of_xfns): Intern and staticpro them.
21480 (x_frame_parms) <"fullscreen">: New parameter.
21481 (x_fullscreen_move, x_set_fullscreen): New functions.
21482 (x_set_frame_parameters): Support for Qfullscreen.
21483 (x_real_positions): More accurate computation of the frame position.
21484 (x_figure_window_size): Support full-screen frames.
21485 (Fx_create_frame): Default the fullscreen parameter.
21486
21487 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
21488 (XTread_socket) <Expose>: Call x_check_fullscreen.
21489 <ConfigureNotify>: Don't resize to fullscreen.
21490 Call x_check_fullscreen_move, and set the want_fullscreen member of
21491 output_data.x.
21492
21493 2002-01-13 Jason Rumney <jasonr@gnu.org>
21494
21495 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
21496 for mice with more than 3 buttons.
21497
21498 * w32term.c (parse_button): New parameter xbutton. Callers changed.
21499 (w32_read_socket): Handle new "XBUTTON" messages.
21500
21501 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
21502 (syms_of_w32fns): DEFVAR_BOOL it.
21503 (w32_wnd_proc): Handle new "XBUTTON" messages.
21504
21505 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21506
21507 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
21508
21509 2002-01-13 Andreas Schwab <schwab@suse.de>
21510
21511 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
21512
21513 2002-01-12 Andreas Schwab <schwab@suse.de>
21514
21515 * .gdbinit (xbuffer): Remove address operator since data is now a
21516 pointer.
21517
21518 2002-01-11 Richard M. Stallman <rms@gnu.org>
21519
21520 * insdel.c (adjust_after_replace_noundo): New function.
21521
21522 * coding.c (code_convert_region): Don't copy old text if undo disabled.
21523
21524 2002-01-09 Jason Rumney <jasonr@gnu.org>
21525
21526 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
21527 when checking for multiple frames.
21528
21529 2002-01-08 Richard M. Stallman <rms@gnu.org>
21530
21531 * window.c (delete_window): Rewrite the code for changing the
21532 selected window to handle the case where WINDOW is not a leaf.
21533
21534 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
21535
21536 * process.c (send_process): Set src_multibyte to 1 after the call
21537 top setup_coding_system, not before the call.
21538
21539 2002-01-07 Jason Rumney <jasonr@gnu.org>
21540
21541 * xmenu.c (set_frame_menubar, xmenu_show):
21542 (xdialog_show): Initialize wv->help to Qnil.
21543
21544 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
21545 (w32_dialog_show): Initialize wv->help to Qnil.
21546
21547 2002-01-06 Jason Rumney <jasonr@gnu.org>
21548
21549 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
21550
21551 * w32menu.c (w32_menu_display_help): Revert last change.
21552
21553 * xmenu.c (menu_highlight_callback): Revert last change.
21554
21555 2002-01-06 Andreas Schwab <schwab@suse.de>
21556
21557 * insdel.c (make_gap_larger): Make sure buffer size does not
21558 overflow range of int.
21559
21560 2002-01-05 Jason Rumney <jasonr@gnu.org>
21561
21562 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
21563 OVERLAPS_P.
21564
21565 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
21566
21567 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
21568 to the left or to the right of the pointer, put it against
21569 the left screen edge.
21570 (x_frame_parms): Add missing braces around initializer.
21571
21572 * w32term.c (x_setup_relief_colors): Don't compute an image's
21573 background color if it doesn't have a Pixmap.
21574 (notice_overwritten_cursor): Don't depend on
21575 output_cursor and updated_area. Compare pixel coordinates with
21576 window's cursor pixel coordinates.
21577 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
21578 Call notice_overwritten_cursor with new arg list.
21579 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
21580 unconditionally.
21581 (x_draw_image_relief): Use predefined macro instead of
21582 constant when the value of `tool_bar_button_relief' is negative.
21583
21584 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
21585
21586 2002-01-04 Richard M. Stallman <rms@gnu.org>
21587
21588 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
21589
21590 2002-01-03 Richard M. Stallman <rms@gnu.org>
21591
21592 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
21593 (Fkey_binding): Try the `keymap' property map first.
21594 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
21595 minor mode bindings.
21596
21597 2002-01-03 Kim F. Storm <storm@cua.dk>
21598
21599 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
21600
21601 2002-01-02 Richard M. Stallman <rms@gnu.org>
21602
21603 * keyboard.c (read_key_sequence): Handle the keymap property
21604 before minor mode maps.
21605
21606 * editfns.c (Fformat): Update thissize from field_width
21607 based on the actual width, in the string case.
21608
21609 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21610
21611 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
21612 when used as truth value to prevent gcc warnings.
21613
21614 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
21615 * w32proc.c: Include <config.h>.
21616
21617 2002-01-01 Andreas Schwab <schwab@suse.de>
21618
21619 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
21620 not EMACS_INT, to make them compatible with DEFVAR_INT.
21621 * lisp.h (max_specpdl_size): Adjust declaration.
21622
21623 2002-01-01 Richard M. Stallman <rms@gnu.org>
21624
21625 * print.c (print_object): Test print_escape_nonascii only for
21626 unibyte strings.
21627 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
21628 when outputting to a multibyte buffer.
21629
21630 2001-12-29 Richard M. Stallman <rms@gnu.org>
21631
21632 * print.c (print_object): In multibyte string, use hex escapes.
21633 Use octal only for unibyte strings.
21634 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
21635
21636 * lread.c (read_escape): New arg BYTEREP for reporting whether
21637 escape forces unibyte or multibyte.
21638 (read1): When reading a string, take note of that info.
21639
21640 2001-12-29 Ken Raeburn <raeburn@gnu.org>
21641
21642 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
21643 comparison to test lisp value returned by Fget.
21644
21645 2001-12-29 Richard M. Stallman <rms@gnu.org>
21646
21647 * lisp.h (max_specpdl_size): Add declaration.
21648
21649 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
21650
21651 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
21652 Handle modifier bits. Correct typo in error message.
21653
21654 2001-12-28 Richard M. Stallman <rms@gnu.org>
21655
21656 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
21657 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
21658 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21659 Update calls to Fdefine_abbrev.
21660 (write_abbrev): Update for changed data format.
21661 Don't list "system" abbrevs.
21662 (Fexpand_abbrev): Update use count with new data format.
21663 (describe_abbrev): Update for changed data format.
21664 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
21665
21666 * config.in (HAVE_MBSINIT): Add #undef.
21667
21668 * strftime.c (mbsinit): Define as no-op if not available.
21669
21670 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
21671 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
21672
21673 * keymap.c (Flookup_key): Error message if key has wrong data type.
21674 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
21675 (exclude_key): New variable.
21676
21677 2001-12-28 Gerd Moellmann <gerd@gnu.org>
21678
21679 * xterm.c (x_setup_relief_colors): Don't compute an image's
21680 background color if it doesn't have a Pixmap.
21681
21682 * xterm.c (notice_overwritten_cursor): Don't depend on
21683 output_cursor and updated_area. Compare pixel coordinates with
21684 window's cursor pixel coordinates.
21685 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
21686 Call notice_overwritten_cursor with new arg list.
21687 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
21688 unconditionally.
21689
21690 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
21691 height of the cursor line to the amount to scroll.
21692
21693 2001-12-27 Richard M. Stallman <rms@gnu.org>
21694
21695 * intervals.c (set_point_both): The position after an invisible,
21696 intangible character is not an acceptable stopping point.
21697
21698 2001-12-27 Ken Raeburn <raeburn@gnu.org>
21699
21700 * window.c (enlarge_window): In new preserve_before code, convert
21701 CURBEG from lisp object to integer before doing arithmetic.
21702
21703 2001-12-27 Richard M. Stallman <rms@gnu.org>
21704
21705 * bytecode.c (Fbyte_code): Undo previous change.
21706
21707 2001-12-26 Kim F. Storm <storm@cua.dk>
21708
21709 * keyboard.c (record_char): Ignore duplicate help-echo events only
21710 separated by mouse-movement. When tracking mouse, only record
21711 first and last mouse-movement event in same window.
21712 Don't record mouse-movement events in keyboard macros.
21713
21714 2001-12-25 Richard M. Stallman <rms@gnu.org>
21715
21716 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
21717 (Fenlarge_window): New arg PRESERVE_BEFORE.
21718
21719 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
21720 instead of Fstring_as_unibyte.
21721
21722 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21723
21724 The following changes remove mocklisp support:
21725
21726 * mocklisp.h, mocklisp.c: Files removed.
21727
21728 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
21729 `Qmocklisp' and `Qmocklisp_arguments'.
21730 Remove prototype of syms_of_mocklisp.
21731
21732 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
21733
21734 * callint.c: Do not include mocklisp.h.
21735 (Fcall_interactively): Do not test for mocklisp case.
21736
21737 * eval.c: Remove variables `Qmocklisp_arguments',
21738 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
21739 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
21740 Do not test for mocklisp case.
21741 (Fwhile): Remove unused variable `tem'.
21742 (syms_of_eval): Remove variable `moclisp-arguments'.
21743
21744 * data.c (wrong_type_argument): Remove mocklisp case.
21745
21746 * doc.c (Fdocumentation): Remove mocklisp case.
21747
21748 * emacs.c (main): Do not call syms_of_mocklisp.
21749
21750 2001-12-21 Richard M. Stallman <rms@gnu.org>
21751
21752 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
21753 to the left or to the right of the pointer, put it against
21754 the left screen edge.
21755
21756 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
21757
21758 * Makefile.in (distclean): Remove .gdbinit if we are building
21759 outside the source tree.
21760
21761 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
21762
21763 * w32.c (emacs_root_dir): New function.
21764
21765 * msdos.c (emacs_root_dir): New function.
21766
21767 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
21768 of the current drive as the fallback for default_directory.
21769
21770 * dired.c (file_name_completion): Run the elements of
21771 completion-ignored-extensions through ENCODE_FILE.
21772
21773 * lisp.h (scmp): Remove prototype, since it's now a static
21774 function private to dired.c.
21775
21776 2001-12-18 Richard M. Stallman <rms@gnu.org>
21777
21778 * dired.c (scmp): Function moved from minibuf.c.
21779 Delete multibyte handling--used only on encoded strings.
21780
21781 * minibuf.c (scmp): Function moved to dired.c.
21782
21783 * fns.c (merge): Add QUIT call.
21784
21785 2001-12-18 Dave Love <fx@gnu.org>
21786
21787 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
21788 language/georgian.el.
21789
21790 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
21791
21792 * Makefile.in (lisp, shortlisp): Synchronize with changes to
21793 lisp/Makefile.in:DONTCOMPILE.
21794
21795 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21796
21797 * xdisp.c (window_box_height): Do not return negative values.
21798 From Gerd Moellmann <gerd@gnu.org>.
21799
21800 * keyboard.c (head_table): Add missing braces around initializer.
21801
21802 * term.c (keys): Likewise.
21803
21804 * xfns.c (x_frame_parms, visual_classes): Likewise.
21805
21806 2001-12-17 Sam Steingold <sds@gnu.org>
21807
21808 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
21809 patch (COMPOSING_P, not COMPOSING).
21810
21811 2001-12-17 Richard M. Stallman <rms@gnu.org>
21812
21813 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
21814
21815 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
21816 before calling decode_coding.
21817
21818 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
21819
21820 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
21821 instead of only for COMPOSITION_DISABLED.
21822
21823 2001-12-16 Richard M. Stallman <rms@gnu.org>
21824
21825 * alloc.c (pure_alloc): After overflow, allocate just a small block.
21826
21827 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
21828
21829 * buffer.h (struct buffer): New field `display_error_modiff'.
21830 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
21831
21832 * window.c (Frecenter): Clear display_error_modiff field.
21833
21834 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
21835 Call redisplay_window, but not if display_error_modiff field says no.
21836 (redisplay_window_error): New function.
21837 (displayed_buffer): New variable.
21838 (redisplay_internal, redisplay_windows): Call the new functions
21839 instead of redisplay_window directly.
21840
21841 2001-12-15 Richard M. Stallman <rms@gnu.org>
21842
21843 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
21844
21845 2001-12-14 Andrew Innes <andrewi@gnu.org>
21846
21847 * makefile.w32-in (EMACSLOADPATH): Define.
21848 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
21849 (bootstrap-temacs): Remove dependency on bootstrap-clean.
21850
21851 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
21852
21853 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
21854 parameter have a numeric value all the time.
21855
21856 * w32fns.c (x_report_frame_params): Likewise.
21857
21858 2001-12-12 Richard M. Stallman <rms@gnu.org>
21859
21860 * fileio.c (Fwrite_region): Doc fix.
21861
21862 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
21863 (redisplay_internal): Call clear_image_cache only for window terminals.
21864
21865 2001-12-12 Gerd Moellmann <gerd@gnu.org>
21866
21867 * xdisp.c (move_it_vertically_backward): Change heuristic
21868 for the case that we didn't move far enough initially.
21869
21870 * window.c (Frecenter): Simplify computation in the case of window
21871 system frames and ARG < 0; use window_box_height.
21872
21873 2001-12-11 Richard M. Stallman <rms@gnu.org>
21874
21875 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
21876 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
21877
21878 2001-12-11 Andrew Innes <andrewi@gnu.org>
21879
21880 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
21881 arg is negative.
21882
21883 2001-12-11 Richard M. Stallman <rms@gnu.org>
21884
21885 * m/hp800.h: Split the __hpux conditional into the parts
21886 that are right for GNU/Linux too and the parts that are not.
21887 Use the former if GNU_LINUX.
21888 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
21889
21890 * s/gnu-linux.h (GNU_LINUX): Defined.
21891
21892 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21893
21894 * macros.c, msdos.c, w16select.c: Change doc-string comments to
21895 `new style' [w/`doc:' keyword].
21896
21897 2001-12-10 Jason Rumney <jasonr@gnu.org>
21898
21899 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
21900 before using.
21901
21902 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21903
21904 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
21905 keyword].
21906
21907 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
21908
21909 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
21910
21911 * s/hpux10.h (srand48): Don't undefine.
21912
21913 2001-12-09 Jason Rumney <jasonr@gnu.org>
21914
21915 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
21916 Add comment to explain where the struct came from.
21917 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
21918 (add_menu_item): Process pop-up menus first to avoid memory leak.
21919 (add_menu_item, w32_menu_display_help): Use `help' field as
21920 Lisp_Object.
21921 (w32_free_submenu_strings): Only free owner-drawn strings.
21922
21923 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21924
21925 * COPYING: Moved back.
21926
21927 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
21928 Add parentheses around && within ||.
21929
21930 * indent.c (compute_motion): Likewise.
21931
21932 * intervals.c (merge_properties_sticky): Likewise.
21933
21934 * coding.c (setup_coding_system, shrink_encoding_region)
21935 (Fdecode_sjis_char): Likewise.
21936
21937 2001-12-07 Andreas Schwab <schwab@suse.de>
21938
21939 * xdisp.c (display_mode_element): Don't read past end of string if
21940 it ends with '%'.
21941
21942 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
21943 can hold.
21944
21945 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
21946 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
21947 type changed to Lisp_Object.
21948 (syms_of_data): DEFVAR_LISP them.
21949
21950 2001-12-07 Richard M. Stallman <rms@gnu.org>
21951
21952 * callproc.c (init_callproc): Set Vdata_directory based on the source
21953 location whenever Emacs was run uninstalled.
21954
21955 2001-12-06 Paul Eggert <eggert@twinsun.com>
21956
21957 * config.in (HAVE_WORKING_VFORK): New #undefs.
21958 * process.c (create_process):
21959 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
21960 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
21961 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
21962 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
21963 * m/intel386.h (HAVE_VFORK): Likewise.
21964 * m/mips-siemens.h (HAVE_VFORK): Likewise.
21965 * m/mips.h (HAVE_VFORK): Likewise.
21966 * s/freebsd.h (vfork): Remove #define.
21967 * s/lynxos.h (HAVE_VFORK): Remove #undef.
21968 * s/usg5-4-2.h: Fix comment about vfork.
21969
21970 2001-12-06 Richard M. Stallman <rms@gnu.org>
21971
21972 * s/hpux10.h (random): Add undef.
21973 (HAVE_RANDOM): Define it just once.
21974
21975 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
21976
21977 * eval.c: Undo last change: the standard syntax is not wanted.
21978
21979 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
21980
21981 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
21982 scroll bars of the frame before deleting the frame itself. If the
21983 frame has a widget, delete the frame with XtDestroyWidget, and do
21984 not call XDestroyWindow before that.
21985
21986 2001-12-06 Kim F. Storm <storm@cua.dk>
21987
21988 * xfns.c (x_report_frame_params): Return actual fringe widths.
21989
21990 * w32fns.c (x_report_frame_params): Return actual fringe widths.
21991
21992 2001-12-05 Andrew Innes <andrewi@gnu.org>
21993
21994 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
21995 excessively large.
21996
21997 * insdel.c (make_gap_larger): New function.
21998 (make_gap_smaller): New function.
21999 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
22000 Call make_gap_smaller if arg is negative.
22001
22002 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
22003
22004 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
22005 Pass a dummy argument when calling interrupt_signal.
22006 (parse_menu_item): Mark disabled items before checking for empty def.
22007 (read_char_minibuf_menu_prompt): Make safety more visible.
22008 (read_key_sequence): Add a `first_unbound' variable.
22009 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
22010 unbound prefix as soon as we can detect it.
22011
22012 * doc.c (Fsnarf_documentation): Add prototype.
22013 (get_doc_string): Handle negative arguments.
22014 (Fdocumentation): Use AREF and ASIZE.
22015 Move the calls to get_doc_string to a single place.
22016 Don't confuse an interactive-spec for a docstring reference.
22017 (Fdocumentation_property): Take advantage of the fact that
22018 get_doc_string now ignores the sign of the docstring position.
22019
22020 * eval.c: Use standard syntax for usage in docstrings.
22021
22022 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22023
22024 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
22025
22026 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22027
22028 * xterm.c (x_draw_image_relief): Use predefined macro instead of
22029 constant when the value of `tool_bar_button_relief' is negative.
22030
22031 2001-12-02 Richard M. Stallman <rms@gnu.org>
22032
22033 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
22034 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
22035
22036 * fileio.c (read_non_regular): Delete Fsignal call.
22037
22038 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
22039
22040 * lisp.h (run_hook_list_with_args): Undo last change.
22041
22042 2001-12-01 Gerd Moellmann <gerd@gnu.org>
22043
22044 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
22045
22046 2001-12-01 Jason Rumney <jasonr@gnu.org>
22047
22048 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
22049
22050 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
22051 [!WM_MOUSELEAVE]: Define.
22052
22053 * w32menu.c (current_popup_menu, get_menu_item_info):
22054 (set_menu_item_info): New vars.
22055 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
22056 (w32_menu_show): Set current_popup_menu.
22057 (add_menu_item): Allocate new strings for owner-drawn menu items
22058 and help strings.
22059 Use owner-draw for disabled menu items again.
22060 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
22061 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
22062
22063 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
22064 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
22065 <WM_EXITMENULOOP>: Free menu strings.
22066 <WM_MOUSELEAVE>: Stop tracking mouse.
22067 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
22068
22069 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
22070 and mouse face.
22071
22072 2001-12-01 Kim F. Storm <storm@cua.dk>
22073
22074 The following changes add left-fringe and right-fringe
22075 frame parameters to adjust fringe widths, or remove one or
22076 both fringes.
22077
22078 * frame.h (struct frame): Remove trunc_area_pixel_width and
22079 trunc_area_cols fields.
22080 (Qleft_fringe, Qright_fringe): Declare.
22081 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
22082
22083 * frame.c (Qleft_fringe, Qright_fringe): New vars.
22084 (syms_of_frame): Initialize them.
22085
22086 * window.c (coordinates_in_window): Handle separate left and right
22087 fringe widths.
22088
22089 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
22090 and fringe_cols fields.
22091 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
22092 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
22093 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
22094 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
22095 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
22096 (x_compute_fringe_widths): Add prototype.
22097
22098 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
22099 fill fringe evenly with small dashes.
22100 (x_draw_fringe_bitmap): Clear background if necessary. Align and
22101 clip the new ZV bitmap to avoid jitter between rows.
22102 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
22103 background. Don't draw fringe bitmaps if fringe width is zero.
22104 (x_compute_fringe_widths): New function.
22105 (x_new_font, x_set_window_size_1): Use it.
22106
22107 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
22108 (x_set_frame_parameters): Process `font' parameter before other
22109 parameters as fringe widths depend on it.
22110 (x_set_fringe_width): New function.
22111 (x_figure_window_size): Use x_compute_fringe_widths.
22112 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
22113 parameters.
22114
22115 * widget.c (set_frame_size): Use x_compute_fringe_widths.
22116 (EmacsFrameSetCharSize): Ditto.
22117
22118 * w32term.h: Merged changes from xterm.h.
22119 * w32term.c: Merged changes from xterm.c.
22120 * w32fns.c: Merged changes from xfns.c.
22121
22122 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22123
22124 * COPYING: Removed.
22125
22126 2001-11-29 Dave Love <fx@gnu.org>
22127
22128 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
22129 extra extra slot.
22130 (detect_coding_mask): Fix call of detect_coding_iso2022.
22131
22132 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22133
22134 * fileio.c (file-name-coding-system)
22135 (default-file-name-coding-system): Doc fix (links to referenced
22136 variables added).
22137
22138 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
22139
22140 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
22141 Add dummy uses of gcproN variables.
22142
22143 * category.c (describe_category, describe_category_1)
22144 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
22145 (syms_of_category): Don't defsubr Sdescribe_categories.
22146
22147 2001-11-28 Richard M. Stallman <rms@gnu.org>
22148
22149 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
22150
22151 * Makefile.in (lispdir): New variable, referring to build dir.
22152 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
22153
22154 2001-11-28 Andrew Innes <andrewi@gnu.org>
22155
22156 * w32menu.c (w32_menu_display_help): Actually add the new argument
22157 OWNER.
22158
22159 2001-11-28 Jason Rumney <jasonr@gnu.org>
22160
22161 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
22162 menu items. From David Ponce <dponce@wanadoo.fr>.
22163 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
22164 conditionally.
22165 (w32_menu_display_help): New argument OWNER. Rewritten to store a
22166 help event in the owner frame's keyboard buffer.
22167
22168 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
22169 (Fx_show_tip): Don't subtract last width from row width.
22170
22171 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
22172 (w32_read_socket): Use EQ to compare frames.
22173
22174 2001-11-28 Gerd Moellmann <gerd@gnu.org>
22175
22176 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
22177 OVERLAPS_P.
22178
22179 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22180
22181 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
22182 `gcpro3' and `gcpro4'.
22183
22184 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
22185
22186 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
22187
22188 * ccl.c: Use AREF and ASIZE.
22189
22190 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
22191
22192 * lisp.h (run_hook_list_with_args): Remove.
22193 (LIST_END_P): Fix call to wrong_type_argument.
22194 (make_fixnum_or_float): Use EMACS_INT rather than int.
22195
22196 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
22197
22198 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
22199 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
22200
22201 * eval.c: Use AREF and ASIZE.
22202 (Ffetch_bytecode): Add the file name to the error message.
22203
22204 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
22205 which match the end of the file-name.
22206 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
22207 is not a valid env var, but leave it as is instead.
22208
22209 * keymap.c (access_keymap): Handle t bindings like nil bindings.
22210 Make nil bindings in char-tables transparent.
22211 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
22212
22213 2001-11-26 Richard M. Stallman <rms@gnu.org>
22214
22215 * textprop.c (set_text_properties_1): Allow START, END in either order.
22216 Do nothing if range is empty.
22217
22218 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
22219
22220 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
22221 (clean): Not here.
22222
22223 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
22224
22225 * textprop.c (set_text_properties_1): Clearly mark that the
22226 interval should not be empty.
22227
22228 * intervals.c (graft_intervals_into_buffer):
22229 Don't call set_text_properties_1 on an empty interval.
22230
22231 2001-11-25 Richard M. Stallman <rms@gnu.org>
22232
22233 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
22234
22235 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
22236 don't lose the data in it.
22237
22238 2001-11-25 Juanma Barranquero <lektu@terra.es>
22239
22240 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
22241
22242 * buffer.c (Fkill_buffer): Likewise.
22243
22244 * print.c (temp_output_buffer_setup): Likewise.
22245
22246 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
22247
22248 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
22249
22250 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
22251
22252 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
22253 Niemitalo <kon@iki.fi>.
22254
22255 2001-11-25 Jason Rumney <jasonr@gnu.org>
22256
22257 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
22258
22259 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
22260 (Fx_show_tip): Block input during frame creation.
22261 (Fx_show_tip, Fx_hide_tip): Enable.
22262
22263 2001-11-24 Richard M. Stallman <rms@gnu.org>
22264
22265 * lread.c (Fload): Detect recursive load error for more than 3
22266 nestings of the same file.
22267 (Vrecursive_load_depth_limit): Variable deleted.
22268 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
22269
22270 2001-11-24 Jason Rumney <jasonr@gnu.org>
22271
22272 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
22273 mouse position if either left or top is not specified.
22274
22275 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
22276 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
22277 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
22278 (my_create_tip_window): Assign tip_window.
22279 (x_create_tip_frame): Use same defaults as X.
22280 (compute_tip_xy): Remove unused variable. Use full screen width.
22281 (Fx_show_tip): Do not double height. Call ShowWindow directly.
22282
22283 * w32term.c (x_after_update_window_line): Doc fix.
22284 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
22285 frames.
22286 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
22287
22288 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
22289 for all Windowed systems.
22290
22291 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
22292
22293 * msdos.c (IT_clear_screen): If the frame's faces are not yet
22294 realized, use the initial screen colors to clear the screen.
22295
22296 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22297
22298 * textprop.c (Fset_text_properties): Remove unused variables
22299 `unchanged', `prev_changed', `s' and `len'.
22300
22301 * search.c (Freplace_match): Remove unused variable `inslen'.
22302
22303 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
22304
22305 2001-11-22 Jason Rumney <jasonr@gnu.org>
22306
22307 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
22308 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
22309 (my_create_tip_window): New function.
22310 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
22311 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
22312
22313 2001-11-20 Jason Rumney <jasonr@gnu.org>
22314
22315 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
22316 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
22317
22318 * w32fns.c (Vw32_system_coding_system): Remove.
22319 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
22320
22321 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
22322
22323 * fileio.c (Fwrite_region): Move choose_write_coding_system to
22324 after build_annotations.
22325
22326 * syntax.c (describe_syntax): Add dummy arg.
22327 (describe_syntax_1): Update call to describe_vector.
22328
22329 * category.c (describe_category): Add dummy arg.
22330 (describe_category_1): Update call to describe_vector.
22331
22332 * keymap.c (Fdescribe_vector): Add `describer' parameter.
22333 (describe_command, describe_translation): Add dummy second param.
22334 (describe_map): Call elt_describer with two arguments.
22335 (describe_vector_princ): Add `fun' parameter.
22336 Call it instead of the hardcoded `princ'.
22337 (describe_vector): Add arg `args'.
22338 Pass it as a new second argument to elt_describer.
22339
22340 * keymap.h (describe_vector): Update prototype.
22341
22342 * frame.c: Don't include keymap.h any more.
22343 (keys_of_frame): Remove.
22344
22345 * lisp.h (keys_of_frame): Remove declaration.
22346
22347 * emacs.c (main): Don't call `keys_of_frame' any more.
22348
22349 2001-11-14 Andreas Schwab <schwab@suse.de>
22350
22351 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
22352 if defined, 0 otherwise.
22353 (MAP_FAILED): Define if not defined and use it to test mmap failure.
22354 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
22355
22356 2001-11-19 Richard M. Stallman <rms@gnu.org>
22357
22358 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
22359
22360 2001-11-18 Jason Rumney <jasonr@gnu.org>
22361
22362 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
22363 (x_draw_bar_cursor): If the background color of the glyph under
22364 the cursor equals the frame's cursor color, use the glyph's
22365 foreground color for drawing the bar cursor.
22366 (x_after_update_window_line): Clear internal border in different
22367 circumstances.
22368 (w32_set_vertical_scroll_bar): Check for width and height > 0.
22369 (w32_draw_relief_rect): Correct relief by 1 pixel.
22370 (x_set_glyph_string_background_width):
22371 Set extends_to_end_of_line_p if the row's fill_line_p is set and
22372 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
22373 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
22374 if cursor_in_non_selected_windows is false.
22375 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
22376 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
22377 Notice if cursor gets overwritten.
22378 (notice_overwritten_cursor): Renamed from
22379 note_overwritten_text_cursor. Rewritten to take glyph widths
22380 into account, and to take X positions as parameters.
22381 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
22382 around call to x_draw_glyphs.
22383 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
22384 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
22385 color to use for image glyph reliefs.
22386 (x_draw_image_relief): Accept zero tool_bar_button_relief.
22387 (glyph_rect): Remove unused variable `area'.
22388
22389 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
22390 some items.
22391 (x_set_internal_border_width): Set frame garbaged when window
22392 doesn't exist yet.
22393 (Fx_create_frame): Accept zero tool_bar_button_relief.
22394 (x_clear_image_1, four_corners_best, image_background)
22395 (image_background_transparent): New functions.
22396 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
22397 (gs_format): Add `:background' entry.
22398 (lookup_image): Set IMG's background color if specified.
22399 (pbm_load, xbm_load_image, png_load): Set IMG's background field
22400 when appropriate.
22401 (x_clear_image_1): Reset `background_valid' and
22402 `background_transparent_valid' fields.
22403 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
22404 calculating it here. Set IMG's background_transparent field.
22405 (enum xpm_keyword_index): Add XPM_BACKGROUND.
22406 (enum png_keyword_index): Add PNG_BACKGROUND.
22407 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
22408 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
22409 (enum gif_keyword_index): Add GIF_BACKGROUND.
22410 (enum gs_keyword_index): Add GS_BACKGROUND.
22411 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
22412 Pre-calculate image background color where necessary.
22413 (x_create_x_image_and_pixmap, xbm_load, gs_load):
22414 Use display info's n_cbits entry for screen depth.
22415 (Fx_show_tip): Remove unused variables `buffer', `top',
22416 `left', `max_width' and `max_height'.
22417
22418 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
22419
22420 2001-11-18 Gerd Moellmann <gerd@gnu.org>
22421
22422 * puresize.h (BASE_PURESIZE): Increase to 750000.
22423
22424 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22425
22426 * frame.c (Fframe_live_p): Doc fix.
22427
22428 2001-11-18 Richard M. Stallman <rms@gnu.org>
22429
22430 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
22431 (message_dolog_marker3): New static variables hold three markers.
22432 (syms_of_xdisp): Initialize and staticpro them.
22433 (message_dolog): Use message_dolog_marker1..3 instead of
22434 allocating markers each time. Unchain them when done.
22435
22436 2001-11-17 Richard M. Stallman <rms@gnu.org>
22437
22438 * doc.c (Fsnarf_documentation): Doc fix.
22439
22440 2001-11-17 Andreas Schwab <schwab@suse.de>
22441
22442 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
22443
22444 2001-11-17 Richard M. Stallman <rms@gnu.org>
22445
22446 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
22447
22448 2001-11-17 Jason Rumney <jasonr@gnu.org>
22449
22450 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
22451
22452 2001-11-17 Gerd Moellmann <gerd@gnu.org>
22453
22454 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
22455 with invalid position.
22456
22457 2001-11-16 Richard M. Stallman <rms@gnu.org>
22458
22459 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
22460
22461 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
22462 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
22463 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
22464
22465 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
22466
22467 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
22468
22469 * fileio.c (build_annotations): Split off the tail.
22470 (build_annotations_2): New fun. Extracted from build_annotations.
22471 (Fwrite_region): Split the call to build_annotations into two
22472 calls to build_annotations and build_annotations_2.
22473
22474 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22475
22476 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
22477 clear_waiting_for_input with argument.
22478
22479 * xterm.h (x_update_cursor): Remove duplicated prototype.
22480
22481 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
22482
22483 * xterm.c (waiting_for_input): Remove unnecessary declaration.
22484
22485 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
22486
22487 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
22488
22489 * fileio.c (choose_write_coding_system): New fun, extracted
22490 from Fwrite_region.
22491 (Fwrite_region): Use it.
22492
22493 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
22494 (funcall_lambda, run_hook_with_args): Make static and add prototype.
22495 (ml_apply, find_handler_clause): Add prototype.
22496
22497 2001-11-16 Eli Zaretskii <eliz@gnu.org>
22498
22499 * config.in: Add #undef HAVE_COFF_H.
22500
22501 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
22502 Required for ISC 4.1.
22503
22504 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
22505
22506 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
22507 Andrew Wiseman <a.wiseman@btclick.com>.
22508
22509 2001-11-16 Kim F. Storm <storm@cua.dk>
22510
22511 The following changes are made to clean up the various internal
22512 references to the fringes to actually use the term `fringe' for
22513 them. Previously, they were called `flags areas', `bitmap areas',
22514 `left/right side of windows', or implicitly as `flags' or
22515 `bitmaps':
22516
22517 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
22518 Comments fixed. Use renamed symbols.
22519
22520 * dispnew.c: Comment fix. Use renamed symbols.
22521
22522 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
22523 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
22524 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
22525
22526 * msdos.c: Comment fix.
22527
22528 * w32fns.c: Use renamed symbols.
22529
22530 * w32term.c: Comment fixes. Use renamed symbols.
22531 (fringe_bitmap_type): Renamed from bitmap_type.
22532 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
22533 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
22534 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
22535
22536 * w32term.h: Comment fixes. Use renamed symbols.
22537 (fringes_extra): Renamed from flags_areas_extra.
22538 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
22539 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
22540 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
22541 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
22542 (FRAME_X_LEFT_FRINGE_WIDTH):
22543 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
22544 (FRAME_X_RIGHT_FRINGE_WIDTH):
22545 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
22546
22547 * widget.c: Use renamed symbols.
22548
22549 * window.c: Comment fixes. Use renamed symbols.
22550 (coordinates-in-window-p): Doc fix.
22551
22552 * xdisp.c: Comment fixes. Use renamed symbols.
22553
22554 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
22555
22556 * xfns.c: Use renamed symbols.
22557
22558 * xterm.c: Comment fixes. Use renamed symbols.
22559 (fringe_bitmap_type): Renamed from bitmap_type.
22560 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
22561 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
22562 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
22563
22564 * xterm.h: Comment fixes. Use renamed symbols.
22565 (fringes_extra): Renamed from flags_areas_extra.
22566 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
22567 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
22568 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
22569 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
22570 (FRAME_X_LEFT_FRINGE_WIDTH):
22571 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
22572 (FRAME_X_RIGHT_FRINGE_WIDTH):
22573 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
22574
22575 2001-11-15 Jason Rumney <jasonr@gnu.org>
22576
22577 * w32menu.c (add-menu-item): Make help_echo and radio buttons
22578 work for most menu items. From David Ponce
22579 <david.ponce@wanadoo.fr>.
22580
22581 2001-11-15 Gerd Moellmann <gerd@gnu.org>
22582
22583 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
22584 Some x_set_* function expect to be called even if old and new
22585 value are equal.
22586
22587 * xdisp.c (build_desired_tool_bar_string): Accept zero
22588 tool_bar_button_relief.
22589
22590 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
22591
22592 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
22593
22594 * xterm.c (x_draw_bar_cursor): If the background color of the
22595 glyph under the cursor equals the frame's cursor color, use
22596 the glyph's foreground color for drawing the bar cursor.
22597
22598 * dispnew.c (direct_output_forward_char): Fix character/byte
22599 position comparison.
22600
22601 2001-11-15 Miles Bader <miles@gnu.org>
22602
22603 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
22604 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
22605 Update arguments to find_field.
22606 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
22607 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
22608 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
22609 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
22610
22611 2001-11-14 Richard M. Stallman <rms@gnu.org>
22612
22613 * editfns.c (Fpropertize): Allow call with 1 arg.
22614
22615 * dispextern.h (image_background, image_background_transparent):
22616 Conditionalize on HAVE_X_WINDOWS.
22617
22618 2001-11-13 Richard M. Stallman <rms@gnu.org>
22619
22620 * print.c (Fprin1_to_string): Doc fix.
22621
22622 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
22623
22624 * floatfns.c (Fceiling, Ffloor): Doc fixes.
22625
22626 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
22627
22628 * fileio.c (Ffile_accessible_directory_p): Doc fix.
22629
22630 * eval.c (syms_of_eval): Doc fix.
22631
22632 * coding.c (syms_of_coding): Doc fix.
22633
22634 * doc.c (Fsnarf_documentation): Doc fix.
22635
22636 * dispnew.c (syms_of_display): Doc fix.
22637
22638 * category.c (Fget_unused_category): Doc fix.
22639
22640 * buffer.c (syms_of_buffer): Doc fixes.
22641
22642 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
22643
22644 * print.c (prin1, print): Doc fix.
22645
22646 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22647
22648 * fontset.h: Remove declarations of variables
22649 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
22650
22651 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
22652 `Vclip_large_size_font'.
22653
22654 2001-11-13 Jason Rumney <jasonr@gnu.org>
22655
22656 * w32fns.c: Doc fix.
22657
22658 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22659
22660 * xfaces.c (Fface_attributes_as_vector): Doc fix.
22661
22662 * fns.c: Doc fix.
22663
22664 * emacs.c: Doc fix.
22665
22666 * coding.c: Doc fix.
22667
22668 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
22669 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
22670 `new style' [w/`doc:' keyword].
22671
22672 2001-11-12 Richard M. Stallman <rms@gnu.org>
22673
22674 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
22675 LeaveNotify events. Only FocusIn and FocusOut do that now.
22676 (x_display_and_set_cursor): Do display hollow cursors in active
22677 minibuffer windows when they are not selected.
22678
22679 2001-11-12 Jason Rumney <jasonr@gnu.org>
22680
22681 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
22682 * w32term.c: Change doc-string comments to `new style'
22683 [w/`doc:' keyword]. Doc fixes.
22684
22685 * w32fns.c: Don't define max.
22686 (Fx_open_connection): Only execute once.
22687
22688 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22689
22690 * ccl.c: Change macros to use do-while block instead of if-else.
22691 Use braces to follow GNU Coding Standards.
22692
22693 2001-11-11 Richard M. Stallman <rms@gnu.org>
22694
22695 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
22696
22697 * lread.c (read_escape): Use end_of_file_error for reporting eof.
22698
22699 * insdel.c (replace_range): Use adjust_markers_for_replace
22700 instead of adjust_markers_for_delete and adjust_markers_for_insert.
22701
22702 * intervals.h (set_text_properties, set_text_properties_1): Declare.
22703
22704 * textprop.c (set_text_properties_1): New subroutine
22705 broken out of set_text_properties.
22706 (set_text_properties): Use set_text_properties_1.
22707
22708 * intervals.c (graft_intervals_into_buffer):
22709 Use set_text_properties_1 to clear out properties.
22710
22711 * search.c (Freplace_match): Use replace_range to insert
22712 and delete. Don't request property inheritance from
22713 surrounding text.
22714
22715 2001-11-10 Jason Rumney <jasonr@gnu.org>
22716
22717 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
22718 vertical fonts. Allow them if face name is explicitly specified.
22719 Do not give up if we find a font that cannot be converted to an xlfd.
22720
22721 2001-11-10 Gerd Moellmann <gerd@gnu.org>
22722
22723 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
22724 instead of malloc/free.
22725
22726 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22727
22728 * xfaces.c (merge_face_vectors): Use braces to follow GNU
22729 Coding Standards.
22730 (Finternal_set_lisp_face_attribute): Likewise.
22731
22732 * buffer.c (Fbury_buffer): Likewise.
22733
22734 * indent.c (current_column_1): Remove unused variable `prev_col'.
22735
22736 * coding.c (encode_coding): Use precomputed value of `src'.
22737 (encode_coding): Remove unused variable `src_end'.
22738 (code_convert_region): Remove unused variables `count'.
22739
22740 2001-11-07 Jason Rumney <jasonr@gnu.org>
22741
22742 * w32term.c (x_display_and_set_cursor): Do not move system caret
22743 if cursor_glyph is NULL.
22744
22745 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22746
22747 * keymap.c (access_keymap): Fix compilation error.
22748
22749 2001-11-07 Miles Bader <miles@gnu.org>
22750
22751 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
22752
22753 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22754
22755 * intervals.c (graft_intervals_into_buffer):
22756 Remove #ifdef'd-out code.
22757 (graft_intervals_into_buffer): Remove unused variable `middle'.
22758
22759 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
22760 code (eval-current-buffer).
22761 Change doc-string comments to `new style' [w/`doc:' keyword].
22762
22763 2001-11-06 Richard M. Stallman <rms@gnu.org>
22764
22765 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
22766
22767 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
22768
22769 * lread.c (read1): Fix behavior with nested backquoting.
22770
22771 * keyboard.c (make_lispy_event): Check integerness and fix
22772 Lisp_Object/int mixup.
22773
22774 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22775
22776 * fns.c (copy_hash_table): Remove unused variable `v'.
22777
22778 * fontset.c (fontset_font_pattern): Remove unused variable
22779 `family_registry'.
22780
22781 * indent.c (current_column_1): Remove unused variable `prev_col'.
22782
22783 2001-11-05 Richard M. Stallman <rms@gnu.org>
22784
22785 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
22786
22787 * buffer.c (Fkill_buffer): Don't delete auto save file
22788 if buffer is modified.
22789
22790 2001-11-05 Andrew Innes <andrewi@gnu.org>
22791
22792 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
22793 CHECK_NUMBER_CDR.
22794
22795 2001-11-05 Richard M. Stallman <rms@gnu.org>
22796
22797 * unexelf.c (unexec): Minor changes; clean up comments.
22798
22799 2001-11-05 Sam Steingold <sds@gnu.org>
22800
22801 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
22802
22803 2001-11-05 Andreas Schwab <schwab@suse.de>
22804
22805 * sound.c (sound_perror): Save errno from being clobbered.
22806
22807 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
22808
22809 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
22810 the program image directly.
22811
22812 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22813
22814 * buffer.h (Fbuffer_local_value): Add prototype.
22815
22816 2001-11-04 Richard M. Stallman <rms@gnu.org>
22817
22818 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
22819 and CHECK_BUFFER.
22820
22821 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
22822 (record_char): Likewise.
22823
22824 * keyboard.c (make_lispy_event): Don't insist a drag event must
22825 move to a different buffer position. Instead, check for moving at
22826 least double_click_fuzz.
22827
22828 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
22829
22830 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
22831
22832 * indent.c (current_column_1, Fmove_to_column): Separate the code
22833 for display-table glyphs from the code for buffer text, to fix
22834 bugs in the former.
22835
22836 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
22837
22838 * buffer.c (Fbuffer_local_value): New function.
22839 (syms_of_buffer): Defsubr it.
22840
22841 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
22842 value of `cursor-in-non-selected-windows'.
22843
22844 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
22845 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
22846 (syms_of_xdisp): Initialize it.
22847
22848 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22849
22850 * xfns.c (Fx_create_frame): Doc fix.
22851
22852 * coding.c: Change doc-string comments to `new style' [w/`doc:'
22853 keyword].
22854
22855 * eval.c (top_level_value, top_level_set): Remove commented and
22856 #ifdef'd-out code.
22857 (Fdefvar): Fix usage in doc-string.
22858
22859 2001-11-03 Richard M. Stallman <rms@gnu.org>
22860
22861 * xfns.c: Include unistd.h, if it exists.
22862
22863 * editfns.c: Move the include of ctype.h after unistd.h.
22864
22865 * gmalloc.c: Test BROKEN_PROTOTYPES.
22866
22867 2001-11-03 Ken Raeburn <raeburn@gnu.org>
22868
22869 * lisp.h (CHECK_STRING_CAR): New macro.
22870 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
22871 treating XCAR and XCDR as lvalues.
22872 (openp): Use CHECK_STRING_CAR.
22873 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
22874
22875 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
22876
22877 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
22878 (SIGMASKTYPE): Define.
22879
22880 * syssignal.h (sigunblock): Don't define if already defined.
22881
22882 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22883
22884 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
22885 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
22886 Fix typos in comments.
22887
22888 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
22889 and #ifdef'd-out code.
22890 Fix and reindent comments.
22891
22892 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
22893
22894 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
22895 argument `i' in macros.
22896
22897 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
22898 `i' in macros.
22899
22900 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
22901 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
22902 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
22903 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
22904 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
22905 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
22906 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
22907 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
22908 in macros.
22909
22910 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22911 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
22912 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
22913 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
22914 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
22915 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
22916 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
22917 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
22918 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
22919 (remove unused second argument).
22920
22921 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
22922
22923 * syntax.c (describe_syntax): New wrapper.
22924 (Finternal_describe_syntax_value): Rename from describe_syntax.
22925 Don't insert space at front and \n at the end.
22926 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
22927
22928 * regex.c (re_wctype): Try to fix some warnings.
22929 (regcomp, regexec): Don't forget the __restrict.
22930
22931 2001-11-02 Richard M. Stallman <rms@gnu.org>
22932
22933 * textprop.c (Fget_char_property): Doc fix.
22934
22935 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22936
22937 * process.c (Fstart_process): Add usage to doc-string.
22938
22939 * data.c (Fsetq_default): Ditto.
22940
22941 * callint.c (Finteractive): Ditto.
22942
22943 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
22944
22945 * macros.c: Don't include keymap.h any more.
22946
22947 2001-11-01 Richard M. Stallman <rms@gnu.org>
22948
22949 * data.c (Fmake_local_variable): Doc fix.
22950
22951 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
22952 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
22953
22954 * keymap.c (Fdescribe_buffer_bindings): Print character property
22955 bindings along with or instead of the buffer local map.
22956 Make the overriding maps override what they should.
22957
22958 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22959
22960 * window.c (grow_mini_window): Fix typo in comment.
22961
22962 2001-11-01 Gerd Moellmann <gerd@gnu.org>
22963
22964 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
22965 (XTset_vertical_scroll_bar): Likewise.
22966
22967 * xfns.c (x_build_heuristic_mask): Use four_corners_best
22968 instead of IMAGE_BACKGROUND.
22969
22970 * xfns.c (four_corners_best): Reindent.
22971
22972 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
22973 Handle :box so that it is possible to specify sexprs.
22974
22975 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
22976
22977 * s/hpux11.h: New file.
22978
22979 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22980
22981 * emacs.c (USAGE1): Show command line option --no-window-system
22982 instead of --no-windows in usage.
22983 (standard_args): Rename --no-windows to --no-window-system.
22984 (bug_reporting_address): Follow Emacs coding conventions.
22985
22986 * eval.c (Fcommandp): Doc fix.
22987 Change doc-string comments to `new style' [w/`doc:' keyword].
22988
22989 * frame.c (Fframe_live_p): Doc fix.
22990
22991 * buffer.c (selective-display-ellipses): Doc fix.
22992
22993 2001-10-31 Gerd Moellmann <gerd@gnu.org>
22994
22995 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
22996
22997 * xfaces.c (realize_x_face): If C is not a single-byte character,
22998 set the face's colors_copied_bitwise_p instead of the defaulted_p
22999 members which have a different meaning.
23000 (free_face_colors): Do nothing for a face whose colors have been
23001 copied bitwise.
23002
23003 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
23004
23005 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23006
23007 * marker.c, mocklisp.c: Change doc-string comments to `new style'
23008 [w/`doc:' keyword].
23009
23010 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23011
23012 * fns.c (require_unwind): Return Lisp_Object.
23013
23014 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23015
23016 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
23017 (last-input-char): Revert doc-string to be the same as the
23018 doc-string of `last-input-event'.
23019
23020 * xdisp.c: Fix typos in comments.
23021
23022 2001-10-31 Gerd Moellmann <gerd@gnu.org>
23023
23024 * window.c (grow_mini_window): Handle case that the root
23025 window is already smaller than the nominal mininum height.
23026
23027 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
23028
23029 * emacs.c (main): Don't call keys_of_macros any more.
23030
23031 * lisp.h (keys_of_macros): Remove.
23032
23033 * macros.c (keys_of_macros): Remove.
23034
23035 * xfaces.c (Fface_attribute_relative_p): Declare args.
23036
23037 2001-10-30 Jason Rumney <jasonr@gnu.org>
23038
23039 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
23040 (enum_font_cb2): Ignore fonts with vertical orientation.
23041
23042 2001-10-30 Richard M. Stallman <rms@gnu.org>
23043
23044 * keyboard.c (Finput_pending_p): Doc fix.
23045
23046 2001-10-30 Gerd Moellmann <gerd@gnu.org>
23047
23048 * xterm.c (x_after_update_window_line): Don't run the code
23049 clearing in borders for rows whose visible height is 0.
23050
23051 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
23052 resized_p flag is set. If not set, use the much less flickering
23053 method previously used.
23054
23055 * dispnew.c (change_frame_size_1): Set frame's resized_p.
23056
23057 * frame.h (struct frame) <resized_p>: New member.
23058
23059 * lread.c (to_multibyte): Ensure read_buffer is at least twice
23060 as large as the number of bytes to convert.
23061
23062 * lread.c (to_multibyte): New function.
23063 (read1): Use it.
23064
23065 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
23066
23067 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
23068
23069 2001-10-30 Gerd Moellmann <gerd@gnu.org>
23070
23071 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
23072 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
23073 if the row's fill_line_p is set and drawing the last glyph with
23074 DRAW_IMAGE_{RAISED,SUNKEN}.
23075
23076 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
23077
23078 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
23079
23080 * xmenu.c: Include coding.h and charset.h.
23081 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
23082 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
23083 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
23084 Explicitly set wv->help. Use `TRUE' rather than `True'.
23085 (menu_help_callback): Use empty_string.
23086
23087 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
23088 (Fx_popup_dialog): Explicitly init f.
23089 (w32_menu_display_help): Use empty_string.
23090
23091 2001-10-29 Richard M. Stallman <rms@gnu.org>
23092
23093 * fns.c (Frequire): Detect recursive try to require the same
23094 feature 3 or more levels deep, and get error.
23095 (require_unwind): New subroutine.
23096 (require_nesting_list): New variable.
23097 (syms_of_fns): Init and staticpro it.
23098
23099 * print.c (print_object): Clarify indication of insertion type.
23100
23101 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
23102
23103 * coding.c (syms_of_coding): Document that locale-coding-system is
23104 used for decoding input on X.
23105
23106 * window.c (Fscroll_left, Fscroll_right): Doc fix.
23107
23108 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23109
23110 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
23111 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
23112
23113 2001-10-29 Gerd Moellmann <gerd@gnu.org>
23114
23115 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
23116 use NO_CURSOR if cursor_in_non_selected_windows is false.
23117
23118 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
23119 the slant attribute if FRAME is t.
23120
23121 * xfns.c (x_set_internal_border_width): Set frame garbaged
23122 when X window doesn't exist yet.
23123
23124 * xterm.c (x_after_update_window_line): Clear internal border
23125 in different circumstances.
23126
23127 * xterm.c (XTread_socket) <KeyPress>: Don't use
23128 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
23129 <handa@etl.go.jp>.
23130
23131 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
23132
23133 * m/ibms390.h: New file. From Adam Thornton
23134 <athornton@sinenomine.net>.
23135
23136 2001-10-28 Gerd Moellmann <gerd@gnu.org>
23137
23138 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
23139
23140 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
23141 a loop counter.
23142
23143 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23144
23145 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
23146
23147 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
23148 keyword].
23149 Fix typos in comments.
23150
23151 * emacs.c (bug_reporting_address): New function.
23152 Use it when displaying usage message.
23153
23154 * minibuf.c (read_minibuf): Remove unused external declaration of
23155 variable `Qread_only'.
23156
23157 * keymap.c (access_keymap): Remove unused variable `charset'.
23158
23159 2001-10-28 Miles Bader <miles@gnu.org>
23160
23161 * xfaces.c (merge_face_heights): Handle TO being relative as well.
23162 Remove #ifdef'd-out code.
23163 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
23164 (syms_of_xfaces): Initialize them.
23165
23166 2001-10-27 Jason Rumney <jasonr@gnu.org>
23167
23168 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
23169 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
23170 position using the system caret.
23171
23172 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
23173 (w32_system_caret_height, w32_system_caret_x)
23174 (w32_system_caret_y): New variables for tracking system caret.
23175 (w32_initialize): Initialize them.
23176 (x_display_and_set_cursor): Make system caret follow the active cursor.
23177
23178 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
23179 New messages types.
23180
23181 * w32term.c (note_mouse_highlight): Clear old help_echo.
23182
23183 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23184
23185 * xterm.c: Fix typo in a comment.
23186
23187 * emacs.c: Fix typos in comments.
23188 Remove unnecessary spaces.
23189 Change doc-string comments to `new style' [w/`doc:' keyword].
23190 (USAGE2): Fix typos in usage string.
23191
23192 * xterm.c: Fix typo in a comment.
23193
23194 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
23195 emacs.c.
23196
23197 2001-10-27 Gerd Moellmann <gerd@gnu.org>
23198
23199 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
23200 instead of 1/2 line_height in the heuristic for skipping
23201 farther backward when target_y was not reached.
23202
23203 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
23204 Display errno only if non-zero.
23205 (sound_warning): New function.
23206 (vox_configure): Don't treat failing to set sample rate as error.
23207 (various places): Improve error messages.
23208
23209 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
23210
23211 * fileio.c (Faccess_file): Run the argument filename through
23212 Fexpand_file_name, before using it.
23213
23214 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
23215 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
23216
23217 2001-10-26 Gerd Moellmann <gerd@gnu.org>
23218
23219 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
23220
23221 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
23222 Fix clearing in the case of scroll bars on the right.
23223
23224 2001-10-26 Juanma Barranquero <lektu@terra.es>
23225
23226 * w32gui.h (XImage): Add a dummy typedef.
23227
23228 2001-10-26 Gerd Moellmann <gerd@gnu.org>
23229
23230 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
23231
23232 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
23233
23234 * frame.c (Fframe_parameter): Fix last change.
23235
23236 * fileio.c: Revert last change (which removed old commented-out
23237 version of expand-file-name). Add a comment that explains why
23238 this old version should not be removed.
23239
23240 2001-10-25 Gerd Moellmann <gerd@gnu.org>
23241
23242 * frame.c (Fframe_parameter): Fix a bug whereby some
23243 ``artificial'' frame parameters, like `minibuffer' were not
23244 obtained by calling Fframe_parameters.
23245
23246 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
23247 cursor differently.
23248
23249 * xdisp.c (move_it_vertically_backward): Compute line height
23250 differently. Add heuristic to try to be more compatible to 20.x.
23251
23252 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
23253
23254 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
23255
23256 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
23257 boolean.
23258
23259 2001-10-25 Miles Bader <miles@gnu.org>
23260
23261 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
23262 BG is a pointer to a structure, not a structure.
23263 (gif_format, png_format): Add missing commas.
23264
23265 2001-10-24 Richard M. Stallman <rms@gnu.org>
23266
23267 * xfaces.c (Fface_attributes_as_vector): New function.
23268 (syms_of_xfaces): Defsubr it.
23269
23270 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23271
23272 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
23273 variable `area'.
23274
23275 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23276
23277 * search.c (scan_newline): Remove unused variable `selective_display'.
23278
23279 2001-10-25 Miles Bader <miles@gnu.org>
23280
23281 * dispextern.h (struct image): Add `background',
23282 `background_valid', and `background_transparent' fields.
23283 (image_background, image_background_transparent): New declarations.
23284 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
23285 * xfns.c (image_background, image_background_transparent)
23286 (four_corners_best): New functions.
23287 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
23288 (gs_format): Add `:background' entry.
23289 (lookup_image): Set IMG's background color if specified.
23290 (pbm_load, xbm_load_image, png_load): Set IMG's background field
23291 when appropriate.
23292 (x_clear_image_1): Reset `background_valid' and
23293 `background_transparent_valid' fields.
23294 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
23295 calculating it here. Set IMG's background_transparent field.
23296 (enum xpm_keyword_index): Add XPM_BACKGROUND.
23297 (enum png_keyword_index): Add PNG_BACKGROUND.
23298 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
23299 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
23300 (enum gif_keyword_index): Add GIF_BACKGROUND.
23301 (enum gs_keyword_index): Add GS_BACKGROUND.
23302 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
23303 Pre-calculate image background color where necessary.
23304 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
23305 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
23306 color to use for image glyph reliefs.
23307
23308 2001-10-24 Gerd Moellmann <gerd@gnu.org>
23309
23310 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
23311 in full-width rows.
23312
23313 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
23314 Fix clearing of area not covered by scroll bar.
23315
23316 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23317
23318 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
23319 and `real_start'.
23320 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
23321 (glyph_rect): Remove unused variable `area'.
23322
23323 2001-10-24 Gerd Moellmann <gerd@gnu.org>
23324
23325 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
23326
23327 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
23328 (row_containing_pos): Take additional argument DY.
23329 Treat rows ending in middle of char differently.
23330 (display_line): Handle tabs on window systems differently.
23331
23332 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
23333 with additional argument.
23334
23335 * dispextern.h (row_containing_pos): Adjust prototype.
23336
23337 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
23338 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
23339 (try_window_id, try_window_reusing_current_matrix)
23340 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
23341 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
23342
23343 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23344
23345 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
23346 gnuemacs).
23347 (HAVE_BOXES): Fix typo in comment.
23348 (push_menu_pane): Fix typo in comment.
23349
23350 * xdisp.c (display_prop_string_p): Remove unused local declaration
23351 of `Qwhen'.
23352 (single_display_prop_string_p): Remove unused local declarations
23353 of `Qwhen' and `Qmargin'.
23354 (string_buffer_position): Remove unused variable `around'.
23355 (store_frame_title): Remove unused variable `width'.
23356
23357 * window.c: Don't define max.
23358 (coordinates_in_window): Remove unused variable `uy'.
23359
23360 * widget.c: Don't define max.
23361
23362 * process.c: Don't define max.
23363 (create_process): Remove unused variable `buffer'.
23364
23365 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23366
23367 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
23368
23369 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
23370
23371 * xfaces.c (Finternal_set_lisp_face_attribute)
23372 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
23373 frame is on a windowed display.
23374
23375 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23376
23377 * dispnew.c (sync_window_with_frame_matrix_rows):
23378 Fix handling of windows which aren't full-width, fix handling
23379 of marginal areas.
23380
23381 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
23382
23383 2001-10-23 Andreas Schwab <schwab@suse.de>
23384
23385 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
23386 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
23387
23388 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23389
23390 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
23391 REAL_END. Notice if cursor gets overwritten.
23392 (notice_overwritten_cursor): Take X positions as parameters.
23393 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
23394 around call to x_draw_glyphs.
23395
23396 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23397
23398 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
23399 instead of C) and usage.
23400
23401 * editfns.c (char-to-string): Fix argument names (use CHAR instead
23402 of C) and usage.
23403
23404 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
23405 `left', `max_width' and `max_height'.
23406
23407 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23408
23409 * xdisp.c (display_line): For a tab continued to the next line,
23410 set row's ends_in_middle_of_char_p.
23411
23412 2001-10-22 Gerd Moellmann <gerd@gnu.org>
23413
23414 * xdisp.c (display_line): Fix computation of continuation lines
23415 width for TABs.
23416
23417 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23418
23419 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
23420 `Qlaplace'.
23421
23422 * fileio.c: Remove unused code.
23423
23424 2001-10-22 Miles Bader <miles@gnu.org>
23425
23426 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
23427 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
23428 Remove `DOC_STRINGS_IN_COMMENTS' cases.
23429
23430 2001-10-21 Jason Rumney <jasonr@gnu.org>
23431
23432 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
23433
23434 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
23435
23436 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
23437 (Finsert_string): Avoid the multi-line string literals warning.
23438
23439 2001-10-22 Miles Bader <miles@gnu.org>
23440
23441 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
23442 (Fdocumentation): Don't use it.
23443 (syms_of_doc): Don't initialize it.
23444
23445 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
23446 * print.c (Fwith_output_to_temp_buffer): Likewise.
23447 * window.c (Fsave_window_excursion): Likewise.
23448 * editfns.c (Fsave_excursion, Fsave_current_buffer)
23449 (Fsave_restriction): Likewise.
23450 * eval.c (Frun_hooks, Frun_hook_with_args)
23451 (Frun_hook_with_args_until_failure)
23452 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
23453 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
23454 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
23455 (Funwind_protect, Fcondition_case): Likewise.
23456 * coding.c (Ffind_operation_coding_system): Likewise.
23457 * keyboard.c (Ftrack_mouse): Likewise.
23458
23459 2001-10-21 Miles Bader <miles@gnu.org>
23460
23461 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
23462 (Fmake_hash_table): Add usage: string to doc string.
23463 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
23464 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
23465 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
23466 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
23467 (Fml_prefix_argument_loop): Likewise.
23468
23469 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23470
23471 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
23472
23473 * sysdep.c (init_sys_modes): Change doc-string comments to `new
23474 style' [w/`doc:' keyword].
23475
23476 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
23477 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
23478 comments to `new style' [w/`doc:' keyword].
23479
23480 2001-10-21 Jason Rumney <jasonr@gnu.org>
23481
23482 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
23483
23484 * w32term.c (remember_mouse_glyph): New function.
23485 (w32_mouse_position): Use it.
23486 (note_mouse_movement): If the mouse moved off the glyph, remember
23487 its new position.
23488
23489 * w32term.h (struct w32_output): Correct spelling of x_compatible.
23490 (w32_display_info): Add mouse_face_overlay.
23491
23492 * w32term.c (notice_overwritten_cursor): Renamed from
23493 note_overwritten_text_cursor. Rewritten to take glyph widths into
23494 account.
23495 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
23496 (fast_find_string_pos): New function.
23497 (fast_find_position): Return the correct vpos. Add parameter
23498 STOP. In the final row, stop before glyphs having STOP as object.
23499 Don't consider glyphs that are not from a buffer.
23500 (fast_find_position) [0]: Add a presumably more correct version
23501 for after 21.1.
23502 (expose_window_tree, expose_frame): Don't compute intersections here.
23503 (expose_window): Do it here instead.
23504 (expose_window_tree, expose_window, expose_line): Return 1 when
23505 overwriting mouse-face.
23506 (expose_window): If W is the window currently being updated, mark
23507 the frame garbaged.
23508 (expose_frame): If mouse-face was overwritten, redo it.
23509 (x_use_underline_position_properties): New variable.
23510 (syms_of_xterm): DEFVAR_BOOL it.
23511 (x_draw_glyph_string): Add comment to use it in future.
23512 (x_draw_glyph_string): Restore clipping after drawing box.
23513 Fix a computation of the underline position.
23514 (w32_get_glyph_string_clip_rect): Minor cleanup.
23515 (x_fill_stretch_glyph_string): Remove an assertion.
23516 (x_produce_glyphs): Don't convert multibyte characters
23517 to unibyte characters in unibyte buffers.
23518 (cursor_in_mouse_face_p): New function.
23519 (x_draw_stretch_glyph_string): Use it to choose a different GC
23520 when drawing a cursor within highlighted text. Don't draw
23521 background again if it has already been drawn.
23522 (x_draw_glyph_string_box): Don't draw a full-width
23523 box just because the glyph row's full_width_p flag is set.
23524 (x_draw_glyphs): Fix computation of rightmost x for
23525 full-width rows.
23526 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
23527 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
23528 change bottom shadow accordingly. Some cleanup.
23529 (x_update_window_end): Handle overwritten mouse face
23530 also for tool bar windows.
23531 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
23532 DRAW is DRAW_IMAGE_RAISED.
23533 (clear_mouse_face): Return 1 if text with mouse face was
23534 actually redrawn. Make the function static.
23535 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
23536 optimize away highlighting if we pass over that same overlay again.
23537 (note_mouse_highlight): Call mouse_face_overlay_overlaps
23538 to detect a case where we have to highlight a different region
23539 despite not having left the currently highlighted region.
23540 Set mouse_face_overlay in the x_display_info. Avoid changing the
23541 mouse pointer shape when show_mouse_face has already done it, or
23542 there is no need. Handle mouse-face and help-echo in strings.
23543 (glyph_rect): New function.
23544 (w32_mouse_position): Use it to raise the threshold for mouse
23545 movement event generation.
23546 (w32_initialize_display_info): Initialize the x_display_info's
23547 mouse_face_overlay.
23548 (w32_set_vertical_scroll_bar): Don't clear a zero height
23549 or width area.
23550 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
23551 a widget to zero height.
23552
23553 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
23554 Protect unibyte strings created by replacing their multibyte
23555 equivalents in menu_items.
23556 (w32_menu_show): Don't overwrite an item's name with its key
23557 description in case the description is a multibyte string.
23558 (single_submenu): Some cleanup.
23559
23560 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
23561 (postprocess_image): New function.
23562 (lookup_image): Call it for all image types except PostScript.
23563 (x_kill_gs_process): Call postprocess_image.
23564 (tiff_error_handler, tiff_warning_handler): New functions.
23565 (tiff_load): Install them as handlers.
23566 (x_kill_gs_process): Recognize if someone has cleared the image
23567 cache under us.
23568 (valid_image_p): Protect better against invalid image
23569 specifications. Previous code could signal an error.
23570 (Fx_hide_tip, Fshow_tip): Doc fix.
23571 (Fv_max_tooltip_size): New variable.
23572 (syns_of_xfns): DEFVAR_LISP it.
23573 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
23574 window buffer to *tip* right after creating the frame. Set frame's
23575 window_width. Use a maximum tooltip size specified by
23576 Vx_max_tooltip_size, if that has valid contents.
23577 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
23578 Make sure the tooltip is completely visible.
23579 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
23580 (Fx_create_frame): Adjust the frame's height for presence
23581 of the tool bar before calling x_figure_window_size.
23582 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
23583 when the window gets smaller.
23584 (x_set_foreground_color): Set frame's cursor_pixel.
23585 (x_set_foreground_color, x_set_background_color): Cleaned up.
23586 (x_set_font): Handle case of x_new_fontset returning the same name
23587 as before, although there was a change in fontsets.
23588
23589 2001-10-21 Miles Bader <miles@gnu.org>
23590
23591 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
23592 (Flogxor): Add usage: string to doc string.
23593 * charset.c (Fstring): Likewise.
23594 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
23595 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
23596
23597 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23598
23599 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
23600
23601 * alloc.c: Reindent DEFUNs with doc: keywords.
23602
23603 * abbrev.c (Finsert_abbrev_table_description): Reindent.
23604
23605 * frame.c: Change doc-string comments to `new style' [w/`doc:'
23606 keyword].
23607
23608 See ChangeLog.9 for earlier changes.
23609
23610 ;; Local Variables:
23611 ;; coding: iso-2022-7bit
23612 ;; End:
23613
23614 Copyright (C) 2001, 2002, 2003, 2004, 2005,
23615 2006 Free Software Foundation, Inc.
23616 Copying and distribution of this file, with or without modification,
23617 are permitted provided the copyright notice and this notice are preserved.
23618
23619 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4