(conv_lisp_to_sockaddr): Fix previous change.
[bpt/emacs.git] / src / ChangeLog
1 2006-04-12 Richard Stallman <rms@gnu.org>
2
3 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
4 (Fprocess_send_eof): Abort if fail to open null device.
5
6 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7
8 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
9
10 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
11 assignment used as truth value. Add explicit braces to avoid
12 ambiguous `else'.
13 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
14
15 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
16 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
17 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
18 Put externs in #ifdef HAVE_X_WINDOWS.
19 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
20 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
21 (init_mac_osx_environment) [MAC_OSX]: Add extern.
22
23 * mac.c (init_process): Remove undef.
24 (select) [MAC_OSX]: Undefine before including sysselect.h.
25 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
26 Remove functions and prototypes.
27 (parse_value): Add parentheses around + inside shift.
28 (path_from_vol_dir_name): Make static.
29 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
30 [!MAC_OSX] (get_path_to_system_folder): Likewise.
31 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
32 variable `cCode'.
33 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
34 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
35
36 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
37 (x_set_mouse_color): Remove unused variable `dpy'.
38 (Fx_create_frame): Remove unused variable `x_frame_count'.
39 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
40 (x_sync): Move from macterm.c.
41 (Fx_file_dialog): Remove unused variable `default_filter_index'.
42
43 * macmenu.c (min_menu_id): Make element type explicit.
44
45 * macselect.c (get_flavor_type_from_symbol): Remove unused
46 variable `val'.
47 (get_scrap_private_timestamp, x_get_foreign_selection)
48 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
49 (Fmac_process_deferred_apple_events): Remove unused variables
50 `keyword', `reply', `apple_event', `count', and `err'.
51
52 * macterm.c: Don't include gnu.h.
53 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
54 (x_sync): Move to macfns.c.
55 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
56 variable `mask_bits'.
57 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
58 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
59 (x_mac_to_emacs_modifiers): Remove function.
60 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
61 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
62 Add explicit braces to avoid ambiguous `else'.
63 (x_make_frame_visible): Remove unused variables `type',
64 `original_top', and `original_left'.
65 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
66 (x_load_font): Remove unused variables `full_name', and `value'.
67 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
68 Remove functions.
69 (do_zoom_window): Reorganize variables with respect to conditionals.
70 (init_command_handler): Remove unused variable `err'.
71 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
72
73 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
74 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
75 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
76 (do_menu_choice, have_menus_p, x_real_positions)
77 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
78 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
79 (free_frame_menubar): Add externs.
80
81 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
82 (malloc, realloc, free): Add undefs.
83 (read_load_commands): Remove unused variable `n' and `j'.
84 (copy_data_segment): Remove unused variable `r'.
85
86 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
87 within ||. Add explicit braces to avoid ambiguous `else'.
88 (dump_glyph_row): Remove label for `inverse_p' from legend.
89
90 * xfaces.c (Finternal_merge_in_global_face, try_font_list): Add
91 explicit braces to avoid ambiguous `else'.
92
93 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org> (tiny change)
94
95 * dispnew.c (init_display): Don't init X display if the user asked
96 for a non-X display.
97
98 2006-04-12 Kenichi Handa <handa@m17n.org>
99
100 * coding.c (setup_coding_system): Use system_eol_type for default
101 coding->eol_type.
102
103 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
104
105 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
106
107 * data.c (wrong_type_argument): Try to avoid compiler warnings due
108 to the fact the function is now marked as NO_RETURN.
109
110 2006-04-10 Eli Zaretskii <eliz@gnu.org>
111
112 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
113
114 2006-04-10 Romain Francoise <romain@orebokech.com>
115
116 * xrdb.c (gethomedir): Use xstrdup.
117
118 2006-04-10 Andreas Schwab <schwab@suse.de>
119
120 * xrdb.c (gethomedir): Make sure to always return a pointer that
121 can be passed to free.
122
123 2006-04-09 Richard Stallman <rms@gnu.org>
124
125 * lisp.h (Fkill_emacs): Undo previous change.
126
127 2006-04-08 Richard Stallman <rms@gnu.org>
128
129 * search.c (boyer_moore): Test ch >= 0400, not >.
130
131 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
132
133 * puresize.h (pure_write_error): Mark as NO_RETURN.
134
135 * lisp.h (args_out_of_range, args_out_of_range_3)
136
137 2006-04-08 Eli Zaretskii <eliz@gnu.org>
138
139 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
140 if a menu is active on this frame.
141
142 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
143
144 * lisp.h (report_file_error): Mark as NO_RETURN.
145
146 2006-04-08 Eli Zaretskii <eliz@gnu.org>
147
148 * alloc.c [STDC_HEADERS]: Include stddef.h.
149
150 * lisp.h (PSEUDOVECSIZE): Fix last change.
151
152 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
153
154 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
155 `raw_status_high', and `raw_status_low' with plain integers, and move
156 them to the end of the structure.
157
158 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
159 pseudovector's size field so only the Lisp_Object fields get GC'd.
160
161 * process.c (update_status, make_process, Fdelete_process)
162 (Fprocess_status, list_processes_1, start_process_unwind)
163 (create_process, Fmake_network_process, server_accept_connection)
164 (wait_reading_process_output, send_process, Fprocess_running_child_p)
165 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
166 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
167 `pid' and `raw_status'.
168 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
169 representing PIDs that are larger than most-positive-fixnum.
170
171 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
172
173 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
174
175 2006-04-08 Eli Zaretskii <eliz@gnu.org>
176
177 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
178
179 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
180
181 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
182 ../lib-src/b2m.c and ../lib-src/editfns.c.
183 (Fcurrent_time_string): Use it.
184 Document that the year might not consume 4 columns if it's outside
185 the range 1000-9999.
186 Check for asctime failure.
187 Don't assume that the output string length is always exactly 24.
188
189 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
190
191 * macterm.c (XTread_socket): Initialize variable `f' before its use.
192
193 2006-04-03 Kenichi Handa <handa@m17n.org>
194
195 * image.c: Include "charset.h" and "coding.h".
196 (x_find_image_file): Return an encoded file name.
197
198 2006-04-01 Eli Zaretskii <eliz@gnu.org>
199
200 * configure: Regenerated.
201
202 2006-03-31 Kenichi Handa <handa@m17n.org>
203
204 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
205
206 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
207
208 * xdisp.c (syms_of_xdisp): Fix variable name.
209
210 2006-03-30 Kenichi Handa <handa@m17n.org>
211
212 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
213
214 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
215
216 * keyboard.c (process_tool_bar_item): Reorder dummy args.
217
218 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
219
220 * keyboard.c (tool_bar_items): Use map_keymap.
221 (process_tool_bar_item): Add dummy args to fit the required interface.
222
223 2006-03-25 Eli Zaretskii <eliz@gnu.org>
224
225 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
226 to zero before calling debug_print or safe_debug_print.
227
228 * print.c (print_output_debug_flag): New global variable.
229 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
230 OutputDebugString if print_output_debug_flag is zero.
231
232 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
233
234 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
235 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
236 (Fdecode_time): Cast tm_year to EMACS_INT.
237 (Fcurrent_time_string): Report an invalid time specification if
238 the argument is invalid. Also, check for out-of-range time stamps.
239
240 2006-03-24 Kim F. Storm <storm@cua.dk>
241
242 * xterm.c (handle_one_xevent):
243 * w32term.c (w32_read_socket):
244 * macterm.c (XTread_socket): Don't let key-press clear mouse face
245 on in toolbar window if mouse-highlight is an integer.
246
247 * fns.c (sxhash_list): Include last non-nil CDR in hash.
248
249 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
250
251 * macmenu.c (enum mac_menu_kind): New enum.
252 (min_menu_id): New variable.
253 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
254 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
255 min_menu_id and enumerators in enum mac_menu_kind.
256 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
257 All uses changed. Add range check for menu ID.
258 (fill_menubar): Add range check for menu ID.
259 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
260 GetEventParameter.
261 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
262 for each menu kind.
263
264 2006-03-22 Kim F. Storm <storm@cua.dk>
265
266 * xdisp.c: Undo 2006-03-21 change.
267
268 * term.c: Define aliases for append_glyph and produce_stretch_glyph
269 when `static' is defined to avoid name clash with those in xdisp.c.
270
271 * process.c (Faccept_process_output): Fix to comply with lisp reference.
272 Change arg "timeout" to "seconds" and allow both integer and float value.
273 Change arg "timeout-msec" to "millisec" and interpret" as milliseconds
274 rather than microseconds. Fix doc string accordingly.
275
276 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
277
278 * xdisp.c (store_next_glyph): Rename from append_glyph.
279 (generate_stretch_glyph): Rename from produce_stretch_glyph.
280 All callers changed accordingly.
281
282 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
283
284 * xterm.c: x_session_initialized new variable.
285 (x_term_init): Use x_session_initialized to check if
286 x_session_initialize should be called.
287 (x_initialize): Initialize x_session_initialized.
288
289 2006-03-21 Kim F. Storm <storm@cua.dk>
290
291 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
292 bitmap here, but ...
293 (update_window_fringes): ... here, so we can test if it has changed.
294
295 2006-03-20 Andreas Schwab <schwab@suse.de>
296
297 * dispnew.c (init_display): Check DISPLAY here.
298
299 * emacs.c (main): Don't check here.
300
301 * xterm.c (x_display_ok): Don't use DISPLAY env var.
302
303 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
304
305 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
306 mixup (YAILOM).
307
308 2006-03-20 Eli Zaretskii <eliz@gnu.org>
309
310 * emacs.c (main): Fix last change.
311
312 2006-03-20 Kenichi Handa <handa@m17n.org>
313
314 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
315
316 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
317
318 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
319
320 * xterm.c (x_term_init): Remove unnecessary GCPRO.
321
322 2006-03-19 Kim F. Storm <storm@cua.dk>
323
324 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
325 so it doesn't associate overlay string with following glyph by default.
326 Allow integer property value to specify explicit number of buffer
327 positions associate with overlay string.
328
329 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
330
331 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
332
333 2006-03-18 Nozomu Ando <nand@mac.com>
334
335 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
336 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
337 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
338 Don't redefine.
339
340 * m/mips.h: Don't use unexmips on NetBSD.
341 (LIBS_MACHINE): Move definition lower, so it doesn't use
342 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
343 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
344
345 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
346 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
347 option is broken (e.g., MIPS/NetBSD).
348
349 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
350
351 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
352 Remove the HAVE_X_WINDOWS conditional.
353
354 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
355
356 * emacs.c (main): If user asks for a display that is unavailable,
357 simulate -nw.
358
359 * xterm.c (x_display_ok): New function.
360
361 * xterm.h: Add prototype for x_display_ok.
362
363 2006-03-18 Eli Zaretskii <eliz@gnu.org>
364
365 * w32fns.c (Fw32_select_font): Doc fix.
366
367 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
368
369 * image.c [MAC_OS] (XPutPixel, XGetPixel)
370 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
371 version when depth is 32.
372 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
373 New function.
374 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
375 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
376
377 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
378 Create GWorld in ARGB pixel format.
379 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
380 Remove functions.
381 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
382 instead of mac_copy_area/mac_copy_area_with_mask.
383
384 2006-03-15 Kim F. Storm <storm@cua.dk>
385
386 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
387 empty row. Fixes memory corruption revealed by 2006-03-02 change.
388 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
389 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
390 width is exactly the same as the window width. Don't count a final
391 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
392
393 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
394
395 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
396 conditional on HAVE_NTGUI, not WINDOWS_NT.
397
398 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
399
400 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
401
402 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
403
404 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
405 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
406 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
407 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
408 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
409 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
410 instead of mac_draw_bitmap.
411 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
412 define_fringe_bitmap and destroy_fringe_bitmap.
413
414 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
415
416 * xterm.c (x_uncatch_errors): Block input for entire function.
417
418 2006-03-12 Jason Rumney <jasonr@gnu.org>
419
420 * w32fns.c (Fx_create_frame): Remove call to
421 Qface_set_after_frame_default (from xfns.c 2003-05-26).
422
423 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
424 finished with the menu.
425
426 * w32term.c: Sync 2005-10-24 xterm.c changes.
427 (last_mouse_glyph_frame): New var.
428 (note_mouse_movement): Say mouse moved if current frame differs
429 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
430 (w32_mouse_position): Set last_mouse_glyph_frame.
431 Remove OLD_REDISPLAY_CODE block.
432
433 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
434
435 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
436
437 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
438 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
439
440 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
441
442 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
443
444 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
445 (x_draw_composite_glyph_string_foreground)
446 (x_draw_image_foreground): Undo previous changes.
447 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
448 argument of mac_draw_rectangle.
449 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
450 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
451 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
452 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
453 [USE_CG_DRAWING]: New functions.
454 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
455 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
456 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
457 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
458 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
459 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
460 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
461
462 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
463
464 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
465
466 2006-03-11 Jason Rumney <jasonr@gnu.org>
467
468 * w32fns.c (signal_user_input): New function.
469 (post_character_message): Use it for keyboard input.
470 (w32_msg_pump): Use it for mouse input.
471
472 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
473
474 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
475 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
476
477 2006-03-11 Eli Zaretskii <eliz@gnu.org>
478
479 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
480 if a menu is already active (the menubar_active flag is on).
481
482 2006-03-11 David Ponce <david@dponce.com>
483
484 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
485
486 2006-03-11 Eli Zaretskii <eliz@gnu.org>
487
488 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
489 the list of unused display error handling functions.
490
491 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
492 HAVE_X_WINDOWS.
493 (internal_condition_case, internal_condition_case_1)
494 (internal_condition_case_2): Call x_catching_errors only if
495 HAVE_X_WINDOWS.
496
497 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
498 Don't include sys/resource.h unless defined.
499
500 2006-03-11 Richard Stallman <rms@gnu.org>
501
502 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
503
504 * vm-limit.c (get_lim_data, lim_data, data_space_start):
505 Move from mem-limits.h.
506 (enum warnlevel): New data type.
507 (check_memory_limits): Rewrite the logic about warnings.
508 Use standard `struct rlimit'. Check return values for nonsense.
509 (memory_warnings): Always clear lim_data.
510
511 * mem-limits.h (get_lim_data, lim_data, data_space_start):
512 Move to vm-limit.c.
513
514 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
515
516 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
517 (internal_condition_case_1, internal_condition_case_2):
518 Abort if within unclosed x_catch_errors.
519
520 2006-03-11 Romain Francoise <romain@orebokech.com>
521
522 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
523
524 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
525
526 * lisp.h: Remove duplicate prototypes. Make the prototype of
527 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
528
529 2006-03-11 Eli Zaretskii <eliz@gnu.org>
530
531 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
532 argument of XDrawRectangle.
533
534 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
535
536 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
537 (x_draw_glyph_string_foreground)
538 (x_draw_composite_glyph_string_foreground)
539 (x_draw_image_foreground): Don't subtract 1 from width and height
540 arguments to mac_draw_rectangle.
541 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
542
543 2006-03-10 Kim F. Storm <storm@cua.dk>
544
545 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
546
547 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
548
549 * alloc.c (USE_POSIX_MEMALIGN): New macro.
550 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
551
552 2006-03-09 Kenichi Handa <handa@m17n.org>
553
554 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
555 ASCII component of a composition.
556
557 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
558
559 * window.c: Declare preserve_y as a static global variable.
560 (window_scroll_pixel_based): No longer declare preserve_y;
561 it is global now.
562 (syms_of_window): Set preserve_y to -1.
563
564 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
565
566 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
567 depth is 32.
568 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
569 depth is 32.
570
571 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
572
573 * xdisp.c (handle_invisible_prop): Don't update it->position with
574 a buffer position if we're in a display string.
575
576 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
577
578 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
579 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
580
581 * macfns.c (x_default_scroll_bar_color_parameter)
582 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
583 Remove unnecessary prototypes.
584 (x_set_scroll_bar_default_width):
585 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
586 (mac_set_scroll_bar_width): New function.
587 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
588
589 * macterm.c (get_control_part_bounds): Fix type of return value.
590 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
591 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
592 scroll bar if it is not tall enough to display scroll bar thumb.
593 [USE_CARBON_EVENTS] (mac_convert_event_ref)
594 (mac_handle_command_event, mac_handle_window_event)
595 (mac_handle_mouse_event): Check error code of GetEventParameter.
596 (convert_fn_keycode) [MAC_OSX]: Likewise.
597
598 2006-03-05 Andreas Schwab <schwab@suse.de>
599
600 * xselect.c (x_catch_errors_unwind): Fix missing return value.
601
602 2006-03-02 Kim F. Storm <storm@cua.dk>
603
604 * frame.h (struct frame): New member n_tool_bar_rows.
605
606 * xdisp.c: Minimize the unpleasent visual impact of the requirement
607 that non-toolkit tool-bars must occupy an integral number of screen
608 lines, by distributing the rows evenly over the tool-bar screen area.
609 (Vtool_bar_border): New variable.
610 (syms_of_xdisp): DEFVAR_LISP it.
611 (display_tool_bar_line): Add HEIGHT arg for desired row height.
612 Make tool-bar row the desired height. Use default face for border
613 below tool-bar.
614 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
615 actual tool-bar rows.
616 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
617 Adjust the height of the tool-bar rows to fill tool-bar screen area.
618 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
619 is resized.
620
621 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
622
623 * search.c (Fregexp_quote): Do not precede a literal `]' with two
624 backslashes to try to make clear that it has a literal meaning; it
625 does not do that. (It could close a character alternative
626 containing a backslash.)
627
628 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
629
630 * xselect.c (x_catch_errors_unwind): New function.
631 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
632 (Fx_get_atom_name): Call x_uncatch_errors earlier.
633
634 * window.c (Qscroll_up, Qscroll_down): New syms.
635 (window_scroll_pixel_based): Make preserve_y static to avoid
636 getting point stuck when scrolling 1 line.
637
638 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
639
640 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
641
642 * xterm.c (x_load_font, x_term_init, XTmouse_position)
643 (handle_one_xevent, x_connection_closed, x_list_fonts):
644 No arg for x_uncatch_errors.
645
646 * xselect.c (x_own_selection, x_decline_selection_request)
647 (x_reply_selection_request, x_get_foreign_selection)
648 (Fx_get_atom_name, Fx_send_client_event): Likewise.
649
650 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
651 Likewise.
652
653 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
654
655 * lread.c: Declare Vload_file_rep_suffixes instead of
656 deleted variable default_suffixes.
657 (Fget_load_suffixes): New function.
658 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
659 No longer use deleted variable default_suffixes. Update docstring.
660 (syms_of_lread): defsubr Sget_load_suffixes.
661 Expand `load-suffixes' docstring.
662 Delete default_suffixes and DEFVAR_LISP the new variable
663 `load-file-rep-suffixes'.
664
665 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
666 of Vload_suffixes.
667
668 * lisp.h: EXFUN Fget_load_suffixes.
669 Extern Vload_file_rep_suffixes.
670
671 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
672 with lisp.h.
673
674 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
675
676 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
677 qualifier which was trying to avoid the bug that was fixed by
678 yesterday's changes to xterm.c.
679
680 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
681
682 * xterm.h (x_catch_errors) Return value changed to void.
683 (x_uncatch_errors): Delete unused count argument.
684
685 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
686 it can be called in a signal handler.
687 (x_catch_errors_unwind): Function deleted.
688 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
689 (x_check_errors): Call x_uncatch_errors before signalling error.
690
691 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
692 (x_connection_closed, x_list_fonts): Use new versions of
693 x_catch_errors and x_uncatch_errors.
694
695 * xselect.c (x_own_selection, x_decline_selection_request)
696 (x_reply_selection_request, x_get_foreign_selection)
697 (Fx_get_atom_name, Fx_send_client_event): Likewise.
698
699 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
700 Likewise.
701
702 * eval.c (record_unwind_protect): Add an assertion.
703
704 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
705
706 * process.c (Fmake_network_process): Init the process's mark.
707
708 2006-02-25 Kim F. Storm <storm@cua.dk>
709
710 * buffer.c (modify_overlay): Force redisplay if we modify an
711 overlay at the end of the buffer.
712
713 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
714
715 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
716 nil the image file has been removed, in that case use the (cached)
717 pixmap.
718
719 2006-02-24 Kenichi Handa <handa@m17n.org>
720
721 * fileio.c (Finsert_file_contents): When a text is replaced
722 partially, be sure to set point before the inserted characters.
723
724 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
725
726 * xfns.c (Fx_file_dialog): Return a decoded file name.
727
728 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
729
730 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
731 glyph whose face is extended to the text area end.
732
733 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
734 values if control is not visible or values are not changed.
735
736 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
737
738 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
739 The default `window' should not be "on a different frame".
740
741 2006-02-22 Kim F. Storm <storm@cua.dk>
742
743 * indent.c (Fvertical_motion): Only try to move back if we can.
744
745 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
746
747 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
748 n_clip_rects.
749
750 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
751 xmenu.c.
752
753 * macterm.c (GC_CLIP_REGION): Remove macro.
754 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
755 All uses changed. Don't do clipping if n_clip_rects is zero.
756 (mac_set_clip_rectangles): Use xassert instead of abort.
757 Set n_clip_rects. Don't make clip_region empty when number of
758 clipping rectangles is zero.
759 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
760 calling mac_set_clip_rectangles.
761 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
762 avoid multiple redraws.
763
764 2006-02-22 Kim F. Storm <storm@cua.dk>
765
766 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
767
768 2006-02-21 Kim F. Storm <storm@cua.dk>
769
770 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
771
772 2006-02-21 Zhang Wei <brep@newsmth.org>
773
774 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
775 returning it.
776
777 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
778
779 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
780 (standard_bitmaps): Use it.
781
782 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
783
784 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
785 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
786 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
787 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
788 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
789 Draw background if BG_WIDTH is not zero. Use float constants as
790 divisors instead of double. Use alloca instead of xmalloc/xfree.
791 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
792 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
793 mac_draw_image_string* functions.
794 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
795 some fonts when srcCopy text transfer mode might be used.
796 (mac_begin_clip, mac_end_clip): Check if region is empty.
797 (mac_set_clip_rectangles): When resetting clip region, make it
798 empty instead of disposing of it.
799
800 2006-02-20 Stefan Monnier <monnier@iro.umontreal.ca>
801
802 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
803 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8).
804
805 2006-02-20 Kim F. Storm <storm@cua.dk>
806
807 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
808
809 * buffer.h (struct buffer): New members fringe_indicator_alist and
810 fringe_cursor_alist.
811
812 * buffer.c (init_buffer_once): Set dummy default values for
813 fringe-indicator-alist and fringe-cursor-alist. The proper
814 default values are set by pre-loading fringe.el.
815 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
816 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
817 corresponding default- variables.
818
819 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
820 to use `int'.
821 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
822 Define explicitly.
823 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
824 (Qhollow_small): New variables.
825 (syms_of_fringe): Intern and staticpro them.
826 (question_mark_bits): Rename from unknown_bits.
827 (left_curly_arrow_bits): Rename from continuation_bits.
828 (right_curly_arrow_bits): Rename from continued_bits.
829 (left_triangle_bits): Rename from ov_bits.
830 (right_triangle_bits): Add.
831 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
832 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
833 (filled_square_bits): Add.
834 (vertical_bar_bits): Rename from bar_cursor_bits.
835 (horizontal_bar_bits): Rename from hbar_cursor_bits.
836 (empty_line_bits): Rename from zv_bits.
837 (standard_bitmaps): Update to use new names.
838 (draw_fringe_bitmap_1): Make static.
839 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
840 to map from logical cursors and indicators to physical bitmaps.
841 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
842 bitmaps using symbol names instead of bitmap numbers.
843 (update_window_fringes): Use logical indicator symbol names
844 instead of bitmap numbers for logical. Add bitmap cache.
845 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
846
847 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
848
849 * regex.c: Revert 2006-02-19 change.
850 (xmalloc, xrealloc): Define these when not linked to Emacs.
851 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
852
853 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
854
855 * regex.c (extend_range_table_work_area): Fix typo.
856
857 2006-02-19 Richard M. Stallman <rms@gnu.org>
858
859 * xterm.c (x_catch_errors): Use xmalloc.
860
861 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
862 (regex_compile): Likewise.
863 (regcomp): Use xmalloc.
864
865 * gtkutil.c (malloc_widget_value): Use xmalloc.
866
867 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
868 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
869
870 * xmenu.c (digest_single_submenu): When pane_string is empty,
871 do initialize save_wv.
872
873 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
874
875 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
876 w->update_mode_line if arg F is not the selected frame.
877
878 * macmenu.c (popup_activated_flag, submenu_id)
879 (next_menubar_widget_id): Remove variables.
880 (initialize_frame_menubar): Remove function.
881 (pop_down_menu, mac_menu_show): Simplify save value.
882 (dispose_menus): New function.
883 (pop_down_menu, fill_menubar): Use it.
884 (fill_submenu): Remove function. All uses changed to fill_menu.
885 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
886 POS. Don't call SetMenuItemHierarchicalID here.
887 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
888 used next. Call SetMenuItemHierarchicalID here.
889 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
890 objects if needed. Reuse existing menu bar titles if possible.
891 (set_frame_menubar): Don't clean up menu objects here.
892
893 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
894
895 * window.c (window_min_size_1): Ensure room for the scroll bar and
896 fringes.
897
898 2006-02-17 Romain Francoise <romain@orebokech.com>
899
900 * puresize.h (BASE_PURESIZE): Increment to 1200000.
901
902 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
903
904 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
905 addition of the BLOCK_INPUTs.
906
907 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
908
909 * window.c (Fset_window_scroll_bars): Doc fix.
910
911 2006-02-17 Kenichi Handa <handa@m17n.org>
912
913 * xdisp.c (display_mode_element): Call display_string with correct
914 PREC arg (which must be a number of characters, not column width).
915
916 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
917
918 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
919
920 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
921
922 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
923
924 2006-02-14 Richard M. Stallman <rms@gnu.org>
925
926 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
927
928 * m/ibms390x.h: New file.
929
930 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
931
932 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
933 value of x-gtk-whole-detached-tool-bar.
934 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
935
936 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
937
938 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
939
940 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
941
942 * xterm.h: Declare x_x_to_emacs_modifiers.
943
944 * gtkutil.c (xg_tool_bar_button_cb): New function.
945 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
946 store modifiers in event.
947 (update_frame_tool_bar): Connect button-release-event to
948 xg_tool_bar_button_cb.
949
950 2006-02-13 Richard M. Stallman <rms@gnu.org>
951
952 * .gdbinit (xwindow): Update the code to show the window box.
953
954 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
955
956 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
957
958 2006-02-12 Richard M. Stallman <rms@gnu.org>
959
960 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
961
962 2006-02-11 Eli Zaretskii <eliz@gnu.org>
963
964 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
965 (syms_of_keyboard): DEVFAR_LISP and initialize it.
966 (parse_tool_bar_item, parse_menu_item): If that variable is
967 non-nil, don't disable menu items and tool-bar buttons.
968
969 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
970
971 * doc.c (Fsubstitute_command_keys): Doc fix.
972
973 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
974
975 * data.c (Findirect_function): Rewrite docstring.
976 Fix omission bug: Declare new arg NOERROR.
977
978 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
979
980 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
981 if window_desc is not set yet.
982 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
983 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
984 parameter `visibility' is `icon'.
985 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
986 instead of "fontset-mac".
987 (Fx_focus_frame): New defun.
988 (syms_of_macfns): Defsubr it.
989
990 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
991 for unfocused frame.
992 (x_raise_frame): Call BringToFront instead of SelectWindow.
993 (x_lower_frame): Use NULL instead of nil.
994 (x_make_frame_visible): Don't call SelectWindow.
995 (XTread_socket): Increment handling_signal at the start, decrement
996 it at the end.
997 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
998 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
999
1000 2006-02-10 Kim F. Storm <storm@cua.dk>
1001
1002 * data.c (Findirect_function): Add NOERROR arg. All callers changed
1003 to pass Qnil for NOERROR.
1004
1005 * keymap.c (current_minor_maps_error): Remove.
1006 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
1007 instead of using internal_condition_case_1+current_minor_maps_error.
1008
1009 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1010
1011 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
1012 frames for GTK, in that case it is the tool bar. This is so that
1013 highlighted text get reset properly.
1014
1015 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
1016
1017 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
1018
1019 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1020
1021 * window.c (adjust_window_trailing_edge): Check that shrinking
1022 does not set a window to size zero or less.
1023
1024 2006-02-08 Miles Bader <miles@gnu.org>
1025
1026 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
1027 of Fget_text_property (other field functions work with overlays as
1028 well as text-properties).
1029
1030 2006-02-07 Kenichi Handa <handa@m17n.org>
1031
1032 * dispextern.h (unibyte_display_via_language_environment): Extern it.
1033
1034 * xterm.h (unibyte_display_via_language_environment):
1035 * w32term.h (unibyte_display_via_language_environment):
1036 * macterm.h (unibyte_display_via_language_environment): Delete extern.
1037
1038 2006-02-07 Kenichi Handa <handa@m17n.org>
1039
1040 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
1041 (produce_glyphs): Set the character to print in
1042 it->char_to_display. Handle unibyte-display-via-language-environment.
1043 (produce_stretch_glyph): Set character to print in it->char_to_display.
1044
1045 2006-02-06 Kenichi Handa <handa@m17n.org>
1046
1047 * lread.c (openp): Initialize encoded_fn before GCPRO it.
1048
1049 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
1050
1051 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
1052
1053 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
1054 Cast bitfield value to EMACS_INT, to suppress gcc warning.
1055
1056 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
1057 defining.
1058
1059 2006-02-03 Kim F. Storm <storm@cua.dk>
1060
1061 * xdisp.c: Cache last merged escape glyph face.
1062 (last_escape_glyph_frame, last_escape_glyph_face_id)
1063 (last_escape_glyph_merged_face_id): New variables.
1064 (get_next_display_element): Use/update them.
1065 (redisplay_internal): Reset them before redisplay.
1066
1067 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
1068 Only recheck faces after displaying ellipsis.
1069
1070 2006-02-02 Kenichi Handa <handa@m17n.org>
1071
1072 * coding.c (decode_composition_emacs_mule): Fix handling of
1073 incorrect format data.
1074
1075 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1076
1077 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
1078 (gtk_toolbar_insert) so we can have tool bars of different sizes.
1079
1080 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
1081
1082 * data.c (Flistp): Doc fix.
1083
1084 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
1085
1086 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
1087 Fix typos in docstrings.
1088
1089 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
1090
1091 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
1092
1093 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
1094
1095 * alloc.c (make_interval, allocate_string)
1096 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
1097 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
1098 global variables.
1099
1100 2006-01-27 Eli Zaretskii <eliz@gnu.org>
1101
1102 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
1103 the MSDOS definition.
1104
1105 2006-01-26 Richard M. Stallman <rms@gnu.org>
1106
1107 * alloc.c (check_pure_size): Make overflow message an "error message".
1108
1109 * keymap.c (Fmap_keymap): Doc fix.
1110
1111 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
1112 unless they were cleared out.
1113
1114 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
1115
1116 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1117
1118 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
1119 (find_field): Set before_field to after_field when pos is at BEGV.
1120 (Fline_beginning_position, Fline_end_position):
1121 Clarify confusing doc string.
1122
1123 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
1124 string.
1125
1126 2006-01-26 Kenichi Handa <handa@m17n.org>
1127
1128 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
1129 current_dir, and error_file. On reporting an error, decode them
1130 back.
1131
1132 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1133
1134 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
1135 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
1136 Don't check for quit, since any loop will go through fail or jump.
1137
1138 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
1139
1140 * alloc.c (allocate_string_data): Update next_free immediately, to
1141 reduce risk of memory clobberage.
1142
1143 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1144
1145 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
1146 display when point moves across an ellipsis. If there are
1147 adjacent invisible texts, don't lose the second one's ellipsis.
1148 (x_produce_glyphs): Doc fix.
1149
1150 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
1151
1152 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
1153
1154 2006-01-23 Kim F. Storm <storm@cua.dk>
1155
1156 * xdisp.c (handle_single_display_spec): Fix handling of space
1157 property on char from string: set *position rather than
1158 it->current.pos.
1159 (produce_stretch_glyph): Reduce width of stretch glyphs so they
1160 don't get wider than the window (unless truncate-lines is on).
1161
1162 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
1163
1164 * xterm.c: Avoid allocating Lisp data from a signal handler.
1165 (x_error_message): New var to replace x_error_message_string.
1166 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
1167 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
1168 (syms_of_xterm): Use it instead of x_error_message_string.
1169
1170 * alloc.c (lisp_align_free): Add an assertion.
1171 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
1172 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
1173 a signal handler.
1174
1175 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
1176
1177 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
1178
1179 2006-01-21 Romain Francoise <romain@orebokech.com>
1180
1181 * xdisp.c (get_window_cursor_type): Fix last change.
1182 Update copyright year.
1183
1184 2006-01-20 Eli Zaretskii <eliz@gnu.org>
1185
1186 * lread.c (Fload): Don't leak the file descriptor returned by
1187 openp if we are going to signal an error.
1188
1189 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
1190 directly to _close.
1191 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
1192 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
1193 to _read.
1194 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
1195 directly to _write.
1196
1197 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
1198 if it is NULL.
1199
1200 2006-01-20 Kenichi Handa <handa@m17n.org>
1201
1202 * puresize.h (BASE_PURESIZE): Increment to 1190000.
1203
1204 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
1205
1206 * xdisp.c (get_window_cursor_type): Use cursor type specified by
1207 the selected buffer for the echo area too.
1208
1209 2006-01-19 Richard M. Stallman <rms@gnu.org>
1210
1211 * keymap.c (Fmap_keymap): Doc fix.
1212
1213 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
1214
1215 * keyboard.c (echo_char): Don't omit the space between first two
1216 echoed chars.
1217
1218 * minibuf.c (read_minibuf): Fix previous change.
1219
1220 2006-01-19 Kenichi Handa <handa@m17n.org>
1221
1222 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
1223
1224 2006-01-17 Richard M. Stallman <rms@gnu.org>
1225
1226 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
1227 value in f->param_alist.
1228
1229 2006-01-15 Andreas Schwab <schwab@suse.de>
1230
1231 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
1232
1233 2006-01-13 Richard M. Stallman <rms@gnu.org>
1234
1235 * Makefile.in: Define new macro WINDOW_SUPPORT.
1236 (lisp): Use it.
1237 (SOME_MACHINE_LISP): Add conditionally loaded files.
1238
1239 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1240
1241 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
1242 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
1243 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
1244 decomposed form.
1245
1246 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
1247 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
1248 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
1249 macro. Also try member ifr_addr when getting netmask.
1250
1251 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
1252
1253 * fileio.c (Fexpand_file_name): Remove redundant tests.
1254 Fix elimination of // so that it doesn't prevent elimination of an
1255 immediately following /. or /..
1256
1257 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1258
1259 * gtkutil.c (xg_toggle_notify_cb): New function.
1260 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
1261 xg_toggle_notify_cb.
1262 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
1263 parameter value changes so the toggle button gets updated.
1264
1265 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
1266
1267 * .gdbinit: Fix typo.
1268
1269 2006-01-05 Eli Zaretskii <eliz@gnu.org>
1270
1271 * .gdbinit: Fix last change.
1272
1273 2006-01-05 Kim F. Storm <storm@cua.dk>
1274
1275 * process.c (Fmake_network_process): Use AF_INET instead of
1276 AF_UNSPEC when AF_INET6 is not defined.
1277
1278 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1279
1280 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
1281 Don't check that the other type is known file-related one.
1282
1283 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
1284 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
1285 OS X 10.4 and later.
1286
1287 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1288
1289 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
1290 let GTK do all image processing. Importing Emacs own pixmaps to GTK
1291 looks bad for inactive tool bar items with some Gnome themes.
1292
1293 2006-01-04 Eli Zaretskii <eliz@gnu.org>
1294
1295 * .gdbinit: Avoid a warning message when x_error_quitter is not
1296 compiled in.
1297
1298 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
1299 for w32.
1300
1301 2006-01-04 Kim F. Storm <storm@cua.dk>
1302
1303 * process.c: Add IPv6 support.
1304 (Qipv4, Qipv6): New vars.
1305 (syms_of_process): Intern and staticpro them.
1306 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
1307 with or without port number. Handle 4 element vector as IPv4 address
1308 without port number.
1309 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
1310 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
1311 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
1312 request that address family only. :family nil or omitted means to
1313 determine address family from the specified :host and :service.
1314 (ifflag_table): Add missing OpenBSD IFF_ flags.
1315 (server_accept_connection): Handle IPv6 addresses.
1316 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
1317
1318 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
1319 determine which breakpoints to set.
1320
1321 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
1322
1323 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
1324
1325 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
1326
1327 2006-01-03 Romain Francoise <romain@orebokech.com>
1328
1329 * emacs.c (main): Update copyright year.
1330
1331 2006-01-03 Ken Raeburn <raeburn@gnu.org>
1332
1333 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
1334 nil for the call to internal_delete_file.
1335
1336 2006-01-01 Ken Raeburn <raeburn@gnu.org>
1337
1338 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
1339 to nil for the call to Fwrite_region.
1340
1341 2005-12-31 Richard M. Stallman <rms@gnu.org>
1342
1343 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
1344
1345 2005-12-31 Eli Zaretskii <eliz@gnu.org>
1346
1347 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
1348
1349 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
1350
1351 * textprop.c (set_text_properties): Reword description of return value.
1352 Return Qnil if caller wants to remove all text properties from a
1353 string and the string already has no intervals.
1354
1355 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
1356
1357 * term.c (visible_cursor): New boolean var.
1358 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
1359 visible_cursor.
1360 (syms_of_term): Export the new var as "visible-cursor".
1361
1362 2005-12-30 Eli Zaretskii <eliz@gnu.org>
1363
1364 * .gdbinit: Tell users not to worry about GDB warnings that some
1365 functions do not exist in the binary.
1366
1367 2005-12-30 Andreas Schwab <schwab@suse.de>
1368
1369 * process.c (Fnetwork_interface_info): Correctly terminate the
1370 loop over ifflag_table.
1371
1372 2005-12-29 Richard M. Stallman <rms@gnu.org>
1373
1374 * lread.c (readevalloop): Test for reading a whole buffer
1375 before actually reading anything. Handle all cases, including
1376 START = END = nil and an already-narrowed buffer.
1377 Convert END to a marker if it is a number.
1378
1379 * keymap.c (describe_map): Put sparse map elements into an array,
1380 sort them, then output a sequence of identical bindings on one line.
1381 (struct describe_map_elt): New data type.
1382 (describe_map_compare): New function.
1383
1384 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1385
1386 * gtkutil.c (xg_get_file_with_chooser): Change message shown
1387 in file chooser.
1388
1389 2005-12-27 Richard M. Stallman <rms@gnu.org>
1390
1391 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
1392 not the current one.
1393
1394 * minibuf.c (Fminibuffer_message): Doc fix.
1395 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
1396
1397 * eval.c (do_autoload): Ignore elements of Vautoload_queue
1398 where car is not symbol.
1399
1400 2005-12-27 Kenichi Handa <handa@m17n.org>
1401
1402 * charset.c (lisp_string_width): Check multibyteness of STRING.
1403
1404 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1405
1406 * xfns.c: x_show_hidden_files, new variable.
1407 (syms_of_xfns): Defvar it.
1408
1409 * gtkutil.c (xg_toggle_visibility_cb): New function.
1410 (xg_get_file_with_chooser): Add toggle hidden files and a message
1411 to the new file chooser dialog. Show hidden files if
1412 x_show_hidden_files is non-zero.
1413
1414 2005-12-26 Richard M. Stallman <rms@gnu.org>
1415
1416 * keyboard.h: Undo previous change.
1417
1418 * Makefile.in (undo.o): Undo previous change.
1419
1420 * undo.c: Undo previous change.
1421
1422 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
1423
1424 * keyboard.h: extern last_point_position_window.
1425
1426 * undo.c: include keyboard.h.
1427
1428 * Makefile.in (undo.o): Depend on keyboard.h.
1429
1430 2005-12-26 Richard M. Stallman <rms@gnu.org>
1431
1432 * commands.h (last_point_position_window): Declare.
1433
1434 * undo.c: Depend on window.h.
1435 (record_point): Save old point from the correct window.
1436
1437 * keyboard.c (last_point_position_window): New variable.
1438 (command_loop_1): Set last_point_position_window.
1439 (syms_of_keyboard): Init it.
1440
1441 * Makefile.in (undo.o): Depend on window.h.
1442
1443 2005-12-25 Richard M. Stallman <rms@gnu.org>
1444
1445 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
1446 to undo a `provide'.
1447
1448 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
1449
1450 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
1451
1452 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
1453 define for FreeBSD on this platform.
1454
1455 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1456
1457 * macterm.h (TYPE_FILE_NAME): New define.
1458 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
1459
1460 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
1461 Add prototypes. Make static.
1462 (mac_aedesc_to_lisp): Initialize err to noErr.
1463 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
1464 (init_coercion_handler): New functions.
1465 (Fmac_coerce_ae_data): Use coercion of Apple event data for
1466 translation from/to file names.
1467
1468 * macterm.c: Don't include sys/param.h.
1469 (init_coercion_handler): Add extern.
1470 [MAC_OS8] (main): Call init_coercion_handler.
1471 (mac_initialize) [MAC_OSX]: Likewise.
1472 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
1473 Apple event data for translation from/to file names.
1474
1475 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
1476
1477 * image.c [MAC_OS] (find_image_fsspec): Likewise.
1478
1479 2005-12-23 Martin Rudalics <rudalics@gmx.at> (tiny change)
1480
1481 * insdel.c (insert, insert_and_inherit, insert_before_markers)
1482 (insert_before_markers_and_inherit): Make sure FROM is correct
1483 when `after-change-functions' are called.
1484
1485 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1486
1487 * xfns.c (Fx_uses_old_gtk_dialog): New function.
1488
1489 * gtkutil.c (xg_uses_old_file_dialog): New function.
1490 (xg_get_file_name): Use xg_uses_old_file_dialog.
1491
1492 * gtkutil.h: Declare xg_uses_old_file_dialog.
1493
1494 2005-12-22 Richard M. Stallman <rms@gnu.org>
1495
1496 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
1497
1498 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1499
1500 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
1501
1502 * macgui.h (XCharStruct): Remove member `valid_p'.
1503 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
1504 (XCharStructRow): New typedef.
1505 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
1506 New macros.
1507 (struct MacFontStruct): Add member `bounds'. Remove member
1508 `per_char'. All uses for QuichDraw Text fonts are changed to
1509 `bounds.per_char'. ATSUI font bounds are represented as an array
1510 `bounds.rows' of XCharStructRow's, each of which consists of a
1511 bitmap of valid entries and an array of char bounds.
1512
1513 * macterm.c (mac_per_char_metric): Add prototype.
1514 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
1515 (mac_query_char_extents): New function.
1516 (x_per_char_metric): Use it.
1517 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
1518 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
1519 Use mac_per_char_metric instead of x_per_char_metric.
1520 (mac_text_extents_16): New function.
1521 (mac_compute_glyph_string_overhangs): Use it.
1522 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
1523
1524 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
1525
1526 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
1527 (Fminibuffer_completion_help): Remove duplicates before display.
1528
1529 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1530
1531 * print.c (print_preprocess): Don't lose print_depth levels while
1532 iterating.
1533
1534 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1535
1536 * macmenu.c (Qmac_apple_event): Add extern.
1537 (set_frame_menubar, mac_menu_show keymp_panes)
1538 (single_keymap_panes, list_of_panes, list_of_item)
1539 (single_menu_item): Add argument types to prototypes.
1540 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
1541 (struct skp): New struct (from xmenu.c).
1542 (single_keymap_panes, single_menu_item, list_of_panes)
1543 (list_of_item): Sync with xmenu.c.
1544 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
1545 POSITION if it is mac-apple-event event.
1546 (menubar_selection_callback): Don't use menu_command_in_progress.
1547 (set_frame_menubar): First parse all submenus, then make
1548 widget_value trees from them. Don't allocate any widget_value
1549 objects until we are done with the parsing.
1550 (parse_single_submenu, digest_single_submenu): New functions.
1551 (single_submenu): Function deleted, replaced by those two.
1552 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
1553 create or dispose of EventHandlerUPP. Install hander to all submenus.
1554 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
1555 instead of ENCODE_SYSTEM.
1556 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
1557 integer values.
1558 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
1559 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
1560 format menu item string. Don't use NULL for integer value.
1561
1562 * macterm.h (struct mac_output): Remove unused member
1563 menu_command_in_progress.
1564
1565 2005-12-20 Juri Linkov <juri@jurta.org>
1566
1567 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
1568 position is non-nil, else set it to nil.
1569
1570 * macmenu.c (Fx_popup_menu): Add `else' to set
1571 Vmenu_updating_frame to nil only if position is nil.
1572
1573 * w32menu.c (Fx_popup_menu): Add `else' to set
1574 Vmenu_updating_frame to nil only if position is nil.
1575
1576 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1577
1578 * keyboard.c (make_lispy_event): Drag-and-drop items are now
1579 stored in member `args' of struct input_event.
1580
1581 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
1582
1583 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
1584 stored in member `args' of struct input_event.
1585
1586 * w32term.c (construct_drag_n_drop): Likewise.
1587
1588 * macterm.c (mac_do_receive_drag): Likewise.
1589 (x_use_underline_position_properties): Undo 2005-07-13 change.
1590 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
1591 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
1592 (mac_pass_command_to_system, mac_pass_control_to_system):
1593 New boolean variables renamed from Lisp_Object ones
1594 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
1595 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
1596 All uses changed.
1597 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
1598 Make them user options.
1599 (mac_handle_command_event, mac_store_services_event):
1600 Call create_apple_event_from_event_ref without 5th argument.
1601 (backtranslate_modified_keycode): Mask off modifier keys that are
1602 mapped to some Emacs modifiers before passing it to KeyTranslate.
1603 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
1604 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
1605 Fix docstrings of `mac-*-modifier'.
1606
1607 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
1608 (do_applescript): Change argument types to Lisp_Object.
1609 All uses changed.
1610
1611 * macterm.h (create_apple_event_from_event_ref): Remove 5th
1612 argument from extern.
1613
1614 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
1615
1616 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
1617 the answer, return `lambda', not nil.
1618
1619 2005-12-17 Eli Zaretskii <eliz@gnu.org>
1620
1621 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
1622 enclosed in $(ARGQUOTE)s should not be split between two lines, as
1623 that will break with GNU Make >3.80, when sh.exe is used and
1624 arg quoting is with '..'.
1625
1626 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
1627
1628 * print.c (print_preprocess): Just signal an error if print_depth
1629 is exceeded.
1630
1631 2005-12-17 Eli Zaretskii <eliz@gnu.org>
1632
1633 * .gdbinit: Set a breakpoint on w32_abort.
1634
1635 2005-12-16 Juri Linkov <juri@jurta.org>
1636
1637 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
1638 created from minibuffer_completion_contents.
1639 (minibuffer_completion_contents): Remove.
1640 (do_completion, Fminibuffer_complete_word)
1641 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
1642 with Fminibuffer_completion_contents.
1643 (syms_of_minibuf): Add Sminibuffer_completion_contents.
1644 (Fdisplay_completion_list): Doc fix.
1645 (display_completion_list_1): Use `nil' for second arg of
1646 `Fdisplay_completion_list'.
1647
1648 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1649
1650 * xfns.c (compute_tip_xy): Handle negative dx and dy.
1651
1652 * w32fns.c (compute_tip_xy): Ditto.
1653
1654 * macfns.c (compute_tip_xy): Ditto.
1655
1656 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
1657
1658 * print.c (print_preprocess): Go to a deeper print_depth to avoid
1659 print_object loop.
1660
1661 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
1662
1663 * coding.c (code_convert_region_unwind): GCPRO arg.
1664
1665 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1666
1667 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
1668 i.e. dy is offset from top of frame instead of bottom.
1669
1670 * macfns.c (compute_tip_xy): Ditto.
1671
1672 * w32fns.c (compute_tip_xy): Ditto.
1673
1674 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
1675 (xg_get_image_for_pixmap, xg_create_frame_widgets)
1676 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
1677
1678 * xmenu.c (menubar_selection_callback): Do nothing if the callback
1679 is for an unselected radio menu item.
1680
1681 2005-12-11 Richard M. Stallman <rms@gnu.org>
1682
1683 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
1684
1685 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
1686
1687 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
1688 (Flookup_key): Doc fix.
1689 (syms_of_keymap) <function-key-map>: Doc fix.
1690
1691 * fns.c (Frequire): Treat evaluating from a source file
1692 like loading the file.
1693
1694 * floatfns.c (Flog): Doc fix.
1695
1696 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
1697 when we change the buffer.
1698
1699 2005-12-11 Juri Linkov <juri@jurta.org>
1700
1701 * minibuf.c (display_completion_list_1):
1702 Call `minibuffer_completion_contents' instead of using `nil' as
1703 second arg of `Fdisplay_completion_list'.
1704 (keys_of_minibuf): Unbind SPC in
1705 Vminibuffer_local_filename_completion_map (see also related
1706 change on 2005-12-06).
1707
1708 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1709
1710 * emacs.c (main) [MAC_OS8]: Undo previous change.
1711
1712 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
1713 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
1714
1715 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1716
1717 * Makefile.in (macselect.o): Depend on keymap.h.
1718
1719 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
1720 syms_of_macselect.
1721
1722 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
1723 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
1724
1725 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
1726 (syms_of_keyboard) [MAC_OS]: Initialize it.
1727 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
1728
1729 * mac.c (Qundecoded_file_name): New variable.
1730 (syms_of_mac): Initialize it.
1731 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
1732 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
1733 (Fmac_coerce_ae_data): New defun.
1734 (syms_of_mac): Defsubr it.
1735
1736 * macselect.c: Include keymap.h.
1737 (mac_ready_for_apple_events): New variable.
1738 (Vmac_apple_event_map, Qmac_apple_event_class)
1739 (Qmac_apple_event_id): New variables.
1740 (syms_of_macselect): Initialize them.
1741 (Qundefined, mac_store_apple_event): Add externs.
1742 (struct apple_event_binding): New struct.
1743 (find_event_binding_fun, find_event_binding)
1744 (mac_find_apple_event_spec, defer_apple_events)
1745 (mac_handle_apple_event, init_apple_event_handler)
1746 (copy_scrap_flavor_data): New functions.
1747 (Fmac_process_deferred_apple_events): New defun.
1748 (syms_of_macselect): Defsubr it.
1749 (mac_store_services_event): Fix extern.
1750 (mac_handle_service_event): Don't allocate Lisp objects during
1751 asynchronous input processing. Use mac_store_services_event
1752 instead of mac_store_application_menu_event.
1753
1754 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
1755 (Qpreferences): Remove variables.
1756 (syms_of_macterm) : Don't initialize them.
1757 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
1758 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
1759 (init_required_apple_events, do_ae_open_application)
1760 (do_ae_print_documents, do_ae_open_documents)
1761 (do_ae_quit_application): Remove functions and prototypes.
1762 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
1763 (mac_find_apple_event_spec): Add externs.
1764 (mac_store_application_menu_event): Remove function.
1765 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
1766 (mac_handle_command_event): Create Apple event from Carbon event.
1767 Use mac_store_apple_event instead of mac_store_application_menu_event.
1768 [MAC_OSX] (mac_store_services_event): Likewise.
1769 (struct SelectionRange, SelectionRange): Remove struct and typedef.
1770 [MAC_OS8] (main): Call init_apple_event_handler instead of
1771 init_required_apple_events.
1772 (mac_initialize) [MAC_OSX]: Likewise.
1773 [!USE_CARBON_EVENTS] (mac_wait_next_event):
1774 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
1775
1776 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
1777 Add externs.
1778 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
1779 (Fmac_get_preference): Add EXFUN.
1780
1781 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
1782 event.
1783
1784 2005-12-09 Richard M. Stallman <rms@gnu.org>
1785
1786 * xfns.c (Fx_create_frame): Reinstate previous change.
1787
1788 2005-12-09 Eli Zaretskii <eliz@gnu.org>
1789
1790 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
1791 GDB to the abort dialog.
1792
1793 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
1794
1795 * indent.c (Fvertical_motion): Force move if starting on
1796 stretch glyph.
1797
1798 2005-12-08 Richard M. Stallman <rms@gnu.org>
1799
1800 * lread.c (read_escape) <\s>: Don't treat strings specially.
1801
1802 * xfns.c (Fx_create_frame): Comment out previous change.
1803
1804 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1805
1806 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
1807 when needed.
1808
1809 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
1810
1811 * minibuf.c (keys_of_minibuf): Just unbind SPC in
1812 Vminibuffer_local_filename_completion_map rather than forcing it
1813 explicitly to the same binding as the global map.
1814
1815 2005-12-06 Ken Raeburn <raeburn@gnu.org>
1816
1817 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
1818 * bytecode.c (Fbyte_code): Likewise.
1819 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
1820 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
1821 * undo.c (truncate_undo_list): Likewise.
1822
1823 2005-12-05 Richard M. Stallman <rms@gnu.org>
1824
1825 * window.c (enlarge_window): Eliminate arg preserve_before.
1826 Assume it is 0. All callers changed.
1827 (Fenlarge_window, Fshrink_window): Likewise.
1828
1829 2005-12-02 Eli Zaretskii <eliz@gnu.org>
1830
1831 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
1832 fit below.
1833
1834 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1835
1836 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
1837
1838 * xfns.c (x_real_positions): int ign => unsigned int.
1839 (xg_set_icon_from_xpm_data): Remove unused variable err.
1840 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
1841 to remove compiler warning.
1842 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
1843
1844 2005-12-02 David Reitter <david.reitter@gmail.com>
1845
1846 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
1847 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
1848 and Vminibuffer_local_must_match_filename_map keymaps.
1849 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
1850
1851 * keymap.c (Vminibuffer_local_filename_completion_map)
1852 (Vminibuffer_local_must_match_filename_map): New variables.
1853 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
1854 parent to be Vminibuffer_local_completion_map and
1855 Vminibuffer_local_must_match_map, respectively.
1856
1857 * commands.h (Vminibuffer_local_filename_completion_map)
1858 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
1859
1860 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
1861
1862 * window.c (Fset_window_configuration): Don't accidentally copy the
1863 window-point of one window to another.
1864
1865 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
1866
1867 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
1868
1869 2005-11-30 Kim F. Storm <storm@cua.dk>
1870
1871 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
1872 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
1873 passing it to `emacs_write'.
1874
1875 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
1876
1877 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
1878
1879 2005-11-27 Richard M. Stallman <rms@gnu.org>
1880
1881 * window.c (adjust_window_trailing_edge): New function.
1882 (Fadjust_window_trailing_edge): New function.
1883 (syms_of_window): Defsubr it.
1884 (window_deletion_count): New variable.
1885 (delete_window): Update window_deletion_count.
1886
1887 2005-11-26 Eli Zaretskii <eliz@gnu.org>
1888
1889 * minibuf.c (syms_of_minibuf): Mention the extension of
1890 `completion-auto-help's meaning by complete.el.
1891
1892 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
1893
1894 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
1895 Handle :inherit property as a lisp expression.
1896
1897 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1898
1899 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
1900 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
1901 Qsuper, and Qmodifier_value.
1902 (Vmac_control_modifier, Vmac_option_modifier)
1903 (Vmac_command_modifier, Vmac_function_modifier)
1904 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
1905 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
1906 (Vmac_charset_info_alist): Doc fixes.
1907
1908 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1909
1910 * emacs.c (main) [MAC_OSX]: Change working directory to home
1911 directory if `-psn_*' option is specified.
1912
1913 * mac.c (DECODE_UTF_8): Remove macro.
1914 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
1915 created from cfstring_to_lisp.
1916 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
1917 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
1918
1919 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
1920 Add prototype.
1921
1922 2005-11-21 Ken Raeburn <raeburn@gnu.org>
1923
1924 * keymap.c (shadow_lookup): Use make_number to pass a number to
1925 Fsubstring.
1926
1927 2005-11-21 Juri Linkov <juri@jurta.org>
1928
1929 * puresize.h (BASE_PURESIZE): Increment to 1180000.
1930
1931 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
1932
1933 * xfaces.c (Finternal_set_lisp_face_attribute):
1934 Use :ignore-defface for new frame defaults when `unspecified' is
1935 supplied.
1936 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
1937 (merge_face_vectors): Don't do :ignore-defface overwriting here.
1938 (Finternal_merge_in_global_face): Do it here.
1939
1940 2005-11-20 Juri Linkov <juri@jurta.org>
1941
1942 * charset.c (invalid_character): Use Lisp-readable syntax
1943 for octal and hex. Reorder decimal, octal and hex values.
1944
1945 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
1946
1947 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
1948 this type is recognised when debugging.
1949
1950 2005-11-19 Andreas Schwab <schwab@suse.de>
1951
1952 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
1953 Lisp_Cons and Lisp_Float.
1954
1955 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1956
1957 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
1958 New variable.
1959 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
1960 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
1961 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
1962 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
1963
1964 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
1965
1966 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
1967
1968 * xfaces.c (Qignore_defface): New variable.
1969 (syms_of_xfaces): Provide `:ignore-defface'.
1970 (IGNORE_DEFFACE_P): New macro.
1971 (check_lface_attrs, lface_fully_specified_p)
1972 (Finternal_set_lisp_face_attribute)
1973 (Fface_attribute_relative_p, Fmerge_face_attribute):
1974 Handle Qignore_defface as a possible value.
1975 (merge_face_vectors): The merged face is `unspecified' if the
1976 mergee specifies `:ignore-defface'.
1977
1978 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
1979
1980 * lread.c (readevalloop): Add missing GCPROs.
1981
1982 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
1983
1984 * xfns.c (xg_set_icon_from_xpm_data): New function.
1985
1986 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
1987 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
1988
1989 * xterm.c (x_bitmap_icon): Use the xpm if available.
1990
1991 * image.c (x_create_bitmap_from_xpm_data): New function.
1992 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
1993
1994 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
1995
1996 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
1997
1998 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
1999
2000 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
2001
2002 2005-11-15 Andreas Schwab <schwab@suse.de>
2003
2004 * lisp.h (struct Lisp_Cons): Make cdr a union.
2005 (XCDR_AS_LVALUE): Adjust.
2006 (struct Lisp_Float): Make data a union.
2007 (XFLOAT_DATA): Adjust.
2008
2009 * alloc.c (free_float): Make free list chaining aliasing-safe.
2010 (make_float): Likewise.
2011 (free_cons): Likewise.
2012 (Fcons): Likewise.
2013 (check_cons_list): Likewise.
2014 (Fmake_symbol): Likewise.
2015 (allocate_misc): Likewise.
2016 (free_misc): Likewise.
2017 (gc_sweep): Likewise.
2018
2019 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2020
2021 * mac.c (HASHKEY_QUERY_CACHE): New define.
2022 (xrm_create_database, xrm_q_put_resource): Empty query cache.
2023 (xrm_get_resource): Use query cache.
2024
2025 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
2026 inhibit_window_system is set.
2027
2028 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2029
2030 * macgui.h (USE_CG_TEXT_DRAWING): New define.
2031 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
2032 and cg_glyphs.
2033
2034 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
2035 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
2036 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
2037 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
2038 not used and font substitution never occurs for ASCII and Latin-1
2039 characters.
2040 (XLoadQueryFont): Maximum and minimum metrics are now those among
2041 ASCII characters.
2042 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
2043 height adjustments for Courier, Helvetica, and Times.
2044
2045 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
2046
2047 2005-11-11 David Reitter <david.reitter@gmail.com>
2048
2049 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
2050 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
2051 Vmac_control_modifier / mac-control-modifier,
2052 Vmac_option_modifier / mac-option-modifier,
2053 Vmac_command_modifier / mac-command-modifier.
2054 (mac_to_emacs_modifiers): Use the new style modifier
2055 variables. Return UInt32 (modifiers are longs now.)
2056 (backtranslate_modified_keycode): New function (refactoring).
2057 (XTread_socket): Use new modifier variables and refactored function.
2058 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
2059 no dedicated meta key. Not in use anyway.)
2060 (convert_fn_keycode): Map Fn-keys to their original keycode
2061 using a table (english keyboard only).
2062
2063 2005-11-11 Kim F. Storm <storm@cua.dk>
2064
2065 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
2066 Add post hook to "backtrace" to always dump lisp call stack to
2067 increase chance of people sending it to us when reporting bugs.
2068
2069 * doc.c (Fsubstitute_command_keys): Doc fix.
2070
2071 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
2072
2073 * xdisp.c (handle_stop): Skip overlay string handling if
2074 ignore_overlay_strings_at_pos_p is set.
2075 (set_iterator_to_next): At end of display vector, set
2076 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
2077 string, so we skip those overlay strings at current pos.
2078
2079 2005-11-10 Lars Hansen <larsh@soem.dk>
2080
2081 * fileio.c (file-regular-p): Doc fix.
2082
2083 2005-11-10 Kim F. Storm <storm@cua.dk>
2084
2085 * alloc.c (valid_lisp_object_p): New function to validate that
2086 an object is really a valid Lisp_Object.
2087
2088 * lisp.h (valid_lisp_object_p): Add prototype.
2089
2090 * print.c (safe_debug_print): New function to be called from gdb
2091 to print Lisp objects; use valid_lisp_object_p to avoid crashing
2092 if user tries to print something which is not a Lisp object.
2093
2094 * .gdbinit (pp, pp1): Use safe_debug_print.
2095 (pv, pv1): New commands to print value of a lisp variable.
2096
2097 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
2098
2099 * .gdbinit (pp1): New user-defined function.
2100
2101 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2102
2103 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
2104
2105 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
2106 related variables for dumped executable.
2107
2108 * unexmacosx.c (unexec_write_zero): New function.
2109 (copy_data_segment): Clear uninitialized local variables in
2110 statically linked libraries.
2111
2112 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
2113
2114 2005-11-09 Juri Linkov <juri@jurta.org>
2115
2116 * keymap.c (shadow_lookup): If Flookup_key returns a number,
2117 call it again with a sub-key-sequence, and if its return value
2118 is non-nil (sub-key is bound), return nil.
2119
2120 2005-11-08 Kim F. Storm <storm@cua.dk>
2121
2122 * process.c (Fsignal_process): Recognize signal names with and
2123 without SIG prefix, e.g. SIGHUP and HUP.
2124
2125 * search.c (search_buffer): No need to initialize base_pat.
2126
2127 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
2128
2129 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
2130 Don't abuse the `mini' arg. Use the `obj' arg instead.
2131
2132 2005-11-04 Kim F. Storm <storm@cua.dk>
2133
2134 * xdisp.c (show_mouse_face): Clear mouse face to eol.
2135
2136 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
2137
2138 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
2139 font-lock.elc and jit-lock.elc.
2140
2141 2005-11-03 Richard M. Stallman <rms@gnu.org>
2142
2143 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
2144 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
2145 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
2146
2147 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
2148
2149 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
2150
2151 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2152
2153 * window.c (Fdisplay_buffer): Fix last change to not use
2154 a dedicated window.
2155
2156 2005-11-01 Kim F. Storm <storm@cua.dk>
2157
2158 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
2159 Instead, rotate the bottom angle bitmap 180 degrees to indicate
2160 that the bottom row does not end in a newline.
2161
2162 2005-11-01 Andreas Schwab <schwab@suse.de>
2163
2164 * unexelf.c (unexec): Handle .plt section in BSS segment.
2165
2166 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
2167
2168 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
2169
2170 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
2171 determine whether to consider dedicated windows as well.
2172 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
2173 (Fdisplay_buffer): Do consider dedicated windows in those cases where
2174 we will split the window rather than reuse it.
2175 Don't try to use windows on other displays.
2176
2177 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
2178
2179 * puresize.h (BASE_PURESIZE): Increment to 1170000.
2180
2181 2005-10-31 Romain Francoise <romain@orebokech.com>
2182
2183 * macfns.c: Update copyright year.
2184 * m/gould.h: Likewise.
2185
2186 2005-10-30 Kim F. Storm <storm@cua.dk>
2187
2188 * xdisp.c (display_line): Restore it->current_x and call
2189 extend_face_to_end_of_line when last glyph doesn't fit on line.
2190 (set_glyph_string_background_width): Remove specific tests here
2191 to see if face background should extend to end of line. Simplify.
2192
2193 2005-10-30 Richard M. Stallman <rms@gnu.org>
2194
2195 * alloc.c (BYTES_USED): Use uordblks, not arena.
2196 (bytes_used_when_reconsidered): New variable.
2197 (emacs_blocked_free): Set that.
2198
2199 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
2200
2201 * alloc.c (emacs_blocked_free): Fix typo.
2202
2203 2005-10-29 Richard M. Stallman <rms@gnu.org>
2204
2205 * data.c (Fmake_variable_frame_local): Doc fix.
2206
2207 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
2208 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
2209 controls whether to save and restore mode_line_proptrans_alist.
2210 Callers changed.
2211 (unwind_format_mode_line): Work with that feature.
2212 (redisplay_internal): Don't call prepare_menu_bars if memory full.
2213 (move_elt_to_front): New function.
2214 (display_mode_element): Use move_elt_to_front.
2215 Don't bother munging text props on a null string.
2216 Delete obsolete elts from mode_line_proptrans_alist.
2217 (decode_mode_spec): Test Vmemory_full, not spare_memory.
2218 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
2219
2220 * lisp.h (memory_full_cons_threshold): Declare.
2221 (internal_lisp_condition_case): Declare.
2222
2223 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
2224 (Fmemory_full_p): Function deleted.
2225 (syms_of_alloc): Don't defsubr it.
2226 (memory_full_cons_threshold): New variable.
2227 (spare_memory): Now a vector of 7 elts.
2228 (buffer_memory_full): Don't set Vmemory_full here.
2229 (xfree): Don't try to refill here.
2230 (emacs_blocked_free): Record BYTES_USED in local var.
2231 (memory_full): Now free all the slots in spare_memory.
2232 (refill_memory_reserve): Allocate each slot in spare_memory.
2233 (init_alloc_once): Call refill_memory_reserve.
2234
2235 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
2236
2237 * eval.c (internal_lisp_condition_case): New function.
2238 (Fcondition_case): Use internal_lisp_condition_case.
2239 (Feval): Test Vmemory_full and memory_full_cons_threshold.
2240 (Ffuncall): Likewise.
2241
2242 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
2243
2244 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
2245
2246 * syntax.c (Fparse_partial_sexp): Fix docstring.
2247
2248 2005-10-28 Romain Francoise <romain@orebokech.com>
2249
2250 * puresize.h (BASE_PURESIZE): Increment to 1130000.
2251
2252 2005-10-28 Richard M. Stallman <rms@gnu.org>
2253
2254 * xfns.c (syms_of_xfns): Provide `x' as feature.
2255
2256 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
2257
2258 * editfns.c (Fformat): Don't include string padding
2259 between info[n].start and info[n].end.
2260
2261 * alloc.c (spare_memory): No longer static.
2262 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
2263
2264 * puresize.h (BASE_PURESIZE): Increment to 1120000.
2265
2266 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
2267
2268 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
2269
2270 * fringe.c (update_window_fringes): Handle case where buffer ends
2271 with a newline.
2272
2273 2005-10-27 Kenichi Handa <handa@m17n.org>
2274
2275 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
2276
2277 2005-10-24 Kenichi Handa <handa@m17n.org>
2278
2279 * charset.h (charset_mule_unicode_0100_24ff)
2280 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
2281 Extern them.
2282
2283 * charset.c (charset_mule_unicode_0100_24ff)
2284 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
2285 New variables.
2286 (Fsetup_special_charsets): Initialize them.
2287
2288 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
2289 supported Unicode characters.
2290
2291 2005-10-25 Jason Rumney <jasonr@gnu.org>
2292
2293 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
2294
2295 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2296
2297 * image.c [MAC_OS] (image_load_qt_1): Check image size.
2298 Use GraphicsImportGetImageDescription instead of
2299 GraphicsImportGetNaturalBounds.
2300 [MAC_OSX] (image_load_quartz2d): Check image size.
2301 [MAC_OS] (xpm_load_image): Likewise.
2302
2303 * macterm.c (last_mouse_glyph_frame): New var.
2304 (note_mouse_movement): Say mouse moved if current frame differs
2305 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2306 (XTmouse_position): Set last_mouse_glyph_frame.
2307 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
2308 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
2309 Use EndianU16_BtoN.
2310 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
2311 (x_per_char_metric, XLoadQueryFont)
2312 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
2313 glyph bounds.
2314 (mac_to_x_fontname, mac_do_list_fonts)
2315 (mac_initialize_display_info): Change screen resolutions to 72dpi.
2316
2317 2005-10-25 Masatake YAMATO <jet@gyve.org>
2318
2319 * minibuf.c (Fdisplay_completion_list): Small doc fix.
2320
2321 2005-10-24 Kim F. Storm <storm@cua.dk>
2322
2323 * xterm.c: Undo 2005-10-23 change.
2324 (last_mouse_glyph_frame): New var.
2325 (note_mouse_movement): Say mouse moved if current frame differs
2326 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2327 (XTmouse_position): Set last_mouse_glyph_frame.
2328 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
2329 last_mouse_glyph] on mouse up/down event.
2330
2331 * editfns.c (Fcompare_buffer_substrings): Fix last change.
2332
2333 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2334
2335 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
2336
2337 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2338
2339 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
2340 so tool tips don't interfere with press on tool bar button.
2341
2342 2005-10-23 Richard M. Stallman <rms@gnu.org>
2343
2344 * casetab.c (Fset_case_table): Doc fix.
2345
2346 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
2347 (readevalloop): Compute ENTIRE properly.
2348 (syms_of_lread) <load-history>: Doc fix.
2349
2350 2005-10-21 Richard M. Stallman <rms@gnu.org>
2351
2352 * lread.c (Fload): Simplify gcpro structure.
2353 Gcpro FOUND as well as FILE, but not EFOUND.
2354 Unless preloading, record FOUND instead of FILE in Vload_history.
2355 Rename repeat local FILE to MSG_FILE.
2356 (syms_of_lread) <load-history>: Doc fix.
2357
2358 2005-10-21 Kenichi Handa <handa@m17n.org>
2359
2360 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
2361
2362 2005-10-20 Kim F. Storm <storm@cua.dk>
2363
2364 * buffer.c (clone_per_buffer_values): Remove unused var tem.
2365 (init_buffer): Remove unused vars dotstat, pwdstat.
2366
2367 * ccl.c (check_ccl_update): Remove unused var vp.
2368
2369 * fileio.c (auto_save_error): Call SAFE_FREE.
2370
2371 * fns.c (Fchar_table_range): Remove unused var i.
2372
2373 * minibuf.c (display_completion_list_1): New wrapper function
2374 for Fdisplay_completion_list.
2375 (Fminibuffer_completion_help): Use it.
2376
2377 * term.c (encode_terminal_code): Remove unused var src_start.
2378
2379 * window.c (Fwindow_tree): Remove unused var alist.
2380
2381 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
2382
2383 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
2384
2385 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
2386
2387 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
2388
2389 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
2390
2391 2005-10-20 Andreas Schwab <schwab@suse.de>
2392
2393 * minibuf.c (Fdisplay_completion_list): Doc fix.
2394
2395 2005-10-19 Kim F. Storm <storm@cua.dk>
2396
2397 * image.c (check_image_size): Handle integer Vmax_image_size value
2398 directly as max pixel value. Use default frame size for null frame.
2399 (syms_of_image) <max-image-size>: Describe integer value.
2400
2401 2005-10-19 Romain Francoise <romain@orebokech.com>
2402
2403 * emacs.c (main): Update copyright year.
2404
2405 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
2406
2407 * image.c (Vmax_image_size): New variable.
2408 (check_image_size): New function.
2409 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
2410 (gif_load, gs_load): Use it.
2411 (lookup_image): Try loading again if previous load failed.
2412 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
2413 to display in, NULL if none.
2414 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
2415 argument.
2416
2417 2005-10-18 Richard M. Stallman <rms@gnu.org>
2418
2419 * search.c (Fstring_match): Doc fix.
2420
2421 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2422
2423 * macterm.c (note_mouse_movement): Use PtInRect.
2424 (XTread_socket): Also ignore mouse motion just before a button
2425 release event. Don't process button release event when mouse is
2426 not grabbed.
2427
2428 2005-10-16 Masatake YAMATO <jet@gyve.org>
2429
2430 * minibuf.c (Fdisplay_completion_list): Add new optional
2431 argument COMMON_SUBSTRING. Bind `completion-common-substring'
2432 to the optional argument during running `completion-setup-hook'.
2433
2434 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2435
2436 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
2437 Allow nil as argument.
2438 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
2439 for encoding arguments as UTF-16 in native byte order, no BOM.
2440
2441 * macfns.c (Fx_create_frame): Add debugging code.
2442 (Fx_show_tip): Set frame pixel width and height.
2443
2444 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
2445 (FRAME_NORMAL_GC): New macro.
2446 (mac_draw_line, mac_clear_area, mac_clear_window)
2447 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
2448 (mac_draw_image_string, mac_draw_image_string_16): Rename from
2449 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
2450 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
2451 All uses changed.
2452 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
2453 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
2454 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
2455 (mac_draw_string_16, mac_draw_image_string)
2456 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
2457 (mac_scroll_area): Drawing functions now take frame as destination.
2458 All uses changed.
2459 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
2460 (x_draw_fringe_bitmap): Set clipping area in face->gc.
2461
2462 * macterm.h (mac_clear_area): Add extern.
2463
2464 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2465
2466 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
2467 changes for xterm.c.
2468
2469 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
2470
2471 2005-10-14 Kenichi Handa <handa@m17n.org>
2472
2473 * search.c (search_buffer): Give up BM search on case-fold-search
2474 if one of a target character has a case-equivalence of different
2475 charset even if that target charcter is an ASCII.
2476
2477 * casefiddle.c (casify_object): Fix for the case that case
2478 conversion change the byte length.
2479
2480 2005-10-14 Kim F. Storm <storm@cua.dk>
2481
2482 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
2483 (handle_one_xevent): Only clear help_echo_string; restore it if
2484 note_mouse_movement didn't record any mouse movement.
2485
2486 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
2487 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
2488
2489 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
2490 (Fposn_at_x_y): Fix calculation of x coordinate.
2491 (Fposn_at_point): Return nil if point is hscrolled out of view.
2492
2493 2005-10-13 Andreas Schwab <schwab@suse.de>
2494
2495 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
2496 non-interactive mode.
2497
2498 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2499
2500 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
2501
2502 2005-10-12 Kim F. Storm <storm@cua.dk>
2503
2504 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
2505
2506 2005-10-12 Romain Francoise <romain@orebokech.com>
2507
2508 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
2509
2510 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2511
2512 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
2513 get end of text rows. Obtain header-line/mode-line rows directly.
2514
2515 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
2516 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
2517
2518 2005-10-12 Kim F. Storm <storm@cua.dk>
2519
2520 * xdisp.c (remember_mouse_glyph): New generic version based on
2521 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
2522 properly handle all different window areas.
2523
2524 * dispextern.h (remember_mouse_glyph): Add prototype.
2525
2526 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
2527 (note_mouse_movement, XTmouse_position): Use generic
2528 remember_mouse_glyph, add last_mouse_glyph arg.
2529
2530 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
2531 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
2532 (note_mouse_movement, w32_mouse_position): Use generic
2533 remember_mouse_glyph, add last_mouse_glyph arg.
2534
2535 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
2536 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
2537 (XTmouse_position): Adapt to use generic remember_mouse_glyph
2538 instead of pixel_to_glyph_coords.
2539
2540 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
2541 Fix x position for ON_TEXT when left margin width > 0.
2542
2543 2005-10-11 Kim F. Storm <storm@cua.dk>
2544
2545 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
2546
2547 * keyboard.c (make_lispy_position): Fix buffer calculations for
2548 mouse click or movement in right fringe and the margins.
2549
2550 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
2551
2552 * image.c (fn_jpeg_stdio_src): Don't define it.
2553 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
2554 (our_common_init_source): Rename from `our_init_source'.
2555 (our_common_term_source): Rename from `our_term_source'.
2556 (our_memory_fill_input_buffer): Rename from
2557 `our_fill_input_buffer'.
2558 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
2559 (jpeg_memory_src): Use the new names.
2560 (struct jpeg_stdio_mgr): New struct.
2561 (JPEG_STDIO_BUFFER_SIZE): New constant.
2562 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
2563 (jpeg_file_src): New functions.
2564 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
2565
2566 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2567
2568 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
2569 (fm_font_family_alist): New variable.
2570 (syms_of_macterm): Initialize and staticpro it.
2571 (decode_mac_font_name): Replace '-' in family name with '_' if it
2572 occurs just once. Lower family name.
2573 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
2574 All uses changed. Remove argument MF and code conversion for it.
2575 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
2576 to CHARSET. Parse font size. Lower family name. Return integer
2577 value for status of parsing.
2578 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
2579 Don't use Fdowncase because family name is already lowered by
2580 decode_mac_font_name.
2581 (init_font_name_table): Always call decode_mac_font_name.
2582 Add pair of family name and its reference to fm_font_family_alist.
2583 (mac_clear_font_name_table): Clear fm_font_family_alist.
2584 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
2585 Lookup fm_font_family_alist to get font family reference.
2586 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
2587 name is already lowered by parse_x_font_name.
2588
2589 2005-10-11 Kim F. Storm <storm@cua.dk>
2590
2591 * xterm.c (glyph_rect): Return 0 if position is outside text area.
2592
2593 * keyboard.c (make_lispy_position): Fix buffer position calculation for
2594 mouse click or movement in fringe.
2595
2596 2005-10-10 Jason Rumney <jasonr@gnu.org>
2597
2598 * xterm.c (remember_mouse_glyph): New function.
2599 (note_mouse_movement): Use it to remember the current glyph if changed.
2600 (XTmouse_position): Fix calculation of fake glyph under mouse.
2601 Move code to calculate glyph under mouse into remember_mouse_glyph.
2602
2603 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2604
2605 * emacs.c (USAGE3, standard_args): -nb => -nbi.
2606
2607 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
2608
2609 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
2610 (next_frame, prev_frame, set_term_frame_name): Make static.
2611
2612 * window.c (Fwindow_tree): Fix spelling.
2613
2614 2005-10-09 Romain Francoise <romain@orebokech.com>
2615
2616 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
2617
2618 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2619
2620 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
2621 Add options -nb, --no-bitmap-icon.
2622
2623 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
2624
2625 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2626
2627 * macgui.h (MAX_CLIP_RECTS): New define.
2628 (struct _XGC): New member clip_region.
2629 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
2630 clip_rects.
2631
2632 * macterm.c (GC_CLIP_REGION): New macro.
2633 (saved_port_clip_region): New variable.
2634 (mac_begin_clip, mac_end_clip): New functions.
2635 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
2636 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
2637 (mac_copy_area_with_mask, mac_scroll_area): Use them.
2638 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
2639 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
2640 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
2641 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
2642 rectangles stored in gc.
2643 (XFreeGC): Dispose of clipping region.
2644 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
2645 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
2646 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
2647 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
2648 (x_draw_bar_cursor): Use them.
2649 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
2650 get multiple clipping rectangles.
2651
2652 * macterm.h (mac_term_init): Add types to extern.
2653 (struct mac_output): Remove members mWP and pending_menu_activation.
2654 Put members scroll_bar_foreground_pixel and
2655 scroll_bar_background_pixel in #if 0.
2656 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
2657
2658 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
2659 Add debugging code.
2660
2661 2005-10-08 Kim F. Storm <storm@cua.dk>
2662
2663 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
2664
2665 2005-10-07 Kim F. Storm <storm@cua.dk>
2666
2667 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
2668 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
2669 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
2670
2671 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2672
2673 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
2674 to for_overlaps. Now occupy 3 bits.
2675 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
2676 (OVERLAPS_ERASED_CURSOR): New defines.
2677 (struct redisplay_interface): Add new OVERLAPS arg to member
2678 fix_overlapping_area.
2679 (x_fix_overlapping_area): Add new OVERLAPS arg.
2680 (get_glyph_string_clip_rects): Add extern.
2681
2682 * dispnew.c (redraw_overlapping_rows):
2683 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
2684
2685 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
2686 for_overlaps.
2687 (get_glyph_string_clip_rects): New function created from
2688 get_glyph_string_clip_rect. Set clipping rectangles according to the
2689 value of for_overlaps. Enable to store multiple clipping rectangles.
2690 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
2691 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
2692 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
2693 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
2694 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
2695 calculating clipping rectangles later. Call x_fix_overlapping_area
2696 with new OVERLAPS arg to draw only erased cursor area.
2697 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
2698 to draw overlaps in both preceding and succeeding rows.
2699
2700 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
2701 struct glyph_string to for_overlaps.
2702
2703 2005-10-04 Richard M. Stallman <rms@gnu.org>
2704
2705 * alloc.c (refill_memory_reserve): Conditionalize the body,
2706 not the function's existence.
2707
2708 2005-10-04 Kim F. Storm <storm@cua.dk>
2709
2710 * window.c (window_split_tree): New function.
2711 (Fwindow_split_tree): New defun.
2712 (syms_of_window): Defsubr it.
2713
2714 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2715
2716 * macterm.c (mac_invert_rectangle): New function.
2717 (XTflash): Use it.
2718
2719 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
2720
2721 * regex.h (re_char): Don't expose it in the interface.
2722 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
2723
2724 * regex.c (re_char): Move it back here.
2725 (re_set_whitespace_regexp): Change the arg's type to not use it.
2726
2727 * keyboard.c (make_lispy_event): If point has moved between down and up
2728 event, make it a drag, not a click, to mirror what
2729 mouse-drag-region expects.
2730
2731 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
2732
2733 * lisp.h (fatal): Undo previous change.
2734 * term.c (fatal): Undo previous change.
2735
2736 2005-10-01 Richard M. Stallman <rms@gnu.org>
2737
2738 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
2739
2740 2005-10-01 Kim F. Storm <storm@cua.dk>
2741
2742 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
2743
2744 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2745
2746 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
2747
2748 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
2749 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
2750 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
2751 Try ATSUI-compatible 12pt Monaco font first.
2752
2753 * macgui.h (struct _XCharStruct): New member valid_p.
2754 (STORE_XCHARSTRUCT): Set valid_p.
2755 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
2756
2757 * macterm.c (mac_draw_string_common, x_per_char_metric)
2758 (mac_compute_glyph_string_overhangs, init_font_name_table)
2759 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
2760 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
2761 (x_draw_glyph_string_background)
2762 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
2763 XDrawImageString. Always draw background and foreground separately.
2764 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
2765 functions for one-byte chars when using ATSUI-compatible fonts.
2766 (atsu_font_id_hash) [USE_ATSUI]: New variable.
2767 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
2768 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
2769 max_char_or_byte2 more in detail.
2770 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
2771
2772 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
2773
2774 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
2775 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
2776
2777 * unexelf.c (fatal): Fix prototype.
2778
2779 * term.c (fatal): Implement using varargs.
2780
2781 * regex.c (re_char): Move typedef ...
2782 * regex.h (re_char): ... here.
2783 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
2784
2785 * emacs.c (malloc_set_state): Fix return type.
2786 (endif): Fix type.
2787
2788 * lisp.h (fatal): Add argument types.
2789
2790 * dispextern.h (fatal): Delete prototype.
2791
2792 * systime.h (make_time): Prototype moved from ...
2793 * editfns.c (make_time): ... here.
2794
2795 * editfns.c: Move systime.h include after lisp.h.
2796 * dired.c:
2797 * xsmfns.c:
2798 * process.c: Likewise.
2799
2800 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
2801 Add parameter types.
2802 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
2803 (emacs_blocked_free): Change definition to match __free_hook.
2804 (emacs_blocked_malloc): Change definition to match __malloc_hook.
2805 (emacs_blocked_realloc): Change definition to match __realloc_hook.
2806
2807 2005-09-30 Romain Francoise <romain@orebokech.com>
2808
2809 * minibuf.c (Fread_buffer): Follow convention for reading from the
2810 minibuffer with a default value. Doc fix.
2811
2812 2005-09-29 Juri Linkov <juri@jurta.org>
2813
2814 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
2815 Rename argument name `string' to `format-string'.
2816 (Fformat): Doc fix.
2817
2818 2005-09-28 Kim F. Storm <storm@cua.dk>
2819
2820 * image.c (gif_load): Fix size of allocated image buffer
2821 for images where a sub-image may be larger than the image's
2822 total height/width specifications.
2823
2824 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2825
2826 * macgui.h (struct _XCharStruct): Each member now takes short value.
2827
2828 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
2829
2830 * xfaces.c (lookup_derived_face): Add parameter type.
2831
2832 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
2833
2834 * marker.c (verify_bytepos): Add parameter type.
2835
2836 * process.c (get_operating_system_release): Move prototype ...
2837
2838 * systime.h (get_operating_system_release): ... here.
2839
2840 * xterm.c (handle_one_xevent): Refer to union field to match the
2841 type required by the function definition.
2842 (set_vertical_scroll_bar): Move prototype ...
2843
2844 * xterm.h: ... here.
2845
2846 * fns.c (internal_equal, seed_random): Fix prototypes.
2847 (internal_equal): Add missing parameter.
2848
2849 2005-09-25 Richard M. Stallman <rms@gnu.org>
2850
2851 * keyboard.c (update_menu_bindings): Variable deleted.
2852 (syms_of_keyboard): Don't defvar it.
2853 (parse_menu_item): Don't test it.
2854
2855 2005-09-23 Richard M. Stallman <rms@gnu.org>
2856
2857 * editfns.c (Fformat): Explicitly test for end of format string
2858 and don't use `index'.
2859
2860 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
2861
2862 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
2863 Define BROKEN_GET_CURRENT_DIR_NAME.
2864
2865 * sysdep.c (get_current_dir_name): Also define if
2866 BROKEN_GET_CURRENT_DIR_NAME.
2867
2868 * m/ibmrs6000.h: Test for USG5, not USG5_4.
2869
2870 2005-09-22 Kim F. Storm <storm@cua.dk>
2871
2872 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
2873 (message2): Fix commentary. Ok to use alloca'ed memory.
2874 Still not ok to use Lisp string data (because of GC).
2875 (set_message): Add comment why GC cannot happen.
2876
2877 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2878
2879 * macterm.c (xlfdpat_block_match_1): Fix assertion.
2880 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
2881 variants for a scalable font multiple times.
2882
2883 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2884
2885 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
2886 Setup slave tty options before forking.
2887
2888 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2889
2890 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
2891 positions have been set for the frame (as is done for frames in
2892 special-display-buffer-names).
2893
2894 2005-09-19 Kim F. Storm <storm@cua.dk>
2895
2896 * editfns.c (Fformat): Don't scan past end of format string that
2897 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
2898
2899 2005-09-18 Andreas Schwab <schwab@suse.de>
2900
2901 * window.h (struct window): Remove height_fixed_p, no longer set.
2902
2903 * window.c (make_window): Don't initialize height_fixed_p.
2904 (window_fixed_size_p): Don't use it.
2905
2906 2005-09-18 John Paul Wallington <jpw@pobox.com>
2907
2908 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
2909
2910 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2911
2912 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
2913
2914 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2915 New variables.
2916 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
2917 file selection.
2918
2919 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
2920
2921 2005-09-17 Eli Zaretskii <eliz@gnu.org>
2922
2923 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
2924 (obj): Use XMENU_OBJ, not a literal xmenu.o.
2925
2926 2005-09-16 Romain Francoise <romain@orebokech.com>
2927
2928 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
2929
2930 2005-09-15 Richard M. Stallman <rms@gnu.org>
2931
2932 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
2933 (display_mode_element): Instead of `lisp_string' and `this',
2934 record `offset' and increment that.
2935 `last_offset' replaces `last'.
2936
2937 * Makefile.in (XMENU_OBJ): Variable deleted.
2938 (obj): Use xmenu.o unconditionally.
2939 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
2940
2941 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
2942
2943 2005-09-15 Kim F. Storm <storm@cua.dk>
2944
2945 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
2946 (reseat_at_next_visible_line_start): Likewise (in xassert).
2947
2948 2005-09-14 Romain Francoise <romain@orebokech.com>
2949
2950 * fileio.c (write_region_inhibit_fsync): New variable.
2951 (Fwrite_region): Use it to skip call to fsync.
2952 (syms_of_fileio): Initialize it.
2953
2954 2005-09-14 Kenichi Handa <handa@m17n.org>
2955
2956 * coding.c (code_convert_region_unwind): Argument format changed.
2957 (run_pre_post_conversion_on_str): If pre-write-conversion function
2958 changed the current buffer, delete the new buffer.
2959 (run_pre_write_conversin_on_c_str): Likewise.
2960
2961 * fileio.c (Fexpand_file_name): Check multibyteness of
2962 default_directory.
2963
2964 2005-09-13 Kenichi Handa <handa@m17n.org>
2965
2966 * composite.c (compose_chars_in_text): Delete it.
2967
2968 * composite.h (compose_chars_in_text): Delete extern.
2969
2970 2005-09-13 Kim F. Storm <storm@cua.dk>
2971
2972 * print.c (print_error_message): Fix last change.
2973
2974 2005-09-12 Kim F. Storm <storm@cua.dk>
2975
2976 * composite.c (compose_chars_in_text): Fix setup of `pend'.
2977 Unconditionally reload `ptr' and `pend' after eval.
2978
2979 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
2980
2981 * print.c (print_error_message): Pass copy of caller name to
2982 message_dolog.
2983
2984 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
2985
2986 2005-09-12 Kenichi Handa <handa@m17n.org>
2987
2988 * xdisp.c (display_mode_element): Be sure to make variables THIS
2989 and LISP_STRING point into a string data of ELT.
2990
2991 2005-09-12 Kim F. Storm <storm@cua.dk>
2992
2993 * editfns.c (Ftranslate_region_internal): Reload `tt' after
2994 signal_after_change that may have GC'ed.
2995 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
2996
2997 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
2998 after insert while runs signal_after_change.
2999
3000 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
3001 declaration to where it is used.
3002
3003 * w32.c (check_windows_init_file): Fix allocation of error buffer.
3004
3005 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
3006 (x_set_name_internal): Call x_encode_text with new FREEP arg to
3007 know if xfree is needed instead of guessing.
3008
3009 * xterm.h (x_encode_text): Remove prototype.
3010
3011 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
3012
3013 * w32term.c (x_bitmap_icon): Load small icons too.
3014
3015 2005-09-10 Romain Francoise <romain@orebokech.com>
3016
3017 * buffer.c (init_buffer): Grow buffer to add directory separator
3018 and terminal zero. Fix typos.
3019
3020 2005-09-10 Eli Zaretskii <eliz@gnu.org>
3021
3022 * buffer.c (init_buffer): Fix error message for failed call to
3023 get_current_dir_name.
3024 (get_current_dir_name): Remove prototype.
3025
3026 * xsmfns.c (get_current_dir_name): Remove prototype.
3027
3028 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
3029 Add prototype.
3030
3031 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
3032 Don't #undef NULL after including blockinput.h.
3033
3034 * config.in: Regenerated.
3035
3036 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
3037
3038 Remove the MAXPATHLEN limitations:
3039
3040 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
3041 New function.
3042
3043 * buffer.c (init_buffer): Use it.
3044
3045 * xsmfns.c (smc_save_yourself_CB): Ditto.
3046
3047 2005-09-09 Kim F. Storm <storm@cua.dk>
3048
3049 * doc.c (Fsubstitute_command_keys): Lookup key binding for
3050 commands that are remapped from some other command.
3051
3052 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
3053 flag in disabled rows below the window.
3054
3055 * frame.h (struct frame): New member updated_p.
3056
3057 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
3058 member. Remove local `updated' array and associated variables.
3059
3060 2005-09-07 Kim F. Storm <storm@cua.dk>
3061
3062 * xdisp.c (handle_display_prop): Respect overlay window property.
3063
3064 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
3065 Fixes crash reported by YAMAMOTO Mitsuharu.
3066
3067 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3068
3069 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
3070 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
3071 (xlfdpat_block_match_1, xlfdpat_match): New functions.
3072 (xlfdpat_block_match): New macro.
3073 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
3074 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
3075 (add_font_name_table_entry): Increase font_name_table_size more
3076 rapidly.
3077 (mac_c_string_match): Remove function.
3078 (mac_do_list_fonts): Use XLFD pattern match instead of regular
3079 expression match.
3080
3081 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
3082
3083 2005-09-03 Richard M. Stallman <rms@gnu.org>
3084
3085 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
3086 (move_it_in_display_line_to): Stop after last char on line even
3087 on a windowing terminal, if that's the specified stop position.
3088
3089 * fns.c (Fsort): Doc fix.
3090
3091 * editfns.c (Fpropertize): Don't insist that properties be symbols.
3092
3093 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
3094
3095 * dired.c (directory_files_internal_unwind, directory_files_internal)
3096 (file_name_completion): Use a Save_Value object rather than a cons of
3097 two 16bit ints to store the DIR*.
3098 (directory_files_internal, file_name_completion): Handle both EINTR and
3099 EAGAIN consistently after `readdir'.
3100
3101 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
3102
3103 * intervals.c (update_interval): Add position info in error.
3104
3105 * dispnew.c (window_to_frame_hpos, update_window):
3106 Avoid gcc warning about unused variable `f'.
3107
3108 2005-08-31 Jason Rumney <jasonr@gnu.org>
3109
3110 * w32menu.c (add_menu_item): If unicode_append_menu returns an
3111 error, revert to using AppendMenu.
3112
3113 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3114
3115 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
3116 All uses changed.
3117 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
3118 cases.
3119 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
3120 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
3121 Use posix_pathname_to_fsspec.
3122 [MAC_OS] (xpm_load_image): Fill in background_transparent field
3123 while we have mask.
3124
3125 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
3126
3127 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
3128
3129 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3130
3131 * syntax.c (update_syntax_table): Properly reproduce the special +1
3132 setting of e_property at the end of the buffer when bumping into the
3133 INTERVALS_AT_ONCE limit.
3134
3135 2005-08-27 Eli Zaretskii <eliz@gnu.org>
3136
3137 * emacs.c (USAGE1): Fix the description of the -Q option.
3138
3139 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
3140
3141 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
3142
3143 2005-08-26 Kim F. Storm <storm@cua.dk>
3144
3145 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
3146 Don't move PT to new window start.
3147
3148 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3149
3150 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
3151 ICONIFY/DEICONIFY_EVENT.
3152
3153 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
3154 Restore background color.
3155 (mac_handle_visibility_change): New function.
3156 (x_make_frame_invisible, x_iconify_frame)
3157 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
3158 [USE_CARBON_EVENTS] (mac_handle_window_event)
3159 (install_window_handler): Handle visibility change events.
3160 (x_make_frame_visible): Don't reposition window if it is iconified
3161 or asked for visible before. Select and uncollapse window when it
3162 is made visible.
3163 (x_make_frame_invisible): Don't reset x_highlight_frame.
3164 (x_iconify_frame): Likewise. Make invisible frame visible before
3165 it is iconified.
3166 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
3167 (do_window_update): Don't change visibility of invisible frame.
3168
3169 2005-08-22 Juri Linkov <juri@jurta.org>
3170
3171 * term.c (turn_on_face): Check for TS_set_foreground and
3172 TS_set_background depending on standout_mode. Simplify.
3173
3174 2005-08-21 Kim F. Storm <storm@cua.dk>
3175
3176 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
3177 bitmaps on fully visible rows.
3178
3179 * fringe.c (update_window_fringes): Replace FORCE_P arg with
3180 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
3181 and return 0.
3182
3183 * xdisp.c (redisplay_window): Call update_window_fringes with
3184 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
3185
3186 2005-08-20 Richard M. Stallman <rms@gnu.org>
3187
3188 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
3189 (resize_mini_window): Set w->start, and PT, so as to display the tail
3190 end of the buffer, if it doesn't all fit.
3191
3192 2005-08-18 Kim F. Storm <storm@cua.dk>
3193
3194 * xdisp.c (calc_pixel_width_or_height): Use actual display
3195 resolution when available instead of Vdisplay_pixels_per_inch.
3196
3197 2005-08-17 Kim F. Storm <storm@cua.dk>
3198
3199 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
3200
3201 * dispnew.c (buffer_posn_from_coords): Check that target row is
3202 within matrix.
3203
3204 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3205
3206 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
3207 xg_set_frame_icon and call it.
3208
3209 * gtkutil.c (xg_set_frame_icon): New function.
3210
3211 * gtkutil.h (xg_set_frame_icon): Declare it.
3212
3213 2005-08-16 Kim F. Storm <storm@cua.dk>
3214
3215 * dispnew.c (increment_row_positions): Skip non-enabled rows.
3216
3217 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
3218 (Fcurrent_window_configuration): Use VECSIZE macro instead.
3219
3220 2005-08-15 Richard M. Stallman <rms@gnu.org>
3221
3222 * xdisp.c (message3_nolog): Clear echo_message_buffer.
3223
3224 2005-08-15 Kim F. Storm <storm@cua.dk>
3225
3226 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
3227
3228 * process.c (deactivate_process, status_notify, read_process_output)
3229 (update_status, status_convert, decode_status, allocate_pty)
3230 (make_process, remove_process, list_processes_1)
3231 (create_process_1, unwind_request_sigio, read_process_output)
3232 (send_process, keyboard_bit_set): Declare static.
3233 (Fdelete_process): Simplify. Pass process to status_notify, so we
3234 don't try to read output from it.
3235 (status_notify): New arg deleting_process--don't try to read
3236 output from that process.
3237
3238 * lisp.h (deactivate_process, status_notify, read_process_output):
3239 Remove prototypes.
3240
3241 2005-08-14 Richard M. Stallman <rms@gnu.org>
3242
3243 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
3244 define_image_type.
3245
3246 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3247
3248 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
3249 (xg_get_image_for_pixmap): Move some code to
3250 xg_get_pixbuf_from_pix_and_mask, and call it.
3251
3252 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
3253
3254 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
3255 to get an GTK icon and set it with GTK functions to avoid having GTK
3256 override an icon set with just X functions.
3257
3258 2005-08-11 Richard M. Stallman <rms@gnu.org>
3259
3260 * image.c (syms_of_image): Init image_types here, and call
3261 define_image_type.
3262 (init_image): Not here.
3263
3264 2005-08-09 Richard M. Stallman <rms@gnu.org>
3265
3266 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
3267
3268 * lisp.h (QUIT): Throw t to Vthrow_on_input.
3269
3270 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
3271
3272 * floatfns.c (Fexpt): Use floats for negative exponent.
3273
3274 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3275
3276 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
3277 should not be there, causing menu display errors with GTK 2.6.9.
3278
3279 2005-08-07 Richard M. Stallman <rms@gnu.org>
3280
3281 * floatfns.c (Fexpt): Undo previous change.
3282
3283 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
3284 so it can be used with various state vectors.
3285
3286 * emacs.c (endif): Convert -script into -scriptload.
3287 (standard_args): Add -scriptload. Allow -basic-display with one dash.
3288
3289 * fns.c (syms_of_fns): Add `emacs' to features.
3290
3291 * term.c (set_terminal_modes): If no TS_termcap_modes string,
3292 output newlines to scroll the old screen contents off the screen.
3293
3294 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
3295
3296 * floatfns.c (Fexpt): Use floats for negative exponent.
3297 Reported by D Goel.
3298
3299 2005-08-02 Richard M. Stallman <rms@gnu.org>
3300
3301 * frame.c (Fframe_char_width): Doc fix.
3302
3303 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
3304
3305 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
3306 Defvar it.
3307
3308 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
3309
3310 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
3311 (my_create_window, my_create_tip_window): Make static.
3312
3313 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
3314 (my_set_foreground_window, my_destroy_window): Make static.
3315
3316 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
3317
3318 Merge gnulib getopt implementation into Emacs.
3319
3320 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
3321 now part of lib-src.
3322
3323 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
3324
3325 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
3326
3327 2005-07-25 Jason Rumney <jasonr@gnu.org>
3328
3329 * w32menu.c (w32_menu_display_help): Suppress tooltip when
3330 navigating menus with the keyboard.
3331
3332 2005-07-23 Richard M. Stallman <rms@gnu.org>
3333
3334 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
3335
3336 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
3337 gc_relative_threshold, one by one.
3338
3339 * keyboard.c (read_char): Test gc_cons_threshold.
3340 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
3341
3342 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
3343 gc_relative_threshold, one by one.
3344
3345 * alloc.c (gc_cons_threshold): Not static.
3346 (gc_cons_combined_threshold): Var deleted.
3347 (gc_relative_threshold): New variable.
3348 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
3349 instead of gc_cons_combined_threshold.
3350
3351 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
3352 (gc_cons_combined_threshold): Declaration deleted.
3353
3354 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3355
3356 * mac.c: Don't include stdlib.h or string.h.
3357 (Fdo_applescript, Fmac_file_name_to_posix)
3358 (Fmac_file_name_to_posix): Doc fixes.
3359 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
3360 (Fmac_code_convert_string): Likewise.
3361 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
3362 if the executable is not contained in a bundle.
3363
3364 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
3365 (gray_width, gray_height): Remove defines.
3366 (gray_bits, gray_bitmap_width, gray_bitmap_height)
3367 (gray_bitmap_bits): Remove variables.
3368 (lispy_function_keys): Remove extern.
3369 (free_frame_menubar): Add extern.
3370 (x_window_to_frame): Remove function.
3371 (unwind_create_tip_frame): Add declaration.
3372 (x_set_name_internal): New function.
3373 (x_set_name, x_set_title): Use it.
3374 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
3375 (Fx_display_pixel_height, Fx_display_planes)
3376 (Fx_display_color_cells, Fx_server_max_request_size)
3377 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3378 (Fx_display_mm_height, Fx_display_mm_width)
3379 (Fx_display_backing_store, Fx_display_visual_class)
3380 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
3381
3382 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3383
3384 * macselect.c (Fx_own_selection_internal): Follow error conventions.
3385 (Fx_get_selection_internal, Fx_selection_owner_p)
3386 (Fx_selection_exists_p): Doc fixes.
3387 (syms_of_macselect) <selection-converter-alist>: Likewise.
3388
3389 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
3390
3391 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3392
3393 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
3394 (Fccl_execute_on_string): Likewise; add usage info.
3395
3396 * composite.c (Fcompose_region_internal)
3397 (Fcompose_string_internal):
3398 Improve argument/docstring consistency.
3399
3400 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
3401 Fix typos in docstrings.
3402
3403 * textprop.c (Fnext_char_property_change)
3404 (Fprevious_char_property_change): Doc fixes.
3405
3406 * window.c (Fset_window_margins, Fset_window_fringes):
3407 Improve argument/docstring consistency.
3408
3409 * xfaces.c (Finternal_lisp_face_p): Doc fix.
3410
3411 2005-07-21 Andreas Schwab <schwab@suse.de>
3412
3413 * eval.c (restore_stack_limits): Return a value.
3414
3415 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
3416
3417 * eval.c (Fdefvar): Doc fix.
3418
3419 2005-07-20 Kim F. Storm <storm@cua.dk>
3420
3421 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
3422 Use make_save_value to unwind protect stream.
3423
3424 * lread.c (Fload, load_unwind):
3425 Use make_save_value to unwind protect stream.
3426
3427 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
3428
3429 * eval.c (Fprog2, Fcalled_interactively_p),
3430 (syms_of_eval) <debug-on-quit>: Doc fixes.
3431 (syms_of_eval) <max-specpdl-size>:
3432 (Finteractive_p): Fix typos in docstrings.
3433
3434 2005-07-19 Kim F. Storm <storm@cua.dk>
3435
3436 * w32fns.c (Vx_hand_shape): Variable removed.
3437 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
3438
3439 2005-07-19 Kenichi Handa <handa@m17n.org>
3440
3441 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
3442
3443 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
3444
3445 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
3446
3447 2005-07-18 Kim F. Storm <storm@cua.dk>
3448
3449 * frame.h (struct frame): New member already_hscrolled_p.
3450
3451 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
3452 to avoid redisplay looping hscrolling back and forth ad infinitum.
3453
3454 2005-07-18 Juri Linkov <juri@jurta.org>
3455
3456 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
3457 * keymap.c (Fminor_mode_key_binding):
3458 * macterm.c (mac-emulate-three-button-mouse):
3459 Delete duplicate duplicate words.
3460
3461 2005-07-18 Ken Raeburn <raeburn@gnu.org>
3462
3463 * minibuf.c (Ftest_completion): Fix odd syntax in test.
3464
3465 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3466
3467 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
3468
3469 * macgui.h (struct _XGC): New struct.
3470 (GC): Use it.
3471 (GCForeground, GCBackground, GCFont): Use X11 mask values.
3472 (XCreateGC, XParseGeometry): Move externs to macterm.h.
3473
3474 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
3475 (XSetFont): Add declaration.
3476 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
3477 Remove functions.
3478 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
3479 New defines.
3480 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
3481 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
3482 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
3483 Use them.
3484 (mac_erase_rectangle): New function.
3485 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
3486 (x_draw_stretch_glyph_string): Use it.
3487 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
3488 (XSetBackground, XSetFont): Adjust for new GC implementation.
3489 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
3490 (XTset_vertical_scroll_bar): Clear area under scroll bar.
3491
3492 * macterm.h (struct mac_display_info): Change types of
3493 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
3494 (XCreateGC, XParseGeometry): Move externs from macgui.h.
3495
3496 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
3497
3498 2005-07-16 Richard M. Stallman <rms@gnu.org>
3499
3500 * buffer.c (Fmake_overlay): Doc fix.
3501
3502 2005-07-16 Eli Zaretskii <eliz@gnu.org>
3503
3504 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
3505 Vw32_valid_locale_ids, and Vw32_valid_codepages.
3506
3507 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3508
3509 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
3510 Use Fstring_as_unibyte instead of string_make_unibyte.
3511
3512 2005-07-15 Richard M. Stallman <rms@gnu.org>
3513
3514 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
3515
3516 2005-07-15 Kim F. Storm <storm@cua.dk>
3517
3518 * xdisp.c: Fix redisplay loop in last change.
3519 (IT_POS_VALID_AFTER_MOVE_P): New macro.
3520 (move_it_vertically_backward, move_it_by_lines): Use it.
3521
3522 2005-07-14 Jason Rumney <jasonr@gnu.org>
3523
3524 * w32.c (init_environment): Default HOME directory to user's
3525 appdata directory if possible.
3526
3527 2005-07-14 Kim F. Storm <storm@cua.dk>
3528
3529 * .gdbinit (pitx): Fix output format. Print string charpos.
3530
3531 * lread.c (syms_of_lread): Initialize seen_list.
3532
3533 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
3534
3535 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
3536 Staticpro re_match_object.
3537
3538 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3539
3540 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
3541 dereference.
3542
3543 * macterm.c (mac_window_to_frame): Remove duplicate define.
3544
3545 2005-07-14 Kenichi Handa <handa@m17n.org>
3546
3547 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
3548 (code_convert_region): Adjust for the above change.
3549 (set_conversion_work_buffer): If the work buffer is already in
3550 use, generate a new buffer and return it. Otherwise return Qnil.
3551 (run_pre_post_conversion_on_str): Adjust for the above change.
3552 (run_pre_write_conversin_on_c_str): Likewise.
3553
3554 2005-07-13 Kim F. Storm <storm@cua.dk>
3555
3556 * xdisp.c (start_display): Don't reseat to next visible line start
3557 if current start position is in a string or image.
3558 (move_it_vertically_backward): Be sure to move out of strings and
3559 images when moving it2 forward.
3560 (move_it_by_lines): When moving forward, move to next buffer
3561 position if we end up in a string or image. When moving backward,
3562 count rows moved over when moving to start of current row in case
3563 row starts in middle of a string or image. Also move further
3564 backward if we end up in a string or image.
3565 (try_cursor_movement): If overlay string spans multiple lines,
3566 move backward to set cursor on start of an overlay string.
3567 (cursor_row_p): Row is ok if cursor is at newline from string, but
3568 string starts on this line (so we always position cursor at start
3569 of string).
3570
3571 * indent.c (Fvertical_motion): If start position is on an image,
3572 don't move back if we move too far (that's almost certain to happen).
3573
3574 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
3575 row in minibuffer windows.
3576 (try_window): Don't check margins in minibuffer windows.
3577
3578 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3579
3580 * macterm.c: Don't include stdlib.h or composite.h.
3581 (x_use_underline_position_properties, last_mouse_press_frame)
3582 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
3583 (syms_of_macterm, mac_initialize): Don't initialize them.
3584 (waiting_for_input, initial_argv, initial_argc)
3585 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
3586 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
3587 (extra_keyboard_modifiers): Fix type in extern.
3588 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
3589 (x_scroll_bar_report_motion): Add argument types to declaration.
3590 (mac_compute_glyph_string_overhangs): Add declaration.
3591 (disable_mouse_highlight): Remove unused variable.
3592 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
3593 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
3594 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
3595 All callers changed.
3596 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
3597 timestamp.
3598 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
3599 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
3600 only when its width is less than the height.
3601 (XTredeem_scroll_bar): Sync with xterm.c.
3602 (font_name_table, font_name_table_size, font_name_count):
3603 Make static.
3604 (drag_and_drop_file_list): Remove variable. Previous use is now
3605 local to function.
3606 (do_ae_open_documents): Move DRAG_N_DROP event construction part
3607 from XTread_socket.
3608 (XTread_socket): Consolidate setting of event timestamp.
3609 Move DRAG_N_DROP event construction part to do_ae_open_documents.
3610 Support extra_keyboard_modifiers.
3611
3612 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
3613 beginning with that for ASCII.
3614
3615 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
3616
3617 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
3618 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
3619 (syms_of_alloc): Declare gc-cons-percentage.
3620
3621 * eval.c (Feval, Ffuncall):
3622 * keyboard.c (read_char):
3623 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
3624
3625 * lisp.h (gc_cons_combined_threshold): Declare.
3626
3627 2005-07-12 Kim F. Storm <storm@cua.dk>
3628
3629 * coding.c (Qprocess_argument):
3630 * coding.h (Qprocess_argument): Remove unused var.
3631
3632 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
3633
3634 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3635
3636 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
3637 Endian.h.
3638 [!MAC_OSX] (fchmod, fchown): New functions.
3639 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
3640 Use SBYTES and EndianU32_BtoN.
3641 (mac_get_object_from_code): Return 4 byte string even if argument
3642 is 0. Use make_unibyte_string and EndianU32_NtoB.
3643 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
3644 (Fmac_set_file_type): Fix documents and argument declarations.
3645 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
3646
3647 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
3648
3649 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
3650
3651 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3652
3653 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
3654 Lucid if X_I18N, font otherwise.
3655
3656 2005-07-10 Steven Tamm <steventamm@mac.com>
3657
3658 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
3659 (Fmac_set_file_type, Fmac_set_file_creator): Add.
3660 (mac_get_object_from_code, mac_get_code_from_arg): Add.
3661
3662 2005-07-10 Richard M. Stallman <rms@gnu.org>
3663
3664 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
3665 (syms_of_lread): Set up eval-buffer-list.
3666 (Feval_buffer, Feval_region): Bind eval-buffer-list.
3667
3668 2005-07-08 Richard M. Stallman <rms@gnu.org>
3669
3670 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
3671
3672 2005-07-08 Kim F. Storm <storm@cua.dk>
3673
3674 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
3675 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
3676
3677 2005-07-07 Kim F. Storm <storm@cua.dk>
3678
3679 * window.c (Frecenter): Fix last change (set iarg before use).
3680
3681 2005-07-06 Richard M. Stallman <rms@gnu.org>
3682
3683 * window.c (Frecenter): When arg is inside the scroll margin,
3684 move it out of the margin.
3685
3686 2005-07-06 Jason Rumney <jasonr@gnu.org>
3687
3688 * w32console.c (initialize_w32_display): Detect when the console
3689 dimensions are insane, and default to 80x25 instead.
3690 (w32_use_full_screen_buffer): Default to NIL.
3691
3692 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3693
3694 * macterm.c (mac_draw_vertical_window_border): Use foreground of
3695 VERTICAL_BORDER_FACE_ID for vertical border line.
3696 (mac_encode_char): Call check_ccl_update in advance.
3697 (mac_to_x_fontname, x_font_name_to_mac_font_name)
3698 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
3699 Don't assume that font family length is less than 32.
3700 (x_compute_min_glyph_bounds): Make static.
3701 (x_load_font): Never set fonts_changed_p to zero.
3702
3703 2005-07-04 Lute Kamstra <lute@gnu.org>
3704
3705 * Update FSF's address in GPL notices.
3706
3707 2005-07-03 Richard M. Stallman <rms@gnu.org>
3708
3709 * xdisp.c (try_window): Fix previous change in how it handles
3710 a partially-visible line or one only partly past the margin.
3711
3712 * window.c (window_scroll_pixel_based): Take account
3713 of this_scroll_margin when finding point when scrolling up.
3714
3715 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
3716
3717 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3718 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
3719 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3720
3721 2005-07-02 Juri Linkov <juri@jurta.org>
3722
3723 * w32term.c (w32_draw_vertical_window_border): Use foreground of
3724 VERTICAL_BORDER_FACE_ID for vertical border line.
3725
3726 2005-07-02 Eli Zaretskii <eliz@gnu.org>
3727
3728 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
3729 fchmod so that chmod doesn't get called on MSDOS before the file
3730 is closed.
3731
3732 2005-07-01 Jason Rumney <jasonr@gnu.org>
3733
3734 * w32term.c (cleartype_active): New flag for enabling sub-pixel
3735 workaround.
3736 (w32_initialize): Initialize it.
3737 (w32_native_per_char_metric): Allow a couple of extra pixels when
3738 Cleartype is active.
3739
3740 * w32term.c (w32_initialize): Move check for screen reader here
3741 from syms_of_w32term.
3742
3743 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3744
3745 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
3746 is not zero.
3747
3748 2005-07-01 Masatake YAMATO <jet@gyve.org>
3749
3750 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
3751
3752 2005-06-30 Juri Linkov <juri@jurta.org>
3753
3754 * xdisp.c (x_draw_vertical_border): If left fringe is not present
3755 decrease x coord of vertical border by 1 pixel to not occupy text
3756 area of the right window.
3757
3758 * xterm.c (x_draw_vertical_window_border): Use foreground of
3759 VERTICAL_BORDER_FACE_ID for vertical border line.
3760
3761 * term.c (turn_on_face): In standout mode apply specified
3762 fg to bg, and specified bg to fg (this makes the logic of
3763 inversion on terminal consistent with X).
3764
3765 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
3766
3767 * eval.c (user_variable_p_eh): New function.
3768 (Fuser_variable_p): Use it. Clarify docstring.
3769 Return t for aliases of user options, nil for alias loops.
3770
3771 2005-06-27 Richard M. Stallman <rms@gnu.org>
3772
3773 * eval.c (Fdefvar): Improve error message.
3774
3775 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3776
3777 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
3778 change.
3779
3780 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
3781
3782 * eval.c (Fdefvar): Don't try to set constant symbols.
3783
3784 2005-06-25 Richard M. Stallman <rms@gnu.org>
3785
3786 * macfns.c (Fx_show_tip): Pass new arg to try_window.
3787
3788 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
3789
3790 * xfns.c (Fx_show_tip): Pass new arg to try_window.
3791
3792 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
3793 (redisplay_window): Handle try_window reporting point in scroll margin.
3794
3795 * dispextern.h (try_window): Declare new arg.
3796
3797 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
3798 Use fchmod to copy the file modes.
3799 (Frename_file): Don't copy UID and GID here;
3800 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
3801
3802 * eval.c (call_debugger): Take full care of extending stack limits
3803 to make space for the debugger, and restore the change afterward.
3804 Bind debug-on-error to nil.
3805 (restore_stack_limits): New subroutine.
3806 (Fsignal): Extend specpdl bound along with eval depth bound,
3807 for calling edebug. Don't do either one, for calling debugger.
3808 (find_handler_clause): Don't bind debug-on-error here.
3809 Don't unbind anything either.
3810 Temporarily advance max_specpdl_size for calling
3811 internal_with_output_to_temp_buffer.
3812 (grow_specpdl): Don't alter max_specpdl_size before signaling
3813 an error.
3814 (syms_of_eval) <max-specpdl-size>: Doc fix.
3815
3816 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
3817
3818 2005-06-24 Eli Zaretskii <eliz@gnu.org>
3819
3820 * fileio.c (Frename_file): Undo last change: no need to ifdef away
3821 chown on DOS_NT platforms.
3822
3823 * w32.c (sys_chown): New function.
3824
3825 * s/ms-w32.h (chown): New; define to sys_chown.
3826
3827 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
3828
3829 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
3830 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
3831
3832 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
3833
3834 2005-06-23 Richard M. Stallman <rms@gnu.org>
3835
3836 * xdisp.c (get_next_display_element): Finish reversing the tests of
3837 Vnobreak_char_display.
3838
3839 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
3840 All uses changed.
3841 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
3842 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
3843
3844 * fileio.c (Frename_file): Preserve owner and group, if possible,
3845 when copying.
3846
3847 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
3848
3849 * abbrev.c (Funexpand_abbrev):
3850 * category.c (Fmake_category_set):
3851 * dispnew.c (Fsleep_for, Fsit_for):
3852 * editfns.c (Fsubst_char_in_region):
3853 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
3854 * frame.c (make_frame_without_minibuffer):
3855 * lread.c (read_vector):
3856 * macfns.c (check_x_frame):
3857 * process.c (Fstop_process, Fcontinue_process):
3858 * search.c (Freplace_match):
3859 * syntax.c (Fstring_to_syntax):
3860 * w32fns.c (check_x_frame, check_x_display_info):
3861 * xfaces.c (x_supports_face_attributes_p):
3862 * xselect.c (Fx_own_selection_internal): Follow error conventions.
3863
3864 * image.c (fn_png_init_io): Don't define it.
3865 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
3866 (png_read_from_file): New function, based on png_read_from_memory.
3867 (png_load): Use it, instead of fn_png_init_io.
3868
3869 2005-06-23 Kim F. Storm <storm@cua.dk>
3870
3871 * search.c (Fmatch_data): Remove evaporate option.
3872 (Fset_match_data): Do not mention evaporate option in doc string.
3873 Add commentary explaining evaporate arg (for internal use only).
3874 (unwind_set_match_data): Add comment on evaporate use.
3875
3876 2005-06-22 Miles Bader <miles@gnu.org>
3877
3878 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
3879 (realize_basic_faces, syms_of_xfaces): Update references to it.
3880 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
3881 to `VERTICAL_BORDER_FACE_ID'.
3882 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
3883
3884 2005-06-21 Juri Linkov <juri@jurta.org>
3885
3886 * dispextern.h: Add extern Qframe_set_background_mode.
3887
3888 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
3889 Qframe_set_background_mode.
3890
3891 * frame.c (Fmodify_frame_parameters):
3892 Call frame-set-background-mode after changing the background color
3893 on non-window non-dos branch.
3894
3895 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
3896
3897 * fns.c (Fchar_table_range):
3898 * process.c (Fmake_network_process): Fix spellings.
3899
3900 2005-06-20 Kim F. Storm <storm@cua.dk>
3901
3902 * fns.c (Fsort): Doc fix.
3903
3904 2005-06-20 Miles Bader <miles@gnu.org>
3905
3906 * xfaces.c (Qvertical_divider): New variable.
3907 (realize_basic_faces): Realize its face.
3908 (syms_of_xfaces): Initialize it.
3909
3910 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
3911
3912 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
3913 window-separator on ttys using `vertical-divider' face by default.
3914
3915 2005-06-17 Richard M. Stallman <rms@gnu.org>
3916
3917 * xdisp.c (get_next_display_element):
3918 Reverse test of Vshow_nonbreak_escape.
3919
3920 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
3921 (Ftty_no_underline): New function.
3922 (syms_of_term): defsubr it.
3923
3924 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
3925
3926 * dispnew.c (spec_glyph_lookup_face): New function.
3927 (build_frame_matrix_from_leaf_window): Use it.
3928
3929 * dispextern.h (spec_glyph_lookup_face): Add declaration.
3930
3931 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3932
3933 2005-06-12 Richard M. Stallman <rms@gnu.org>
3934
3935 * keyboard.c (read_char): After catching a longjmp,
3936 call restore_getcjmp.
3937
3938 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
3939
3940 * xselect.c (lisp_data_to_selection_data): Fix spelling.
3941
3942 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3943
3944 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
3945 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
3946 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
3947 events.
3948 (XTread_socket): Don't pass keyboard events with the option
3949 modifier to the system when Vmac_command_key_is_meta is nil or
3950 Vmac_option_modifier is non-nil.
3951 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
3952 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
3953 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
3954 handler function.
3955 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
3956 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
3957 handler part to mac_handle_mouse_event.
3958
3959 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
3960
3961 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
3962 NEW-ALIAS and BASE-VARIABLE, respectively.
3963
3964 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
3965
3966 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
3967 (get_phys_cursor_geometry, format_mode_line_unwind_data)
3968 (get_line_height_property, x_produce_glyphs): Remove unused vars.
3969
3970 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
3971
3972 2005-06-13 Eli Zaretskii <eliz@gnu.org>
3973
3974 * w32term.c (x_use_underline_position_properties): New variable.
3975 (x_draw_glyph_string): Remind in a comment to change doc string of
3976 x-use-underline-position-properties if/when underline positioning
3977 is implemented.
3978 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
3979 and initialize it to nil.
3980
3981 2005-06-12 Jason Rumney <jasonr@gnu.org>
3982
3983 * w32fns.c (NEWOPENFILENAME): New struct.
3984 (Fx_file_dialog): Use it to trick the system into giving us up to
3985 date dialogs on systems that are documented to support it.
3986 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
3987
3988 2005-06-12 Eli Zaretskii <eliz@gnu.org>
3989
3990 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
3991 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
3992
3993 2005-06-11 Eli Zaretskii <eliz@gnu.org>
3994
3995 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
3996 to CreateDIBSection to avoid a compiler warning.
3997 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
3998 warning.
3999 (png_load): Cast return values of fn_png_create_read_struct and
4000 fn_png_create_info_struct, to avoid compiler warnings on W32.
4001 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
4002 to avoid compiler warnings.
4003 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
4004 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
4005 avoid a compiler warning.
4006 (tiff_load): Cast return values of fn_TIFFOpen and
4007 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
4008 to IMAGE_BACKGROUND to avoid a compiler warning.
4009 (gif_load): Cast return values of fn_DGifOpenFileName and
4010 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
4011 IMAGE_BACKGROUND to avoid a compiler warning.
4012 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
4013 before redefining.
4014
4015 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
4016 the call to CreateDIBSection, to avoid a compiler warning.
4017
4018 2005-06-11 Jason Rumney <jasonr@gnu.org>
4019
4020 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
4021 minibuffer.
4022 * macfns.c (Fx_file_dialog): Likewise.
4023
4024 2005-06-10 Eli Zaretskii <eliz@gnu.org>
4025
4026 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
4027
4028 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
4029
4030 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
4031 * w32fns.c (syms_of_w32fns): Fix spellings.
4032
4033 2005-06-10 Eli Zaretskii <eliz@gnu.org>
4034
4035 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
4036 `verbose'; print diagnostic messages only if it is non-zero.
4037 All callers changed to pass a zero value unless DEBUG_DUMP is defined
4038 in the environment.
4039 (copy_executable_and_dump_data): Print section names with %.8s.
4040
4041 2005-06-10 Masatake YAMATO <jet@gyve.org>
4042
4043 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
4044 when mouse_face is not given.
4045
4046 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
4047
4048 * window.c (Fselect_window): Adapt call to Fselect_frame.
4049
4050 * lisp.h: Update EXFUN of Fselect_frame.
4051
4052 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
4053
4054 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
4055 no_enter.
4056 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
4057 Adapt to above change.
4058
4059 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
4060
4061 * fns.c (Fmemq, Fmaphash): Doc fixes.
4062
4063 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
4064
4065 * xfaces.c (Fdisplay_supports_face_attributes_p):
4066 Fix typo in docstring.
4067
4068 2005-06-08 Steven Tamm <steventamm@mac.com>
4069
4070 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
4071 used by gcc4 on intel mac.
4072
4073 2005-06-09 Kim F. Storm <storm@cua.dk>
4074
4075 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
4076 in REUSE list if non-nil; free them if equal to evaporate.
4077 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
4078 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
4079 (restore_search_regs): Rename from restore_match_data. Uses changed.
4080 (unwind_set_match_data): New function.
4081 (record_unwind_save_match_data): New function like save-match-data.
4082
4083 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
4084 (record_unwind_save_match_data): Add prototype.
4085 (restore_search_regs): Rename from restore_match_data.
4086
4087 * composite.c (compose_chars_in_text):
4088 * eval.c (do_autoload):
4089 * macmenu.c (set_frame_menubar):
4090 * process.c (read_process_output, exec_sentinel):
4091 * xmenu.c (set_frame_menubar):
4092 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
4093 * w32menu.c (set_frame_menubar):
4094 Use record_unwind_save_match_data.
4095
4096 2005-06-08 Richard M. Stallman <rms@gnu.org>
4097
4098 * xdisp.c (get_next_display_element): Alter previous change:
4099 Distinguish Vshow_nonbreak_escape = t or not t.
4100 For t, use escape_glyph once again, as before previous change.
4101 Use space or hyphen for display, instead of the non-ASCII char.
4102 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
4103
4104 * process.c (Fstart_process): Don't touch command_channel_p slot.
4105
4106 * process.h (struct process): Delete command_channel_p.
4107
4108 2005-06-07 Masatake YAMATO <jet@gyve.org>
4109
4110 * xdisp.c (note_mode_line_or_margin_highlight):
4111 Check the overlapping of re-rendering area to avoid flickering.
4112 (note_mouse_highlight): Call clear_mouse_face if PART
4113 is not ON_MODE_LINE nor ON_HEADER_LINE.
4114
4115 2005-06-07 Kim F. Storm <storm@cua.dk>
4116
4117 * process.c: Improve commentary for adaptive read buffering.
4118
4119 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
4120
4121 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
4122 if available.
4123
4124 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4125
4126 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
4127 New functions for popping down menus on C-g.
4128 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
4129
4130 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
4131 non-static.
4132
4133 * config.in: Add HAVE_CANCELMENUTRACKING.
4134
4135 2005-06-06 Eli Zaretskii <eliz@gnu.org>
4136
4137 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
4138
4139 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
4140
4141 * w32proc.c (RVA_TO_PTR): New macro.
4142
4143 * w32heap.c (RVA_TO_PTR): No need to #undef now.
4144
4145 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
4146 Depend on w32heap.h.
4147
4148 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
4149
4150 * keyboard.c (command_loop_1): Update Vthis_original_command.
4151
4152 2005-06-06 Richard M. Stallman <rms@gnu.org>
4153
4154 * xmenu.c (popup_get_selection): Undo previous change.
4155
4156 2005-06-06 Juri Linkov <juri@jurta.org>
4157
4158 * xdisp.c (Qno_break_space): New variable.
4159 (syms_of_xdisp): Initialize it.
4160 (get_next_display_element): Add no-break space and soft hypen
4161 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
4162 Use `no-break-space' face for no-break spaces.
4163
4164 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4165
4166 * window.c (delete_window): Handle the case where a h/vchild has
4167 a h/vchild.
4168
4169 2005-06-05 Eli Zaretskii <eliz@gnu.org>
4170
4171 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
4172 call to pfn_setsockopt, cast optval to `const char *'.
4173
4174 2005-06-04 Eli Zaretskii <eliz@gnu.org>
4175
4176 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
4177 (open_unc_volume): Cast return value of map_w32_filename, to avoid
4178 compiler warnings.
4179
4180 * s/ms-w32.h (fileno): Don't define if already defined.
4181
4182 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
4183
4184 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
4185
4186 2005-06-04 Richard M. Stallman <rms@gnu.org>
4187
4188 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
4189
4190 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4191
4192 * macmenu.c (cleanup_popup_menu): New function.
4193 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
4194 mac_menu_show Quit:s.
4195 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
4196 a dialog).
4197
4198 2005-06-04 Kim F. Storm <storm@cua.dk>
4199
4200 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
4201
4202 * callproc.c (Fcall_process): Don't use alloca to gradually
4203 increase size of buf, as it effectively uses twice the necessary
4204 space on the stack. Instead, pre-allocate buf of full size, and
4205 gradually increase the read size.
4206
4207 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
4208
4209 * eval.c (unbind_to): Preserve value of Vquit_flag.
4210
4211 * xterm.c (handle_one_xevent): Also ignore mouse motion just
4212 before a button release event.
4213
4214 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
4215
4216 * xfaces.c (Finternal_lisp_face_equal_p): Really report
4217 on faces in a frame, if the argument FRAME is non-nil.
4218 Improve argument/docstring consistency.
4219
4220 2005-06-02 Kim F. Storm <storm@cua.dk>
4221
4222 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
4223 (x_consider_frame_title, Fformat_mode_line): Save offset into
4224 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
4225
4226 2005-06-01 Kim F. Storm <storm@cua.dk>
4227
4228 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
4229
4230 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4231
4232 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
4233 resolution fields for scalable fonts to 0.
4234
4235 * xfaces.c (build_scalable_font_name): Round pixel size to the
4236 nearest integer.
4237
4238 2005-06-01 Kim F. Storm <storm@cua.dk>
4239
4240 * xdisp.c (display_mode_line): Support nested calls to redisplay
4241 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
4242
4243 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4244
4245 * fileio.c (Finsert_file_contents):
4246 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
4247
4248 2005-05-31 Kim F. Storm <storm@cua.dk>
4249
4250 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
4251 (mode_line_noprop_ptr): Rename from frame_title_*.
4252 (store_mode_line_noprop_char): Rename from store_frame_title_char.
4253 (store_mode_line_noprop): Rename from store_frame_title.
4254 (mode_line_target): New enum to specify current output target
4255 for mode line formatting.
4256 (display_mode_element): Test it rather than frame_title_ptr and
4257 mode_line_string_list to determine where output should go.
4258 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
4259 (Vmode_line_unwind_vector): New variable.
4260 (format_mode_line_unwind_data, unwind_format_mode_line):
4261 New functions for unwind protection in mode line formatting.
4262 (x_consider_frame_title): Use them and new local var 'title_start'
4263 to support nested calls to format-mode-line and redisplay.
4264 Set mode_line_target to MODE_LINE_TITLE.
4265 (Fformat_mode_line): Use them and new local var 'string_start' to
4266 support nested calls to format-mode-line and redisplay.
4267 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
4268 Don't trim trailing dashes.
4269 (decode_mode_spec): Don't make infinite number of trailing dashes
4270 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
4271 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
4272 mode_line_string_face_prop, and Vmode_line_unwind_vector.
4273 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
4274 Initialize mode_line_target to MODE_LINE_DISPLAY.
4275
4276 2005-05-29 Richard M. Stallman <rms@gnu.org>
4277
4278 * buffer.c (Fbuffer_local_value): Call indirect_variable.
4279
4280 2005-05-28 Masatake YAMATO <jet@gyve.org>
4281
4282 * xdisp.c (note_mode_line_or_margin_highlight): Change the
4283 pointer to a hand cursor when hoovering over a mouse-face.
4284
4285 2005-05-27 Kenichi Handa <handa@m17n.org>
4286
4287 * xterm.c (x_encode_char): Call check_ccl_update in advance.
4288
4289 * ccl.c: Now an element of Vccl_program_table is a vector of
4290 length 4, not 3.
4291 (ccl_get_compiled_code): New arg idx. Caller changed.
4292 Adjust for the change of Vccl_program_table.
4293 (setup_ccl_program): Adjust for the change of Vccl_program_table.
4294 (check_ccl_update): New function.
4295 (Fregister_ccl_program): Use ASET to set an element of a vector.
4296 Adjusted for the change of Vccl_program_table.
4297
4298 * ccl.h (struct ccl_program): New member idx.
4299 (check_ccl_update): Extern it.
4300
4301 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
4302
4303 * image.c (Vimage_library_alist): Move from image.el.
4304 (syms_of_image): Defvar it.
4305 (lookup_image_type): Use it.
4306
4307 * buffer.c (Fbuffer_local_value): Make argument name match its use
4308 in docstring.
4309
4310 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
4311
4312 * keyboard.c (Frecursive_edit): Fix typo in docstring.
4313 (Fposn_at_x_y): Make argument name match its use in docstring.
4314
4315 2005-05-26 Lute Kamstra <lute@gnu.org>
4316
4317 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
4318
4319 2005-05-24 Masatake YAMATO <jet@gyve.org>
4320
4321 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
4322 as loop sentinels.
4323
4324 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
4325
4326 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
4327 select frame title ("Question"/"Information").
4328 (xdialog_show): Use it.
4329
4330 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
4331
4332 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
4333
4334 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
4335 a third argument (Qnil).
4336
4337 * lisp.h: x-popup-dialog can have three arguments.
4338
4339 * editfns.c (Fmessage_box): Use "Information" for frame title.
4340
4341 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
4342
4343 * termcap.c [VMS]: Include <starlet.h>.
4344
4345 2005-05-23 Masatake YAMATO <jet@gyve.org>
4346
4347 * xdisp.c (note_mode_line_or_margin_highlight): Add code
4348 for mouse-face. Change the type of the first argument from `window'
4349 to `Lisp_Object'.
4350 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
4351 window instead of w.
4352
4353 2005-05-22 Andreas Schwab <schwab@suse.de>
4354
4355 * process.c (send_process): Move misplaced volatile.
4356
4357 2005-05-21 Richard M. Stallman <rms@gnu.org>
4358
4359 * xdisp.c (display_mode_element): If we're processing a list and
4360 padding is specified, put it after the last element.
4361
4362 2005-05-21 Eli Zaretskii <eliz@gnu.org>
4363
4364 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
4365 "superroot" on DOS_NT systems.
4366
4367 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
4368
4369 * process.c (send_process): Restore the SIGPIPE handler if we
4370 catch a SIGPIPE.
4371
4372 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
4373
4374 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
4375 misleading comments).
4376 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
4377
4378 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
4379
4380 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
4381 Correct the right value.
4382
4383 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
4384
4385 * keyboard.c (syms_of_keyboard): Remove Lisp variables
4386 post-command-idle-hook and post-command-idle-delay.
4387 (command_loop_1): Don't try to execute post-command-idle-hook.
4388
4389 2005-05-16 Kim F. Storm <storm@cua.dk>
4390
4391 * xdisp.c (handle_display_prop): Handle empty replacement.
4392 (handle_single_display_spec): Return -1 for empty replacement.
4393
4394 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
4395
4396 * .gdbinit (pitx): Print more info about iterator.
4397
4398 2005-05-16 Andreas Schwab <schwab@suse.de>
4399
4400 * unexmacosx.c (unexec_realloc): Move declarations before statements.
4401
4402 2005-05-14 Richard M. Stallman <rms@gnu.org>
4403
4404 * xdisp.c (message3): Call cancel_echoing.
4405
4406 * alloc.c (Fmemory_full_p): New function.
4407 (syms_of_alloc): defsubr it.
4408
4409 * process.c (send_process_trap): Unblock SIGPIPE.
4410 (send_process): Reset SIGPIPE handler before reporting error.
4411
4412 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
4413
4414 * emacs.c (syms_of_emacs): Fix doc string for system-type.
4415
4416 2005-05-13 Richard M. Stallman <rms@gnu.org>
4417
4418 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
4419 (Finsert_file_contents): If we read 0 bytes from a special file,
4420 unlock the visited file if we locked it.
4421 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
4422 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
4423
4424 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4425
4426 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
4427
4428 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
4429 Regard toolkit scroll bar thumb drag events as squeezable and prevent
4430 redisplay from being paused by them.
4431
4432 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
4433 [!MAC_OSX] (target_ticks): Remove variable.
4434 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
4435 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
4436 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
4437 event occurs before timeout, behave as if the function were interrupted.
4438 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
4439 handling using Time Manager routines.
4440 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
4441 New variables.
4442 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
4443 (setitimer): New functions.
4444
4445 * macfns.c, macmenu.c: Don't include signal.h.
4446
4447 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
4448 Rename from get_control_part_bound. All callers changed.
4449 (x_scroll_bar_clear): New function.
4450 (x_clear_frame): Use it.
4451 (XTset_vertical_scroll_bar): Don't call Draw1Control.
4452 (x_scroll_bar_handle_click): Change type of second argument from
4453 int to ControlPartCode.
4454 (check_alarm): Remove declaration.
4455 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
4456 (XTread_socket): Use ControlPartCode instead of SInt16.
4457
4458 2005-05-13 Nozomu Ando <nand@mac.com>
4459
4460 * unexmacosx.c: Include assert.h.
4461 (MACOSX_MALLOC_MULT16): New define.
4462 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
4463 ptr is in unexec regions by checking it is multiple of 16.
4464 (unexec_malloc_header_t): New typedef.
4465 (unexec_malloc, unexec_realloc, unexec_free): Store and use
4466 allocated size information in unexec_malloc_header.
4467
4468 2005-05-10 Richard M. Stallman <rms@gnu.org>
4469
4470 * xterm.c (noinclude): Add #undef.
4471
4472 * image.c, xfns.c, xmenu.c: Don't include signal.h.
4473
4474 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
4475
4476 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
4477 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
4478 Doc fixes.
4479
4480 * dired.c (Ffile_name_completion): Make argument name
4481 match its use in docstring.
4482
4483 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
4484
4485 * eval.c (Fdefvaralias): Remove any pre-existing
4486 variable-documentation property of the alias.
4487
4488 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
4489
4490 * xfns.c (start_hourglass): Do nothing when running on a tty.
4491
4492 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
4493
4494 * fns.c (Fchar_table_range): Fix typos in docstring.
4495
4496 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4497
4498 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
4499
4500 2005-05-06 Eli Zaretskii <eliz@gnu.org>
4501
4502 * lread.c (Flocate_file_internal): Doc fix.
4503
4504 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
4505
4506 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4507
4508 * macselect.c (x_own_selection): Accept Lisp string as result of
4509 selection converter function.
4510 (x_clear_frame_selections): Don't call x-lost-selection-functions
4511 if Emacs is not owner of the selection.
4512 (Vmac_services_selection): Put variable and initialization in
4513 #ifdef MAC_OSX.
4514 (syms_of_macselect) [MAC_OSX]: Set default value of
4515 Vmac_services_selection to PRIMARY.
4516
4517 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
4518 (mac_handle_tool_bar_click): Remove unused function and declaration.
4519 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
4520 (install_scroll_bar_timer, set_scroll_bar_timer)
4521 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
4522 (get_control_part_bound, x_scroll_bar_handle_press)
4523 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
4524 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
4525 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
4526 (scroll_bar_timer_event_posted_p): New variables.
4527 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
4528 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
4529 (x_scroll_bar_create): Set control reference with NewControl.
4530 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
4531 Initialize track_top and track_height to nil.
4532 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
4533 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
4534 (XTset_vertical_scroll_bar): Don't make space between scroll bar
4535 and associated window.
4536 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
4537 from window config.
4538 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
4539 Set track_top and track_height to nil when scroll bar size is changed.
4540 Recalculate them if they are nil.
4541 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
4542 clicked control is a scroll bar.
4543 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
4544 event handler functions. Don't add modifiers to scroll bar click
4545 events. Call scroll bar release handler when window is deactivated.
4546 (mac_initialize): Remove unused code for X toolkit.
4547 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
4548 Initialize Vx_toolkit_scroll_bars to nil.
4549
4550 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
4551 New members track_top and track_height.
4552
4553 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
4554 init_process when including sys/select.h.
4555
4556 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
4557
4558 * eval.c (Fdefvaralias): Doc fix.
4559
4560 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
4561
4562 2005-05-05 Kim F. Storm <storm@cua.dk>
4563
4564 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
4565 default value.
4566 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
4567 Fix type of cursor-in-non-selected-windows.
4568
4569 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4570
4571 * mac.c: #undef init_process so not to conflict with system headers.
4572
4573 2005-05-02 Richard M. Stallman <rms@gnu.org>
4574
4575 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
4576
4577 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
4578
4579 * xdisp.c (Vcursor_in_non_selected_windows)
4580 (Qcursor_in_non_selected_windows): Vars deleted.
4581 (syms_of_xdisp): Don't initialize them.
4582 (get_window_cursor_type): Use cursor_in_non_selected_windows
4583 buffer slot.
4584
4585 2005-05-02 Kim F. Storm <storm@cua.dk>
4586
4587 * macros.c (executing_kbd_macro_index): Rename from
4588 executing_macro_index. All uses changed.
4589 (executing_kbd_macro_iterations): Rename from
4590 executing_macro_iterations. All uses changed.
4591 (executing_kbd_macro): Rename from executing_macro.
4592 All uses changed.
4593 (syms_of_macros): Rename Lisp var executing-macro-index to
4594 executing-kbd-macro-index.
4595
4596 * xdisp.c (move_it_in_display_line_to): Fix last change.
4597
4598 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
4599
4600 * xmenu.c (Fx_popup_menu): Doc fix.
4601
4602 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
4603
4604 2005-05-02 Jason Rumney <jasonr@gnu.org>
4605
4606 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
4607
4608 2005-05-02 Nozomu Ando <nand@mac.com>
4609
4610 * sysselect.h: Fix typo.
4611
4612 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
4613
4614 * charset.c (Fchars_in_region): Remove as obsolete.
4615
4616 2005-05-01 Kim F. Storm <storm@cua.dk>
4617
4618 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
4619 TO_CHARPOS. This may happen if last glyphs was an image or stretch
4620 glyph.
4621
4622 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
4623
4624 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
4625
4626 2005-05-01 Richard M. Stallman <rms@gnu.org>
4627
4628 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
4629 If user cancels the menu, quit unless FOR_CLICK.
4630
4631 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
4632 All uses changed.
4633 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
4634 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
4635 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
4636 * commands.h (Vexecuting_kbd_macro): Likewise.
4637
4638 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
4639
4640 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
4641
4642 2005-04-30 Richard M. Stallman <rms@gnu.org>
4643
4644 * fileio.c (Ffind_file_name_handler): Handle the `operations'
4645 property of the file name handler.
4646 (Qoperations): New variable.
4647 (syms_of_fileio): Initialize and staticpro it.
4648
4649 * xdisp.c (set_message_1): Delete xassert.
4650
4651 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4652
4653 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
4654
4655 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
4656
4657 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
4658 before/after including Carbon.h if there is a working mktime.
4659
4660 2005-04-28 Kim F. Storm <storm@cua.dk>
4661
4662 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
4663 Fix cyclic alias check. If alias loop is detected, signal
4664 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
4665
4666 2005-04-28 Lute Kamstra <lute@gnu.org>
4667
4668 * eval.c (do_autoload): Record only autoloads in the autoload
4669 property of symbols.
4670
4671 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
4672
4673 * emacs.c (USAGE1): Add --basic-display and --quick options.
4674
4675 2005-04-27 Kim F. Storm <storm@cua.dk>
4676
4677 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
4678
4679 2005-04-26 Richard M. Stallman <rms@gnu.org>
4680
4681 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
4682 (syms_of_window): Doc fixes.
4683
4684 * indent.c (Fvertical_motion): Undo previous change.
4685
4686 2005-04-26 Kenichi Handa <handa@m17n.org>
4687
4688 * fns.c (char_table_range): New function.
4689 (Fchar_table_range): Signal an error if characters in the range
4690 have inconsistent values. Don't check the parent.
4691
4692 2005-04-25 Kenichi Handa <handa@m17n.org>
4693
4694 * fontset.c (fontset_set): Fix previous change.
4695
4696 2005-04-24 Richard M. Stallman <rms@gnu.org>
4697
4698 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
4699
4700 2005-04-24 Eli Zaretskii <eliz@gnu.org>
4701
4702 * regex.c (re_search_2, re_match_2_internal): Convert second arg
4703 of RE_TRANSLATE to int, to shut up GCC warnings.
4704
4705 * fileio.c (Fcopy_file): Doc fix.
4706 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
4707 not needed.
4708
4709 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4710
4711 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
4712 (SOME_MACHINE_OBJECTS): Likewise.
4713 (mac.o): Depend on ccl.h.
4714 (macselect.o): New target.
4715
4716 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
4717 Call syms_of_macselect.
4718
4719 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
4720
4721 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
4722 (QCLIPBOARD): Remove variable.
4723 (syms_of_mac): Don't initialize it.
4724 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
4725 Remove functions.
4726 (syms_of_mac): Don't defsubr them.
4727 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
4728 (QHFS_plus_D, QHFS_plus_C): New variables.
4729 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
4730 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
4731 (cfstring_create_normalized): New functions.
4732 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
4733 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4734
4735 * macterm.c (handling_window_update, terminate_flag):
4736 Remove variables.
4737 (do_window_update, do_ae_quit_application, XTread_socket):
4738 Don't use them.
4739 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
4740 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
4741 (init_service_handler): Move to macselect.c. Remove declarations.
4742 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
4743 (Qapplication, Qabout): New variables.
4744 (syms_of_mac): Initialize them.
4745 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
4746 (Qperform): New variables.
4747 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
4748 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
4749 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
4750 (mac_store_application_menu_event, init_menu_bar): New functions.
4751 [USE_CARBON_EVENTS] (mac_handle_command_event)
4752 (init_command_handler): New functions.
4753 (mac_handle_window_event): Return noErr on window update event.
4754 (do_ae_quit_application): Call mac_store_application_menu_event.
4755 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
4756 and init_menu_bar.
4757
4758 * macterm.h (x_clear_frame_selections): Add extern.
4759
4760 * macselect.c: New file for selection processing on Mac OS.
4761
4762 2005-04-23 Richard M. Stallman <rms@gnu.org>
4763
4764 * fileio.c (Fcopy_file): New arg MUSTBENEW.
4765 (Frename_file): Pass new arg to Fcopy_file.
4766
4767 * window.c (window_size_fixed): Variable deleted.
4768 (syms_of_window): Initialize window-size-fixed to nil.
4769 But don't DEFVAR window_size_fixed.
4770
4771 2005-04-23 Andreas Schwab <schwab@suse.de>
4772
4773 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
4774 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
4775 use lib64 instead of lib.
4776 (_LP64) [_ARCH_PPC64]: Define if not defined.
4777
4778 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
4779
4780 * s/ms-w32.h (HAVE_PWD_H): Define.
4781
4782 2005-04-22 Kenichi Handa <handa@m17n.org>
4783
4784 * fns.c (copy_sub_char_table): Explicitly copy the default value
4785 of the sub-chartable.
4786
4787 * fontset.c (fontset_set): When a sub-chartable is created,
4788 explicitly sets the defalt value.
4789
4790 2005-04-22 Kim F. Storm <storm@cua.dk>
4791
4792 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
4793 (Fsafe_plist_get): Rename to Fplist_get.
4794 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
4795 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
4796
4797 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
4798
4799 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
4800 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4801 Use Fplist_get instead of Fsafe_plist_get.
4802
4803 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
4804
4805 2005-04-21 Miles Bader <miles@gnu.org>
4806
4807 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
4808
4809 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
4810
4811 * sysdep.c: Remove reference to defunct vms-pwd.h.
4812 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
4813 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
4814
4815 * config.in: Regenerate.
4816
4817 2005-04-20 Kenichi Handa <handa@m17n.org>
4818
4819 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
4820 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
4821 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
4822
4823 * alloc.c (make_sub_char_table): Argument changed to initial
4824 value of the slots.
4825
4826 * data.c (Faref): Handle special slots used as default values of
4827 ascii, eight-bit-control, eight-bit-control. Don't ignore a
4828 default value set for a group of characters.
4829 (Faset): Signal an error if IDXVAL is not a valid character code.
4830 Make a sub-chartable with correct initial value.
4831
4832 * fns.c (Fset_char_table_range): Don't set slots used as default
4833 values for ascii, eight-bit-control, eight-bit-graphic.
4834 Don't call Faref with charset-id.
4835 (Fset_char_table_default): Document how to treat normal character
4836 argument. Handle special slots used as default values of ascii,
4837 eight-bit-control, eight-bit-control. Make a sub chartable if
4838 necessary.
4839
4840 2005-04-20 Kenichi Handa <handa@m17n.org>
4841
4842 * search.c (boyer_moore): Fix previous change.
4843
4844 2005-04-19 Kim F. Storm <storm@cua.dk>
4845
4846 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
4847 face unless last visible char and first invisible char have the
4848 same face. Also use default face if saved_face_id is undefined.
4849
4850 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4851
4852 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
4853 `full_name'.
4854 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
4855 mac_scriptcode member.
4856
4857 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
4858 (syms_of_mac): Don't initialize them.
4859 (Vmac_charset_info_alist): New variable.
4860 (syms_of_mac): Defvar it.
4861 (create_text_encoding_info_alist): New function.
4862 (decode_mac_font_name, mac_to_x_fontname)
4863 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
4864 code the correspondence among XLFD charsets, Mac script codes, and
4865 Emacs coding systems. Use Vmac_charset_info_alist and result of
4866 create_text_encoding_info_alist instead.
4867 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
4868 routines also on Mac OS Classic.
4869 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
4870 Use add_font_name_table_entry.
4871 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
4872 specified. Derive unspecified scalable fields from specified one.
4873 (x_list_fonts): Consider Valternate_fontname_alist.
4874 (kDefaultFontSize): Change value from 9 to 12.
4875 (XLoadQueryFont): Get decoded font family, font face, and charset
4876 from x_font_name_to_mac_font_name. Set full name of loaded font.
4877 (mac_unload_font): Free `full_name' member.
4878 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
4879 NULL. Copy full_name member of struct MacFontStruct to that of
4880 struct font_info.
4881
4882 2005-04-19 Kim F. Storm <storm@cua.dk>
4883
4884 * xdisp.c (handle_stop): Set saved_face_id to current face if
4885 selective_display_ellipsis_p so ellipsis will be shown in same
4886 face as preceding text.
4887 (setup_for_ellipsis): Don't set saved_face_id here.
4888 (next_element_from_display_vector): Default to saved_face_id.
4889
4890 * fns.c (Fsafe_get): New function.
4891 (syms_of_fns): Defsubr it.
4892
4893 * lisp.h (Fsafe_get): EXFUN it.
4894
4895 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
4896 loops in case of bad face property lists. Limit number of face
4897 alias lookups to 10 (in case of face alias loops).
4898
4899 2005-04-18 Kim F. Storm <storm@cua.dk>
4900
4901 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
4902 It replaces the corresponding member from struct window, as a
4903 window may now show multiple overlay arrows.
4904 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
4905
4906 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
4907 Compare overlay_arrow_bitmap than overlay_arrow_p members.
4908
4909 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
4910 rather than from window.
4911 (update_window_fringes): Compare overlay_arrow_bitmap rather than
4912 overlay_arrow_p members.
4913 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
4914 if not default.
4915
4916 * window.h (struct window): Remove member overlay_arrow_bitmap.
4917
4918 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
4919
4920 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
4921 Calls changed. Don't check for overlay-arrow-bitmap property here.
4922 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
4923 fringe is present, return Lisp integer for bitmap (or -1 for default).
4924 Fix value of overlay-arrow-bitmap property to be a symbol, use
4925 lookup_fringe_bitmap to parse it.
4926 (display_line): Change call to overlay_arrow_at_row. Store integer
4927 return value as overlay bitmap in row rather than window.
4928 Only show overlay arrow if row displays text, or if no other overlay
4929 arrow is seen in window (if overlay marker is at point-max).
4930
4931 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
4932
4933 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
4934
4935 2005-04-18 Lute Kamstra <lute@gnu.org>
4936
4937 * lread.c (Vloads_in_progress): Static.
4938 * fns.c (Vloads_in_progress): Remove extern.
4939 (load_in_progress): Add extern.
4940 (Frequire): Use load_in_progress instead of Vloads_in_progress.
4941
4942 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
4943
4944 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
4945
4946 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4947
4948 * macterm.c (XTread_socket): Don't beep on keyboard input even if
4949 no frame is visible.
4950
4951 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4952
4953 * term.c (struct keys): Add support for shifted keys.
4954
4955 2005-04-16 Richard M. Stallman <rms@gnu.org>
4956
4957 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
4958 (set_message): Call with_echo_area_buffer with WHICH = 0.
4959 (set_message_1): Erase the echo area buffer first thing.
4960 (echo_area_display): Don't clear echo_message_buffer.
4961
4962 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4963
4964 * Makefile.in (mac.o): Depend on charset.h and coding.h.
4965
4966 * mac.c: Include charset.h and coding.h.
4967 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
4968 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
4969 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
4970
4971 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
4972
4973 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
4974
4975 * macterm.c (x_autoselect_window_p): Remove variable.
4976 (last_window): New variable.
4977 (XTreassert_line_highlight, x_change_line_highlight):
4978 Remove declarations.
4979 (mac_focus_changed, x_detect_focus_change): New functions and
4980 declarations.
4981 (XTextExtents16, front_emacs_window): Remove function.
4982 (mac_focus_frame): New function.
4983 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
4984 (mac_check_for_quit_char): Use it instead of front_emacs_window.
4985 (x_scroll_bar_report_motion): Obtain window from control owner.
4986 (x_make_frame_invisible): Set window manager size hint.
4987 (do_mouse_moved): Remove function.
4988 (XTread_socket): Move its contents here. Generate select-window
4989 event on mouse movement if needed. Use x_detect_focus_change on
4990 activate/deactivate events. Don't deiconify frame or invalidate
4991 window rectangle when dnd items are dropped.
4992 Don't activate/deactivate root control.
4993 (frame_highlight, frame_unhighlight): Activate/deactivate root
4994 control here.
4995 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
4996
4997 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
4998 New extern.
4999
5000 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
5001
5002 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
5003 (lisp): Use it.
5004 (SOME_MACHINE_LISP): Add tooltip.
5005
5006 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5007
5008 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
5009 Don't include TextEncodingConverter.h.
5010 (mac_system_script_code, Vmac_system_locale): New variables.
5011 (syms_of_mac): Defvar them.
5012 (mac_get_system_locale): New function.
5013
5014 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
5015 Use ENCODE_SYSTEM to encode title bar string.
5016 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
5017 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
5018 Use CFStringGetSystemEncoding to get system default string encoding.
5019
5020 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
5021 TextEncodingConverter.h.
5022
5023 2005-04-13 Steven Tamm <steventamm@mac.com>
5024
5025 * macterm.c (syms_of_macterm): Remove redundant definition of
5026 mac-pass-control-to-system.
5027
5028 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5029
5030 * window.c (Fset_window_configuration): Be careful when you choose
5031 among several possible points for the new_current_buffer.
5032
5033 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5034
5035 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
5036 poll_for_input_1. Set interrupt_input_pending to 1 instead.
5037 (Qlanguage_change) [MAC_OS]: New variable.
5038 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
5039 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
5040
5041 * macterm.c (mac_keyboard_text_encoding)
5042 (current_mac_keyboard_text_encoding): Remove variables.
5043 (XTread_socket): Store language-change event if keyboard script change
5044 is detected. Don't convert input to `mac_keyboard_text_encoding'.
5045 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
5046
5047 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
5048
5049 2005-04-10 Richard M. Stallman <rms@gnu.org>
5050
5051 * emacs.c (standard_args): Rename --bare-bones to --quick.
5052 Add -D aka --basic-display.
5053
5054 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
5055
5056 2005-04-09 Richard M. Stallman <rms@gnu.org>
5057
5058 * keymap.c (where_is_internal): Convert a string used as event type
5059 into "(any string)".
5060
5061 * lread.c (Vloads_in_progress): Not static.
5062 * fns.c (Vloads_in_progress): Add extern.
5063 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
5064
5065 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
5066
5067 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
5068
5069 2005-04-09 Lute Kamstra <lute@gnu.org>
5070
5071 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
5072 within the accessible part of the buffer.
5073
5074 2005-04-09 Kim F. Storm <storm@cua.dk>
5075
5076 * lread.c (readevalloop): Add args START and END as region in
5077 current buffer to read. Callers changed.
5078 When specified, narrow to this region only when reading,
5079 not during eval. Track next point to read from during eval.
5080 Also restore point to "real" buffer position before eval.
5081 (Feval_region): Don't save excursion and restriction here, and
5082 don't narrow to region. Just pass region to readevalloop.
5083 Note: Point is now preserved even when PRINTFLAG is nil.
5084
5085 2005-04-08 Kim F. Storm <storm@cua.dk>
5086
5087 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
5088
5089 2005-04-06 Kim F. Storm <storm@cua.dk>
5090
5091 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
5092
5093 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5094
5095 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
5096 (Fmac_get_preference): Doc fix.
5097
5098 * macfns.c (Fx_create_frame, x_create_tip_frame):
5099 Add "fontset-mac" to fallback font/fontsets.
5100
5101 2005-04-04 Kim F. Storm <storm@cua.dk>
5102
5103 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
5104
5105 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
5106 Call it again after autoload.
5107
5108 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5109
5110 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
5111 mallopt.
5112
5113 * ralloc.c (r_alloc_init): Ditto.
5114
5115 2005-04-01 Kenichi Handa <handa@m17n.org>
5116
5117 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
5118 (Vascii_eqv_table): Extern them.
5119
5120 * casetab.c (set_case_table): If standard is nonzero, setup
5121 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
5122
5123 * search.c (looking_at_1): Use current_buffer->case_canon_table,
5124 not DOWNCASE_TABLE.
5125 (string_match_1): Likewise.
5126 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
5127 Vascii_downcase_table.
5128 (fast_string_match_ignore_case): Likewise.
5129 (search_buffer): Fix checking of boyer-moore usability.
5130 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
5131 No need of tranlating characters in PAT. Fix calculation of
5132 simple_translate.
5133
5134 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5135
5136 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
5137 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
5138 Use XtNtopShadowPixel and XtNbottomShadowPixel.
5139 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
5140 really work and that breaks with some versions of Xaw3d.
5141
5142 2005-03-31 Kenichi Handa <handa@m17n.org>
5143
5144 * coding.c (syms_of_coding): Fix previous change.
5145
5146 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
5147
5148 * fileio.c (search_embedded_absfilename): Fix last change.
5149
5150 2005-03-25 Kenichi Handa <handa@m17n.org>
5151
5152 * coding.c (syms_of_coding): Suggest to use set-coding-category in
5153 the docstring of coding-category-list.
5154
5155 2005-03-31 Kim F. Storm <storm@cua.dk>
5156
5157 * keyboard.c (Qmouse_fixup_help_message): New var.
5158 (syms_of_keyboard): Intern and staticpro it.
5159 (show_help_echo): Apply mouse-fixup-help-message to help string.
5160
5161 2005-03-30 Kim F. Storm <storm@cua.dk>
5162
5163 * xdisp.c (display_line): Allow multiple overlay arrows in window.
5164
5165 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5166
5167 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
5168 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
5169 (Ffile_name_absolute_p): Use it.
5170 (search_embedded_absfilename): New fun, extracted from
5171 Fsubstitute_in_file_name. Use file_name_absolute_p.
5172 Free the pw data after use.
5173 (Fsubstitute_in_file_name): Use it.
5174 After cutting a prefix, re-check file-name-handler.
5175
5176 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
5177
5178 * w32term.h (x_output): Add focus_state.
5179
5180 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
5181 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
5182
5183 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
5184
5185 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
5186 Use Fexit_minibuffer.
5187 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
5188
5189 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5190
5191 * dired.c (Ffile_attributes): Add a missing gcpro.
5192
5193 * alloc.c (make_number): The arg can be bigger than `int'.
5194 * lisp.h (make_number): Make prototype more precise.
5195
5196 * process.c, dired.c (Vfile_name_coding_system)
5197 (Vdefault_file_name_coding_system):
5198 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
5199 (Vdefault_file_name_coding_system): Remove unused declarations.
5200
5201 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5202
5203 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
5204 if it failed to pop up (Gnome "show pointer on ctrl" option makes
5205 menus fail to pop up).
5206
5207 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
5208
5209 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
5210 Just prepend a backslash without replacing the NBSP by an SPC.
5211
5212 2005-03-22 Kim F. Storm <storm@cua.dk>
5213
5214 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
5215 * dispextern.h (lookup_derived_face): Fix prototype.
5216 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
5217
5218 * xdisp.c (handle_single_display_spec): Derive left-fringe and
5219 right-fringe face from fringe face.
5220
5221 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
5222 Derive face from fringe face.
5223
5224 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5225
5226 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
5227
5228 2005-03-22 David Kastrup <dak@gnu.org>
5229
5230 * textprop.c (Fnext_char_property_change)
5231 (Fprevious_char_property_change): Allow marker as limit.
5232 (Fnext_single_char_property_change)
5233 (Fprevious_single_char_property_change): Check that limit is a
5234 number in strings.
5235 (Fnext_single_char_property_change): Coerce position to integer.
5236 (Fprevious_single_char_property_change): Same here.
5237
5238 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
5239
5240 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
5241
5242 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
5243
5244 * frame.c (Fignore_event): Remove.
5245 (syms_of_frame): Don't defsubr it.
5246
5247 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
5248 redundant `ignore-event'.
5249
5250 2005-03-19 Eli Zaretskii <eliz@gnu.org>
5251
5252 * unexec.c (write_segment, unexec): Move these functions to avoid
5253 forward references (which cause errors with "gcc -gcoff").
5254
5255 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5256
5257 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
5258 that it doesn't become "tooltip". The specbind is enough.
5259
5260 * xrdb.c (x_load_resources): Use different char *helv when I18N
5261 is present.
5262
5263 2005-03-17 Kenichi Handa <handa@m17n.org>
5264
5265 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
5266
5267 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5268
5269 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
5270 Use xic_create_fontsetname even for non-Motif menus.
5271 Don't forget to free the fontsetname.
5272
5273 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
5274
5275 2005-03-17 Richard M. Stallman <rms@gnu.org>
5276
5277 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
5278
5279 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
5280 (Fmake_symbolic_link): Use G to read the new file name.
5281
5282 * callint.c (Finteractive): Document G option.
5283 (Fcall_interactively): Implement G option.
5284
5285 * buffer.c (buffer_lisp_local_variables): New function,
5286 broken out from Fbuffer_local_variables.
5287 (clone_per_buffer_values): Use buffer_lisp_local_variables.
5288
5289 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5290
5291 * xfns.c (xic_create_fontsetname): Add `motif' argument.
5292 Always return a freshly allocated string.
5293 (xic_create_xfontset): Adjust call.
5294
5295 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
5296 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
5297 (dump_realized_face): Fix warning.
5298
5299 * emacs.c (Fkill_emacs): YAILOM.
5300
5301 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
5302
5303 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5304
5305 * mac.c (HASHKEY_TERMINAL): Remove.
5306 (HASHKEY_MAX_NID): New macro.
5307 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
5308 argument.
5309 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
5310 (xrm_create_database, xrm_q_put_resource)
5311 (xrm_merge_string_database, xrm_q_get_resource_1)
5312 (xrm_q_get_resource): Change resource database representation so
5313 that it may not use multiple hash tables for a single database.
5314 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
5315
5316 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
5317
5318 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
5319
5320 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
5321 locale-coding-system, as was already done for WINDOWSNT.
5322
5323 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
5324 translation for chars in the 0-255 range.
5325
5326 2005-03-16 Lute Kamstra <lute@gnu.org>
5327
5328 * floatfns.c (Ffloor): Doc fix.
5329
5330 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5331
5332 * mac.c: Include macterm.h instead of directly including Carbon.h.
5333 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
5334 (Qarray, Qdictionary): New variables.
5335 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
5336 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
5337 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
5338 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
5339 in callback for CFDictionaryApplyFunction.
5340 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
5341 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
5342 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
5343 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
5344 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
5345 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
5346 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
5347 (skip_white_space, parse_comment, parse_include_file)
5348 (parse_binding, parse_component, parse_resource_name, parse_value)
5349 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
5350 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
5351 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
5352 New functions.
5353
5354 * macfns.c (mac_get_rdb_resource): Remove function.
5355 (x_get_string_resource): Use xrm_get_resource.
5356
5357 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
5358
5359 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
5360 name_list_element.
5361 (mac_make_rdb): Create resource database from preferences and
5362 argument string.
5363 (mac_term_init): Save resource database to cddr part of
5364 name_list_element.
5365
5366 * macterm.h (xrm_merge_string_database, xrm_get_resource)
5367 (xrm_get_preference_database): Add externs.
5368 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
5369 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
5370 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
5371
5372 * process.c (init_process): Change `#ifdef DARWIN' to `#if
5373 defined (DARWIN) || defined (MAC_OSX)'
5374
5375 * s/darwin.h (DARWIN): Don't define.
5376
5377 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5378
5379 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
5380 Remove unused variables.
5381 (syms_of_macfns): Don't initialize them. Likewise for
5382 Qface_set_after_frame_default. Defvar and initialize
5383 Vx_window_horizontal_drag_shape.
5384 (x_set_mouse_color): Change mouse pointer shape.
5385 (mac_window) [!MAC_OSX]: Create root control.
5386 (Fx_create_frame): Remove initializations of mouse pointer shapes.
5387 (hourglass_started): New function (from xfns.c).
5388 (start_hourglass, cancel_hourglass): Put function body in #ifdef
5389 MAC_OSX.
5390 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
5391 indicator for each non-tooltip frame if needed, and show it.
5392 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
5393
5394 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
5395 Controls.h. Use ThemeCursor instead of CursHandle.
5396
5397 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
5398 Remove functions and declarations.
5399 (mac_set_colors): Take argument for saving background color.
5400 All callers changed.
5401 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
5402 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
5403 background color.
5404 (x_update_end, mac_do_track_drag): Don't reset background color.
5405 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
5406 Use SetThemeCursor.
5407 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
5408 indicator control to the upper-right corner of the window.
5409 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
5410 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
5411 (do_window_update): Update controls after updating content area.
5412 (mac_handle_window_event): Remove unused extern.
5413 (XTread_socket): Check both control handle and control part code
5414 to determine whether a scroll bar is clicked. Activate/deactivate
5415 root control instead of contained scroll bar controls.
5416 (make_mac_terminal_frame): Use ThemeCursor constants.
5417
5418 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
5419 New member hourglass_control.
5420 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
5421 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
5422
5423 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5424
5425 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
5426 coincides with that in Apple X11 except `clear', `enter' on
5427 laptops, and fn + `enter' on laptops.
5428
5429 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5430
5431 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
5432 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
5433 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
5434
5435 * xfns.c (xic_defaut_fontset): New constant.
5436 (xic_create_fontsetname): New function.
5437 Extracted from create_frame_xic. Try to generate a slightly
5438 better fontset.
5439 (xic_create_xfontset): Use it.
5440 (create_frame_xic): Simplify.
5441
5442 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
5443
5444 * fileio.c (Fmake_symbolic_link): Fix last change.
5445
5446 2005-03-11 Richard M. Stallman <rms@gnu.org>
5447
5448 * fileio.c (Frename_file, Fadd_name_to_file)
5449 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
5450 expand the basename of FILE relative to it.
5451
5452 2005-03-11 Kenichi Handa <handa@m17n.org>
5453
5454 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
5455 before calling setup_coding_system so that autoloading of a coding
5456 system work.
5457
5458 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5459
5460 * xfns.c (hourglass_started): New function.
5461
5462 * dispextern.h: Declare hourglass_started.
5463
5464 * keyboard.c (Fexecute_extended_command): Restart hourglass
5465 after call to Fcompleting_read if already started.
5466
5467 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
5468 GTK main loop is entered in xterm.c, thus doing the redraw.
5469
5470 2005-03-10 Kim F. Storm <storm@cua.dk>
5471
5472 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
5473
5474 2005-03-08 Kenichi Handa <handa@m17n.org>
5475
5476 * frame.c (x_set_font): Call set_default_ascii_font if an
5477 available font is found.
5478
5479 * fontset.c (set_default_ascii_font): New function.
5480 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
5481
5482 * fontset.h (set_default_ascii_font): Extern it.
5483
5484 2005-03-07 Kim F. Storm <storm@cua.dk>
5485
5486 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
5487 (clear_image_cache_count): New var.
5488 (redisplay_internal): Don't clear face and image caches in the
5489 middle of redisplay; do it afterwards.
5490
5491 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
5492
5493 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
5494 is valid. If not, clear phys_cursor_on_p and return.
5495
5496 2005-03-07 Andreas Schwab <schwab@suse.de>
5497
5498 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
5499
5500 2005-03-06 Richard M. Stallman <rms@gnu.org>
5501
5502 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
5503
5504 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
5505 (Feval, Ffuncall): Use CHECK_CONS_LIST.
5506
5507 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
5508
5509 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
5510 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
5511
5512 2005-03-05 Juri Linkov <juri@jurta.org>
5513
5514 * emacs.c (USAGE1): Replace Info node name "command arguments"
5515 with "emacs invocation".
5516 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
5517 allow arguments `--color' and `MODE' to be separated by space.
5518 Add --no-blinking-cursor, -nbc.
5519 (standard_args): Add -nbc, --no-blinking-cursor.
5520
5521 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
5522
5523 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
5524 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
5525 * fileio.c (Fexpand_file_name) [VMS]:
5526 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
5527 * doc.c (munge_doc_file_name) [VMS]: Likewise.
5528 (Fsnarf_documentation): Call munge_doc_file_name.
5529
5530 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
5531
5532 * s/vms.h (FILE_SYSTEM_CASE): New macro.
5533 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
5534 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
5535
5536 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5537
5538 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
5539 defined (MAC_OSX) && defined (HAVE_CARBON)'.
5540
5541 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
5542
5543 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
5544 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
5545 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
5546 (mac_clear_font_name_table): Move extern to macterm.h.
5547
5548 * macfns.c (install_window_handler): Move extern to macterm.h.
5549 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
5550 valid. Don't check !NILP (dir) because it is already checked with
5551 CHECK_STRING.
5552 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
5553 specifying the default location and obtaining the selected filename.
5554
5555 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
5556
5557 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
5558 are included via Carbon.h.
5559
5560 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
5561 Define USE_CARBON_EVENTS to 1.
5562 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
5563 (x_free_frame_resources): Call remove_window_handler for
5564 non-tooltip windows.
5565 [TARGET_API_MAC_CARBON]: Don't include headers that are included
5566 via Carbon.h.
5567 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
5568 (mac_do_receive_dragUPP): New variables.
5569 (mac_handle_service_event, init_service_handler): Put declarations
5570 and definitions in #ifdef MAC_OSX.
5571 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
5572 drag-and-drop handler functions and register them.
5573 (remove_window_handler): New function.
5574 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
5575 Use fsspec_to_posix_pathname.
5576 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
5577 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
5578 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
5579 Set default cursors.
5580 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
5581 init_service_handler or init_quit_char_handler.
5582 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
5583
5584 * macterm.h (install_window_handler, remove_window_handler)
5585 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
5586 (mac_clear_font_name_table): New externs.
5587
5588 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
5589
5590 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
5591 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
5592 (Fexpand_file_name): Likewise.
5593
5594 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
5595
5596 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
5597 no longer special-case VMS. Add bogus return value.
5598
5599 2005-03-02 Kim F. Storm <storm@cua.dk>
5600
5601 * dispextern.h (XASSERTS): Define to 0 if not already defined.
5602 (xassert) [!XASSERTS]: Define dummy version.
5603
5604 2005-03-02 Kim F. Storm <storm@cua.dk>
5605
5606 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
5607 Reported by David Kastrup.
5608
5609 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
5610
5611 * xdisp.c (get_next_display_element): Fix control and escape
5612 glyph from display vector.
5613
5614 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
5615
5616 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
5617
5618 2005-02-27 Richard M. Stallman <rms@gnu.org>
5619
5620 * xdisp.c (fast_find_position): Rename END to BEG.
5621 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
5622
5623 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5624
5625 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
5626 gtk_window_resize and x_wm_set_size_hint.
5627
5628 2005-02-25 Kim F. Storm <storm@cua.dk>
5629
5630 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
5631
5632 * xdisp.c (init_from_display_pos): Don't read past end of
5633 it->overlay_strings array.
5634
5635 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
5636
5637 * buffer.c (syms_of_buffer): Fix typo.
5638
5639 2005-02-23 Lute Kamstra <lute@gnu.org>
5640
5641 * buffer.c (Foverlay_buffer): Doc fix.
5642
5643 2005-02-22 Kim F. Storm <storm@cua.dk>
5644
5645 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
5646 and symbol keys in alists and hash tables.
5647
5648 * xdisp.c (fast_find_position): Fix search for start of overlay.
5649
5650 2005-02-21 Kim F. Storm <storm@cua.dk>
5651
5652 * window.c (window_scroll_pixel_based): When scrolling backwards,
5653 handle partial visible line at end of window even when we hit PT.
5654
5655 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
5656
5657 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
5658
5659 2005-02-21 Kim F. Storm <storm@cua.dk>
5660
5661 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
5662 I think those asserts are bogus if buffer contains invisible text
5663 or images.
5664
5665 2005-02-21 David Kastrup <dak@gnu.org>
5666
5667 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
5668
5669 2005-02-20 Kim F. Storm <storm@cua.dk>
5670
5671 * xdisp.c (pos_visible_p): Be sure to move to the specified
5672 position. Always get the full ascent / descent of the
5673 corresponding row, to return reliable rtop and rbot values.
5674 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
5675 Must look one character back, as back_to_previous_line_start
5676 returns position after the newline.
5677 (move_it_vertically_backward): Fix heuristic for when to move further
5678 back in case line_height * 2/3 is larger than window height.
5679 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
5680 as it does not do anything anymore. Add arg current_matrix_p to
5681 use current matrix rather than desired matrix when set.
5682 (try_cursor_movement): Don't scroll to make cursor row fully
5683 visible if cursor didn't move. This avoids unexpected recentering
5684 in case of blinking cursor or accepting process output.
5685 Use current matrix to check cursor row visibility.
5686 (redisplay_window): Fix whether to recenter or move to top in case
5687 cursor line is taller than window height.
5688 (find_first_unchanged_at_end_row): Stop search if we reach a row
5689 which not enabled (instead of abort).
5690
5691 2005-02-18 Kim F. Storm <storm@cua.dk>
5692
5693 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
5694 to be nil in a :box attribute value list; customize prints that
5695 as lisp value when no box color is specified.
5696
5697 * .gdbinit (pitx, pit): Pretty print display iterator.
5698 (prowx, prow): Pretty print glyph row.
5699 (pcursorx, pcursor): Pretty print a window cursor.
5700 (pwinx, pwin): Pretty print struct window.
5701
5702 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5703
5704 * alloc.c (BLOCK_BYTES): Harmless typo.
5705
5706 2005-02-17 Andreas Schwab <schwab@suse.de>
5707
5708 * xfns.c (hack_wm_protocols): Use correct type for last parameter
5709 of XGetWindowProperty to avoid aliasing issues.
5710 (Fx_window_property): Likewise.
5711
5712 * xselect.c (Fx_disown_selection_internal): Use union of struct
5713 input_event and struct selection_input_event to avoid aliasing issues.
5714
5715 * xterm.c (handle_one_xevent): Use union of struct input_event and
5716 struct selection_input_event to avoid aliasing issues.
5717 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
5718
5719 2005-02-17 Kim F. Storm <storm@cua.dk>
5720
5721 * dispextern.h (enum it_method): New enum.
5722 (GET_FROM_*): Its members.
5723 (struct it): Change member method from function pointer to enum.
5724
5725 * xdisp.c (check_it, init_from_display_pos, handle_stop)
5726 (setup_for_ellipsis, handle_single_display_spec)
5727 (handle_composition_prop, next_overlay_string)
5728 (get_overlay_strings, reseat_1, reseat_to_string)
5729 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
5730 (in_display_vector_p, display_line, get_next_display_element):
5731 Change it->method from function pointer to enum.
5732 (get_next_element): New array to map it->method to function.
5733 (get_next_display_element): Use it.
5734 (set_iterator_to_next): Use switch instead of if/else chain.
5735
5736 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
5737
5738 * w32select.c: Summary: Thorough rework to implement Unicode
5739 clipboard operations and delayed rendering.
5740
5741 Drop last_clipboard_text and related code, keep track of
5742 ownership via clipboard_owner instead. Drop old #if0 sections.
5743
5744 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
5745 (clipboard_owner, modifying_clipboard, cfg_coding_system)
5746 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
5747 (current_coding_system, current_requires_encoding)
5748 (current_num_nls, current_clipboard_type, current_lcid):
5749 New static variables.
5750
5751 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
5752 (render, render_all, run_protected, lisp_error_handler)
5753 (owner_callback, create_owner, setup_config)
5754 (enum_locale_callback, cp_from_locale, coding_from_cp):
5755 New local functions.
5756
5757 (term_w32select, globals_of_w32select): New global functions.
5758
5759 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
5760 clipboard_owner instead. Use delayed rendering and provide
5761 all text formats. Provide CF_LOCALE if necessary.
5762
5763 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
5764 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
5765 available. Force DOS line-ends for decoding.
5766
5767 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
5768
5769 (syms_of_w32select): Init and register new variables.
5770
5771 * w32.h: Add prototypes for globals_of_w32select and
5772 term_w32select. Make the neighboring K&R declarations into
5773 prototypes, too.
5774
5775 * emacs.c: Include w32.h to get function prototypes.
5776 (main): Call globals_of_w32select.
5777
5778 * w32.c (term_ntproc): Call term_w32select.
5779
5780 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
5781
5782 2005-02-16 Kim F. Storm <storm@cua.dk>
5783
5784 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
5785 at end of display vector.
5786
5787 2005-02-15 Richard M. Stallman <rms@gnu.org>
5788
5789 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
5790 for mode and header lines.
5791
5792 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
5793
5794 * keymap.h (describe_map_tree): Change decl.
5795
5796 * keyboard.c (command_loop_1): Always use safe_run_hooks
5797 to run Qdeferred_action_function.
5798
5799 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
5800 (describe_map, describe_vector): Likewise. When it's 1,
5801 don't omit shadowed bindings, instead mark them as shadowed.
5802
5803 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
5804 for describe_map_tree. Pass 1 for MENTION_SHADOW.
5805
5806 * data.c (Fsetq_default): Allow no arg case.
5807
5808 2005-02-14 Kenichi Handa <handa@m17n.org>
5809
5810 * coding.c (encode_coding_string): Always return a unibyte string.
5811 If NOCOPY is nonzero and there's no need of encoding, make STR
5812 unibyte directly.
5813
5814 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
5815 multibyte string, signal an error instead of aborting.
5816
5817 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
5818
5819 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
5820
5821 2005-02-12 Kim F. Storm <storm@cua.dk>
5822
5823 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
5824
5825 2005-02-10 Kim F. Storm <storm@cua.dk>
5826
5827 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
5828 if it moves outside window or it doesn't display text.
5829
5830 2005-02-09 Kim F. Storm <storm@cua.dk>
5831
5832 * undo.c (Fprimitive_undo): Check that undo function does not
5833 switch buffer.
5834
5835 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5836
5837 * xselect.c (selection_data_to_lisp_data): For the special case
5838 type == XA_ATOM, data contains array of int, not array of Atom.
5839 (x_property_data_to_lisp, selection_data_to_lisp_data):
5840 Comment update: data must be array of int for format == 32.
5841
5842 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5843
5844 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
5845
5846 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5847
5848 * xfns.c (Fx_change_window_property): Use long array when format is 32.
5849 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
5850 convert long array returned from XGetWindowProperty to an int array.
5851 (x_set_tool_bar_lines): Check that width and height is greater than
5852 zero before clearing area.
5853
5854 * xselect.c (x_reply_selection_request): Pass long array to
5855 XChangeProperty so that 64 bit longs are handeled correctly.
5856 (x_get_window_property): If format is 32 and long is bigger than 32
5857 bits convert data from XGetWindowProperty from long array to int array.
5858 (lisp_data_to_selection_data): When the input is a vector and the
5859 format is 32, allocate a long array even if long is bigger than 32 bits.
5860 (x_fill_property_data): Use char, short and long as the man page
5861 for XChangeProperty specifies. This way the data returned is OK for
5862 both 32 and 64 bit machines.
5863 (x_handle_dnd_message): Calculate size correctly even for 64 bit
5864 machines.
5865 (Fx_send_client_event): Undo change from 2005-02-05,
5866 x_fill_property_data now handles that case.
5867
5868 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
5869 reason for the approach in the code.
5870
5871 2005-02-07 Kim F. Storm <storm@cua.dk>
5872
5873 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
5874
5875 2005-02-06 Richard M. Stallman <rms@gnu.org>
5876
5877 * eval.c (Frun_hook_with_args)
5878 (Frun_hook_with_args_until_success)
5879 (Frun_hook_with_args_until_failure): Doc fixes.
5880
5881 2005-02-05 Andreas Schwab <schwab@suse.de>
5882
5883 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
5884
5885 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5886
5887 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
5888 the longs in a XClientMessageEvent correctly when long is 64 bits.
5889
5890 2005-02-05 Eli Zaretskii <eliz@gnu.org>
5891
5892 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
5893 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
5894
5895 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5896
5897 * xmenu.c (menubar_selection_callback): Force out GTK buffered
5898 events so the menu event comes after them. This is to prevent sit-for
5899 from exiting on buffered events directly after a menu selection,
5900 lisp code for Help => About Emacs uses sit-for.
5901
5902 * gtkutil.c (create_menus): Connect selection-done event instead of
5903 the deactivate event to deactivate_cb. This will make the last
5904 leave event come before the call to deactivate_cb, so the leave
5905 event does not make sit-for exit after a menu selection.
5906
5907 2005-02-03 Kim F. Storm <storm@cua.dk>
5908
5909 * dispnew.c (build_frame_matrix_from_leaf_window)
5910 [!GLYPH_DEBUG]: Fix xassert.
5911
5912 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
5913
5914 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5915
5916 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5917
5918 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
5919 the compiling OS version.
5920
5921 * macfns.c (x_create_tip_frame): Likewise.
5922
5923 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
5924
5925 2005-02-03 Richard M. Stallman <rms@gnu.org>
5926
5927 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
5928
5929 * xdisp.c (echo_area_display): Clear echo_message_buffer.
5930
5931 * buffer.c (Fbury_buffer): Doc fix.
5932
5933 2005-02-02 Steven Tamm <steventamm@mac.com>
5934
5935 * macfns.c (unwind_create_frame): Fix compile error due to
5936 xassert being uncondition, but predicate is.
5937 * dispnew.c (update_window): Fix compile error due to
5938 xassert being uncondition, but predicate is.
5939
5940 2005-02-02 Miles Bader <miles@gnu.org>
5941
5942 * dispextern.h (xassert): Enable unconditionally.
5943
5944 2005-02-02 Kim F. Storm <storm@cua.dk>
5945
5946 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
5947
5948 2005-02-02 Kenichi Handa <handa@m17n.org>
5949
5950 * casefiddle.c (casify_object): Enable changing characters of
5951 different byte length.
5952 (casify_region): Fix loop condition, args to replace_range_2, and
5953 update opoint_byte.
5954
5955 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
5956
5957 2005-02-01 Kim F. Storm <storm@cua.dk>
5958
5959 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
5960 stack before calling handle_display_prop.
5961
5962 2005-01-31 Kim F. Storm <storm@cua.dk>
5963
5964 * undo.c (Qapply): New lisp var.
5965 (syms_of_undo): Intern and staticpro it.
5966 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
5967 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
5968
5969 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
5970
5971 2005-01-30 Jesper Harder <harder@phys.au.dk>
5972
5973 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
5974 <mac-emulate-three-button-mouse>: Fix docstring indentation.
5975
5976 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
5977
5978 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
5979 Increase value to 3 Meg.
5980
5981 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5982
5983 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
5984 button events are not received otherwise.
5985
5986 2005-01-29 Richard M. Stallman <rms@gnu.org>
5987
5988 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
5989
5990 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
5991
5992 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
5993
5994 * keymap.c (access_keymap): YAILOM.
5995
5996 2005-01-27 Kim F. Storm <storm@cua.dk>
5997
5998 * xdisp.c (get_phys_cursor_geometry): New function to calculate
5999 phys cursor position and size for hollow cursor. Position is
6000 aligned with get_glyph_string_clip_rect and ensures that a hollow
6001 cursor is shown, even when the actual glyph is not visible.
6002
6003 * dispextern.h (get_phys_cursor_geometry): Add prototype.
6004
6005 * xterm.c (x_clip_to_row): Ensure y >= 0.
6006 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6007
6008 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6009
6010 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
6011
6012 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
6013
6014 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
6015
6016 2005-01-27 Kim F. Storm <storm@cua.dk>
6017
6018 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
6019 glyph, even when row is only partially visible and actual cursor
6020 position is not visible.
6021
6022 2005-01-24 Richard M. Stallman <rms@gnu.org>
6023
6024 * xterm.c (x_error_quitter): No longer static, and moved after
6025 x_error_handler.
6026
6027 2005-01-24 Kim F. Storm <storm@cua.dk>
6028
6029 * xdisp.c (move_it_by_lines): If we move forward after going too
6030 far back, cancel move if end position is same as start position.
6031
6032 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6033
6034 * dispextern.h (struct glyph_string): New members clip_head and
6035 clip_tail.
6036
6037 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
6038 region to the area between clip_head and clip_tail.
6039 (draw_glyphs): Record the area that need to be actually redrawn to
6040 the new variables clip_head and clip_tail when there are
6041 overhangs. Set values of these variables to the corresponding
6042 members in struct glyph_string. Refine x coordinates for
6043 notice_overwritten_cursor using clip_head and clip_tail.
6044
6045 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
6046
6047 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
6048 QDTextBounds.
6049 (x_draw_glyph_string): Don't fill the background of the successor
6050 of a glyph with a right overhang if the successor will draw a cursor.
6051 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6052 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
6053
6054 2005-01-24 Kim F. Storm <storm@cua.dk>
6055
6056 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
6057 direction if window height was smaller than next-screen-context-lines.
6058 Now always scroll at least one line in the requested direction.
6059 Ensure that we actually do scroll backwards when requested to do so.
6060
6061 * xdisp.c (redisplay_window): Only try to make cursor line fully
6062 visible once (to avoid redisplay loop).
6063
6064 2005-01-23 Kim F. Storm <storm@cua.dk>
6065
6066 * window.c (Fpos_visible_in_window_p): Simplify return value for
6067 partially visible rows.
6068 (window_scroll_pixel_based): Adapt to that change.
6069
6070 * window.c (window_scroll_pixel_based): Force moving to next line
6071 if scrolling doesn't move start point, e.g. if looking at tall image.
6072
6073 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
6074 Clear last_height before calling line_bottom_y to get real height.
6075 Fix calculation of y.
6076
6077 2005-01-22 Steven Tamm <steventamm@mac.com>
6078
6079 * s/darwin.h: Removed PTY_ITERATION from here.
6080 (DARWIN): Define.
6081
6082 * process.c (init_process): Default process-connection-type to
6083 nil on darwin 6 or less, t if it is 7 or higher. This way the
6084 broken pty behavior is still allowed on darwin 6 for interactive
6085 processes for people that know what they are doing.
6086
6087 2005-01-22 Kim F. Storm <storm@cua.dk>
6088
6089 * window.c (auto_window_vscroll_p): New boolean.
6090 (syms_of_window): DEFVAR_BOOL it.
6091 (Fpos_visible_in_window_p): Extend return value to include RTOP
6092 and RBOT values if FULLY is nil.
6093 (window_scroll_pixel_based): Adjust vscroll for partially visible
6094 rows if auto_window_vscroll_p is set.
6095 (Fset_window_vscroll): Do nothing if vscroll is not modified.
6096
6097 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
6098 to return number of partially invisible pixels at top and bottom
6099 of the dislay row at POS.
6100
6101 * lisp.h (pos_visible_p): Fix prototype.
6102
6103 2005-01-21 Richard M. Stallman <rms@gnu.org>
6104
6105 * fileio.c (Fcopy_file): Doc fix.
6106
6107 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6108
6109 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
6110 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
6111 start of function for older compilers.
6112
6113 2005-01-20 Richard M. Stallman <rms@gnu.org>
6114
6115 * editfns.c (Fmessage): If arg is "", return "" (as before).
6116
6117 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
6118
6119 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
6120 variable.
6121
6122 2005-01-20 Steven Tamm <steventamm@mac.com>
6123
6124 * editfns.c (Voperating_system_release): Add.
6125 (init_editfns): Assign new variable operating-system-release
6126 based on call to uname if available.
6127 (get_operating_system_release): Add function to
6128 allow c-level access to operating system release.
6129
6130 * config.h: Regenerated.
6131
6132 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
6133 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
6134 using ptys as '7'.
6135
6136 2005-01-20 Kim F. Storm <storm@cua.dk>
6137
6138 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
6139
6140 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
6141 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
6142
6143 * macterm.c (x_draw_glyph_string_box): Likewise.
6144
6145 * w32term.c (x_draw_glyph_string_box): Likewise.
6146
6147 * indent.c (Fvertical_motion): Temporarily disable selective display.
6148
6149 2005-01-19 Kim F. Storm <storm@cua.dk>
6150
6151 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
6152 image property.
6153
6154 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
6155
6156 2005-01-18 Kim F. Storm <storm@cua.dk>
6157
6158 * xdisp.c (fast_find_position): Backtrack to find first row if
6159 charpos is inside a display overlay that spans multiple lines.
6160
6161 2005-01-18 Kenichi Handa <handa@m17n.org>
6162
6163 * coding.c (decode_coding_iso2022): Translate invalid codes if
6164 translation-table is specified.
6165
6166 2005-01-18 Kim F. Storm <storm@cua.dk>
6167
6168 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
6169 change. If handle_display_prop indicates newline is replaced by
6170 image or text, move back to start of relevant overlay or interval
6171 and continue scan from there. Simplify.
6172
6173 2005-01-17 Kim F. Storm <storm@cua.dk>
6174
6175 * dispnew.c (mode_line_string, marginal_area_string):
6176 Fix off-by-one error in search for glyph.
6177
6178 2005-01-16 Kim F. Storm <storm@cua.dk>
6179
6180 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
6181
6182 2005-01-16 Steven Tamm <steventamm@mac.com>
6183
6184 * macterm.c (mac_to_x_fontname): Remove spurious argument.
6185
6186 2005-01-16 Andreas Schwab <schwab@suse.de>
6187
6188 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
6189
6190 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6191
6192 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
6193 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
6194
6195 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6196
6197 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
6198 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
6199 New flags for readable_events.
6200 (get_filtered_input_pending, readable_filtered_events): Remove.
6201 (tracking_off): Call readable_events and get_input_pending with
6202 flag READABLE_EVENTS_DO_TIMERS_NOW.
6203 (readable_events): Move code from old readable_filtered_events here,
6204 but check new READABLE_EVENTS_* in argument flags instead of previous
6205 two boolean arguments do_timers_now and filter_events.
6206 If we are doing mouse tracking and the mouse moved, return only if
6207 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
6208 (swallow_events): Call get_input_pending with flag
6209 READABLE_EVENTS_DO_TIMERS_NOW.
6210 (get_input_pending): Move code from old get_filtered_input_pending
6211 here. Replace boolean arguments do_timers_now, filter_events with
6212 flags, and pass flags to readable_events. Document new
6213 READABLE_EVENTS_* flags.
6214 (detect_input_pending_ignore_squeezables): New function.
6215 (detect_input_pending_run_timers): Call get_input_pending with flag
6216 READABLE_EVENTS_DO_TIMERS_NOW.
6217 (Finput_pending_p): Call get_input_pending with flags
6218 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
6219
6220 * dispnew.c (update_window, update_frame_1): Replace calls to
6221 detect_input_pending with detect_input_pending_ignore_squeezables
6222 so that redisplay is not paused if the event queue contains only
6223 mouse movements.
6224
6225 * lisp.h: Declare detect_input_pending_ignore_squeezables.
6226
6227 2005-01-15 Steven Tamm <steventamm@mac.com>
6228
6229 * macterm.c (Vmac_use_core_graphics): Declare variable for
6230 mac-allow-anti-aliasing.
6231 (syms_of_macterm): DEFVAR_LISP and initialize it.
6232 (mac_draw_string_common): Use core graphics text rendering if
6233 mac-allow-anti-aliasing is enabled.
6234
6235 * macfns.c (Fx_file_dialog): Save As dialog includes only the
6236 file name in the text box.
6237
6238 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6239
6240 * macfns.c (x_set_foreground_color, x_set_background_color):
6241 Sync with xfns.c.
6242 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
6243 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
6244 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
6245
6246 2005-01-14 Kim F. Storm <storm@cua.dk>
6247
6248 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
6249
6250 2005-01-13 Richard M. Stallman <rms@gnu.org>
6251
6252 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
6253 if Voverriding_terminal_local_map is non-nil.
6254
6255 * keyboard.c (syms_of_keyboard): Doc fix.
6256
6257 2005-01-13 Kim F. Storm <storm@cua.dk>
6258
6259 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
6260 (specify 0 for FACE instead). Reorder arg list. Doc fix.
6261
6262 2005-01-12 Richard M. Stallman <rms@gnu.org>
6263
6264 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
6265 face property for characters that don't specify one.
6266
6267 * fns.c (Frequire): Record in load-history unconditionally.
6268
6269 2005-01-10 Kim F. Storm <storm@cua.dk>
6270
6271 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
6272
6273 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
6274 Callers changed.
6275 Add support to merge with lisp face id too (if face_name is t).
6276
6277 * xdisp.c (get_next_display_element, next_element_from_display_vector):
6278 Don't lookup lface_id from display table glyphs here; instead use
6279 merge_faces to merge the lisp face id into current face.
6280
6281 2005-01-09 Kim F. Storm <storm@cua.dk>
6282
6283 * dispextern.h (struct it): New member dpvec_face_id.
6284 (merge_into_realized_face): Add prototype.
6285
6286 * xfaces.c (merge_into_realized_face): New function. Used to
6287 merge escape-glyph face or face from display table into current face.
6288
6289 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
6290 (syms_of_xdisp): DEFVAR_LISP it.
6291 (escape_glyph_face): Remove var.
6292 (redisplay_window): Don't initialize it.
6293 (setup_for_ellipsis, get_next_display_element):
6294 Set it->dpvec_face_id to -1.
6295 (get_next_display_element): Test Vshow_nonbreak_escape.
6296 Do not setup escape_glyph_face.
6297 Properly merge escape-glyph face or face from display table with
6298 current face for escape and control characters.
6299 Set it->dpvec_face_id to relevant face id instead of adding it to each
6300 element of display vector.
6301 (next_element_from_display_vector): If it->dpvec_face_id is set,
6302 use that instead of lface_id from glyph itself.
6303
6304 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6305
6306 * xterm.h (struct x_output): New member, toolbar_detached.
6307
6308 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
6309 38.
6310 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
6311 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
6312 (xg_create_tool_bar): Initialize toolbar_detached.
6313 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
6314 toolbar_detached is zero.
6315
6316 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6317
6318 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
6319 gtk_menu_popup if not for_click, so callbacks for the menu are called.
6320
6321 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
6322 (xg_tool_bar_callback, xg_tool_bar_help_callback)
6323 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
6324
6325 * xselect.c (x_get_foreign_selection, x_fill_property_data)
6326 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
6327 XFLOAT_DATA to get extract number from Lisp object.
6328
6329 2005-01-07 Kim F. Storm <storm@cua.dk>
6330
6331 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
6332 Set stop_charpos to current charpos instead of 0.
6333
6334 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
6335
6336 * xdisp.c (Fformat_mode_line): First arg now required.
6337
6338 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6339
6340 * macterm.c (XLoadQueryFont): Correctly handle 0 size
6341 font widths that are returned from some Japanese fonts.
6342
6343 2005-01-06 Kim F. Storm <storm@cua.dk>
6344
6345 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
6346 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
6347 (destroy_fringe_bitmap): Set fringe_faces element to nil.
6348 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
6349 fringe_faces array and init elements to nil.
6350 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
6351 non-persistent face id.
6352 (mark_fringe_data): New function for GC.
6353
6354 * alloc.c (mark_fringe_data): Declare extern.
6355 (Fgarbage_collect): Call mark_fringe_data.
6356
6357 * alloc.c (overrun_check_free): Invalidate freed memory if
6358 XMALLOC_CLEAR_FREE_MEMORY is defined.
6359
6360 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6361
6362 * macfns.c: Include sys/param.h.
6363 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
6364 and function.
6365 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
6366 of filename string. Set event callback function when creating
6367 dialog boxes. Add code conversions for filenames. Don't dispose
6368 of apple event descriptor record if failed to create it.
6369
6370 * macterm.c: Include sys/param.h.
6371 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
6372 kEventWindowUpdate.
6373 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
6374 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
6375 of FSSpec from apple event descriptor record.
6376 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
6377 size of filename string.
6378 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
6379 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
6380 file dialog is in action.
6381 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
6382 Reject only when there are no filename items. Set background color
6383 before (un)highlighting the window below the dragged items.
6384 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
6385
6386 2005-01-05 Romain Francoise <romain@orebokech.com>
6387
6388 * term.c (encode_terminal_code): Fix buffer size computation.
6389
6390 2005-01-04 Richard M. Stallman <rms@gnu.org>
6391
6392 * xdisp.c (Fformat_mode_line): Doc fix.
6393
6394 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6395
6396 * alloc.c (refill_memory_reserve): Move.
6397 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
6398 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
6399
6400 2005-01-03 Richard M. Stallman <rms@gnu.org>
6401
6402 * window.c (window_scroll_pixel_based): Don't correct preserve_y
6403 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
6404
6405 2005-01-03 Jason Rumney <jasonr@gnu.org>
6406
6407 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
6408 fontp->space_width to FONT_WIDTH so they are valid.
6409
6410 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
6411 average width. Set fontp->average_width and fontp->space_width to
6412 their appropriate values.
6413
6414 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
6415 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
6416 fontp->space_width.
6417
6418 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6419
6420 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
6421 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
6422 metrics for max and min bounds.
6423 (x_load_font): Correctly calculate average font width metrics.
6424
6425 2005-01-02 Richard M. Stallman <rms@gnu.org>
6426
6427 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
6428
6429 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6430
6431 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
6432
6433 2004-12-31 Richard M. Stallman <rms@gnu.org>
6434
6435 * xdisp.c (setup_for_ellipsis, get_next_display_element):
6436 Set it->ellipsis_p to 1 or 0.
6437 (display_line): Record whether row ends in mid-ellipsis.
6438 (set_cursor_from_row): If ends in ellipsis, find start of it.
6439 (cursor_row_p): If PT's at the end of the ellipsis the row
6440 ends within, don't display cursor on this row.
6441
6442 * dispextern.h (struct it): New element ellipsis_p.
6443 (struct glyph_row): New element ends_in_ellipsis_p.
6444
6445 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
6446 position if we're reading from something other than the buffer.
6447
6448 * window.c (window_scroll_pixel_based): Only look at
6449 Vscroll_preserve_screen_position if the old PT can't be kept.
6450 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6451
6452 2004-12-30 Kim F. Storm <storm@cua.dk>
6453
6454 * xdisp.c (get_line_height_property): New function extracted from
6455 original calc_line_height_property.
6456 (calc_line_height_property): Rework. Handle t and (nil . ratio).
6457 (x_produce_glyphs): Use them to handle line-height and
6458 line-spacing according to new height spec.
6459 (Qtotal): Remove.
6460 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
6461
6462 2004-12-30 Kenichi Handa <handa@m17n.org>
6463
6464 * fileio.c (Finsert_file_contents): Don't use
6465 current_buffer->buffer_file_coding_system even if REPLACE is
6466 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
6467
6468 * fontset.h (struct font_info): New members space_width and
6469 average_width.
6470
6471 * frame.h (struct frame): New member space_width.
6472 (FRAME_SPACE_WIDTH): New macro.
6473
6474 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
6475
6476 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
6477 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
6478 fontp->space_width.
6479 (x_load_font): Calculate fontp->space_width and fontp->average_width.
6480 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
6481
6482 * xdisp.c (x_produce_glyphs): Calculate tab width by
6483 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
6484
6485 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
6486
6487 * macterm.c (SelectionRange): Add Xcode position apple event struct.
6488 (do_ae_open_documents): Handle Xcode-style file position open events.
6489
6490 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
6491
6492 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
6493
6494 2004-12-29 Richard M. Stallman <rms@gnu.org>
6495
6496 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
6497
6498 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6499
6500 * macfns.c (install_window_handler): Modify extern to return OSErr
6501 value.
6502 (mac_window): Handle return value of install_window_handler.
6503
6504 * macterm.c (reflect_byte): Remove function.
6505 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
6506 Lookup table instead.
6507 (mac_do_font_lists): Simplify calculation of the longest
6508 nonspecial string.
6509 (init_mac_drag_n_drop): Remove function and declaration.
6510 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
6511 init_mac_drag_n_drop.
6512 (mac_do_track_drag): New function and declaration.
6513 (install_window_handler): Return OSErr value.
6514 (install_window_handler) [TARGET_API_MAC_CARBON]:
6515 Register handlers for tracking/receiving drag-and-drop items.
6516 (do_ae_open_documents): Generate unibyte strings for filenames.
6517 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
6518 Reject only non-filename items. Set event modifiers, and return value.
6519
6520 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
6521
6522 * coding.c (decode_coding): Fix previous change.
6523
6524 2004-12-28 Richard M. Stallman <rms@gnu.org>
6525
6526 * xdisp.c (back_to_previous_visible_line_start):
6527 Don't call handle_display_prop.
6528
6529 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
6530
6531 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
6532 (decode_coding_emacs_mule, encode_coding_emacs_mule)
6533 (decode_coding_iso2022, encode_designation_at_bol)
6534 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
6535 (decode_coding): Constify arguments and local vars.
6536
6537 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6538
6539 * xmenu.c (popup_get_selection): Only pop down dialogs
6540 on C-g and Escape.
6541 (popup_get_selection): Remove parameter down_on_keypress.
6542 (create_and_show_popup_menu, create_and_show_dialog):
6543 Remove parameter down_on_keypress to popup_get_selection.
6544
6545 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6546
6547 * dispextern.h: Change HAVE_CARBON to MAC_OS.
6548 (struct glyph_string): Likewise.
6549
6550 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
6551 mac_initialize.
6552
6553 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
6554 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
6555
6556 * fns.c (vector): Change MAC_OSX to MAC_OS.
6557
6558 * frame.c (x_set_frame_parameters, x_report_frame_params)
6559 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
6560 (x_set_border_width, Vdefault_frame_scroll_bars):
6561 Change HAVE_CARBON to MAC_OS.
6562
6563 * image.c [MAC_OS]: Include sys/stat.h.
6564 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
6565 QuickTimeComponents.h.
6566
6567 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
6568 [!MAC_OSX] (select): Use mac_wait_next_event.
6569 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
6570 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
6571 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
6572 (mac_clear_font_name_table): Add extern.
6573 (Fmac_clear_font_name_table): New defun.
6574 (syms_of_mac): Defsubr it.
6575 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
6576 [MAC_OSX] (select_and_poll_event): New function.
6577 [MAC_OSX] (sys_select): Use it.
6578 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
6579 [MAC_OSX && SELECT_USE_CFSOCKET]
6580 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
6581 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
6582 RunLoop for simultaneously monitoring two kinds of inputs, window
6583 events and process outputs, without periodically polling.
6584
6585 * macfns.c (mac_initialized): Remove extern.
6586 (stricmp): Put in #if 0. All callers changed to use xstricmp in
6587 xfaces.c.
6588 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
6589 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
6590 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
6591 (mac_get_rdb_resource): New function (from w32reg.c).
6592 (x_get_string_resource): Use it.
6593 (install_window_handler): Add extern.
6594 (mac_window): New function.
6595 (Fx_create_frame): Use it instead of make_mac_frame.
6596 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
6597 (Fx_open_connection, Fx_close_connection): New defuns.
6598 (syms_of_macfns): Defsubr them.
6599 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
6600 Add kWindowNoUpdatesAttribute to the window attribute.
6601 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
6602 (x_create_tip_frame): Don't call ShowWindow.
6603 (Fx_show_tip): Call ShowWindow.
6604 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
6605 TARGET_API_MAC_CARBON'.
6606 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
6607 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
6608
6609 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
6610 (Window): Typedef to WindowPtr and move outside `#if
6611 TARGET_API_MAC_CARBON'.
6612 (XSizeHints): New struct.
6613
6614 * macterm.c (x_update_begin, x_update_end)
6615 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
6616 frame.
6617 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6618 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
6619 (construct_mouse_click): Put in #if 0.
6620 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
6621 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
6622 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
6623 (activate_scroll_bars, deactivate_scroll_bars)
6624 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
6625 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
6626 if the position is neither user-specified nor program-specified.
6627 (x_free_frame_resources): Free size_hints.
6628 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
6629 (mac_clear_font_name_table): New function.
6630 (mac_do_list_fonts): Initialize font_name_table if needed.
6631 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
6632 around mac_do_list_fonts.
6633 (mac_unload_font): New function.
6634 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
6635 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
6636 and definitions with #if TARGET_API_MAC_CARBON.
6637 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
6638 (install_window_handler): Add decl.
6639 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
6640 window. Use UpdateControls. Get the rectangle that should be
6641 updated and restrict the target of expose_frame to it.
6642 (do_grow_window): Set minimum height/width according to size_hints.
6643 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
6644 (do_zoom_window): Don't use x_set_window_size.
6645 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
6646 (install_window_handler): New function.
6647 [!USE_CARBON_EVENTS] (mouse_region): New variable.
6648 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
6649 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
6650 GetEventDispatcherTarget inside BLOCK_INPUT.
6651 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
6652 Update mouse_region when mouse is moved.
6653 (make_mac_frame): Remove.
6654 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
6655 Initialize mouse pointer shapes. Change values of f->left_pos and
6656 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
6657 Don't call ShowWindow.
6658 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
6659 Vinvocation_name and Vsystem_name.
6660 (mac_make_rdb): New function (from w32term.c).
6661 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
6662 already been opened. Don't pass argument to
6663 mac_initialize_display_info. Don't set dpyinfo->height/width.
6664 Add entries to x_display_list and x_display_name_list.
6665 (x_delete_display): New function.
6666 (mac_initialize): Don't call mac_initialize_display_info.
6667 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
6668
6669 * macterm.h (check_mac): Add extern.
6670 (struct mac_output): New member size_hints.
6671 (FRAME_SIZE_HINTS): New macro.
6672 (mac_unload_font): Add extern.
6673
6674 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
6675
6676 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
6677
6678 2004-12-27 Richard M. Stallman <rms@gnu.org>
6679
6680 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
6681 (syms_of_buffer): Don't defsubr it.
6682
6683 * process.c (list_processes_1): Set undo_list instead
6684 of calling Fbuffer_disable_undo.
6685
6686 * xdisp.c (single_display_spec_string_p): Rename from
6687 single_display_prop_string_p.
6688 (single_display_spec_intangible_p): Rename from
6689 single_display_prop_intangible_p.
6690 (handle_single_display_spec): Rename from handle_single_display_prop.
6691 Rewritten to be easier to understand.
6692
6693 Change in load-history format. Functions now get (defun . NAME),
6694 and variables get just NAME.
6695
6696 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
6697
6698 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
6699 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
6700 (Qdefvar): Var deleted.
6701 (syms_of_eval): Don't initialze it.
6702
6703 * lread.c (syms_of_lread) <load-history>: Doc fix.
6704
6705 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6706
6707 * xmenu.c (popup_get_selection): Pop down on C-g.
6708 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
6709 pops down menu on C-g.
6710 (xdialog_show): If dialog popped down and no button in the dialog was
6711 pushed, call Fsignal to quit.
6712 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
6713 Fsignal to quit.
6714
6715 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
6716
6717 * gtkutil.c (xg_initialize): Install bindings for C-g so that
6718 dialogs and menus pop down.
6719
6720 2004-12-27 Kenichi Handa <handa@m17n.org>
6721
6722 * coding.c (code_convert_region): Fix calculation of `ratio'.
6723
6724 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6725
6726 * gtkutil.c (update_frame_tool_bar): Make the value of
6727 tool-bar-button-margin control margins of images in tool bar.
6728
6729 * alloc.c (check_depth): New variable.
6730 (overrun_check_malloc, overrun_check_realloc): Only add
6731 overhead and write check pattern if check_depth is 1 (to handle
6732 recursive calls). Increase/decrease check_depth in entry/exit.
6733 (overrun_check_free): Only check for overhead if check_depth is 1.
6734 Increase/decrease check_depth in entry/exit.
6735
6736 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6737
6738 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
6739 before touching input_available_clear_time, to avoid accessing it
6740 from multiple threads.
6741
6742 2004-12-23 Jason Rumney <jasonr@gnu.org>
6743
6744 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
6745 of JPEG library.
6746
6747 2004-12-22 Richard M. Stallman <rms@gnu.org>
6748
6749 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
6750
6751 * lisp.h (Vundo_outer_limit): Fix decl.
6752
6753 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
6754 Uses changed.
6755 (syms_of_undo): Initialize appropriately.
6756 (truncate_undo_list): If it's nil, there's no limit.
6757
6758 2004-12-22 Kenichi Handa <handa@m17n.org>
6759
6760 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
6761
6762 2004-12-21 Richard M. Stallman <rms@gnu.org>
6763
6764 * eval.c (unwind_to_catch): Clear immediate_quit.
6765
6766 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
6767 specially as `\ ' and `\-'.
6768
6769 * keyboard.c (kbd_buffer_store_event_hold):
6770 In the code for while-no-input, handle immediate_quit.
6771
6772 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
6773 Call that at the very start.
6774 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
6775 (syms_of_alloc): Don't define undo-limit,
6776 undo-strong-limit and undo-outer-limit here.
6777
6778 * undo.c (truncate_undo_list): Return void.
6779 Take just one argument, the buffer.
6780 Make it current, and inhibit recursive GC.
6781 Access and update the undo list directly; return void.
6782 Refer to the undo...limit variables directly.
6783 Test undo_outer_limit only after counting the whole current command.
6784 When it's exceeded, call the function in undo-outer-limit-function.
6785 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
6786 (Vundo_outer_limit_function): New variable.
6787 (syms_of_undo): Define undo-limit, undo-strong-limit
6788 and undo-outer-limit here, and undo-outer-limit-function.
6789 Doc fixes.
6790
6791 * lisp.h (truncate_undo_list): Update decl.
6792
6793 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
6794
6795 * fileio.c (Fread_file_name): Delete duplicates in
6796 file-name-history when history_delete_duplicates is true.
6797
6798 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6799
6800 * macterm.c (mac_do_list_fonts): Fix memory leak
6801
6802 2004-12-20 Richard M. Stallman <rms@gnu.org>
6803
6804 * regex.c (re_match_2_internal) <symend, wordend>:
6805 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
6806
6807 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6808
6809 * macterm.c (endif, x_font_name_to_mac_font_name):
6810 Use maccentraleurroman instead of maccentraleuropean
6811 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
6812 quickly finding a specific font without needing regexps.
6813
6814 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6815
6816 * syssignal.h: Declare main_thread.
6817 (SIGNAL_THREAD_CHECK): New macro.
6818
6819 * keyboard.c (input_available_signal): Move thread checking code
6820 to macro SIGNAL_THREAD_CHECK and call that macro.
6821 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
6822
6823 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
6824
6825 * emacs.c: Define main_thread.
6826 (main): Initialize main_thread.
6827 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
6828 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
6829
6830 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
6831
6832 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
6833
6834 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
6835
6836 * process.c (send_process_trap, sigchld_handler):
6837 Call SIGNAL_THREAD_CHECK.
6838
6839 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
6840
6841 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
6842
6843 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
6844 returning when xg_ignore_gtk_scrollbar is true.
6845
6846 2004-12-14 Kim F. Storm <storm@cua.dk>
6847
6848 * keyboard.c (read_char): Save and restore echo_string when
6849 handling input method.
6850
6851 2004-12-13 Richard M. Stallman <rms@gnu.org>
6852
6853 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
6854
6855 * keyboard.c (Vthrow_on_input): New variable.
6856 (syms_of_keyboard): Defvar and initialize it.
6857 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
6858
6859 * lisp.h (QUIT): Check for Vthrow_on_input.
6860 (Vthrow_on_input): Declare it.
6861
6862 2004-12-13 Kim F. Storm <storm@cua.dk>
6863
6864 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
6865 vector.
6866
6867 2004-12-12 Richard M. Stallman <rms@gnu.org>
6868
6869 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
6870
6871 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
6872 (Ftry_completion): Really use outer `zero'; eliminate inner one.
6873
6874 2004-12-12 Kenichi Handa <handa@m17n.org>
6875
6876 * term.c (encode_terminal_code): Fix previous change.
6877
6878 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
6879
6880 * keyboard.c (handle_async_input): Remove pthread mutex handling.
6881 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
6882
6883 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
6884 in macro arguments.
6885
6886 * minibuf.c (Ftry_completion, Fall_completions): Don't use
6887 XFASTINT blindly.
6888
6889 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
6890
6891 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6892
6893 * w32term.c (x_calc_absolute_position): Remove calculation of
6894 difference between inner and outer window. Don't subtract difference
6895 for left and top calculations.
6896
6897 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
6898 for left and top calculations. Remove call to x_real_positions.
6899 [Bug report by Drew Adams in November]
6900 (x_check_expected_move): Do not set change_gravity to 1 when calling
6901 x_set_offset.
6902
6903 2004-12-08 Richard M. Stallman <rms@gnu.org>
6904
6905 * xdisp.c (get_next_display_element): Use `escape-glyph' for
6906 control chars and escaped octal codes.
6907 (Qescape_glyph): New variable.
6908 (syms_of_xdisp): Initialize it.
6909 (escape_glyph_face): New variable.
6910 (redisplay_window): Initialize it.
6911
6912 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
6913
6914 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
6915 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
6916
6917 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6918
6919 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
6920 reset_malloc_hooks.
6921
6922 * keyboard.c (handle_async_input, input_available_signal):
6923 Add ! defined (SYSTEM_MALLOC) around thread code.
6924
6925 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
6926
6927 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
6928
6929 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
6930
6931 * config.in: Regenerate.
6932
6933 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6934
6935 * xmenu.c (Fx_popup_menu): Correct documentation about position.
6936 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
6937 if not given by a mouse click to correspond with x-popup-menu
6938 documentation.
6939
6940 * config.in: Regenerate.
6941
6942 * gtkutil.c: Include signal.h and syssignal.h.
6943 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
6944
6945 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
6946 new variables main_thread and alloc_mutex,
6947 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
6948 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
6949 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
6950 (UN)BLOCK_INPUT.
6951 (emacs_blocked_free, emacs_blocked_malloc)
6952 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
6953 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
6954 (reset_malloc_hooks): New function.
6955
6956 * lisp.h: Declare reset_malloc_hooks.
6957
6958 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
6959
6960 * keyboard.c: Conditionally include pthread.h
6961 (handle_async_input, input_available_signalt): If not in the main
6962 thread, block signal, send signal to main thread and return.
6963
6964 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6965 Set current folder in file chooser if default_filename is a directory.
6966
6967 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
6968
6969 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
6970 Remove redundant correctness checks.
6971 (regex_compile): Fix up error codes for \{..\} expressions.
6972
6973 2004-12-05 Richard M. Stallman <rms@gnu.org>
6974
6975 * regex.c (regex_compile): Fix end-of-pattern case for space.
6976
6977 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6978
6979 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
6980 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
6981 crashes with invalid characters.
6982 * macmenu.c (add_menu_item): Use it.
6983 * image.c (image_load_quartz2d): Likewise.
6984 * macfns.c (x_set_name, x_set_title): Likewise.
6985 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
6986 creating them each time for labels.
6987
6988 2004-12-02 Richard M. Stallman <rms@gnu.org>
6989
6990 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
6991 don't use it here.
6992
6993 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
6994 (interactive_p): Skip Scalled_interactively_p frames
6995 like Sinteractive_p frames.
6996 (unwind_to_catch): Clear handling_signal.
6997
6998 * data.c (Fmake_variable_buffer_local): Doc fix.
6999 (Fmake_local_variable): Doc fix.
7000
7001 * insdel.c (insert_from_string_before_markers)
7002 (insert_from_string): Don't modify buffer on empty insertion.
7003
7004 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
7005
7006 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7007
7008 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
7009 menu text as UTF8 fails.
7010
7011 2004-12-01 Kim F. Storm <storm@cua.dk>
7012
7013 * alloc.c: Add commentary for last change.
7014 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
7015 sizeof(size_t) != 4.
7016 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
7017 Use them. Also clear header and trailer of freed memory.
7018 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
7019 (string_overrun_cookie): Rename from string_overrun_pattern.
7020 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
7021
7022 2004-12-01 Andreas Schwab <schwab@suse.de>
7023
7024 * lisp.h: Declare string_to_multibyte.
7025
7026 2004-12-01 Kenichi Handa <handa@m17n.org>
7027
7028 * w32console.c (w32con_write_glyphs): Decide coding here.
7029 Adjusted for the change of encode_terminal_code.
7030
7031 * term.c (encode_terminal_code): Don't make it "static".
7032
7033 2004-11-30 Kenichi Handa <handa@m17n.org>
7034
7035 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
7036 (encode_terminal_code): Argument changed. Encode all
7037 characters at once, and return a pointer to the result of encoding.
7038 (write_glyphs): Decide coding here. Adjusted for the above change.
7039 (insert_glyphs): Likewise.
7040 (term_init): Initialize encode_terminal_bufsize to 0.
7041
7042 * coding.c (Vcode_conversion_workbuf_name): New variable.
7043 (syms_of_coding): Initialize and staticpro it.
7044 (set_conversion_work_buffer): New function.
7045 (run_pre_post_conversion_on_str): Use it.
7046 (run_pre_write_conversin_on_c_str): New function.
7047
7048 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
7049
7050 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7051
7052 * keyboard.c: Don't undef SIGIO
7053 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
7054 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
7055 (macfns.o): Don't depend on ccl.h.
7056 * macfns.c (mac_frame_parm_handlers): Set handlers for
7057 Qleft_fringe and Qright_fringe.
7058 * macterm.c (mac_fill_rectangle_to_pixmap)
7059 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
7060 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
7061 Put in #if 0.
7062 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
7063 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
7064 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
7065 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
7066 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
7067 XDrawImageString. Always draw background and foreground separately.
7068 (x_draw_image_foreground): Use clipping instead of computing the
7069 intersection rectangle.
7070 (x_draw_image_glyph_string): Don't draw an image with mask to a
7071 pixmap.
7072 (x_redisplay_interface): Set flush_display_optional member to 0.
7073 (XTread_socket): Correctly reset the TEConverter
7074 object.
7075
7076 2004-11-30 Kim F. Storm <storm@cua.dk>
7077
7078 * lisp.h: New defines to enable buffer overrun checking.
7079 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
7080 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
7081
7082 * alloc.c: Add more checks for buffer overruns.
7083 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
7084 xmalloc_overrun_check_trailer, overrun_check_malloc)
7085 overrun_check_realloc, overrun_check_free): Add.
7086 (GC_STRING_EXTRA, string_overrun_pattern): Add.
7087 (check_sblock, allocate_string_data, compact_small_strings):
7088 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
7089 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
7090 (check_string_free_list): Add.
7091 (allocate_string, sweep_strings): Call check_string_free_list.
7092
7093 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
7094 XMALLOC_OVERRUN_CHECK to avoid crash during load.
7095
7096 2004-11-29 Kim F. Storm <storm@cua.dk>
7097
7098 * fns.c (concat): Use SAFE_ALLOCA.
7099
7100 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
7101
7102 * sysdep.c (emacs_write): Don't use QUIT.
7103
7104 2004-11-29 Kenichi Handa <handa@m17n.org>
7105
7106 * buffer.c (init_buffer): Set current_buffer->directory to a
7107 multibyte string made by string_to_multibyte.
7108
7109 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
7110
7111 2004-11-27 Andreas Schwab <schwab@suse.de>
7112
7113 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
7114
7115 * s/gnu-linux.h: Enable no-op gcpros on ia64.
7116 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
7117
7118 * filelock.c (lock_file_1): Call get_boot_time early.
7119 Increase buffer size.
7120
7121 2004-11-27 Eli Zaretskii <eliz@gnu.org>
7122
7123 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
7124 is not defined.
7125
7126 2004-11-27 Kim F. Storm <storm@cua.dk>
7127
7128 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
7129 marker out of doc string.
7130
7131 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
7132
7133 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
7134 which was not mentioned in the log.
7135
7136 2004-11-26 Kim F. Storm <storm@cua.dk>
7137
7138 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
7139 angle bitmaps at top/bottom line.
7140
7141 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
7142 set it when it->method is set to next_element_from_display_vector.
7143 (setup_for_ellipsis): Add LEN argument. Callers changed.
7144 Set it->saved_face_id.
7145 (get_next_display_element): Use loop instead of recursion.
7146 Set it->saved_face_id. Combine duplicate code for ctr chars.
7147 (next_element_from_display_vector): Do not set it->saved_face_id.
7148 (next_element_from_ellipsis): Use setup_for_ellipsis.
7149
7150 2004-11-26 Eli Zaretskii <eliz@gnu.org>
7151
7152 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
7153 prevent compiler warnings.
7154
7155 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
7156
7157 * keyboard.c (command_loop_1): Print a message describing the key
7158 the user just pressed when this key has no binding.
7159
7160 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
7161 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
7162
7163 * lread.c (readchar): Check QUIT when `getc' is interrupted.
7164
7165 2004-11-24 Richard M. Stallman <rms@gnu.org>
7166
7167 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
7168
7169 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
7170
7171 2004-11-24 Kim F. Storm <storm@cua.dk>
7172
7173 * xdisp.c (move_it_in_display_line_to, display_line):
7174 Restore saved_face_id also when truncate-lines or hscrolled.
7175
7176 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7177
7178 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
7179 x-use-old-gtk-file-dialog.
7180
7181 * xfns.c: Define x_use_old_gtk_file_dialog.
7182 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
7183 outside ifdef USE_GTK.
7184
7185 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
7186
7187 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
7188 Don't use XFASTINT blindly.
7189
7190 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
7191
7192 * indent.c (skip_invisible): Avoid non-idempotent side-effects
7193 in macro arguments.
7194
7195 * keymap.c (Flookup_key): Check INTEGERP before XINT.
7196
7197 * lread.c (oblookup): Don't use XFASTINT blindly.
7198
7199 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
7200 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
7201
7202 2004-11-23 Kim F. Storm <storm@cua.dk>
7203
7204 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
7205 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
7206
7207 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
7208 signal_p is zero and face name is unknown.
7209 (Fx_list_fonts): Don't signal error in lookup_named_face.
7210 (Fface_font): Signal error in lookup_named_face.
7211 (ascii_face_of_lisp_face): Likewise.
7212
7213 * dispextern.h (lookup_named_face): Fix prototype.
7214
7215 * xdisp.c (handle_single_display_prop): Don't signal error in
7216 lookup_named_face for unknown fringe face name.
7217 (highlight_trailing_whitespace): Don't signal error in
7218 lookup_named_face if trailing-whitespace face unknown.
7219 (calc_line_height_property): Don't signal error in
7220 lookup_named_face if specified face name is unknown.
7221
7222 * fringe.c (update_window_fringes): Show top row indicator if
7223 window has header-line. Don't show arrow at bob and eob
7224 if the boundary indicators are not used.
7225 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
7226
7227 * window.c (set_window_buffer): Clear display_error_modiff.
7228
7229 2004-11-22 Kim F. Storm <storm@cua.dk>
7230
7231 * fringe.c (update_window_fringes): Provide sensible fall-back
7232 value for non-nil indicate-buffer-boundaries setting.
7233
7234 2004-11-22 Markus Rost <rost@ias.edu>
7235
7236 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
7237
7238 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
7239
7240 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
7241
7242 2004-11-21 Kim F. Storm <storm@cua.dk>
7243
7244 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
7245
7246 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
7247 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7248
7249 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
7250 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7251
7252 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
7253 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
7254
7255 * xdisp.c (move_it_in_display_line_to, display_line):
7256 Restore saved_face_id if overflow-newline-into-fringe is enabled and
7257 line is continued before or in middle of element from display vector.
7258
7259 * indent.c (Fvertical_motion): Fix last change. Use another
7260 method to detect if iterator moved too far ahead after reseat.
7261
7262 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
7263 expand matrix width for overflow in zero-width area.
7264 (append_glyph, append_composite_glyph, produce_image_glyph)
7265 (append_stretch_glyph): Use it to avoid loop in redisplay.
7266 (note_mode_line_or_margin_highlight): Don't let help-echo from
7267 string override help-echo from image map.
7268
7269 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
7270
7271 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
7272 * callint.c (Fcall_interactively): Ditto.
7273
7274 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
7275
7276 * minibuf.c (Fminibuffer_complete_and_exit):
7277 Fixup the case of the completed value, for case-indep completion.
7278
7279 2004-11-20 Richard M. Stallman <rms@gnu.org>
7280
7281 * lisp.h (Fread_from_minibuffer): Add arg in decl.
7282
7283 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
7284 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
7285
7286 * search.c (Vsearch_spaces_regexp):
7287 Rename from Vsearch_whitespace_regexp. All uses changed.
7288
7289 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
7290
7291 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
7292
7293 2004-11-19 Richard M. Stallman <rms@gnu.org>
7294
7295 * search.c (Vsearch_whitespace_regexp): New variable.
7296 (syms_of_search): Defvar it.
7297 (compile_pattern_1): Call re_set_whitespace_regexp with it.
7298 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
7299 is non-nil.
7300 (struct regexp_cache): New element whitespace_regexp.
7301 (syms_of_search): Initialize whitespace_regexp elements.
7302 (compile_pattern): Compare whitespace_regexp elements.
7303 (compile_pattern_1): Set whitespace_regexp elements.
7304
7305 * regex.c (regex_compile): Substitute whitespace_regexp
7306 for spaces, if it is nonzero.
7307 (whitespace_regexp): New variable.
7308 (re_set_whitespace_regexp): New function.
7309
7310 2004-11-19 Kim F. Storm <storm@cua.dk>
7311
7312 * indent.c (Fvertical_motion): Fix last change.
7313
7314 2004-11-18 Kim F. Storm <storm@cua.dk>
7315
7316 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
7317 Instead, move back again if reseating moves too far ahead.
7318
7319 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
7320
7321 * xdisp.c (message3): Call clear_message.
7322
7323 2004-11-17 Kim F. Storm <storm@cua.dk>
7324
7325 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
7326
7327 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7328
7329 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
7330
7331 * xmenu.c (x_menu_in_use): Remove.
7332 (x_menu_set_in_use): Also set popup_activated_flag.
7333
7334 * xfns.c (Fx_file_dialog): Call popup_activated instead of
7335 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
7336
7337 * xterm.h (x_menu_in_use): Remove.
7338
7339 2004-11-16 Richard M. Stallman <rms@gnu.org>
7340
7341 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
7342 Use map-keymap-internal to implement that.
7343
7344 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
7345
7346 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
7347
7348 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
7349 a window before using XWINDOW.
7350
7351 * window.c (make_window, Fselect_window, make_dummy_parent)
7352 (save_window_save):
7353 * frame.c (make_frame):
7354 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
7355
7356 * lisp.h (NILP): Use EQ rather than XFASTINT.
7357
7358 2004-11-16 Kim F. Storm <storm@cua.dk>
7359
7360 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
7361
7362 * indent.c (Fvertical_motion): Fix last change. Only reseat when
7363 moving backwards.
7364
7365 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
7366
7367 * dispextern.h: Extern reseat_at_previous_visible_line_start.
7368
7369 2004-11-16 Kenichi Handa <handa@m17n.org>
7370
7371 * xdisp.c (display_mode_element): Fix previous change (calculate
7372 end position of substring to display correctly).
7373
7374 2004-11-16 Kim F. Storm <storm@cua.dk>
7375
7376 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
7377 Reported by Andrew M. Scott.
7378
7379 2004-11-15 Kim F. Storm <storm@cua.dk>
7380
7381 * fns.c (Fsafe_plist_get): New defun.
7382 (syms_of_fns): Defsubr it.
7383
7384 * lisp.h (Fsafe_plist_get): Add EXFUN.
7385
7386 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
7387 Use Fsafe_plist_get.
7388 (note_mode_line_or_margin_highlight, note_mouse_highlight):
7389 Fix image map element parsing. Use Fsafe_plist_get.
7390
7391 2004-11-15 Richard M. Stallman <rms@gnu.org>
7392
7393 * xdisp.c (get_next_display_element): Fix previous change.
7394
7395 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7396
7397 * window.c (shrink_windows): Handle special case of one window left
7398 when trying to shrink the final reminder. Grow windows if
7399 total_removed is less than total_shrink.
7400
7401 * xmenu.c (pop_down_menu): Remove global variable current_menu,
7402 extract pointer from arg with XSAVE_VALUE.
7403 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
7404 Construct arg to record_unwind_protect with make_save_value.
7405
7406 2004-11-13 Richard M. Stallman <rms@gnu.org>
7407
7408 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
7409 (get_next_display_element): Fix previous change to apply only to \n.
7410
7411 * indent.c (Fvertical_motion): Scan to PT from start of line to
7412 make iterator consistent.
7413
7414 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
7415
7416 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7417
7418 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
7419
7420 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
7421 Record unwind with clean_up_file_dialog.
7422
7423 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
7424 Declare.
7425
7426 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
7427
7428 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7429
7430 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
7431 (xg_file_sel_destroy): Remove.
7432 (xg_file_response_cb, pop_down_file_dialog)
7433 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
7434 New functions.
7435 (xg_get_file_with_chooser, xg_get_file_with_selection):
7436 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
7437 Move common code to xg_get_file_name. Return widget created.
7438 (xg_get_file_name): Set name, transient for, modal and destroy
7439 with parent here. Connect response signal to xg_file_response_cb,
7440 connect delete-event to gtk_true. Record pop_down_file_dialog
7441 for unwind. Do event loop and call x_menu_wait_for_event in loop.
7442 (xg_create_widget): Make dialogs modal.
7443
7444 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
7445 Lisp_Object.
7446 (popup_get_selection): Move unwind protect ...
7447 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
7448 Move destroy of widget to pop_down_menu.
7449 (popup_widget_loop): Move unwind protect ...
7450 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
7451 Move destroy of widget to pop_down_menu.
7452 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
7453 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
7454 x_mouse_leave and grabbed = 0 to pop_down_menu.
7455
7456 2004-11-13 Kim F. Storm <storm@cua.dk>
7457
7458 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
7459 (syms_of_xdisp): DEFVAR_BOOL it.
7460 (make_cursor_line_fully_visible, try_cursor_movement)
7461 (try_window_id): Use it.
7462
7463 2004-11-12 Kim F. Storm <storm@cua.dk>
7464
7465 * dispextern.h (struct glyph_row): New member extra_line_spacing.
7466 (struct it): New member max_extra_line_spacing.
7467 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
7468 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
7469 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
7470 part of last line is only extra line spacing (so the text on the
7471 line is fully visible). Use helper macros.
7472 Add W arg (to use them). All callers changed.
7473 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
7474 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
7475
7476 * window.c (window_scroll_pixel_based, Frecenter):
7477 Use move_it_vertically_backward directly.
7478 (Frecenter): Fix calculation of new start pos for negative arg.
7479 Before, the new start pos was sometimes chosen too far back, so
7480 the last line became only partially visible, and thus would be
7481 either only semi-visible or automatically scrolled to the middle
7482 of the window by redisplay.
7483
7484 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
7485 (move_it_vertically_backward): Don't recure to move further back.
7486 (move_it_vertically): Remove superfluous condition.
7487 (move_it_by_lines): Clear last_height when moved 0 lines.
7488 (resize_mini_window): Use it.max_extra_line_spacing.
7489 (display_tool_bar_line): Clear row->extra_line_spacing.
7490 (try_scrolling): Use move_it_vertically_backward directly.
7491 (redisplay_window): Likewise.
7492 (compute_line_metrics): Set row->extra_line_spacing.
7493 (display_line, display_string): Likewise.
7494 (x_produce_glyphs): Update it->max_extra_line_spacing.
7495
7496 * xmenu.c (pop_down_menu): Return nil.
7497
7498 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7499
7500 * xmenu.c (x_menu_wait_for_event): New function.
7501 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
7502 to handle timers.
7503 (popup_widget_loop): Add argument do_timers.
7504 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
7505 do_timers to popup_widget_loop.
7506 (xmenu_show): Call XMenuActivateSetWaitFunction so that
7507 x_menu_wait_for_event is called by XMenuActivate.
7508 (create_and_show_popup_menu): Pass 1 for do_timers to
7509 popup_get_selection.
7510 (pop_down_menu): New function.
7511 (popup_get_selection, popup_widget_loop): Unwind protect to
7512 pop_down_menu.
7513 (popup_widget_loop): Add argument widget.
7514 (create_and_show_popup_menu, create_and_show_dialog): Pass new
7515 argument widget to popup_widget_loop.
7516
7517 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7518
7519 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
7520
7521 2004-11-09 Kim F. Storm <storm@cua.dk>
7522
7523 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
7524 Fix various comments referring to XEvents instead of input events.
7525 (x_queue_event): Fix format strings.
7526 (x_stop_queuing_selection_requests): Likewise.
7527
7528 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
7529 (pint2hrstr): Add extra braces to silence compiler.
7530
7531 * print.c (print_object): Fix format string.
7532
7533 * lread.c (read1): Fix next_char matching.
7534
7535 * lisp.h (Fdelete): Add EXFUN.
7536 (replace_range_2): Add prototype.
7537
7538 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
7539
7540 * intervals.h (NULL_INTERVAL_P): Add separate version when
7541 ENABLE_CHECKING is not defined to silence compiler.
7542 (compare_string_intervals): Add prototype.
7543
7544 * fringe.c (destroy_fringe_bitmap): Fix return type.
7545 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
7546
7547 * emacs.c (Fdump_emacs): Fix format string.
7548
7549 * doc.c: Include <ctype.h>.
7550 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
7551
7552 * data.c (store_symval_forwarding): Remove unused variables.
7553
7554 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
7555
7556 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7557
7558 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
7559 to ${OLDXMENU}.
7560
7561 2004-11-09 Kim F. Storm <storm@cua.dk>
7562
7563 * process.c (Fmake_network_process): Remove kludge for interrupted
7564 connects on BSD. If connect is interrupted, just close socket and
7565 start over rather than sleeping and retry with same socket.
7566
7567 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7568
7569 * .cvsignore: Add buildobj.lst.
7570
7571 * doc.c: New variable Vbuild_files.
7572 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
7573 file names from buildobj.lst. Only attach docstrings from files
7574 that are in Vbuild_files.
7575 (syms_of_doc): Defvar Vbuild_files.
7576
7577 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
7578 and w32*.o.
7579 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
7580 (mostlyclean): Rm buildobj.lst
7581
7582 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
7583 is linked.
7584
7585 2004-11-09 Kim F. Storm <storm@cua.dk>
7586
7587 * fringe.c (update_window_fringes): Update fringe bitmaps if
7588 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
7589 also update previous row to get rid of misc. artifacts.
7590
7591 2004-11-08 Kim F. Storm <storm@cua.dk>
7592
7593 * xdisp.c (fast_find_position): Fix start pos if header line present.
7594 (note_mouse_highlight): Clear mouse face if we move out of text area.
7595
7596 2004-11-08 Eli Zaretskii <eliz@gnu.org>
7597
7598 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
7599 Don't include <sys/time.h> explicitly.
7600 Include <stdio.h> unconditionally, not just on MacOS.
7601
7602 2004-11-08 Kenichi Handa <handa@m17n.org>
7603
7604 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
7605 don't pay attention to '\' before '*'.
7606 (fontset_pattern_regexp): Change the meaning of the second arg.
7607 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
7608 (check_fontset_name): Try NAME as literal at first, and if it
7609 failes, try NAME as pattern.
7610
7611 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7612
7613 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
7614
7615 2004-11-07 Andreas Schwab <schwab@suse.de>
7616
7617 * lisp.h (Fmsdos_downcase_filename): Declare.
7618 * dired.c (Fmsdos_downcase_filename): Don't declare here.
7619 * fileio.c: Likewise.
7620
7621 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7622
7623 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
7624 comparisons with integers instead of Lisp_Object address.
7625 (Fmsdos_set_keyboard): Declare argument allkeys.
7626
7627 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
7628
7629 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
7630 int/Lisp_Object mixup.
7631
7632 * fileio.c: Ditto.
7633
7634 2004-11-06 Steven Tamm <steventamm@mac.com>
7635
7636 * editfns.c: Need to include sys/time.h before resource.h on darwin.
7637
7638 2004-11-06 Richard M. Stallman <rms@gnu.org>
7639
7640 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
7641
7642 * xfaces.c (merge_named_face): GCPRO the face_name in the
7643 named_merge_point struct that we make.
7644 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
7645
7646 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
7647 before deciding whether to inactivate mark.
7648
7649 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
7650
7651 * config.in: Regenerate (add HAVE_GETRUSAGE).
7652 * editfns.c (Fget_internal_run_time): New function.
7653 (syms_of_data): Defsubr it.
7654 * fns.c (sxhash): As far as possible, merge calculation of
7655 hash code for symbols and strings.
7656
7657 2004-11-06 Eli Zaretskii <eliz@gnu.org>
7658
7659 * frame.c (syms_of_frame): Fix the example in the doc string.
7660
7661 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7662
7663 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
7664
7665 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
7666 (create_and_show_dialog): Revert change from 2004-10-31.
7667
7668 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
7669
7670 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
7671
7672 2004-11-05 Kim F. Storm <storm@cua.dk>
7673
7674 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
7675
7676 * fileio.c (Ffile_modes): Doc fix.
7677 (auto_save_1): Check for Ffile_modes nil value.
7678
7679 2004-11-05 Kim F. Storm <storm@cua.dk>
7680
7681 * xselect.c (struct selection_event_queue, selection_queue)
7682 (x_queue_selection_requests, x_queue_event)
7683 (x_start_queuing_selection_requests)
7684 (x_stop_queuing_selection_requests): Add new queue for selection
7685 input events to replace previous XEvent queue in xterm.c.
7686 (queue_selection_requests_unwind): Adapt to new queue.
7687 (x_reply_selection_request): Adapt to new queue.
7688 Unexpect wait_object in case of x errors (memory leak).
7689 (x_handle_selection_request, x_handle_selection_clear): Make static.
7690 (x_handle_selection_event): New function. May queue selection events.
7691 (wait_for_property_change_unwind): Use save_value instead of cons.
7692 Clear property_change_reply_object.
7693 (wait_for_property_change): Abort if already waiting.
7694 Use save_value instead of cons for unwind data.
7695 (x_handle_property_notify): Skip events already arrived, but don't
7696 free them, as "arrived" field is checked by wait_for_property_change,
7697 and it will be freed by unwind or explicit unexpect_property_change.
7698 (x_get_foreign_selection): Add to new queue.
7699 (receive_incremental_selection): Don't unexpect wait_object when done
7700 as it has already been freed by previous wait_for_property_change.
7701
7702 * xterm.h (x_start_queuing_selection_requests)
7703 (x_stop_queuing_selection_requests, x_handle_selection_request)
7704 (x_handle_selection_clear): Remove prototypes.
7705 (x_handle_selection_event): Add prototype.
7706
7707 * xterm.c (handle_one_xevent): Don't queue X selection events
7708 here, it may be too late if we start queuing after we have already
7709 stored some selection events into the kbd buffer.
7710 (struct selection_event_queue, queue, x_queue_selection_requests)
7711 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
7712 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
7713 (x_catch_errors_unwind): Block input around final XSync.
7714
7715 * keyboard.h (kbd_buffer_unget_event): Add prototype.
7716
7717 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
7718 (kbd_buffer_unget_event): New function.
7719 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
7720 and use x_handle_selection_event.
7721 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
7722
7723 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7724
7725 * xselect.c (TRACE3): New debug macro.
7726 (x_reply_selection_request): Use it.
7727 (receive_incremental_selection): In call to TRACE0, the name of
7728 a symbol is in xname.
7729
7730 2004-11-05 Kim F. Storm <storm@cua.dk>
7731
7732 * fontset.c (fontset_pattern_regexp): Use unsigned char.
7733
7734 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7735
7736 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
7737
7738 * gtkutil.h (use_old_gtk_file_dialog): Declare.
7739
7740 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
7741 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
7742 * xfns.c (syms_of_xfns): ... to here.
7743
7744 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
7745 it doesn't start with /.
7746
7747 2004-11-04 Kenichi Handa <handa@m17n.org>
7748
7749 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
7750 treat it as a literal character.
7751
7752 2004-11-03 Kim F. Storm <storm@cua.dk>
7753
7754 * .gdbinit (ppt): New function.
7755
7756 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7757
7758 * xterm.c (x_window_to_scroll_bar): Only call
7759 xg_get_scroll_id_for_window if toolkit scroll bars are used.
7760
7761 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
7762 of save.
7763
7764 2004-11-02 Andreas Schwab <schwab@suse.de>
7765
7766 * window.c (Fscroll_right): Fix last change.
7767
7768 2004-11-02 Kim F. Storm <storm@cua.dk>
7769
7770 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
7771
7772 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7773
7774 * callproc.c (Fcall_process): Block input around vfork.
7775
7776 2004-11-02 Kim F. Storm <storm@cua.dk>
7777
7778 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
7779 (syms_of_eval): Defsubr it.
7780
7781 2004-11-02 Richard M. Stallman <rms@gnu.org>
7782
7783 * insdel.c (replace_range_2): New function.
7784
7785 * casefiddle.c (casify_region): Handle changes in byte-length
7786 using replace_range_2.
7787
7788 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
7789
7790 * xdisp.c (back_to_previous_visible_line_start):
7791 Subtract 1 from pos when checking previous newline for invisibility.
7792
7793 * window.c (window_scroll_pixel_based): Update preserve_y
7794 for header line if any.
7795 (Fscroll_left, Fscroll_right): Don't call interactive_p;
7796 use a new second argument instead.
7797
7798 * eval.c (Fcall_interactive_p): New function.
7799 (interactive_p): Don't test INTERACTIVE here.
7800 (Finteractive_p): Doc fix.
7801
7802 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
7803
7804 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7805
7806 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
7807 comparing font names.
7808
7809 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7810
7811 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
7812 Fx_file_dialog if only directories should be read.
7813
7814 * lisp.h: Fx_file_dialog takes 5 parameters.
7815
7816 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
7817 Add parameter only_dir_p.
7818 In Motif version, don't put DEFAULT_FILENAME in filter part of the
7819 dialog, just text field part. Do not add DEFAULT_FILENAME
7820 to list of files if it isn't there.
7821 In GTK version, pass only_dir_p parameter to xg_get_file_name.
7822
7823 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
7824 Check only_dir_p instead of comparing prompt to "Dired". When using
7825 a save dialog, add option kNavDontConfirmReplacement, change title
7826 to "Enter name", change text for save button to "Ok".
7827
7828 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
7829 Check only_dir_p instead of comparing prompt to "Dired".
7830
7831 * gtkutil.c (xg_get_file_with_chooser)
7832 (xg_get_file_with_selection): New functions, only defined ifdef
7833 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
7834 respectively.
7835 (xg_get_file_name): Add parameter only_dir_p.
7836 Call xg_get_file_with_chooser or xg_get_file_with_selection
7837 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
7838 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
7839
7840 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
7841
7842 * config.in: Rebuild (added HAVE_GTK_FILE_*).
7843
7844 2004-11-01 Kim F. Storm <storm@cua.dk>
7845
7846 * process.c (connect_wait_mask, num_pending_connects):
7847 Only declare and use them if NON_BLOCKING_CONNECT is defined.
7848 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
7849 (IF_NON_BLOCKING_CONNECT): New helper macro.
7850 (wait_reading_process_output): Only declare and use local vars
7851 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
7852
7853 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
7854
7855 * w32term.c (x_scroll_run): Delete region objects after use.
7856
7857 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7858
7859 * xmenu.c: Add prototypes for forward function declarations.
7860 (popup_get_selection): Remove parameter do_timers, remove call to
7861 timer_check.
7862 (create_and_show_popup_menu, create_and_show_dialog):
7863 Remove parameter do_timers from call to popup_get_selection.
7864
7865 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
7866 tool_bar_items and assign the result to f->tool_bar_items if
7867 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
7868 tool_bar_items to assignment of result.
7869
7870 * atimer.c (alarm_signal_handler): Do not call set_alarm if
7871 pending_atmers is non-zero.
7872
7873 2004-10-31 Kim F. Storm <storm@cua.dk>
7874
7875 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
7876
7877 2004-10-28 Will <will@glozer.net>
7878
7879 * macterm.c: Allow user to assign key modifiers to the Mac Option
7880 key via a 'mac-option-modifier' variable.
7881
7882 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7883
7884 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
7885 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
7886 (x_handle_selection_request, x_handle_selection_clear)
7887 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
7888
7889 2004-10-28 Richard M. Stallman <rms@gnu.org>
7890
7891 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
7892
7893 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
7894
7895 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
7896
7897 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
7898 comment-starter over a 1-char one.
7899
7900 2004-10-27 Richard M. Stallman <rms@gnu.org>
7901
7902 * xdisp.c (get_next_display_element): In mode lines,
7903 treat newline and tab like other control characters.
7904
7905 * editfns.c (Fmessage): Doc fix.
7906
7907 * indent.c (vmotion): When moving up, check the newline before.
7908 Make prevline an int, not a Lisp_Object.
7909
7910 2004-10-27 Kim F. Storm <storm@cua.dk>
7911
7912 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
7913 Only allocate info and discarded tables once.
7914
7915 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
7916 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
7917 (SAFE_FREE): Test it to determine if we need to unwind to free.
7918 Remove size arg. All users changed.
7919 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
7920
7921 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7922
7923 * gtkutil.c: Put empty line between comment and function body.
7924 (xg_destroy_widgets): Rename from remove_from_container.
7925 Just destroy all widgets in list. Argument wcont removed.
7926 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
7927 instead of remove_from_container.
7928 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
7929 (free_frame_tool_bar): Add comment.
7930
7931 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
7932 is not NULL before strcmp.
7933
7934 2004-10-26 Kim F. Storm <storm@cua.dk>
7935
7936 * callint.c (Fcall_interactively): Add 'U' code to get the
7937 up-event discarded by a previous 'k' or 'K' argument.
7938
7939 2004-10-26 David Kastrup <dak@gnu.org>
7940
7941 * buffer.c (syms_of_buffer): Fix a few typos.
7942
7943 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7944
7945 * xsmfns.c: Put empty line between comment and function body.
7946 Use two spaces before comment end.
7947
7948 2004-10-25 Kenichi Handa <handa@m17n.org>
7949
7950 * fontset.c (fontset_pattern_regexp): Optimize for the case that
7951 PATTERN is full XLFD.
7952
7953 2004-10-24 Kenichi Handa <handa@m17n.org>
7954
7955 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
7956
7957 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
7958 (regex_compile): Return REG_ERANGEX if appropriate.
7959
7960 2004-10-22 Kenichi Handa <handa@m17n.org>
7961
7962 * editfns.c (Ftranslate_region_internal): New function.
7963 (syms_of_editfns): Defsubr it.
7964
7965 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7966
7967 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
7968
7969 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
7970
7971 * xterm.h (x_output): New member `xic_base_fontname'.
7972 (FRAME_XIC_BASE_FONTNAME): New macro.
7973 (xic_free_xfontset): Declare.
7974
7975 * xfns.c (xic_create_xfontset): Share fontsets between frames
7976 based on base_fontname.
7977 (xic_free_xfontset): New function.
7978 (free_frame_xic): Use it.
7979 (xic_set_xfontset): Ditto.
7980
7981 * xterm.c (xim_destroy_callback): Ditto.
7982
7983
7984 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
7985
7986 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
7987
7988 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7989
7990 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
7991 XSync.
7992
7993 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
7994 New variables and constant.
7995 (main): Calculate heap_bss_diff. If we are dumping and the
7996 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
7997 and exec ourself again.
7998 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
7999 print a warning.
8000
8001 * lastfile.c: Make my_endbss and my_endbss_static available on all
8002 platforms.
8003
8004 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
8005 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
8006
8007 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
8008
8009 * data.c (Flocal_variable_if_set_p): Doc fix.
8010
8011 2004-10-19 Jason Rumney <jasonr@gnu.org>
8012
8013 * w32.c (init_environment): Set emacs_dir correctly when running
8014 emacs from the build directory.
8015
8016 2004-10-19 Richard M. Stallman <rms@gnu.org>
8017
8018 * editfns.c (Fdelete_and_extract_region):
8019 If region is empty, return null string.
8020
8021 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8022
8023 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
8024 and canon_width.
8025 (xg_frame_cleared): Remove.
8026
8027 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
8028 (xg_find_top_left_in_fixed): Remove.
8029 (xg_create_scroll_bar): Put an event box widget between
8030 the scroll bar widget and the edit widget.
8031 (xg_show_scroll_bar): Show the parent widget (the event box).
8032 (xg_remove_scroll_bar): Destroy parent (the event box) also.
8033 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
8034 Move the parent (the event box) widget inside the fixed widget.
8035 Move window clear to xterm.c.
8036
8037 * gtkutil.h (xg_frame_cleared): Remove.
8038
8039 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
8040 (x_scroll_bar_create, XTset_vertical_scroll_bar):
8041 Remove arguments left and width to xg_update_scrollbar_pos.
8042 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
8043
8044 2004-10-19 Kenichi Handa <handa@m17n.org>
8045
8046 * xdisp.c (display_mode_element): Fix display of wide chars.
8047
8048 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8049
8050 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
8051 gdk_window_clear and move gdk_window_process_all_updates after
8052 clear so events are sent to the X server in correct order.
8053
8054 2004-10-18 Kenichi Handa <handa@m17n.org>
8055
8056 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
8057 comparing font names.
8058 (fs_query_fontset): Use fast_string_match for comparing fontset names.
8059 (list_fontsets): Likewise.
8060
8061 * search.c (fast_string_match_ignore_case): New function.
8062
8063 * lisp.h (fast_string_match_ignore_case): Extern it.
8064
8065 2004-10-17 Kim F. Storm <storm@cua.dk>
8066
8067 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
8068 than bitmap if there is not left fringe.
8069 (get_overlay_arrow_glyph_row): Also used on windows system.
8070 (display_line): Display overlay string if no left fringe.
8071
8072 2004-10-16 Jason Rumney <jasonr@gnu.org>
8073
8074 * w32fns.c (w32_font_match): Encode font name being matched.
8075
8076 2004-10-16 Richard M. Stallman <rms@gnu.org>
8077
8078 * window.c (Fspecial_display_p): Doc fix.
8079
8080 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
8081
8082 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
8083 Don't ignore menus, because where-is-internal already does it for us.
8084
8085 2004-10-15 Kim F. Storm <storm@cua.dk>
8086
8087 * xdisp.c (redisplay_window): Only update fringes and vertical
8088 border on window frames.
8089
8090 2004-10-14 Andreas Schwab <schwab@suse.de>
8091
8092 * m/ia64.h (DATA_SEG_BITS): Don't define.
8093
8094 2004-10-14 Kim F. Storm <storm@cua.dk>
8095
8096 * xterm.h: Include Xutil.h after keysym.h to work around bug
8097 in some X versions.
8098
8099 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
8100
8101 * fns.c (map_char_table): Add missing gcpros.
8102
8103 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
8104
8105 * keymap.c (get_keymap): An autoload form is not a keymap.
8106
8107 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
8108
8109 2004-10-13 Kim F. Storm <storm@cua.dk>
8110
8111 * callproc.c (Fcall_process): Simplify handling of display arg.
8112 Resume `display_on_the_fly' once a coding system is determined.
8113
8114 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
8115
8116 2004-10-12 Kim F. Storm <storm@cua.dk>
8117
8118 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
8119 caller, such as call-process, is not going to poll for input.
8120 (calc_line_height_property): Handle case where it->object is nil.
8121
8122 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
8123
8124 2004-10-12 Kenichi Handa <handa@m17n.org>
8125
8126 * xdisp.c (get_next_display_element):
8127 If unibyte_display_via_language_environment is zero, display 8-bit
8128 chars in octal in unibyte buffer.
8129
8130 2004-10-12 Kim F. Storm <storm@cua.dk>
8131
8132 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
8133 are no ordinary bindings.
8134
8135 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8136
8137 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
8138
8139 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8140
8141 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
8142 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
8143 (make_mac_frame): Add BLOCK_INPUT around the making of a
8144 terminal frame.
8145 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
8146 * macgui.h (mktime): Use emacs_mktime.
8147 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
8148 Make a cancel file-open dialog be like C-g.
8149 * mac.c (mktime): Use emacs_mktime.
8150 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
8151 (Fmac_paste_function): Add better error handling for carbon cut/paste.
8152
8153 2004-10-10 Kim F. Storm <storm@cua.dk>
8154
8155 * keyboard.c (timer_resume_idle): New function to resume idle
8156 timer without resetting timers on the idle list.
8157 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
8158 (timer_start_idle, timer_stop_idle): Declare static.
8159 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
8160
8161 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
8162
8163 2004-10-08 Steven Tamm <steventamm@mac.com>
8164
8165 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
8166 * macterm.c (mac_check_for_quit_char): Remove warning for using
8167 NULL where 0 should be used.
8168 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
8169 objc/malloc.h
8170 * mac.c: Include time.h for Tiger compatibility.
8171
8172 2004-10-07 Kim F. Storm <storm@cua.dk>
8173
8174 * xdisp.c (redisplay_window): Fix flicker on vertical line between
8175 windows. Update vertical line after drawing window fringes, but
8176 only if actually drawing any bitmaps--or there is no fringe.
8177
8178 * xterm.c (x_update_window_end): Likewise.
8179 * macterm.c (x_update_window_end): Likewise.
8180 * w32term.c (x_update_window_end): Likewise.
8181
8182 * fringe.c (draw_window_fringes): Return value now indicates if
8183 any fringe bitmaps were redrawn (or there are no fringes).
8184
8185 * dispextern.h (draw_window_fringes): Update prototype.
8186
8187 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8188
8189 * macfns.c (mac_get_window_bounds): Add extern.
8190 (x_real_positions): Use mac_get_window_bounds.
8191
8192 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
8193 xmenu.c (YAILOM).
8194
8195 * macterm.c [!MAC_OSX]: Include Windows.h.
8196 (front_emacs_window): Rename from mac_front_window. All uses
8197 changed. Return the frontmost non-tooltip emacs window.
8198 (mac_get_window_bounds): New function.
8199 (x_calc_absolute_position): Use the difference of width and height
8200 between the inner and outer window.
8201 (x_set_offset): Specify window position by the coordinae of the
8202 outer window. Adjust the position if the title bar is completely
8203 outside the screen.
8204 (app_is_suspended, app_sleep_time): Remove unused variables.
8205 (do_app_resume, do_app_suspend): Remove their contents because
8206 window-activate/deactivate events will do the job.
8207 (do_zoom_window): Remove unused variables. Make compliant to the
8208 standard way of zooming. Set f->left_pos and f->top_pos.
8209 (XTread_socket): Don't use argument `expected'. Don't use
8210 FrontWindow to determine the clicked window. Exclude unprocessed
8211 mouseUp cases in the early stage. Add parentheses to fix operator
8212 precedence.
8213 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
8214
8215 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
8216
8217 * config.in: Regenerate.
8218
8219 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
8220 HAVE_EXECSHIELD.
8221
8222 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8223
8224 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
8225 a row if Alt or Meta has been found for that row. Also stop scanning
8226 for Keysyms for that row.
8227
8228 2004-10-04 Kim F. Storm <storm@cua.dk>
8229
8230 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
8231 to list. Include overlay arrow bitmap in return value.
8232
8233 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
8234 bars with fractional column width. If scroll bar separates two
8235 windows, move it towards the window it belongs to. Only update
8236 the padding area below the scroll bar widget when necessary,
8237 i.e. when scroll bar widget is created, moved, or resized.
8238
8239 * xdisp.c (define_frame_cursor1): Do not change frame cursor
8240 while tracking/dragging mouse.
8241 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
8242
8243 * window.c (coordinates_in_window): Relax check for cursor
8244 on vertial border between mode lines.
8245 (Fset_window_fringes): Do not allow negative widths.
8246 (Fset_window_scroll_bars): Likewise.
8247
8248 * .gdbinit (pp): Shorthand for p ARG + pr.
8249 (ff): New command: flush frame updates (X only).
8250
8251 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
8252
8253 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
8254
8255 2004-09-30 Kenichi Handa <handa@m17n.org>
8256
8257 * process.c (send_process): Free composition data.
8258
8259 * fileio.c (Finsert_file_contents): Free composition data.
8260
8261 * coding.c (code_convert_region): Don't skip ASCIIs if there are
8262 compositions to encode.
8263 (encode_coding_string): Likewise. Free composition data.
8264
8265 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
8266
8267 * coding.c (code_convert_region): Free composition data.
8268
8269 2004-09-29 Kim F. Storm <storm@cua.dk>
8270
8271 * fringe.c: Remove limit on number of bitmaps.
8272 (fringe_bitmaps, fringe_faces): Change to pointers.
8273 (max_fringe_bitmaps): New var.
8274 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
8275 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
8276
8277 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
8278 (struct glyph_row): Reorder fringe_bitmap related fields.
8279 (struct it): Likewise.
8280
8281 * w32term.c (fringe_bmp): Change to pointer.
8282 (max_fringe_bmp): New var.
8283 (w32_define_fringe_bitmap): Expand fringe_bmp.
8284 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
8285 (w32_destroy_fringe_bitmap): Likewise.
8286
8287 2004-09-29 Kim F. Storm <storm@cua.dk>
8288
8289 * fringe.c: Simplify last change.
8290 (lookup_fringe_bitmap): New function.
8291 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
8292 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
8293 Keep standard bitmaps in Vfringe_bitmaps.
8294 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
8295 (Fset_fringe_bitmap_face): Likewise.
8296
8297 * dispextern.h (lookup_fringe_bitmap): Add prototype.
8298 (valid_fringe_bitmap_p): Remove prototype.
8299
8300 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
8301
8302 2004-09-29 Kim F. Storm <storm@cua.dk>
8303
8304 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
8305 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
8306
8307 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
8308
8309 * fringe.c (Vfringe_bitmaps): New variable.
8310 (syms_of_fringe): DEFVAR_LISP it.
8311 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
8312 Change arg to Lisp_Object and fail if not an integer.
8313 (get_fringe_bitmap_name, resolve_fringe_bitmap)
8314 (destroy_fringe_bitmap): New functions.
8315 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
8316 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
8317 clear its fringe property.
8318 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
8319 Fdestroy_fringe_bitmap.
8320 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
8321 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
8322 and set fringe property. Signal error if no free slots.
8323 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
8324 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
8325
8326 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
8327 symbols with a fringe property.
8328
8329 2004-09-27 Kim F. Storm <storm@cua.dk>
8330
8331 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
8332 Doc fix. Format may now be a symbol or alist, not a cons.
8333
8334 * fringe.c (update_window_fringes): Handle new formats of
8335 indicate-buffer-boundaries (symbol or alist). No longer
8336 allow a simple cons.
8337 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
8338
8339 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8340
8341 * config.in: Rebuild.
8342
8343 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8344
8345 * config.in: Rebuild.
8346
8347 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
8348
8349 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
8350
8351 * xterm.c (x_term_init): Work around a bug in some X servers.
8352
8353 2004-09-18 Richard M. Stallman <rms@gnu.org>
8354
8355 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
8356
8357 * xdisp.c (try_window_reusing_current_matrix):
8358 Handle the case where we reach the old displayed text,
8359 out of sync with the old line boundary.
8360
8361 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
8362
8363 * fileio.c (Finsert_file_contents): Fix case of replacement in a
8364 narrowed buffer.
8365
8366 2004-09-14 Kim F. Storm <storm@cua.dk>
8367
8368 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
8369
8370 * xfaces.c (Qface_no_inherit): New var.
8371 (syms_of_xfaces): Intern and staticpro it.
8372 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
8373 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
8374 Don't increment face_change_count when face has non-nil
8375 face-no-inherit property.
8376
8377 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
8378
8379 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
8380 (Fbyte_code): Remove dead code after `wrong_type_argument'.
8381
8382 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
8383 before doing the mark_stack_check_gcpros since they're not on the stack.
8384
8385 2004-09-12 Kim F. Storm <storm@cua.dk>
8386
8387 * editfns.c (Fformat): Handle format strings with multiple text
8388 properties. Reverse text property list from the format string,
8389 so the positions are in increasing order.
8390
8391 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8392
8393 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
8394 x_uncatch_errors so that possible protocol errors are delivered.
8395
8396 2004-09-10 Eli Zaretskii <eliz@gnu.org>
8397
8398 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
8399 blockinput.h.
8400 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
8401 charset.h, and coding.h
8402 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
8403 (term.o): Depend on window.h and keymap.h.
8404 (abbrev.o): Depend on syntax.h.
8405 (callint.o): Depend on keymap.h.
8406 (casefiddle.o): Depend on charset.h and keymap.h.
8407 (category.o): Depend on keymap.h.
8408 (coding.o): Depend on dispextern.h.
8409 (cmds.o): Depend on keyboard.h and keymap.h.
8410 (dispnew.o): Depend on indent.h and intervals.h.
8411 (doc.o): Depend on keymap.h.
8412 (editfns.o): Depend on frame.h.
8413 (emacs.o): Depend on dispextern.h.
8414 (fileio.o): Don't depend on ccl.h.
8415 (filelock.o): Depend on charset.h and coding.h.
8416 (frame.o): Depend on w32term.h and macterm.h.
8417 (insdel.o): Depend on region-cache.h.
8418 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
8419 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
8420 (search.o): Depend on $(INTERVALS_SRC).
8421 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
8422 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
8423 xterm.h, w32term.h, and macterm.h.
8424 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
8425 w32term.h, and macterm.h.
8426 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
8427 region-cache.h, xterm.h, w32term.h, and macterm.h.
8428 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
8429 (data.o): Depend on frame.h.
8430 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
8431 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
8432 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
8433 (intervals.o): Depend on keymap.h.
8434
8435 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
8436 Add debugging print-out to termscript.
8437
8438 2004-09-09 Richard M. Stallman <rms@gnu.org>
8439
8440 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
8441
8442 2004-09-08 Richard M. Stallman <rms@gnu.org>
8443
8444 * window.c (Fset_window_buffer): Doc fix.
8445
8446 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
8447
8448 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
8449
8450 * minibuf.c (history_delete_duplicates): New variable.
8451 (read_minibuf): Use it.
8452 (syms_of_minibuf): Create the corresponding lisp variable.
8453
8454 2004-09-08 Kim F. Storm <storm@cua.dk>
8455
8456 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
8457 overlay just before point.
8458
8459 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
8460
8461 * buffer.h (struct buffer): Add auto_save_file_format field.
8462 * buffer.c (reset_buffer, init_buffer_once):
8463 Handle auto_save_file_format field.
8464 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
8465 `buffer-auto-save-file-format'.
8466 * fileio.c: Delete declaration for removed Vauto_save_file_format.
8467 (build_annotations): Adapt to replacement of
8468 `auto-save-file-format' with the new buffer-local variable
8469 `buffer-auto-save-file-format'.
8470 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
8471
8472 2004-09-07 Jason Rumney <jasonr@gnu.org>
8473
8474 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
8475
8476 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
8477 Handle Unicode menu titles.
8478
8479 2004-09-07 Kim F. Storm <storm@cua.dk>
8480
8481 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
8482 property from text property or overlay strings at point.
8483
8484 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8485
8486 * xmenu.c (update_submenu_strings): YAILOM.
8487 (set_frame_menubar): Make sure last_i is initialized.
8488
8489 2004-09-03 Jason Rumney <jasonr@gnu.org>
8490
8491 * w32menu.c (_widget_value): Add lname and lkey.
8492 (digest_single_submenu): Set lname and lkey in widget_value
8493 instead of name and key.
8494 (update_submenu_strings): New function.
8495 (set_frame_menubar): Remove call to inhibit_garbage_collection,
8496 call update_submenu_strings.
8497
8498 * w32menu.c (globals_of_w32menu): Check for Unicode API.
8499 (digest_single_submenu, w32_menu_show): Encode menu strings as
8500 UTF-8 if Unicode API is available.
8501 (utf8to16): New function.
8502 (add_menu_item): Use it when calling Unicode API.
8503
8504 2004-09-03 Kim F. Storm <storm@cua.dk>
8505
8506 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
8507 in overlay or text-property strings; set cursor on corresponding
8508 glyph rather than at end of the string.
8509
8510 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8511
8512 * macfns.c (x_real_positions): Save the current window port and
8513 set a new one before obtaining the global coordinate.
8514 Use FRAME_MAC_WINDOW.
8515 (x_set_name, x_set_title): Encode title to UTF8.
8516 Use SetWindowTitleWithCFString.
8517 (Fx_server_version): Get correct OS version.
8518
8519 * macmenu.c (add_menu_item): Remove unused variable `i'.
8520 Don't let separator items destroy refence constants of other menu items.
8521
8522 * macterm.c (x_update_end): Move SetPortWindowPort to inside
8523 BLOCK_INPUT.
8524 (x_set_offset): Use FRAME_MAC_WINDOW.
8525
8526 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
8527 nontext_cursor if it is on a scroll bar.
8528
8529 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
8530 Carbon support.
8531 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
8532 Use LIBS_CARBON.
8533
8534 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8535
8536 * xfns.c (x_set_name_internal): New function. Check if we shall call
8537 xfree before ENCODE_UTF_8.
8538 (x_set_name, x_set_title): Call x_set_name_internal.
8539
8540 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
8541
8542 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
8543 reload it.
8544
8545 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8546
8547 * macmenu.c (_widget_value): Add lname and lkey.
8548 (single_submenu): Set lname and lkey in widget_value
8549 instead of name and key.
8550 (update_submenu_strings): New function.
8551 (set_frame_menubar): Remove call to inhibit_garbage_collection,
8552 call update_submenu_strings.
8553
8554 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
8555 instead of name and key.
8556 (update_submenu_strings): New function.
8557 (set_frame_menubar): Remove call to inhibit_garbage_collection,
8558 call update_submenu_strings.
8559
8560 * gtkutil.h (_widget_value): Added lname and lkey.
8561
8562 2004-08-30 Steven Tamm <steventamm@mac.com>
8563
8564 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
8565 by using different names for inner loop variables.
8566
8567 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8568
8569 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
8570 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
8571
8572 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
8573 tool bar items is 0.
8574
8575 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8576
8577 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
8578 strings in menu items.
8579 (single_submenu): Use ENCODE_MENU_STRING
8580 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
8581 button release isn't passed to event loop
8582 (add_menu_item): Use SetMenuItemWithCFString
8583
8584 2004-08-26 Steven Tamm <steventamm@mac.com>
8585
8586 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
8587 tool-bar/menu click.
8588 * macfns.c (Fx_file_dialog): Implement using NavServices.
8589
8590 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8591
8592 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
8593
8594 * xfns.c (x_window_to_frame, x_any_window_to_frame)
8595 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8596 (x_top_window_to_frame): Return 0 if wdesc is None.
8597
8598 2004-08-22 Richard M. Stallman <rms@gnu.org>
8599
8600 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
8601 HAVE_TERMIOS]: If there's no char for this signal, drop through
8602 and use system calls.
8603
8604 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
8605
8606 2004-08-20 Kim F. Storm <storm@cua.dk>
8607
8608 * process.c (wait_reading_process_output): Rename from
8609 wait_reading_process_input. All uses changed.
8610 (wait_reading_process_output_1): Rename from
8611 wait_reading_process_input_1. All uses changed.
8612
8613 * dispnew.c (Fsleep_for): Remove obsolete code.
8614
8615 2004-08-20 Kenichi Handa <handa@m17n.org>
8616
8617 * syntax.c (skip_chars): Fix for unibyte case.
8618
8619 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8620
8621 * syntax.c (char_quoted): Mixup byte/char pos.
8622 (back_comment): Fixup globals in all cases.
8623
8624 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8625
8626 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
8627 passing it to gtk_window_set_title.
8628
8629 2004-08-19 Kim F. Storm <storm@cua.dk>
8630
8631 * process.c (wait_reading_process_input): Clean up.
8632 Add wait_for_cell, wait_proc, and just_wait_proc args
8633 to avoid overloading `read_kbd' and `do_display' args.
8634 Change read_kbd arg to int. All callers changed.
8635
8636 * process.c (process_send_signal): Use CDISABLE.
8637
8638 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
8639
8640 2004-08-18 Kim F. Storm <storm@cua.dk>
8641
8642 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
8643 forward to wait_reading_process_input via DO_DISPLAY arg.
8644 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
8645 object, only process output from that process; also inhibit
8646 running timers if DO_DISPLAY==-2.
8647
8648 2004-08-17 Kim F. Storm <storm@cua.dk>
8649
8650 * process.c (process_send_signal): Fix last change--use
8651 _POSIX_VDISABLE instead of CVDISABLE when available.
8652
8653 2004-08-16 Richard M. Stallman <rms@gnu.org>
8654
8655 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
8656 Set VQUIT and VINTR chars to the standard ones if they are unset.
8657 [AIX]: Don't do that here. And don't force VINTR to standard
8658 when SIGNALS_VIA_CHARACTERS.
8659
8660 * process.c (process_send_signal)
8661 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
8662 Do nothing if the character is CVDISABLE.
8663
8664 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
8665
8666 * intervals.c (move_if_not_intangible):
8667 Force POSITION to be between BEGV and ZV.
8668
8669 2004-08-14 John Paul Wallington <jpw@gnu.org>
8670
8671 * buffer.c (Frestore_buffer_modified_p): Doc fix.
8672
8673 * fileio.c (Fread_file_name): Doc fix.
8674
8675 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
8676
8677 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
8678
8679 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
8680
8681 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
8682
8683 * keyboard.c: Declare Qdisabled_command_function instead of
8684 Qdisabled_command_hook.
8685 (Fcommand_execute): Use Qdisabled_command_function instead of
8686 Qdisabled_command_hook.
8687 (syms_of_keyboard): Ditto.
8688
8689 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
8690
8691 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
8692 (syms_of_keymap) <key-translation-map>: Doc fixes.
8693
8694 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
8695
8696 * window.c (window_list_1): YAILOM.
8697
8698 * fileio.c (make_temp_name): Handle multibyte prefixes.
8699
8700 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
8701
8702 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
8703 Doc fix.
8704
8705 2004-08-03 Kenichi Handa <handa@m17n.org>
8706
8707 * coding.c (decode_coding_string): Adjust coding->consumed, and
8708 etc. with shrinked_bytes.
8709
8710 2004-08-03 Kim F. Storm <storm@cua.dk>
8711
8712 * indent.c (compute_motion): Fix check for full width window
8713 in non-window case. Do not count left truncation glyph on
8714 window systems.
8715
8716 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
8717
8718 * data.c (Finteractive_form): Doc fix.
8719
8720 2004-08-02 Kim F. Storm <storm@cua.dk>
8721
8722 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
8723 properly accounting for continuation glyph on non-window systems.
8724 (Fcompute_motion): Use actual window width if WIDTH is nil, and
8725 actual window width/height if TOPOS is nil, properly accounting for
8726 continuation glyphs on non-window systems, and optional header lines.
8727 (vmotion): Let compute_motion calculate actual window width.
8728
8729 * window.c (window_scroll_line_based): Let compute_motion
8730 calculate actual window width.
8731
8732 2004-08-02 Kim F. Storm <storm@cua.dk>
8733
8734 * process.c (read_process_output): Use whole read buffer.
8735 Don't trigger adaptive read buffering on errors.
8736
8737 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
8738
8739 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
8740
8741 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
8742
8743 * callint.c (Fcall_interactively): Doc fix.
8744
8745 2004-07-30 Richard M. Stallman <rms@gnu.org>
8746
8747 * abbrev.c (Fexpand_abbrev): Undo previous change.
8748
8749 2004-07-30 Kim F. Storm <storm@cua.dk>
8750
8751 * editfns.c (Fformat): Allocate extra (dummy) element in info.
8752
8753 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
8754
8755 * eval.c (Fdefvar, Fdefconst): Doc fixes.
8756
8757 2004-07-27 Kim F. Storm <storm@cua.dk>
8758
8759 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
8760 we have ensured that the glyph fits on the current line (or returned
8761 MOVE_LINE_CONTINUED otherwise).
8762
8763 2004-07-26 Kim F. Storm <storm@cua.dk>
8764
8765 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
8766 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
8767 if target position is at end of display line but char is not a newline.
8768
8769 2004-07-25 Richard M. Stallman <rms@gnu.org>
8770
8771 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
8772 instead of ON_VERTICAL_BORDER, when on scroll bar.
8773 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
8774
8775 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
8776
8777 * window.c (Fcoordinates_in_window_p):
8778 Take account of FRAME_INTERNAL_BORDER_WIDTH.
8779
8780 * alloc.c (check_cons_list): New function (contents commented out).
8781
8782 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
8783
8784 * xfaces.c (Fcolor_supported_p): Doc fix.
8785
8786 * frame.c (Fselect_frame, Fset_frame_selected_window)
8787 (Fframe_visible_p, Fraise_frame): Doc fixes.
8788
8789 2004-07-24 Richard M. Stallman <rms@gnu.org>
8790
8791 * keyboard.h (not_single_kboard_state): Declare.
8792
8793 * fileio.c (Fwrite_region): Doc fix.
8794
8795 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
8796
8797 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
8798 only when a real abbrev is present.
8799
8800 * xfns.c (x_icon_verify): New function.
8801 (Fx_create_frame): Use it.
8802
8803 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
8804
8805 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
8806
8807 2004-07-21 Kim F. Storm <storm@cua.dk>
8808
8809 * window.h (struct glyph_matrix): New members nrows_scale_factor
8810 and ncols_scale_factor.
8811
8812 * window.c (make_window): Initialize nrows_scale_factor and
8813 ncols_scale_factor members.
8814
8815 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
8816 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
8817 (required_matrix_height): Apply nrows_scale_factor.
8818 (required_matrix_width): Apply ncols_scale_factor.
8819
8820 * xdisp.c (display_line): Increment nrows_scale_factor and set
8821 fonts_changed_p if past last allocated row.
8822 (append_glyph, append_composite_glyph, produce_image_glyph)
8823 (append_stretch_glyph): Increment ncols_scale_factor and set
8824 fonts_changed_p if current area is full.
8825
8826 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8827
8828 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
8829
8830 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
8831
8832 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
8833 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
8834 (Fset_window_start, Fscroll_up, Fscroll_down)
8835 (Fother_window_for_scrolling, Fscroll_other_window)
8836 (Fsave_window_excursion, Fset_window_vscroll)
8837 (syms_of_window) <window-size-fixed>: Doc fixes.
8838
8839 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8840
8841 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
8842 ENCODE_SYSTEM for filenames.
8843
8844 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8845
8846 * mac.c (sys_select): Block input around call to
8847 ReceiveNextEvent to prevent breakage. Correctly handle
8848 blocking on event queue only by calling ReceiveNextEvent
8849 instead of select (since GUI events aren't on an fd).
8850 (sys_read): Remove function
8851 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
8852
8853 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8854
8855 * mac.c (sys_select): Redo sys_select to use alarm-based
8856 polling instead of 1 sec timeouts (like solaris).
8857
8858 * macterm.c (x_make_frame_visible): Comment in polling on
8859 frame creation.
8860
8861 * keyboard.c: Undef SIGIO on Carbon
8862
8863 * atimer.c (alarm_signal_handler): Call alarm handlers after
8864 scheduling.
8865
8866 * eval.c (Feval): Remove quit_char test
8867
8868 * process.c (wait_reading_process_input): Remove clearing
8869 stdin for select call on process input.
8870
8871 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
8872
8873 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
8874 capitalization error in docstring.
8875
8876 2004-07-17 Juanma Barranquero <lektu@terra.es>
8877
8878 * keyboard.c (not_single_kboard_state): Do nothing unless
8879 MULTI_KBOARD is defined.
8880
8881 2004-07-17 Richard M. Stallman <rms@gnu.org>
8882
8883 * window.c (coordinates_in_window): Inside the window but outside
8884 its box to the L or R, return ON_VERTICAL_BORDER.
8885 (window_list_1): Rotate the list to start with WINDOW.
8886
8887 * print.c (print_preprocess): Test for print_depth at limit
8888 before entering in being_printed.
8889
8890 * keyboard.c (not_single_kboard_state): New function.
8891 (stuff_buffered_input): Now no-op only if no SIGTSTP.
8892
8893 * frame.c (Fdelete_frame): If we're in single_bboard_state on
8894 this kboard, and we delete its last frame, go to any_kboard_state.
8895
8896 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
8897
8898 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8899
8900 * w32fns.c (Fx_file_dialog): Encode strings in system coding
8901 system before passing them to OS functions for display.
8902
8903 2004-07-15 David Kastrup <dak@gnu.org>
8904
8905 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
8906 Apparently fixes an abort condition.
8907
8908 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
8909
8910 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
8911 instead of a cons.
8912
8913 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8914
8915 * keyboard.c (echo_dash): Do nothing if there already is a dash
8916 at the end of the echo string.
8917
8918 2004-07-12 Kim F. Storm <storm@cua.dk>
8919
8920 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
8921 if GC_MARK_STACK.
8922
8923 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
8924
8925 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
8926
8927 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
8928 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
8929 (Freplace_buffer_in_windows, Fset_window_buffer)
8930 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
8931 (syms_of_window): Expand docstring of `display-buffer-function'.
8932
8933 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
8934
8935 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
8936 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
8937 that time values of the type (HIGH . LOW) are considered obsolete.
8938
8939 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
8940
8941 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
8942 docstring.
8943
8944 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
8945
8946 2004-07-06 John Paul Wallington <jpw@gnu.org>
8947
8948 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
8949
8950 * fns.c (Fclear_string): Signal an error if STRING is not a string.
8951
8952 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8953
8954 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
8955 instead of CGMainDisplayID (only in OSX 10.2 and later).
8956
8957 2004-07-04 John Paul Wallington <jpw@gnu.org>
8958
8959 * fileio.c (read_file_name_completion_ignore_case): New variable.
8960 (syms_of_fileio): Declare and initialise it.
8961 (Fread_file_name): Bind `completion-ignore-case' to respect it.
8962
8963 2004-07-03 Eli Zaretskii <eliz@gnu.org>
8964
8965 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
8966 for event.x and event.y.
8967
8968 2004-07-01 Kenichi Handa <handa@m17n.org>
8969
8970 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
8971 after getting a new string by pre-write-conversion.
8972
8973 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
8974
8975 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
8976 (x_calc_absolute_position): Remove unused var `child'.
8977
8978 * xfaces.c (x_supports_face_attributes_p)
8979 (Fdisplay_supports_face_attributes_p): YAILOM.
8980 (tty_supports_face_attributes_p): Remove unused var `i'.
8981
8982 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
8983 back_unibyte_ok.
8984
8985 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
8986
8987 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
8988
8989 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
8990
8991 2004-06-30 Andreas Schwab <schwab@suse.de>
8992
8993 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
8994 (Finit_image_library): Pass LIBRARIES through to
8995 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
8996 (lookup_image_type): Pass Qnil as second argument to
8997 Finit_image_library.
8998
8999 * lisp.h (Finit_image_library): Declare.
9000
9001 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9002
9003 * macterm.c (do_window_activate, do_window_deactivate): Remove.
9004 (XTread_socket): Send mouse button events to the toolbox
9005 dispatcher even when the mouse is grabbed. Don't process window
9006 activate events for non-Emacs windows. Replace function calls to
9007 do_window_activate and do_window_deactivate with their contents.
9008 Reset mouse grabbing status when a window is deactivated.
9009
9010 2004-06-29 Steven Tamm <steventamm@mac.com>
9011
9012 * macterm.c (mac_get_emulated_btn)
9013 (mac_event_to_emacs_modifiers): Fix emulated mouse button
9014 support to correctly mask out modifiers.
9015
9016 2004-06-29 David Kastrup <dak@gnu.org>
9017
9018 * search.c (Fset_match_data): Allow buffer before end of list
9019 which can happen if set-match-data is using a pre-consed list.
9020
9021 2004-06-28 Steven Tamm <steventamm@mac.com>
9022
9023 * macterm.c (XTread_socket): Correctly set the frame position
9024 after the window is moved.
9025
9026 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9027
9028 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
9029 gpix and gmask just before return to avoid memory leak.
9030 (xg_get_image_for_pixmap): Add workaround for monochrome displays
9031 so insensitive and activated icons look ok.
9032
9033 2004-06-27 Jason Rumney <jasonr@gnu.org>
9034
9035 * w32fns.c (file_dialog_callback): Disable edit control if set
9036 to directories only on CDN_INITDONE message.
9037 (Fx_file_dialog): Default to directories only when prompt starts
9038 with "Dired".
9039
9040 2004-06-25 Kim F. Storm <storm@cua.dk>
9041
9042 * alloc.c (allocate_misc): Update total_free_markers.
9043 (free_misc): New function.
9044 (safe_alloca_unwind, free_marker): Use it.
9045
9046 * lisp.h (free_misc): Add prototype.
9047
9048 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
9049
9050 2004-06-24 Richard M. Stallman <rms@gnu.org>
9051
9052 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
9053 (syms_of_emacs): Lisp variables deleted.
9054
9055 2004-06-23 David Kastrup <dak@gnu.org>
9056
9057 * search.c (Freplace_match): Adjust the match-data more thoroughly
9058 when replacing strings in the buffer.
9059 (Fmatch_data): When INTEGERS is non-nil and the last match was in
9060 a buffer, add the buffer as last element to the match data.
9061 (Fset_match_data): If an additional element of the match-data is a
9062 buffer, restore it to last_thing_searched.
9063 (save_search_regs): Save last_thing_searched as part of the match data.
9064 (restore_match_data): Restore it again.
9065
9066 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
9067
9068 * keymap.c (Ftext_char_description): Doc fix.
9069 * doc.c (Fsnarf_documentation): Doc fix.
9070
9071 2004-06-22 Kim F. Storm <storm@cua.dk>
9072
9073 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
9074
9075 * lisp.h (struct Lisp_Save_Value): New member dogc.
9076 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
9077 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
9078 (SAFE_FREE_LISP): New macro.
9079
9080 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
9081 (make_save_value): Init new dogc member.
9082 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
9083
9084 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
9085 SAFE_FREE_LISP macros.
9086
9087 2004-06-22 Kim F. Storm <storm@cua.dk>
9088
9089 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
9090 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
9091 in that memory area are unknown to GC. Add comments.
9092
9093 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
9094
9095 2004-06-21 Kim F. Storm <storm@cua.dk>
9096
9097 * lisp.h (MAX_ALLOCA): Define here.
9098 (safe_alloca_unwind): Add prototype.
9099 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
9100
9101 * alloc.c (safe_alloca_unwind): New function.
9102
9103 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
9104
9105 * charset.c (Fstring): Use SAFE_ALLOCA.
9106
9107 * coding.c (MAX_ALLOCA): Remove define.
9108
9109 * data.c (MAX_ALLOCA): Remove define.
9110 (Faset): Use SAFE_ALLOCA.
9111
9112 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
9113
9114 * fns.c (string_make_multibyte, string_to_multibyte)
9115 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
9116 (MAX_ALLOCA): Remove define.
9117 (Fbase64_encode_region, Fbase64_encode_string)
9118 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
9119 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
9120 memory leak if encoding fails.
9121
9122 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
9123
9124 2004-06-21 Eli Zaretskii <eliz@gnu.org>
9125
9126 * print.c (Fwith_output_to_temp_buffer): Doc fix.
9127
9128 2004-06-20 Richard M. Stallman <rms@gnu.org>
9129
9130 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
9131
9132 * search.c (match_limit): Cleaner err msg when no match data available.
9133
9134 * window.c (syms_of_window): Doc fix.
9135
9136 * keyboard.c (command_loop_1): Handle values `only' and `identity'
9137 for Vtransient_mark_mode.
9138
9139 * buffer.c (syms_of_buffer): Doc fix.
9140
9141 2004-06-21 David Kastrup <dak@gnu.org>
9142
9143 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
9144 and unbinding of `case-fold-search' according to
9145 `completion-ignore-case' around calls of string-match and
9146 predicates, respectively. Should give satisfactory performance
9147 in all relevant cases.
9148
9149 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9150
9151 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
9152 clip_x/y_origin.
9153
9154 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
9155
9156 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
9157
9158 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
9159 on Mac OSX.
9160
9161 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
9162
9163 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
9164
9165 2004-06-16 Kim F. Storm <storm@cua.dk>
9166
9167 * dispextern.h (Vimage_types): Remove extern.
9168
9169 2004-06-16 Miles Bader <miles@gnu.org>
9170
9171 * image.c (lookup_image_type): Initialize image type if necessary.
9172
9173 2004-06-15 Kim F. Storm <storm@cua.dk>
9174
9175 * xdisp.c (try_cursor_movement): Exclude header line from scroll
9176 margin at top of window.
9177 (try_window_reusing_current_matrix): Calculate proper cursor position
9178 after scrolling up with non-zero scroll margin, as the old cursor
9179 position corresponds to value of PT before executing this command.
9180 (try_window_id): Consider scroll margin at bottom of window too;
9181 otherwise we fail to scroll when hl-line-mode is enabled.
9182
9183 * syntax.c (skip_chars): Only recognize [:class:] when it has the
9184 proper format and class is a lower-case word.
9185
9186 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9187
9188 * gtkutil.c (xg_get_image_for_pixmap): New function.
9189 (xg_get_gdk_pixmap_and_mask): Remove.
9190 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
9191 xg_get_gdk_pixmap_and_mask.
9192
9193 * xterm.h (struct x_display_info): Typo in comment fixed.
9194
9195 2004-06-14 Juanma Barranquero <lektu@terra.es>
9196
9197 * dispextern.h (Vimage_types): Make it conditional on
9198 HAVE_WINDOW_SYSTEM.
9199
9200 * image.c (Vimage_types): Move from xdisp.c.
9201 (Vimage_type_cache): New variable.
9202 (define_image_type): New argument indicating whether an image
9203 library was loaded; cache loaded status and return t on success,
9204 nil otherwise.
9205 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
9206 (w32_delayed_load): New function to load an image library from a
9207 list of possible filenames.
9208 (init_xpm_functions, init_png_functions, init_jpeg_functions)
9209 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
9210 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
9211 (Finit_image_library): New function, extracted from `init_image'.
9212 Try to initialize an image library on demand and cache whether we
9213 were successful or not.
9214 (syms_of_image): Initialize `Vimage_types' and
9215 `Vimage_type_cache'. Add recognized image types to Vimage_types.
9216 Export `init-image-library'.
9217 (init_image): Remove initialization of all image types, except xbm
9218 and pbm.
9219
9220 * xdisp.c (Vimage_types): Delete (moved to image.c).
9221
9222 2004-06-14 Andreas Schwab <schwab@suse.de>
9223
9224 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
9225 Avoid calling specbind when completion-regexp-list is empty.
9226
9227 2004-06-13 Richard M. Stallman <rms@gnu.org>
9228
9229 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
9230 (re_wctype, re_iswctype, re_wctype_to_bit):
9231 Non-function definitions moved here from regex.c.
9232
9233 * regex.c (re_wctype, re_iswctype): Function defs longer static.
9234 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
9235 (re_wctype, re_iswctype, re_wctype_to_bit):
9236 Non-function definitions moved to regex.h.
9237
9238 * window.c (Fselect_window): Doc fix.
9239
9240 * syntax.c: Include regex.h.
9241 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
9242 If requested, make a list of classes, then check the scanned
9243 chars for membership in them.
9244 (in_classes): New function.
9245 Doc fix.
9246
9247 * keyboard.c (cmd_error): Don't call any_kboard_state
9248 if inside a recursive edit level.
9249
9250 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
9251
9252 * keyboard.c (command_loop): Call any_kboard_state before
9253 command_loop_2 when at top level.
9254
9255 2004-06-13 Andreas Schwab <schwab@suse.de>
9256
9257 * print.c (print_object): Always use %ld for printing EMACS_INT.
9258
9259 * keyboard.c (cancel_hourglass_unwind): Return a value.
9260 (modify_event_symbol): Always use %ld for printing EMACS_INT.
9261 (Fexecute_extended_command): Likewise.
9262
9263 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
9264 avoid clashes.
9265 (SYNTAX): Likewise.
9266 (SYNTAX_WITH_FLAGS): Likewise.
9267 (SYNTAX_MATCH): Likewise.
9268
9269 * syntax.c (char_quoted): Avoid warning about undefined operation.
9270 (find_defun_start): Likewise.
9271 (scan_lists): Likewise.
9272 (INC_FROM): Likewise.
9273 (scan_sexps_forward): Likewise.
9274
9275 * image.c: Include <ctype.h>.
9276
9277 * xfaces.c (face_attr_equal_p): Declare parameters.
9278
9279 2004-06-13 Kenichi Handa <handa@m17n.org>
9280
9281 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
9282
9283 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
9284
9285 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
9286
9287 2004-06-12 Kenichi Handa <handa@m17n.org>
9288
9289 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
9290 ccl_prog_stack_struct and update it.
9291 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
9292 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
9293 ccl->eof_ic on EOF.
9294 (ccl_debug_hook): New function.
9295 (struct ccl_prog_stack): New member eof_ic.
9296 (ccl_driver): Handle EOF in subrountine call correctly.
9297
9298 2004-06-11 Kenichi Handa <handa@m17n.org>
9299
9300 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
9301
9302 2004-06-11 Kim F. Storm <storm@cua.dk>
9303
9304 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
9305
9306 2004-06-11 Juanma Barranquero <lektu@terra.es>
9307
9308 * keyboard.c (Fposn_at_point): Doc fix.
9309
9310 2004-06-11 David Kastrup <dak@gnu.org>
9311
9312 * search.c (match_limit): Don't flag an error if match-data
9313 exceeding the allocated search_regs.num_regs gets requested, just
9314 return Qnil.
9315
9316 2004-06-08 Miles Bader <miles@gnu.org>
9317
9318 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
9319
9320 2004-06-07 Juanma Barranquero <lektu@terra.es>
9321
9322 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
9323 (Fcurrent_time_string, Fcurrent_time_zone)
9324 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
9325
9326 2004-06-07 Miles Bader <miles@gnu.org>
9327
9328 * xfaces.c (struct named_merge_point): New type.
9329 (push_named_merge_point): New function.
9330 (merge_named_face): New function.
9331 (merge_face_ref, face_at_buffer_position, face_at_string_position):
9332 Use `merge_named_face'.
9333 (merge_face_inheritance): Function removed.
9334 (merge_face_ref): Rename from `merge_face_vector_with_property'.
9335 Add new `err_msgs' and `named_merge_points' args. Return error
9336 status. Only print error messages if ERR_MSGS is true. Don't try to
9337 do :inherit attribute validation.
9338 (merge_face_heights): Handle `unspecified' in both directions.
9339 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
9340 Call `merge_face_ref' instead of `merge_face_inheritance'.
9341 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
9342 (compute_char_face, face_at_buffer_position)
9343 (face_at_string_position): Call `merge_face_ref' instead of
9344 `merge_face_vector_with_property'.
9345
9346 2004-06-07 Kenichi Handa <handa@m17n.org>
9347
9348 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
9349 the necessary places.
9350
9351 2004-06-07 Kim F. Storm <storm@cua.dk>
9352
9353 * process.c (Fdelete_process): Undo 2004-05-28 change.
9354 Instead, call status_notify also for network process.
9355 (status_message): Use process instead of status as arg.
9356 Give messages "deleted" or "connection broken by remote peer" for
9357 an exited network process.
9358 (status_notify): Change call to status_message.
9359 (read_process_output): Increase readmax to 4096. Do not increase
9360 buffer size for datagram channels (default is now large enough).
9361
9362 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
9363
9364 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
9365 problem due to newly defined variable.
9366
9367 2004-06-06 Miles Bader <miles@gnu.org>
9368
9369 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
9370 immediately if non-interactive or not initialized.
9371
9372 2004-06-05 Richard M. Stallman <rms@gnu.org>
9373
9374 * minibuf.c (Fcompleting_read): Doc fix.
9375
9376 2004-06-05 Andreas Schwab <schwab@suse.de>
9377
9378 * macfns.c (x_create_tip_frame): Fix declaration after statement.
9379
9380 2004-06-05 Juanma Barranquero <lektu@terra.es>
9381
9382 * keymap.c (Fdescribe_vector): Fix docstring.
9383 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
9384
9385 2004-06-05 Miles Bader <miles@gnu.org>
9386
9387 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
9388 attributes have different values than the default face.
9389
9390 2004-06-04 Eli Zaretskii <eliz@gnu.org>
9391
9392 * xfaces.c (x_supports_face_attributes_p): Make this function
9393 conditional on HAVE_WINDOW_SYSTEM.
9394 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
9395 Don't call x_supports_face_attributes_p if it was not compiled in.
9396
9397 2004-06-04 Miles Bader <miles@gnu.org>
9398
9399 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
9400 from Ftty_supports_face_attributes_p.
9401 (x_supports_face_attributes_p): New function.
9402 (Ftty_supports_face_attributes_p): Function deleted.
9403 (Fdisplay_supports_face_attributes_p): New function.
9404 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
9405 (face_attr_equal_p): New function.
9406 (lface_equal_p): Use it.
9407
9408 2004-06-03 Juanma Barranquero <lektu@terra.es>
9409
9410 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
9411 (Vw32_color_map): Fix typo in docstring.
9412 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
9413 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
9414 Make argument names match their use in docstring.
9415
9416 2004-06-02 Juanma Barranquero <lektu@terra.es>
9417
9418 Work around bugs/problems with MinGW builds of graphics libraries
9419 called from MSVC builds of Emacs.
9420
9421 * image.c (lookup_image): Make pointer to img static.
9422 (png_read_from_memory): Disable "global" optimization.
9423
9424 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
9425
9426 * eval.c (Fcondition_case): Fix usage. Simplify.
9427
9428 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
9429
9430 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9431
9432 * macfns.c: Don't include ccl.h.
9433 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
9434 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
9435 TextUtils.h.
9436 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
9437 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
9438 display height/width.
9439 (compute_tip_xy, Vx_max_tooltip_size): Declare.
9440 (unwind_create_tip_frame, compute_tip_xy): New functions.
9441 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
9442 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
9443 and last_show_tip_args.
9444
9445 * macgui.h [!MAC_OSX]: Include Gestalt.h.
9446 (Cursor, No_Cursor): New defines.
9447 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
9448 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
9449
9450 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
9451
9452 * macterm.c: Don't include Gestalt.h.
9453 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
9454 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
9455 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
9456 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
9457 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
9458 (construct_mouse_click, XTmouse_position)
9459 (x_scroll_bar_report_motion, x_calc_absolute_position)
9460 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
9461 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
9462 (note_mouse_movement): Clear the mouse face and reset the pointer
9463 shape when the pointer goes outside the frame without grabbing.
9464 (mac_front_window): New function.
9465 (mac_window_to_frame): New macro.
9466 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
9467 (do_window_activate, do_window_deactivate, do_app_resume)
9468 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
9469 (do_zoom_window, mac_do_receive_drag, XTread_socket)
9470 (mac_check_for_quit_char): Use mac_front_window and/or
9471 mac_window_to_frame.
9472 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
9473 scroll-bar click event.
9474 (mac_define_frame_cursor): Change the pointer shape.
9475 (x_free_frame_resources): Reset tip_window to NULL when it is
9476 disposed of.
9477 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
9478 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
9479 (do_window_update): Don't do anything if the updated window is the
9480 tooltip window.
9481 (do_mouse_moved): Handle mouse movement events here (previously in
9482 XTread_socket). Clear the mouse face if
9483 dpyinfo->mouse_face_hidden is set.
9484 (do_os_event, do_events): Remove (now in XTread_socket).
9485 (XTread_socket): Immediately return if interrupt_input_blocked.
9486 Loop until all the events in the queue are processed.
9487 Rearrange codes for mouse grabbing. Add tooltip support. Include the
9488 contents of do_os_event and do_events. Remove mouse movement
9489 handling (now in do_mouse_moved). Add the case where
9490 Vmouse_highlight has an integer value.
9491 (NewMacWindow): Remove.
9492 (make_mac_frame): Do what NewMacWindow previously did. Don't do
9493 excess initializations.
9494 (make_mac_terminal_frame): Previous initializations in
9495 make_mac_frame are moved here.
9496 (mac_initialize_display_info):
9497 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
9498
9499 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
9500 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
9501
9502 2004-05-29 Richard M. Stallman <rms@gnu.org>
9503
9504 * lisp.h (truncate_undo_list): Update decl.
9505
9506 * alloc.c (undo_outer_limit): New variable.
9507 (syms_of_alloc): Defvar it.
9508 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
9509
9510 * undo.c (truncate_undo_list): New arg LIMITSIZE.
9511
9512 * alloc.c (lisp_align_malloc): Check for base == 0
9513 regardless of HAVE_POSIX_MEMALIGN.
9514 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
9515
9516 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9517
9518 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
9519 (marker_blocks_pending_free): Remove.
9520 (Fgarbage_collect): Sweep after cleaning up undo-lists.
9521 Mark the undo lists after claning them up.
9522 Don't free block in marker_blocks_pending_free.
9523 (mark_buffer): Don't mark undo_list.
9524 (gc_sweep): Sweep hash-tables and strings first.
9525 Do free marker blocks that are empty.
9526
9527 2004-05-28 Jim Blandy <jimb@redhat.com>
9528
9529 * regex.c (print_partial_compiled_pattern): Add missing 'break'
9530 after 'case wordend'. For symbeg and symend, print to stderr,
9531 like the other cases.
9532
9533 2004-05-28 Noah Friedman <friedman@splode.com>
9534
9535 * process.c (Fdelete_process): Do not call remove_process.
9536
9537 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9538
9539 * alloc.c (struct backtrace): Remove.
9540 (Fgarbage_collect): Use the new mark_backtrace.
9541
9542 * eval.c (mark_backtrace): New function.
9543
9544 * minibuf.c (run_exit_minibuf_hook): New function.
9545 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
9546 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
9547
9548 2004-05-27 Kim F. Storm <storm@cua.dk>
9549
9550 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
9551 over display properties, e.g. images, that replace buffer text.
9552
9553 2004-05-25 Kim F. Storm <storm@cua.dk>
9554
9555 * alloc.c (marker_blocks_pending_free): New var.
9556 (gc_sweep): Store free marker blocks on that list.
9557 (Fgarbage_collect): Free them after undo-list cleanup.
9558
9559 * process.c (wait_reading_process_input): Check connect_wait_mask
9560 before actually accepting connection in case it has already been
9561 accepted due to recursion.
9562
9563 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
9564
9565 * coding.c (Fset_safe_terminal_coding_system_internal):
9566 Set suppress_error in safe_terminal_coding, not terminal_coding.
9567
9568 2004-05-22 Richard M. Stallman <rms@gnu.org>
9569
9570 * alloc.c (Fmake_string): Doc fix.
9571
9572 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
9573 and the alist pairs too.
9574
9575 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
9576
9577 * emacs.c (main): Update copyright year.
9578
9579 * fileio.c (Fread_file_name): Expand DIR if not absolute.
9580
9581 * insdel.c (del_range_2, replace_range): Don't write an anchor
9582 if the gap is empty.
9583
9584 * xdisp.c (try_scrolling): If scroll-up-aggressively or
9585 scroll-down-aggressively is small but positive, put point
9586 near the screen edge.
9587
9588 2004-05-22 Juanma Barranquero <lektu@terra.es>
9589
9590 * keymap.c (Fdefine_key): Doc fix.
9591
9592 2004-05-22 Kim F. Storm <storm@cua.dk>
9593
9594 * alloc.c (struct backtrace): Add debug_on_exit member.
9595 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
9596 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
9597 the removed cons cells.
9598 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
9599 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
9600 any cons cells pointing to unallocated stings.
9601 Do not lisp_free any marker blocks, as there may still be pointers
9602 to them from buffer undo lists at this stage of GC.
9603
9604 * keyboard.c (struct backtrace): Add debug_on_exit member.
9605 (Fcommand_execute): Clear it.
9606
9607 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
9608
9609 * intervals.c (lookup_char_property): Do not prematurely return nil.
9610
9611 2004-05-19 Jim Blandy <jimb@redhat.com>
9612
9613 Add support for new '\_<' and '\_>' regexp operators, matching the
9614 beginning and end of symbols.
9615
9616 * regex.c (enum syntaxcode): Add Ssymbol.
9617 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
9618 (re_opcode_t): New opcodes `symbeg' and `symend'.
9619 (print_partial_compiled_pattern): Print the new opcodes properly.
9620 (regex_compile): Parse the new operators.
9621 (analyse_first): Skip sym(beg|end) (they match only the empty string).
9622 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
9623 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
9624 (re_match_2_internal): Match symbeg and symend.
9625
9626 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
9627
9628 2004-05-19 Kim F. Storm <storm@cua.dk>
9629
9630 * .gdbinit (xsymbol): Fix last change.
9631
9632 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
9633
9634 * .gdbinit (xprintstr): New fun.
9635 (xstring, xprintsym): Use it.
9636
9637 * w32proc.c (create_child): Use INTMASK.
9638
9639 * alloc.c (Fgarbage_collect): Do all the marking before flushing
9640 unmarked elements of the undo list.
9641
9642 2004-05-18 David Ponce <david@dponce.com>
9643
9644 * print.c (print): Reset print_depth before to call print_object.
9645
9646 2004-05-18 Jason Rumney <jasonr@gnu.org>
9647
9648 * w32console.c: Prefix RIF functions with w32con_ to avoid
9649 namespace clash with functions in term.c and w32term.c.
9650
9651 * w32menu.c (add_menu_item, w32_menu_display_help)
9652 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
9653
9654 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
9655
9656 2004-05-18 Eli Zaretskii <eliz@gnu.org>
9657
9658 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
9659
9660 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
9661 with make_number.
9662 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
9663 with XINT.
9664
9665 2004-05-18 Kim F. Storm <storm@cua.dk>
9666
9667 * blockinput.h (INPUT_BLOCKED_P): New macros.
9668
9669 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
9670 (Ftop_level): Unblock input if blocked.
9671
9672 * buffer.h (GET_OVERLAYS_AT): New macro.
9673 * msdos.c (IT_note_mouse_highlight): Use it.
9674 * textprop.c (get_char_property_and_overlay): Use it.
9675 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
9676 * xfaces.c (face_at_buffer_position): Use it.
9677
9678 * print.c (print_object): Increase buf size.
9679
9680 2004-05-17 Jason Rumney <jasonr@gnu.org>
9681
9682 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
9683 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
9684 Lisp_Object using i member.
9685 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
9686 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
9687 consistently.
9688
9689 * w32proc.c (create_child): Use make_number instead of masking pid.
9690
9691 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
9692 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
9693 Use EQ to compare Lisp_Objects.
9694 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
9695
9696 * w32term.c (w32_num_mouse_buttons): Rename from
9697 Vw32_num_mouse_buttons and make it an int.
9698
9699 * w32.c (init_environment): Use it.
9700
9701 * w32fns.c (w32_wnd_proc): Likewise.
9702
9703 * w32proc.c (w32_pipe_read_delay): Rename from
9704 Vw32_pipe_read_delay and make it an int.
9705
9706 * w32.c (_sys_read_ahead): Use it.
9707
9708 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
9709
9710 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
9711
9712 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
9713 (key_event): Don't mix Lisp_Object and int.
9714
9715 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
9716
9717 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
9718 modifiers in language change event.
9719
9720 2004-05-17 Kim F. Storm <storm@cua.dk>
9721
9722 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
9723 Such objects may be freed markers which still exist on an undo list.
9724
9725 2004-05-16 Juanma Barranquero <lektu@terra.es>
9726
9727 * data.c (Fset_default): Make argument names match their use in
9728 docstring.
9729
9730 2004-05-15 Andreas Schwab <schwab@suse.de>
9731
9732 * emacs.c (gdb_array_mark_flag): Define.
9733 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
9734
9735 2004-05-15 Eli Zaretskii <eliz@gnu.org>
9736
9737 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
9738 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
9739 defined for the MS-DOS build.
9740
9741 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
9742
9743 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
9744
9745 2004-05-14 Kenichi Handa <handa@m17n.org>
9746
9747 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
9748
9749 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9750
9751 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
9752 section to frame.c section.
9753 (Fxw_display_color_p, Fx_file_dialog): Declare if
9754 HAVE_WINDOW_SYSTEM defined.
9755
9756 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
9757
9758 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
9759
9760 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
9761 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
9762 (XTread_socket): Fix int/Lisp_Object mixup.
9763 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
9764
9765 * macterm.h (struct frame, struct face, struct image)
9766 (display_x_get_resource, Fx_display_color_p)
9767 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
9768 Add prototypes.
9769
9770 2004-05-14 Kim F. Storm <storm@cua.dk>
9771
9772 * process.c (wait_reading_process_input): Make reentrant.
9773 Make Available and Connecting non-static. Save and restore value
9774 of waiting_for_user_input_p.
9775
9776 2004-05-13 Kim F. Storm <storm@cua.dk>
9777
9778 * keyboard.c (mark_kboards): Don't mark x and y members
9779 that are overloaded in selection request events.
9780
9781 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9782
9783 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
9784
9785 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
9786
9787 * window.c (Fdisplay_buffer, Fsplit_window)
9788 (split-height-threshold): Doc fix.
9789
9790 2004-05-13 Juanma Barranquero <lektu@terra.es>
9791
9792 * xfaces.c (Ftty_supports_face_attributes_p)
9793 (Finternal_copy_lisp_face): Fix typo in docstring.
9794 (Finternal_get_lisp_face_attribute): Fix docstring.
9795
9796 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9797
9798 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
9799
9800 2004-05-11 Steven Tamm <steventamm@mac.com>
9801
9802 * macfns.c (Fx_create_frame): Default to using tool-bar by
9803 setting tool-bar-lines to 1 in default-frame-alist.
9804
9805 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9806
9807 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
9808 (xpm_get_color_table_v, xpm_make_color_table_h)
9809 (xpm_put_color_table_h, xpm_get_color_table_h)
9810 (xpm_str_to_color_key, xpm_load_image, xpm_load)
9811 (syms_of_image): Support XPM on Carbon Emacs. Does not
9812 depend on libXpm, but only supports XPM version 3 without extensions.
9813
9814 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9815
9816 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
9817 instead of FRAME_X_P
9818
9819 2004-05-11 Kim F. Storm <storm@cua.dk>
9820
9821 * process.c (read_process_output): Grow decoding_buf when needed;
9822 this could cause a crash in allocate_string and compact_small_strings.
9823
9824 2004-04-29 Jim Blandy <jimb@redhat.com>
9825
9826 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
9827 against proper opcode.
9828
9829 2004-05-10 Juanma Barranquero <lektu@terra.es>
9830
9831 * process.c (Fstart_process): Fix docstring.
9832
9833 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
9834 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
9835 (Fsplit_char, Fchar_charset): Make argument names match their use
9836 in docstring.
9837
9838 2004-05-10 Richard M. Stallman <rms@gnu.org>
9839
9840 * print.c (print_preprocess): Use being_printed, loop_count and
9841 halftail to detect overdeep nesting and cyclic cdr chains.
9842
9843 2004-05-10 Andreas Schwab <schwab@suse.de>
9844
9845 * lisp.h (Fmake_symbolic_link): Declare.
9846
9847 * fileio.c (Frename_file): Remove extra argument in call to
9848 Fmake_symbolic_link.
9849
9850 2004-05-10 Kim F. Storm <storm@cua.dk>
9851
9852 * xdisp.c (calc_line_height_property): Use string position when
9853 object is a string.
9854
9855 2004-05-10 Kenichi Handa <handa@m17n.org>
9856
9857 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
9858 inhibit-modification-hooks to t temporarily before calling
9859 Ferase_buffer.
9860
9861 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
9862 inhibit-modification-hooks to t temporarily before calling
9863 Ferase_buffer.
9864
9865 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
9866 inhibit-modification-hooks to t temporarily before calling
9867 Ferase_buffer.
9868
9869 * fns.c (count_combining): Delete it.
9870 (concat): Don't check combining bytes.
9871
9872 2004-05-09 Jason Rumney <jasonr@gnu.org>
9873
9874 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
9875 (globals_of_w32fns): Set it.
9876
9877 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
9878
9879 * data.c (Fquo): Simplify.
9880
9881 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
9882
9883 * data.c (Fquo): If any argument is float, do the computation in
9884 floating point.
9885
9886 2004-05-08 Juanma Barranquero <lektu@terra.es>
9887
9888 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
9889 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
9890 Fix spelling of Emacs on docstring.
9891 (Fset_process_coding_system, Fprocess_coding_system)
9892 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
9893 Make argument names match their use in docstring.
9894 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
9895 Fix docstring.
9896
9897 * editfns.c (Finsert_buffer_substring): Make argument names match their
9898 use in docstring.
9899
9900 * syntax.c (Fmodify_syntax_entry): Fix docstring.
9901
9902 2004-05-07 Steven Tamm <steventamm@mac.com>
9903
9904 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
9905 around call to ReceiveEvent to avoid certain crashes.
9906
9907 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9908
9909 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
9910 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
9911 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
9912 Save/restore the current graphics port and device handle when
9913 drawing into an offscreen graphics world.
9914
9915 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
9916 (gif_load): Likewise.
9917
9918 2004-05-07 Juanma Barranquero <lektu@terra.es>
9919
9920 * window.c (Fset_window_buffer): Fix docstring.
9921
9922 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
9923
9924 * emacs.c (main) [VMS]: Fix var ref.
9925
9926 2004-05-06 Romain Francoise <romain@orebokech.com>
9927
9928 * data.c (Fsetq_default): Fix docstring.
9929
9930 2004-05-06 Jason Rumney <jasonr@gnu.org>
9931
9932 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
9933 to avoid name clash.
9934
9935 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9936
9937 * fileio.c (barf_or_query_if_file_exists): Use lstat.
9938 (Frename_file): Handle renaming of symlinks across file systems.
9939 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
9940
9941 2004-05-04 Kim F. Storm <storm@cua.dk>
9942
9943 * xdisp.c (Qtotal): New var.
9944 (syms_of_xdisp): Intern and staticpro it.
9945 (calc_line_height_property): New arg total. Set it if
9946 line-spacing property has format (total . VALUE).
9947 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
9948 Handle total line-spacing property.
9949
9950 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9951
9952 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
9953 "under" scroll bar when size/position changes.
9954
9955 2004-05-03 Jason Rumney <jasonr@gnu.org>
9956
9957 * makefile.nt: Remove.
9958
9959 2004-05-02 Eli Zaretskii <eliz@gnu.org>
9960
9961 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
9962 Avoid compiler warnings.
9963
9964 * Makefile.in (region-cache.o): Depend on config.h.
9965
9966 2004-05-02 Romain Francoise <romain@orebokech.com>
9967
9968 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
9969 with continuation lines, too.
9970
9971 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
9972
9973 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
9974
9975 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
9976
9977 * xdisp.c (calc_line_height_property): YAILOM (yet another
9978 int/Lisp_Object mixup).
9979
9980 2004-05-01 Eli Zaretskii <eliz@gnu.org>
9981
9982 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
9983 undo bad effect of pack(4) in some versions of system headers.
9984
9985 2004-05-01 Jason Rumney <jasonr@gnu.org>
9986
9987 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
9988
9989 2004-04-30 Kim F. Storm <storm@cua.dk>
9990
9991 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
9992 (syms_of_buffer) <cursor-type>: Doc fix.
9993
9994 * dispextern.h (struct it): Remove member use_default_face.
9995 Add members override_ascent, override_descent, override_boff.
9996
9997 * xdisp.c (init_iterator): Handle line-spacing float value.
9998 Initialize override_ascent member.
9999 (append_space_for_newline): Reset override_ascent.
10000 Remove use_default_face.
10001 (calc_line_height_property): New function to calculate value of
10002 line-height and line-spacing properties. Look at overlays, too.
10003 Set override_ascent, override_descent, override_boff members when
10004 using another face than the current face. Float values are now
10005 relative to the frame default font, by default; accept a cons
10006 of ratio and face name to specify value relative to a specific face.
10007 (x_produce_glyphs): Use calc_line_height_property.
10008 Use override_ascent etc. when set to handle different face heights.
10009 A negative line-spacing property value is interpreted as a total
10010 line height, rather than inter-line spacing.
10011 (note_mouse_highlight): Allocate room for 40 overlays initially.
10012
10013 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
10014
10015 * data.c (Fsubr_name): New fun.
10016 (syms_of_data): Defsubr it.
10017
10018 2004-04-29 Kim F. Storm <storm@cua.dk>
10019
10020 * xdisp.c (null_glyph_slice): New var.
10021 (append_glyph, append_composite_glyph, append_stretch_glyph):
10022 Use it to initialize glyph slice.
10023
10024 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
10025
10026 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
10027 (on_hot_spot_p): Make sure we always return a value.
10028 (Flookup_image_map): Remove unused var ix and iy.
10029 (note_mode_line_or_margin_highlight): Remove unused var `image'.
10030
10031 2004-04-27 Eli Zaretskii <eliz@gnu.org>
10032
10033 * msdos.c (init_environment): If one of the TMP... environment
10034 variables is set to a drive letter without a trailing slash,
10035 append a slash.
10036
10037 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
10038
10039 * editfns.c (lisp_time_argument): Provide externally.
10040
10041 * fileio.c (Fset_file_times): New function.
10042 (syms_of_fileio): Intern and staticpro it.
10043
10044 2004-04-27 Kim F. Storm <storm@cua.dk>
10045
10046 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
10047 header line strings.
10048
10049 * dispextern.h (struct it): New member use_default_face.
10050
10051 * xdisp.c (Qline_height): New variable.
10052 (syms_of_xdisp): Intern and staticpro it.
10053 (append_space_for_newline): Partially undo 2004-04-25 change;
10054 add default_face_p arg, and restore callers.
10055 Clear it->use_default_face after use.
10056 (x_produce_glyphs): Set default font for ascii char if
10057 it->use_default_font is set. Change line-spacing property to set
10058 just extra line spacing. Handle new line-height property.
10059
10060 2004-04-26 Andreas Schwab <schwab@suse.de>
10061
10062 * print.c (print_object): Print non-ascii characters in bool
10063 vector representation as octal escapes.
10064
10065 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
10066 * print.c (print_object): Use it instead of BITS_PER_CHAR for
10067 bool vectors.
10068 * lread.c (read1): Likewise.
10069 * alloc.c (Fmake_bool_vector): Likewise.
10070 * data.c (Faref, Faset): Likewise.
10071 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
10072 (mapcar1): Likewise.
10073
10074 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
10075
10076 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
10077
10078 2004-04-26 Miles Bader <miles@gnu.org>
10079
10080 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
10081
10082 2004-04-26 Juanma Barranquero <lektu@terra.es>
10083
10084 * buffer.c (Fpop_to_buffer): Fix docstring.
10085
10086 2004-04-26 Steven Tamm <steventamm@mac.com>
10087
10088 * lread.c (init_lread): Don't display missing lisp directory
10089 warnings with Carbon Emacs because self-contained bundled Emacs
10090 may be built without correct installation path.
10091
10092 2004-04-25 Kim F. Storm <storm@cua.dk>
10093
10094 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
10095
10096 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
10097
10098 * xdisp.c (append_space_for_newline): Rename from append_space.
10099 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
10100 (x_produce_glyphs): Handle line-spacing property on newline char.
10101 If value is t, adjust ascent and descent to fit current row height.
10102 If value is an integer or float, set extra_line_spacing to integer
10103 value, or to float value x current line height.
10104
10105 2004-04-23 Kenichi Handa <handa@m17n.org>
10106
10107 * fontset.c (Finternal_char_font): If POSITION is nil, return
10108 font for displaying CH with the default face.
10109
10110 2004-04-23 Juanma Barranquero <lektu@terra.es>
10111
10112 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
10113
10114 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10115
10116 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
10117 Don't make assumptions about the relative place of i and val.
10118 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
10119
10120 2004-04-21 Kim F. Storm <storm@cua.dk>
10121
10122 * dispextern.h (struct glyph_slice): New struct.
10123 (struct glyph): New member slice.
10124 (GLYPH_SLICE_EQUAL_P): New macro.
10125 (GLYPH_EQUAL_P): Use it.
10126 (struct glyph_string): New member slice.
10127 (struct it_slice): New struct.
10128 (struct it): New member slice, add member to stack too.
10129 New member constrain_row_ascent_descent_p.
10130 (image_ascent): Add prototype.
10131
10132 * dispnew.c (buffer_posn_from_coords): Return full image width
10133 and height even for image slices (posn is relative to full image).
10134 (marginal_area_string): Adjust x0,y0 for image slice.
10135
10136 * image.c (image_ascent): Add slice arg; calculate ascent for
10137 image slice (or full image).
10138
10139 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
10140 (syms_of_keyboard): Defsubr them.
10141
10142 * lisp.h (pos_visible_p): Fix prototype.
10143
10144 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
10145 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10146 (x_draw_image_foreground, x_draw_image_relief)
10147 (x_draw_image_foreground_1, x_draw_image_glyph_string):
10148 Draw sliced images.
10149
10150 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
10151 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10152 (x_draw_image_foreground, x_draw_image_relief)
10153 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
10154 Draw sliced images.
10155
10156 * w32term.h (image_ascent): Remove prototype.
10157
10158 * window.c (Fpos_visible_in_window_p): Return pixel position if
10159 PARTIALLY arg is non-nil. Simplify. Doc fix.
10160 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
10161 to return/set vscroll in pixels.
10162
10163 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
10164
10165 * xdisp.c (Qslice): New variable.
10166 (syms_of_xdisp): Intern and staticpro it.
10167 (pos_visible_p): Return pixel position in new x and y args.
10168 (init_iterator): Reset it->slice info.
10169 (handle_display_prop): Parse (slice ...) property.
10170 (push_it, pop_it): Save/restore slice info.
10171 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
10172 force repositioning of tall row if window is vscrolled, as that
10173 would reset vscroll.
10174 (append_space): Set it->constrain_row_ascent_descent_p to avoid
10175 increasing row height if row is non-empty.
10176 (fill_image_glyph_string): Copy slice info.
10177 (take_vertical_position_into_account): Simplify.
10178 (produce_image_glyph): Handle iterator slice info, setup glyph
10179 slice info. Do not force minimum line height.
10180 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
10181 do not increase height (ascent/descent) of non-empty row when
10182 adding normal character glyph; instead reduce glyph ascent/descent
10183 appropriately; if row is higher than current glyph, adjust glyph
10184 descent/ascent to reposition glyph within the existing row.
10185 Likewise, when char is newline, only set ascent/descent if row is
10186 currently empty.
10187 (note_mouse_highlight): Handle hotspots with sliced image.
10188
10189 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
10190 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
10191 (x_draw_image_foreground, x_draw_image_relief)
10192 (x_draw_image_foreground_1, x_draw_image_glyph_string):
10193 Draw sliced images.
10194
10195 * xterm.h (image_ascent): Remove prototype.
10196
10197 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
10198
10199 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
10200
10201 2004-04-20 John Paul Wallington <jpw@gnu.org>
10202
10203 * fns.c (Fassoc, Feql): Fix indentation.
10204
10205 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
10206
10207 2004-04-19 John Paul Wallington <jpw@gnu.org>
10208
10209 * fns.c (Feql): New function.
10210 (syms_of_fns): Defsubr it.
10211
10212 2004-04-18 Jason Rumney <jasonr@gnu.org>
10213
10214 * w32select.c (Fw32_set_clipboard_data): Get sequence number
10215 after closing the clipboard.
10216
10217 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
10218
10219 * buffer.c (Fbuffer_base_buffer): Doc fix.
10220
10221 2004-04-17 Kim F. Storm <storm@cua.dk>
10222
10223 * keymap.c (Fkey_description): Add optional PREFIX arg.
10224 Combine prefix with KEYS to make up the full key sequence to describe.
10225 Correlate meta_prefix_char and following (simple) key to describe
10226 as meta modifier. All callers changed.
10227 (describe_map): Rename arg `keys' to `prefix'. Remove local
10228 `elt_prefix' var. Use Fkey_description with prefix instead of
10229 elt_prefix combined with Fsingle_key_description.
10230 (describe_vector): Declare static. Replace arg `elt_prefix' with
10231 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
10232 if !KEYMAP_P. Use Fkey_description with prefix instead of
10233 Fsingle_key_description.
10234
10235 * keymap.h (Fkey_description): Fix prototype.
10236 (describe_vector): Remove prototype.
10237
10238 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
10239
10240 * image.c (PNG_BG_COLOR_SHIFT): Remove.
10241 (png_load): Fix calculation of transparent background color on X
10242 and W32 platforms.
10243
10244 2004-04-16 Juanma Barranquero <lektu@terra.es>
10245
10246 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
10247 not too large before computing how much to scroll.
10248
10249 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
10250
10251 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
10252
10253 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
10254
10255 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
10256 Add hyperlink to Elisp manual to the docstring.
10257
10258 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
10259
10260 * callint.c (fix_command): Use XDCR.
10261
10262 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
10263
10264 * window.c (Fget_lru_window): Doc fix.
10265
10266 2004-04-14 Kim F. Storm <storm@cua.dk>
10267
10268 * editfns.c (Fformat): Fix allocation size of precision array.
10269
10270 * dispnew.c (update_window): Only set changed_p if
10271 scrolling_window actually did scroll.
10272 (scrolling_window): Only return 1 if we actually did scroll.
10273
10274 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
10275 height to glyph height when cursor row is not fully visible.
10276 (make_cursor_line_fully_visible): Add FORCE_P arg to return
10277 failure in case row is higher than window. Callers changed.
10278 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
10279 Try to scroll partially visible, higher-than-window cursor row.
10280 (redisplay_window): Always try to scroll partially visible,
10281 higher-than-window cursor row - both initially and again with
10282 centering_position = 0.
10283 Clear desired matrix before retrying with centering_position = 0.
10284
10285 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10286
10287 * syntax.c (scan_lists): Simplify backward string scan.
10288 Fix off-by-one boundary check for string and comment fences.
10289
10290 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
10291
10292 * sheap.c, unexcw.c: New files.
10293
10294 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
10295
10296 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
10297 base buffer has been killed. Correct the error message if the
10298 base buffer does not exist.
10299
10300 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
10301
10302 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
10303 Cygwin itself. Add support for Xaw3d scrollbars.
10304
10305 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
10306
10307 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
10308
10309 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
10310 before Cygwin unexec.
10311
10312 * Makefile.in: Link changes for Cygwin unexec() support.
10313
10314 2004-04-12 Andreas Schwab <schwab@suse.de>
10315
10316 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
10317
10318 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
10319
10320 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
10321 IGNORE argument equals NAME. Doc fix.
10322
10323 2004-04-11 Masatake YAMATO <jet@gyve.org>
10324
10325 * buffer.c (fix_start_end_in_overlays): Make overlays
10326 empty if they are backwards.
10327
10328 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10329
10330 * xfaces.c (face_color_supported_p): Fix compilation without X11.
10331
10332 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
10333
10334 * doc.c (Fsnarf_documentation): Ignore new file name entries.
10335
10336 2004-04-06 Kim F. Storm <storm@cua.dk>
10337
10338 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
10339 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
10340
10341 * w32term.c (w32_read_socket): Set mouse_face_hidden after
10342 clearing highlight.
10343
10344 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
10345
10346 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
10347 clearing highlight.
10348
10349 * indent.c (vmotion): Do not reserve one column for continuation
10350 marks on window frames.
10351
10352 2004-04-04 Eli Zaretskii <eliz@gnu.org>
10353
10354 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
10355 from GCC.
10356
10357 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10358
10359 * .gdbinit-union: Remove.
10360
10361 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
10362 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
10363 ($nonvalbits): Remove.
10364 ($valmask): Set it by calling xreload to avoid redundancy.
10365
10366 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
10367 (gdb_emacs_intbits): Remove.
10368
10369 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10370
10371 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
10372
10373 2004-03-30 Kenichi Handa <handa@m17n.org>
10374
10375 * editfns.c (Fformat): Fix initialization of the array info.
10376
10377 2004-03-30 Kim F. Storm <storm@cua.dk>
10378
10379 * xterm.c (x_mouse_click_focus_ignore_position): New var.
10380 (syms_of_xterm): DEFVAR_BOOL it.
10381 (ignore_next_mouse_click_timeout): New var.
10382 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
10383 Use it to filter mouse clicks following focus event.
10384
10385 2004-03-29 David Ponce <david@dponce.com>
10386
10387 * callint.c (Fcall_interactively): Fix last change.
10388
10389 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10390
10391 * eval.c (Fcommandp): Simplify.
10392
10393 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
10394 Extend to handle all kinds of functions.
10395
10396 * lisp.h (Finteractive_form): Declare.
10397
10398 * callint.c (Fcall_interactively): Use it.
10399
10400 2004-03-26 Kim F. Storm <storm@cua.dk>
10401
10402 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
10403 to catch errors in calc_pixel_width_or_height during redisplay.
10404
10405 2004-03-26 Masatake YAMATO <jet@gyve.org>
10406
10407 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
10408
10409 * lisp.h (fix_start_end_in_overlays): Likewise.
10410
10411 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
10412
10413 * editfns.c (Ftranspose_regions): Likewise.
10414
10415 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10416
10417 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
10418
10419 2004-03-19 Richard M. Stallman <rms@gnu.org>
10420
10421 * s/sol2-6.h: Delete previous change.
10422
10423 2004-03-19 Kim F. Storm <storm@cua.dk>
10424
10425 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
10426 to_charpos corresponds to newline in right fringe. Use local
10427 BUFFER_POS_REACHED_P macro.
10428
10429 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10430
10431 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
10432 to compile on non-window system.
10433
10434 2004-03-19 Kim F. Storm <storm@cua.dk>
10435
10436 * dispextern.h (calc_pixel_width_or_height): Add prototype.
10437
10438 * image.c (Qcenter): Move to xdisp.c.
10439
10440 * xdisp.c (Qcenter): Declare here.
10441 (syms_of_xdisp): Intern and staticpro it.
10442 (handle_single_display_prop): Allow space display property on all
10443 platforms.
10444 (display_mode_line): Set mode_line_p before displaying line.
10445 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
10446 handling. Remove complex cases for fringes and scroll-bars.
10447 Add left, right, and center alignment positions. Add text (area)
10448 width/height. Return width or height for image specs.
10449 (produce_stretch_glyph): Improve handling of :align-to. Is now
10450 relative to left of text area by default, but other base offsets
10451 can be specified -- also for text lines.
10452
10453 * term.c (produce_glyphs): Handle IT_STRETCH.
10454 (produce_stretch_glyph): New function to handle space width and
10455 align-to display properties on non-window systems.
10456
10457 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10458
10459 * fileio.c (Fread_file_name): Set completion-ignore-case for
10460 case-insensitive systems.
10461
10462 2004-03-14 Masatake YAMATO <jet@gyve.org>
10463
10464 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
10465 when keymap and cursor are setup.
10466
10467 2004-03-14 Steven Tamm <steventamm@mac.com>
10468
10469 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
10470
10471 2004-03-14 Kim F. Storm <storm@cua.dk>
10472
10473 * dispextern.h (x_find_image_file): Add prototype.
10474
10475 * image.c (x_find_image_file): Make extern.
10476
10477 * xfns.c (x_find_image_file): Remove prototype.
10478
10479 2004-03-13 Eli Zaretskii <eliz@gnu.org>
10480
10481 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
10482
10483 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
10484
10485 2004-03-12 Richard M. Stallman <rms@gnu.org>
10486
10487 * fns.c (internal_equal): New arg PROPS controls comparing
10488 text properties. All callers changed.
10489 (Fequal_including_properties): New function.
10490 (syms_of_fns): defsubr it.
10491
10492 2004-03-12 Kim F. Storm <storm@cua.dk>
10493
10494 Fix image support on MAC. From YAMAMOTO Mitsuharu.
10495
10496 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
10497 (image_background, image_background_transparent): Fix prototypes.
10498
10499 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
10500
10501 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
10502 (x_query_font, x_find_ccl_program, x_set_window_size)
10503 (x_make_frame_visible, mac_initialize, XCreatePixmap)
10504 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
10505 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
10506
10507 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
10508 (x_query_font, x_find_ccl_program, x_set_window_size)
10509 (x_make_frame_visible, mac_initialize, XCreatePixmap)
10510 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
10511 (mac_draw_line_to_pixmap): Add prototypes.
10512
10513 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10514
10515 * macterm.c (XTread_socket): Fix mouse click on tool bar.
10516
10517 2004-03-11 Kim F. Storm <storm@cua.dk>
10518
10519 * dispextern.h: Move image related prototypes from xfns.c section
10520 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
10521 HAVE_X_WINDOWS.
10522
10523 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
10524 Move gtkutil.o to new GTK_OBJ list.
10525 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
10526 (GTK_OBJ) [USE_GTK]: New declaration.
10527 (obj): Add $(GTK_OBJ) to list.
10528
10529 2004-03-11 Steven Tamm <steventamm@mac.com>
10530
10531 * image.c [MAC_OSX]: Include sys/stat.h.
10532
10533 * macfns.c (syms_of_macfns): Remove definitions of things now
10534 defined in image.c.
10535
10536 2004-03-11 Kim F. Storm <storm@cua.dk>
10537
10538 The following changes consolidates the identical/similar image
10539 support code previously found in xfns.c, w32fns.c, and macfns.c
10540 into a new file image.c.
10541
10542 * makefile.w32-in (OBJ1): Add image.o.
10543 ($(BLD)/image.$(O)): Add dependencies.
10544
10545 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
10546 (image.o): Add dependencies.
10547
10548 * image.c: New file with consolidated image support code.
10549 (COLOR_TABLE_SUPPORT): New define to control whether
10550 color table support is available (X only).
10551 (Bitmap_Record): Common name for x_bitmap_record,
10552 w32_bitmap_record, and mac_bitmap_record.
10553 (XImagePtr): Common name for pointer to XImage or equivalent.
10554 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
10555 to XImagePtr on X+MAC, and to HDC on W32.
10556 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
10557 (NO_PIXMAP): Common name for "None" or equivalent.
10558 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
10559 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
10560 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
10561 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
10562 Define with suitable equivalents on W32 and MAC for code sharing.
10563 (XDrawLine): Define on MAC for code sharing.
10564 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
10565 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
10566 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10567 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10568 (x_reference_bitmap, x_create_bitmap_from_data)
10569 (x_create_bitmap_from_file, x_destroy_bitmap)
10570 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10571 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10572 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10573 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10574 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10575 (define_image_type, lookup_image_type, valid_image_p)
10576 (image_error, enum image_value_type, struct image_keyword)
10577 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10578 (make_image, free_image, prepare_image_for_display, image_ascent)
10579 (four_corners_best, image_background, image_background_transparent)
10580 (x_clear_image_1, x_clear_image, x_alloc_image_color)
10581 (make_image_cache, free_image_cache, clear_image_cache)
10582 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10583 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10584 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10585 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
10586 (init_image_func_pointer, image_load_quartz2d)
10587 (struct ct_color, init_color_table, free_color_table)
10588 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10589 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10590 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10591 (x_disable_image, x_build_heuristic_mask)
10592 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10593 (TIFF support, GIF support, Ghostscript support): Consolidate image
10594 code from xfns.c, w32fns.c, and macfns.c.
10595 (syms_of_image): Consolidate image related symbol setup here.
10596 (init_image): Consolidate image related initializations here.
10597
10598 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
10599 and init_image. Remove call to init_xfns.
10600
10601 * macterm.h (struct mac_bitmap_record): Add file member.
10602 Not currently used, but simplifies code sharing.
10603
10604 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10605 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10606 (x_reference_bitmap, x_create_bitmap_from_data)
10607 (x_create_bitmap_from_file, x_destroy_bitmap)
10608 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10609 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10610 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10611 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10612 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10613 (define_image_type, lookup_image_type, valid_image_p)
10614 (image_error, enum image_value_type, struct image_keyword)
10615 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10616 (make_image, free_image, prepare_image_for_display, image_ascent)
10617 (four_corners_best, image_background, image_background_transparent)
10618 (x_clear_image_1, x_clear_image, x_alloc_image_color)
10619 (make_image_cache, free_image_cache, clear_image_cache)
10620 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10621 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10622 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10623 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
10624 (init_image_func_pointer, image_load_quartz2d)
10625 (struct ct_color, init_color_table, free_color_table)
10626 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10627 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10628 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10629 (x_disable_image, x_build_heuristic_mask)
10630 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10631 (TIFF support, GIF support, Ghostscript support): Merge with image
10632 code from xfns.c and macfns.c into image.c.
10633 (syms_of_xfns): Move image related symbols to image.c.
10634 (init_external_image_libraries, init_xfns): Remove; initialization
10635 moved to init_image in image.c.
10636
10637 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10638 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10639 (x_reference_bitmap, x_create_bitmap_from_data)
10640 (x_create_bitmap_from_file, x_destroy_bitmap)
10641 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10642 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10643 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10644 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10645 (define_image_type, lookup_image_type, valid_image_p)
10646 (image_error, enum image_value_type, struct image_keyword)
10647 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10648 (make_image, free_image, prepare_image_for_display, image_ascent)
10649 (four_corners_best, image_background, image_background_transparent)
10650 (x_clear_image_1, x_clear_image, x_alloc_image_color)
10651 (make_image_cache, free_image_cache, clear_image_cache)
10652 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10653 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10654 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10655 (struct ct_color, init_color_table, free_color_table)
10656 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10657 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10658 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10659 (x_disable_image, x_build_heuristic_mask)
10660 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10661 (TIFF support, GIF support, Ghostscript support): Merge with image
10662 code from xfns.c and macfns.c into image.c.
10663 (syms_of_xfns): Move image related symbols to image.c.
10664 (init_external_image_libraries, init_xfns): Remove; initialization
10665 moved to init_image in image.c.
10666
10667 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
10668 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10669 (x_reference_bitmap, x_create_bitmap_from_data)
10670 (x_create_bitmap_from_file, x_destroy_bitmap)
10671 (x_destroy_all_bitmaps, x_create_bitmap_mask)
10672 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
10673 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
10674 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
10675 (define_image_type, lookup_image_type, valid_image_p)
10676 (image_error, enum image_value_type, struct image_keyword)
10677 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
10678 (make_image, free_image, prepare_image_for_display, image_ascent)
10679 (four_corners_best, image_background, image_background_transparent)
10680 (x_clear_image_1, x_clear_image, x_alloc_image_color)
10681 (make_image_cache, free_image_cache, clear_image_cache)
10682 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
10683 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
10684 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
10685 (struct ct_color, init_color_table, free_color_table)
10686 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
10687 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
10688 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
10689 (x_disable_image, x_build_heuristic_mask)
10690 (XBM support, XPM support, PBM support, PNG support, JPEG support)
10691 (TIFF support, GIF support, Ghostscript support): Merge with
10692 w32fns.c and macfns.c image code into image.c.
10693 (syms_of_xfns): Move image related symbols to image.c.
10694 (init_xfns): Remove; initialization moved to init_image in image.c.
10695
10696 * lisp.h (syms_of_image, init_image): Add protoypes.
10697 (init_xfns): Remove prototype.
10698
10699 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10700 (x_reference_bitmap, x_create_bitmap_from_data)
10701 (x_create_bitmap_from_file, x_destroy_bitmap)
10702 (x_create_bitmap_mask): Move prototypes from dispextern.h.
10703 (gamma_correct) [MAC_OS]: Add prototype.
10704
10705 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
10706 (x_reference_bitmap, x_create_bitmap_from_data)
10707 (x_create_bitmap_from_file, x_destroy_bitmap)
10708 (x_create_bitmap_mask): Move prototypes to dispextern.h.
10709
10710 2004-03-09 Kenichi Handa <handa@etlken2>
10711
10712 * coding.c (decode_coding_emacs_mule): Handle insufficent source
10713 correctly.
10714
10715 2004-03-04 Richard M. Stallman <rms@gnu.org>
10716
10717 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
10718
10719 * window.c (Fdisplay_buffer): Doc fix.
10720
10721 * buffer.c (Fpop_to_buffer): Doc fix.
10722
10723 2004-03-03 Kim F. Storm <storm@cua.dk>
10724
10725 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
10726
10727 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
10728
10729 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
10730
10731 2004-03-02 Richard M. Stallman <rms@gnu.org>
10732
10733 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
10734
10735 2004-03-02 Kenichi Handa <handa@m17n.org>
10736
10737 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
10738
10739 2004-03-02 Kim F. Storm <storm@cua.dk>
10740
10741 * window.h (struct window): New member overlay_arrow_bitmap.
10742
10743 * window.c (make_window): Initialize overlay_arrow_bitmap.
10744
10745 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
10746 implement and integrate multiple overlay arrows with redisplay.
10747 (syms_of_xdisp): DEFVAR_LISP and initialize it.
10748 (last_arrow_position, last_arrow_string): Replace by properties.
10749 (Qlast_arrow_position, Qlast_arrow_string)
10750 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
10751 (syms_of_xdisp): Intern and staticpro them.
10752 (overlay_arrow_string_or_property, update_overlay_arrows)
10753 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
10754 (overlay_arrow_at_row): New functions for multiple overlay arrows.
10755 (redisplay_internal): Use them instead of directly accessing
10756 Voverlay_arrow_position etc. for multiple overlay arrows.
10757 (mark_window_display_accurate): Use update_overlay_arrows.
10758 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
10759 (try_window_id): Use overlay_arrows_changed_p.
10760 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
10761 (display_line): Use overlay_arrow_at_row to check multiple
10762 overlay arrows, and get relevant overlay-arrow-string and
10763 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
10764 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
10765 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
10766
10767 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
10768 (update_window_fringes): Remove unused code.
10769
10770 2004-03-01 Jason Rumney <jasonr@gnu.org>
10771
10772 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
10773
10774 2004-03-01 Juanma Barranquero <lektu@terra.es>
10775
10776 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
10777
10778 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
10779
10780 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10781
10782 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
10783 how many colors can be displayed.
10784
10785 2004-03-01 Kenichi Handa <handa@m17n.org>
10786
10787 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
10788 correctly.
10789
10790 2004-02-28 Kim F. Storm <storm@cua.dk>
10791
10792 * dispnew.c (update_window): Update header line also if there are
10793 no other changes in window (move code after set_cursor label).
10794
10795 * lisp.h (mark_window_display_accurate): Remove prototype.
10796
10797 * window.c (window_loop, Fforce_window_update): Force mode line
10798 updates by setting prevent_redisplay_optimizations_p and
10799 update_mode_lines.
10800
10801 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10802
10803 * xfns.c (x_window): Fix indentation.
10804
10805 * xterm.c (x_calc_absolute_position): Call x_real_positions
10806 to get WM window sizes and use those to calculate position.
10807 (x_set_offset): Remove code commented out.
10808
10809 2004-02-28 Miles Bader <miles@gnu.org>
10810
10811 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
10812
10813 2004-02-28 Kim F. Storm <storm@cua.dk>
10814
10815 * keyboard.c (kbd_buffer_store_event_hold): New function to store
10816 an event into kbd fifo, but with special handling of quit event;
10817 a quit event is saved for later, and further events are discarded
10818 until the saved quit event has been processed.
10819 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
10820 (gen_help_event): Store help event in kbd fifo.
10821 (NREAD_INPUT_EVENTS): Remove.
10822 (read_avail_input): Adapt to new read_socket_hook interface.
10823 Remove allocation and initialization of local input_event buffer,
10824 as read_socket_hook stores events directly in fifo. Allocate and
10825 initialize local hold_quit event to handle postponed quit event
10826 (and store it if set by kbd_buffer_store_event_hold).
10827
10828 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
10829 (gen_help_event): Fix prototype.
10830
10831 * macterm.c (XTread_socket): Remove bufp_r and
10832 numcharsp args. Add hold_quit arg.
10833 Rework to use just one, local, inev input_event. Store inev
10834 directly in fifo using kbd_buffer_store_event_hold.
10835
10836 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
10837 (read_input_waiting): Adapt to new read_socket_hook interface.
10838 Remove allocation and initialization of local input_event buffer,
10839 as read_socket_hook stores events directly in fifo. Allocate and
10840 initialize local hold_quit event to handle postponed quit event
10841 (and store it if set by kbd_buffer_store_event_hold).
10842
10843 * term.c (read_socket_hook): Fix arg list.
10844
10845 * termhooks.h (read_socket_hook): Fix prototype.
10846
10847 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
10848 numcharsp args. Add hold_quit arg.
10849 Rework to use just one, local, inev input_event. Store inev
10850 directly in fifo using kbd_buffer_store_event_hold.
10851
10852 * w32inevt.h (w32_console_mouse_position): Fix prototype.
10853
10854 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
10855 Add hold_quit arg. Rework to use just one, local, inev
10856 input_event. Store inev directly in fifo using
10857 kbd_buffer_store_event_hold. Update count in one place.
10858 Postpone call to gen_help_event until inev is stored; use new
10859 local do_help for this.
10860 Remove local emacs_event in handing of ButtonPress event; just use
10861 inev instead (so no reason to copy it later).
10862
10863 * xsmfns.c (x_session_check_input): Remove numchars arg.
10864
10865 * xterm.c (x_focus_changed, x_detect_focus_change):
10866 Remove numchars arg. Always store event into bufp arg.
10867 Return nothing. Callers changed accordingly.
10868 (glyph_rect): Simplify.
10869 (STORE_KEYSYM_FOR_DEBUG): New macro.
10870 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
10871 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
10872 (current_hold_quit) [USE_GTK]: Add.
10873 (event_handler_gdk): Adapt to new handle_one_xevent.
10874 (handle_one_xevent): Remove bufp_r and numcharsp args.
10875 Add hold_quit arg. Rework to use just one, local, inev
10876 input_event. Store inev directly in fifo using
10877 kbd_buffer_store_event_hold. Update count in one place.
10878 Postpone call to gen_help_event until inev is stored; use new
10879 local do_help for this.
10880 Simplify handling of keysyms (consolidate common code). Fix bug
10881 where count was updated with nchars instead of nbytes.
10882 Remove local emacs_event in handing of ButtonPress event; just use
10883 inev instead (so no reason to copy it later).
10884 Remove `out' label. Rename label `ret' to `done'; add various
10885 `goto done' to clarify code flow in deeply nested blocks.
10886 (x_dispatch_event): Simplify as handle_one_xevent now calls
10887 kbd_buffer_store_event itself.
10888 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
10889 arg. Call handle_one_xevent with new arglist. Store event from
10890 x_session_check_input in fifo.
10891 [USE_GTK]: Setup current_hold_quit.
10892 Decrement handling_signal before unblocking input.
10893 (x_initialize) [USE_GTK]: Initialize current_count.
10894
10895 * xterm.h (x_session_check_input): Fix prototype.
10896
10897 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10898
10899 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
10900
10901 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
10902 macgui.h).
10903
10904 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
10905
10906 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
10907 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
10908 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
10909 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
10910 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
10911 (Bitmap): Remove typedef.
10912 (Pixmap): Change int to GWorldPtr.
10913
10914 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
10915
10916 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
10917 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
10918 New #define to extract 16-bit depth color components from unsigned
10919 long representation.
10920 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
10921 colors used for masks.
10922 (struct mac_display_info): Add color_p. Remove n_cbits.
10923
10924 * macfns.c: Include sys/types.h and sys/stat.h.
10925 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
10926 Include QuickTime/QuickTime.h.
10927 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10928 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
10929 functions defined in macterm.c.
10930 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
10931 (ZPixmap): New #define for compatibility with xfns.c.
10932 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10933 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10934 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
10935 New functions.
10936 (four_corners_best, x_create_x_image_and_pixmap)
10937 (x_destroy_x_image, unwind_create_frame, x_disable_image)
10938 (x_edge_detection, init_color_table, colors_in_color_table)
10939 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
10940 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
10941 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
10942 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
10943 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
10944 long mixup.
10945 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
10946 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
10947 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
10948 (x_set_cursor_type, Fxw_color_values, valid_image_p)
10949 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
10950 (x_alloc_image_color, clear_image_cache, lookup_image)
10951 (x_find_image_file, xbm_read_bitmap_file_data)
10952 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
10953 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
10954 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
10955 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
10956 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
10957 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
10958 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
10959 #if 0.
10960 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
10961 #if 0. Free white_relief.gc and black_relief.gc.
10962 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
10963 New functions (from xfns.c).
10964 (Fx_create_frame): Record unwind_create_frame.
10965 (Fxw_display_color_p): Use dpyinfo->color_p.
10966 (Fx_display_grayscale_p, Fx_display_planes): Don't use
10967 dpyinfo->n_cbits.
10968 (Fx_display_color_cells): Use dpyinfo->n_planes;
10969 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
10970 (Qheuristic, cross_disabled_images, emboss_matrix)
10971 (laplace_matrix): New variables (from xfns.c).
10972 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
10973 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
10974 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
10975 (image_background_transparent): New function (from xfns.c).
10976 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10977 (image_load_quicktime): Add declaration.
10978 [MAC_OSX] (image_load_quartz2d): Likewise.
10979 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
10980 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
10981 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
10982 (xbm_load_image_from_file, x_laplace_read_row)
10983 (x_laplace_write_row, pbm_read_file): Remove functions.
10984 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
10985 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
10986 (colors_in_color_table): Sync with xfns.c (although not used).
10987 (lookup_rgb_color): Don't lookup color table. Just do gamma
10988 correction.
10989 (COLOR_INTENSITY): New #define (from xfns.c).
10990 (x_disable_image): New function (from xfns.c).
10991 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10992 (x_build_heuristic_mask): Sync with xfns.c.
10993 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
10994 (HAVE_PBM): Remove #ifdef.
10995 (pbm_load): Sync with xfns.c. Set img->width and img->height
10996 before IMAGE_BACKGROUND.
10997 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
10998 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
10999 Don't enclose with #if HAVE_PNG.
11000 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
11001 symbol _CGImageCreateWithPNGDataProvider is defined.
11002 Otherwise use image_load_quicktime.
11003 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
11004 [HAVE_PNG] (png_load): Sync with xfns.c.
11005 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
11006 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
11007 HAVE_JPEG.
11008 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
11009 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
11010 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
11011 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
11012 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
11013 (tiff_image_p, tiff_load): Don't enclose declarations with #if
11014 HAVE_TIFF.
11015 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
11016 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
11017 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
11018 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
11019 New functions (from xfns.c).
11020 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
11021 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
11022 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
11023 Don't enclose with #if HAVE_GIF.
11024 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
11025 animated gif. Otherwise use image_load_quicktime.
11026 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
11027 gif_DrawText to avoid conflict with QuickdrawText.h.
11028 [HAVE_GIF] (gif_load): Sync with xfns.c.
11029 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
11030 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
11031 Ghostscript is not supported yet).
11032 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
11033 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
11034 cross_disabled_images (from xfns.c). Remove #if 0 for supported
11035 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
11036 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
11037 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
11038 HAVE_PNG. Call EnterMovies to support animated gifs.
11039 Call init_image_func_pointer to bind a symbol
11040 _CGImageCreateWithPNGDataProvider if it is defined.
11041
11042 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
11043 (x_draw_bar_cursor): Sync declaration with xterm.c.
11044 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
11045 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
11046 graphics).
11047 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
11048 (mac_draw_line_to_pixmap, XCreatePixmap)
11049 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
11050 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
11051 New functions.
11052 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
11053 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
11054 Cast bits to char *.
11055 (reflect_byte): New function (from w32fns.c).
11056 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
11057 due to byte alignment.
11058 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
11059 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
11060 (XSetForeground): Remove static (now used in macfns.c).
11061 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
11062 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
11063 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
11064 (x_draw_glyph_string_box, x_draw_image_foreground)
11065 (x_draw_image_foreground_1, x_draw_image_glyph_string)
11066 (x_draw_stretch_glyph_string, x_draw_glyph_string)
11067 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
11068 Sync with xterm.c.
11069 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
11070 than the xterm.c version when a strictly horizontal or vertical
11071 line is drawn.
11072 (XTset_terminal_window): Add static.
11073 (x_make_frame_visible): Add UNBLOCK_INPUT.
11074 (x_free_frame_resources): New funcion (from xterm.c).
11075 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
11076 occurs in tool bar area.
11077 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
11078 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
11079 Initialize image cache.
11080 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
11081 Enclose unused functions with #if 0.
11082 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
11083 (decode_mac_font_name): New function to apply code conversions
11084 from a mac font name to an XLFD font name according to its script code.
11085 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
11086 font name to a mac font name according to REGISTRY and ENCODING fields.
11087 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
11088 whose name starts with `.'.
11089 (init_font_name_table): Use decode_mac_font_name. Add both
11090 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
11091 of a font is smJapanese.
11092 (mac_do_list_fonts): New function to list fonts that match a given
11093 pattern.
11094 (x_list_fonts, XLoadQueryFont): Use it.
11095 (XLoadQueryFont): Set rbearing field for each variable width
11096 character to avoid needless redraw.
11097 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
11098
11099 2004-02-26 Kim F. Storm <storm@cua.dk>
11100
11101 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
11102 as read_socket_hook handler on X aborts if buffer is too small
11103 and W32 handler doesn't always check buffer limit.
11104
11105 * xdisp.c (handle_single_display_prop): Handle left-fringe and
11106 right-fringe similar to a display margin image. Specifically,
11107 the characters having the fringe prop are no longer shown, and
11108 we use IT_IMAGE/next_element_from_image with image_id = -1 to
11109 do this. Set fringe bitmap face_id in it->face_id.
11110 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
11111 still realize it->face (i.e. the fringe bitmap face).
11112
11113 2004-02-25 Miles Bader <miles@gnu.org>
11114
11115 * xdisp.c (check_it): Check string/string_pos consistency.
11116 (init_iterator): Initialize string-related fields properly.
11117
11118 2004-02-11 Miles Bader <miles@gnu.org>
11119
11120 * xdisp.c (produce_image_glyph): Force negative descents to zero.
11121
11122 2004-02-10 Miles Bader <miles@gnu.org>
11123
11124 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
11125 BLOCK_INPUT can be nested, so it doesn't make much sense.
11126
11127 2004-02-24 Michael Mauger <mmaug@yahoo.com>
11128
11129 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
11130 (xbm_read_bitmap_data): Use unsigned char for image data.
11131
11132 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
11133
11134 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
11135
11136 2004-02-22 Jason Rumney <jasonr@gnu.org>
11137
11138 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
11139 correctly over other bitmaps.
11140
11141 2004-02-21 Eli Zaretskii <eliz@gnu.org>
11142
11143 * emacs.c (USAGE1): Split into two halves.
11144 (USAGE2): Second half of the old USAGE1.
11145 (USAGE3): Rename from USAGE2.
11146 (USAGE4): Rename from USAGE3.
11147
11148 2004-02-21 Juri Linkov <juri@jurta.org>
11149
11150 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
11151 Fix --multibyte. Move --help, --version to USAGE2. Add alias
11152 --file. Fix -f, -l. Sort options. Untabify.
11153 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
11154
11155 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
11156
11157 * category.c (Fdefine_category, Fcategory_docstring)
11158 (Fget_unused_category, Fset_category_table)
11159 (Fcategory_set_mnemonics): Doc fixes.
11160
11161 2004-02-20 Kim F. Storm <storm@cua.dk>
11162
11163 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
11164 The following changes are relative to the 2004-01-21 revision.
11165 (NREAD_INPUT_EVENTS): Define as max number of input events to read
11166 in one call to read_socket_hook. Value is 8.
11167 (read_avail_input): Separate and rework handling of read_socket_hook
11168 and non-read_socket_hook cases. Use smaller input_event buffer
11169 in read_socket_hook case, and repeat if full buffer is read.
11170 Use new local variable 'discard' to skip input after C-g.
11171 In non-read_socket_hook case, just use a single input_event, and
11172 call kbd_buffer_store_event on the fly for each character.
11173
11174 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11175
11176 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
11177 Remove unused `gu' alternative.
11178
11179 2004-02-19 Andreas Schwab <schwab@suse.de>
11180
11181 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
11182 warning.
11183
11184 2004-02-18 Kim F. Storm <storm@cua.dk>
11185
11186 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
11187 Fix last change.
11188
11189 2004-02-17 Kim F. Storm <storm@cua.dk>
11190
11191 * xdisp.c (fast_find_position): Fix return value of new version;
11192 it was inverted compared to the 21.1 version.
11193 (get_window_cursor_type): Don't look at glyph if NULL.
11194 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
11195
11196 * keyboard.c: Rework previous change; it didn't consider that the
11197 buf array was allocated on the stack.
11198 (prev_read): Remove variable.
11199 (read_avail_input_buf): New static event buffer array.
11200 (in_read_avail_input): New static variable to handle re-entrancy.
11201 (read_avail_input): Change buf to pinter to read_avail_input_buf.
11202 Use in_read_avail_input to handle re-entrance; when re-entered,
11203 fully initialize and use tmp_buf array instead of read_avail_input_buf.
11204 Do not initialize read_avail_input_buf in full here; instead assume it
11205 is always cleared on entry. To ensure that, we clear (just) the
11206 entries that were used before we return.
11207 (init_keyboard): Initialize read_avail_input_buf here.
11208
11209 2004-02-16 Jesper Harder <harder@ifa.au.dk>
11210
11211 * cmds.c (Fend_of_line): Doc fix.
11212
11213 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
11214
11215 * keyboard.c (prev_read): New static variable.
11216 (read_avail_input): Use it to zero out only those slots in buf[]
11217 that were used last time we were called.
11218
11219 2004-02-16 Eli Zaretskii <eliz@gnu.org>
11220
11221 * Makefile.in (obj): Move fringe.o from here...
11222 (XOBJ, MAC_OBJ): ...to here.
11223
11224 2004-02-16 Stephen Eglen <stephen@gnu.org>
11225
11226 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
11227
11228 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
11229
11230 * data.c (Fbyteorder):
11231 * fringe.c (Fdefine_fringe_bitmap):
11232 * xdisp.c (handle_single_display_prop):
11233 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
11234
11235 2004-02-16 Jason Rumney <jasonr@gnu.org>
11236
11237 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
11238
11239 2004-02-15 Steven Tamm <steventamm@mac.com>
11240
11241 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
11242 controlling emulation of a three button mouse with option and
11243 command keys.
11244 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
11245 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
11246
11247 2004-02-15 Kim F. Storm <storm@cua.dk>
11248
11249 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
11250
11251 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
11252 Perform byte-swapping.
11253
11254 2004-02-14 Kim F. Storm <storm@cua.dk>
11255
11256 * dispextern.h (struct draw_fringe_bitmap_params): Change member
11257 bits from char to short to facilitate wider bitmaps.
11258 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
11259 member.
11260
11261 * fringe.c (struct fringe_bitmap): Change member bits from char to
11262 short to facilitate 16 bits wide bitmaps. Modify all standard
11263 bitmaps accordingly.
11264 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
11265 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
11266 (draw_fringe_bitmap): Ditto.
11267 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
11268 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
11269 handle up to 16 bits wide bitmaps.
11270 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
11271 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
11272
11273 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
11274 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
11275 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
11276
11277 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
11278 so it is no longer necessary to expand them here.
11279
11280 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
11281
11282 2004-02-12 Kim F. Storm <storm@cua.dk>
11283
11284 * window.c (Fwindow_fringes): Doc fix.
11285
11286 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11287
11288 * xselect.c (x_get_foreign_selection): Add new optional parameter
11289 time_stamp.
11290 (Fx_get_selection_internal): Ditto, pass time_stamp to
11291 x_get_foreign_selection.
11292
11293 * data.c (Fbyteorder): New function.
11294
11295 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11296
11297 * atimer.c: Move include stdio.h to same place as in other files.
11298
11299 * region-cache.c: Ditto.
11300
11301 * sysdep.c: Ditto.
11302
11303 * xfaces.c: Ditto.
11304
11305 2004-02-09 Sam Steingold <sds@gnu.org>
11306
11307 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
11308
11309 2004-02-09 Kim F. Storm <storm@cua.dk>
11310
11311 * fringe.c: New file. Move original fringe related declarations
11312 and code from dispextern.h and xdisp.c here.
11313 Rework code to support user defined fringe bitmaps, redefining
11314 standard bitmaps, ability to overlay user defined bitmap with
11315 overlay arrow bitmap, and add faces to bitmaps.
11316 (Voverflow_newline_into_fringe): Declare here.
11317 (enum fringe_bitmap_align): New enum.
11318 (..._bits): All bitmaps are now defined without bitswapping; that
11319 is now done in init_fringe_once (if necessary).
11320 (standard_bitmaps): New array with specifications for the
11321 standard fringe bitmaps.
11322 (fringe_faces): New array.
11323 (valid_fringe_bitmap_id_p): New function.
11324 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
11325 (draw_fringe_bitmap): New function which draws fringe bitmap,
11326 possibly overlaying bitmap with cursor in right fringe or the
11327 overlay arrow in the left fringe.
11328 (update_window_fringes): Do not handle overlay arrow here.
11329 Compare and copy fringe bitmap faces.
11330 (init_fringe_bitmap): New function.
11331 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
11332 define and destroy user defined fringe bitmaps.
11333 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
11334 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
11335 (syms_of_fringe): New function. Defsubr new DEFUNs.
11336 DEFVAR_LISP Voverflow_newline_into_fringe.
11337 (init_fringe_once, init_fringe): New functions.
11338 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
11339
11340 * Makefile.in (obj): Add fringe.o.
11341 (fringe.o): New dependencies.
11342
11343 * dispextern.h (FRINGE_ID_BITS): New definition for number of
11344 bits allocated to hold a fringe number. Increase number of bits
11345 from 4 to 8 to allow user defined fringe bitmaps.
11346 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
11347 left_user_fringe_face_id, right_user_fringe_bitmap,
11348 right_user_fringe_face_id.
11349 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
11350 Move to new file fringe.c.
11351 (MAX_FRINGE_BITMAPS): Define here.
11352 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
11353 and overlay_p. Change member which to int.
11354 (struct redisplay_interface): New members define_fringe_bitmap
11355 and destroy_fringe_bitmap.
11356 (valid_fringe_bitmap_id_p): Add prototype.
11357 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
11358
11359 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
11360 arrows.
11361 (update_frame): Do flush_display if force_flush_display_p to
11362 ensure display (specifically fringes) are updated in a timely
11363 manner when resizing the frame by dragging the mouse.
11364 (update_window_line): Update row if overlay arrow changed.
11365 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
11366 or overlay arrow changed.
11367
11368 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
11369 syms_of_fringe, and init_fringe.
11370
11371 * frame.h (struct frame): New member force_flush_display_p.
11372
11373 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
11374 Add prototypes.
11375
11376 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
11377 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
11378 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
11379 Use cursor color for displaying cursor in fringe.
11380 (x_redisplay_interface): Add null handlers for
11381 define_fringe_bitmap and destroy_fringe_bitmap functions.
11382
11383 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
11384 xterm.c to handle overlayed fringe bitmaps and to use cursor color
11385 for displaying cursor in fringe.
11386 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
11387 specific functions to define and destroy fringe bitmaps in fringe_bmp.
11388 (w32_redisplay_interface): Add them to redisplay_interface.
11389 (w32_term_init): Call w32_init_fringe instead of explicitly
11390 defining fringe bitmaps in fringe_bmp array.
11391 (x_delete_display): Call w32_reset_fringes instead of explicitly
11392 destroying fringe bitmaps in fringe_bmp array.
11393
11394 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
11395 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
11396 (continued_bits, continuation_bits, ov_bits, first_line_bits)
11397 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
11398 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
11399 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
11400 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
11401 Move fringe handling vars and code to new file fringe.c.
11402 (handle_display_prop): Handle left-fringe and right-fringe
11403 display properties; store user fringe bitmaps in iterator.
11404 (move_it_in_display_line_to): Handle cursor in fringe at eob.
11405 (clear_garbaged_frames): Set force_flush_display_p if resized.
11406 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
11407 (display_line): Handle cursor in fringe at eob.
11408 (display_line): Set row user fringe bitmaps from iterator.
11409
11410 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
11411 Use cursor color for displaying cursor in fringe.
11412 (x_redisplay_interface): Add null handlers for
11413 define_fringe_bitmap and destroy_fringe_bitmap functions.
11414
11415 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11416
11417 * macfns.c (Fx_change_window_property): Make doc string and
11418 parameters same as for X version.
11419
11420 * w32fns.c (Fx_change_window_property): Ditto.
11421
11422 2004-02-07 Kim F. Storm <storm@cua.dk>
11423
11424 * xdisp.c (hscroll_window_tree): Position cursor near to right
11425 margin in hscrolled window when jumping to end of line (rather
11426 than centering cursor).
11427
11428 * process.c (wait_reading_process_input): Don't do adaptive read
11429 buffering if waiting for a specific process.
11430
11431 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
11432
11433 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
11434 (Fread_minibuffer, Feval_minibuffer)
11435 (Fread_string, Fread_no_blanks_input)
11436 (Fcompleting_read): Doc fixes.
11437 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
11438 completion-regexp-list. Define Qcase_fold_search and staticpro it.
11439 (read_minibuf): Fix initial comment.
11440 (Ftry_completion, Fall_completions, Ftest_completion): Bind
11441 case-fold-search to the value of completion-ignore-case when
11442 checking completion-regexp-list.
11443 (Fdisplay_completion_list): Make it handle arguments that are
11444 symbols. Doc fix.
11445
11446 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11447
11448 * xterm.h: Add declaration of free_frame_menubar.
11449
11450 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
11451 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
11452 (Fx_change_window_property): Add declaration of parameters type and
11453 format. Remove unused variable cons.
11454
11455 * xselect.c: Include stdio.h.
11456
11457 2004-02-05 Kenichi Handa <handa@m17n.org>
11458
11459 * fns.c (Fset_char_table_range): Fix previous change.
11460
11461 * buffer.c (Fset_buffer_multibyte): Fix docstring.
11462
11463 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
11464
11465 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
11466
11467 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
11468
11469 * keymap.c (Vmouse_events): Rename from Vmenu_events.
11470 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
11471
11472 2004-02-04 Kenichi Handa <handa@m17n.org>
11473
11474 * fns.c (Fset_char_table_range): Handle charsets ascii,
11475 eight-bit-control, and eight-bit-graphic correctly.
11476
11477 2004-02-03 Jason Rumney <jasonr@gnu.org>
11478
11479 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
11480
11481 * w32fns.c (x_to_w32_font): Likewise.
11482
11483 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11484
11485 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
11486 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
11487
11488 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
11489 ClientMessages.
11490
11491 * xselect.c: Include termhooks.h and X11/Xproto.h
11492 (x_check_property_data, x_fill_property_data)
11493 (x_property_data_to_lisp, mouse_position_for_drop)
11494 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
11495 (Fx_send_client_event): Move here from xfns.c.
11496 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
11497
11498 * xfns.c (x-send-client-message): Move to xselect.c
11499 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
11500 OUTER_P.
11501 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
11502 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
11503 if vector_ret_p is true.
11504 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
11505
11506 2004-02-02 Eli Zaretskii <eliz@gnu.org>
11507
11508 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
11509 basename of FILE relative to it, not FILE itself.
11510
11511 2004-02-02 Kenichi Handa <handa@m17n.org>
11512
11513 * coding.c (coding_restore_composition): Check invalid
11514 composition data more rigidly.
11515
11516 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
11517
11518 * fileio.c (Fread_file_name_internal): Correctly handle the case
11519 where insert-default-directory is nil.
11520 (Fread_file_name): Always return an empty string if the user exits
11521 with an empty minibuffer. Adapt the docstring accordingly.
11522 (syms_of_fileio): Adapt the docstring of insert-default-directory
11523 to the change in Fread_file_name.
11524
11525 2004-01-29 Eli Zaretskii <eliz@gnu.org>
11526
11527 * alloca.c [!alloca]: Fix the prototype for xfree.
11528
11529 2004-01-29 Kenichi Handa <handa@m17n.org>
11530
11531 * fns.c (string_char_to_byte): Optimize for ASCII only string.
11532 (string_byte_to_char): Likewise.
11533
11534 2004-01-28 Peter Runestig <peter@runestig.com>
11535
11536 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
11537
11538 2004-01-27 Steven Tamm <steventamm@mac.com>
11539
11540 * unexmacosx.c (unexec_copy): Do not copy more than was
11541 requested to prevent overwriting during unexec.
11542
11543 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11544
11545 * process.c (sigchld_handler): Add comment about not calling malloc.
11546
11547 * process.h: Add extern to synch_process_termsig.
11548
11549 2004-01-27 Steven Tamm <steventamm@mac.com>
11550
11551 * macterm.c (make_mac_frame, make_mac_terminal_frame):
11552 Move setting of scroll bars from make_mac_frame to
11553 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
11554
11555 2004-01-26 Richard M. Stallman <rms@gnu.org>
11556
11557 * search.c (Freplace_match): Handle nonexistent
11558 back-references properly.
11559
11560 2004-01-03 Richard M. Stallman <rms@gnu.org>
11561
11562 * window.c (decode_any_window): New function.
11563 (Fwindow_height, Fwindow_width, Fwindow_edges)
11564 (Fwindow_pixel_edges, Fwindow_inside_edges)
11565 (Fwindow_inside_pixel_edges): Use decode_any_window.
11566
11567 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11568
11569 * process.h: synch_process_termsig new variable.
11570
11571 * callproc.c: Define synch_process_termsig.
11572 (Fcall_process): Initiate synch_process_termsig to zero and
11573 check if non-zero and get signal name after subprocess has ended.
11574
11575 * process.c (sigchld_handler): Set synch_process_termsig
11576 if terminated by a signal. synch_process_death setting removed.
11577
11578 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
11579
11580 2004-01-26 Andreas Schwab <schwab@suse.de>
11581
11582 * print.c (print_preprocess): Declare size as EMACS_INT to not
11583 lose bits.
11584 (print_object): Likewise.
11585 * alloc.c (Fpurecopy): Likewise.
11586
11587 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
11588
11589 * window.c (Fwindow_minibuffer_p): Doc fix.
11590
11591 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
11592
11593 * editfns.c (Fformat): Make both passes accept the same set of flags.
11594
11595 2004-01-23 Kenichi Handa <handa@m17n.org>
11596
11597 * fns.c (Fmd5): If OBJECT is a buffer different from the current
11598 one, set buffer to OBJECT temporarily.
11599
11600 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
11601
11602 * keyboard.c (kbd_buffer_gcpro): Remove.
11603 (kbd_buffer_store_event, clear_event, Fdiscard_input)
11604 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
11605 Don't initialize and/or maintain the variable any more. It was made
11606 redundant by my commit of 2003-06-15.
11607
11608 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
11609
11610 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11611
11612 * lisp.h: Add undef DECL_ALIGN.
11613
11614 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
11615
11616 * process.c (wait_reading_process_input) [SYNC_INPUT]:
11617 Check interrupt_input_pending explicitly.
11618
11619 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
11620
11621 * keyboard.c (handle_async_input): New fun,
11622 extracted from input_available_signal.
11623 (input_available_signal, reinvoke_input_signal): Use it.
11624
11625 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
11626
11627 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
11628
11629 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
11630 manipulation macros for when tags are in the lower bits.
11631 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
11632 (DECL_ALIGN): New macro.
11633 (DEFUN): Use it.
11634
11635 * lisp.h [ENABLE_CHECKING]: Don't force union type.
11636
11637 * s/darwin.h (__attribute__): Remove outdated workaround.
11638
11639 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
11640
11641 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
11642 Don't check range of malloc address.
11643 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
11644
11645 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
11646
11647 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
11648
11649 2004-01-19 Kenichi Handa <handa@m17n.org>
11650
11651 * fontset.c (fontset_font_pattern): Fix previous change.
11652
11653 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
11654
11655 * xdisp.c (Voverflow_newline_into_fringe)
11656 (move_it_in_display_line_to, redisplay_internal)
11657 (update_window_fringes, redisplay_window, display_line, window):
11658 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
11659 that it compiles without a window-system.
11660 * dispnew.c (direct_output_for_insert, update_window): Likewise.
11661
11662 2004-01-16 Kim F. Storm <storm@cua.dk>
11663
11664 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
11665
11666 * buffer.c (init_buffer_once): Set buffer_defaults and
11667 buffer_local_flags for indicate_buffer_boundaries.
11668 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
11669 default- variable for it.
11670
11671 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
11672 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
11673 New members exact_window_width_line_p and cursor_in_fringe_p for
11674 overflowing newlines into right fringe.
11675 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
11676 and indicate_bottom_line_p for buffer boundaries and scrolling.
11677 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
11678 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
11679 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
11680 and HOLLOW_SQUARE_BITMAP.
11681 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
11682 Add prototypes.
11683
11684 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
11685 instead of related indicator fields.
11686 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
11687 (direct_output_for_insert): Handle exact width lines like
11688 contined lines. Call update_window_fringes.
11689 (update_window): Call update_window_fringes.
11690 (scrolling_window): Don't skip desired rows with changed bitmaps.
11691 Check if fringe bitmaps changes when assigning scrolled rows.
11692
11693 * xdisp.c (Voverflow_newline_into_fringe): New variable.
11694 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
11695 (move_it_in_display_line_to): Overflow newline into fringe for
11696 rows that are exactly as wide as the window.
11697 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
11698 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
11699 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
11700 (fringe_bitmaps): Add new bitmaps.
11701 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
11702 Select proper bitmap for cursor in fringe when appropriate.
11703 Handle alignment of bitmap to top or bottom of row.
11704 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
11705 done by update_window_fringes.
11706 (update_window_fringes, draw_window_fringes): New functions.
11707 (redisplay_internal): Call update_window_fringes in case only
11708 cursor row is updated.
11709 (redisplay_window): Call update_window_fringes.
11710 Explicitly call draw_window_fringes if redisplay was done using
11711 the current matrix or the overlay arrow is in the window.
11712 (try_window_reusing_current_matrix): Mark scrolled rows for
11713 fringe update (to update buffer-boundaries / scrolling icons).
11714 (find_last_unchanged_at_beg_row): Handle exact width lines line
11715 continued lines.
11716 (display_line): Overflow newline into fringe for rows that are
11717 exactly as wide as the window. Don't append space for newline
11718 in this case.
11719 (notice_overwritten_cursor): Explicitly clear cursor bitmap
11720 in fringe as if it had been overwritten.
11721 (erase_phys_cursor): Erase cursor bitmap in fringe.
11722 (syms_of_xdisp): Mark show-trailing-whitespace and
11723 void-text-area-pointer as user options.
11724 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
11725
11726 * xterm.c (x_update_window_end): Call draw_window_fringes.
11727 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11728 in row instead of actually drawing fringe bitmaps.
11729 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11730 (x_draw_window_cursor): Draw cursor in fringe.
11731
11732 * w32term.c (x_update_window_end): Call draw_window_fringes.
11733 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11734 in row instead of actually drawing fringe bitmaps.
11735 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11736 (w32_draw_window_cursor): Draw cursor in fringe.
11737
11738 * macterm.c (x_update_window_end): Call draw_window_fringes.
11739 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
11740 in row instead of actually drawing fringe bitmaps.
11741 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
11742 (mac_draw_window_cursor): Draw cursor in fringe.
11743
11744 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11745
11746 * xterm.c (handle_one_xevent): Don't handle characters that are part
11747 of an old style (XLookupString) compose sequence.
11748
11749 2004-01-15 Kenichi Handa <handa@m17n.org>
11750
11751 * search.c (Freplace_match): Use make_multibyte_string or
11752 make_unibyte_string according to the buffer multibyteness.
11753
11754 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
11755
11756 * alloc.c (struct interval_block, struct string_block)
11757 (struct symbol_block, struct marker_block, live_string_p)
11758 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
11759 Better preserve alignment for objects in blocks.
11760 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
11761
11762 * lread.c (defvar_per_buffer): Remove dead declaration.
11763
11764 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
11765 space size.
11766
11767 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11768
11769 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
11770 if a key press should pop down. Only pop down if a key is pressed
11771 outside the menu/dialog.
11772 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
11773 popup_get_selection.
11774 (create_and_show_dialog): Pass 1 for down_on_keypress to
11775 popup_get_selection.
11776
11777 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11778
11779 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
11780 BLOCK/UNBLOCK_INPUT.
11781
11782 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11783
11784 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
11785 specified.
11786
11787 2004-01-08 Kenichi Handa <handa@m17n.org>
11788
11789 * editfns.c (Fformat): Fix '&' to '&&'.
11790
11791 2004-01-08 Andreas Schwab <schwab@suse.de>
11792
11793 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
11794 size if PSEUDOVECTOR_FLAG is set.
11795
11796 2004-01-07 Kenichi Handa <handa@m17n.org>
11797
11798 * charset.c (Fdeclare_equiv_charset): Fix docstring.
11799
11800 * fontset.c (fontset_ref_via_base): Fix previous change.
11801
11802 2004-01-07 Kim F. Storm <storm@cua.dk>
11803
11804 * process.c (read_process_output): Only activate adaptive
11805 buffering if we read less than 256 bytes at a time.
11806
11807 2004-01-06 Kim F. Storm <storm@cua.dk>
11808
11809 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
11810 object and image object. Return glyph width and height.
11811 (mode_line_string, marginal_area_string): Ditto.
11812
11813 * dispextern.h (buffer_posn_from_coords, mode_line_string)
11814 (marginal_area_string): Fix prototypes.
11815
11816 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
11817 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
11818 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
11819
11820 * keyboard.c (make_lispy_position): Use modified mode_line_string,
11821 buffer_posn_from_coords, and marginal_area_string functions to
11822 include both string object and image object in the lispy position.
11823 Also add actual glyph width and height to position.
11824 (read_key_sequence): Use real buffer position from mouse
11825 event to find keymap property even when click is in marginal area.
11826
11827 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
11828 mode_line_string and marginal_area_string functions to handle
11829 both string object and image object properties.
11830
11831 2004-01-06 Andreas Schwab <schwab@suse.de>
11832
11833 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
11834 character.
11835
11836 2004-01-02 Andreas Schwab <schwab@suse.de>
11837
11838 * macterm.c (emacs_options, x_initialized, same_x_server):
11839 Remove unused (and duplicated) definitions.
11840
11841 2004-01-02 Kim F. Storm <storm@cua.dk>
11842
11843 * process.h (struct Lisp_Process): New members for adaptive read
11844 buffering: adaptive_read_buffering, read_output_delay, and
11845 read_output_skip.
11846
11847 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
11848 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
11849 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
11850 (process_output_delay_count, process_output_skip): New vars.
11851 (Vprocess_adaptive_read_buffering): New variable.
11852 (make_process): Initialize adaptive read buffering members.
11853 (Fstart_process): Set adaptive_read_buffering member.
11854 (deactivate_process): Cleanup adaptive read buffering.
11855 (wait_reading_process_input): Temporarily omit delayed
11856 subprocesses from the set of file descriptors to read from;
11857 adjust the select timeout if we skipped any subprocesses.
11858 (read_process_output): Increase adaptive read buffering delay if
11859 we read less than a full buffer; reduce delay when we read a
11860 full buffer.
11861 (send_process): Simplify using local Lisp_Process var.
11862 Reset adaptive read buffering delay after write.
11863 (init_process): Initialize process_output_delay_count and
11864 process_output_skip.
11865 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
11866
11867 2004-01-01 Jason Rumney <jasonr@gnu.org>
11868
11869 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
11870
11871 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
11872
11873 * print.c (Ferror_message_string): Add hyperlink in the docstring
11874 to the definition of `signal' in the Elisp manual.
11875 * eval.c (Fsignal): Ditto.
11876
11877 2003-12-29 James Clark <jjc@jclark.com>
11878
11879 * fns.c (internal_equal): Return t for two NaN arguments.
11880
11881 2003-12-29 Richard M. Stallman <rms@gnu.org>
11882
11883 * data.c (store_symval_forwarding): Handle setting
11884 default-fill-column, etc., by changing the value in
11885 buffers that use the default.
11886
11887 * minibuf.c (Fset_minibuffer_window): Doc fix.
11888
11889 * fileio.c (choose_write_coding_system): Ignore auto_saving
11890 if using the visited file for auto saves.
11891 (Fwrite_region): Don't update SAVE_MODIFF
11892 if auto-saving in visited file.
11893
11894 2003-12-29 Kenichi Handa <handa@m17n.org>
11895
11896 * dispextern.h (face_font_available_p): Extern it.
11897
11898 * fontset.c (Voverriding_fontspec_alist): New variable.
11899 (lookup_overriding_fontspec): New function.
11900 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
11901 (fontset_font_pattern): Likewise.
11902 (regulalize_fontname): New function.
11903 (Fset_fontset_font): Call regulalize_fontname.
11904 (Fset_overriding_fontspec_internal): New function.
11905 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
11906 Defsubr Sset_overriding_fontspec_internal.
11907
11908 * xfaces.c (face_font_available_p): New function.
11909
11910 2003-12-28 Richard M. Stallman <rms@gnu.org>
11911
11912 * buffer.c (Fother_buffer): Don't crash if BUF is nil
11913 or if its name is nil.
11914
11915 * buffer.c (Fkill_buffer): Don't delete auto-save file
11916 if it's the same as the visited file.
11917
11918 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
11919
11920 * coding.c (Fcheck_coding_system): Doc fix.
11921
11922 2003-12-28 Kim F. Storm <storm@cua.dk>
11923
11924 * Makefile.in (eval.o): Depend on dispextern.h.
11925
11926 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
11927 image glyph using image's ascent.
11928 (mode_line_string): Return image glyph as object clicked on.
11929 Adjust y0 for image glyph using image's ascent.
11930
11931 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
11932 (struct glyph): New members, ascent and descent. Used to save
11933 this glyph's ascent and descent, instead of having.
11934 (struct glyph): Declare member face_id using FACE_ID_BITS.
11935 (find_hot_spot): Add prototype.
11936
11937 * keyboard.c (Qimage): Remove extern (now in lisp.h).
11938 (QCmap): Declare extern.
11939 (make_lispy_position): When position is inside image hot-spot,
11940 use hot-spot element's id as posn element.
11941
11942 * lisp.h (IMAGEP): New macro to test for image object type.
11943 (Qimage): Declare extern.
11944
11945 * macfns.c (Qimage): Remove extern (now in lisp.h).
11946 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11947
11948 * macterm.c (Qface, Qmouse_face): Remove unused externs.
11949
11950 * w32fns.c (Qimage): Remove extern (now in lisp.h).
11951 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11952
11953 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
11954
11955 * w32term.c (Qface, Qmouse_face): Remove unused externs.
11956
11957 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
11958 pointer types.
11959 (Qrelative_width, Qalign_to): Remove unused variables.
11960 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
11961 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
11962 image maps.
11963 (x_y_to_hpos_vpos): Return glyph relative coordinates through
11964 new dx and dy args.
11965 Remove buffer_only_p arg (always 0). Simplify code accordingly.
11966 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
11967 than row's ascent and height, to get sensible height on tall rows.
11968 (build_desired_tool_bar_string): Remove Qimage extern.
11969 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
11970 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
11971 image glyph is alone on the last line.
11972 (append_glyph, append_composite_glyph, produce_image_glyph)
11973 (append_stretch_glyph): Set glyph's ascent and descent.
11974 (on_hot_spot_p): New function to check if position is inside an
11975 rectangular, circular, or polygon-shaped image hot-spot,
11976 (find_hot_spot): New function to search for image hot-spot.
11977 (Flookup_image_map): New defun to search for image hot-spot.
11978 (define_frame_cursor1): New aux function to determine frame pointer.
11979 (note_mode_line_or_margin_highlight, note_mouse_highlight):
11980 Handle `pointer' text property and :pointer image property to
11981 control frame pointer shape. Detect image hot-spots for pointer
11982 and help_echo properties. Use define_frame_cursor1.
11983 (note_mouse_highlight): Use Vvoid_text_area_pointer.
11984 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
11985 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
11986
11987 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
11988
11989 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
11990 (Qimage): Remove extern (now in lisp.h).
11991 (valid_image_p, parse_image_spec): Use IMAGEP macro.
11992
11993 * xmenu.c (show_help_event): Remove unused code.
11994
11995 * xterm.c (Qface, Qmouse_face): Remove unused externs.
11996 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
11997 row's ascent and descent, to get a sensible height on tall rows.
11998
11999 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
12000
12001 * minibuf.c (Fcompleting_read): Undo previous change.
12002
12003 2003-12-25 Lars Hansen <larsh@math.ku.dk>
12004
12005 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
12006 Arguments GCPRO'ed in call to file name handler.
12007
12008 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
12009
12010 * termcap.c (tgetst1): Scan for "%pN"; if all
12011 N are continuous in [1,9], remove all "%pN".
12012
12013 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12014
12015 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
12016
12017 * xfaces.c (lface_fully_specified_p): Take into account that
12018 MAC OS always have unspecified stipple.
12019
12020 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
12021
12022 * tparam.c (tparam1): Add handling for `%pN', which
12023 means use param N for the next substitution.
12024
12025 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
12026
12027 * xfaces.c (Fcolor_gray_p): Fix omission bug:
12028 In case `frame' is nil, consult the selected frame.
12029 (Fcolor_supported_p): Likewise.
12030
12031 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
12032
12033 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
12034 Doc fixes.
12035
12036 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
12037 and an integer. Adapt the introductory comment accordingly.
12038 (Fread_from_minibuffer): Delete code moved into read_minibuf.
12039 Doc fix.
12040 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
12041 read_minibuf.
12042 (Fcompleting_read): Delete code moved into read_minibuf.
12043 (Ftest_completion): Make it handle obarrays and hash tables correctly.
12044
12045 2003-12-03 Kenichi Handa <handa@m17n.org>
12046
12047 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
12048 encoding sequence.
12049
12050 2003-12-01 Kenichi Handa <handa@m17n.org>
12051
12052 * composite.c (syms_of_composite): Don't make the compostion hash
12053 table week.
12054
12055 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
12056
12057 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
12058 * textprop.c (Fget_char_property_and_overlay): New function.
12059 (syms_of_textprop): Defsubr it.
12060
12061 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12062
12063 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
12064 to compile on terminal configuration.
12065
12066 * fileio.c (Fread_file_name): Check use_file_dialog also before
12067 calling Fx_file_dialog.
12068
12069 * fns.c (use_file_dialog): New variable.
12070 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
12071
12072 2003-11-29 Kim F. Storm <storm@cua.dk>
12073
12074 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
12075 (syms_of_msdos): Don't intern and staticpro them.
12076
12077 2003-11-27 Kim F. Storm <storm@cua.dk>
12078
12079 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
12080 coordinates relative to glyph at posn. If glyph is an image,
12081 return that as object at posn. Callers changed.
12082 (mode_line_string, marginal_area_string): Calculate and return
12083 pixel coordinates relative to glyph. Callers changed.
12084
12085 * dispextern.h (buffer_posn_from_coords, mode_line_string)
12086 (marginal_area_string): Fix prototypes.
12087 (window_box_left_offset, window_box_right_offset): Add prototypes.
12088
12089 * frame.h (get_specified_cursor_type, get_window_cursor_type):
12090 Remove prototypes.
12091
12092 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
12093
12094 * keyboard.c (make_lispy_position): Add x and y coordinates
12095 relative to the current glyph as 7th element of position.
12096 If glyph is an image, return it in the object element.
12097 (read_key_sequence): Skip checks for keymap property in cases
12098 where POSN_STRING is not a string (e.g. an image).
12099
12100 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
12101 (Vshow_text_cursor_in_void): New variable.
12102 (glyph_to_pixel_coords): Don't use negative hpos.
12103 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
12104 (append_stretch_glyph): Change ascent arg to be actual value
12105 in pixels rather than ratio to height. Callers changed.
12106 (calc_pixel_width_or_height): New aux function, implementing
12107 pixel based artihmetic for glyph widths and heights.
12108 (produce_stretch_glyph): Use calc_pixel_width_or_height for
12109 :width, :height, :align-to, and :ascent, thus allowing these to
12110 be specified in pixels as well as multiples of characters.
12111 Don't produce stretch glyphs with zero width or height.
12112 (get_specified_cursor_type): Declare static.
12113 (get_window_cursor_type): Declare static. Add glyph arg to be
12114 able to know when cursor is on an image; always substitute
12115 hollow-box cursor for filled-box cursor on images, to avoid
12116 negative images and flicker when blinking the cursor.
12117 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
12118 (note_mode_line_or_margin_highlight): Use non-text cursor rather
12119 than vertical scroll-bar cursor in display margins.
12120 (note_mouse_highlight): Use non-text cursor rather than text
12121 cursor in fringes and over images in the text area.
12122 Use non-text cursor when mouse pointer is outside editable text,
12123 i.e. in the void after end-of-line or end-of-buffer; this was
12124 already done for W32, but is now standard for all systems --
12125 user can toggle show-text-cursor-in-void to get old behaviour.
12126 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
12127 Vdisplay_pixels_per_inch.
12128
12129 2003-11-25 Andreas Schwab <schwab@suse.de>
12130
12131 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
12132 EMACS_INT to not lose bits.
12133 (Ffillarray): Don't set bits beyond the size of a bool vector.
12134
12135 2003-11-25 Kim F. Storm <storm@cua.dk>
12136
12137 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
12138 define this defun on systems that cannot use stderr as lvalue.
12139
12140 2003-11-24 Gerd Moellmann <gerd@gnu.org>
12141
12142 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
12143 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
12144 ld's default is incompatible with unexec.
12145
12146 2003-11-23 Kim F. Storm <storm@cua.dk>
12147
12148 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
12149 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
12150 (Fforce_window_update): New defun.
12151 (syms_of_window): Defsubr it.
12152 (Fset_window_margins, Fset_window_fringes): Doc fix.
12153
12154 * print.c (Fredirect_debugging_output): New defun.
12155 (syms_of_print): Defsubr it.
12156
12157 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
12158
12159 * fns.c (Fset_char_table_parent): Doc fix.
12160
12161 2003-11-22 Kim F. Storm <storm@cua.dk>
12162
12163 * dispnew.c (buffer_posn_from_coords): Return actual row/column
12164 for glyph clicked on, rather than (unused) pixel positions.
12165 (mode_line_string, marginal_area_string): Change X and Y args to
12166 pointers for returning actual row/column for glyph clicked on.
12167 Simplify and optimize loops.
12168
12169 * dispextern.h (mode_line_string, marginal_area_string):
12170 Update prototypes.
12171
12172 * keyboard.c (make_lispy_position): New function for generating
12173 mouse click positions from frame and pixel coordinates.
12174 Enhanced to return buffer position and actual row/column for
12175 events outside the text area using updated mode_line_string and
12176 marginal_area_string functions.
12177 Return left-fringe and right-fringe clicks as such, rather than
12178 clicks in text area.
12179 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
12180 pixel_to_glyph_coords, as we never use the results.
12181 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
12182 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
12183 Eliminate unused code in WHEEL_EVENT handling.
12184 (make_lispy_movement): Use make_lispy_position.
12185
12186 * window.c (coordinates_in_window): Remove redundant tests.
12187 Fix returned X pixel value for left-margin.
12188
12189 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
12190 mode_line_string and marginal_area_string parameters.
12191
12192 2003-11-22 Lars Hansen <larsh@math.ku.dk>
12193
12194 * w32.c (struct the_group, getgrgid): Add.
12195 * mac.c (struct my_group, getgrgid): Add.
12196
12197 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
12198
12199 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
12200
12201 2003-11-21 Lars Hansen <larsh@math.ku.dk>
12202
12203 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
12204 include in call to file name handler. Optionally translate numeric
12205 UID and GID to strings. Update docstring.
12206 (directory_files_internal): Add parameter ID-FORMAT.
12207 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
12208 include in call to file name handler and call to
12209 directory_files_internal. Update Docstring.
12210 (Fdirectory_files): Add dummy parameter in call to
12211 directory_files_internal.
12212 * lisp.h (Qinteger): Add.
12213 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
12214 (Ffile_attributes): Add parameter.
12215 * data.c (Qinteger): Export.
12216
12217 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
12218
12219 * fns.c (Freverse, Fnreverse): Doc fixes.
12220
12221 2003-11-19 Kim F. Storm <storm@cua.dk>
12222
12223 * xdisp.c (init_iterator): Initialize it->start to position
12224 before reseating (in case start position is invisible).
12225 (init_to_row_start): Set it->start to row-start.
12226 (redisplay_window): Accept optional_new_start if start position
12227 is invisible (in which case IT_CHARPOS overshoots PT).
12228 (display_line): Setup row->start from it->start (rather than
12229 it->current which is wrong if first char on line is invisible).
12230 When done, reseat it->start to it->current (= start of next row).
12231 (expose_area): Fix exposure of text area when first char (e.g. TAB)
12232 is only partially visible.
12233
12234 * dispextern.h (struct it): New member start.
12235
12236 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
12237
12238 * alloc.c (make_float, Fcons): Clear the markbit at init time.
12239 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
12240 of block_index outside of the macro call.
12241 (Fgarbage_collect): Remove null code.
12242
12243 * m/amdx86-64.h: Don't redefine XPNTR.
12244
12245 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
12246 of VALMASK.
12247
12248 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
12249 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
12250 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
12251
12252 * lisp.h (VALMASK): Only define for non-union type.
12253 (MARKBIT): Remove.
12254 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
12255 (XTYPE): Define unconditionally.
12256 (XSETTYPE): Remove one more remnant.
12257 (EQ): Define differently for the union and non-union cases.
12258 (INTMASK): New bit mask.
12259 (struct Lisp_Marker): Move down to prepare for upcoming patch.
12260 (GC_EQ): Delegate to EQ.
12261
12262 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
12263
12264 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12265
12266 * xterm.c (x_window_to_scroll_bar): Move check of display to
12267 where window_id is compared.
12268
12269 2003-11-17 Kim F. Storm <storm@cua.dk>
12270
12271 * dispextern.h (struct it): New member first_vpos.
12272
12273 * xdisp.c (start_display): Set it->first_vpos.
12274 (try_window_id): Use first_vpos to start display in first _text_
12275 line if no reusable lines at start of window with header line.
12276
12277 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12278
12279 * w32fns.c (XPutPixel):
12280 * w32bdf.c (w32_init_bdf_font):
12281 * sunfns.c (sel_read):
12282 * process.c (Fmake_network_process):
12283 * frame.c (store_frame_param):
12284 * fontset.c (Fset_fontset_font):
12285 * emacs.c (shut_down_emacs):
12286 * ccl.c (ccl_driver): Remove period at end of error message.
12287
12288 * config.in: Regenerate.
12289
12290 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12291 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12292 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
12293 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
12294 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
12295
12296 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
12297
12298 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
12299 (XTmouse_position, handle_one_xevent): Pass Display* to
12300 x_window_to_scroll_bar.
12301 (x_window_to_scroll_bar): Take a Display* argument.
12302 Check that display for frame is equal to Display* argument.
12303 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
12304 x_display_info_for_display instead. Use Display in xev instead
12305 of GDK_DISPLAY.
12306 (x_dispatch_event): Call x_display_info_for_display.
12307 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
12308 (x_connection_closed): Call xg_display_close for GTK.
12309 (x_term_init): Call xg_display_open for additional displays.
12310 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
12311 for GTK.
12312
12313 * xmenu.c (single_menu_item, mouse_position_for_popup)
12314 (x_activate_menubar): Formatting adjustments.
12315
12316 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
12317 adjustments.
12318
12319 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
12320 (xg_display_close, xg_create_default_cursor)
12321 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
12322 handling.
12323 (xg_left_ptr_cursor): Remove.
12324 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
12325 cursor here.
12326 (xg_win_to_widget): Take Display* argument, call
12327 gdk_xid_table_lookup_for_display.
12328 (xg_create_frame_widgets, xg_get_file_name, create_menus)
12329 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
12330 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
12331 in FRAME_X_DISPLAY_INFO.
12332 (xg_get_scroll_id_for_window): Take Display* argument.
12333 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
12334 (xg_initialize): Remove xg_left_ptr_cursor.
12335
12336 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
12337 Display* argument.
12338 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
12339
12340 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12341
12342 * xterm.c (x_detect_focus_change): Do not change focus frame for
12343 Enter/LeaveNotify if the current focus frame has explicit focus.
12344
12345 2003-11-14 Kim F. Storm <storm@cua.dk>
12346
12347 * dispnew.c (update_text_area): Fix redisplay error when hscroll
12348 is active and first glyph is only partially visible.
12349
12350 2003-11-13 Kenichi Handa <handa@m17n.org>
12351
12352 * xdisp.c (select_frame_for_redisplay): New function.
12353 (redisplay_internal): Record also selected_frame for
12354 unwind_redisplay. Call select_frame_for_redisplay before
12355 redrawing each frame.
12356 (unwind_redisplay): Argument changed to a cons.
12357
12358 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
12359
12360 * fns.c (Fstring_to_multibyte): Doc fix.
12361
12362 2003-11-11 Kenichi Handa <handa@m17n.org>
12363
12364 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
12365
12366 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12367
12368 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
12369 program specified positions.
12370
12371 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12372
12373 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
12374
12375 2003-11-08 Kenichi Handa <handa@m17n.org>
12376
12377 * Makefile.in (lisp): Add kannada.el.
12378 (shortlisp): Likewise.
12379
12380 2003-11-07 Kenichi Handa <handa@m17n.org>
12381
12382 * coding.c (coding_allocate_composition_data):
12383 Reset coding->composing to COMPOSITION_NO.
12384 (coding_restore_composition): Detect invalid composition data.
12385 Give Fstring and Fvector a Lispy integer, not C int.
12386
12387 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
12388
12389 * floatfns.c (Flogb): Don't use VALMASK.
12390
12391 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
12392 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
12393
12394 * lisp.h (XINT): Move the cast to clarify what is going on.
12395 (GCTYPEMASK, XSETTYPE): Remove.
12396 (XGCTYPE): Make it an alias of XTYPE.
12397
12398 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12399
12400 * xterm.c (x_term_init): Fix formatting.
12401
12402 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12403
12404 * gtkutil.h (xg_have_tear_offs): Declare.
12405 (xg_keep_popup, xg_did_tearoff): Remove.
12406
12407 * gtkutil.c: Remove variable xg_did_tearoff.
12408 (xg_have_tear_offs): New function.
12409 (tearoff_remove): Just decrease xg_detached_menus.
12410 (tearoff_activate): Increase xg_detached_menus and call
12411 tearoff_remove when tearoff is removed.
12412 (xg_keep_popup): Remove function.
12413 (create_menus): Give add_tearoff_p as argument to recursive
12414 call to create_menus.
12415 (xg_create_widget): Use variables instead of multiple
12416 strcmp. Tell create_menus to create tear off only for
12417 menu bar menus.
12418 (xg_update_menubar): Change title for a detached menu also.
12419 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
12420 of deep_p.
12421 (xg_initialize): Initialize xg_detached_menus, remove
12422 initialization of xg_did_tearoff.
12423
12424 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
12425 xg_have_tear_offs returns non-zero.
12426 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
12427 call to xg_keep_popup.
12428
12429 2003-11-01 Andrew Choi <akochoi@shaw.ca>
12430
12431 * macterm.c (XTread_socket): Handle menubar selection and grow
12432 window only for mouseDown events.
12433
12434 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12435
12436 * xterm.c (x_term_init): For GTK part, increase x_initialized
12437 to check for more than one display. Use error instead of return 0.
12438
12439 2003-10-31 Andrew Choi <akochoi@shaw.ca>
12440
12441 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
12442 (copy_dysymtab): Call it.
12443
12444 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
12445
12446 * eval.c (Fdefvaralias): Doc fix.
12447
12448 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
12449
12450 * data.c (Fsetplist): Doc fix.
12451
12452 2003-10-14 Lute Kamstra <lute@gnu.org>
12453
12454 * window.c (Fset_window_fringes): Clarify docstring.
12455
12456 2003-10-14 Kim F. Storm <storm@cua.dk>
12457
12458 * window.c (Fset_window_margins): Simplify arg checking.
12459
12460 2003-10-13 Richard M. Stallman <rms@gnu.org>
12461
12462 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
12463 (print_partial_compiled_pattern): Replace assert with a printout.
12464 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
12465
12466 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
12467
12468 * window.c (Fset_window_margins): Allow only integers as args.
12469 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
12470 Doc fixes.
12471
12472 2003-10-13 Lute Kamstra <lute@gnu.org>
12473
12474 * window.c (Fset_window_fringes): Elaborate docstring.
12475
12476 2003-10-12 Andrew Choi <akochoi@shaw.ca>
12477
12478 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
12479
12480 * s/darwin.h (GC_MARK_STACK): Define.
12481
12482 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12483
12484 * window.c (shrink_windows): New function.
12485 (size_window): Call shrink_windows to calculate window sizes when
12486 shrinking frame with more than one window.
12487
12488 2003-10-12 Kim F. Storm <storm@cua.dk>
12489
12490 * xdisp.c (compute_fringe_widths): Doc fix.
12491
12492 2003-10-08 Kenichi Handa <handa@m17n.org>
12493
12494 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
12495
12496 2003-10-07 Kenichi Handa <handa@m17n.org>
12497
12498 * coding.c (Qcoding_system_define_form): New variable.
12499 (syms_of_coding): Intern and staticpro it.
12500 (Fcheck_coding_system): Try to autoload the definition of
12501 CODING-SYSTEM.
12502
12503 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
12504
12505 * fns.c (Frequire): Doc fix.
12506
12507 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12508
12509 * xfns.c (Fx_send_client_event): New function as a base for
12510 manipulating extended window manager hints.
12511 (Fx_send_client_event): Remove unused variable s.
12512
12513 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
12514 that function is removed.
12515
12516 * xterm.c (x_set_offset): Use move_offset_left/top instead of
12517 x/y_pixels_outer_diff.
12518 (x_check_expected_move): Calculate move_offset_left/top.
12519
12520 * xterm.h (struct x_output): New members: move_offset_top/left.
12521
12522 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
12523 call x_set_offset directly.
12524
12525 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
12526
12527 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
12528
12529 * xterm.c (x_delete_display): Free font names and font_encoder
12530 in dpyinfo->font_table.
12531
12532 * xfns.c (Fx_close_connection): Only call XFreeFont here.
12533 Move xfree of font names to x_delete_display.
12534
12535 * xterm.h (struct x_display_info): New member, wm_type.
12536 (struct x_output): New members, expected_top/left and
12537 check_expected_move.
12538
12539 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
12540 is received.
12541 (handle_one_xevent): Rename x_check_expected_move from
12542 x_check_fullscreen_move.
12543 (x_set_offset): Only add WM decoration sizes to modified_top/left
12544 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
12545 (x_check_expected_move): Rename from x_check_fullscreen_move.
12546 Removed fullscreen specific code. Use check_expected_move,
12547 expected_left/top instead. Also, set wm_type.
12548 (x_term_init): Initialize wm_type to unknown.
12549
12550 * frame.c (x_fullscreen_move): Remove addition of WM decoration
12551 sizes to move_x/y.
12552
12553 2003-10-03 Kenichi Handa <handa@m17n.org>
12554
12555 * macterm.c (x_load_font): Clear all members of FONTP before start
12556 filling them.
12557
12558 2003-10-02 Kenichi Handa <handa@m17n.org>
12559
12560 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
12561 before calling find_ccl_program_func. Call find_ccl_program_func
12562 only when fontp->font_encoder is not NULL.
12563
12564 * xterm.c (x_load_font): Clear all members of FONTP before start
12565 filling them.
12566
12567 2003-10-03 John Paul Wallington <jpw@gnu.org>
12568
12569 * keymap.c (map_keymap): Don't abort when binding is a vector.
12570
12571 2003-10-02 Jason Rumney <jasonr@gnu.org>
12572
12573 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
12574 Sync dependencies with Makefile.in.
12575 (alloca.o): Remove.
12576
12577 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
12578 filling them.
12579
12580 * w32bdf.c (w32_load_bdf_font): Likewise.
12581
12582 2003-09-30 Richard M. Stallman <rms@gnu.org>
12583
12584 * term.c (set_tty_color_mode): Calculate current_mode_spec
12585 regardless of value of VAL.
12586
12587 * intervals.c (graft_intervals_into_buffer):
12588 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
12589 Handle over_used when splitting UNDER.
12590
12591 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12592
12593 * regex.c (regex_compile): Free the stack when returning from function.
12594
12595 2003-09-28 Kenichi Handa <handa@m17n.org>
12596
12597 * fontset.c (Finternal_char_font): Change return value to
12598 cons (FONT-NAME . GLYPH-CODE).
12599
12600 2003-09-28 Eli Zaretskii <eliz@gnu.org>
12601
12602 * term.c (tty_setup_colors): Treat any negative argument as -1.
12603
12604 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
12605
12606 * process.c (send_process): Delete unused temp_buf.
12607
12608 2003-09-26 Dave Love <fx@gnu.org>
12609
12610 * xterm.c (x_bitmap_mask): Declare.
12611
12612 2003-09-25 Dave Love <fx@gnu.org>
12613
12614 * Makefile.in (fns.o): Depend on md5.h.
12615
12616 2003-09-25 Kim F. Storm <storm@cua.dk>
12617
12618 * window.c (set_window_buffer): Fix redisplay problems when
12619 switching between buffers with different display margin widths.
12620
12621 2003-09-23 Kim F. Storm <storm@cua.dk>
12622
12623 * process.c (set_socket_option): Fix :bindtodevice option.
12624 (Fset_network_process_option): Update process contact list when
12625 setting option succeeds.
12626 (Fmake_network_process): Doc fix.
12627
12628 2003-09-23 Dave Love <fx@gnu.org>
12629
12630 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
12631
12632 2003-09-22 Eli Zaretskii <eliz@gnu.org>
12633
12634 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
12635 color mode is an integer number (it could be -1).
12636
12637 2003-09-22 Richard M. Stallman <rms@gnu.org>
12638
12639 * intervals.c (graft_intervals_into_buffer): Correct the main loop
12640 in the case where OVER is longer than UNDER.
12641
12642 2003-09-22 Masatake YAMATO <jet@gyve.org>
12643
12644 * window.c (Fset_window_scroll_bars): Validate the value of
12645 `vertical_type'.
12646
12647 2003-09-21 Kim F. Storm <storm@cua.dk>
12648
12649 * frame.c (Vdefault_frame_scroll_bars): New variable.
12650 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
12651 (syms_of_frame): DEFVAR_LISP it, and initialize according to
12652 window-system default scroll bar position.
12653
12654 * window.c (Fwindow_scroll_bars): Doc fix.
12655
12656 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12657
12658 * xterm.c (x_set_offset): Take window manager decorations into account.
12659
12660 2003-09-19 Richard M. Stallman <rms@gnu.org>
12661
12662 * atimer.h: Don't include lisp.h.
12663 (P_): Define it here (as well as elsewhere).
12664
12665 * print.c (Fprin1_to_string): Move the PRINTPREPARE
12666 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
12667
12668 * data.c (Fvariable_binding_locus): New function.
12669 (syms_of_data): defsubr it.
12670 (Flocal_variable_p): Delete duplicate call to indirect_variable.
12671
12672 2003-09-18 Dave Love <fx@gnu.org>
12673
12674 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
12675
12676 * process.c (Fnetwork_interface_info): Fix type error.
12677 (Fnetwork_interface_list): Doc fix.
12678 (read_process_output, read_process_output): Delete unused var.
12679
12680 2003-09-17 Kim F. Storm <storm@cua.dk>
12681
12682 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
12683 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
12684 (Fnetwork_interface_info): Check that ifreq struct has required
12685 fields before accessing them; this requires that those fields are
12686 defined as macros, which may be too restrictive on some platforms,
12687 but it is better than failing on other platforms.
12688 (syms_of_process): Only defsubr above fns when included.
12689
12690 2003-09-17 Dave Love <fx@gnu.org>
12691
12692 * unexalpha.c: Don't include varargs.h.
12693
12694 2003-09-17 Kim F. Storm <storm@cua.dk>
12695
12696 * process.c (Fset_process_sentinel): Add sentinel to childp plist
12697 for network process.
12698 (socket_options): Add `:' prefix to option names. Add optbit field.
12699 (set_socket_option): Remove no_error arg and special handling of s < 0.
12700 Return 1<<optbit for known option, 0 for unknown.
12701 Do not interpret 0 as false for boolean option (only nil).
12702 Pass failed option and value to report_file_error.
12703 (Fset_network_process_options): Replace by Fset_network_process_option.
12704 (Fset_network_process_option): New function to set just one option.
12705 (Fmake_network_process): Allow :coding arg to be a cons.
12706 Allow :server arg to be an integer specifying backlog size.
12707 Remove :options arg, and allow options to be specified directly
12708 as :KEY, VALUE pairs. Parse these options before binding socket.
12709 As before, :reuseaddr t is default for a server process, but this
12710 can now be disabled by specifying :reuseaddr nil.
12711 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
12712 (init_process): Availability of network options is now checked with
12713 simpler syntax (featurep 'make-network-process :OPTION); use loop to
12714 setup features.
12715 (syms_of_process): Fix defsubr's for the replaced functions.
12716
12717 2003-09-16 Dave Love <fx@gnu.org>
12718
12719 * Makefile.in: Depend on coding.h.
12720
12721 2003-09-14 Kim F. Storm <storm@cua.dk>
12722
12723 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
12724 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
12725 (syms_of_process): Defsubr them.
12726
12727 * config.in: Regenerate.
12728
12729 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12730
12731 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
12732 * m/news-r6.h (XUNMARK): Remove.
12733 * m/mips.h (XUNMARK): Remove.
12734 * m/mips-siemens.h (XUNMARK): Remove.
12735 * m/iris4d.h (XUNMARK): Remove.
12736 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
12737
12738 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12739
12740 * lisp.h (VALBITS): Don't remove 1 for the markbit.
12741 (union Lisp_Object): Use unsigned int for types. Remove markbit.
12742 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
12743 (XTYPE): Use unsigned right-shift.
12744 (XMARKBIT, XMARK, XUNMARK): Remove.
12745
12746 * alloc.c (init_intervals, init_symbol, init_marker):
12747 Don't preallocate anything.
12748 (Fgarbage_collect, mark_object): Ignore the markbit.
12749
12750 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
12751
12752 2003-09-08 Lute Kamstra <lute@gnu.org>
12753
12754 * xdisp.c (pint2hrstr): New function.
12755 (decode_mode_spec): Add `%i' and `%I' specs.
12756 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
12757 for `mode-line-format'.
12758
12759 2003-09-07 Andreas Schwab <schwab@suse.de>
12760
12761 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
12762 avoid warning.
12763
12764 2003-09-07 Eli Zaretskii <eliz@gnu.org>
12765
12766 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
12767
12768 2003-09-03 Kim F. Storm <storm@cua.dk>
12769
12770 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
12771 change (superseded by 2002-08-30 change); the default blink-off
12772 cursor is now again "no cursor".
12773
12774 2003-09-01 Jason Rumney <jasonr@gnu.org>
12775
12776 * makefile.w32-in (alloca.o): Remove.
12777 (coding.o): Depend on intervals.h
12778 (emacs.o, bytecode.o): Depend on window.h
12779
12780 2003-09-01 Dave Love <fx@gnu.org>
12781
12782 * Makefile.in (alloca.o): Remove commands.
12783 (coding.o): Depend on intervals.h composite.h window.h.
12784 (emacs.o): Depend on window.h keyboard.h keymap.h.
12785 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
12786 (bytecode.o): Depend on window.h.
12787
12788 2003-08-31 Jason Rumney <jasonr@gnu.org>
12789
12790 * w32term.c (w32_per_char_metric): Allow cached metrics to be
12791 returned even when font_type is unknown.
12792
12793 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
12794
12795 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12796
12797 * xterm.c (x_term_init): Initialize new fields in x_display_info.
12798
12799 * xterm.h (struct x_display_info): Add red/green/blue_bits and
12800 *_offset.
12801
12802 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
12803 calculate pixel value.
12804
12805 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
12806
12807 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
12808 Don't tell redisplay display is accurate when it's actually been
12809 paused for pending input.
12810
12811 2003-08-29 Richard M. Stallman <rms@gnu.org>
12812
12813 * dispnew.c (adjust_glyph_matrix): Call window_box
12814 whenever W is nonzero.
12815
12816 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12817 (Fkill_local_variable, Fmake_variable_frame_local)
12818 (Flocal_variable_p, Flocal_variable_if_set_p):
12819 Use indirect_variable to trace thru variable aliases.
12820
12821 * config.in: Updated.
12822
12823 * callint.c (Fcall_interactively): Save and restore
12824 Vthis_command, Vthis_original_command, real_this_command,
12825 and current_kboard->Vlast_command.
12826
12827 * abbrev.c (Fexpand_abbrev): Insert before deleting.
12828
12829 2003-08-29 Gerd Moellmann <gerd@gnu.org>
12830
12831 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
12832
12833 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
12834
12835 * coding.c (decode_coding_iso2022): Initialize local variable c2.
12836 (decode_coding_sjis_big5): Likewise.
12837
12838 2003-08-27 Jason Rumney <jasonr@gnu.org>
12839
12840 * w32.c (sys_pipe): Protect against file descriptor overflow.
12841
12842 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
12843
12844 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
12845
12846 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
12847
12848 * xfns.c (Vgtk_version_string): New variable.
12849 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
12850
12851 2003-08-24 Eli Zaretskii <eliz@gnu.org>
12852
12853 * term.c (term_init): Remove `const' from buffer_size's declaration.
12854
12855 * Makefile.in (msdos.o): Depend on intervals.h.
12856
12857 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
12858
12859 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12860
12861 * xterm.h (struct x_display_info): New fields: client_leader_window
12862 and Xatom_wm_client_leader.
12863
12864 * xterm.c (x_initialize): Move call to x_session_initialize to ...
12865 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
12866
12867 * xsmfns.c (create_client_leader_window): New function.
12868 (x_session_initialize): Call create_client_leader_window, take
12869 dpyinfo as argument.
12870
12871 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
12872
12873 * Makefile.in (xsmfns.o): Add more depenedencies.
12874
12875 2003-08-21 Dave Love <fx@gnu.org>
12876
12877 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
12878
12879 2003-08-21 Kenichi Handa <handa@m17n.org>
12880
12881 * term.c (term_init): Fix previous change; don't rely on the
12882 length of `buffer' if TERMINFO is defined.
12883
12884 2003-08-20 Dave Love <fx@gnu.org>
12885
12886 * atimer.h: Include lisp.h.
12887
12888 * lisp.h (EMACS_LISP_H): New.
12889 (popup_activated_flag): Don't declare.
12890
12891 * alloca.c: Some merging with gnulib. Change logic and doc
12892 concerning (x)malloc/(x)free -- no longer Emacs-specific.
12893 [DO_BLOCK_INPUT]: Don't include lisp.h.
12894 (xmalloc, xfree): Declare.
12895 (malloc): Don't declare.
12896
12897 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
12898 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
12899 atimer.h, blockinput.h.
12900
12901 * alloc.c (lisp_align_malloc): Change type of `aligned'.
12902
12903 * alloca.s: Remove.
12904
12905 2003-08-19 Gerd Moellmann <gerd@gnu.org>
12906
12907 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
12908 use -lncurses.
12909
12910 * term.c (term_init): Use a buffer of size 4096 for tgetent since
12911 FreeBSD returns something longer than 2044. Abort if the end of
12912 the buffer is overwritten.
12913
12914 2003-08-19 Miles Bader <miles@gnu.org>
12915
12916 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
12917
12918 2003-08-19 Gerd Moellmann <gerd@gnu.org>
12919
12920 * alloc.c (lisp_align_malloc): Check for memory full when
12921 allocating ablocks, which also avoids freeing a pointer into an
12922 ablocks structure.
12923
12924 * puresize.h (BASE_PURESIZE): Increase to 1100000.
12925
12926 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
12927
12928 2003-08-16 Richard M. Stallman <rms@gnu.org>
12929
12930 * editfns.c (Fencode_time): Doc fix.
12931
12932 2003-08-16 David Ponce <david@dponce.com>
12933
12934 * fileio.c (Fwrite_region): Fix conditional expression to issue
12935 the right message.
12936
12937 2003-08-16 Juri Linkov <juri@jurta.org>
12938
12939 * syntax.c (Fforward_word): Argument changed to optional.
12940 Set default value to 1.
12941
12942 2003-08-15 Kenichi Handa <handa@m17n.org>
12943
12944 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
12945 what autoscaled.
12946 (best_matching_font): Once we find a better scalable font, set
12947 non_scalable_has_exact_height_p to 1.
12948 (try_font_list): Call try_alternative_families to try any family
12949 with the given registry.
12950
12951 2003-08-09 Andreas Schwab <schwab@suse.de>
12952
12953 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
12954
12955 * print.c (print_string): Fix printing of multibyte string with
12956 nontrivial printcharfun.
12957
12958 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12959
12960 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
12961
12962 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
12963
12964 2003-07-31 Kenichi Handa <handa@m17n.org>
12965
12966 * process.c (read_process_output): Return the actually read bytes
12967 instead of the result of decoding.
12968
12969 2003-07-31 Kenichi Handa <handa@m17n.org>
12970
12971 * xterm.h (struct x_bitmap_record): New member have_mask.
12972
12973 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
12974 to 0.
12975 (x_create_bitmap_from_file): Likewise.
12976 (x_destroy_bitmap): Check have_mask member before freeing a mask.
12977 (x_destroy_all_bitmaps): Likewise.
12978 (x_create_bitmap_mask): Set have_mask member to 1.
12979
12980 2003-07-30 Richard M. Stallman <rms@gnu.org>
12981
12982 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
12983
12984 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12985
12986 * gtkutil.c (xg_mark_data): Update calls to mark_object.
12987
12988 2003-07-29 Richard M. Stallman <rms@gnu.org>
12989
12990 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
12991 Conditionalize XIM code on HAVE_XIM.
12992
12993 * fns.c (Fclear_string): New function.
12994 (syms_of_fns): defsubr it.
12995
12996 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
12997
12998 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
12999
13000 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
13001
13002 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
13003
13004 * buffer.c (delete_all_overlays): New function.
13005 * buffer.h (delete_all_overlays): Declare.
13006 * coding.c (run_pre_post_conversion_on_str):
13007 * print.c (temp_output_buffer_setup):
13008 * fileio.c (Finsert_file_contents):
13009 * minibuf.c (get_minibuffer): Use it.
13010
13011 2003-07-22 Andrew Choi <akochoi@shaw.ca>
13012
13013 * unexmacosx.c (unexec_regions_sort_compare):
13014 (unexec_regions_merge): New functions. Sort and merge unexec
13015 regions before dumping them.
13016
13017 2003-07-22 Dave Love <fx@gnu.org>
13018
13019 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
13020
13021 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
13022
13023 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
13024 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
13025 MARKBIT as the gcmarkbit for strings.
13026
13027 2003-07-21 Richard M. Stallman <rms@gnu.org>
13028
13029 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
13030
13031 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
13032 (syms_of_fns): Corresponding change.
13033
13034 * alloc.c (syms_of_alloc): Doc fixes.
13035
13036 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
13037
13038 * s/netbsd.h: Use -Wl syntax.
13039
13040 2003-07-17 Richard M. Stallman <rms@gnu.org>
13041
13042 * xterm.c (xim_initialize): Redo 6/24 change.
13043
13044 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
13045
13046 * buffer.c (copy_overlays): Use EMACS_INT for positions.
13047 (Fswitch_to_buffer): Don't signal an error when switching to the same
13048 buffer in a dedicated window.
13049
13050 * alloc.c: Use bitmaps for cons, as was done for floats.
13051 (init_float, init_cons): Let the normal code allocate the first block.
13052 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
13053 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
13054 New macros.
13055 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
13056 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
13057 (live_cons_p): Check the pointer is not past the `conses' array.
13058 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
13059 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
13060 (survives_gc_p): Use CONS_MARKED_P and simplify.
13061 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
13062
13063 2003-07-13 Paul Eggert <eggert@twinsun.com>
13064
13065 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
13066 puts it into BSS instead, at least on Solaris 8 and 9.
13067 This is a valid optimization, and it may occur on other platforms,
13068 so Emacs should not assume that initializing a static variable to
13069 zero puts it into data.
13070 * alloc.c (pure, staticvec):
13071 Initialize these arrays to nonzero, so that they're not
13072 put into BSS by that optimization.
13073
13074 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
13075
13076 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
13077 (lisp_align_malloc): Use posix_memalign is available.
13078 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
13079 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
13080 for consistency. Update users.
13081
13082 2003-07-13 Richard M. Stallman <rms@gnu.org>
13083
13084 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
13085
13086 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
13087
13088 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
13089 and use the Gtk+ function gtk_window_icon_from_file if available.
13090
13091 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
13092 handle mask of bitmaps.
13093 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
13094 mask property.
13095 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
13096
13097 * xterm.h (xg_set_icon): New function.
13098
13099 2003-07-12 Paul Eggert <eggert@twinsun.com>
13100
13101 * unexelf.c (unexec): Consider a section to precede the .bss
13102 section if its addresses overlap that of .bss.
13103
13104 2003-07-12 Richard M. Stallman <rms@gnu.org>
13105
13106 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
13107
13108 * config.in (HAVE_CRTIN): Add #undef.
13109 (INLINE): Really inline only if OPTIMIZE is defined.
13110
13111 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
13112 END_FILES_1.
13113 (START_FILES_1, END_FILES_1): New macros (conditional).
13114 (LD_SWITCH_SYSTEM_TEMACS): Define.
13115
13116 * s/openbsd.h: Don't include bsd4-3.h.
13117 (TERMINFO): Define.
13118 (LIBS_TERMCAP): Define.
13119 (LD_SWITCH_SYSTEM): Define (two definitions).
13120
13121 * xfns.c: Include libpng/png.h instead of png.h.
13122
13123 2003-07-11 Andreas Schwab <schwab@suse.de>
13124
13125 * buffer.c (modify_overlay): Update prototype.
13126 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
13127 Likewise.
13128
13129 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13130
13131 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
13132 (struct interval): Move to intervals.h.
13133 (struct Lisp_Marker): Use EMACS_INT for position info.
13134 (forward_point): Remove prototype of defunct function.
13135 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
13136 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
13137 (syms_of_textprop, set_text_properties): Remove prototypes that are
13138 already in intervals.h.
13139
13140 * intervals.h (struct interval): Move from lisp.h.
13141 Use EMACS_INT for position and size info.
13142
13143 * coding.c: Include intervals.h for Fset_text_properties.
13144
13145 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
13146 position and length information.
13147
13148 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13149
13150 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
13151 position and length information.
13152
13153 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
13154
13155 Change overlays_after and overlays_before so the overlays themselves
13156 are linked into lists, rather than using cons cells. After all each
13157 Lisp_Misc already occupies 5 words, so we can add a `next' field to
13158 Lisp_Overlay for free and save up one cons cell per overlay (not
13159 to mention one indirection when traversing the list of overlay).
13160
13161 * lisp.h (struct Lisp_Overlay): New field `next'.
13162
13163 * buffer.h (struct buffer): Change overlays_before and overlays_after
13164 from Lisp lists of overlays to pointers to overlays.
13165
13166 * buffer.c (overlay_strings, recenter_overlay_lists):
13167 Fix typo in eassert in last commit.
13168 (unchain_overlay): New function.
13169 (add_overlay_mod_hooklist): Use AREF.
13170 (copy_overlays, reset_buffer, overlays_at, overlays_in)
13171 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
13172 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
13173 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
13174 (report_overlay_modification, evaporate_overlays, init_buffer_once):
13175 Adjust to new type of overlays_(before|after).
13176
13177 * alloc.c (mark_object): Mark the new `next' field of overlays.
13178 (mark_buffer): Manually mark the overlays_(after|before) fields.
13179
13180 * coding.c (run_pre_post_conversion_on_str):
13181 * editfns.c (overlays_around):
13182 * xdisp.c (load_overlay_strings):
13183 * fileio.c (Finsert_file_contents):
13184 * indent.c (current_column):
13185 * insdel.c (signal_before_change, signal_after_change):
13186 * intervals.c (set_point_both):
13187 * print.c (temp_output_buffer_setup): Use new type for
13188 overlays_(before|after).
13189
13190 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
13191
13192 * buffer.c (report_overlay_modification): Don't run hooks while
13193 traversing the list of overlays.
13194
13195 * buffer.h (struct buffer): Use an int for overlay_center.
13196 (overlays_at, evaporate_overlays, recenter_overlay_lists)
13197 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
13198
13199 * buffer.c (reset_buffer, recenter_overlay_lists)
13200 (adjust_overlays_for_insert, adjust_overlays_for_delete)
13201 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
13202 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
13203 (overlays_at, evaporate_overlays, recenter_overlay_lists)
13204 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
13205
13206 * xdisp.c (fast_find_position): Remove unused var.
13207
13208 * cmds.c (Qexpand_abbrev): New sym.
13209 (syms_of_cmds): Initialize it.
13210 (internal_self_insert): Use it to call expand-abbrev.
13211
13212 2003-07-09 Kim F. Storm <storm@cua.dk>
13213
13214 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
13215 was configured with --without-xim.
13216 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
13217
13218 2003-07-07 Richard M. Stallman <rms@gnu.org>
13219
13220 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
13221
13222 * alloc.c (Fgarbage_collect): Doc fix.
13223
13224 2003-07-07 Nozomu Ando <nand@mac.com>
13225
13226 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
13227
13228 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
13229
13230 * minibuf.c (read_minibuf): UNGCPRO before returning.
13231 (Ftry_completion, Fall_completions): Doc fix.
13232
13233 * alloc.c (live_float_p): Check that p is not past the `floats' array,
13234 now that `floats' is not the last element of the struct any more.
13235
13236 2003-07-06 Jason Rumney <jasonr@gnu.org>
13237
13238 * w32term.h (ClipboardSequence_Proc): New type.
13239
13240 * w32fns.c (clipboard_sequence_fn): New variable.
13241 (globals_of_w32fns): Initialize it.
13242
13243 * w32select.c (last_clipboard_sequence_number): New variable.
13244 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
13245 number if possible.
13246
13247 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
13248
13249 * m/amdx86-64.h (MARKBIT):
13250 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
13251 MARKBIT and ARRAY_MARK_FLAG any more.
13252
13253 * m/hp800.h (XSETMARKBIT):
13254 * m/sr2k.h (XSETMARKBIT):
13255 * lisp.h (XSETMARKBIT): Remove unused macro.
13256
13257 * lisp.h (mark_object): Change prototype.
13258
13259 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
13260 (last_marked): Change accordingly.
13261 (mark_interval, mark_maybe_object, mark_maybe_pointer)
13262 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
13263 (mark_buffer): Update calls to mark_object.
13264
13265 * bytecode.c (mark_byte_stack):
13266 * fns.c (sweep_weak_table):
13267 * keyboard.c (mark_kboards): Update calls to mark_object.
13268
13269 2003-07-06 Jason Rumney <jasonr@gnu.org>
13270
13271 * alloc.c (struct ablock): Only include padding when there is some.
13272
13273 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
13274
13275 * alloc.c (ALIGN): Add casts to simplify usage.
13276 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
13277 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
13278 (struct ablock, struct ablocks): New types.
13279 (free_ablock): New global var.
13280 (lisp_align_malloc, lisp_align_free): New functions.
13281 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
13282 (struct float_block): Reorder and add gcmarkbits.
13283 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
13284 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
13285 (init_float, make_float): Use lisp_align_malloc.
13286 (free_float, live_float_p): Don't use `type' any more.
13287 (make_float): Use FLOAT_UNMARK to access to mark bit.
13288 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
13289 Use FLOAT_MARKED_P to access the mark bit.
13290 (pure_alloc): Simplify use of ALIGN.
13291 (mark_object): Use FLOAT_MARK to access the mark bit.
13292 (gc_sweep): Use new macros to access the float's mark bit.
13293 (init_alloc_once): Init free_ablock.
13294
13295 * lisp.h (struct Lisp_Float): Remove unused field `type'.
13296
13297 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
13298
13299 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
13300 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
13301 (allocate_buffer): Move.
13302 (string_bytes): Don't mask markbit of `size_byte'.
13303 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
13304 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
13305 Use the `size' field of buffers (rather than the `name' field) for
13306 the mark bit, as is done for all other vectorlike objects.
13307 Use the new macros to access the mark bit of vectorlike objects.
13308
13309 2003-06-26 Richard M. Stallman <rms@gnu.org>
13310
13311 * puresize.h (BASE_PURESIZE): Increment base size.
13312
13313 * xdisp.c (fast_find_position): Enable Gerd's new definition.
13314
13315 * xterm.c (xim_initialize): Undo previous change.
13316
13317 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
13318
13319 * alloc.c (survives_gc_p): Simplify.
13320
13321 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
13322
13323 * window.c (Fset_window_dedicated_p): Simplify.
13324 (display_buffer_1): Don't raise the win from which minibuf was entered.
13325 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
13326 (Fminibuffer_selected_window): Simplify.
13327
13328 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
13329
13330 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
13331 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
13332
13333 * insdel.c (check_markers, adjust_markers_for_delete)
13334 (adjust_markers_for_insert, adjust_markers_for_replace)
13335 (prepare_to_modify_buffer, RESTORE_VALUE):
13336 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
13337 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
13338 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
13339 * alloc.c (Fmake_marker, free_marker, gc_sweep):
13340 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
13341 * editfns.c (save_excursion_restore, transpose_markers):
13342 * window.c (delete_window):
13343 * xdisp.c (message_dolog): Update for new types.
13344
13345 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13346
13347 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
13348 (realize_default_face): Use default_face_done_p for the force_p
13349 argument to set_lface_from_font_name. Set default_face_done_p to one.
13350
13351 * frame.c (make_frame): Initialize default_face_done_p.
13352
13353 * frame.h (struct frame): Add default_face_done_p.
13354
13355 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
13356 will be defined.
13357
13358 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
13359
13360 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
13361 Initialize the new field `gcmarkbit'.
13362 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
13363 (mark_interval_tree): Don't mark the tree separately from the nodes.
13364 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
13365 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
13366 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
13367
13368 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
13369 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
13370 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
13371 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
13372 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
13373
13374 2003-06-24 Dave Love <fx@gnu.org>
13375
13376 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
13377
13378 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
13379 from gnulib.
13380
13381 2003-06-21 Richard M. Stallman <rms@gnu.org>
13382
13383 * fileio.c (Fwrite_region): Alternate messages
13384 for append and partial write.
13385
13386 * keyboard.c (read_key_sequence): When converting upcase fn key to
13387 downcase, update fkey and keytran so `backspace' gets translated.
13388
13389 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
13390
13391 * process.c (wait_reading_process_input): Don't signal SIGIO
13392 in batch mode.
13393
13394 2003-06-17 Kenichi Handa <handa@m17n.org>
13395
13396 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
13397 composite.h.
13398
13399 * xselect.c: Don't include charset.h, coding.h, composite.h.
13400 (Qforeign_selection): New variable.
13401 (syms_of_xselect): Intern and static it.
13402 (selection_data_to_lisp_data): Return a unibyte string made from
13403 data with `foreign-selection' text property.
13404
13405 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
13406
13407 * termhooks.h (EVENT_INIT): New macro.
13408
13409 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
13410
13411 * alloc.c (mark_kboards): Move to keyboard.c.
13412
13413 * keyboard.c (record_asynch_buffer_change, read_avail_input):
13414 * xterm.c (x_dispatch_event):
13415 * xmenu.c (find_and_call_menu_selection):
13416 * xdisp.c (handle_tool_bar_click):
13417 * w32menu.c (menubar_selection_callback):
13418 * sysdep.c (kbd_input_ast, read_input_waiting):
13419 * msdos.c (dos_rawgetc):
13420 * macterm.c (mac_check_for_quit_char):
13421 * macmenu.c (menubar_selection_callback):
13422 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
13423 data to kbd_buffer_store_event.
13424
13425 2003-06-15 Kim F. Storm <storm@cua.dk>
13426
13427 * xdisp.c (x_fix_overlapping_area): Always use area relative X
13428 to fix redisplay problem with tall characters (such as \e,AC\e(B).
13429
13430 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
13431
13432 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
13433
13434 2003-06-12 Kenichi Handa <handa@m17n.org>
13435
13436 * fileio.c (Fwrite_region): Save and restore restriction.
13437
13438 2003-06-12 Dave Love <fx@gnu.org>
13439
13440 * alloca.c (alloca): Declare arg as size_t.
13441
13442 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
13443 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
13444
13445 2003-06-11 Dave Love <fx@gnu.org>
13446
13447 * search.c (shrink_regexp_cache): Use xrealloc.
13448 (syms_of_search): Use xmalloc.
13449
13450 2003-06-10 Kim F. Storm <storm@cua.dk>
13451
13452 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
13453 Adjust phys_cursor.x to be relative to window box, rather than
13454 text area before checking -- to ensure cursor is redrawn when
13455 exposing window.
13456 Note: This also fixes a similar (older) bug if display margins
13457 are present.
13458
13459 2003-06-06 Kenichi Handa <handa@m17n.org>
13460
13461 * coding.c (encoding_buffer_size): If coding->type is
13462 coding_type_ccl, double magnification on CRLF encoding.
13463
13464 2003-06-06 Jason Rumney <jasonr@gnu.org>
13465
13466 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
13467 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
13468
13469 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
13470 Mac too.
13471
13472 2003-06-05 Dave Love <fx@gnu.org>
13473
13474 * strftime.c: Merge changes from gnulib.
13475
13476 * mktime.c (__mktime_internal): Merge changes from gnulib
13477 involving year 69 and dst2.
13478
13479 Changes to merge with gnulib version and be consistent with the
13480 autoconf test:
13481
13482 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
13483 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
13484 [HAVE_LOCALE_H]: Include locale.h.
13485 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
13486
13487 2003-06-05 Kim F. Storm <storm@cua.dk>
13488
13489 * window.c (coordinates_in_window): Convert X and Y to window
13490 relative coordinates inside mode-line and header-line parts.
13491 Convert X and Y to margin area relative coordinates inside left
13492 and right display margin parts.
13493
13494 2003-06-05 Jason Rumney <jasonr@gnu.org>
13495
13496 * w32fns.c (add_system_logical_colors_to_map): New function.
13497 (Fx_open_connection): Use it.
13498
13499 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
13500
13501 * process.c (allocate_pty): Revert part of the previous patch.
13502 (Faccept_process_output): Simplify.
13503
13504 2003-06-04 Jason Rumney <jasonr@gnu.org>
13505
13506 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
13507
13508 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
13509 (lispy_mouse_wheel_names): Remove.
13510 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
13511 Always define drag_and_drop_syms.
13512
13513 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
13514 WHEEL_EVENT events.
13515
13516 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
13517
13518 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
13519
13520 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
13521
13522 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13523
13524 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
13525 menu item label.
13526
13527 2003-06-03 Richard M. Stallman <rms@gnu.org>
13528
13529 * window.c (Fwindow_edges): Doc fix.
13530 (Fwindow_pixel_edges, Fwindow_inside_edges)
13531 (Fwindow_inside_pixel_edges): New functions.
13532 (syms_of_window): defsubr them.
13533
13534 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
13535 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
13536
13537 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
13538
13539 * dispnew.c (Fsit_for): Don't lie about the number of args.
13540
13541 2003-06-02 Dave Love <fx@gnu.org>
13542
13543 * callproc.c: Use HAVE_FCNTL_H, not USG5.
13544 (syms_of_callproc) <process-environment>: Doc fix.
13545
13546 * doc.c: Use HAVE_FCNTL_H, not USG5.
13547
13548 * xfaces.c (font_rescale_ratio): Fix for K&R.
13549
13550 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
13551
13552 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
13553
13554 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
13555
13556 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
13557 (xg_create_frame_widgets): Use ENCODE_UTF_8.
13558
13559 * xterm.c (Qutf_8): Move to coding.c
13560
13561 * xmenu.c (ENCODE_MENU_STRING): New.
13562 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
13563 Use it.
13564
13565 * coding.h (ENCODE_UTF_8): New.
13566 (Qutf_8): Declare.
13567
13568 * coding.c (Qutf_8): New.
13569 (syms_of_coding): Intern it.
13570
13571 * fns.c: Doc fixes.
13572
13573 2003-06-02 Kenichi Handa <handa@m17n.org>
13574
13575 * buffer.c (Fset_buffer_multibyte): Fix previous change.
13576
13577 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
13578
13579 * lread.c (openp): Make sure STR is a string.
13580
13581 2003-06-01 David Ponce <david@dponce.com>
13582
13583 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
13584 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
13585
13586 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
13587 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
13588 (discard_mouse_events): Discard WHEEL_EVENT events too.
13589 (lispy_wheel_names, wheel_syms): New.
13590 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
13591 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
13592 (make_lispy_event): Add WHEEL_EVENT handler.
13593
13594 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
13595 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
13596 WHEEL_EVENT events.
13597
13598 2003-05-31 John Paul Wallington <jpw@gnu.org>
13599
13600 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
13601 timer are in lisp/emacs-lisp.
13602
13603 2003-05-31 Kenichi Handa <handa@m17n.org>
13604
13605 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
13606 region when a buffer is changed to unibyte.
13607
13608 * charset.h (VALID_LEADING_CODE_P): New macro.
13609 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
13610
13611 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
13612 is nonzero, accept multibyte form of eight-bit-control chars.
13613 (decode_composition_emacs_mule): Likewise.
13614 (decode_coding_emacs_mule): Likewise.
13615 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
13616 multibyte form of eight-bit-control chars.
13617
13618 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
13619 (Finsert_file_contents): If coding-system-for-read is bound to
13620 Qauto_save_coding, use the coding system emacs-mule with special
13621 setting for recovering a file.
13622 (choose_write_coding_system): On auto saving, use the coding
13623 system emacs-mule with special setting for auto saving.
13624 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
13625
13626 2003-05-30 Kenichi Handa <handa@m17n.org>
13627
13628 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
13629 properly before calling ccl_driver.
13630
13631 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
13632
13633 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
13634 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
13635 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
13636
13637 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
13638
13639 * xfaces.c (realize_default_face): Do not abort if lface is
13640 non-existent - reverts change from 2003-05-19.
13641
13642 2003-05-29 Kenichi Handa <handa@m17n.org>
13643
13644 * coding.c (decode_coding_iso2022): Pay attention to the byte
13645 sequence of CTEXT extended segment, and retain those bytes as is.
13646
13647 2003-05-28 Kenichi Handa <handa@m17n.org>
13648
13649 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
13650 of CODING_REPLACEMENT_CHARACTER.
13651 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
13652 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
13653 check this flag on encoding.
13654 (encode_coding_sjis_big5):
13655 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
13656 (Fset_terminal_coding_system_internal):
13657 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
13658 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
13659
13660 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
13661 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13662 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
13663
13664 2003-05-28 Richard M. Stallman <rms@gnu.org>
13665
13666 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
13667
13668 * eval.c (unbind_to): Move init of this_binding to separate statement.
13669
13670 2003-05-28 Kim F. Storm <storm@cua.dk>
13671
13672 * xdisp.c (expose_window): Fix error in calculation of
13673 window relative coordinates of area to redisplay.
13674
13675 2003-05-27 Jason Rumney <jasonr@gnu.org>
13676
13677 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
13678
13679 2003-05-27 David Ponce <david@dponce.com>
13680
13681 Handle W32 mouse wheel events as mouse click events, like in X.
13682
13683 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
13684 MOUSE_WHEEL_EVENT anymore.
13685
13686 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
13687 Scrolling down/up the mouse wheel is respectively mapped to mouse
13688 button 4 and 5.
13689 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
13690 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
13691 WM_MOUSEWHEEL events.
13692
13693 2003-05-27 Andreas Schwab <schwab@suse.de>
13694
13695 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
13696
13697 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
13698 partially visible line.
13699
13700 * alloc.c (Fgarbage_collect): Fix last change.
13701
13702 2003-05-26 John Paul Wallington <jpw@gnu.org>
13703
13704 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
13705
13706 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
13707
13708 * window.c (Fset_window_buffer): Add type of `keep_margins'.
13709 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
13710
13711 * window.h (window_box_text_cols): Declare.
13712
13713 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
13714 (x_draw_vertical_border): Remove unused var `f'.
13715
13716 * xfaces.c (build_scalable_font_name): Remove `unused var
13717 pixel_size' warning.
13718
13719 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
13720
13721 * unexelf.c (unexec): Remove `unused var n' warning.
13722
13723 * strftime.c (my_strftime_localtime_r): Remove `defined but
13724 unused' warning.
13725
13726 * process.c (allocate_pty): Remove `unused var stb' and
13727 `cp might be used uninitialized' warnings.
13728
13729 * dispnew.c (mode_line_string): Remove unused var `f'.
13730
13731 * coding.c (find_safe_codings): Remove unused var `i'.
13732
13733 * bytecode.c (Fbyte_code): Remove `unused val' warning.
13734
13735 * buffer.c (Fkill_buffer): Remove unused var `list'.
13736
13737 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
13738
13739 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13740
13741 * frame.c (make_frame): Condition want_fullscreen with
13742 HAVE_WINDOW_SYSTEM.
13743
13744 2003-05-25 Juanma Barranquero <lektu@terra.es>
13745
13746 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
13747 (Fwindow_scroll_bars): Fix typo in docstring.
13748
13749 2003-05-24 Kim F. Storm <storm@cua.dk>
13750
13751 The following changes serve several purposes:
13752
13753 1) Swap the position of fringes and display margins in windows, i.e.
13754 the fringes are now displayed between the margins and the text area
13755 (by default).
13756
13757 2) Allow fringe and scroll bar parameters to be set per-buffer and
13758 per-window (like display margins). Such settings are now stored
13759 in window configurations, preserved when frames are resized, and
13760 copied when windows are split vertically or horizontally.
13761 Several bugs related to display margins have been fixed.
13762
13763 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
13764
13765 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
13766 rather than FRAME_WIDTH (FRAME_FONT (f)).
13767
13768 5) Introduce a consistent naming of variables, members and macros
13769 depending on whether their value is measured in pixels or in
13770 canonical columns/lines. Pixel dimensions are named *_width and
13771 *_height, while canonical columns/lines are named *_cols and
13772 *_lines. Pixel positions are named *_x and *_y, while column/line
13773 positions are named *_col and *_line.
13774
13775 6) Consolidate more of the X, W32, and MAC gui code by moving
13776 common data into struct frame, and generalize it for the non-gui
13777 case by using suitable defaults.
13778
13779 7) Cleanup and consolidate the macros controlling frame and window
13780 layout into frame.h and window.h, and generalize the use of the
13781 various window_box_* functions (enhanced to handle the new fringe
13782 position and the per-window fringe and scroll bar settings).
13783
13784 * frame.h (struct frame): Rename members height to text_lines,
13785 width to text_cols, window_height to total_lines, window_width to
13786 total_cols, new_height to new_text_lines, new_width to
13787 new_text_cols. All uses changed.
13788 (struct frame): New members which consolidate common members of
13789 x_output, w32_output, and mac_output structures: left_pos,
13790 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
13791 win_gravity, size_hint_flags, border_width, internal_border_width,
13792 line_height, fringe_cols, left_fringe_width, right_fringe_width,
13793 want_fullscreen. All uses changed.
13794 (struct frame): New member column_width contaning the canonical
13795 column width, analogue to line_height. All uses changed.
13796 (struct frame): Rename members scroll_bar_pixel_width to
13797 config_scroll_bar_width, and scroll_bar_cols to
13798 config_scroll_bar_cols. All uses changed.
13799 (struct frame): New member scroll_bar_actual_width which
13800 consolidates and renames the vertical_scroll_bar_extra member of
13801 x_output, w32_output, and mac_output structures. All uses changed.
13802 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
13803 from x/w32/macterm.h files. All uses changed. Also change code
13804 which referred to f->output_data...->pixel_height.
13805 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
13806 from x/w32/macterm.h files. All uses changed. Also change code
13807 which referred to f->output_data...->pixel_width.
13808 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
13809 Also change code which referred to f->height.
13810 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
13811 Also change code which referred to f->width.
13812 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
13813 to update new_text_lines and new_text_cols members directly.
13814 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
13815 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
13816 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
13817 FRAME_SCROLL_BAR_COLS. All uses changed.
13818 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
13819 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
13820 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
13821 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
13822 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
13823 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
13824 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
13825 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
13826 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
13827 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
13828 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
13829 Unconditionally return line_height member (it now has proper value
13830 also for non-window frames).
13831 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
13832 return new column_width member (rather than the default font width).
13833 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
13834 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
13835 from x/w32/macterm.h files. Unconditionally return corresponding
13836 member of frame structure (they now have proper values also for
13837 non-window frames).
13838 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
13839 Calculate return value from left and right widths.
13840 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
13841 internal_border_width member (has proper value for non-window frame).
13842 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
13843 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
13844 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
13845 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
13846 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
13847 consolidated from xterm.h, macterm.h, and w32term.h.
13848 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
13849 consolidated from xterm.h, macterm.h, and w32term.h.
13850 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
13851 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
13852 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
13853 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
13854 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
13855 consolidated from x/mac/w32term.h.
13856 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
13857 consolidated from x/mac/w32term.h.
13858 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
13859 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
13860 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
13861 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
13862
13863 * window.h (struct window): Rename members left to left_col,
13864 top to top_line, height to total_lines, width to total_cols,
13865 left_margin_width to left_margin_cols, right_margin_width to
13866 right_margin_cols, orig_height to orig_total_lines, orig_top to
13867 orig_top_line. All uses changed.
13868 (struct window): New members left_fringe_width, right_fringe_width,
13869 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
13870 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
13871 New macros primarily used to simplify other macros.
13872 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
13873 referred to XINT (w->width).
13874 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
13875 referred to XINT (w->height).
13876 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
13877 referred to XINT (w->width) * canon_x_unit.
13878 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
13879 referred to XINT (w->height) * canon_y_unit.
13880 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
13881 referred to XINT (w->left).
13882 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
13883 all uses and code that referred to XINT (w->left) + XINT (w->width).
13884 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
13885 referred to XINT (w->top).
13886 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
13887 referred to XINT (w->top) + XINT (w->height).
13888 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
13889 referred to XINT (w->left) * canon_x_unit.
13890 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
13891 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
13892 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
13893 referred to XINT (w->top) * canon_y_unit.
13894 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
13895 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
13896 (WINDOW_LEFTMOST_P): New macro.
13897 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
13898 All uses changed.
13899 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
13900 All uses changed.
13901 (WINDOW_BOX_LEFT_EDGE_X): Rename from
13902 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
13903 Do not exclude left fringe width.
13904 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
13905 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
13906 Do not exclude fringe widths.
13907 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
13908 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
13909 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
13910 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
13911 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
13912 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
13913 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
13914 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
13915 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
13916 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
13917 New macros. Change code which referenced corresponding
13918 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
13919 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
13920 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
13921 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
13922 allow per-window scroll-bar settings.
13923 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
13924 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
13925 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
13926 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
13927 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
13928 FRAME_SCROLL_BAR_WIDTH.
13929 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
13930 (WINDOW_SCROLL_BAR_AREA_X): New macros.
13931 (WINDOW_HEADER_LINE_HEIGHT): Rename from
13932 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
13933 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
13934 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
13935 (WINDOW_BOX_TEXT_HEIGHT): Rename from
13936 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
13937 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
13938 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
13939 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
13940 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
13941 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
13942 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
13943 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
13944 (window_from_coordinates): Update prototype.
13945 (Fset_window_buffer): Update EXFUN.
13946 (set_window_buffer): Update prototype.
13947
13948 * dispextern.h (struct glyph_matrix): Rename members window_left_x
13949 to window_left_col, window_top_y to window_top_line. All uses
13950 changed.
13951 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
13952 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
13953 internal_border_width is now set to 0 for non-window frames.
13954 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
13955 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
13956 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
13957 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
13958 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
13959 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
13960 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
13961 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
13962 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
13963 Move to window.h and renamed [see window.h changes].
13964 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
13965 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
13966 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
13967 Use WINDOW_TOTAL_LINES.
13968 (frame_update_line_height): Remove prototype.
13969
13970 * buffer.h (struct buffer): Rename members measured in columns:
13971 left_margin_width to left_margin_cols, right_margin_width to
13972 right_margin_cols. All uses changed.
13973 New members left_fringe_width, right_fringe_width,
13974 fringes_outside_margins for per-buffer fringe settings.
13975 New members scroll_bar_width and vertical_scroll_bar_type for
13976 per-buffer scroll bar settings.
13977
13978 * buffer.c (init_buffer_once): Set buffer_defaults and
13979 buffer_local_flags for new buffer-local variables
13980 left_fringe_width, right_fringe_width, fringes_outside_margins,
13981 scroll_bar_width, and vertical_scroll_bar_type.
13982 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
13983 default-* variables for them.
13984
13985 * dispnew.c: Make (many) trivial substitutions for renamed and
13986 new macros in dispextern.h, frame.h and window.h.
13987 (mode_line_string): No need to adjust width for mode lines, as it
13988 is already adjusted by the caller.
13989 (marginal_area_string): Handle fringes inside/outside margins.
13990
13991 * frame.c: Make (many) trivial substitutions for renamed and
13992 new macros in dispextern.h, frame.h and window.h.
13993 (make_frame): Initialize left_fringe_width, right_fringe_width,
13994 fringe_cols, scroll_bar_actual_width, border_width,
13995 internal_border_width, column_width, line_height, x_pixels_diff,
13996 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
13997 members with values suitable for a non-window frames.
13998
13999 * gtkutil.c: Make (many) trivial substitutions for renamed and
14000 new macros in dispextern.h, frame.h and window.h.
14001
14002 * indent.c: Make (few) trivial substitutions for renamed and
14003 new macros in dispextern.h, frame.h and window.h.
14004
14005 * keyboard.c: Make (many) trivial substitutions for renamed and
14006 new macros in dispextern.h, frame.h and window.h.
14007 (make_lispy_event): Use window positions returned from
14008 window_from_coordinates when constructing the lisp event for
14009 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
14010 (incorrect) values locally.
14011 (make_lispy_movement): Use window positions returned from
14012 window_from_coordinates when constructing the lisp event, rather
14013 than calculating (incorrect) values locally.
14014
14015 * scroll.c: Make (some) trivial substitutions for renamed and
14016 new macros in dispextern.h, frame.h and window.h.
14017
14018 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
14019 scroll-bars.
14020
14021 * sysdep.c: Make (few) trivial substitutions for renamed and
14022 new macros in dispextern.h, frame.h and window.h.
14023
14024 * term.c: Make (some) trivial substitutions for renamed and
14025 new macros in dispextern.h, frame.h and window.h.
14026
14027 * widget.c: Make (few) trivial substitutions for renamed and
14028 new macros in dispextern.h, frame.h and window.h.
14029
14030 * window.c: Make (many) trivial substitutions for renamed and
14031 new macros in dispextern.h, frame.h and window.h.
14032 (make_window): Initialize new members
14033 left_margin_cols, right_margin_cols, left_fringe_width,
14034 right_fringe_width, fringes_outside_margins, scroll_bar_width,
14035 and vertical_scroll_bar_type.
14036 (coordinates_in_window): Adapt to new fringe/margin positions
14037 and per-window fringes and scroll-bars.
14038 Fix bug related to incorrectly adjusting coordinates by
14039 frame's internal_border_width (the effect normally negible since
14040 the internal_border_width is typically 0 or 1 pixel, but very
14041 noticeable for an internal_border_width of e.g. 25 pixels).
14042 Upon successful return (other than ON_NOTHING), the coordinates
14043 are now always properly converted to window relative for the
14044 given display element.
14045 (window_from_coordinates): Add new parameters wx and wy to
14046 return the window relative x and y position in the returned
14047 window and part. A null arg means, don't return the position.
14048 All callers changed.
14049 (adjust_window_margins): New function which may reduce the width
14050 of the display margins if a window's text area is too small after
14051 resizing or splitting windows.
14052 (size_window): Fix bug that did not account for display margin
14053 widths when checking the minimum width of a window; use
14054 adjust_window_margins.
14055 (set_window_buffer): Call Fset_window_fringes and
14056 Fset_window_scroll_bars to setup per-window elements.
14057 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
14058 existing display margin, fringe widths, and scroll bar settings
14059 (e.g. after splitting a window or resizing the frame).
14060 All callers changed.
14061 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
14062 (Fsplit_window): Duplicate original window's display margin,
14063 fringe, and scroll-bar settings; then call Fset_window_buffer with
14064 KEEP_MARGINS non-nil. This fixes a bug which caused a split
14065 window to only preserve the display margins in one of the windows.
14066 When splitting horizontally, call adjust_window_margins on both
14067 windows to ensure that the text area of the new windows is non too
14068 narrow. This fixes a bug which could cause Emacs to trap if the
14069 width of the split window was less than the width of the display
14070 margins.
14071 (window_box_text_cols): Rename from window_internal_width.
14072 All uses changed. Adapt to per-window fringes and scroll bars.
14073 Fix bug that caused vertical separator to be subtracted also on
14074 window frames. Fix another bug that did not reduce the returned
14075 value by the columns used for display margins.
14076 (window_scroll_line_based): Fix bug related to scrolling too much
14077 when display margins are present (implicitly fixed by the fix to
14078 window_box_text_cols).
14079 (scroll_left, scroll_right): Fix bug related to scrolling too far
14080 by default when display margins are present (implicitly fixed by
14081 the fix to window_box_text_cols).
14082 (struct saved_window): Rename members left to left_col, top to
14083 top_line, width to total_cols, height to total_lines, orig_top to
14084 orig_top_line, orig_height to orig_total_lines. All uses changed.
14085 New members left_margin_cols, right_margin_cols,
14086 left_fringe_width, right_fringe_width, fringes_outside_margins,
14087 scroll_bar_width, and vertical_scroll_bar_type for saving
14088 per-window display elements.
14089 (Fset_window_configuration): Restore display margins, fringes,
14090 and scroll bar settings. This fixes a bug which caused display
14091 margins to be discarded when saving and restoring a window
14092 configuration.
14093 (save_window_save): Save display margins, fringes, and scroll bar
14094 settings. This fixes a bug which caused display margins to be
14095 discarded when saving and restoring a window configuration.
14096 (Fset_window_margins): Do nothing if display margins are not
14097 really changed. Otherwise, call adjust_window_margins to ensure
14098 the text area doesn't get too narrow. This fixes a bug which
14099 could cause Emacs to trap if setting display margins wider than
14100 the width of the window.
14101 (Fset_window_fringes): New defun to allow user to specifically set
14102 this window's fringe widths and position vs. display margins.
14103 (Fwindow_fringes): New defun to return window's actual fringe settings.
14104 (Fset_window_scroll_bars): New defun to allow user to specifically
14105 set this window's scroll bar width and position.
14106 (Fwindow_scroll_bars): New defun to return window's actual scroll
14107 bar settings.
14108 (compare_window_configurations): Also compare display margins,
14109 fringes, and scroll bar settings.
14110 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
14111
14112 * xdisp.c: Make (many) trivial substitutions for renamed and
14113 new macros in dispextern.h, frame.h and window.h.
14114 (window_box_width): Adapt to per-window fringes and scroll bars,
14115 and new fringe vs. display margin position. Note that returned
14116 value is no longer guaranteed to be a whole multiple of the frame
14117 column width, since per-window fringes may now be any width.
14118 (window_box_left_offset): New function like window_box_left, but
14119 value is relative to left border of window (rather than frame).
14120 (window_box_right_offset): New function like window_box_right,
14121 but value is relative to left border of window.
14122 (window_box_left): Adapt to per-window fringes and scroll bars,
14123 and new fringe vs. display margin position. Simplify by using
14124 WINDOW_LEFT_EDGE_X and window_box_left_offset.
14125 (window_box): Allow null args for unnecessary return values;
14126 change/simplify relevant callers.
14127 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
14128 and new fringe vs. display margin position.
14129 Use window_box_left_offset and window_box_right_offset
14130 (get_glyph_string_clip_rect): Adapt to per-window fringes and
14131 scroll bars, and new fringe vs. display margin position.
14132 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
14133 (draw_fringe_bitmap): Rework to handle per-window fringes and new
14134 fringe vs. display margin position.
14135 (hscroll_window_tree): Use window_box_width instead of window_box.
14136 (redisplay_window): Adapt to per-window scroll bars.
14137 (draw_glyphs): Rework to handle per-window fringes and scroll
14138 bars, and new fringe vs. display margin position.
14139 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
14140 (x_clear_end_of_line): Adapt to per-window fringes and scroll
14141 bars, and new fringe vs. display margin position. Fix bug which
14142 increased total width of full_width rows by width of scroll bars
14143 although window's total width already includes that.
14144 (x_fix_overlapping_area): Simplify using window_box_left_offset.
14145 (expose_area): Simplify using window_box_left_offset.
14146 (x_draw_vertical_border): Handle per-window scroll bar settings,
14147 mixing windows with left, right and no scroll bars.
14148
14149 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
14150 where it's used in x_list_fonts (for clarity).
14151 (frame_update_line_height): Remove unused function; functionality
14152 is now done directly when setting the default font in x_set_font.
14153
14154 * xfns.c: Make (many) trivial substitutions for renamed and
14155 new macros in dispextern.h, frame.h and window.h.
14156
14157 * xmenu.c: Make (some) trivial substitutions for renamed and
14158 new macros in dispextern.h, frame.h and window.h.
14159
14160 * xterm.h (struct x_output): Move members left_pos, top_pos,
14161 border_width, pixel_height, pixel_width, line_height,
14162 internal_border_width, vertical_scroll_bar_extra,
14163 left_fringe_width, right_fringe_width, fringe_cols,
14164 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14165 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
14166 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14167 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14168 (PIXEL_WIDTH, PIXEL_HEIGHT)
14169 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14170 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14171 frame.h and renamed [see frame.h changes].
14172 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14173 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14174 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14175 and renamed [see frame.h changes].
14176
14177 * xterm.c: Make (several) trivial substitutions for renamed and
14178 new macros in dispextern.h, frame.h and window.h.
14179 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14180 (scroll_run): Adapt to new fringe position.
14181 (glyph_rect): Use window coordinates returned from
14182 window_from_coordinates rather than frame_to_window_pixel_xy.
14183 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14184 scroll-bars.
14185 (handle_one_xevent): Simplify a USE_GTK conditional.
14186 (x_clip_to_row): Remove superfluous whole_line_p arg and code
14187 (fringes are now inside margins, i.e. always in the clipping area).
14188 All callers changed.
14189 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14190 directly, then call compute_fringe_widths. Don't call
14191 frame_update_line_height.
14192
14193 * w32term.h (struct w32_output): Move members left_pos, top_pos,
14194 border_width, pixel_height, pixel_width, line_height,
14195 internal_border_width, vertical_scroll_bar_extra,
14196 left_fringe_width, right_fringe_width, fringe_cols,
14197 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14198 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
14199 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14200 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14201 (PIXEL_WIDTH, PIXEL_HEIGHT)
14202 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14203 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14204 frame.h and renamed [see frame.h changes].
14205 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14206 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14207 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14208 and renamed [see frame.h changes].
14209
14210 * w32term.c: Make (several) trivial substitutions for renamed and
14211 new macros in dispextern.h, frame.h and window.h.
14212 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14213 (glyph_rect): Use window coordinates returned from
14214 window_from_coordinates rather than frame_to_window_pixel_xy.
14215 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14216 scroll-bars.
14217 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
14218 (fringes are now inside margins, i.e. always in the clipping area).
14219 All callers changed.
14220 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14221 directly, then call compute_fringe_widths. Don't call
14222 frame_update_line_height.
14223
14224 * w32console.c: Make (few) trivial substitutions for renamed and
14225 new macros in dispextern.h, frame.h and window.h.
14226
14227 * w32fns.c: Make (many) trivial substitutions for renamed and
14228 new macros in dispextern.h, frame.h and window.h.
14229
14230 * w32menu.c: Make (few) trivial substitutions for renamed and
14231 new macros in dispextern.h, frame.h and window.h.
14232
14233 * macterm.h (struct mac_output): Move members left_pos, top_pos,
14234 border_width, pixel_height, pixel_width, line_height,
14235 internal_border_width, vertical_scroll_bar_extra,
14236 left_fringe_width, right_fringe_width, fringe_cols,
14237 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
14238 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
14239 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
14240 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
14241 (PIXEL_WIDTH, PIXEL_HEIGHT)
14242 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
14243 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
14244 frame.h and renamed [see frame.h changes].
14245 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
14246 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
14247 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
14248 and renamed [see frame.h changes].
14249
14250 * macterm.c: Make (several) trivial substitutions for renamed and
14251 new macros in dispextern.h, frame.h and window.h.
14252 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
14253 (glyph_rect): Use window coordinates returned from
14254 window_from_coordinates rather than frame_to_window_pixel_xy.
14255 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
14256 scroll-bars.
14257 (x_clip_to_row): Remove superfluous whole_line_p arg and code
14258 (fringes are now inside margins, i.e. always in the clipping area).
14259 All callers changed.
14260 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
14261 directly, then call compute_fringe_widths. Don't call
14262 frame_update_line_height.
14263
14264 * macfns.c: Make (several) trivial substitutions for renamed and
14265 new macros in dispextern.h, frame.h and window.h.
14266 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
14267
14268 * macmenu.c: Make (few) trivial substitutions for renamed and
14269 new macros in dispextern.h, frame.h and window.h.
14270
14271 * msdos.h (struct x_output): Remove members left_pos, top_pos,
14272 and line_height, and use corresponding new members in struct
14273 frame. All uses changed.
14274 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
14275 superseeded by corresponding macros in frame.h.
14276
14277 * msdos.c: Make (several) trivial substitutions for renamed and
14278 new macros in dispextern.h, frame.h and window.h.
14279 (IT_note_mouse_highlight): Use updated window coordinates returned
14280 by window_from_coordinates, rather than adjusting them locally.
14281 (internal_terminal_init): No need to initialize line_height here;
14282 it now defaults to 1.
14283
14284 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
14285
14286 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
14287 dropping `down' events.
14288
14289 2003-05-24 Andreas Schwab <schwab@suse.de>
14290
14291 * coding.c (find_safe_codings): Fix last change.
14292
14293 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
14294
14295 * xfns.c (x_window): Fix typo from 2003-05-21 change.
14296
14297 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
14298
14299 * xdisp.c (display_mode_element): Increase max depth.
14300 Simplify the error handling code. Use a different error string
14301 for the case where we hit the depth limit.
14302
14303 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
14304
14305 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
14306
14307 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
14308
14309 * intervals.c (get_local_map): Don't get char-property of previous
14310 point any more: get_pos_property already does it and better.
14311
14312 2003-05-21 Dave Love <fx@gnu.org>
14313
14314 [Merged from unicode branch.]
14315
14316 * xfns.c (x_window, x_window): Use use_xim.
14317
14318 * xterm.c (use_xim): Initialize.
14319 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14320 (x_term_init): Maybe set use_xim.
14321
14322 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14323
14324 2003-05-21 Jason Rumney <jasonr@gnu.org>
14325
14326 * unexw32.c (_start): Remove _fmode initialization.
14327
14328 * emacs.c (main) [WINDOWSNT]: Move it here.
14329
14330 2003-05-20 Dave Love <fx@gnu.org>
14331
14332 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
14333
14334 2003-05-19 Richard M. Stallman <rms@gnu.org>
14335
14336 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
14337 as value for QCfont attribute.
14338 (realize_default_face): lface should already exist; crash if not.
14339 Specify 0 for FORCE_P when calling set_lface_from_font_name.
14340
14341 * frame.c (Fignore_event): Doc fix.
14342
14343 2003-05-19 Kenichi Handa <handa@m17n.org>
14344
14345 * coding.c (decode_coding_string): Handle post-read-conversion
14346 even if the coding doesn't require decoding.
14347
14348 2003-05-18 Richard M. Stallman <rms@gnu.org>
14349
14350 * callproc.c (Fcall_process_region): Doc fix.
14351
14352 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
14353
14354 * lread.c (Fload): Print a message if package is obsolete.
14355
14356 * window.c (Fselect_window): Add optional `norecord' arg.
14357 (select_window_1): Fold into Fselect_window.
14358 (select_window_norecord): New function.
14359 (temp_output_buffer_show): Use it. Preserve current buffer.
14360
14361 * window.h (Fselect_window): Update declaration.
14362
14363 * window.c (delete_window, Fother_window, Fset_window_configuration):
14364 * minibuf.c (read_minibuf):
14365 * macterm.c (x_new_focus_frame):
14366 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
14367 * callint.c (Fcall_interactively):
14368 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
14369
14370 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
14371
14372 2003-05-17 David Kastrup <dak@gnu.org>
14373
14374 * process.c (read_process_output): Back out change from 2003-03-09.
14375
14376 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
14377
14378 * editfns.c (get_pos_property): Don't assume that `object' = nil.
14379
14380 * textprop.c (text_property_stickiness): New arg `buffer'.
14381
14382 * intervals.h (text_property_stickiness): New arg `buffer'.
14383 (get_pos_property): Declare.
14384
14385 * intervals.c (get_local_map): Use get_pos_property, to obey
14386 stickiness and empty overlays.
14387 (create_root_interval, graft_intervals_into_buffer): Use BEG.
14388 (merge_properties, intervals_equal, merge_properties_sticky):
14389 Use XCAR, XCDR.
14390 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
14391
14392 2003-05-17 Richard M. Stallman <rms@gnu.org>
14393
14394 * minibuf.c (read_minibuf): If buffer is empty, record the default
14395 in the history.
14396 (Fminibuffer_complete_word): When deleting the overlap, take account
14397 of its real position.
14398
14399 * fns.c (map_char_table): Fix previous change.
14400
14401 * syntax.c (find_defun_start):
14402 When open_paren_in_column_0_is_defun_start,
14403 return beginning of buffer.
14404
14405 * lisp.h (map_char_table): Declare added arg.
14406
14407 * fns.c (map_char_table): New arg TABLE gets the master table.
14408 All calls changed.
14409 Process default and inheritance, resorting to Faref if necessary.
14410
14411 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14412 (Faccessible_keymaps): Pass new arg to map_char_table.
14413
14414 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
14415
14416 * casetab.c (set_case_table): Pass new arg to map_char_table.
14417
14418 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
14419
14420 * lisp.h (specbinding_func): New typedef.
14421 (struct specbinding): Use specbinding_func, to put the `volatile'
14422 in the right place.
14423
14424 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
14425 to avoid GCC warning.
14426
14427 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
14428
14429 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
14430
14431 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
14432
14433 * keyboard.c (apply_modifiers): Don't fill the other cache.
14434
14435 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
14436
14437 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
14438
14439 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
14440 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
14441 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
14442 (Fset_window_configuration, Fcurrent_window_configuration)
14443 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
14444 (Fpos_visible_in_window_p, mark_window_cursors_off)
14445 (window_internal_height, window_internal_width, Frecenter)
14446 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
14447 (replace_buffer_in_all_windows, init_window_once, init_window)
14448 (syms_of_window, keys_of_window): Move from lisp.h.
14449 * lisp.h: Move window.c declarations to window.h.
14450
14451 * bytecode.c: Include window.h.
14452 * emacs.c: Include window.h.
14453
14454 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
14455 (keyremap): Add `parent' field.
14456 (keyremap_step): Use it. Remove `parent' argument.
14457 (read_key_sequence): Setup and use the new `parent' field.
14458
14459 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
14460
14461 * keyboard.c (adjust_point_for_property): Ensure termination.
14462
14463 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
14464
14465 * keyboard.c (follow_key): Remove dead variable `did_meta'.
14466 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
14467 duplicated handling of function-key-map and key-translation-map
14468 in read_key_sequence.
14469 (read_key_sequence): Use them.
14470
14471 * keyboard.c (adjust_point_for_property): Try harder to move point
14472 to the non-sticky end of an invisible property.
14473
14474 * xdisp.c (single_display_prop_intangible_p): Make `space' display
14475 property intangible as well.
14476
14477 2003-05-10 Andreas Schwab <schwab@suse.de>
14478
14479 * xmenu.c (single_menu_item): Change last parameter to void* to
14480 avoid warning.
14481
14482 2003-05-09 Richard M. Stallman <rms@gnu.org>
14483
14484 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
14485 Bind Qinhibit_modification_hooks to t so there will be no GC.
14486 Rename local `tem' to `save_deactivate_mark'.
14487
14488 * eval.c (specpdl_ptr): Declare volatile.
14489 (unbind_to): Copy the whole binding and decrement specpdl_ptr
14490 before doing the work of unbinding it.
14491
14492 * lisp.h (struct specbinding): Declare elements volatile.
14493 (specpdl_ptr): Declare volatile.
14494
14495 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
14496
14497 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
14498 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
14499
14500 2003-05-08 Dave Love <fx@gnu.org>
14501
14502 * coding.c (Vlast_coding_system_used): Doc fix.
14503
14504 2003-05-07 Jason Rumney <jasonr@gnu.org>
14505
14506 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
14507 when system does not support them.
14508
14509 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
14510
14511 * fileio.c (Qwrite_region_annotate_functions): New var.
14512 (build_annotations): Use it to process the global part of the hook.
14513 (syms_of_fileio): Init and staticpro it.
14514
14515 * keyboard.c (safe_run_hooks_error): Display a message instead of
14516 silently ignoring the error.
14517
14518 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
14519
14520 * keyboard.c (input_available_signal): Mark static.
14521 (menu_bar_items): Use map_keymap.
14522 (menu_bar_one_keymap): Remove.
14523 (menu_bar_item): Adjust arglist (for use in map_keymap).
14524 Properly hide a second binding when not both are keymaps.
14525
14526 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
14527 (single_keymap_panes): Use it and map_keymap.
14528 (single_menu_item): Use skp as well.
14529
14530 * keymap.h (map_keymap_function_t): New type.
14531 (map_keymap): Declare.
14532
14533 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
14534 (map_keymap_call, Fmap_keymap): New functions.
14535 (syms_of_keymap): Defsubr map-keymap.
14536
14537 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14538
14539 * gtkutil.c (create_dialog, make_widget_for_menu_item)
14540 (make_menu_item, create_menus, xg_update_menu_item): Don't call
14541 ..._with_mnemonic functions for menu items.
14542
14543 2003-05-01 Kenichi Handa <handa@m17n.org>
14544
14545 * coding.c (coding_system_accept_latin_extra_p): Delete this
14546 function.
14547 (find_safe_codings): Pay attention to
14548 the property tranlsation-table-for-encode of each codings.
14549 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
14550
14551 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
14552
14553 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
14554
14555 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
14556
14557 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
14558
14559 * lisp.h (CHECK): Wrap args in parenthesis.
14560 (specbind): Fix doc: symbol = Qnil is not supported any more.
14561
14562 * bytecode.c (Fbyte_code) <unwind-protect>:
14563 Use Fprogn rather than 0 and Qnil.
14564
14565 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
14566 `double', and `triple' modifiers as well.
14567
14568 2003-04-30 Richard M. Stallman <rms@gnu.org>
14569
14570 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
14571
14572 * alloc.c (abort_on_gc): New variable.
14573 (Fgarbage_collect): Abort if abort_on_gc is set.
14574
14575 * lisp.h (abort_on_gc): Add decl.
14576
14577 * eval.c (Fsignal): Clear abort_on_gc.
14578
14579 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
14580 Reinit FORMAT_START and END before second scan.
14581
14582 * xdisp.c (move_it_vertically_backward): Do the final big else
14583 even if nlines is 0.
14584
14585 * xdisp.c (redisplay_internal): Finish the per-frame loop
14586 even if redisplay is suspended by input.
14587
14588 2003-04-24 Andrew Choi <akochoi@shaw.ca>
14589
14590 * macterm.c (x_list_fonts): Return all fonts that match if
14591 maxnames = -1.
14592
14593 2003-04-25 Kenichi Handa <handa@m17n.org>
14594
14595 * syntax.c (skip_chars): Fix previous change.
14596
14597 2003-04-24 Kenichi Handa <handa@m17n.org>
14598
14599 * syntax.c (skip_chars): Make the code faster by using the common
14600 technique of *p, *stop, and *endp.
14601
14602 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14603
14604 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
14605 tool_bar_items so GTK tool bar expose callback does not access items
14606 being updated.
14607
14608 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
14609
14610 * eval.c (Fapply): Undo last change and add a comment about why.
14611
14612 2003-04-18 Miles Bader <miles@gnu.org>
14613
14614 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
14615 pickier PARSE_MULTIBYTE_SEQ.
14616
14617 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
14618
14619 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
14620 Use XCDR, XCAR, CONSP.
14621 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
14622 (Fapply): Remove unnecessary GCPRO.
14623
14624 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
14625
14626 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
14627
14628 * buffer.h: Don't hardcode BEG==1.
14629
14630 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
14631
14632 2003-04-16 Richard M. Stallman <rms@gnu.org>
14633
14634 * xdisp.c (try_window, try_window_reusing_current_matrix):
14635 When at end of window, set window_end_pos to Z-ZV.
14636
14637 * buffer.c (Foverlay_recenter): Doc fix.
14638
14639 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
14640
14641 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
14642
14643 2003-04-14 Andrew Choi <akochoi@shaw.ca>
14644
14645 * macterm.c (mac_check_for_quit_char): Don't check more often than
14646 once a second.
14647
14648 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
14649
14650 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
14651 specially, so that they can't hide an implicit switch-frame event.
14652 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
14653 (head_table): Use switch-frame as event_kind for select-window.
14654 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
14655
14656 * editfns.c (Fformat): Lisp_Object/int mixup.
14657 (format2): Remove unused var numargs.
14658
14659 2003-04-11 Kenichi Handa <handa@m17n.org>
14660
14661 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
14662 (Qafter_insert_file_set_coding): New variable.
14663 (syms_of_fileio): Initialize and staticpro it. Delete declaration
14664 for after-insert-file-adjust-coding-function.
14665 (Finsert_file_contents): Call Qafter_insert_file_set_coding
14666 instead of Vafter_insert_file_adjust_coding_function.
14667
14668 2003-04-11 Kenichi Handa <handa@m17n.org>
14669
14670 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
14671
14672 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
14673 string. Callers changed.
14674
14675 2003-04-10 Kenichi Handa <handa@m17n.org>
14676
14677 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
14678 (syms_of_fileio): Declare it as a lisp variable.
14679 (Finsert_file_contents):
14680 Call Vafter_insert_file_adjust_coding_function before calling
14681 decode-format.
14682
14683 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14684
14685 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
14686 get GtkAdjustment as widget now is a GtkRange.
14687
14688 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
14689 GtkRange to avoid memory leak.
14690
14691 2003-04-09 Kenichi Handa <handa@m17n.org>
14692
14693 * xfaces.c (Vface_font_rescale_alist): New variable.
14694 (struct font_name): New member rescale_ratio.
14695 (font_rescale_ratio): New function.
14696 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
14697 (better_font_p): On comparing point sized, pay attention to
14698 recale_ratio member of fonts.
14699 (build_scalable_font_name): Reflect font->rescale_ratio in the
14700 font name.
14701 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14702
14703 * lread.c (read1): Before calling index, check if the 2nd
14704 arguemnt is in ASCII range.
14705
14706 2003-04-08 Richard M. Stallman <rms@gnu.org>
14707
14708 * fileio.c (Ffile_symlink_p): Doc fix.
14709
14710 * editfns.c (Fformat): Translate positions of text properties
14711 in the format string to apply them to the result.
14712
14713 * fileio.c (Finsert_file_contents): Doc fix.
14714 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14715
14716 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
14717
14718 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
14719
14720 2003-04-08 Steven Tamm <steventamm@mac.com>
14721
14722 * mac.c (init_mac_osx_environment): Switch libexec and bin so
14723 that self-contained application finds libexec files.
14724
14725 2003-04-08 Kenichi Handa <handa@m17n.org>
14726
14727 * coding.c (code_convert_region_unwind):
14728 Set Vlast_coding_system_used to the argument.
14729 (code_convert_region): If post-read-conversion function changed
14730 the value of last-coding-sytem, keep the new value in
14731 coding->symbol so that it won't be overridden.
14732 (run_pre_post_conversion_on_str): Likewise.
14733 (coding_system_accept_latin_extra_p): New function.
14734 (find_safe_codings): Pay attention to characters registered in
14735 latin-extra-code-table.
14736
14737 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
14738
14739 * Makefile.in (md5.o): Add missing dependency info.
14740
14741 2003-04-06 Richard M. Stallman <rms@gnu.org>
14742
14743 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
14744
14745 * marker.c (verify_bytepos): New function.
14746
14747 * intervals.c (set_intervals_multibyte_1): When becoming
14748 multibyte, adjust right and left child sizes to a whole set of
14749 characters. If an interval gets zero total-length, delete it.
14750 If an interval consists of just its children, delete one of them.
14751
14752 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
14753 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
14754
14755 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
14756 All calls deleted.
14757 (lisp_malloc): Do the work here directly.
14758
14759 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
14760
14761 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
14762 char tables.
14763
14764 2003-04-04 Kenichi Handa <handa@m17n.org>
14765
14766 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
14767 destructively change "%S" to "%s".
14768
14769 2003-04-03 Miles Bader <miles@gnu.org>
14770
14771 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
14772 always set.
14773
14774 2003-04-01 Dave Love <fx@gnu.org>
14775
14776 * xfns.c (xpm_lookup_color): Grok "opaque".
14777
14778 2003-03-31 Andrew Choi <akochoi@shaw.ca>
14779
14780 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
14781 parent window ID.
14782
14783 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
14784
14785 * macterm.h (struct mac_output): Define x_pixels_diff and
14786 y_pixels_diff.
14787
14788 2003-03-31 Juanma Barranquero <lektu@terra.es>
14789
14790 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
14791 blockinput.h and files included from it.
14792
14793 2003-03-31 Kim F. Storm <storm@cua.dk>
14794
14795 The following changes consolidates the common code related to
14796 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
14797 files into frame.c.
14798
14799 * frame.c: Include blockinput.h.
14800 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
14801 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
14802 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
14803 related vars here.
14804 (struct frame_parm_table, frame_parms): New table for describing
14805 frame parameters and their associated Q-variable.
14806 The order of the parameters corresponds to the sequence of the
14807 frame_parm_handlers table in redisplay_interface.
14808 (x_fullscreen_move, x_set_frame_parameters)
14809 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
14810 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
14811 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14812 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
14813 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
14814 Generic functions for processing of frame parameters.
14815 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
14816 (display_x_get_resource, x_get_resource_string): Functions for
14817 generic access to X resources.
14818 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
14819 (x_default_parameter, Fx_parse_geometry): Functions for generic
14820 access to frame parameters.
14821 (x_figure_window_size): Generic calculation of frame size.
14822 Fixed to add space needed for tool bar. Also setup size_hint_flags.
14823 (syms_of_frame): Intern and staticpro frame parameter variables.
14824 Defvar_lisp Vx_resource_class and Vx_resource_name here.
14825 Defsubr Sx_get_resource and Sx_parse_geometry.
14826
14827 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
14828 parameter related vars defined in frame.c.
14829 (EMACS_CLASS): Define here.
14830 (enum FULLSCREEN_*): Define here.
14831 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
14832 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
14833 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
14834 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
14835 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
14836 (x_set_visibility, x_set_autoraise, x_set_autolower)
14837 (x_set_unsplittable, x_set_vertical_scroll_bars)
14838 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
14839 (x_figure_window_size): Add prototypes.
14840
14841 * dispextern.h (frame_parm_handler): New typedef.
14842 (struct redisplay_interface): New member frame_parm_handlers.
14843 (enum resource_types): Move declaration here.
14844 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
14845 (x_default_parameter): Add prototypes.
14846
14847 * window.c: Remove extern decl for frame parameter vars.
14848 (change_window_heights): New generic function;
14849 replaces x_change_window_heights. All users changed.
14850
14851 * window.h (change_window_heights): Add prototype.
14852
14853 * xfaces.c: Remove extern decl for frame parameter vars.
14854
14855 * xterm.h (EMACS_CLASS): Remove. Use generic define.
14856 (struct w32_display_info): Fix type of xrdb member.
14857 (enum FULLSCREEN_*): Remove.
14858 Remove prototypes for generic functions (in frame.h).
14859
14860 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14861 parameters now defined in frame.h and frame.c.
14862 (Vx_resource_name): Remove. Use generic var.
14863 (enum x_frame_parms): Remove (bogus, unused enum).
14864 (check_x_display_info): Make non-static (for frame.c).
14865 (struct x_frame_parm_table, x_frame_parms): Remove.
14866 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14867 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14868 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14869 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14870 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14871 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14872 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14873 Remove. Use generic functions instead.
14874 (enum resource_types): Remove.
14875 (x_set_scroll_bar_default_width): New global function (for frame.c).
14876 (Fx_create_frame): Depend on x_figure_window_size to add space for
14877 toolbar and setup size_hint_flags.
14878 (x_frame_parm_handlers): New table for redisplay_interface.
14879 (syms_of_xfns): Don't intern/staticpro removed vars.
14880
14881 * xterm.c: Remove unnecessary extern declarations.
14882 (x_fullscreen_adjust): Remove. Use generic instead.
14883 (x_redisplay_interface): Add x_frame_parm_handlers member.
14884
14885 * w32gui.h (XrmDatabase): New (dummy) typedef.
14886
14887 * w32term.h (EMACS_CLASS): Remove. Use generic define.
14888 (struct w32_display_info): Fix type of xrdb member.
14889 (enum FULLSCREEN_*): Remove.
14890 (x_fullscreen_adjust): Remove prototype.
14891
14892 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14893 parameters now defined in frame.h and frame.c.
14894 (Vx_resource_name): Remove. Use generic var.
14895 (enum x_frame_parms): Remove (bogus, unused enum).
14896 (check_x_display_info): Make non-static (for frame.c).
14897 (struct x_frame_parm_table, x_frame_parms): Remove.
14898 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14899 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14900 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14901 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14902 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14903 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14904 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14905 Remove. Use generic functions instead.
14906 (enum resource_types): Remove.
14907 (x_set_scroll_bar_default_width): New global function (for frame.c).
14908 (Fx_create_frame): Depend on x_figure_window_size to add space for
14909 toolbar and setup size_hint_flags.
14910 (w32_frame_parm_handlers): New table for redisplay_interface.
14911 (syms_of_w32fns): Don't intern/staticpro removed vars.
14912
14913 * w32term.c: Remove unnecessary extern declarations.
14914 (x_fullscreen_adjust): Remove. Use generic instead.
14915 (x_redisplay_interface): Add w32_frame_parm_handlers member.
14916
14917 * w32reg.c (x_get_string_resource): Use XrmDatabase.
14918
14919 * macgui.h (XrmDatabase): New (dummy) typedef.
14920
14921 * macterm.h (EMACS_CLASS): Remove.
14922 (struct mac_display_info): Add xrdb member.
14923 (struct mac_output): Add want_fullscreen member.
14924
14925 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
14926 parameters now defined in frame.h and frame.c.
14927 (Vx_resource_name): Remove. Use generic var.
14928 (check_x_display_info): Make non-static (for frame.c).
14929 (struct x_frame_parm_table, x_frame_parms): Remove.
14930 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
14931 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
14932 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
14933 (x_change_window_heights, x_set_autoraise, x_set_autolower)
14934 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
14935 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
14936 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
14937 Remove. Use generic functions instead.
14938 (enum resource_types): Remove.
14939 (x_set_scroll_bar_default_width): New global function (for frame.c).
14940 (mac_frame_parm_handlers): New table for redisplay_interface.
14941 (syms_of_macfns): Don't intern/staticpro removed vars.
14942
14943 * macterm.c: Remove unnecessary extern declarations.
14944 (x_redisplay_interface): Add mac_frame_parm_handlers member.
14945
14946 * Makefile.in (frame.o): Add dependency on blockinput.h and files
14947 included from it (atimer.h and systime.h).
14948
14949 2003-03-30 Andreas Schwab <schwab@suse.de>
14950
14951 * xdisp.c (x_insert_glyphs): Fix swapped width and height
14952 parameters for shift_glyphs_for_insert.
14953
14954 * macterm.c (x_redisplay_interface): Add missing entry for
14955 draw_vertical_window_border.
14956
14957 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
14958
14959 * fileio.c (Fexpand_file_name): In the no-handler case, after
14960 expanding, look again for a handler and invoke it. This is needed
14961 for filenames like "/foo/../user@host:/bar/../baz" -- the first
14962 expansion produces "/user@host:/bar/../baz" which needs to be
14963 expanded again for the finame result "/user@host:/baz".
14964
14965 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14966
14967 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
14968 of area to be redrawn for better performance.
14969
14970 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
14971
14972 * xterm.c (take_vertical_position_into_account): Remove.
14973 (xt_action_hook): Call set_vertical_scroll_bar if needed.
14974 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
14975 (xm_scroll_callback, x_create_toolkit_scroll_bar)
14976 (x_set_toolkit_scroll_bar_thumb): Simplify.
14977 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
14978 (XTread_socket): Remove unused var.
14979 (x_make_frame_invisible): Replace goto with else.
14980
14981 * xdisp.c (set_vertical_scroll_bar): New fun.
14982 (redisplay_window): Use it.
14983
14984 2003-03-26 Richard M. Stallman <rms@gnu.org>
14985
14986 * xdisp.c (update_tool_bar): Recompute tool bar if
14987 update_mode_lines is set. Set w->update_mode_line
14988 only if the tool bar contents actually change.
14989 (update_menu_bar): Undo previous change.
14990
14991 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14992
14993 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
14994 (xg_frame_set_char_size): Calculate scroll bar width before frame
14995 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
14996 (xg_separator_p): Check for all documented separator types.
14997 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
14998 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
14999
15000 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
15001 so tool bar gets updated.
15002
15003 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
15004
15005 * data.c (store_symval_forwarding): Re-instate part of the code
15006 that was deleted with too much enthusiasm.
15007
15008 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
15009
15010 * data.c (store_symval_forwarding): Delete special read-only
15011 hack for type == -1, since we now use ->constant instead.
15012 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
15013
15014 * buffer.c (overlays_in): Declare static.
15015 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
15016 `constant' field rather than the variable's `type' field.
15017
15018 2003-03-24 Andrew Choi <akochoi@shaw.ca>
15019
15020 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
15021
15022 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
15023
15024 * fns.c [MAC_OSX]: Do not redefine vector.
15025
15026 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
15027
15028 * macgui.h: Remove definition of No_Cursor.
15029
15030 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
15031
15032 * xdisp.c: Define No_Cursor.
15033 (x_write_glyphs, notice_overwritten_cursor)
15034 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
15035 (note_mouse_highlight): Remove Mac-specific code.
15036 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
15037
15038 2003-03-24 John Paul Wallington <jpw@gnu.org>
15039
15040 * xdisp.c (redisplay_window): If mini window's buffer is not
15041 empty, then redisplay it like other windows.
15042
15043 2003-03-23 Kim F. Storm <storm@cua.dk>
15044
15045 * w32term.c (w32_draw_window_cursor): Fix last change.
15046
15047 2003-03-23 Kenichi Handa <handa@m17n.org>
15048
15049 * alloc.c (make_string_from_bytes, make_specified_string):
15050 Add `const' for the arg CONTENTS.
15051
15052 * lisp.h (make_string_from_bytes, make_specified_string):
15053 Prototypes adjusted.
15054
15055 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15056
15057 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
15058
15059 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
15060 (XG_SB_RANGE): New define.
15061
15062 * gtkutil.c (xg_fixed_handle_expose): New function.
15063 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
15064 expose events.
15065 (xg_update_scrollbar_pos): Take two more arguments, left and width
15066 of scroll bar including borders.
15067 Clear left and right part outside scroll bar separately as some
15068 themes have bars that are not an even number of pixels.
15069 Don't set reallocate_redraws, don't call
15070 gdk_window_process_all_updates.
15071 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
15072 so no need to change it. Calculate size and value with XG_SB_RANGE.
15073
15074 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
15075 Pass left and width of scroll bar including borders to
15076 xg_update_scrollbar_pos.
15077
15078 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
15079
15080 * Makefile.in: Make sure space precedes end-of-line backslashes.
15081
15082 2003-03-22 Kim F. Storm <storm@cua.dk>
15083
15084 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
15085 Add generic versions here. Remove system specific versions
15086 defined elsewhere.
15087
15088 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
15089 Add prototypes.
15090
15091 * xterm.h (STORE_NATIVE_RECT): New macro.
15092
15093 2003-03-21 Kim F. Storm <storm@cua.dk>
15094
15095 * xdisp.c (get_glyph_string_clip_rect):
15096 Use FRAME_INTERNAL_BORDER_WIDTH.
15097
15098 * dispextern.h (struct redisplay_interface): Add active_p
15099 argument to draw_window_cursor member. All uses changed.
15100
15101 2003-03-21 Kim F. Storm <storm@cua.dk>
15102
15103 The following changes consolidate code related to writing and
15104 inserting glyphs, exposing frame, the tool bar, the mouse face,
15105 the output cursor, and help echo from xterm.c, w32term.c and
15106 macterm.c into xdisp.c. It also generalizes the use of the
15107 window_part enum instead of using numeric values throughout.
15108
15109 * xdisp.c: Consolidate gui-independent code here.
15110 Include keymap.h.
15111 (Qhelp_echo): Import.
15112 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
15113 (help_echo_string, help_echo_window, help_echo_object)
15114 (previous_help_echo_string, help_echo_pos): Declare here.
15115 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
15116 (estimate_mode_line_height): Define here. Handle windowing
15117 systems directly (without using estimate_mode_line_height_hook).
15118 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
15119 (update_window_cursor, update_cursor_in_window_tree)
15120 (fast_find_position, fast_find_string_pos)
15121 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
15122 (expose_area, expose_line, expose_overlaps, expose_window)
15123 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
15124 declared static as they are only used locally in xdisp.c.
15125 (draw_glyphs): Rename from x_draw_glyphs and make static.
15126 (tool_bar_item_info, notice_overwritten_cursor): Make static.
15127 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
15128 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
15129 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
15130 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
15131 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
15132 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
15133 (note_mouse_highlight, x_clear_window_mouse_face)
15134 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
15135 (x_intersect_rectangles): New generic functions for use by xdisp.c
15136 and GUI front-ends.
15137 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
15138 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
15139
15140 * dispextern.h (Display_Info): Generic typedef for *_display_info.
15141 (NativeRectangle): Generic typedef for rectangle type.
15142 (enum window_part): Move here from window.c.
15143 (struct redisplay_interface): New members flush_display_optional,
15144 define_frame_cursor, clear_frame_area, draw_window_cursor,
15145 draw_vertical_window_border, shift_glyphs_for_insert.
15146 Rename member clear_mouse_face to clear_window_mouse_face.
15147 (estimate_mode_line_height_hook): Remove hook.
15148 (auto_raise_tool_bar_buttons_p): Don't declare extern.
15149 (tool_bar_item_info): Remove prototype.
15150 (help_echo_string, help_echo_window, help_echo_object)
15151 (previous_help_echo_string, help_echo_pos)
15152 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
15153 (x_stretch_cursor_p, output_cursor): Declare extern.
15154 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
15155 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
15156 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
15157 (display_and_set_cursor, set_output_cursor, x_cursor_to)
15158 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
15159 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
15160 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
15161 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
15162 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
15163 Add prototypes.
15164 (mode_line_string, marginal_area_string): Fix prototypes.
15165
15166 * window.c (enum window_part): Move to dispextern.h.
15167 (coordinates_in_window): Use enum window_part member names
15168 instead of numbers to describe return value.
15169 (struct check_window_data): Change part member to window_part.
15170 (check_window_containing): Return window_part unaltered.
15171 (window_from_coordinates): Change part arg from int to enum
15172 window_part. Allow part arg to be null. All users changed.
15173
15174 * window.h (window_from_coordinates): Fix prototype.
15175
15176 * term.c (estimate_mode_line_height): Move to xdisp.c.
15177
15178 * keyboard.c (make_lispy_event): Use enum window_part.
15179
15180 * dispnew.c (mode_line_string, marginal_area_string): Use enum
15181 window_part instead of int in arg list. Users changed.
15182
15183 * xterm.h (No_Cursor): Declare as None for X.
15184 (struct mac_output): Replace member cross_cursor by hand_cursor.
15185
15186 * xterm.c: Remove consolidated defines and code.
15187 (BETWEEN): Remove unused macro.
15188 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
15189 (x_define_frame_cursor, x_clear_frame_area)
15190 (x_draw_window_cursor): New X-specific functions for RIF.
15191 (x_redisplay_interface): Add new members.
15192
15193 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
15194
15195 * w32term.h (struct w32_output): Remove cross_cursor member.
15196
15197 * w32term.c: Remove consolidated defines and code.
15198 (BETWEEN): Remove unused macro.
15199 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
15200 (w32_define_frame_cursor, w32_clear_frame_area)
15201 (w32_draw_window_cursor): New W32-specific functions for RIF.
15202 (w32_redisplay_interface): Add new members.
15203
15204 * w32gui.h (No_Cursor): Define as 0 for W32.
15205 (XRectangle): Add X compatible rectangle type.
15206 (NativeRectangle): Declare as RECT for W32.
15207 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
15208
15209 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
15210
15211 * w32console.c: Remove consolidated defines and code.
15212
15213 * msdos.h (Display_Info): Add generic typedef.
15214
15215 * msdos.c: Remove consolidated defines and code.
15216 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
15217
15218 * macterm.h (struct mac_output): Replace member cross_cursor by
15219 hand_cursor.
15220 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
15221
15222 * macterm.c: Remove consolidated defines and code.
15223 (BETWEEN): Remove unused macro.
15224 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
15225 (mac_define_frame_cursor, mac_clear_frame_area)
15226 (mac_draw_window_cursor): New Mac-specific functions for RIF.
15227 (x_redisplay_interface): Add new members.
15228
15229 * macgui.h (No_Cursor): Define as 0 for Mac.
15230 (XRectangle): Add X compatible rectangle type.
15231 (NativeRectangle): Declare as Rect for Mac.
15232 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
15233
15234 * macfns.c (x_set_mouse_color): Setup hand_cursor.
15235 (x_set_cursor_color): Use x_display_and_set_cursor.
15236
15237 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
15238 included from it. Add dependency on keymap.h.
15239
15240 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
15241
15242 2003-03-21 Kenichi Handa <handa@m17n.org>
15243
15244 * fileio.c (Fexpand_file_name): Fix previous change.
15245
15246 2003-03-19 Kenichi Handa <handa@m17n.org>
15247
15248 * fileio.c (Ffile_name_directory): Reconstruct file name by
15249 make_specified_string.
15250 (Ffile_name_nondirectory, Ffile_name_as_directory)
15251 (Fdirectory_file_name, Fexpand_file_name)
15252 (Fsubstitute_in_file_name): Likewise.
15253 (Fread_file_name): Compare decoded homedir with DIR and
15254 DEFAULT_FILENAME.
15255
15256 * alloc.c (make_specified_string): If NCHARS is negative, count
15257 the number of characters.
15258
15259 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15260
15261 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
15262 all widgets.
15263
15264 * gtkutil.h: Removed xg_ignore_next_thumb.
15265
15266 2003-03-18 Kenichi Handa <handa@m17n.org>
15267
15268 * coding.c (Vchar_coding_system_table): Remove this variable.
15269 (Vcoding_system_safe_chars): New variable.
15270 (intersection): Remove this function.
15271 (find_safe_codings): Don't use Vchar_coding_system_table, but try
15272 all codings in SAFE_CODINGS.
15273 (Ffind_coding_systems_region_internal): Adjust for the change of
15274 find_safe_codings. Get generic coding systems from
15275 Vcoding_system_safe_chars.
15276 (Fdefine_coding_system_internal): New function.
15277 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
15278 Initialize and staticpro Vcoding_system_safe_chars.
15279
15280 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15281
15282 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
15283 equal old values before updating.
15284
15285 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
15286
15287 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
15288
15289 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15290
15291 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
15292 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
15293 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
15294 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
15295 (xg_create_scroll_bar): Pass bar to button event callback.
15296 (xg_find_top_left_in_fixed): New function.
15297 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
15298 whole scroll bar area. Get old position with
15299 xg_find_top_left_in_fixed, calculate and only clear needed areas.
15300 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
15301 dragging is in progress. Calculate whole as for Motif.
15302 Remove code that saved last values. Call gtk_range functions to
15303 set scroll bar sizes.
15304
15305 * gtkutil.h: Removed xg_ignore_next_thumb.
15306
15307 2003-03-17 Juanma Barranquero <lektu@terra.es>
15308
15309 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
15310 and files included from it.
15311
15312 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
15313
15314 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
15315 multiple occurrences of the same keymap under different prefixes.
15316 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
15317
15318 2003-03-16 Jason Rumney <jasonr@gnu.org>
15319
15320 * w32gui.h: Use HDC for Display.
15321
15322 * w32term.c (w32_encode_char): Prevent double-byte chars from
15323 crashing Emacs.
15324
15325 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
15326 as binary.
15327
15328 2003-03-16 Juanma Barranquero <lektu@terra.es>
15329
15330 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
15331
15332 2003-03-16 Kim F. Storm <storm@cua.dk>
15333
15334 The following changes consolidate some of the gui-independent
15335 parts of the processing and drawing of "glyph strings" from
15336 xterm.c, w32term.c, and macterm.c into xdisp.c.
15337
15338 * dispextern.h (struct glyph): Reduce face_id member from 22 to
15339 21 bits (this reduces number of faces from 4M to 2M).
15340 Replace W32 specific w32_font_type member (2 bits) by generic
15341 font_type member (3 bits) for portability.
15342 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
15343 (enum draw_glyphs_face): Define here.
15344 (struct glyph_string): Define here. Merge W32 and X versions.
15345 (struct redisplay_interface): New members per_char_metric,
15346 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
15347 (VCENTER_BASELINE_OFFSET): Define here.
15348 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
15349 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
15350
15351 * xdisp.c: Consolidate gui-independent "glyph string" code here.
15352 (dump_glyph_string): Moved here.
15353 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
15354 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
15355 (fill_composite_glyph_string, fill_glyph_string)
15356 (fill_image_glyph_string, fill_stretch_glyph_string)
15357 (left_overwritten, left_overwriting, right_overwritten)
15358 (right_overwriting, get_char_face_and_encoding)
15359 (set_glyph_string_background_width, compute_overhangs_and_x)
15360 (append_glyph, append_composite_glyph, produce_image_glyph)
15361 (take_vertical_position_into_account, append_stretch_glyph)
15362 (produce_stretch_glyph): New generic functions (based on X version).
15363 Call platform specific functions through rif.
15364 (INIT_GLYPH_STRING): New macro, hides W32 details.
15365 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
15366 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
15367 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
15368 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
15369 (notice_overwritten_cursor):
15370 Generic functions exported to platform modules. Users changed.
15371
15372 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
15373 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
15374 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
15375 New macros for consolidated code.
15376
15377 * xterm.c: Remove consolidated defines and code.
15378 (x_per_char_metric, x_encode_char)
15379 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
15380 (x_redisplay_interface): Add new members.
15381
15382 * w32gui.h (Display): Add dummy typedef for consolidation.
15383 (XChar2b): Define alias for wchar_t for consolidation.
15384 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
15385
15386 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
15387 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
15388 New macros for consolidation.
15389
15390 * w32term.c: Remove consolidated defines and code.
15391 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
15392 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
15393 (w32_per_char_metric): Change font_type arg to int for RIF.
15394 (w32_encode_char): Return int according to RIF requirements.
15395 (w32_compute_glyph_string_overhangs): Adapt to RIF.
15396 (w32_get_glyph_overhangs): New function for RIF. Uses generic
15397 x_get_glyph_overhangs.
15398 (w32_redisplay_interface): Add new members.
15399
15400 * macgui.h (XChar2b): Move typedef here for consolidation.
15401 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
15402
15403 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
15404 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
15405 consolidation.
15406
15407 * macterm.c: Remove consolidated defines and code.
15408 (mac_per_char_metric): New function for RIF.
15409 (mac_encode_char): Adapt to new RIF requirements.
15410 (mac_compute_glyph_string_overhangs): Adapt for RIF.
15411 (x_redisplay_interface): Add new members.
15412
15413 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
15414
15415 * keymap.c (Vmenu_events): New var.
15416 (syms_of_keymap): Initialize it.
15417 (where_is_internal): Check more carefully what is a menu event.
15418
15419 2003-03-14 Richard M. Stallman <rms@gnu.org>
15420
15421 * lread.c (read1): After #!, exit loop on eof.
15422
15423 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15424
15425 * gtkutil.h: Add declaration for xg_frame_cleared.
15426
15427 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
15428
15429 * gtkutil.c (struct xg_last_sb_pos): New structure.
15430 (handle_fixed_child): New function.
15431 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
15432 and force a redraw on them.
15433 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
15434 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
15435 so we can avoid unneeded redraws.
15436 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
15437 and force a redraw on the scroll bar.
15438 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
15439 if xg_last_sb_pos shows the positions are up to date.
15440 (xg_frame_cleared): New function.
15441
15442 2003-03-13 Kenichi Handa <handa@m17n.org>
15443
15444 * coding.c (Fdetect_coding_region): Fix docstring.
15445 (Fdetect_coding_string): Fix docstring.
15446
15447 2003-03-13 Andreas Schwab <schwab@suse.de>
15448
15449 * gtkutil.c: Add prototype for create_menus.
15450
15451 * data.c (long_to_cons): Fix type of top.
15452
15453 * xselect.c (selection_data_to_lisp_data): Use int instead of
15454 long for an integer of size 4.
15455
15456 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
15457 (xg_tool_bar_help_callback): Likewise.
15458
15459 2003-03-12 Andreas Schwab <schwab@suse.de>
15460
15461 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
15462
15463 2003-03-12 Kim F. Storm <storm@cua.dk>
15464
15465 The following changes consolidate the fringe handling from
15466 xterm.c, w32term.c, and macterm.c into xdisp.c.
15467
15468 * xdisp.c: Consolidate fringe handling code here.
15469 (left_bits, right_bits, continued_bits, continuation_bits)
15470 (ov_bits, zv_bits): Define fringe bitmaps.
15471 (fringe_bitmaps): New array holding fringe bitmaps.
15472 (draw_fringe_bitmap): Draw a specific bitmap; call display
15473 specific drawing routine via rif->draw_fringe_bitmap.
15474 (draw_row_fringe_bitmaps): Generic replacement for
15475 x_draw_row_fringe_bitmaps; all callers changed.
15476 (compute_fringe_widths): Generic replacement for
15477 x_compute_fringe_widths; all callers changed.
15478
15479 * dispextern.h (enum fringe_bitmap_type): Define here.
15480 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
15481 (fringe_bitmaps): Declare extern.
15482 (struct redisplay_interface): New member draw_fringe_bitmap.
15483 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
15484
15485 * xterm.c: Remove generic fringe code.
15486 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
15487 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
15488
15489 * w32term.c: Remove generic fringe code.
15490 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
15491 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
15492
15493 * macterm.c: Remove generic fringe code.
15494 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
15495 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
15496
15497 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
15498
15499 * print.c (Fprin1_to_string): Return unibyte string if possible.
15500
15501 2003-03-09 David Kastrup <dak@gnu.org>
15502
15503 * process.c (read_process_output): We have allocated enough space
15504 for readmax and carryover, so actually use the alloted space.
15505
15506 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15507
15508 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
15509 toolkit scrollbar click.
15510
15511 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
15512 for USE_GTK.
15513 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
15514 also.
15515 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
15516 scrollbar and control is pressed, call x_scroll_bar_handle_click.
15517
15518 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
15519
15520 * gtkutil.c (xg_get_scroll_id_for_window): New function.
15521 (xg_tool_bar_item_expose_callback): New function.
15522 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
15523 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
15524 on the tool bar widget.
15525 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
15526 to expose on the tool bar item widgets.
15527
15528 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15529
15530 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
15531 struct image* when deciding to update (struct image* may have been
15532 deleted from the image cache).
15533
15534 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
15535 the event isn't for a frame (i.e. for dialogs).
15536
15537 2003-03-07 Kenichi Handa <handa@m17n.org>
15538
15539 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
15540 composition components reaches the limit, terminate composing.
15541 (COMPOSITION_OK): New macro.
15542 (detect_coding_iso2022): Use it if an escape sequence for
15543 composition is found.
15544 (coding_restore_composition): Adjust the number of composition
15545 components if it is not sane.
15546
15547 2003-03-06 Juanma Barranquero <lektu@terra.es>
15548
15549 * w32term.h (struct w32_display_info): Add xrdb member to support
15550 passing resources via -xrm on Windows.
15551
15552 * w32term.c (w32_make_rdb): New function.
15553 (w32_term_init): Use it to initialize xrdb member of w32_display_info
15554 struct. Delete leftover code.
15555
15556 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
15557 for resources passed on the command line.
15558
15559 * w32reg.c (w32_get_rdb_resource): New function.
15560 (x_get_string_resource): Use it, so resources passed with -xrm
15561 supercede the ones in the registry.
15562
15563 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15564
15565 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
15566 instead of x_top_window_to_frame.
15567
15568 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15569
15570 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
15571 when restarting Emacs.
15572
15573 2003-03-03 Richard M. Stallman <rms@gnu.org>
15574
15575 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
15576 to run kill-buffer-query-functions.
15577 (Qkill_buffer_query_functions): New var.
15578 (syms_of_buffer): Init and staticpro it.
15579
15580 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15581
15582 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
15583
15584 2003-02-25 Kim F. Storm <storm@cua.dk>
15585
15586 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
15587 If centering point failed to make whole line visible and vscroll
15588 is non-zero, disable vscroll and try centering point again.
15589
15590 * lread.c (read1): Accept `single space' syntax like (? x).
15591
15592 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15593
15594 * keyboard.c (cancel_hourglass_unwind): Surround with
15595 #ifdef HAVE_X_WINDOWS
15596
15597 2003-02-25 Kenichi Handa <handa@m17n.org>
15598
15599 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
15600 process only when "subprocesses" is defined.
15601
15602 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
15603
15604 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
15605
15606 2003-02-24 Juanma Barranquero <lektu@terra.es>
15607
15608 * callint.c (fix_command): Declare as static void and move before
15609 Fcall_interactively.
15610
15611 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
15612 (syms_of_xdisp): Don't initialize Qwhen.
15613
15614 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15615
15616 * keyboard.c (cancel_hourglass_unwind): New function.
15617 (command_loop_1): Cancel hourglass with unwind-protect.
15618
15619 2003-02-23 Richard M. Stallman <rms@gnu.org>
15620
15621 * callint.c (fix_command): New subroutine, from Fcall_interactively.
15622 Detect (when ... (region-beginning)) etc.
15623 (Fcall_interactively): Call fix_command.
15624 (Qif, Qwhen): New variables.
15625 (syms_of_callint): Init and staticpro them.
15626
15627 * regex.c (print_partial_compiled_pattern): Output to stderr.
15628
15629 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
15630
15631 * dired.c (directory_files_internal): Don't expand directory.
15632 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
15633 instead. From Lars Hansen <larsh@math.ku.dk>.
15634
15635 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
15636
15637 * fns.c (string_to_multibyte): Remove unused var i.
15638 (Flanginfo): Fix int/Lisp_Object mixup.
15639 (void_call2): New fun.
15640 (Fmap_char_table): Use it in place of call2.
15641
15642 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
15643
15644 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
15645
15646 * keymap.c (copy_keymap_1): Make it static.
15647
15648 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
15649
15650 2003-02-22 David Ponce <david@dponce.com>
15651
15652 * lread.c (Fload): Don't check STRING_MULTIBYTE.
15653
15654 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15655
15656 * process.h: Removed subtty field from struct Lisp_Process.
15657
15658 * process.c (create_process): Remove setting of subtty.
15659 (emacs_get_tty_pgrp): New function.
15660 (Fprocess_running_child_p, process_send_signal):
15661 Call emacs_get_tty_pgrp instead of ioctl.
15662 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
15663
15664 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
15665
15666 * keymap.c (Fdefine_key): Doc fix.
15667
15668 2003-02-21 Juanma Barranquero <lektu@terra.es>
15669
15670 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
15671
15672 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
15673 POLLING_PROBLEM_IN_SELECT.
15674
15675 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
15676 Delete #undef of POLLING_PROBLEM_IN_SELECT.
15677
15678 * s/hpux10-20.h: New file.
15679
15680 * process.c (wait_reading_process_input):
15681 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
15682
15683 2003-02-20 Kenichi Handa <handa@m17n.org>
15684
15685 * fontset.c (check_fontset_name): If NAME is nil, return the
15686 default fontset.
15687 (override_font_info): New function.
15688 (Fset_fontset_font): Document that NAME nil means the default fontset.
15689 (Ffontset_info): If FONTSET is not the default fontset, merge
15690 FONTSET onto the copy of the default fontset, and work on that
15691 copy. Document that NAME nil means the default fontset.
15692 (Ffontset_font): Document that NAME nil means the default fontset.
15693
15694 * process.c (setup_process_coding_systems): If the process's
15695 in/out descriptor is -1, do nothing.
15696
15697 2003-02-19 Andreas Schwab <schwab@suse.de>
15698
15699 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
15700 Add prototypes.
15701
15702 2003-02-19 Kenichi Handa <handa@m17n.org>
15703
15704 * xfaces.c (try_alternative_families): Try all scalable fonts if
15705 Vscalable_fonts_allowed is not Qt.
15706
15707 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15708
15709 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
15710
15711 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15712
15713 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
15714 names.
15715
15716 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
15717 (sorted_font_list): Move allocation of struct font_name to
15718 x_face_list_fonts.
15719 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
15720 (Fx_list_fonts): Set maxnames to -1 to get all font names.
15721
15722 2003-02-18 Kim F. Storm <storm@cua.dk>
15723
15724 * lread.c (read1): Fix last change.
15725 "`" is not always special. Allow "?" after a character constant.
15726
15727 2003-02-18 Andrew Choi <akochoi@shaw.ca>
15728
15729 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
15730
15731 2003-02-18 Andreas Schwab <schwab@suse.de>
15732
15733 * window.c (window_scroll_pixel_based): Move outside a
15734 multi-glyph character before setting new window start.
15735
15736 * xdisp.c (in_display_vector_p): New function.
15737 * dispextern.h (in_display_vector_p): Declare.
15738
15739 2003-02-18 Kim F. Storm <storm@cua.dk>
15740
15741 * lread.c (read1): Fix and relax read syntax.
15742 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
15743 Only recognize "," after dotted-pair dot if inside backquote.
15744 Never include "`" or "," (inside backquote) in a symbol.
15745 Allow dotted-pair dot after a character constant.
15746 Allow "`" and "," (inside backquote) after a character constant.
15747
15748 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15749
15750 * gtkutil.c (xg_tool_bar_expose_callback): New function.
15751 (xg_create_tool_bar): Force style of tool bar to be horizontal with
15752 icons. Set name of tool bar to emacs-toolbar.
15753 (update_frame_tool_bar): Connect expose event to
15754 xg_tool_bar_expose_callback.
15755
15756 2003-02-17 Richard M. Stallman <rms@gnu.org>
15757
15758 * keyboard.c (this_command_key_count_reset): New variable.
15759 Initiatize to 0 where this_command_key_count is set.
15760 (read_char): Save and restore this_command_key_count_reset
15761 around input method code.
15762 (read_char): If this_command_key_count_reset, echo reread commands.
15763 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
15764
15765 2003-02-17 Kenichi Handa <handa@m17n.org>
15766
15767 * fns.c (string_to_multibyte): Always return a multibyte string.
15768
15769 2003-02-16 Jason Rumney <jasonr@gnu.org>
15770
15771 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
15772 Negative max_fonts parameter means list all.
15773
15774 2003-02-14 Dave Love <fx@gnu.org>
15775
15776 * fns.c (Flanginfo): Doc fix.
15777
15778 2003-02-13 Kim F. Storm <storm@cua.dk>
15779
15780 * lread.c (read_escape): Interpret \s as a SPACE character, except
15781 for \s-X in a character constant which still is the super modifier.
15782 (read1): Signal an `invalid read syntax' error if a character
15783 constant is immediately followed by a digit or symbol character.
15784
15785 * search.c (Fmatch_data): Doc fix. Explicitly state that
15786 match-data is undefined if last search failed.
15787
15788 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
15789 All uses changed.
15790
15791 2003-02-12 Juanma Barranquero <lektu@terra.es>
15792
15793 * eval.c (Fdefmacro): Fix typo.
15794
15795 2003-02-12 Kim F. Storm <storm@cua.dk>
15796
15797 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
15798 macro is a string, convert meta modifiers in string when copying
15799 the string into a vector.
15800
15801 2003-02-11 Kim F. Storm <storm@cua.dk>
15802
15803 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
15804
15805 2003-02-11 Kenichi Handa <handa@m17n.org>
15806
15807 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
15808
15809 2003-02-10 Kim F. Storm <storm@cua.dk>
15810
15811 * process.c: Doc fixes.
15812 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
15813
15814 2003-02-10 Kenichi Handa <handa@m17n.org>
15815
15816 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
15817
15818 * process.c (QCfilter_multibyte): New variable.
15819 (setup_process_coding_systems): New function.
15820 (Fset_process_buffer, Fset_process_filter):
15821 Call setup_process_coding_systems.
15822 (Fstart_process): Initialize the member `filter_multibyte' of
15823 struct Lisp_Process.
15824 (create_process): Call setup_process_coding_systems.
15825 (Fmake_network_process): New keyward `:filter-multibyte'.
15826 Initialize the member `filter_multibyte' of struct Lisp_Process.
15827 Call setup_process_coding_systems.
15828 (server_accept_connection): Call setup_process_coding_systems.
15829 (read_process_output): If the process has a filter, decide the
15830 multibyteness of a string to given to the filter by
15831 `filter_multibyte' member of the process. If the process doesn't
15832 have a filter and the result of conversion is unibyte, use
15833 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
15834 multibyte form.
15835 (Fset_process_coding_system): Call setup_process_coding_systems.
15836 (Fset_process_filter_multibyte): New function.
15837 (Fprocess_filter_multibyte_p): New function.
15838 (syms_of_process): Intern and staticpro QCfilter_multibyte.
15839 Defsubr Sset_process_filter_multibyte and
15840 Sprocess_filter_multibyte_p.
15841
15842 * process.h (struct Lisp_Process): New member filter_multibyte.
15843
15844 * lisp.h (setup_process_coding_systems): Add prototype.
15845
15846 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
15847 process, update coding systems for the process.
15848
15849 2003-02-09 Kenichi Handa <handa@m17n.org>
15850
15851 * fns.c (string_to_multibyte): New function.
15852 (Fstring_to_multibyte): New function.
15853 (syms_of_fns): Defsubr it.
15854
15855 2003-02-08 Andreas Schwab <schwab@suse.de>
15856
15857 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
15858 instead of the substitution.
15859
15860 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15861
15862 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
15863
15864 * xmenu.c (menu_position_func): Adjust menu popup position so that
15865 the menu is fully visible.
15866
15867 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15868
15869 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
15870 (x_make_frame_invisible, x_wm_set_icon_position):
15871 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
15872
15873 * xfns.c (x_set_name, x_set_title): Ditto.
15874
15875 2003-02-04 Richard M. Stallman <rms@gnu.org>
15876
15877 * keyboard.c (echo_now): Update before_command_echo_length.
15878 (Freset_this_command_lengths): Reset this_command_key_count etc.
15879 immediately rather than arranging to do it later.
15880 (before_command_key_count_1, before_command_echo_length_1)
15881 (before_command_restore_flag): Vars deleted.
15882 (add_command_key): Don't handle before_command_restore_flag.
15883 (read_char, record_menu_key): Don't update before_command_key_count or
15884 before_command_echo_length.
15885 (read_char): Don't handle before_command_restore_flag.
15886
15887 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
15888 in direct-output clauses if it wouldn't be called in the ordinary case.
15889
15890 2003-02-04 Kim F. Storm <storm@cua.dk>
15891
15892 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
15893
15894 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15895
15896 * gtkutil.c (remove_from_container): Copying list is not needed.
15897 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
15898 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
15899 on list returned from gtk_container_get_children to avoid memory leak.
15900
15901 2003-02-01 Jason Rumney <jasonr@gnu.org>
15902
15903 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
15904 local malloc.
15905 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
15906 definitions in xpm.h.
15907 (init_xpm_functions): New function.
15908 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
15909 (init_external_image_libraries): Try to load libXpm.dll.
15910
15911 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
15912 timestamp.
15913
15914 2003-01-31 Dave Love <fx@gnu.org>
15915
15916 * syntax.c (Fskip_chars_forward)
15917 (open-paren-in-column-0-is-defun-start): Doc fix.
15918
15919 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
15920
15921 * fileio.c: Support // at start of name for Cygwin (just added proper
15922 preprocessor tests).
15923
15924 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
15925
15926 * Makefile.in: Use @EXEEXT@ for Cygwin.
15927
15928 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
15929
15930 * s/cygwin.h: Added for Cygwin port.
15931
15932 2003-01-31 Juanma Barranquero <lektu@terra.es>
15933
15934 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
15935 when including gif_lib.h.
15936 (init_gif_functions, init_tiff_functions): New functions.
15937 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
15938 Windows. Disable color table lookups. Call library functions
15939 through pointers determined at runtime.
15940 (init_external_image_libraries): Try to load libungif.dll and
15941 libtiff.dll.
15942
15943 2003-01-31 Kenichi Handa <handa@m17n.org>
15944
15945 * xdisp.c (SKIP_GLYPHS): New macro.
15946 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
15947
15948 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15949
15950 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
15951
15952 2003-01-30 Dave Love <fx@gnu.org>
15953
15954 * alloc.c (Vgc_elapsed, gcs_done): New variables.
15955 (Fgarbage_collect): Use them.
15956 (init_alloc, syms_of_alloc): Set them up.
15957
15958 2003-01-30 Juanma Barranquero <lektu@terra.es>
15959
15960 * w32fns.c (init_external_image_libraries): Add missing operator.
15961
15962 2003-01-29 Jason Rumney <jasonr@gnu.org>
15963
15964 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
15965 an alternative name for jpeg.dll.
15966
15967 2003-01-29 Kenichi Handa <handa@m17n.org>
15968
15969 * xdisp.c (set_cursor_from_row): Pay attention to string display
15970 properties.
15971
15972 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
15973
15974 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
15975 <escape>.
15976 (keycode_to_xkeysym_table): Reformat and add more comments.
15977 (XTread_socket): Drop special case for backspace.
15978
15979 2003-01-28 Andrew Choi <akochoi@shaw.ca>
15980
15981 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
15982 values in old-style RGB specs.
15983
15984 2003-01-27 Juanma Barranquero <lektu@terra.es>
15985
15986 * w32fns.c (init_external_image_libraries): Try alternate names for the
15987 jpeg dll.
15988
15989 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15990
15991 * gtkutil.c (create_dialog, xg_separator_p)
15992 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
15993 before calling strcmp or strlen.
15994
15995 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15996
15997 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
15998 and handle image load failure.
15999
16000 2003-01-26 Jason Rumney <jasonr@gnu.org>
16001
16002 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
16003 New functions.
16004 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
16005 Disable color table lookups. Call jpeg library functions
16006 through pointers determined at runtime.
16007 (init_external_image_libraries): Try to load jpeg.dll.
16008
16009 2003-01-25 Richard M. Stallman <rms@gnu.org>
16010
16011 * lisp.h: Declare format2 instead of format1.
16012
16013 * fileio.c (barf_or_query_if_file_exists):
16014 Call format2 instead of format1.
16015
16016 * editfns.c (format2): New function, replaces format1
16017 but takes exactly two Lisp Objects as format args.
16018
16019 * buffer.c (Fkill_buffer): Call format2 instead of format1.
16020
16021 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16022
16023 * xterm.h: Change to return value of x_dispatch_event to int.
16024
16025 * xterm.c (x_filter_event): New function.
16026 (event_handler_gdk, XTread_socket): Call x_filter_event.
16027 (x_dispatch_event): Change to return value of finish.
16028 (event_handler_gdk): Use return value from x_dispatch_event.
16029
16030 * xfns.c (x_window): Call create_frame_xic for GTK version to
16031 initialize input methods.
16032
16033 * gtkutil.h: Add (void) prototypes.
16034
16035 * gtkutil.c (create_menus): Remove code that puts the help menu to
16036 the right.
16037
16038 2003-01-25 Jason Rumney <jasonr@gnu.org>
16039
16040 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
16041 [HAVE_PNG]: Sync with xfns.c version.
16042 (png_load): Adjust colors for Windows. Use Windows
16043 bitmaps. Disable color table lookups.
16044 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
16045 (init_png_functions): New function.
16046 (png_read_from_memory, png_load): Call png library functions
16047 through pointers determined at runtime.
16048 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
16049 (init_external_image_libraries): New function.
16050 (init_xfns): Call it.
16051
16052 2003-01-24 Andreas Schwab <schwab@suse.de>
16053
16054 * minibuf.c (Fminibuffer_message): Verify type of parameter.
16055
16056 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16057
16058 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
16059 of static initializer.
16060
16061 2003-01-24 Dave Love <fx@gnu.org>
16062
16063 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
16064 architectures.
16065
16066 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
16067 Use __alignof__.
16068
16069 2003-01-24 Kenichi Handa <handa@m17n.org>
16070
16071 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
16072 It it is nonzero, don't pretend that an invisible area doesn't exist.
16073 (command_loop_1): Call adjust_point_for_property with proper
16074 second arg.
16075
16076 2003-01-22 Jason Rumney <jasonr@gnu.org>
16077
16078 Sync changes with xterm.c and xfns.c.
16079
16080 * w32term.c (x_draw_glyph_string_foreground)
16081 (x_draw_composite_glyph_string_foreground): Implement overstriking.
16082
16083 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
16084 phys_cursor's hpos is overwritten. This is still not completely
16085 correct, as it doesn't really make sense to use hpos at all to
16086 get the cursor glyph (as that is relative to the width of the
16087 characters on the line, which may have changed during the update).
16088
16089 * w32term.c (notice_overwritten_cursor): Handle the special case
16090 of the cursor being in the first blank non-text line at the
16091 end of a window.
16092
16093 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
16094 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
16095 Compute from the x position returned by x_draw_glyphs.
16096
16097 (x_display_and_set_cursor): Don't set phys_cursor_width here,
16098 except for NO_CURSOR and system caret, to make phys_cursor_width
16099 contain what its name suggests.
16100 (notice_overwritten_cursor): Consider the cursor image erased if
16101 the output area intersects the cursor image in y-direction.
16102
16103 * w32term.c (note_mode_line_or_margin_highlight): Rename from
16104 note_mode_line_highlight and extend.
16105
16106 * w32term.c (last_window): New variable.
16107 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
16108 (note_mouse_movement): Remove reimplemented code in #if 0.
16109
16110 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
16111 not update_mode_lines, and always set it to 1.
16112
16113 2003-01-21 Jason Rumney <jasonr@gnu.org>
16114
16115 * w32fns.c (IDC_HAND): Define it if system headers don't.
16116
16117 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
16118
16119 * w32term.h (struct w32_output): New member hand_cursor.
16120 (WM_EMACS_SETCURSOR): New message definition.
16121
16122 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
16123 function w32_define_cursor.
16124 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
16125 position, change member name output_data.x to output_data.w32 and
16126 add function w32_define_cursor.
16127 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
16128 and change member name output_data.x to output_data.w32.
16129 (w32_initialize_display_info):
16130 Setup dpyinfo->vertical_scroll_bar_cursor.
16131
16132 * w32fns.c (Vx_hand_shape): New variable.
16133 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
16134 WM_EMACS_SETCURSOR.
16135 (x-create-frame): Setup Cursor types.
16136
16137 2003-01-21 David Ponce <david@dponce.com>
16138
16139 * w32term.c (w32_encode_char): For DIM=1 charset, set
16140 ccl->reg[2] to -1 before calling ccl_driver.
16141 (Sync. with xterm.c x_encode_char change by Kenichi Handa
16142 <handa@m17n.org> on 2002-09-30.)
16143 (w32_draw_relief_rect): Declare all args.
16144 (w32_define_cursor): New.
16145
16146 * w32fns.c (w32_load_cursor): New function.
16147 (w32_init_class): Use it.
16148 (x_put_x_image): Declare all args.
16149
16150 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
16151
16152 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
16153
16154 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16155
16156 * gtkutil.c: Must include stdio.h before termhooks.h
16157
16158 2003-01-21 Dave Love <fx@gnu.org>
16159
16160 * alloc.c (Fgc_status): Print zombie list.
16161 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
16162 Fix assignment of zombies.
16163 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
16164 Don't take car of non-cons.
16165
16166 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16167
16168 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16169
16170 2003-01-20 David Ponce <david@dponce.com>
16171
16172 * w32menu.c (digest_single_submenu): Declare all args.
16173
16174 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
16175 changes in xmenu.c:
16176
16177 (parse_single_submenu): Use individual keymap's prompt
16178 string as pane name, if there is one.
16179 (set_frame_menubar): Save menu_items_n_panes from each call to
16180 parse_single_submenu and use it when calling digest_single_submenu.
16181
16182 2003-01-20 Steven Tamm <steventamm@mac.com>
16183
16184 * macterm.c (XTread_socket): Check for valid, visible window
16185 before sending a scroll-wheel event.
16186
16187 2003-01-20 Richard M. Stallman <rms@gnu.org>
16188
16189 * xdisp.c (redisplay_window): If mini window's buffer is not
16190 a minibuffer, then redisplay it like other windows.
16191
16192 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16193
16194 * gtkutil.c (xg_create_frame_widgets): Check if there is an
16195 external tool bar before setting tool bar height.
16196
16197 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16198
16199 * xterm.c (handle_one_xevent): Surround popup_activated
16200 with #ifdef:s for non-toolkit version.
16201
16202 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
16203 (gtkutil.o): New file.
16204 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
16205 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
16206
16207 * gtkutil.c: New file for GTK version.
16208
16209 * gtkutil.h: New file for GTK version.
16210
16211 * xterm.h: Add xt_or_gtk_widget.
16212 Include gtk files for USE_GTK.
16213 (struct x_output): Add toolbar_height.
16214 (struct x_output): Add GTK widgets and Gdk size_hints.
16215 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
16216 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
16217 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
16218
16219 * xterm.c: Include gtkutil.h for USE_GTK.
16220 (free_frame_menubar): Declare extern void for USE_GTK.
16221 (note_mouse_highlight): Check popup_activated for USE_GTK.
16222 (xt_action_hook): Don't compile if USE_GTK.
16223 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
16224 (xg_scroll_callback): New function.
16225 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
16226 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
16227 for USE_GTK.
16228 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
16229 xg_show_scroll_bar for USE_GTK.
16230 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
16231 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
16232 (event_handler_gdk): New function for USE_GTK.
16233 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
16234 (handle_one_xevent): Make sure widget is mapped before
16235 calling x_real_positions for USE_GTK.
16236 (XTread_socket): Add GTK event loop for USE_GTK.
16237 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
16238 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
16239 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
16240 (x_iconify_frame): Add code for USE_GTK.
16241 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
16242 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
16243 is in gtkutil.c.
16244 (x_term_init): Add initialization for GTK.
16245 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
16246
16247 * xmenu.c: Include gtkutil.h for USE_GTK.
16248 (Fx_popup_menu): Use current position if x and y is NIL.
16249 (single_menu_item, single_menu_item, Fx_popup_dialog):
16250 Check for USE_GTK.
16251 (popup_widget_loop): New function for USE_GTK.
16252 (x_activate_menubar): Add code for USE_GTK.
16253 (popup_activate_callback, popup_deactivate_callback)
16254 (menu_highlight_callback, menubar_selection_callback):
16255 Add USE_GTK versions.
16256 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
16257 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
16258 (free_frame_menubar): Only compile if not USE_GTK. GTK version
16259 is in gtkutil.c.
16260 (popup_selection_callback): New version for USE_GTK.
16261 (create_and_show_popup_menu): New fuction, one USE_GTK version and
16262 one USE_X_TOOLKIT version.
16263 (xmenu_show): Call create_and_show_popup_menu.
16264 (dialog_selection_callback): New version for USE_GTK.
16265 (create_and_show_dialog): New fuction, one USE_GTK version and
16266 one USE_X_TOOLKIT version.
16267 (xdialog_show): Call create_and_show_dialog.
16268
16269 * xfns.c: Include gtkutil for USE_GTK.
16270 (x_window_to_frame, x_any_window_to_frame)
16271 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
16272 (x_top_window_to_frame): Add code for USE_GTK.
16273 (x_set_background_color): Call xg_set_background_color for GTK.
16274 (x_set_menu_bar_lines): Check for USE_GTK.
16275 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
16276 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
16277 (x_window): Call xg_create_frame_widgets for USE_GTK.
16278 (Fx_create_frame): Check for USE_GTK
16279 (Fx_file_dialog): New implementation for USE_GTK.
16280
16281 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
16282 (update_menu_bar): Add check for USE_GTK.
16283 (update_tool_bar): Add check for USE_GTK and external tool bar.
16284 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
16285 (redisplay_internal): Add check for USE_GTK and popup_activated.
16286 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
16287 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
16288 (display_menu_bar): Add check for USE_GTK
16289
16290 * lisp.h (Vx_resource_name): Declare extern.
16291
16292 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
16293 for USE_GTK.
16294 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
16295
16296 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
16297 (FRAME_EXTERNAL_TOOL_BAR): New macro.
16298 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
16299
16300 * fileio.c (Fread_file_name): Add check for USE_GTK.
16301
16302 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
16303 Add check for USE_GTK.
16304
16305 * config.in: Added HAVE_GTK
16306
16307 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
16308
16309 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
16310
16311 * charset.h (Funibyte_char_to_multibyte): Export.
16312
16313 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16314
16315 * xmenu.c (mouse_position_for_popup): New function.
16316 (Fx_popup_menu): Call mouse_position_for_popup for X and
16317 mouse_position_hook for others.
16318
16319 2003-01-17 Kim F. Storm <storm@cua.dk>
16320
16321 * editfns.c (Finsert): Mention `string-make-multibyte' and
16322 `string-as-multibyte' in doc string.
16323
16324 2003-01-17 Kenichi Handa <handa@m17n.org>
16325
16326 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
16327
16328 * editfns.c (Fformat): Convert an unibyte char argument that is
16329 formatted by "%c" to multibyte if the total result must be a
16330 multibyte string.
16331
16332 2003-01-16 Kim F. Storm <storm@cua.dk>
16333
16334 * process.c (set-process-filter): Document unibyte/multibyte-ness
16335 of string argument.
16336
16337 2003-01-16 Kenichi Handa <handa@m17n.org>
16338
16339 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
16340
16341 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
16342 (re_search_2): Likewise.
16343
16344 2003-01-15 Kenichi Handa <handa@m17n.org>
16345
16346 * xdisp.c (message_dolog): Fix bug of the case that *Message*
16347 buffer is unibyte.
16348
16349 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
16350
16351 * fns.c (Fsubstring): Clarify doc string.
16352
16353 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
16354 (Fprevious_char_property_change)
16355 (Fnext_single_char_property_change)
16356 (Fprevious_single_char_property_change, Fnext_property_change)
16357 (Fnext_single_property_change, Fprevious_property_change)
16358 (Fprevious_single_property_change, Fadd_text_properties)
16359 (Fput_text_property, Fset_text_properties)
16360 (Fremove_text_properties, Fremove_list_of_text_properties)
16361 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
16362
16363 2003-01-14 Kim F. Storm <storm@cua.dk>
16364
16365 * process.h (struct Lisp_Process): New member plist replaces old
16366 member private_vars. All uses changed.
16367
16368 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
16369 (QCplist): Rename from QCvars. Change all uses.
16370 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
16371 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
16372 (syms_of_process): Intern, staticpro, defsubr these.
16373 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
16374
16375 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
16376
16377 * m/delta.h: Remove (obsolete).
16378
16379 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
16380
16381 * fileio.c (Fdelete_directory, Fdelete_file): Document the
16382 behaviour in front of symlinks.
16383 (Fdelete_file): Raise an error on directories.
16384
16385 2003-01-13 Dave Love <fx@gnu.org>
16386
16387 * fns.c (Freverse): Use QUIT.
16388
16389 2003-01-13 Richard M. Stallman <rms@gnu.org>
16390
16391 * minibuf.c (minibuffer_completion_contents):
16392 Error if point is inside prompt.
16393
16394 * keyboard.c (command_loop_1): Don't redisplay directly
16395 if there's a post-command-hook.
16396
16397 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
16398 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
16399
16400 2003-01-12 Kim F. Storm <storm@cua.dk>
16401
16402 * process.h (struct Lisp_Process): New member private_vars.
16403
16404 * process.c (QCvars): New variable.
16405 (syms_of_process): Intern and staticpro it.
16406 (Fset_process_contact): Removed function.
16407 (Fprocess_variable, Fset_process_variable): New functions.
16408 (syms_of_process): Defsubr them.
16409 (Fstart_process): Initialize private_vars plist to nil.
16410 (Fmake_network_process): New arg :vars to setup the private
16411 variables for new network process.
16412 (server_accept_connection): Copy server's private variables to
16413 client process.
16414
16415 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
16416 crashes). Code rewritten and simplified. Now directly aligns the
16417 pointer and recalculates pure_bytes_used, rather than aligning the
16418 size and adjusting the pointer.
16419
16420 2003-01-11 Kim F. Storm <storm@cua.dk>
16421
16422 * process.c (Fset_process_contact): New function.
16423 (syms_of_process): defsubr it.
16424 (make-network-process): Update doc.
16425
16426 2003-01-10 Andreas Schwab <schwab@suse.de>
16427
16428 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
16429 Reported by Berthold Gunreben <b.gunreben@web.de>.
16430
16431 2003-01-10 Dave Love <fx@gnu.org>
16432
16433 * composite.c (syms_of_composite): Make composition_hash_table weak.
16434
16435 2003-01-09 Kim F. Storm <storm@cua.dk>
16436
16437 * process.c (Fmake_network_process): Convert new port number
16438 to host byte order for `:service t' case. From Mario Lang.
16439
16440 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16441
16442 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
16443 instead of XtAppProcessEvent.
16444
16445 * xterm.c (handle_one_xevent): New function.
16446 (x_dispatch_event): New function.
16447 (XTread_socket): Call handle_one_xevent.
16448
16449 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
16450
16451 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
16452 call XQueryPointer to get coordinates.
16453 (popup_get_selection): Do not set popup_activated_flag to zero,
16454 let popup_deactivate_callback do that. Needed for Motif.
16455 Call x_dispatch_event instead of XtDispatchEvent.
16456 (xmenu_show): Calculate root coordinate from frame top/left position.
16457
16458 2003-01-08 Kim F. Storm <storm@cua.dk>
16459
16460 * process.c (server_accept_connection): Fix recording of new
16461 connection's local address in :local property of contact info.
16462 (Fmake_network_process): Record local network address for new
16463 client processes in :local property of contact info.
16464 (format-network-address): Add arg OMIT-PORT. Change callers.
16465
16466 2003-01-07 Dave Love <fx@gnu.org>
16467
16468 * Makefile.in (fns.o): Depend on coding.h.
16469
16470 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
16471
16472 * minibuf.c (Fread_variable): Doc fix.
16473
16474 * eval.c (Fuser_variable_p): Doc change. For custom variables,
16475 use the same test as for custom-variable-p.
16476
16477 2003-01-05 Richard M. Stallman <rms@gnu.org>
16478
16479 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
16480 Count LAST_LINE_MISFIT in scroll margin for end of window.
16481 Move label too_near_end before setting SCROLL_MARGIN_POS.
16482 Set LAST_LINE_MISFIT before jumping there.
16483
16484 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
16485 scroll_conservatively case. If scrolling that much doesn't change
16486 STARTP, move it down one line.
16487
16488 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
16489 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
16490
16491 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
16492 selected frame.
16493
16494 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
16495 (syms_of_keymap): Staticpro them.
16496 (Fapropos_internal): Initialize them and clear them out.
16497 Don't GCPRO them.
16498
16499 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
16500 Doc fixes.
16501
16502 * lisp.h: New misc type Lisp_Save_Value.
16503 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
16504 (XSAVE_VALUE): New macro.
16505 (struct Lisp_Save_Value): New data type.
16506 (union Lisp_Misc): Add u_save_value alternative.
16507 (make_save_value): Declare.
16508
16509 * alloc.c (make_save_value): New function.
16510
16511 * xterm.c (x_catch_errors): Save dpy using make_save_value.
16512 (x_catch_errors_unwind): Call XSync.
16513
16514 2003-01-01 Richard M. Stallman <rms@gnu.org>
16515
16516 * window.c (window_scroll_pixel_based): Partially undo last change.
16517
16518 * keyboard.c (command_loop_1): Call adjust_point_for_property
16519 in direct action cases for Qforward_char and Qbackward_char.
16520 Set already_adjusted so it won't be done twice.
16521
16522 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
16523
16524 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
16525 type definition of size_t.
16526
16527 2003-01-02 Steven Tamm <steventamm@mac.com>
16528
16529 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
16530 distinguish Carbon GUI builds from X11 builds on darwin.
16531
16532 2002-12-30 Steven Tamm <steventamm@mac.com>
16533
16534 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
16535 to default to t.
16536
16537 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
16538
16539 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
16540
16541 2002-12-28 Steven Tamm <steventamm@mac.com>
16542
16543 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
16544 allow building in a different directory than source. Uses some
16545 GNU Make extensions, but there is no other make on Mac OS X.
16546
16547 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
16548
16549 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
16550 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
16551 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
16552 (Fstring_to_number): Mention the returned value in the doc strings.
16553
16554 2002-12-23 Richard M. Stallman <rms@gnu.org>
16555
16556 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
16557 <scroll-down-aggressively>: Doc fix.
16558
16559 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
16560 string as pane name, if there is one.
16561 (set_frame_menubar): Save menu_items_n_panes from each call to
16562 parse_single_submenu and use it when calling digest_single_submenu.
16563
16564 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
16565 Don't try to make last line fully visible if it is past end of window.
16566
16567 2002-12-22 Steven Tamm <steventamm@mac.com>
16568
16569 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
16570 (mac_menu_show): Add support for hierarchical popup menus.
16571 (add_menu_item): Remove indentation support.
16572 (fill_submenu, fill_menu): Create hierarchical menus
16573 instead of using indentation.
16574
16575 2002-12-22 Richard M. Stallman <rms@gnu.org>
16576
16577 * xdisp.c (try_cursor_movement): Don't call try_window here.
16578 (redisplay_window): Never redisplay minibuffer when inactive.
16579
16580 * window.c (select_window_1): Undo 9/21 change.
16581
16582 2002-12-22 Steven Tamm <steventamm@mac.com>
16583
16584 * macterm.c (XTread_socket): Call KeyTranslate for control and
16585 meta to deal correctly shifted non-alpha characters, like C-S-5
16586 being treated like C-%. Do not look for shift key to deal
16587 with masking off control-key with mac-reverse-ctrl-meta.
16588
16589 2002-12-21 Richard M. Stallman <rms@gnu.org>
16590
16591 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
16592 If it is non-nil, run timers. Use an unwind-protect to requeue
16593 the events that were read ahead.
16594 (popup_get_selection_unwind): New subroutine.
16595 (popup_get_selection_queue): File-scope variable now holds that queue.
16596 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
16597 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
16598 Use an unwind-protect to pop down the dialog box.
16599 (xdialog_show_unwind): New subroutine implements that.
16600
16601 * xdisp.c (row_containing_pos): Change exit test using last_y.
16602 (try_window_id): Abort if row_containing_pos returns null.
16603
16604 * lread.c (load_error_handler): New function.
16605 (Fload): Handle errors in Fsubstitute_in_file_name.
16606 Don't expect Fsignal to return.
16607
16608 * eval.c: Errors and throws work right with interrupt blocking.
16609 (struct catchtag): New elt interrupt_input_blocked.
16610 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
16611 (internal_catch, Fcondition_case, internal_condition_case)
16612 (internal_condition_case_1, internal_condition_case_2): Save it.
16613 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
16614
16615 * editfns.c (Fformat): Add parens.
16616
16617 * dired.c (file_name_completion): Fix that change.
16618 Delete special quit-handling code; just use QUIT.
16619
16620 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
16621
16622 * dired.c (file_name_completion): Close directory on error
16623 just as in directory_files_internal.
16624
16625 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
16626
16627 * window.c (Fset_window_configuration): Set old_point to correct
16628 value when new_current_buffer == current_buffer.
16629
16630 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
16631
16632 Revisited my earlier fix for the following entry in etc/PROBLEMS:
16633 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
16634 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
16635
16636 These changes were in part based upon suggestions made by Peter
16637 'Luna' Runestig [peter@runestig.com].
16638
16639 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
16640 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
16641 (g_b_init_get_sid_identifier_authority ): Add several static
16642 global variables.
16643
16644 * w32.c (globals_of_w32): New function. Used to initialize those
16645 global variables that must always be initialized on startup even
16646 when the global variable initialized is non zero. Its primary
16647 purpose at this time is to set the global variables
16648 g_b_init_is_windows_9x, g_b_init_open_process_token,
16649 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
16650 g_b_init_get_sid_identifier_authority to 0 on startup.
16651 Called from main.
16652
16653 * w32.c (is_windows_9x): Perform initialization only if
16654 g_b_init_is_windows_9x is equal to 0. On initialization set
16655 g_b_init_is_windows_9x equal to 1.
16656
16657 * w32.c (open_process_token): Perform initialization only if
16658 g_b_init_open_process_token is equal to 0. On initialization set
16659 g_b_init_open_process_token equal to 1.
16660
16661 * w32.c (get_token_information): Perform initialization only if
16662 g_b_init_get_token_information is equal to 0. On initialization
16663 set g_b_init_get_token_information equal to 1.
16664
16665 * w32.c (lookup_account_sid): Perform initialization only if
16666 g_b_init_lookup_account_sid is equal to 0. On initialization
16667 set g_b_init_lookup_account_sid equal to 1.
16668
16669 * w32.c (get_sid_identifier_authority): Perform initialization
16670 only if g_b_init_get_sid_identifier_authority is equal to 0.
16671 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
16672
16673 * w32fns.c (globals_of_w32fns): New function. Used to initialize
16674 those global variables that must always be initialized on startup
16675 even when the global variable initialized is non zero.
16676 Its primary purpose at this time is to initialize the global variable
16677 track_mouse_event_fn.
16678
16679 * w32fns.c (w32_wnd_proc): Remove initialization of
16680 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
16681
16682 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
16683
16684 * w32menu.c (globals_of_w32menu): New function. Used to
16685 initialize those global variables that must always be initialized
16686 on startup even when the global variable initialized is non zero.
16687 Its primary purpose at this time is to initialize the global
16688 variables get_menu_item_info and set_menu_item_info.
16689
16690 * w32menu.c (initialize_frame_menubar): Remove initialization of
16691 get_menu_item_info and set_menu_item_info.
16692
16693 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
16694
16695 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
16696 Declare them.
16697
16698 * emacs.c (main): Call globals_of_w32 prior to calling
16699 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
16700 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
16701 is defined.
16702
16703 * w32term.c (x_update_window_begin): Fix Windows API error
16704 detected by BoundsChecker. Test to determine if
16705 w32_system_caret_hwnd is NULL prior to attempting to use
16706 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
16707
16708 * w32term.c (x_update_window_end): Fix Windows API error
16709 detected by BoundsChecker. Test to determine if
16710 w32_system_caret_hwnd is NULL prior to attempting to use
16711 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
16712
16713 2002-12-17 Kenichi Handa <handa@m17n.org>
16714
16715 * coding.c (coding_system_require_warning): New variable.
16716 (syms_of_coding): DEFVAR it.
16717
16718 * coding.h (coding_system_require_warning): Extern it.
16719
16720 * fileio.c (choose_write_coding_system): Even if
16721 Vcoding_system_for_write is non-nil, if
16722 coding_system_require_warning is nonzero, call
16723 Vselect_safe_coding_system_function.
16724
16725 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
16726
16727 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
16728 (lisp): Add font-core.
16729
16730 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
16731
16732 * textprop.c (text_read_only): New arg `propval'.
16733 (get_char_property_and_overlay): Remove unused var `next_overlay'.
16734 (verify_interval_modification): Use text_read_only's new arg.
16735
16736 2002-12-13 Kenichi Handa <handa@m17n.org>
16737
16738 * coding.c (Funencodable_char_position): Set pend correctly.
16739
16740 2002-12-12 Jason Rumney <jasonr@gnu.org>
16741
16742 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
16743 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
16744 Be more careful about when help_events are generated.
16745
16746 2002-12-12 Steven Tamm <steventamm@mac.com>
16747
16748 * macterm.c (mac_check_for_quit_char): Correctly set the
16749 modifiers of the event to 0.
16750 * mac.c (sys_select): Duplicate rfds before calling select to
16751 ensure that rfds survive the while loop.
16752
16753 2002-12-11 Kim F. Storm <storm@cua.dk>
16754
16755 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
16756 row_containing_pos returned NULL.
16757
16758 2002-12-10 Steven Tamm <steventamm@mac.com>
16759
16760 * mac.c (sys_read): Fix sys_read to not call select if IO is
16761 non-blocking.
16762 (sys_select): Fix sys_select to not use a timeout larger than
16763 the one given.
16764
16765 2002-12-10 Juanma Barranquero <lektu@terra.es>
16766
16767 * editfns.c (Fformat): Use alloca, not _alloca.
16768
16769 2002-12-09 Richard M. Stallman <rms@gnu.org>
16770
16771 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
16772 as the last thing.
16773
16774 2002-12-09 Dave Love <fx@gnu.org>
16775
16776 * s/sol2-8.h: Removed. (Not necessary.)
16777
16778 2002-12-09 Matthew Swift <swift@alum.mit.edu>
16779
16780 * editfns.c (Fformat): Handle precision in string conversion
16781 specifiers like libc functions do (ie, print at most that many
16782 characters).
16783
16784 2002-12-08 Richard M. Stallman <rms@gnu.org>
16785
16786 * xdisp.c (row_containing_pos): Check more carefully
16787 whether charpos is really in the row before returning it.
16788
16789 2002-12-07 Steven Tamm <steventamm@mac.com>
16790
16791 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
16792
16793 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
16794 each stack frame. This may change as it could be time consuming.
16795
16796 * macterm.c (mac_check_for_quit_char, quit_char_comp)
16797 (init_quit_char_handler, mac_determine_quit_char_modifiers)
16798 (mac_initialize): Add code to check for pressing of quit_char
16799 in the OS event queue.
16800
16801 * mac.c (sys_select): Call mac_check_for_quit_char every second
16802 while blocking on select.
16803
16804 * mac.c (sys_read): Use sys_select to test for input first
16805 before calling read, to allow C-g to break.
16806
16807 2002-12-07 Richard M. Stallman <rms@gnu.org>
16808
16809 * minibuf.c (Fcompleting_read): Doc fix.
16810
16811 * lread.c (syms_of_lread) <load-history>: Doc fix.
16812
16813 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
16814
16815 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
16816 autoload.
16817
16818 * data.c (Fdefalias): Record in load-history redefining an autoload.
16819
16820 * alloca.c: Undo ifdef change accidentally made on 12-04.
16821
16822 2002-12-06 Francesco Potorti` <pot@gnu.org>
16823
16824 * xfns.c (png_load): Avoid double gamma correction for PNG images.
16825
16826 2002-12-04 Richard M. Stallman <rms@gnu.org>
16827
16828 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
16829
16830 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
16831
16832 * alloca.c: Don't use #error.
16833
16834 2002-12-03 Dave Love <fx@gnu.org>
16835
16836 * buffer.c (Qucs_set_table_for_input): New.
16837 (Fget_buffer_create): Use it.
16838 (Qset_buffer_major_mode_hook): Deleted.
16839 (Fset_buffer_major_mode): Revert previous change.
16840 (init_buffer_once): Intern ucs-set-table-for-input.
16841 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
16842 Add &Qucs_set_table_for_input.
16843
16844 2002-12-03 Andreas Schwab <schwab@suse.de>
16845
16846 * callint.c (Fcall_interactively): Use next_event only if less
16847 than key_count.
16848
16849 2002-12-02 Andrew Choi <akochoi@shaw.ca>
16850
16851 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
16852 names to 255 characters.
16853
16854 * macterm.c (XTread_socket): If all frames have been collapsed,
16855 expand the first one before handling drag-and-drop events.
16856
16857 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
16858 which is detected by autoconf.
16859
16860 2002-12-01 Steven Tamm <steventamm@mac.com>
16861
16862 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
16863 offset in two hints table to allow prebinding to be redone and
16864 allow the executable to be stripped.
16865
16866 2002-11-29 Dave Love <fx@gnu.org>
16867
16868 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
16869 already provided.
16870
16871 2002-11-29 Richard M. Stallman <rms@gnu.org>
16872
16873 * xdisp.c (start_display): Check more intelligently for
16874 whether the line is continued.
16875 (move_it_vertically_backward): Clear it->continuation_lines_width.
16876
16877 2002-11-28 Dave Love <fx@gnu.org>
16878
16879 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
16880 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
16881
16882 2002-11-27 Steven Tamm <steventamm@mac.com>
16883
16884 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
16885 more descriptive error output from lread.c:Fload upon most require
16886 cycles during boostrapping.
16887
16888 2002-11-27 Jason Rumney <jasonr@gnu.org>
16889
16890 * fileio.c (Finsert_file_contents): Give a more appropriate error
16891 for files bigger than 2Gb when off_t is 32 bit.
16892
16893 * dired.c (Ffile_attributes): Don't return negative file sizes for
16894 files bigger than 2Gb when off_t is 32 bit.
16895
16896 2002-11-27 Dave Love <fx@gnu.org>
16897
16898 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16899
16900 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
16901 Test GETPGRP_VOID instead.
16902 [BSD_TERMIOS]: Remove definitions (never used).
16903
16904 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
16905 Don't define.
16906 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
16907
16908 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
16909
16910 2002-11-25 Jason Rumney <jasonr@gnu.org>
16911
16912 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
16913 supported.
16914
16915 2002-11-25 Dave Love <fx@gnu.org>
16916
16917 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
16918
16919 * Makefile.in (TEMACS_LDFLAGS): Update last change.
16920
16921 2002-11-25 Andreas Schwab <schwab@suse.de>
16922
16923 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
16924
16925 2002-11-24 Steven Tamm <steventamm@mac.com>
16926
16927 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
16928 determine the size of pointers alloced in unexed space instead
16929 of using possibly invalid emacs_zone pointers. This fixes the
16930 binary incompatibility problems caused by updates to libSystem.B.
16931
16932 2002-11-24 Richard M. Stallman <rms@gnu.org>
16933
16934 * search.c (Fstring_match): Doc fix.
16935
16936 * callint.c (Fcall_interactively): If a command fails because
16937 `*' detects a read-only buffer, but RECORD_FLAG is set,
16938 record it anyway if the args don't actually do tty input.
16939
16940 2002-11-22 Dave Love <fx@gnu.org>
16941
16942 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
16943
16944 * keyboard.c (interrupt_signal): Provide forward declaration.
16945 (kbd_buffer_store_event): Don't declare interrupt_signal.
16946
16947 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
16948
16949 2002-11-21 Richard M. Stallman <rms@gnu.org>
16950
16951 * eval.c (interactive_p): Skip any number of bytecode
16952 and special form frames, in any order.
16953
16954 2002-11-20 Jason Rumney <jasonr@gnu.org>
16955
16956 * w32fns.c (convert_mono_to_color_image): New function.
16957 (xbm_load, xbm_load_image): Use it when foreground or background
16958 is explicitly set.
16959
16960 2002-11-19 Dave Love <fx@gnu.org>
16961
16962 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
16963
16964 2002-11-18 Jason Rumney <jasonr@gnu.org>
16965
16966 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
16967 (XPutPixel): Swap blue and red.
16968 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
16969 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
16970 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
16971 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
16972
16973 2002-11-18 Dave Love <fx@gnu.org>
16974
16975 * m/orion105.h (HAVE_ALLOCA): Don't define.
16976
16977 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
16978
16979 * m/intel386.h: Don't include alloca.h or define alloca.
16980
16981 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
16982 malloc, realloc, calloc.
16983
16984 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
16985 (bcmp): Don't define.
16986
16987 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
16988
16989 * m/amdahl.h: Don't define LIB_STANDARD.
16990
16991 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
16992
16993 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
16994
16995 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
16996 Don't include alloca.h.
16997
16998 * s/aix3-2.h (HAVE_FSYNC): Don't define.
16999
17000 * regex.c (_GNU_SOURCE): Don't define.
17001
17002 * process.c (_GNU_SOURCE): Don't define.
17003
17004 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
17005
17006 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
17007
17008 * s/sol2-8.h: Include sol2-6.h.
17009
17010 2002-11-18 Miles Bader <miles@gnu.org>
17011
17012 * dispextern.h (struct face): Add `overstrike' field.
17013 * xterm.c (x_draw_glyph_string_foreground)
17014 (x_draw_composite_glyph_string_foreground): Implement overstriking.
17015 * xfaces.c (load_face_font): Set `face->overstrike' based on
17016 result from choose_face_font.
17017 (best_matching_font, choose_face_font): Add `needs_overstrike'
17018 argument, and use it to return whether overstriking is desirable
17019 for this face/font combo.
17020 (set_font_frame_param: Pass new argument to choose_face_font.
17021
17022 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
17023
17024 This change is my fix for the following entry in etc/PROBLEMS:
17025 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
17026 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
17027
17028 * w32.c: Added wrapper functions around the win32 API functions
17029 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
17030 GetSidIdentifierAuthority. These wrapper functions serve two
17031 purposes:
17032 1. They ensure that the wrapped function can never be called
17033 when Emacs is running on an operating system on which they are
17034 not supported (Microsoft Windows 95 / 98 / ME).
17035 2. They call the wrapped functions via function pointers rather
17036 than calling them directly. This avoids taking advantage of the
17037 undocumented fact that although these functions are not supported
17038 in the 9x branch of Microsoft Windows, the functions do exist in
17039 the version of advapi32.dll that is found in the 9x branch of
17040 Microsoft Windows.
17041
17042 * w32.c (init_user_info): Replace the calls to the win32 API
17043 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
17044 and GetSidIdentifierAuthority with calls to the newly added
17045 wrapper functions.
17046
17047 * w32.h: Added extern declarations for the following functions:
17048 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
17049 syms_of_w32menu, and void syms_of_fontset.
17050
17051 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
17052 function pointer track_mouse_event_fn in the handler for the
17053 WM_SETFOCUS message.
17054
17055 * w32menu.c (initialize_frame_menubar): Add code to
17056 reinitialize the function pointers set_menu_item_info and
17057 get_menu_item_info.
17058
17059 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
17060
17061 * sound.c: Added a partial implementation of play-sound-internal
17062 for Microsoft Windows. Added various #ifdef / #else / #endif
17063 code blocks to separate the code that will compile under
17064 Microsoft Windows from the code that is specific to GNU/Linux.
17065 Moved several blocks of code around to make this separation of code
17066 into Windows compatible and GNU/Linux compatible code blocks easier.
17067
17068 * makefile.w32-in: Include sound.c and link with WinMM.lib.
17069
17070 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
17071 added support for play-sound-internal under Windows would be
17072 included in the build of Emacs.
17073
17074 2002-11-16 Jason Rumney <jasonr@gnu.org>
17075
17076 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
17077
17078 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
17079
17080 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
17081
17082 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
17083 (adjust_point_for_property): Move out of display and invisible even if
17084 we were already inside before (in case a property was added while
17085 we weren't looking). Be more careful when handling invisible props.
17086 Skip invisible text as if it really wasn't there at all.
17087
17088 2002-11-15 Jason Rumney <jasonr@gnu.org>
17089
17090 * w32term.c (x_draw_image_foreground)
17091 (w32_draw_image_foreground_1): Use standard copy and invert
17092 operations to draw images.
17093
17094 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
17095 depth of 1.
17096 (xbm_read_bitmap_data): Invert bits as xbm is read in.
17097 (XPutPixel): Don't invert bits here.
17098
17099 2002-11-15 Jason Rumney <jasonr@gnu.org>
17100
17101 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
17102 (w32_draw_image_foreground_1): Handle image masks.
17103 (x_draw_image_glyph_string): Don't BitBlt transparently.
17104
17105 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
17106 (x_from_xcolors): Adjust RGB values for W32.
17107 (image_background, image_background_transparent)
17108 (postprocess_image, x_to_xcolors, x_disable_image)
17109 (x_build_heuristic_mask): Adapt for W32 and enable.
17110 (x_create_x_image_and_pixmap): Mark images with palettes as such.
17111 (xbm_load): Remove unused variable.
17112
17113 2002-11-14 Richard M. Stallman <rms@gnu.org>
17114
17115 * buffer.c (syms_of_buffer): Doc fix.
17116
17117 2002-11-14 Dave Love <fx@gnu.org>
17118
17119 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
17120
17121 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
17122 * xmenu.c (unuse_menu_items, digest_single_submenu):
17123 * xfns.c (x_put_x_image):
17124 * xdisp.c (message2_nolog, set_message):
17125 * undo.c (record_point):
17126 * terminfo.c (tparam):
17127 * syntax.c (scan_sexps_forward):
17128 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17129 * composite.c (update_compositions):
17130 * cm.c (calccost, cmgoto):
17131 * charset.c (c_string_width): Declare all args (per C99).
17132
17133 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
17134
17135 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
17136 Don't declare.
17137
17138 * emacs.c (main) [!VMS]: Avoid third arg.
17139
17140 * fns.c (Fcopy_sequence): Doc fix.
17141 (Fmap_char_table): Cast `call2'.
17142
17143 2002-11-14 Francesco Potorti` <pot@gnu.org>
17144
17145 * s/sol2-8.h: New file.
17146
17147 2002-11-14 Kim F. Storm <storm@cua.dk>
17148
17149 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
17150 dependency on `risky-local-variable' and the :propertize form.
17151
17152 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
17153
17154 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
17155
17156 * syntax.c (scan_sexps_forward): Undo last patch.
17157 Use a more obvious fix: check eob before updating the syntax table.
17158
17159 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
17160
17161 * syntax.c (scan_sexps_forward): Update syntax table before reading
17162 a char rather than after so we don't update the table past eob.
17163
17164 2002-11-09 Dave Love <fx@gnu.org>
17165
17166 * buffer.c (Fset_buffer_major_mode): Fix last change.
17167
17168 * regex.c (regexec): Fix pmatch declaration.
17169
17170 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
17171
17172 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
17173 to self-inserting characters.
17174 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
17175
17176 * coding.c (Vtranslation_table_for_input): New.
17177 (syms_of_coding): DEFVAR it.
17178
17179 2002-11-08 Juanma Barranquero <lektu@terra.es>
17180
17181 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
17182 window.
17183
17184 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17185
17186 * process.c (Fformat_network_address): Remove unused locals p,
17187 cp, and i.
17188
17189 2002-11-06 Dave Love <fx@gnu.org>
17190
17191 * buffer.c (Qset_buffer_major_mode_hook): New.
17192 (Fset_buffer_major_mode): Use it.
17193
17194 2002-11-06 Richard M. Stallman <rms@gnu.org>
17195
17196 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
17197 and stop_polling.
17198
17199 * process.c (wait_reading_process_input):
17200 Test POLLING_PROBLEM_IN_SELECT, not hpux.
17201 Avoid initialization for auto Lisp_Object var.
17202
17203 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
17204
17205 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
17206
17207 2002-11-05 Richard M. Stallman <rms@gnu.org>
17208
17209 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
17210
17211 * callint.c (Fcall_interactively): New local filter_specs.
17212 (Fcall_interactively): Check for progn as well as let.
17213 Add a gcpro.
17214 (Qprogn): New variable.
17215 (syms_of_callint): Staticpro and init Qprogn.
17216
17217 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
17218
17219 * lread.c (Feval_buffer): Doc fix.
17220
17221 2002-11-04 Dave Love <fx@gnu.org>
17222
17223 * keyboard.c (read_char): Always translate iff
17224 Vkeyboard_translate_table is a char table and c is valid.
17225
17226 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17227 and fix C types.
17228
17229 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
17230
17231 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
17232
17233 * editfns.c (get_pos_property): Don't hardcode Qfield.
17234
17235 * keyboard.c (adjust_point_for_property): Handle `display' prop on
17236 overlays. Also handle `invisible' prop.
17237
17238 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
17239
17240 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
17241 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
17242
17243 2002-11-01 Andreas Schwab <schwab@suse.de>
17244
17245 * editfns.c (Fmessage): Revert last change to properly handle %%.
17246
17247 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
17248
17249 * xmenu.c (unuse_menu_items): New fun.
17250 (menu_items_inuse): New var.
17251 (syms_of_xmenu): Initialize it.
17252 (init_menu_items): Use it to detect re-entrance.
17253 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
17254 (Fx_popup_menu): Remove spurious XSETFRAME.
17255
17256 * editfns.c (find_field): Make an exception for nil fields.
17257
17258 2002-11-01 Dave Love <fx@gnu.org>
17259
17260 * m/gec63.h: Deleted.
17261
17262 2002-10-31 Dave Love <fx@gnu.org>
17263
17264 * xterm.c (XTread_socket): Fix last change.
17265 (xaw_scroll_callback): Cast call_data to long to avoid warning.
17266
17267 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
17268
17269 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
17270
17271 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
17272
17273 * editfns.c (overlays_around, get_pos_property): New funs.
17274 (find_field): Use them.
17275 Also be careful not to modify POS before its last use.
17276 (Fmessage): Don't Fformat if there's nothing to format.
17277
17278 2002-10-30 Dave Love <fx@gnu.org>
17279
17280 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
17281 [HAVE_PTY_H]; Include pty.h.
17282
17283 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
17284
17285 * xterm.c (Qeql): Declare.
17286 (Vx_keysym_table): New.
17287 (syms_of_xterm): Initialize it.
17288 (XTread_socket): Use it. Deal with ASCII keysyms.
17289 (XSetIMValues) [HAVE_X11R6]: Prototype.
17290
17291 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
17292 (lispy_kana_keys): Comment out.
17293 (make_lispy_event) [XK_kana_A]: Comment out.
17294 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
17295 Fix sprintf call.
17296
17297 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
17298 regexp.h change).
17299 (TERMINFO, LIBS_TERMCAP): Define.
17300
17301 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
17302 (bcmp): Define conditional on HAVE_BCMP.
17303 (NO_SIOCTL_H): Don't define.
17304 (TIOCSIGSEND): Don't make conditional on IRIX6.
17305
17306 * s/sol2-5.h: Don't include strings.h.
17307 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
17308
17309 * s/irix6-0.h (IRIX6): Don't define.
17310 (bcopy, bcmp, bzero): Don't undef.
17311
17312 * s/irix6-5.h: Don't include strings.h.
17313 (IRIX6): Don't define.
17314 (bcopy, bcmp, bzero): Don't undef.
17315
17316 * syntax.c (Fforward_comment): Doc fix.
17317
17318 2002-10-29 Kim F. Storm <storm@cua.dk>
17319
17320 * process.c (Fsignal_process): Allow PROCESS to be specified by
17321 name in addition to pid (as integer or string).
17322
17323 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
17324
17325 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
17326 environments.
17327
17328 2002-10-27 Kim F. Storm <storm@cua.dk>
17329
17330 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
17331
17332 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
17333
17334 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
17335
17336 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
17337
17338 2002-10-26 Richard M. Stallman <rms@gnu.org>
17339
17340 * editfns.c (Fformat): Detect invalid format letters for floats.
17341
17342 2002-10-25 Kenichi Handa <handa@m17n.org>
17343
17344 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
17345 (x_set_title): Likewise.
17346
17347 2002-10-25 Juanma Barranquero <lektu@terra.es>
17348
17349 * macgui.h:
17350 * w32gui.h: Remove definition of XColor.
17351
17352 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
17353
17354 2002-10-24 Kim F. Storm <storm@cua.dk>
17355
17356 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
17357 Callers changed (supply dummy arg).
17358
17359 * lisp.h (get_window_cursor_type): Update prototype.
17360
17361 * w32term.c (x_display_and_set_cursor): Get active_cursor from
17362 get_window_cursor_type to track system caret.
17363
17364 2002-10-24 Kim F. Storm <storm@cua.dk>
17365
17366 * process.c (Fformat_network_address): New function.
17367 (syms_of_process): Defsubr it.
17368 (list_processes_1): Use it to format :local/:remote address if
17369 service/host is not set; before Emacs would crash in that case.
17370 (Fmake_network_process): Don't use Ffind_operation_coding_system
17371 to setup coding system if host or service is not set.
17372
17373 2002-10-23 Juanma Barranquero <lektu@terra.es>
17374
17375 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
17376
17377 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
17378 COLORREF.
17379
17380 * macgui.h:
17381 * w32gui.h: Add definition of XColor.
17382
17383 * macfns.c:
17384 * w32fns.c:
17385 * xfaces.c: Remove definition of XColor.
17386
17387 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
17388
17389 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
17390
17391 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
17392 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
17393 window if it is dedicated.
17394 (Fshrink_window): Add preserve_before as was done for enlarge_window.
17395 (Vspecial_display_function): Update docstring.
17396
17397 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
17398 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
17399 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
17400
17401 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
17402
17403 * casefiddle.c (casify_region): Don't treat a prefix char as part
17404 of a word when at the beginning.
17405
17406 2002-10-17 Juanma Barranquero <lektu@terra.es>
17407
17408 * lread.c (syms_of_lread): Fix typos.
17409
17410 2002-10-17 Dave Love <fx@gnu.org>
17411
17412 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
17413
17414 2002-10-16 Richard M. Stallman <rms@gnu.org>
17415
17416 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
17417
17418 2002-10-14 Juanma Barranquero <lektu@terra.es>
17419
17420 * w16select.c (syms_of_win16select): Fix docstring for
17421 `selection-coding-system'.
17422
17423 * w32select.c (syms_of_w32select): Likewise.
17424
17425 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
17426
17427 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
17428 a backslash-quoted char.
17429 (scan_lists, scan_sexps_forward): Pacify the compiler.
17430
17431 2002-10-13 Richard M. Stallman <rms@gnu.org>
17432
17433 * window.c (window_scroll): Set immediate_quit.
17434
17435 * print.c (print): When backquote form is the car of a list,
17436 output in old style. Use old_backquote_output to output all
17437 comma forms inside it in old style too.
17438
17439 * buffer.h (struct buffer): Move `undo_list' down below `name'.
17440
17441 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
17442
17443 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
17444 batch mode).
17445
17446 * lread.c (Fload): Doc fix (load-suffixes).
17447
17448 2002-10-10 Steven Tamm <steventamm@mac.com>
17449
17450 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
17451 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
17452 Also switch the default to Qnil from Qt.
17453
17454 2002-10-08 Kenichi Handa <handa@m17n.org>
17455
17456 * coding.c (code_convert_region): When we need more GAP for
17457 conversion, pay attention to the case that coding->produced is not
17458 greater than coding->consumed.
17459
17460 2002-10-07 Richard M. Stallman <rms@gnu.org>
17461
17462 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
17463
17464 2002-10-06 Andrew Choi <akochoi@shaw.ca>
17465
17466 * macmenu.c (mac_menu_show): Add j to count menu items; match
17467 menu_item_selection to it to find selected item.
17468
17469 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17470
17471 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
17472 cases. The correct fix is to pass ReparentNotify to Xt.
17473 The shell widget interprets ConfigureNotify differently depending
17474 on if it has been reparented or not.
17475
17476 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
17477
17478 * editfns.c (Fformat_time_string): Doc fix.
17479
17480 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
17481
17482 * fns.c (Flength): Doc fix.
17483
17484 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
17485
17486 * keyboard.c (keyremap): New struct.
17487 (read_key_sequence): Use it: globally replace keytran_foo with
17488 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
17489 keytran_next and fkey_next to just `next'.
17490
17491 2002-10-04 Steven Tamm <steventamm@mac.com>
17492
17493 * macterm.c (keycode_to_xkeysym_table): Change return to be
17494 treated like an X keysym.
17495
17496 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17497
17498 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
17499 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
17500 This is to also handle x/y changes that occur because of a resize.
17501
17502 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
17503
17504 * frame.c (Vdelete_frame_functions): New variable.
17505 (syms_of_frame): Initialize and defvar it.
17506 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
17507 it when frame's `tooltip' parameter is non-nil.
17508
17509 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
17510
17511 * w32fns.c (x_create_tip_frame): Likewise.
17512
17513 * macfns.c (x_create_tip_frame): Likewise.
17514
17515 2002-09-30 Kenichi Handa <handa@m17n.org>
17516
17517 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
17518 -1 before calling ccl_driver.
17519
17520 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
17521 Only when it is non-nil, handle composition sequence.
17522 (setup_coding_system) <0>: Don't force composition handling.
17523
17524 * Makefile.in (lisp, shortlisp): Add utf-16.elc
17525
17526 2002-09-29 Richard M. Stallman <rms@gnu.org>
17527
17528 * search.c (Freplace_match): Adjust match data for the substitution
17529 just made in the buffer.
17530
17531 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
17532 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
17533
17534 2002-09-27 Richard M. Stallman <rms@gnu.org>
17535
17536 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
17537 (read_char): Use them. Do all exits thru the end of the function.
17538
17539 2002-09-27 Kenichi Handa <handa@etl.go.jp>
17540
17541 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
17542 is nil.
17543
17544 2002-09-26 Richard M. Stallman <rms@gnu.org>
17545
17546 * regex.h (__restrict_arr): Don't define if already defined.
17547
17548 * coding.c (run_pre_post_conversion_on_str):
17549 Save and restore Vdeactivate_mark.
17550
17551 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
17552
17553 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
17554
17555 2002-09-26 Kenichi Handa <handa@etl.go.jp>
17556
17557 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
17558 nonzero, try face's family at first. Otherwise try FAMILY at first.
17559 (choose_face_font): If C is a single byte char or latin-1, call
17560 try_font_list with PREFER_FACE_FAMILY 1.
17561
17562 2002-09-21 Richard M. Stallman <rms@gnu.org>
17563
17564 * window.c (select_window_1): Don't select frame.
17565 Set frame's selected window only when frame itself is selected.
17566 (Fselect_window): Doc fix.
17567
17568 2002-09-18 Kim F. Storm <storm@cua.dk>
17569
17570 * process.c (make-network-process): Doc fix (there is no
17571 network-server-log-function hook).
17572
17573 2002-09-18 Richard M. Stallman <rms@gnu.org>
17574
17575 * print.c (print): Clear out the unused parts of Vprint_number_table.
17576 (syms_of_print): Doc fix for `print-number-table'.
17577
17578 * unexelf.c (unexec): Undo previous change.
17579
17580 2002-09-17 Andreas Schwab <schwab@suse.de>
17581
17582 * m/alpha.h [LINUX]: Don't define DATA_START.
17583
17584 2002-09-16 Dave Love <fx@gnu.org>
17585
17586 * unexelf.c (unexec): Deal with .got, reinstating change from
17587 25-08-1999.
17588
17589 2002-09-13 Richard M. Stallman <rms@gnu.org>
17590
17591 * s/sol2-6.h (UNEXEC): Comment out definition.
17592
17593 * unexsol.c (unexec): Don't downcase first letter of error msg.
17594
17595 * xfaces.c (Fcolor_supported_p): Just one arg is required.
17596
17597 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
17598
17599 * unexsol.c: Include buffer.h, charset.h, coding.h.
17600
17601 2002-09-11 Richard M. Stallman <rms@gnu.org>
17602
17603 * unexsol.c: Don't use report_file_error; do it by hand
17604 using dlerror.
17605
17606 * process.c (wait_reading_process_input, both versions):
17607 Before calling turn_on_atimers, call stop_polling.
17608
17609 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
17610
17611 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
17612 we go to too_near_end, call clear_glyph_matrix.
17613 (redisplay_window): After make_cursor_line_fully_visible,
17614 call clear_glyph_matrix and bypass `goto done'.
17615
17616 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
17617 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
17618
17619 2002-09-10 Richard M. Stallman <rms@gnu.org>
17620
17621 * fileio.c (Fdo_auto_save): Catch error making directory.
17622 Only call push_message if we need to.
17623 At the same time, make an unwind-protect to pop it.
17624 Rename local message_p to old_message_p.
17625 (do_auto_save_make_dir, do_auto_save_eh): New functions.
17626 (do_auto_save_unwind): Don't call pop_message.
17627
17628 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
17629
17630 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
17631
17632 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
17633
17634 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
17635
17636 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
17637
17638 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
17639 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
17640 (re_match_2_internal): Be more careful with infinite loops.
17641
17642 2002-09-10 Kim F. Storm <storm@cua.dk>
17643
17644 * macros.c (end_kbd_macro): New function.
17645 (Fend_kbd_macro): Use it.
17646
17647 * macros.h (end_kbd_macro): Declare extern.
17648
17649 * keyboard.c (Fdiscard_input): If defining keyboard macro,
17650 end and save it instead of discarding it.
17651
17652 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
17653
17654 * s/sol2-6.h: Fix typo. Add comment.
17655
17656 2002-09-09 Richard M. Stallman <rms@gnu.org>
17657
17658 * regex.c (regnum_t): Use signed int, not unsigned int.
17659
17660 * s/sol2-6.h: New file.
17661
17662 * s/sol2-5.h (UNEXEC): Definition deleted.
17663
17664 2002-09-08 Kim F. Storm <storm@cua.dk>
17665
17666 * macros.c (executing_macro_index): Change type to EMACS_INT.
17667 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
17668
17669 * macros.h (executing_macro_index): Change type to EMACS_INT.
17670
17671 2002-09-06 Richard M. Stallman <rms@gnu.org>
17672
17673 * casetab.c (set_case_table): Make canon table point to eqv table.
17674
17675 2002-09-06 Juanma Barranquero <lektu@terra.es>
17676
17677 * coding.c (syms_of_coding): Fix spacing.
17678
17679 * composite.c (Fcompose_region_internal)
17680 (Fcompose_string_internal): Likewise.
17681
17682 * data.c (Flsh): Likewise.
17683
17684 * fontset.c (Fset_fontset_font): Likewise.
17685
17686 * macfns.c (Fx_server_max_request_size): Likewise.
17687
17688 * w16select.c (syms_of_win16select): Likewise.
17689
17690 * w32select.c (syms_of_w32select): Likewise.
17691
17692 * xselect.c (syms_of_xselect): Likewise.
17693
17694 2002-09-05 Richard M. Stallman <rms@gnu.org>
17695
17696 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
17697 call EXTEND_RANGE_TABLE and return a proper value.
17698 (set_image_of_range): Don't call set_image_of_range_1
17699 if no TRANSLATE or if range includes all of Latin-1.
17700 Only call it for the Latin-1 part of the range.
17701 For other cases, make two separate ranges,
17702 one for the original specified characters and one for
17703 their case-conversions.
17704
17705 2002-09-04 Richard M. Stallman <rms@gnu.org>
17706
17707 * s/sol2-5.h (UNEXEC): Use unexsol.o.
17708
17709 * window.c (displayed_window_lines): Correct for one-off bug
17710 in HEIGHT on non-window displays.
17711
17712 * regex.c (set_image_of_range_1): New function.
17713 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
17714 Return a value to indicate running out of memory.
17715 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
17716 (extend_range_table_work_area): New subroutine.
17717 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
17718 Different calling conventions, and used from set_image_of_range{,_1}.
17719 (IMMEDIATE_QUIT_CHECK): Definitions moved.
17720
17721 2002-09-04 Juanma Barranquero <lektu@terra.es>
17722
17723 * makefile.w32-in: All dependencies updated.
17724
17725 2002-09-01 Richard M. Stallman <rms@gnu.org>
17726
17727 * unexsol.c: New file.
17728
17729 * xfns.c (Qbox): Declare external, don't define.
17730
17731 * xdisp.c (redisplay_window) <force-start case>:
17732 If point is on semi-visible last line, reposition
17733 it at previous line.
17734
17735 * alloc.c (display_malloc_warning): Use display-warning.
17736 (malloc_warning_1): Function deleted.
17737
17738 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
17739
17740 * lread.c (read1): Handle #! by skipping the line.
17741
17742 2002-08-31 Richard M. Stallman <rms@gnu.org>
17743
17744 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
17745 Don't include LDFLAGS.
17746 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
17747
17748 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
17749
17750 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
17751 member of x_display_info unless we compile for some window system.
17752
17753 2002-08-31 Kim F. Storm <storm@cua.dk>
17754
17755 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
17756 (get_window_cursor_type): Don't use them.
17757 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
17758
17759 2002-08-30 Kenichi Handa <handa@etl.go.jp>
17760
17761 * xdisp.c (get_next_display_element): Fix previous change.
17762
17763 2002-08-30 Andrew Choi <akochoi@shaw.ca>
17764
17765 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
17766 (expose_window): Use it to fix the display of overlapping
17767 rows (merge code from xterm.c).
17768
17769 * macfns.c (Qbox): Add extern declaration.
17770
17771 2002-08-30 Juanma Barranquero <lektu@terra.es>
17772
17773 * w32fns.c (Qbox): Make extern.
17774 (syms_of_w32fns): Remove initialization of Qbox.
17775
17776 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
17777
17778 * xfns.c (Fx_open_connection): Fix error message.
17779
17780 2002-08-30 Kim F. Storm <storm@cua.dk>
17781
17782 The following changes consolidates the handling of the cursor
17783 type in xdisp.c, moving duplicate code and functionality from
17784 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
17785
17786 * frame.h (enum text_cursor_kinds): Consolidated here.
17787 Added DEFAULT_CURSOR value.
17788 (struct frame) <desired_cursor, cursor_width>
17789 <blink_off_cursor, blink_off_cursor_width>: New fields.
17790 Consolidated from output_x, output_w32 and output_mac structs.
17791 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17792 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
17793
17794 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
17795 Variables consolidated here.
17796 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
17797 (Vcursor_in_non_selected_windows): Renamed from
17798 cursor_in_non_selected_windows and changed to Lisp_Object.
17799 (syms_of_xdisp): Define and staticpro new and moved variables.
17800 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
17801 consolidated here. Recognize Qhollow setting.
17802 (set_frame_cursor_types): New function to set frame cursor types
17803 based on the frame parameters.
17804 (get_window_cursor_type): New function to calculate new cursor
17805 type and width for the specified window. Based on duplicated
17806 code consolidated here.
17807 Enhancements: cursor-in-non-selected-windows may be a cursor type,
17808 check buffer-local alternate-cursor-type and blink-cursor-alist
17809 before using built-in blink off methods.
17810
17811 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
17812
17813 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
17814 (get_specified_cursor_type, get_window_cursor_type)
17815 (set_frame_cursor_types): Added prototypes.
17816
17817 * macfns.c (x_specified_cursor_type): Removed.
17818 (x_set_cursor_type): Use set_frame_cursor_types.
17819 (Qbar, Qbox): Removed.
17820 (syms_of_macfns): Don't intern or staticpro them.
17821
17822 * macterm.c (x_specified_cursor_type): Remove prototype.
17823 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17824 (x_display_and_set_cursor): Use get_window_cursor_type.
17825 Remove unused local variables cursor_non_selected, active_cursor.
17826 Redraw cursor if hbar cursor width changes.
17827 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
17828
17829 * macterm.h (enum text_cursor_kinds): Removed.
17830 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
17831 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17832 (FRAME_DESIRED_CURSOR): Macro removed.
17833
17834 * w32fns.c (Vblink_cursor_alist): Removed.
17835 (Qbar, Qhbar, Qbox, Qhollow): Removed.
17836 (syms_of_w32fns): Don't intern, staticpro, or define them.
17837 (x_specified_cursor_type): Removed.
17838 (x_set_cursor_type): Use set_frame_cursor_types.
17839
17840 * w32term.c (x_specified_cursor_type): Remove prototype.
17841 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17842 (x_display_and_set_cursor): Use get_window_cursor_type.
17843 Remove unused local variables cursor_off_state.
17844 Redraw cursor if hbar cursor width changes.
17845 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
17846
17847 * w32term.h (enum text_cursor_kinds): Removed.
17848 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
17849 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17850 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17851 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
17852 (struct w32_display_info) <x_highlight_frame>: Renamed member from
17853 w32_highlight_frame.
17854
17855 * xfns.c (Vblink_cursor_alist): Removed.
17856 (Qbar, Qhbar, Qbox, Qhollow): Removed.
17857 (syms_of_xfns): Don't intern, staticpro, or define them.
17858 (x_specified_cursor_type): Removed.
17859 (x_set_cursor_type): Use set_frame_cursor_types.
17860
17861 * xterm.c (x_specified_cursor_type): Remove prototype.
17862 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
17863 (x_display_and_set_cursor): Use get_window_cursor_type.
17864 Remove unused local variables cursor_off_state.
17865 Redraw cursor if hbar cursor width changes.
17866
17867 * xterm.h (enum text_cursor_kinds): Removed.
17868 (struct output_x) <current_cursor, desired_cursor, cursor_width>
17869 <blink_off_cursor, blink_off_cursor_width>: Members removed.
17870 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
17871 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
17872 (x_specified_cursor_type): Remove prototype.
17873
17874 2002-08-28 Richard M. Stallman <rms@gnu.org>
17875
17876 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
17877 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
17878 (Vblink_cursor_alist): New variable.
17879 (syms_of_w32fns): Initialize and defvar it.
17880 (x_specified_cursor_type): Recognize Qbox for filled box.
17881 Exceptions are hollow boxes.
17882 (Qbox, Qhollow): New variables.
17883 (syms_of_w32fns): Initialize and staticpro them.
17884
17885 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
17886 New macros.
17887 (struct w32_output): New fields blink_off_cursor,
17888 blink_off_cursor_width.
17889 (FRAME_CURSOR_WIDTH): New macro.
17890
17891 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
17892 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
17893
17894 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
17895 for bar cursor.
17896
17897 * w32term.c (expose_overlaps): New function.
17898 (expose_window): Use it to fix the display of overlapping rows.
17899
17900 2002-08-28 Simon Josefsson <jas@extundo.com>
17901
17902 * xfns.c (Fx_open_connection): Improve help when X connection
17903 fails, xhost is insecure and xauth is better.
17904
17905 2002-08-28 Juanma Barranquero <lektu@terra.es>
17906
17907 * makefile.w32-in: Add missing dependencies on w32term.h and
17908 composite.h.
17909
17910 * emacs.c (USAGE1): Add missing newline.
17911
17912 2002-08-27 Andrew Choi <akochoi@shaw.ca>
17913
17914 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
17915
17916 2002-08-27 Richard M. Stallman <rms@gnu.org>
17917
17918 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
17919 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
17920 (Vblink_cursor_alist): New variable.
17921 (syms_of_xfns): Initialize and defvar it.
17922 (x_specified_cursor_type): Recognize Qbox for filled box.
17923 Exceptions are hollow boxes.
17924 (Qbox, Qhollow): New variables.
17925 (syms_of_xfns): Initialize and staticpro them.
17926
17927 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
17928 New macros.
17929 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
17930
17931 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
17932 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
17933
17934 * emacs.c (main): Handle --script.
17935 (USAGE1): Mention --script.
17936 (standard_args): Define sort order for --script.
17937
17938 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
17939
17940 * xdisp.c (redisplay_updating_p): Variable removed.
17941 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
17942 New variables.
17943 (init_iterator): Don't free realized faces if
17944 inhibit_free_realized_faces is set.
17945 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
17946 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
17947 initialize Qinhibit_free_realized_faces.
17948
17949 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
17950 when iterator is adding glyphs to a glyph matrix.
17951
17952 2002-08-27 Kenichi Handa <handa@etl.go.jp>
17953
17954 * xdisp.c (get_next_display_element): In unibyte case, don't use
17955 octal form for such eight-bit characters that can be converted to
17956 multibyte char.
17957
17958 2002-08-26 Kim F. Storm <storm@cua.dk>
17959
17960 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
17961 foreground and background colors. From Joe Buehler.
17962
17963 2002-08-26 Miles Bader <miles@gnu.org>
17964
17965 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
17966
17967 2002-08-25 Andrew Choi <akochoi@shaw.ca>
17968
17969 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
17970 defined instead of MAC_OSX.
17971
17972 * s/darwin.h (select): Define select to sys_select only if
17973 HAVE_CARBON is defined.
17974 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
17975 (DONT_REOPEN_PTY): #def it.
17976
17977 * macterm.c (XTread_socket): Remove code to call
17978 SendEventToEventTarget for keys with command modifiers when
17979 mac_command_key_is_meta is nil.
17980
17981 2002-08-24 Andreas Schwab <schwab@suse.de>
17982
17983 * eval.c (Fdefvar): Fix last change.
17984
17985 2002-08-23 Richard M. Stallman <rms@gnu.org>
17986
17987 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
17988 Record variables in load history as (defvar . VAR).
17989 (Fdefvar): Don't record in load history if no initial value.
17990 (Qdefvar): New variable.
17991 (syms_of_eval): Init and staticpro it.
17992
17993 * lread.c (syms_of_lread): Doc fix.
17994 (build_load_history): Use Fmember to see if a definition
17995 is already in the Vload_history element.
17996
17997 * process.c (Fstart_process): Remove /: from program name.
17998
17999 * emacs.c (decode_env_path): Don't add /: if file name handler
18000 has a `safe-magic' property.
18001
18002 * callproc.c (Fcall_process): Remove /: from program name.
18003
18004 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
18005
18006 * regex.c (PATFETCH): Remove the translating fetch.
18007 (PATFETCH_RAW): Rename to PATFETCH.
18008 (set_image_of_range): New fun.
18009 (SET_RANGE_TABLE_WORK_AREA): Use it.
18010 (regex_compile): Don't translate the pattern chars so eagerly.
18011 Only do it when inserting an `exactn' bytecode or when handling
18012 a char-range.
18013 (mutually_exclusive_p): Avoid empty statement.
18014
18015 2002-08-22 Kim F. Storm <storm@cua.dk>
18016
18017 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
18018 end up on a partially visible line; this reverts a specific part
18019 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
18020 display error which has been reported several times now.
18021 However it introduces the problem that changes was supposed to fix.
18022 See my comments in the source if you want to debug this further.
18023
18024 2002-08-20 Kenichi Handa <handa@etl.go.jp>
18025
18026 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18027
18028 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
18029
18030 * msdos.c (croak): Add `void' to definition.
18031
18032 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
18033 Don't define them, they are defined in msdos.c.
18034
18035 * mem-limits.h [MSDOS]: Declare etext.
18036
18037 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
18038 `const' since CORRECT_DIR_SEPS modifies its target.
18039
18040 2002-08-19 Kim F. Storm <storm@cua.dk>
18041
18042 * keyboard.c (Fclear_this_command_keys): Add optional arg
18043 KEEP-RECORD to avoid clearing lossage when we just want to clear
18044 the current key sequence (kmacro needs this).
18045
18046 2002-08-19 Kenichi Handa <handa@localhost>
18047
18048 * composite.c (run_composition_function): Call FUNC if it is fboundp.
18049
18050 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
18051 cons, return Qnil.
18052
18053 2002-08-17 Richard M. Stallman <rms@gnu.org>
18054
18055 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
18056
18057 * sysdep.c [!VMS]: Include sys/files.h.
18058
18059 * editfns.c (save_restriction_restore): Defend from unchained marker.
18060
18061 * buffer.c (overlays_at): Handle extending vec uniformly.
18062 (overlays_in): Handle extending vec from length 0 as in overlays_at.
18063
18064 2002-08-15 Andrew Choi <akochoi@shaw.ca>
18065
18066 * mac.c (init_mac_osx_environment): New function.
18067
18068 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
18069
18070 2002-08-14 Kim F. Storm <storm@cua.dk>
18071
18072 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
18073 executing macro before appending to it (when used from Lisp).
18074 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
18075 which is called prior to each iteration of macro (for kmacro.el).
18076 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
18077
18078 * lisp.h (Fexecute_kbd_macro): Update prototype.
18079
18080 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
18081
18082 2002-08-14 Kenichi Handa <handa@etl.go.jp>
18083
18084 * xselect.c (QUTF8_STRING): New variable.
18085 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
18086 (x_atom_to_symbol): Likewise.
18087 (x_get_local_selection): New argument local_request. If it is
18088 nonzero, call handler_fn with the second arg nil.
18089 (x_handle_selection_request): Call x_get_local_selection with
18090 local_request 0.
18091 (lisp_data_to_selection_data): Don't encode the string here.
18092 (Fx_get_selection_internal): Call x_get_local_selection with
18093 local_request 1.
18094 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
18095
18096 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
18097
18098 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
18099
18100 2002-08-13 Richard M. Stallman <rms@gnu.org>
18101
18102 * minibuf.c (Fminibufferp): New function.
18103 (syms_of_minibuf): Defsubr it.
18104 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
18105
18106 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
18107
18108 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
18109
18110 2002-08-12 Richard M. Stallman <rms@gnu.org>
18111
18112 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
18113 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
18114 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
18115 already.
18116
18117 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
18118
18119 2002-08-11 Andrew Choi <akochoi@shaw.ca>
18120
18121 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
18122 (Vmac_pass_command_to_system): New variable.
18123 (Vmac_pass_control_to_system): New variable.
18124 (do_mouse_moved): Check wp with is_emacs_window.
18125 (XTread_socket): Check window_ptr with is_emacs_window.
18126 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
18127 events back to Mac Toolbox for processing, depending on values of
18128 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
18129 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
18130 Vmac_pass_control_to_system.
18131
18132 2002-08-10 Kenichi Handa <handa@etl.go.jp>
18133
18134 * coding.c (unencodable_char_position): New function.
18135 (Funencodable_char_position): New function.
18136 (syms_of_coding): Defsubr Funencodable_char_position.
18137
18138 2002-08-10 Andrew Choi <akochoi@shaw.ca>
18139
18140 * mac.c (sys_select) [MAC_OSX]: New function.
18141
18142 * macterm.c (MakeMeTheFrontProcess): New function.
18143 (mac_initialize): Call MakeMeTheFrontProcess.
18144
18145 * s/darwin.h: Define select to sys_select.
18146
18147 2002-08-09 Richard M. Stallman <rms@gnu.org>
18148
18149 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
18150
18151 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
18152
18153 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
18154 end of the buffer.
18155
18156 2002-08-08 Ken Raeburn <raeburn@gnu.org>
18157
18158 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
18159
18160 * puresize.h (BASE_PURESIZE): Increase to 910000.
18161
18162 2002-08-08 Kenichi Handa <handa@etl.go.jp>
18163
18164 * coding.c (Ffind_operation_coding_system): For write-region, if
18165 VISIT is a filename, make it the target.
18166
18167 2002-08-07 Richard M. Stallman <rms@gnu.org>
18168
18169 * alloc.c (mark_object): Detect long lists for debugging.
18170 (mark_object_loop_halt): New variable.
18171
18172 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
18173
18174 * data.c (Fmake_variable_frame_local): Doc fix.
18175
18176 2002-08-01 David Ponce <david@dponce.com>
18177
18178 * w32menu.c (local_heap, local_alloc, local_free): New macros.
18179 (malloc_widget_value, free_widget_value)
18180 (w32_free_submenu_strings): Use them.
18181
18182 (push_submenu_start, push_submenu_end, push_left_right_boundary)
18183 (push_menu_pane, push_menu_item, single_keymap_panes)
18184 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
18185 (single_submenu, set_frame_menubar)
18186 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
18187
18188 (Fx_popup_menu): Don't show pop up menu until preceding one is
18189 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
18190
18191 * w32menu.c: Changes adapted from xmenu.c
18192 (set_frame_menubar): First parse all submenus,
18193 then make widget_value trees from them.
18194 Don't allocate any widget_value objects
18195 until we are done with the parsing.
18196 (parse_single_submenu): New function.
18197 (digest_single_submenu): New function.
18198 (single_submenu): Function deleted, replaced by those two.
18199
18200 2002-08-04 Andrew Choi <akochoi@shaw.ca>
18201
18202 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
18203 returns a valid window pointer before proceeding for keyDown and
18204 autoKey events.
18205
18206 2002-08-03 Andrew Choi <akochoi@shaw.ca>
18207
18208 * macterm.c (USE_CARBON_EVENTS): New macro.
18209 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
18210 (x_iconify_frame): Call CollapseWindow.
18211 (Vmac_reverse_ctrl_meta): New variable.
18212 (Vmac_wheel_button_is_mouse_2): New variable.
18213 (init_mac_drag_n_drop): New function.
18214 (mac_do_receive_drag): New function.
18215 (mac_handle_service_event): New function.
18216 (init_service_handler): New function.
18217 (mac_to_emacs_modifiers): New function.
18218 (mac_event_to_emacs_modifiers): New function.
18219 (mac_get_mouse_btn): New function.
18220 (mac_convert_event_ref): New function.
18221 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
18222 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
18223 mac_get_mouse_btn.
18224 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
18225
18226 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
18227 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
18228 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
18229 TOOL_BAR_EVENT for MAC_OS as well.
18230 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
18231 as for WINDOWS_NT.
18232 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
18233
18234 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
18235
18236 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
18237
18238 * xdisp.c (forward_to_next_line_start): Fix a condition that
18239 lead to a newline being skipped.
18240
18241 2002-08-02 Andrew Choi <akochoi@shaw.ca>
18242
18243 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
18244
18245 2002-08-01 Richard M. Stallman <rms@gnu.org>
18246
18247 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
18248
18249 2002-07-31 Andrew Choi <akochoi@shaw.ca>
18250
18251 * macfns.c: #undef init_process before #define-ing it.
18252
18253 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
18254 HAVE_CARBON is defined.
18255
18256 2002-07-31 Richard M. Stallman <rms@gnu.org>
18257
18258 * xmenu.c (set_frame_menubar): First parse all submenus,
18259 then make widget_value trees from them.
18260 Don't allocate any widget_value objects
18261 until we are done with the parsing.
18262 (parse_single_submenu): New function.
18263 (digest_single_submenu): New function.
18264 (single_submenu): Function deleted, replaced by those two.
18265
18266 2002-07-30 Juanma Barranquero <lektu@terra.es>
18267
18268 * w32proc.c (syms_of_ntproc): Fix docstring of
18269 `w32-get-true-file-attributes'.
18270
18271 2002-07-28 Richard M. Stallman <rms@gnu.org>
18272
18273 * s/hpux8.h (HPUX8): Define this before including hpux.h.
18274 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
18275
18276 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
18277
18278 * keyboard.c (make_lispy_event):
18279 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
18280 Explicitly clear up_modifier in event->modifiers.
18281
18282 2002-07-27 Richard M. Stallman <rms@gnu.org>
18283
18284 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
18285
18286 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
18287 for bar cursor.
18288
18289 2002-07-26 Kenichi Handa <handa@etl.go.jp>
18290
18291 * coding.c (detect_coding_iso2022): While checking a byte sequence
18292 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
18293 it in the normal loop.
18294
18295 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
18296
18297 * xterm.c (expose_overlaps): New function.
18298 (expose_window): Use it to fix the display of overlapping rows.
18299
18300 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
18301
18302 2002-07-23 Ken Raeburn <raeburn@gnu.org>
18303
18304 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
18305 since it only depends on XUINT.
18306
18307 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
18308 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
18309 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
18310 Macros deleted.
18311
18312 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
18313 its value over other approaches.
18314 * sysdep.c (start_of_data): Don't define the function if a macro
18315 form has been defined.
18316
18317 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
18318
18319 * xdisp.c (redisplay_updating_p): New variable.
18320 (init_iterator): Don't free realized faces when
18321 redisplay_updating_p is set.
18322 (redisplay_internal): Set redisplay_updating_p while updating
18323 the display.
18324
18325 2002-07-23 Richard M. Stallman <rms@gnu.org>
18326
18327 * editfns.c (Fmessage): Treat "" like nil.
18328
18329 2002-07-23 Kenichi Handa <handa@etl.go.jp>
18330
18331 * xdisp.c (face_before_or_after_it_pos):
18332 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18333
18334 2002-07-22 Juanma Barranquero <lektu@terra.es>
18335
18336 * callproc.c (init_callproc) [DOS_NT]:
18337 Initialize Vshared_game_score_directory to nil.
18338 (syms_of_callproc) [DOS_NT]: Likewise.
18339
18340 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
18341
18342 * xdisp.c (display_line): Replace an abort with xassert.
18343
18344 2002-07-21 Richard M. Stallman <rms@gnu.org>
18345
18346 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
18347 and END_UNCHANGED when setting buffer_unchanged_p.
18348 Use current_matrix_up_to_date_p to decide whether to use
18349 try_cursor_movement.
18350
18351 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
18352
18353 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
18354
18355 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
18356 Set to nil if dir does not exist.
18357 (syms_of_callproc): Init unconditionally and simply.
18358
18359 * buffer.c (Fbuffer_list): Doc fix.
18360
18361 2002-07-21 Ken Raeburn <raeburn@gnu.org>
18362
18363 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
18364
18365 * buffer.c (mmap_realloc): When shrinking, make sure number of
18366 pages to unmap is rounded towards zero.
18367
18368 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
18369 (XSETINT): Deleted.
18370
18371 * m/att3b.h (XINT): Don't define.
18372 (VALBITS, VALMASK, XTYPE): Deleted.
18373 (DATA_SEG_BITS): Define.
18374 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
18375 ARRAY_MARK_FLAG): Deleted.
18376 (DATA_SEG_BITS): Define.
18377 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
18378 (DATA_SEG_BITS): Define.
18379
18380 2002-07-20 Richard M. Stallman <rms@gnu.org>
18381
18382 * print.c (print_error_message): New args CONTEXT and CALLER.
18383 Calls changed.
18384
18385 * lisp.h (print_error_message): Declare new args.
18386
18387 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
18388 and CONTEXT to print_error_message, don't print them here.
18389 For a Quit, don't use Vsignaling_function.
18390 Call message_log_maybe_newline.
18391
18392 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
18393
18394 2002-07-20 Kim F. Storm <storm@cua.dk>
18395
18396 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
18397
18398 2002-07-19 Ken Raeburn <raeburn@gnu.org>
18399
18400 * bytecode.c (struct byte_stack): Pointers into byte string now
18401 point to const.
18402 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
18403 const.
18404 * charset.h (BCOPY_SHORT): Source pointer now points to const.
18405 * coding.c (encode_eol, detect_coding, detect_eol):
18406 (decode_coding, encode_coding, detect_coding_system):
18407 Source strings now treated as const.
18408 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
18409 modify Lisp string contents.
18410 * coding.h (decode_coding, encode_coding, detect_coding,
18411 detect_eol): Declarations updated.
18412 * composite.c (compose_chars_in_text): Treat Lisp string contents
18413 as const.
18414 * dispnew.c (safe_bcopy): Source pointer now points to const.
18415 * lisp.h (STRING_COPYIN): New macro.
18416 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
18417 (internal_with_output_to_temp_buffer): Declarations updated.
18418 * print.c (temp_output_buffer_setup):
18419 (internal_with_output_to_temp_buffer): Buffer name argument is now
18420 pointer to const.
18421 * sound.c (struct sound_device): Function pointer field "write"
18422 buffer argument now points to const.
18423 (vox_write): Buffer argument points to const.
18424 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
18425 contents as const.
18426 * sysdep.c (emacs_write): Buffer pointer now const.
18427 * term.c (encode_terminal_code): Buffer pointer now const.
18428 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
18429 (x_face_list_fonts, x_update_menu_appearance):
18430 (hash_string_case_insensitive): Treat Lisp string contents as const.
18431
18432 2002-07-19 Juanma Barranquero <lektu@terra.es>
18433
18434 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
18435
18436 * fileio.c (syms_of_fileio): Likewise.
18437 (Ffile_name_as_directory): Fix argument name in docstring.
18438 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
18439
18440 2002-07-18 Richard M. Stallman <rms@gnu.org>
18441
18442 * data.c (Fdefalias): Doc fix.
18443
18444 2002-07-17 Dave Love <fx@gnu.org>
18445
18446 * intervals.h (text_property_stickiness): Use P_.
18447
18448 * ccl.c: Remove `emacs' conditionals.
18449 (ccl_backtrace_table): Fix size spec.
18450 (ccl_driver): Fix type errors.
18451
18452 2002-07-16 Ken Raeburn <raeburn@gnu.org>
18453
18454 * alloc.c (xstrdup, make_string, make_unibyte_string)
18455 (make_multibyte_string, build_string): String pointer args now
18456 point to const.
18457 * charset.c (find_charset_in_text, c_string_width):
18458 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
18459 * fileio.c (report_file_error):
18460 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
18461 (count_combining_before, count_combining_after, insert_1_both):
18462 (insert, insert_and_inherit, insert_string):
18463 (insert_before_markers, insert_before_markers_and_inherit):
18464 * lread.c (intern, oblookup, hash_string):
18465 * minibuf.c (temp_echo_area_glyphs):
18466 * search.c (fast_c_string_match_ignore_case):
18467 * sysdep.c (emacs_open, set_file_times):
18468 * xfaces.c (xstricmp):
18469 * xdisp.c (store_frame_title, string_char_and_length):
18470 (message_dolog, message2, message2_nolog, set_message): Likewise.
18471 (set_message_1): Cast message string argument to const pointer.
18472 * editfns.c (general_insert_function): Insertion function now
18473 takes pointer to const for input data.
18474 * charset.h (find_charset_in_text, c_string_width):
18475 (parse_str_as_multibyte): Declarations updated.
18476 * dispextern.h (xstricmp): Declaration updated.
18477 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
18478 (count_size_as_multibyte, count_combining_before):
18479 (count_combining_after, insert_1, insert_1_both, message_dolog):
18480 (insert, insert_and_inherit, insert_before_markers)
18481 (insert_before_markers_and_inherit, set_message, message2):
18482 (message2_dolog, build_string, make_string, make_unibyte_string):
18483 (make_multibyte_string, intern, oblookup, report_file_error):
18484 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
18485 (emacs_open, xstrdup): Declarations updated.
18486 * systime.h (set_file_times): Declaration updated.
18487
18488 * charset.c (find_charset_in_text, lisp_string_width): Use const
18489 for pointer to lisp string data.
18490 * charset.h (FETCH_STRING_CHAR_ADVANCE):
18491 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
18492 * coding.c (Ffind_coding_systems_region_interval):
18493 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
18494 (Fmake_directory_internal, Fdelete_directory):
18495 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
18496 * fontset.c (font_family_registry, fs_query_fontset):
18497 (list_fontsets):
18498 * frame.c (Fframe_parameter):
18499 * keyboard.c (cmd_error_internal):
18500 * keymap.c (Fdescribe_buffer_bindings):
18501 * lread.c (complete_filename_p, openp):
18502 * minibuf.c (Fminibuffer_complete_word):
18503 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
18504 (face_before_or_after_it_pos, next_element_from_string):
18505 (get_overlay_arrow_glyph_row, display_mode_element):
18506 (decode_mode_spec_coding):
18507 * xterm.c (same_x_server): Likewise.
18508
18509 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
18510 settings of non-existent fields.
18511
18512 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
18513 copy a lisp value.
18514
18515 * lread.c (Fintern_soft): Use string macros instead of
18516 Lisp_String fields.
18517 * keyboard.c (echo_char, parse_modifiers_uncached):
18518 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
18519 * textprop.c (validate_interval_range, interval_of): Likewise.
18520
18521 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
18522
18523 * charset.h (FETCH_STRING_CHAR_ADVANCE)
18524 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
18525 XSTRING()->size_byte.
18526
18527 * lisp.h (SDATA, SREF): Produce rvalue.
18528 (SSET): New macro.
18529 * alloc.c (make_event_array): Use SSET for storing into a string.
18530 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
18531 a string.
18532 * casefiddle.c (casify_object): Use SSET.
18533 * charset.h (FETCH_STRING_CHAR_ADVANCE)
18534 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
18535 address of string contents.
18536 * data.c (Faref): Use SDATA.
18537 (Faset): Use SDATA, SSET.
18538 * dired.c (directory_files_internal): Use SSET.
18539 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
18540 (Fread_file_name): Use SREF, SSET.
18541 * fns.c (concat): Use SSET.
18542 (concat, Fdelete): Use SDATA.
18543 * insdel.c (insert_from_string_1): Use SDATA.
18544 * keyboard.c (Fevent_convert_list): Use SREF.
18545 * lread.c (Fload): Use SDATA, SSET.
18546 * macfns.c (validate_x_resource_name): Use SSET.
18547 * process.c (status_message): Use SSET.
18548 * search.c (wordify): Use SDATA.
18549 (Freplace_match): Use SREF.
18550 * w32fns.c (validate_x_resource_name): Use SSET.
18551 * xfns.c (validate_x_resource_name): Use SSET.
18552 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
18553
18554 2002-07-16 Richard M. Stallman <rms@gnu.org>
18555
18556 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
18557
18558 * xdisp.c (reconsider_clip_changes):
18559 Don't test prevent_redisplay_optimizations_p.
18560 (redisplay_internal): Test prevent_redisplay_optimizations_p
18561 along with clip_changed in some cases.
18562 (try_window_id): Likewise.
18563 (redisplay_window): New local var buffer_unchanged_p.
18564
18565 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
18566
18567 * process.c (create_process): Test USG_SUBTTY_WORKS.
18568 (process_send_signal): Clean up handling of GID.
18569 Detect errors in ioctls meant to set GID.
18570
18571 * window.c (temp_output_buffer_show):
18572 Don't set prevent_redisplay_optimizations_p.
18573
18574 2002-07-15 Juanma Barranquero <lektu@terra.es>
18575
18576 * eval.c (Fdefvaralias): Add docstring argument.
18577
18578 2002-07-15 Ken Raeburn <raeburn@gnu.org>
18579
18580 * lisp.h (STRING_INTERVALS): Produce rvalue.
18581 (STRING_SET_INTERVALS): New macro.
18582 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
18583 * fns.c (Fstring_as_multibyte): Likewise.
18584 * intervals.c (balance_possible_root_interval, delete_interval)
18585 (create_root_interval, copy_intervals_to_string): Likewise.
18586 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
18587 instead of 0.
18588
18589 2002-07-14 Ken Raeburn <raeburn@gnu.org>
18590
18591 * lisp.h (STRING_SET_CHARS): New macro.
18592 (SCHARS, SBYTES): Produce rvalues.
18593 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
18594 * fns.c (concat): Likewise.
18595 * lread.c (read_vector): Likewise.
18596
18597 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
18598 (STRING_SET_UNIBYTE): New macro.
18599 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
18600 length of -1) changed to use STRING_SET_UNIBYTE.
18601 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
18602 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
18603 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
18604 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
18605 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
18606 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
18607 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
18608 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
18609 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
18610 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
18611 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
18612 STRING_BYTES or indirection changed to SCHARS, SBYTES,
18613 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
18614 unchanged for now.
18615
18616 2002-07-13 Kim F. Storm <storm@cua.dk>
18617
18618 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
18619
18620 2002-07-12 Richard M. Stallman <rms@gnu.org>
18621
18622 * fileio.c (Fwrite_region): Doc fix.
18623
18624 * print.c (print_error_message): Don't handle Vsignaling_function here.
18625
18626 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
18627 (command_loop_1): Avoid certain actions after memory-full error.
18628
18629 * eval.c (Fsignal): Don't call cancel_hourglass.
18630 For a memory-full error, don't call Vsignal_hook_function
18631 and don't set Vsignaling_function.
18632
18633 * process.c (process_send_signal): Add abort call.
18634
18635 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
18636
18637 * keymap.c (Fkey_binding): Fix typo.
18638
18639 2002-07-11 Richard M. Stallman <rms@gnu.org>
18640
18641 * alloc.c (Vmemory_full): New variable.
18642 (Vmemory_signal_data): Rename from memory_signal_data.
18643 Uses changed.
18644 (syms_of_alloc): Defvar them.
18645 (memory_full, buffer_memory_full): Set Vmemory_full.
18646
18647 * lisp.h (Vmemory_full): Add declaration.
18648 (current_column, indented_beyond_p): Change declaration.
18649
18650 * indent.c (last_known_column): Declare as double, not float.
18651 (current_column, current_column_1, string_display_width)
18652 (position_indentation): Return `double'.
18653 (indented_beyond_p): Arg `column' is `double'. Callers changed.
18654
18655 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
18656 (back_to_previous_visible_line_start)
18657 (reseat_at_next_visible_line_start, next_element_from_buffer):
18658 Use `double', not `float', when calling indented_beyond_p.
18659
18660 * s/hpux11.h (BROKEN_SA_RESTART): Define.
18661
18662 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
18663
18664 2002-07-11 Juanma Barranquero <lektu@terra.es>
18665
18666 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
18667 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
18668 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
18669 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
18670 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
18671 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
18672
18673 2002-07-10 Juanma Barranquero <lektu@terra.es>
18674
18675 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
18676 All callers changed.
18677
18678 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
18679
18680 * data.c (Fdefalias): Add an optional `docstring' argument.
18681 (set_internal, Fsetq_default): Use XCAR/XCDR.
18682
18683 * composite.c (HASH_VALUE, HASH_KEY):
18684 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
18685
18686 2002-07-09 Kenichi Handa <handa@etl.go.jp>
18687
18688 * callproc.c (Fcall_process): Fix previous change.
18689
18690 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
18691
18692 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
18693 Add support for hash-tables.
18694 (Ftry_completion): Return t even if the string appears multiple times.
18695
18696 * fns.c (Fnconc): Use XCDR.
18697 (Fprovide): Use CONSP and XCDR.
18698 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
18699 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
18700 (Fmake_hash_table): Accept `:size nil'.
18701 (Fmakehash): Delete: moved to subr.el.
18702 (syms_of_fns): Don't defsubr makehash.
18703
18704 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
18705 (HASH_TABLE_SIZE): Move from fns.c.
18706
18707 2002-07-07 Richard M. Stallman <rms@gnu.org>
18708
18709 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
18710 Instead just return 0 when there is something to be done.
18711 (try_scrolling): If make_cursor_line_fully_visible returns 0,
18712 retry scrolling as if cursor were off the bottom.
18713 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
18714 return CURSOR_MOVEMENT_MUST_SCROLL.
18715 (redisplay_window): If make_cursor_line_fully_visible returns 0,
18716 go to try_to_scroll.
18717
18718 * buffer.c (Fbuffer_local_value): Store current value into its binding
18719 so we get the up-to-date value for the binding that is loaded.
18720
18721 * eval.c (Fdefmacro): Doc fix.
18722
18723 2002-07-05 Dave Love <fx@gnu.org>
18724
18725 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
18726 correctly.
18727
18728 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
18729 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
18730 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
18731 CCL_LookupCharConstTbl.
18732 (syms_of_ccl): Defvar translation-hash-table-vector.
18733
18734 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18735
18736 * xdisp.c: Remove unused variable `face'.
18737
18738 2002-07-04 Juanma Barranquero <lektu@terra.es>
18739
18740 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
18741 obsolescence information.
18742
18743 2002-07-03 Andrew Choi <akochoi@shaw.ca>
18744
18745 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
18746 pattern. Search cache first.
18747 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
18748 for Japanese font.
18749 (XLoadQueryFont): Use it.
18750
18751 2002-07-02 Richard M. Stallman <rms@gnu.org>
18752
18753 * keymap.c (Fdefine_key): Doc fix.
18754
18755 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
18756
18757 2002-07-02 Juanma Barranquero <lektu@terra.es>
18758
18759 * keymap.c (syms_of_keymap): Fix typo.
18760
18761 2002-07-01 Andrew Choi <akochoi@shaw.ca>
18762
18763 * s/darwin.h: Define POSIX_SIGNALS.
18764
18765 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
18766 and FSRefMakePath to convert FSSpec returned with Apple Event to
18767 Posix pathname.
18768 (mac_initialize) [TARGET_API_MAC_CARBON]:
18769 Call init_required_apple_events and disable the `Quit' menu item
18770 provided automatically by the Carbon Toolbox.
18771
18772 2002-07-01 Dave Love <fx@gnu.org>
18773
18774 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18775 for K&R.
18776
18777 * xterm.c: Fix prototype for K&R.
18778
18779 * term.c (costs_set): Declare static, non-initialized for pcc.
18780
18781 2002-07-01 Richard M. Stallman <rms@gnu.org>
18782
18783 * keyboard.c (timer_last_idleness_start_time): New variable.
18784 (timer_start_idle): Set that.
18785 (read_key_sequence): Use that to reset timer_idleness_start_time
18786 to previous value.
18787
18788 * window.c (Frecenter): With arg, set optional_new_start.
18789
18790 * xdisp.c (redisplay_internal): Make optional_new_start really work.
18791
18792 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
18793 buffer for completion.
18794
18795 2002-06-29 Ken Raeburn <raeburn@gnu.org>
18796
18797 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
18798
18799 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18800
18801 * keyboard.c (readable_filtered_events): New function that filters
18802 FOCUS_IN_EVENT depending on parameter.
18803 (readable_events): Calls readable_filtered_events, not filtering
18804 FOCUS_IN_EVENT.
18805 (get_filtered_input_pending): New function, filtering parameter passed
18806 to readable_filtered_events.
18807 (get_input_pending): Calls get_filtered_input_pending, not filtering
18808 FOCUS_IN_EVENT.
18809 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
18810 FOCUS_IN_EVENT.
18811
18812 * xterm.h (struct x_output): Add focus_state.
18813
18814 * xterm.c (x_focus_changed): New function.
18815 (x_detect_focus_change): New function.
18816 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
18817 EnterNotify and LeaveNotify to track X focus changes.
18818
18819 2002-06-28 Andreas Schwab <schwab@suse.de>
18820
18821 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
18822
18823 2002-06-27 Kim F. Storm <storm@cua.dk>
18824
18825 * xdisp.c (mode_line_string_list, mode_line_string_face)
18826 (mode_line_string_face_prop): New variables.
18827 (store_mode_line_string): New function.
18828 (display_mode_element): Use store_mode_line_string to
18829 add mode-line string elements to mode_line_string_list
18830 when mode_line_string_list is non-nil.
18831 (Fformat_mode_line): Now returns propertized string by
18832 default. New arg NO-PROPS to ignore properties.
18833 (decode_mode_spec): Only add two dashes for %- in propertized
18834 mode-line string.
18835 (syms_of_xdisp): Init and staticpro mode_line_string_list.
18836
18837 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
18838
18839 * minibuf.c (minibuffer_completion_contents): Add return type.
18840
18841 2002-06-27 Juanma Barranquero <lektu@terra.es>
18842
18843 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
18844
18845 2002-06-26 Juanma Barranquero <lektu@terra.es>
18846
18847 * fileio.c (read_file_name_cleanup): Add missing return.
18848
18849 2002-06-26 Richard M. Stallman <rms@gnu.org>
18850
18851 * window.c (Frecenter): Don't set force_start flag.
18852
18853 * minibuf.c (do_completion, Fminibuffer_complete_word)
18854 (Fminibuffer_completion_help): Complete just the text before point.
18855 (minibuffer_completion_contents): New function.
18856
18857 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
18858
18859 * frame.c (frames_bury_buffer): Function deleted.
18860
18861 2002-06-25 Miles Bader <miles@gnu.org>
18862
18863 * callint.c (Fcall_interactively): When checking to see if doprnt hit
18864 the end of callint_message, allow for a terminating '\0'.
18865
18866 2002-06-24 Juanma Barranquero <lektu@terra.es>
18867
18868 * w32select.c: Include composite.h.
18869
18870 * w16select.c: Likewise.
18871
18872 2002-06-24 Kenichi Handa <handa@etl.go.jp>
18873
18874 * callproc.c (Fcall_process): If code detection is necessary,
18875 call detect_coding directly here.
18876
18877 * coding.c (detect_eol): Preserve coding->cmp_data.
18878
18879 * w16select.c (Fw16_get_clipboard_data):
18880 * w32fns.c (w32_to_x_font):
18881 * w32select.c (Fw32_get_clipboard_data):
18882 * xselect.c (selection_data_to_lisp_data):
18883 * xterm.c (XTread_socket): Disable composition handling.
18884
18885 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
18886
18887 * print.c (temp_output_buffer_setup): Kill all local variables.
18888
18889 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
18890
18891 * lread.c (Fread): Remove redundant and imprecise declaration.
18892
18893 * xfns.c (check_x_display_info): Use check_x_frame.
18894
18895 * .gdbinit (xprintsym): Use the new `xname' field.
18896 (xsymbol): Use it.
18897
18898 2002-06-22 Jason Rumney <jasonr@gnu.org>
18899
18900 * w32fns.c (file_dialog_callback): New function.
18901 (Fx_file_dialog): Allow selecting directories as well as files.
18902
18903 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18904
18905 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
18906 OpenBSD. Add support for mipseb-*-netbsd* machines.
18907
18908 2002-06-17 Andrew Choi <akochoi@shaw.ca>
18909
18910 * macterm.c (mac_scroll_area): Set foreground and backcolor to
18911 black and white before scrolling. Restore frame background and
18912 foreground color after scrolling.
18913 (do_window_update): Call XClearWindow before calling expose_frame.
18914 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
18915 FRAME_FOREGROUND_PIXEL of frame.
18916
18917 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
18918 test Mac command key as <ALT> key.
18919
18920 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
18921
18922 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
18923
18924 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
18925 Lookup keys in function-key-map immediately so that key-translation-map
18926 can be applied earlier.
18927 Remove function_key_possible and key_translation_possible, replaced
18928 by checking `keytran_start < t'.
18929
18930 * .gdbinit (xsymbol): Use the new `xname' field.
18931
18932 2002-06-17 Andrew Choi <akochoi@shaw.ca>
18933
18934 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
18935 test Mac command key as <ALT> key.
18936
18937 * mac.c (do_applescript): Call initialize_applescript if necessary
18938 when first called. Dispose of result_desc only when there is no error.
18939 (Fdo_applescript): Use %d format specifier instead of %ld.
18940
18941 2002-06-16 Andrew Choi <akochoi@shaw.ca>
18942
18943 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
18944 of FrontWindow for cases keyDown and autoKey.
18945
18946 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
18947 Vdefault_fontset to Monaco with mac-roman coding.
18948
18949 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
18950 init_process before and after inclusion of Carbon/Carbon.h, resp.
18951
18952 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
18953 cursor_gc.
18954 (add_font_name_table_entry): New function.
18955 (init_font_name_table): Use add_font_name_table_entry; add italic,
18956 bold, and bold-italic entries for truetype fonts.
18957
18958 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
18959 for Mac too.
18960 (try_font_list) [MAC_OS]: If no font matches given registry, try
18961 fonts with any registry matching face_family.
18962 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
18963
18964 * s/darwin.h: If autoconf detects the Ncurses library, define
18965 LIBS_TERMCAP to -lncurses to use it.
18966
18967 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
18968
18969 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
18970
18971 2002-06-15 Richard M. Stallman <rms@gnu.org>
18972
18973 * window.c (Fset_window_configuration): Explicitly preserve
18974 the point value that new_current_buffer had at the start.
18975
18976 2002-06-14 Juanma Barranquero <lektu@terra.es>
18977
18978 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
18979 Fix typos.
18980
18981 2002-06-14 Kim F. Storm <storm@cua.dk>
18982
18983 * insdel.c (insert_1_both, insert_from_string_1)
18984 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
18985 insert happened in the end_unchanged region. Otherwise, the
18986 redisplay may be confused and duplicate the last line in the
18987 buffer [seen after save-buffer when require-final-newline==t].
18988
18989 2002-06-13 Jason Rumney <jasonr@gnu.org>
18990
18991 * w32.c (init_environment): Remove EMACSLOCKDIR.
18992 (stat): Swap _S_IFDIR and _S_IFREG.
18993
18994 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18995
18996 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
18997 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
18998 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
18999 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
19000 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
19001 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
19002 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
19003 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
19004 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
19005 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
19006 SELECTION_REQUEST_EVENT, selection_clear_event to
19007 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
19008 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
19009 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
19010 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
19011 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
19012 no_event to NO_EVENT.
19013
19014 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19015
19016 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
19017
19018 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
19019
19020 * intervals.c (textget): Don't forget to `return'.
19021 (lookup_char_property): Use XCAR/XCDR.
19022
19023 2002-06-12 Juanma Barranquero <lektu@terra.es>
19024
19025 * xdisp.c (Fformat_mode_line): Fix typo.
19026
19027 2002-06-12 Kim F. Storm <storm@cua.dk>
19028
19029 * xdisp.c (Fformat_mode_line): New function.
19030 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
19031 (store_frame_title_char, store_frame_title): Use unconditionally.
19032 (init_xdisp): Defsubr Fformat_mode_line.
19033 Initialize frame_title_buf etc. unconditionally.
19034
19035 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
19036
19037 * keyboard.c (read_key_sequence):
19038 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
19039 things through those maps after downcasing events.
19040 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
19041 applies after function-key-map.
19042 Make sure that keytran can be done in the middle in the sequence.
19043 Be careful not to throw away events past the one we downcase.
19044
19045 * lread.c (read_integer): Remove unused var `tem'.
19046 (read1): Fix int/Lisp_Object mixup.
19047
19048 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
19049
19050 2002-06-11 Richard M. Stallman <rms@gnu.org>
19051
19052 * keyboard.c (readable_events): Ignore any number of
19053 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
19054
19055 2002-06-09 Miles Bader <miles@gnu.org>
19056
19057 * xfaces.c (Ftty_supports_face_attributes_p): New function.
19058 (parse_rgb_list, tty_lookup_color): New functions.
19059 (tty_defined_color): Use `tty_lookup_color' to do all the work.
19060 (color_distance, Fcolor_distance): New functions.
19061 (TTY_SAME_COLOR_THRESHOLD): New macro.
19062 (Qtty_color_standard_values): New variable.
19063 (syms_of_xfaces): Initialize new vars & functions.
19064
19065 2002-06-08 Colin Walters <walters@verbum.org>
19066
19067 * textprop.c (Vchar_property_alias_alist): New variable.
19068 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
19069
19070 * intervals.c (lookup_char_property): New function for looking up
19071 overlay and text properties, created from textget.
19072 (textget): Use it.
19073
19074 * intervals.h (lookup_char_property): Declare.
19075 (Vchar_property_alias_alist): Declare.
19076
19077 * buffer.c (Foverlay_get): Use lookup_char_property.
19078
19079 2002-06-07 Sam Steingold <sds@gnu.org>
19080
19081 * xselect.c (lisp_data_to_selection_data): Fix last change:
19082 *data_ret is not a Lisp string, while unibyte_string is.
19083
19084 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
19085
19086 * xselect.c (lisp_data_to_selection_data): Fix last change:
19087 set size_ret.
19088
19089 2002-06-07 Andreas Schwab <schwab@suse.de>
19090
19091 * m/amdx86-64.h: New file.
19092
19093 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
19094
19095 * fns.c (Fstring_make_unibyte): Doc fix.
19096
19097 * xselect.c (lisp_data_to_selection_data): If the requested type
19098 is STRING, call string_make_unibyte to encode the selected text
19099 as a string.
19100
19101 * window.c (Fset_window_hscroll): Doc fix.
19102
19103 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19104
19105 * fileio.c (choose_write_coding_system):
19106 Call select-safe-coding-system properly.
19107
19108 2002-06-03 Richard M. Stallman <rms@gnu.org>
19109
19110 * xdisp.c (message_with_string): Error if STRING is not a string.
19111
19112 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
19113
19114 * fileio.c (choose_write_coding_system): Pass FILE arg to
19115 Vselect_safe_coding_system_function.
19116
19117 2002-06-03 Ken Raeburn <raeburn@gnu.org>
19118
19119 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
19120
19121 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
19122
19123 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
19124 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
19125 * keymap.c (describe_command): Likewise.
19126 * minibuf.c (read_minibuf): Likewise.
19127
19128 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
19129 Cast `current_column' return value to int.
19130 (back_to_previous_visible_line_start)
19131 (reseat_at_next_visible_line_start, next_element_from_buffer):
19132 Cast `indented_beyond_p' 3rd arg to float.
19133
19134 * indent.c (last_known_column): Now a float.
19135 (current_column_1, position_indentation, current_column)
19136 (string_display_width): Return float.
19137 (Fcurrent_column): Cast `current_column' return value to int.
19138 (Fcurrent_indentation): Cast `position_indentation' retval to int.
19139 (indented_beyond_p): Third arg now a float.
19140 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
19141
19142 * lisp.h (current_column): Now returns float.
19143 (indented_beyond_p): 3rd arg now a float.
19144
19145 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
19146
19147 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
19148 is Qcompound_text_with_extensions.
19149
19150 * xselect.c (lisp_data_to_selection_data): Always set selection
19151 type as string if x_encode_text returns streingp non-NULL.
19152
19153 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
19154
19155 2002-05-30 Richard M. Stallman <rms@gnu.org>
19156
19157 * window.c (Fset_window_configuration): Correct the handling
19158 of point in current buffer, to work with multiple windows.
19159
19160 2002-05-29 Colin Walters <walters@verbum.org>
19161
19162 * lread.c (Fread_from_string): Don't depend on order of evaluation
19163 for C function parameters.
19164
19165 2002-05-28 Richard M. Stallman <rms@gnu.org>
19166
19167 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
19168 way for blinked-off state and for a nonselected window.
19169
19170 * window.c (window_scroll_pixel_based): Don't call Fbolp;
19171 instead, see if the new start pos is at beginning of line.
19172
19173 * fileio.c (Fwrite_region): If START is a string, don't
19174 make any annotations.
19175
19176 * eval.c (syms_of_eval): Doc fix.
19177
19178 2002-05-28 Colin Walters <walters@debian.org>
19179
19180 * emacs.c (USAGE1): Add --no-splash.
19181 (standard_args): Ditto.
19182
19183 2002-05-28 Colin Walters <walters@gnu.org>
19184
19185 * lread.c (readchar_count): New variable.
19186 (readchar): Increment it.
19187 (unreadchar): Decrement it.
19188 (read_multibyte): Decrement it.
19189 (Vread_with_symbol_positions): New variable.
19190 (Vread_symbol_positions_list): New variable.
19191 (read_internal_start): New function, created from Fread and
19192 Fread_from_string. Handle Vread_symbol_positions_list and
19193 Vread_with_symbol_positions.
19194 (readevalloop, Fread, Fread_from_string): Use it.
19195 (read1): Use readchar_count to add symbol positions to
19196 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
19197 (syms_of_lread): DEFVAR_LISP and initialize them.
19198
19199 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
19200 (substitute_object_recurse, substitute_object_in_subtree)
19201 (substitute_in_interval): Prototype.
19202 (read_multibyte): Return c if it's less than zero.
19203
19204 2002-05-28 Kim F. Storm <storm@cua.dk>
19205
19206 * fileio.c (Fread_file_name_internal): Added brute-force
19207 speed up for using predicate file-directory-p.
19208
19209 2002-05-28 Kim F. Storm <storm@cua.dk>
19210
19211 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
19212 New variables.
19213 (syms_of_fileio): DEFVAR_LISP them.
19214 (read_file_name_cleanup): New unwind function.
19215 (Fread_file_name_internal): Only return completions satifying
19216 Vread_file_name_predicate. Temporarily unwind protect and rebind
19217 default-directory while checking completions against the predicate.
19218 (Fread_file_name): Added PREDICATE argument. Specbind it to
19219 Vread_file_name_predicate during completion.
19220 Call Vread_file_name_function to read the file name if non-nil.
19221
19222 * lisp.h (Fread_file_name): Now has 6 args.
19223
19224 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
19225 predicate for Fread_file_name when reading directory name.
19226 Supply Qnil for predicate in other calls to Fread_file_name.
19227
19228 2002-05-26 Miles Bader <miles@gnu.org>
19229
19230 * term.c (tty_capable_p): New function.
19231 * dispextern.h (tty_capable_p): New function declaration.
19232 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
19233 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
19234
19235 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
19236
19237 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
19238 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
19239 (Vwrite_region_annotate_functions): Docstring fix.
19240
19241 2002-05-23 Kim F. Storm <storm@cua.dk>
19242
19243 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
19244 phys_cursor's hpos is overwritten. This is still not completely
19245 correct, as it doesn't really make sense to use hpos at all to
19246 get the cursor glyph (as that is relative to the width of the
19247 characters on the line, which may have changed during the update).
19248
19249 2002-05-22 Jason Rumney <jasonr@gnu.org>
19250
19251 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
19252 Lisp_Object.
19253 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
19254 Use modified enumfont_t struct.
19255
19256 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
19257
19258 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
19259 Handle the `hbar' cursor type.
19260 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
19261
19262 * w32fns.c (Qhbar): New variable.
19263 (x_specified_cursor_type): Use it.
19264
19265 2002-05-21 Ken Raeburn <raeburn@gnu.org>
19266
19267 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
19268 now, when the address is needed.
19269
19270 2002-05-21 Colin Walters <walters@gnu.org>
19271
19272 * Makefile.in (shortlisp): Add font-core.el.
19273
19274 2002-05-20 Richard M. Stallman <rms@gnu.org>
19275
19276 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
19277
19278 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
19279 equivalent key bindings here.
19280
19281 2002-05-20 Ken Raeburn <raeburn@gnu.org>
19282
19283 Change symbol structure to contain a lisp object for the symbol
19284 name:
19285 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
19286 object field named "xname".
19287 (SYMBOL_NAME): New macro.
19288 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
19289 name field.
19290 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
19291 (mark_object, gc_sweep): Use symbol xname field and XSTRING
19292 instead of name field.
19293 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
19294 SYMBOL_NAME instead of XSYMBOL and name field.
19295 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
19296 instead of XSYMBOL and name field.
19297 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
19298 and SYMBOL_NAME instead of XSYMBOL and name field.
19299 * coding.c (Fread_coding_system, code_convert_region1)
19300 (code_convert_string1, code_convert_string_norecord)
19301 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
19302 XSYMBOL and name field.
19303 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
19304 (Fmake_variable_buffer_local, Fmake_local_variable)
19305 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
19306 of XSYMBOL and name field.
19307 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
19308 XSYMBOL and name field.
19309 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
19310 instead of XSYMBOL and name field.
19311 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
19312 XSYMBOL and name field.
19313 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
19314 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19315 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
19316 instead of XSYMBOL and name field.
19317 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
19318 (parse_modifiers, apply_modifiers, Fevent_convert_list)
19319 (parse_solitary_modifier, Fexecute_extended_command):
19320 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19321 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
19322 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
19323 of XSYMBOL and name field.
19324 (describe_command, describe_translation): Use SYMBOL_NAME and
19325 assignment instead of XSYMBOL and name field and XSETSTRING.
19326 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
19327 instead of XSYMBOL and name field.
19328 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
19329 name field and XSETSTRING.
19330 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
19331 of XSYMBOL and name field.
19332 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
19333 assignment instead of XSYMBOL and name field and XSETSTRING.
19334 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
19335 XSTRING instead of XSYMBOL and name field.
19336 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
19337 and XSTRING instead of XSYMBOL and name field.
19338 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
19339 and XSTRING instead of XSYMBOL and name field.
19340 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
19341 XSTRING instead of XSYMBOL and name field.
19342 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
19343 of XSYMBOL and name field.
19344 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
19345 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
19346
19347 2002-05-19 Ken Raeburn <raeburn@gnu.org>
19348
19349 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
19350 and XCDR real rvalues in most configurations.
19351
19352 * buffer.c (fix_overlays_in_range, fix_overlays_before):
19353 Don't take the address of the cdr part of a cons cell; instead, track
19354 the parent cell and call XSETCDR, or set the variable for the head
19355 of the list if we haven't started down the list yet.
19356
19357 2002-05-19 Richard M. Stallman <rms@gnu.org>
19358
19359 * doc.c (reread_doc_file): Don't ask for confirmation.
19360
19361 2002-05-18 Jason Rumney <jasonr@gnu.org>
19362
19363 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
19364 (xbm_load_image): Use it.
19365 (xbm_load): Ditto.
19366 (xbm_read_bitmap_data): Reverted to xfns.c version.
19367 From David Ponce <david@dponce.com>.
19368
19369 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
19370
19371 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
19372 2.02 and later.
19373
19374 2002-05-16 Juanma Barranquero <lektu@terra.es>
19375
19376 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
19377
19378 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
19379
19380 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
19381 meaningful test.
19382 (read_char_minibuf_menu_prompt): Fix typo.
19383
19384 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
19385
19386 * eval.c (Fcommandp): Doc fix.
19387
19388 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
19389
19390 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
19391 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
19392 (Fset_keymap_parent): Gcpro a bit more.
19393 (access_keymap): Gcpro around meta_map call and around the main loop.
19394 (get_keyelt): Gcpro when following indirect references.
19395 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
19396 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
19397 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
19398 Remove useless ad-hoc remap code.
19399
19400 2002-05-13 Richard M. Stallman <rms@gnu.org>
19401
19402 * search.c (search_buffer): Give up boyer moore search if inverse
19403 translation change charset_base.
19404
19405 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
19406
19407 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
19408 characters is carried over from the previous block of text, adjust
19409 coding->produced to account for the extra character.
19410
19411 2002-05-11 Andreas Schwab <schwab@suse.de>
19412
19413 * coding.c (intersection): Keep the elements of the returned list
19414 in the same order as in the first list.
19415
19416 2002-05-11 Kim F. Storm <storm@cua.dk>
19417
19418 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
19419 only update cmm_size if realloc actually succeeds.
19420 Testing with initial size of 2 elements revealed that using
19421 realloc on GNU/Linux would cause a random trap in xmalloc
19422 later on, so I rewrote the code to use malloc/bcopy/free instead
19423 of realloc.
19424
19425 2002-05-10 Jason Rumney <jasonr@gnu.org>
19426
19427 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
19428
19429 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
19430
19431 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
19432 parens, to ensure correct evaluation order.
19433
19434 2002-05-10 Kim F. Storm <storm@cua.dk>
19435
19436 * keymap.c (Vemulation_mode_map_alists): New variable.
19437 (syms_of_keymap): DEFVAR_LISP it.
19438 (current_minor_maps): Process keymap alists in that list before
19439 minor-mode-overriding-map-alist and minor-mode-map-alist.
19440
19441 2002-05-09 Richard M. Stallman <rms@gnu.org>
19442
19443 * search.c (Freplace_match): Doc fix.
19444
19445 2002-05-09 Kim F. Storm <storm@cua.dk>
19446
19447 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
19448 Enlarge cursor rectangle drawn around image with non-zero relief.
19449
19450 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
19451 Enlarge cursor rectangle drawn around image with non-zero relief.
19452
19453 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
19454 Enlarge cursor rectangle drawn around image with non-zero relief.
19455
19456 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
19457
19458 * xselect.c (lisp_data_to_selection_data): Don't set selection
19459 type if comes from the Lisp object's car. If the selection
19460 contains a pure ASCII text, always return QSTRING as its type.
19461
19462 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19463
19464 * mac.c (mac-cut-function): Doc fix.
19465
19466 2002-05-05 Richard M. Stallman <rms@gnu.org>
19467
19468 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
19469
19470 2002-05-04 Jason Rumney <jasonr@gnu.org>
19471
19472 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
19473 for event-click-count.
19474
19475 * process.c (init_process): Only add server subfeature if we can
19476 use non-blocking I/O.
19477
19478 2002-05-04 Andrew Choi <akochoi@shaw.ca>
19479
19480 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
19481 repeatedly.
19482
19483 2002-05-03 Jason Rumney <jasonr@gnu.org>
19484
19485 * process.c (Fmake_network_process): Only support server sockets
19486 when we can make them non-blocking.
19487
19488 * s/ms-w32.h (HAVE_SELECT): Define.
19489
19490 * w32.h (FILE_NDELAY): New flag.
19491
19492 * w32.c (sys_getpeername, fcntl): New functions.
19493 (_sys_read_ahead): Temporarily block on non-blocking sockets.
19494
19495 * w32proc.c: Include sys/file.h.
19496
19497 2002-05-03 Colin Walters <walters@verbum.org>
19498
19499 * callproc.c (Vgame_score_directory): Renamed to
19500 Vshared_game_score_directory.
19501
19502 2002-04-30 Richard M. Stallman <rms@gnu.org>
19503
19504 * s/gnu.h [emacs]: Include stdio.h.
19505 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
19506
19507 * eval.c (do_autoload): Error if called while preparing to dump.
19508
19509 * fns.c (Frequire): Error if need to load while preparing to dump.
19510
19511 2002-04-28 Colin Walters <walters@verbum.org>
19512
19513 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
19514 Default to "~/.emacs.d/games".
19515
19516 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
19517
19518 * lread.c (openp): Change arg exec_only to predicate.
19519 (build_load_history): Use XCAR/XCDR.
19520 (Flocate_file_internal): New fun.
19521 (syms_of_lread): Defsubr it.
19522 (Fload): Update call to openp.
19523
19524 * lisp.h (openp): Update prototype.
19525
19526 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
19527 * w32proc.c (sys_spawnve):
19528 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
19529 * w32.c (check_windows_init_file):
19530 * sound.c (Fplay_sound_internal):
19531 * process.c (Fstart_process):
19532 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
19533 * mac.c (run_mac_command):
19534 * emacs.c (init_cmdargs):
19535 * callproc.c (Fcall_process): Update call to openp.
19536
19537 * textprop.c (remove_properties): Don't use XCAR without CONSP.
19538
19539 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
19540
19541 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19542
19543 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
19544 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
19545
19546 2002-04-28 Richard M. Stallman <rms@gnu.org>
19547
19548 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
19549
19550 * eval.c (Fcommandp): New arg for_call_interactively.
19551 * lisp.h (Fcommandp): Declare new arg.
19552
19553 2002-04-28 Jason Rumney <jasonr@gnu.org>
19554
19555 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
19556
19557 * w32.c (stat, fstat): Use file index information to generate
19558 inodes for directories where available.
19559
19560 2002-04-26 Andrew Choi <akochoi@shaw.ca>
19561
19562 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
19563 [HAVE_CARBON]: Include Mac object files.
19564
19565 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
19566 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
19567 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
19568 MAC_OSX, and MAC_OS instead of macintosh.
19569
19570 * editfns.c [MAC_OS8]: Include stdio.h.
19571
19572 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
19573
19574 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
19575 Apple Monaco.
19576
19577 * process.c (QCfamily, QCfilte): Declare extern.
19578 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
19579 calling select.
19580
19581 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
19582
19583 * tparam.c [MAC_OSX]: Don't define BC and UP.
19584
19585 * config.in [HAVE_CARBON]: Add.
19586
19587 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
19588 Move here from mac/src and mac/inc.
19589
19590 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
19591
19592 2002-04-26 Gerd Moellmann <gerd@gnu.org>
19593
19594 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
19595 Compute phys_cursor_width from the x position returned
19596 by x_draw_glyhs, which is cheaper.
19597 (x_display_and_set_cursor): Compute the buffer-local value
19598 of `cursor-in-non-selected-windows' only when needed.
19599
19600 2002-04-25 Gerd Moellmann <gerd@gnu.org>
19601
19602 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
19603 cursor on a stretch glyph has a width that depends on
19604 x_stretch_cursor_p.
19605
19606 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19607
19608 * abbrev.c (abbrev-start-location): Doc fix.
19609
19610 * indent.c (Fvertical_motion): Fix last change.
19611
19612 2002-04-25 Gerd Moellmann <gerd@gnu.org>
19613
19614 * indent.c (Fvertical_motion): Move to the start of the line
19615 containing PT before moving up or down.
19616
19617 2002-04-24 Gerd Moellmann <gerd@gnu.org>
19618
19619 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
19620 case of writing a whole row, more or less analogous to the case of
19621 writing only parts of a row.
19622
19623 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
19624 0 for NO_CURSOR.
19625
19626 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
19627
19628 2002-04-23 Colin Walters <walters@verbum.org>
19629
19630 * buffer.c (syms_of_buffer): Doc fix.
19631
19632 2002-04-23 Gerd Moellmann <gerd@gnu.org>
19633
19634 * xterm.c (notice_overwritten_cursor): Handle the special case
19635 of the cursor being in the first blank non-text line at the
19636 end of a window.
19637
19638 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
19639 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
19640 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
19641 bar cursors only, to make phys_cursor_width contain what its name
19642 suggests.
19643 (notice_overwritten_cursor): Consider the cursor image erased if
19644 the output area intersects the cursor image in y-direction.
19645
19646 2002-04-23 Simon Marshall <simon@gnu.org>
19647
19648 * xfns.c (x_set_mouse_color): Change default for cross_cursor
19649 to XC_hand2.
19650
19651 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19652
19653 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
19654
19655 2002-04-22 Kim F. Storm <storm@cua.dk>
19656
19657 * textprop.c (remove_properties): Fixed trap for malformed plist.
19658
19659 2002-04-22 Richard M. Stallman <rms@gnu.org>
19660
19661 * cmds.c (Fend_of_line): Handle intangible text in mid line.
19662
19663 * window.c (make_window): Initialize height_fixed_p,
19664 last_cursor_off_p, and p->cursor_off_p slots.
19665
19666 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19667
19668 * fns.c (use-dialog-box): Doc fix.
19669
19670 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19671
19672 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
19673 variables `row', `i' and `area'.
19674 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
19675 toolkit library.
19676
19677 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
19678
19679 * xfaces.c (clear_font_table): Don't free the default font of
19680 a frame even if it's on another display.
19681 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
19682 that could be Qt.
19683
19684 2002-04-19 Juanma Barranquero <lektu@terra.es>
19685
19686 * indent.c (Fmove_to_column): Remove unused local variable
19687 `next_boundary_byte'.
19688 (current_column_1): Likewise.
19689
19690 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
19691
19692 * msdos.c (Qhbar): New variable.
19693 (syms_of_msdos): Intern and staticpro it.
19694 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
19695 cursor type.
19696
19697 2002-04-19 Dave Lambert <dlambert@acm.org>
19698
19699 Theses change implement an underscore-like (`hbar') cursor.
19700
19701 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
19702
19703 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
19704 Handle the `hbar' cursor type.
19705 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
19706
19707 * xfns.c (Qhbar): New variable.
19708 (syms_of_xfns): Intern and staticpro it.
19709 (x_specified_cursor_type): Handle `hbar' cursor.
19710
19711 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
19712 not defined.
19713
19714 2002-04-18 Richard M. Stallman <rms@gnu.org>
19715
19716 * textprop.c (remove_properties): New arg LIST allows scanning
19717 either a list or a plist.
19718 (interval_has_some_properties_list): New function, like
19719 interval_has_some_properties using list instead of plist.
19720 All callers changed.
19721 (Fremove_list_of_text_properties): New function.
19722 (syms_of_textprop): Defsubr it.
19723
19724 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
19725
19726 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
19727
19728 2002-04-17 Juanma Barranquero <lektu@terra.es>
19729
19730 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
19731
19732 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
19733
19734 * window.c (coordinates_in_window): Don't report on margin area
19735 if its width is zero.
19736
19737 2002-04-16 Jason Rumney <jasonr@gnu.org>
19738
19739 * w32fns.c (Fx_file_dialog): Decode file name before using.
19740
19741 * w32term.c (construct_drag_n_drop): Likewise.
19742
19743 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
19744
19745 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
19746 store load-history in pure space.
19747
19748 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
19749
19750 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
19751
19752 * xterm.c (Qlatin_1, Qutf_8): New vars.
19753 (syms_of_xterm): Initialize them.
19754 (XTread_socket): Eliminate incorrect optimization that tried to avoid
19755 decoding the output of X*LookupString.
19756 Always use latin-1 to decode the output of XLookupString.
19757 Try Xutf8LookupString if XmbLookupString failed.
19758
19759 * region-cache.c (new_region_cache): Use BEG.
19760
19761 2002-04-16 Gerd Moellmann <gerd@gnu.org>
19762
19763 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
19764 configuration files.
19765 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
19766 returns 0.
19767
19768 2002-04-15 Andreas Schwab <schwab@suse.de>
19769
19770 * config.in: Regenerated using autoheader.
19771
19772 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
19773 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
19774 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
19775 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
19776 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
19777 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
19778 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
19779 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
19780 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
19781 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
19782 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
19783 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
19784 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
19785 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
19786 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
19787 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
19788 STACK_DIRECTION, now set by autoconf.
19789
19790 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19791
19792 * dispnew.c (marginal_area_string): Sort arguments.
19793
19794 * dispextern.h (marginal_area_string): Add prototype.
19795
19796 2002-04-13 Richard M. Stallman <rms@gnu.org>
19797
19798 * fileio.c (Finsert_file_contents):
19799 Don't call temp_output_buffer_setup--do just part, by hand.
19800
19801 * coding.c (run_pre_post_conversion_on_str):
19802 Don't call temp_output_buffer_setup--do just part, by hand.
19803
19804 * keyboard.c (command_loop_1): Don't call start_hourglass
19805 or cancel_hourglass when executing a macro.
19806
19807 * marker.c (count_markers): New function.
19808
19809 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
19810 grow without limit. Move recently used elements to the front.
19811
19812 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
19813
19814 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
19815
19816 2002-04-12 Gerd Moellmann <gerd@gnu.org>
19817
19818 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
19819 rows marginal areas.
19820 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
19821 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
19822
19823 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
19824
19825 2002-04-12 Dave Love <fx@gnu.org>
19826
19827 * dispnew.c (marginal_area_string): New.
19828
19829 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
19830 (Qleft_margin, Qright_margin): Declare.
19831 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
19832
19833 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
19834 note_mode_line_highlight and extended.
19835
19836 * keyboard.c (Qleft_margin, Qright_margin): Declare.
19837 (make_lispy_event): Deal with mouse events in margins.
19838
19839 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
19840
19841 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
19842
19843 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
19844 than deactivating the mark if tmm is set to `lambda'.
19845 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
19846 Use a single event for HELP_EVENT.
19847 (Fexecute_extended_command): Save last_point_position.
19848
19849 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19850
19851 * lisp.h (Fpropertize): Add prototype.
19852
19853 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
19854
19855 2002-04-10 Colin Walters <walters@verbum.org>
19856
19857 * config.in: Add HAVE_SHARED_GAME_DIR.
19858
19859 * callproc.c (Vgame_score_directory): New variable.
19860 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
19861
19862 2002-04-10 Richard M. Stallman <rms@gnu.org>
19863
19864 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
19865
19866 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
19867
19868 * minibuf.c (read_minibuf): Use empty_string.
19869 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
19870 Short-circuit the search as soon as it "failed".
19871 (Fall_completions): Allow lambda forms and lists of strings for alist.
19872 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
19873 when require_match is nil.
19874 (Ftest_completion): Rename from `test_completion' and export to elisp.
19875 Call the predicate also when alist is a list.
19876 Obey Vcompletion_regexp_list.
19877 (do_completion, Fminibuffer_complete_and_exit): Use it.
19878 (Fassoc_string): Rename from `assoc_for_completion'.
19879 Allow list of strings as well and export to elisp.
19880
19881 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
19882
19883 * puresize.h (BASE_PURESIZE): Increase to 900KB.
19884
19885 2002-04-08 Juanma Barranquero <lektu@terra.es>
19886
19887 * w32.c (sys_accept): Don't hide variable `s'.
19888
19889 2002-04-05 Gerd Moellmann <gerd@gnu.org>
19890
19891 * callint.c (Fcall_interactively): Use INTEGERP instead of
19892 NUMBERP for checking Vhistory_length.
19893
19894 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19895
19896 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
19897 Doc fix to reflect it.
19898
19899 2002-04-04 Richard M. Stallman <rms@gnu.org>
19900
19901 * xdisp.c (display_mode_element): New arg RISKY.
19902 Disregard text props found or specified within a variable
19903 that isn't marked risky-local-variable.
19904 (Qrisky_local_variable): New variable.
19905 (syms_of_xdisp): Init and staticpro it.
19906
19907 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
19908
19909 * undo.c (record_point): New fun.
19910 (record_delete, record_insert): Use it.
19911
19912 2002-04-03 Juanma Barranquero <lektu@terra.es>
19913
19914 * doc.c (Fdocumentation): Add missing parentheses.
19915 (Fdocumentation_property): Likewise.
19916
19917 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
19918
19919 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
19920 data is 0, just return nil.
19921
19922 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
19923
19924 * msdos.c (syms_of_msdos): Fix last change with
19925 mouse_autoselect_window.
19926
19927 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19928
19929 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
19930 mouse_autoselect_window.
19931
19932 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
19933
19934 * keyboard.c (make_lispy_event): Handle unknown keysyms together
19935 with system-specific keysyms. Use it also for unknown function keys.
19936
19937 * doc.c (reread_doc_file): Return whether reload was attempted.
19938 (Fdocumentation, Fdocumentation_property): Don't try to reload
19939 if the doc is 0 and only ask once.
19940
19941 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
19942
19943 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
19944
19945 * keyboard.c (read_char): If the event was Qselect_window,
19946 restore timer_idleness_start_time to its previous value.
19947
19948 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
19949
19950 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
19951
19952 * region-cache.c (new_region_cache): Use BEG.
19953
19954 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
19955 Use BEG and BEG_BYTE.
19956
19957 * doc.c (get_doc_string): Return nil if the location is wrong.
19958 (reread_doc_file): New fun.
19959 (Fdocumentation, Fdocumentation_property):
19960 Call it if get_doc_string fails.
19961 (Fsnarf_documentation): Make it work for a dumped Emacs.
19962
19963 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
19964 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
19965
19966 * charset.c (Fstring): Allow 0 arguments.
19967
19968 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
19969
19970 * process.c (DATAGRAM_CONN_P, list_processes_1)
19971 (Fprocess_datagram_address, Fset_process_datagram_address)
19972 (Fset_network_process_options, server_accept_connection):
19973 Fix some int/Lisp_Object confusions (thank you union types).
19974
19975 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19976
19977 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
19978
19979 * w32term.c: Likewise.
19980 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
19981
19982 * keyboard.c (Qselect_window): New symbol.
19983 (head_table): Use it.
19984 (keys_of_keyboard): Bound select-window event to handle-select-window.
19985 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
19986
19987 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
19988 (last_window): New variable.
19989 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
19990 (note_mouse_movement): Remove reimplemented code in #if 0.
19991 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
19992 Emacs windows.
19993
19994 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
19995
19996 2002-03-31 Gerd Moellmann <gerd@gnu.org>
19997
19998 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
19999 Callers changed.
20000
20001 2002-03-30 Richard M. Stallman <rms@gnu.org>
20002
20003 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
20004 loop whenever it stops making progress.
20005
20006 * widget.c (set_frame_size): Don't call change_frame_size.
20007
20008 2002-03-30 Gerd Moellmann <gerd@gnu.org>
20009
20010 * dispnew.c (direct_output_for_insert):
20011 Call mark_window_display_accurate.
20012
20013 2002-03-29 Jason Rumney <jasonr@gnu.org>
20014
20015 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
20016
20017 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
20018
20019 * Makefile.in (lread.o): Depend on coding.h.
20020
20021 * lread.c (openp, Fload): Encode the file name before passing it
20022 to `stat', `access', and `emacs_open'.
20023 (openp): GCPRO the encoded file name. Don't recompute Lisp
20024 strings unnecessarily.
20025
20026 2002-03-29 Kim F. Storm <storm@cua.dk>
20027
20028 * fns.c (Flax_plist_put): Doc fix.
20029
20030 2002-03-28 Miles Bader <miles@gnu.org>
20031
20032 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
20033
20034 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20035
20036 * process.c (set-network-process-options): Add usage.
20037 (make-network-process): Doc fix.
20038
20039 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
20040
20041 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
20042
20043 2002-03-26 Richard M. Stallman <rms@gnu.org>
20044
20045 * fns.c (Fsubstring_no_properties): New function.
20046 (Flax_plist_get, Flax_plist_put): New functions.
20047 (syms_of_fns): defsubr them.
20048
20049 * xdisp.c (update_menu_bar): Test only update_mode_lines;
20050 don't test or alter w->update_mode_line.
20051
20052 * window.c (Fdisplay_buffer): Doc fix.
20053
20054 2002-03-24 Richard M. Stallman <rms@gnu.org>
20055
20056 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
20057
20058 2002-03-24 Gerd Moellmann <gerd@gnu.org>
20059
20060 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
20061 (Fdefmacro): Handle `(declare ...)'.
20062 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
20063 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
20064
20065 2002-03-24 Jason Rumney <jasonr@gnu.org>
20066
20067 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
20068 (xbm_file_p): Add prototypes.
20069 (xbm_format, xbm_image_p): Sync with xfns.c.
20070 (reflect_byte): New function.
20071 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
20072 (xbm_load_image): Create bitmaps with a depth of 1.
20073 (init_xfns): Enable XBM images.
20074
20075 2002-03-23 Jason Rumney <jasonr@gnu.org>
20076
20077 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
20078 correctly. Do not pass up_modifier to keyboard buffer.
20079
20080 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
20081
20082 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
20083
20084 * Makefile.in (bootstrapclean): New target.
20085 (bootstrap-temacs, bootstrap-doc): Remove.
20086 (bootstrap-emacs): Use a bog-standard `temacs'.
20087 Don't bother to build a DOC file.
20088
20089 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
20090
20091 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
20092 in temacs even if !CANNOT_DUMP.
20093 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
20094
20095 * alloc.c (check_pure_size): Only output a warning.
20096
20097 2002-03-22 Jason Rumney <jasonr@gnu.org>
20098
20099 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
20100 supported.
20101
20102 * w32term.c (zv_bits): Declare as short, for word alignment.
20103 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
20104 (syms_of_w32term): Define x-use-underline-position-properties.
20105
20106 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
20107 (clear_image_cache): Block input, fix logic, clear matrices in
20108 all frames that share this cache.
20109
20110 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
20111
20112 * emacs.c (main): Update the Copyright year in the blurb printed
20113 by "emacs --version".
20114
20115 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
20116
20117 * xterm.c (XTread_socket): If XK_ISO_Lock and
20118 XK_ISO_Last_Group_Lock are defined, handle keysyms between
20119 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
20120
20121 2002-03-21 Kim F. Storm <storm@cua.dk>
20122
20123 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
20124 menu-bar bindings in keymap and local-map properties _are_ used.
20125 But try keymap property first in accordance with 2002-01-03 patch.
20126 Added comment describing why this is not always reliable.
20127 (tool_bar_items): Ditto for tool-bar.
20128
20129 2002-03-21 Jason Rumney <jasonr@gnu.org>
20130
20131 * w32fns.c (x_clear_image_1): Disable color table code.
20132
20133 2002-03-21 Kim F. Storm <storm@cua.dk>
20134
20135 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
20136 removed the wrong version of the DEFUN macro; fixed it.
20137
20138 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
20139 Fmember rather than Fmemq).
20140 (Fprovide): Check that subfeatures is a list.
20141
20142 * process.c (QCfeature, QCdatagram): Removed variables.
20143 (QCtype, Qdatagram): New variables.
20144 (network_process_featurep): Removed function.
20145 (Fmake_network_process): Removed :feature check.
20146 Use :type 'datagram instead of :datagram t to create a datagram
20147 socket. This allows us to add other connection types (e.g. raw
20148 sockets) later in a consistent manner.
20149 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
20150 supported subfeatures for feature make-network-process.
20151 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
20152 Intern and staticpro QCtype and Qdatagram.
20153 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
20154
20155 * xfns.c (QCtype): Remove duplicate declaration and
20156 initialization (is now declared in process.c).
20157
20158 * w32fns.c (QCtype): Remove duplicate declaration and
20159 initialization (is now declared in process.c).
20160
20161 2002-03-21 Richard M. Stallman <rms@gnu.org>
20162
20163 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
20164 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
20165 when jumping to `fail' to avoid undoing reg changes in the
20166 last iteration of the loop.
20167 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
20168
20169 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
20170 Depend on process.h.
20171
20172 2002-03-20 Jason Rumney <jasonr@gnu.org>
20173
20174 Most of the following changes are still conditional on HAVE_IMAGES
20175 which is not set by default on Windows.
20176
20177 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
20178
20179 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
20180 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
20181 (four_corners_best, x_clear_image_1, x_clear_image)
20182 (x_alloc_image_color, postprocess_image)
20183 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
20184 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
20185 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
20186
20187 * w32gui.h (struct XImage): Define.
20188
20189 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
20190 extract mouse co-ordinates.
20191
20192 2002-03-20 Jason Rumney <jasonr@gnu.org>
20193
20194 * w32.c (init_winsock): Dynamically load new server and UDP
20195 socket functions.
20196 (socket_to_fd): New function.
20197 (sys_socket): Use it.
20198 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
20199 (sys_recvfrom, sys_sendto): New wrapper functions.
20200
20201 * process.c (QCfamily, QCfilter): Remove duplicate declaration
20202 and initialization.
20203
20204 * makefile.w32-in (LIBS): Remove $(WSOCK32).
20205
20206 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
20207
20208 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
20209 Don't use "sun" as a variable, it's a predefined constant on Sun
20210 machines.
20211
20212 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20213
20214 * bytecode.c (Fbyte_code): Revert last change.
20215
20216 2002-03-19 Kim F. Storm <storm@cua.dk>
20217
20218 * makefile.w32-in (LIBS): Add $(WSOCK32).
20219 From David Ponce <dponce@voila.fr>.
20220
20221 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20222
20223 * process.c (wait_reading_process_input): Move variables `pname'
20224 and `pnamelen' down where they are used.
20225
20226 * bytecode.c (Fbyte_code): Discard unused computed value to
20227 prevent gcc warning.
20228
20229 * lisp.h (Fplist_member): Add prototype.
20230
20231 2002-03-18 Kim F. Storm <storm@cua.dk>
20232
20233 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
20234 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
20235
20236 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
20237 Remove explicit GNU_LINUX settings for datagram support.
20238
20239 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20240
20241 * process.c (Fmake_network_process): Remove unused variable `sa'.
20242 Doc fix. Add usage:.
20243 (set_socket_options): Remove unused variables `optnum' and `opttype'.
20244
20245 2002-03-17 Richard M. Stallman <rms@gnu.org>
20246
20247 * xdisp.c (cursor_type_changed): New variable.
20248 (redisplay_internal): Redisplay all windows if cursor_type_changed.
20249 Clear it when clearing windows_or_buffers_changed.
20250 (try_cursor_movement, redisplay_window, try_window_id)
20251 (try_window_reusing_current_matrix): Test cursor_type_changed
20252 along with windows_or_buffers_changed.
20253
20254 * window.h (cursor_type_changed): New variable.
20255
20256 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
20257 not update_mode_lines, and always set it to 1.
20258
20259 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
20260 if no frames needed redrawing.
20261
20262 2002-03-17 Kim F. Storm <storm@cua.dk>
20263
20264 The following changes add support for network server processes,
20265 datagram connections, and local (unix) sockets.
20266
20267 * process.h (struct Lisp_Process): New member log.
20268 Doc fix: Member command used to indicate stopped network process.
20269 Doc fix: Member childp contains plist for network process.
20270 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
20271
20272 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
20273 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
20274 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
20275 New variables.
20276 (NETCONN1_P): New macro.
20277 (DATAGRAM_SOCKETS): New conditional symbol.
20278 (datagram_address): New array.
20279 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
20280 (status_message): Use concat3.
20281 (Fprocess_status): Add `listen' status to doc string. Return `stop'
20282 for a stopped network process.
20283 (Fset_process_buffer): Update contact plist for network process.
20284 (Fset_process_filter): Ditto. Don't enable input for stopped
20285 network processes. Server must listen, even if filter is t.
20286 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
20287 New functions.
20288 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
20289 (Fprocess_contact): Added KEY argument. Handle datagrams.
20290 (list_processes_1): Optionally show only processes with the query
20291 on exit flag set. Dynamically adjust column widths. Omit tty
20292 column if not needed. Report stopped network processes.
20293 Identify server and datagram network processes.
20294 (Flist_processes): New optional arg `query-only'.
20295 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
20296 (conv_lisp_to_sockaddr, set_socket_options)
20297 (network_process_featurep, unwind_request_sigio): New helper functions.
20298 (Fprocess_datagram_address, Fset_process_datagram_address):
20299 (Fset_network_process_options): New lisp functions.
20300 (Fopen_network_stream): Removed. Now defined in simple.el.
20301 (Fmake_network_process): New lisp function. Code is based on previous
20302 Fopen_network_stream, but heavily reworked with new property list based
20303 argument list, support for datagrams, server processes, and local
20304 sockets in addition to old client-only functionality.
20305 (server_accept_connection): New function.
20306 (wait_reading_process_input): Use it to handle incoming connects.
20307 Do not enable input on a new connection if process is stopped.
20308 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
20309 (send_process): Handle datagram sockets.
20310 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
20311 network process is indicated by setting command field to t .
20312 (Fprocess_send_eof): No-op if datagram connection.
20313 (Fstatus_notify): Don't read input for a stream server socket or a
20314 stopped network process.
20315 (init_process): Initialize datagram_address array.
20316 (syms_of_process): Intern and staticpro new variables, defsubr new
20317 functions.
20318
20319 2002-03-16 Jason Rumney <jasonr@gnu.org>
20320
20321 * w32fns.c (w32_to_all_x_charsets): Return correct type in
20322 startup case.
20323
20324 2002-03-16 Richard M. Stallman <rms@gnu.org>
20325
20326 * xdisp.c (redisplay_internal, redisplay_windows):
20327 Use list_of_error to call internal_condition_case_1.
20328 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
20329 so as to catch all errors with no possibility of debugger redisplay.
20330 (list_of_error): New variable.
20331 (syms_of_xdisp): Init and staticpro it.
20332
20333 * print.c (print_object): Delete `\ ' from printed rep of frame.
20334
20335 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
20336
20337 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
20338 until its implementation is fixed.
20339
20340 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20341
20342 * xfns.c (png_load): Remove unused variable `gamma_str'.
20343
20344 2002-03-14 Richard M. Stallman <rms@gnu.org>
20345
20346 * xfns.c (x_real_positions): Handle failure in XQueryTree.
20347
20348 2002-03-14 Miles Bader <miles@gnu.org>
20349
20350 * intervals.c (adjust_for_invis_intang): New function.
20351 (set_point_both): Use `adjust_for_invis_intang' to do most of the
20352 work for dealing with invisible+intangible regions. Do so before
20353 and after both forward and backward movements, to handle both
20354 front-sticky and rear-sticky cases.
20355 * textprop.c (text_property_stickiness): Function moved here from
20356 `editfns.c'.
20357 * intervals.h (text_property_stickiness): New declaration.
20358 * editfns.c (char_property_eq): Function removed.
20359 (text_property_stickiness): Function moved to `textprop.c'.
20360
20361 2002-03-13 Jason Rumney <jasonr@gnu.org>
20362
20363 * config.in: Add STRFTIME_NO_POSIX2.
20364
20365 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
20366 and %OX when underlying strftime does not.
20367
20368 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
20369
20370 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
20371 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
20372 line) to avoid annoying flicker.
20373 (xm_scroll_callback): Get rid of the now unnecessary kludge.
20374 (XTread_socket): Mark it static.
20375
20376 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
20377
20378 2002-03-13 Kim F. Storm <storm@cua.dk>
20379
20380 * puresize.h (BASE_PURESIZE): Increase to 775000.
20381
20382 2002-03-12 Juanma Barranquero <lektu@terra.es>
20383
20384 * editfns.c (syms_of_editfns): Fix typo.
20385
20386 2002-03-12 Gerd Moellmann <gerd@gnu.org>
20387
20388 * xsmfns.c: Include stdio.h because termhooks.h needs it.
20389 Include termopt.h for interrupt_input.
20390
20391 2002-03-11 Andreas Schwab <schwab@suse.de>
20392
20393 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
20394
20395 2002-03-11 Gerd Moellmann <gerd@gnu.org>
20396
20397 * xterm.c (note_mouse_movement): Put code for
20398 x_autoselect_window_p in #if 0.
20399
20400 * lread.c (Fload): Don't assume that message_with_string uses the
20401 string it is given like a C string.
20402
20403 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20404
20405 * xterm.h (x_session_check_input, x_session_initialize): Declare.
20406
20407 * xterm.c (XTread_socket): Add call to x_session_check_input and
20408 x_session_have_connection.
20409 (x_initialize): Add call to x_session_initialize.
20410
20411 * termhooks.h (enum event_kind): Add save_session_event.
20412
20413 * keyboard.c: Add Emacs event save_session_event.
20414
20415 * emacs.c (main): Add call to syms_of_xsmfns.
20416
20417 * lisp.h (syms_of_xsmfns): Declare extern.
20418
20419 * config.in: Add HAVE_X_SM.
20420
20421 * Makefile.in (LIBXT): Add -lSM -lICE
20422 if HAVE_X_SM and not USE_X_TOOLKIT.
20423 (XOBJ): New file xsmfns.c added.
20424
20425 * xsmfns.c: New file for X session management.
20426
20427 2002-03-09 Jason Rumney <jasonr@gnu.org>
20428
20429 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
20430 read-only when setting modified time.
20431
20432 2002-03-08 Gerd Moellmann <gerd@gnu.org>
20433
20434 * xdisp.c (move_it_vertically_backward): At the end of the function,
20435 when moving forward by lines, treat terminal frames specially.
20436
20437 * keyboard.c (echo_char): Make sure to add a separator between
20438 keys even if echo_dash hasn't been called.
20439
20440 * xdisp.c: Use new string macros.
20441 (update_echo_area): Pass number of bytes to message3 instead of
20442 number of chars.
20443 (set_message_1): Don't access a string's size_byte directly.
20444 (decode_mode_spec_coding): Use number of bytes of eoltype string
20445 instead number of chars.
20446
20447 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
20448
20449 2002-03-08 Juanma Barranquero <lektu@terra.es>
20450
20451 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
20452 24-bit.
20453
20454 2002-03-06 Jason Rumney <jasonr@gnu.org>
20455
20456 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
20457
20458 2002-03-06 Gerd Moellmann <gerd@gnu.org>
20459
20460 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
20461 (cancel_echoing, echo_length, echo_truncate): Changed to
20462 work with new kboard definition.
20463 (echo_now): Use message3_nolog instead of message2_nolog.
20464
20465 * alloc.c (mark_kboards): Mark echo_string.
20466
20467 * keyboard.h (ECHOBUFSIZE): Removed.
20468 (struct kboard): Member echoptr removed, member echobuf renamed
20469 to echo_string.
20470
20471 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
20472 message3 instead of message2 to display the message using STRING's
20473 text properties.
20474
20475 2002-03-05 Andreas Schwab <schwab@suse.de>
20476
20477 * xdisp.c (hscroll_margin): Change to EMACS_INT.
20478
20479 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
20480
20481 * frame.c (default-frame-alist): Explain that setting it doesn't
20482 affect existing frames.
20483
20484 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
20485
20486 * indent.c (skip_invisible): Fix my brain fart.
20487
20488 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
20489
20490 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
20491
20492 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
20493 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
20494 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
20495 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
20496 and variables to use EMACS_INT instead of just int.
20497
20498 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
20499
20500 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
20501
20502 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
20503 environment, pass it down with corrected value.
20504
20505 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20506
20507 * lread.c (read_filtered_event): Do not call start_hourglass
20508 before returning.
20509
20510 2002-03-04 Juanma Barranquero <lektu@terra.es>
20511
20512 * w32term.c (x_display_and_set_cursor): Fix typo.
20513
20514 2002-03-03 Richard M. Stallman <rms@gnu.org>
20515
20516 * fileio.c (Fmake_temp_name): Doc fix.
20517
20518 2002-03-03 Gary Wong <gtw@gnu.org>
20519
20520 * termcap.c [!emacs]: Replace ospeed for building standalone
20521 libtermcap, for binary compatibility.
20522
20523 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
20524
20525 2002-03-03 Richard M. Stallman <rms@gnu.org>
20526
20527 * xrdb.c (file_p): Rename arg `path' to `filename'.
20528
20529 * abbrev.c (Fexpand_abbrev): Increment plist as use count
20530 only if it is an integer.
20531
20532 * xfns.c (png_load): Set screen_gamma based on f->gamma.
20533 If png_get_sRGB gives an answer, call png_set_gamma
20534 using the default image gamma value.
20535
20536 * lread.c (read1): When reading from a file, default string to
20537 multibyte only if it has some multibyte characters.
20538
20539 * print.c (print_object): Output multibyte chars 128...255
20540 using \x even if ! print_escape_multibyte.
20541
20542 * xdisp.c (display_mode_element): Move the places where
20543 bytepos, charpos, this, and lisp_string are set.
20544 Use lisp_string to set bytepos.
20545
20546 * xdisp.c (redisplay_internal):
20547 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
20548
20549 * xdisp.c (display_mode_element): Merge properties specified with
20550 :propertize onto those that come with the string.
20551
20552 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
20553
20554 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
20555 automatic-hscrolling. Users changed.
20556 <hscroll-margin>: Renamed from automatic-hscroll-margin.
20557 Users changed.
20558 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
20559
20560 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
20561
20562 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
20563
20564 2002-03-02 Kim F. Storm <storm@cua.dk>
20565
20566 * window.c (Fminibuffer_selected_window): New function.
20567 (syms_of_window): Defsubr it.
20568
20569 2002-03-01 Kim F. Storm <storm@cua.dk>
20570
20571 * window.h (struct window): New member phys_cursor_width.
20572
20573 * window.c (make_window, replace_window): Init phys_cursor_width.
20574
20575 * xterm.c (x_display_and_set_cursor): Blink box cursor using
20576 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
20577
20578 * w32term.c (x_display_and_set_cursor): Blink box cursor using
20579 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
20580
20581 * lisp.h (GCPRO6): New macro.
20582
20583 * process.c (Fopen_network_stream): Use GCPRO6.
20584
20585 2002-03-01 Kim F. Storm <storm@cua.dk>
20586
20587 * process.c (Qconnect, Qfailed): New variables.
20588 (syms_of_process): Intern and staticpro them.
20589 (Fprocess_status): Document connect and failed return values.
20590 [NON_BLOCKING_CONNECT]: New conditional.
20591 (connect_wait_mask, num_pending_connects): New variables.
20592 (status_message): Convert Qfailed status.
20593 (Fopen_network_stream): Added support for non-blocking connect.
20594 New optional args: filter, sentinel, non_blocking. Doc updated.
20595 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
20596 (deactivate_process): Handle pending non-blocking connect.
20597 (wait_reading_process_input): Poll for status of non-blocking
20598 connects. Exec sentinel directly when connect succeeds.
20599 (status_notify): Don't read process output if not yet connected.
20600
20601 2002-02-28 Kim F. Storm <storm@cua.dk>
20602
20603 * window.c (minibuf_selected_window): Renamed from
20604 Vminibuf_selected_window. Users changed.
20605 (syms_of_window): Staticpro it.
20606
20607 2002-02-26 Kim F. Storm <storm@cua.dk>
20608
20609 The following changes add a new Vminibuf_selected_window variable
20610 which is similar to Vminibuf_scroll_window, but which is only set
20611 on entry to the minibuffer (from a non-minibuffer window):
20612
20613 * window.c (Vminibuf_selected_window): New variable.
20614 (struct save_window_data): New member minibuf_selected_window.
20615 (Fset_window_configuration): Restore Vminibuf_selected_window.
20616 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
20617 Set minibuf_scroll_window member to nil if minibuf_level is 0.
20618 (compare_window_configurations): Compare minibuf_selected_window.
20619
20620 * window.h (Vminibuf_selected_window): Declare extern.
20621
20622 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
20623 entry to minibuffer or on entry from a non-minibuffer window.
20624
20625 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
20626 Vminibuf_selected_window instead of Vminibuf_scroll_window.
20627
20628 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
20629 instead of Vminibuf_scroll_window when deciding in which window
20630 the region should be highlighted. Consequently, the region remains
20631 highlighteded even when a completion buffer is also displayed.
20632
20633 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
20634
20635 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
20636
20637 * xselect.c (Qcompound_text_with_extensions): Renamed from
20638 Qcompound_text_no_extensions.
20639 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
20640
20641 2002-02-26 Juanma Barranquero <lektu@terra.es>
20642
20643 * w32proc.c (syms_of_ntproc): Doc fix.
20644
20645 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20646
20647 * intervals.h: Include "dispextern.h" unconditionally.
20648
20649 2002-02-24 Jason Rumney <jasonr@gnu.org>
20650
20651 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
20652 and disp-table.elc.
20653 (lisp): Add emacs-lisp/backquote.elc.
20654
20655 2002-02-24 Kim F. Storm <storm@cua.dk>
20656
20657 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
20658 The validation of the event type was too strict as it didn't
20659 allow string events; buffer names are used in bindings for
20660 menu-bar-select-buffer (see `menu-bar-update-buffers').
20661
20662 2002-02-23 Kim F. Storm <storm@cua.dk>
20663
20664 The following changes rework my patch of 2002-02-06 which
20665 added command remapping by entering the commands directly into
20666 the keymaps. Now, command remapping uses an explicit `remap'
20667 prefix in the keymaps, i.e. [remap COMMAND].
20668
20669 * keymap.c (Qremap, remap_command_vector): New variables.
20670 (is_command_symbol): Remove function.
20671 (Fdefine_key): No longer accept a symbol for KEY.
20672 Added validation of [remap COMMAND] argument for KEY.
20673 The DEF is no longer required to be a symbol when remapping a command.
20674 (Fremap_command): New function to remap command through keymaps.
20675 (Flookup_key): Perform command remapping initiated by
20676 Fremap_command directly for speed.
20677 (Fkey_binding): Use Fremap_command for command remapping.
20678 (where_is_internal): Handle new command remapping representation.
20679 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
20680 staticpro them. Defsubr Fremap_command.
20681
20682 * keymap.h (Fremap_command): Declare extern.
20683 (is_command_symbol): Remove extern.
20684
20685 * keyboard.c (command_loop_1): Use Fremap_command for command
20686 remapping; now try command remapping for all symbols.
20687
20688 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
20689
20690 * coding.h (run_pre_post_conversion_on_str): Add prototype.
20691
20692 2002-02-23 Jason Rumney <jasonr@gnu.org>
20693
20694 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
20695 on the string before encoding it.
20696 (Fw32_get_clipboard_data): Run post-read-conversion on the string
20697 after decoding it.
20698
20699 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
20700
20701 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20702
20703 * w32term.c (enter_timestamp): Remove unused static variable to
20704 prevent warning.
20705
20706 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
20707
20708 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
20709
20710 * w16select.c (Fw16_get_clipboard_data): Fix last change.
20711
20712 * xselect.c (selection_data_to_lisp_data): Fix last change.
20713
20714 2002-02-22 Jason Rumney <jasonr@gnu.org>
20715
20716 * w32term.h (struct w32_output): New member menu_command_in_progress.
20717
20718 * w32menu.c (menubar_selection_callback): Free the menu and
20719 clear the menu_command_in_progress flag.
20720
20721 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
20722 (menu_free_timer): New variable.
20723 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
20724 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
20725 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
20726 menu command is in progress.
20727 <WM_COMMAND>: Set the menu_command_in_progress flag.
20728 Kill any menu_free_timer that is running.
20729
20730 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
20731 Call ExtTextOutA rather than ExtTextOut.
20732
20733 2002-02-22 Eli Zaretskii <eliz@gnu.org>
20734
20735 * puresize.h (BASE_PURESIZE): Increase to 755000.
20736
20737 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
20738
20739 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
20740 on the string before encoding it.
20741 (Fw16_get_clipboard_data): Run post-read-conversion on the string
20742 after decoding it.
20743
20744 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
20745
20746 Support for ICCCM Extended Segments in X selections:
20747
20748 * xselect.c <Qcompound_text_no_extensions>: New variable.
20749 (syms_of_xselect): Intern and staticpro it.
20750 (selection_data_to_lisp_data): Run post-read-conversion on decoded
20751 selection text.
20752 (lisp_data_to_selection_data): If next-selection-coding-system is
20753 compound-text-no-extensions, set the type of selection to be
20754 compound-text.
20755
20756 * xterm.h (x_encode_text): Update prototype.
20757
20758 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
20759 callers changed. If SELECTIONP is non-zero, run the
20760 pre-write-conversion function before encoding the selection text.
20761
20762 2002-02-21 Kim F. Storm <storm@cua.dk>
20763
20764 * frame.c (syms_of_frame): Change mouse-highlight default to t.
20765
20766 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
20767 Correct composing of language-change event.
20768
20769 2002-02-20 Kim F. Storm <storm@cua.dk>
20770
20771 * keyboard.c (menu_bar_items): Don't include keymap or local-map
20772 bindings at PT when building menu (the menu is not updated often
20773 enough for this to work reliable).
20774 (tool_bar_items): Likewise.
20775 (current_active_maps): Removed unused (and buggy) function.
20776
20777 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20778
20779 * xfns.c (gif_load): Use correct width and height for GIF images.
20780
20781 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
20782
20783 * floatfns.c (Fatan): Accept an optional second arg and call
20784 atan2 if passed 2 args.
20785
20786 2002-02-18 Jason Rumney <jasonr@gnu.org>
20787
20788 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
20789
20790 2002-02-17 Jason Rumney <jasonr@gnu.org>
20791
20792 * w32term.c (x_autoselect_window_p): New variable.
20793 (syms_of_w32term): DEFVAR_BOOL and initialize it.
20794 (note_mouse_movement): Use it.
20795
20796 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
20797
20798 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
20799
20800 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
20801 New variables.
20802 (syms_of_w32fns): Intern and staticpro them.
20803 (x_frame_parms) <"fullscreen">: New parameter.
20804 (x_fullscreen_move, x_set_fullscreen): New functions.
20805 (x_set_frame_parameters): Support Qfullscreen.
20806 (x_real_positions): Save x/y_pixels_diff frame params.
20807 (x_figure_window_size): Support full-screen frames.
20808 (Fx_create_frame): Default the fullscreen parameter.
20809
20810 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
20811 (x_fullscreen_adjust): New functions.
20812 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
20813 fullscreen. Call x_check_fullscreen_move, and set the
20814 want_fullscreen member of output_data.w32
20815 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
20816
20817 * w32term.h: New enum for FULLSCREEN_* constants.
20818 (struct w32_output): New members want_fullscreen, x_pixels_diff,
20819 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
20820 (x-fullscreen-adjust): New prototype.
20821
20822 2002-02-17 Kim F. Storm <storm@cua.dk>
20823
20824 * frame.c (Vmouse_highlight): New variable.
20825 (syms_of_frame): DEFVAR_LISP it.
20826
20827 * frame.h (Vmouse_highlight): Declare extern.
20828
20829 * xterm.h (struct x_display_info): Add mouse_face_hidden.
20830
20831 * xterm.c (disable_mouse_highlight): Removed variable.
20832 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
20833 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20834 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
20835 and on after keyboard input.
20836 (x_term_init): Initialize mouse_face_hidden.
20837
20838 * msdos.h (struct display_info): Add mouse_face_hidden.
20839
20840 * msdos.c (disable_mouse_highlight): Removed variable.
20841 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20842 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
20843 (internal_terminal_init): Initialize mouse_face_hidden.
20844 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
20845 and on after keyboard input.
20846
20847 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
20848
20849 * w32term.c (disable_mouse_highlight): Removed variable.
20850 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
20851 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
20852 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
20853 and on after keyboard input.
20854 (w32_initialize_display_info): Initialize mouse_face_hidden.
20855
20856 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
20857
20858 * msdos.c (last_mouse_window): New variable.
20859 (dos_rawgetc): Fix last change--if the mouse is in the same window
20860 as recorded in last_mouse_window, don't select this window.
20861
20862 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
20863
20864 * msdos.c (x_autoselect_window_p): New variable.
20865 (syms_of_msdos): Defvar it.
20866 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
20867 which the last mouse movement occured, unless it is already selected.
20868
20869 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
20870 New variables.
20871 (syms_of_xdisp): DEVFAR them.
20872 (hscroll_window_tree): Use automatic_hscroll_margin and
20873 Vautomatic_hscroll_step to compute the amount of window scrolling.
20874
20875 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20876
20877 * xterm.c (x-autoselect-window): New variable.
20878 (note_mouse_movement): Use it.
20879
20880 * keyboard.c: Do not include "systime.h" twice.
20881
20882 2002-02-15 Andreas Schwab <schwab@suse.de>
20883
20884 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
20885
20886 * alloc.c (NSTATICS): Increase to 1280.
20887
20888 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
20889
20890 * alloc.c (NSTATICS): Bump to 1026.
20891
20892 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
20893 (Vx_super_keysym): New variables.
20894 (syms_of_xterm): DEFVAR_LISP them.
20895 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
20896 variables to determine which keys to use for the various modifiers.
20897
20898 2002-02-13 Kim F. Storm <storm@cua.dk>
20899
20900 * window.c (Vmode_line_in_non_selected_windows): Removed.
20901 (mode_line_in_non_selected_windows): New variable.
20902 (syms_of_window): DEFVAR_BOOL it.
20903
20904 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
20905 Use mode_line_in_non_selected_windows.
20906 (mode_line_in_non_selected_windows): Declare extern.
20907 (Vmode_line_in_non_selected_windows): Removed extern.
20908
20909 2002-02-13 Richard M. Stallman <rms@gnu.org>
20910
20911 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
20912 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
20913 (Fclear_this_command_keys): Doc fixes.
20914
20915 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
20916 (update_face_from_frame_parameter): Increment face_change_count
20917 and windows_or_buffers_changed to force redisplay using changed faces.
20918
20919 * xdisp.c (QCpropertize): New variable.
20920 (mode_line_proptrans_alist): New variable.
20921 (display_mode_element): New arg PROPS; all calls changed.
20922 Implement this, for strings.
20923 Handle literal output of strings by sharing the
20924 main-line code for strings, using local var `literal'.
20925 Handle :propertize feature.
20926 (syms_of_xdisp): Initialze and staticpro QCpropertize and
20927 mode_line_proptrans_alist.
20928
20929 2002-02-11 Kim F. Storm <storm@cua.dk>
20930
20931 * window.c (Vmode_line_in_non_selected_windows): New variable.
20932 (syms_of_window): DEFVAR_LISP it.
20933
20934 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
20935 (CURRENT_MODE_LINE_FACE_ID): Use it.
20936 (Vmode_line_in_non_selected_windows): Declare extern.
20937
20938 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
20939 to get mode line face.
20940
20941 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
20942
20943 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
20944 variables; cus-start.el doesn't need them anymore.
20945
20946 2002-02-09 Kim F. Storm <storm@cua.dk>
20947
20948 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
20949 reduction. This fixes a display problem where stray newlines were
20950 inserted in the window (corrected by C-l). Clarified code (IMHO).
20951
20952 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
20953
20954 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
20955
20956 * xdisp.c (display_mode_lines): Fix last change.
20957
20958 2002-02-09 Jason Rumney <jasonr@gnu.org>
20959
20960 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
20961 match each other.
20962 (w32_load_system_font): Prevent Cleartype fonts from loading.
20963 (Fx_show_tip): Ensure tip frames are above other topmost windows.
20964
20965 2002-02-09 Kim F. Storm <storm@cua.dk>
20966
20967 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
20968 (CURRENT_MODE_LINE_HEIGHT): Use it.
20969 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
20970
20971 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
20972 (pos_visible_p, handle_face_prop): Likewise.
20973 (display_mode_lines): Likewise, but for the real selected window.
20974 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
20975
20976 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
20977 in non-selected windows.
20978 (realize_basic_faces): Realize it.
20979 (syms_of_term): Intern and staticpro it.
20980
20981 2002-02-08 Kim F. Storm <storm@cua.dk>
20982
20983 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
20984 Changed mail addresses to emacs-devel@gnu.org.
20985
20986 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
20987
20988 * fileio.c (Fsubstitute_in_file_name): If the file name includes
20989 ~user, and there's no such user, don't discard everything before ~user.
20990
20991 * floatfns.c (Fround): Doc fix.
20992
20993 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20994
20995 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
20996
20997 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
20998
20999 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
21000
21001 2002-02-07 Kim F. Storm <storm@cua.dk>
21002
21003 * keymap.c (where_is_internal): Only check whether definition is
21004 remapped if it fulfills is_command_symbol.
21005
21006 2002-02-07 Andreas Schwab <schwab@suse.de>
21007
21008 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
21009
21010 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
21011
21012 2002-02-06 Kim F. Storm <storm@cua.dk>
21013
21014 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
21015 defining command remapping. Doc updated.
21016 (Flookup_key): Remap command through keymap if KEY is a symbol.
21017 (is_command_symbol): New function.
21018 (Fkey_binding): Use it. New optional argument NO-REMAP.
21019 Doc updated. Callers changed. Perform command remapping via
21020 recursive call unless that arg is non-nil.
21021 (where_is_internal): New argument no_remap. Callers changed.
21022 Call recursively to find original key bindings for a remapped
21023 comand unless that arg is non-nil.
21024 (Fwhere_is_internal): New optional argument NO-REMAP.
21025 Doc updated. Callers changed. Pass arg to where_is_internal.
21026
21027 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
21028 (is_command_symbol): Add prototype.
21029
21030 * keyboard.c (Vthis_original_command): New variable.
21031 (syms_of_keyboard): DEFVAR_LISP it.
21032 (command_loop_1): Set it, and perform command remapping.
21033
21034 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21035
21036 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
21037
21038 2002-02-06 Jason Rumney <jasonr@gnu.org>
21039
21040 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
21041
21042 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
21043
21044 * charset.c (get_charset_id): Use if-else instead of ?:.
21045
21046 2002-02-06 Richard M. Stallman <rms@gnu.org>
21047
21048 * filelock.c (S_ISLNK): Define if not defined.
21049
21050 2002-02-03 Richard M. Stallman <rms@gnu.org>
21051
21052 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
21053
21054 * lread.c (read1): Redesign strategy for force_multibyte and
21055 force_singlebyte. Now is_multibyte records whether read_buffer
21056 is multibyte. Encountering any multibyte character makes it so.
21057
21058 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
21059
21060 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
21061 with the same sequence, map that sequence to f10 rather than f0.
21062
21063 2002-02-03 Andreas Schwab <schwab@suse.de>
21064
21065 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
21066 latter never being defined on GNU/Linux.
21067
21068 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
21069
21070 * xfaces.c (realize_default_face): Don't set the weight and slant of
21071 the default face to Qnormal, unless these attributes are unspecified.
21072
21073 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21074
21075 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
21076 Call cancel_hourglass unconditionally.
21077
21078 * eval.c (Fsignal): Remove duplicated declaration of
21079 the variable `display_hourglass_p'.
21080
21081 2002-01-31 Richard M. Stallman <rms@gnu.org>
21082
21083 * editfns.c (region_limit): Nicer error message.
21084
21085 * coding.c (decode_composition_emacs_mule):
21086 Give up if NCOMPONENT gets too large to index `component'.
21087
21088 * callint.c (check_mark): New arg to specify clearer error message.
21089 Callers changed.
21090
21091 2002-01-27 Richard M. Stallman <rms@gnu.org>
21092
21093 * minibuf.c (Fcompleting_read): Doc fix.
21094
21095 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21096
21097 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
21098 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
21099 Fix doc-strings.
21100
21101 2002-01-26 Richard M. Stallman <rms@gnu.org>
21102
21103 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
21104
21105 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
21106 and scroll_up_aggressively.
21107
21108 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21109
21110 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
21111
21112 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
21113
21114 * textprop.c (Fnext_property_change, Fnext_single_property_change)
21115 (Fprevious_property_change, Fprevious_single_property_change):
21116 Stay within the narrowed-buffer boundaries.
21117
21118 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
21119
21120 * term.c (Ftty_display_color_cells): New function.
21121 (syms_of_term): Defsubr it.
21122 (Ftty_display_color_cells, Ftty_display_color_p): Change the
21123 argument name to DISPLAY. Doc fix.
21124
21125 * dispextern.h: Add prototype for set_tty_color_mode and
21126 tty_setup_colors.
21127
21128 2002-01-24 Jason Rumney <jasonr@gnu.org>
21129
21130 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
21131 If region left to draw is not what was expected, mark the frame as
21132 garbaged.
21133
21134 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
21135 Combine the regions returned by BeginPaint and GetUpdateRect.
21136
21137 2002-01-23 Jason Rumney <jasonr@gnu.org>
21138
21139 * w32term.c (x_update_window_begin): Only hide caret if
21140 w32_use_visible_system_caret is set.
21141 (x_update_window_end): Only show caret if
21142 w32_use_visible_system_caret is set.
21143 (syms_of_w32term): Handle SystemParametersInfo call failing.
21144
21145 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
21146
21147 2002-01-22 Richard M. Stallman <rms@gnu.org>
21148
21149 * unexelf.c (unexec): Define n so as to cause compilation error
21150 for the code where people have often written n instead of nn.
21151
21152 * .gdbinit (hookpost-run): Defined.
21153
21154 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21155
21156 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
21157
21158 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21159
21160 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
21161 if fullscreen is being set.
21162
21163 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21164
21165 * minibuf.c (Fminibuffer_contents)
21166 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
21167 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
21168
21169 2002-01-21 Richard M. Stallman <rms@gnu.org>
21170
21171 * window.c (check_frame_size): Fix minimum height calculation.
21172
21173 2002-01-20 Ken Raeburn <raeburn@gnu.org>
21174
21175 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
21176 height before comparison.
21177 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
21178
21179 2002-01-20 Jason Rumney <jasonr@gnu.org>
21180
21181 * w32term.c (w32_system_caret_width): Remove.
21182 (w32_use_visible_system_caret): New user flag.
21183 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
21184 Windows reports a screen reader running.
21185 (x_update_window_begin): Hide the system caret.
21186 (x_update_window_end): Show the system caret.
21187 (x_display_and_set_cursor): Don't draw a cursor when
21188 w32_use_visible_system_caret is set. Do not adjust width.
21189
21190 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
21191 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
21192 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
21193 the user requests it. Use system default width when creating.
21194 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
21195
21196 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
21197 New window messages.
21198
21199 2002-01-20 Richard M. Stallman <rms@gnu.org>
21200
21201 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
21202
21203 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21204
21205 * doprnt.c (doprnt1): Fix typos in error call.
21206
21207 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
21208
21209 * unexelf.c (unexec) [__sgi]: Support the .got sections.
21210
21211 2002-01-20 Jason Rumney <jasonr@gnu.org>
21212
21213 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
21214 that Windows returns. If a double check fails, try to guess how
21215 ExtTextOut is going to act.
21216
21217 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
21218 in place of stricmp.
21219 (w32_list_synthesized_fonts): Removed.
21220 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
21221 (struct enumfont_t): New element; list.
21222 (enum_font_cb2): List all style and charset variations of a font.
21223 (Fw32_select_font): New optional argument; include_proportional.
21224 Exclude vertical fonts. Exclude proportional fonts unless
21225 include_proportional is non-nil.
21226 (w32_enable_synthesized_fonts): Change to a boolean.
21227 (Fw32_send_sys_command): Doc fix.
21228
21229 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21230
21231 * dispnew.c (update_frame): Move the variable `tem' to the block
21232 where it is used.
21233
21234 2002-01-19 Jason Rumney <jasonr@gnu.org>
21235
21236 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
21237 call to face-set-after-frame-default.
21238
21239 2002-01-18 Richard M. Stallman <rms@gnu.org>
21240
21241 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
21242 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
21243
21244 2002-01-17 Richard M. Stallman <rms@gnu.org>
21245
21246 * window.c (enlarge_window): When exceeding size of parent,
21247 directly delete all the siblings instead of trying to resize it.
21248
21249 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21250
21251 * term.c (set_tty_color_mode): Remove unused variable `tem'.
21252
21253 2002-01-16 Henrik Enberg <henrik@enberg.org>
21254
21255 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
21256
21257 2002-01-16 Kim F. Storm <storm@cua.dk>
21258
21259 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
21260 is invisible. This can happen if cursor is on top line of a
21261 window, and we switch to a buffer with a header line.
21262
21263 * w32term.c (x_erase_phys_cursor): Ditto.
21264
21265 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21266
21267 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
21268 `dont_resize' only when used.
21269
21270 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
21271
21272 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
21273
21274 * xdisp.c (display_mode_element): When computing charpos, depend
21275 on multibyteness of elt, not the text in field.
21276
21277 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21278
21279 * buffer.c (Fkill_all_local_variables):
21280 Increment `update_mode_lines' only once.
21281
21282 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21283
21284 * lisp.h (adjust_after_replace_noundo)
21285 (Fupdate_coding_systems_internal): Add prototypes.
21286
21287 * sound.c (Fplay_sound): Initialize header_size also for :data case.
21288
21289 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
21290
21291 Support for the --color command-line argument and tty-color-mode
21292 frame parameter:
21293
21294 * term.c (tty_default_color_capabilities, tty_setup_colors)
21295 (set_tty_color_mode): New functions.
21296 (term_init): Call tty_default_color_capabilities.
21297 (Qtty_color_mode_alist): New variable.
21298 (syms_of_term): Intern and staticpro it.
21299
21300 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
21301 frames.
21302 (do_switch_frame): For termcap frames, switch the tty
21303 color mode as specified by the frame's parameters.
21304 (Qtty_color_mode): New variable.
21305 (syms_of_frame): Intern and staticpro it.
21306
21307 * emacs.c (USAGE2): Add the --color option.
21308 (standard_args): Ditto.
21309
21310 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21311
21312 * xterm.h (struct x_output): New members want_fullscreen,
21313 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
21314 y_pixels_outer_diff.
21315 New enum for FULLSCREEN_* constants.
21316 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
21317 is NULL.
21318 (x_fullscreen_adjust): Add prototype.
21319
21320 * emacs.c (USAGE2): Add the new full-screen arguments.
21321 (standard_args): Ditto.
21322
21323 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
21324 New variables.
21325 (syms_of_xfns): Intern and staticpro them.
21326 (x_frame_parms) <"fullscreen">: New parameter.
21327 (x_fullscreen_move, x_set_fullscreen): New functions.
21328 (x_set_frame_parameters): Support for Qfullscreen.
21329 (x_real_positions): More accurate computation of the frame position.
21330 (x_figure_window_size): Support full-screen frames.
21331 (Fx_create_frame): Default the fullscreen parameter.
21332
21333 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
21334 (XTread_socket) <Expose>: Call x_check_fullscreen.
21335 <ConfigureNotify>: Don't resize to fullscreen.
21336 Call x_check_fullscreen_move, and set the want_fullscreen member of
21337 output_data.x.
21338
21339 2002-01-13 Jason Rumney <jasonr@gnu.org>
21340
21341 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
21342 for mice with more than 3 buttons.
21343
21344 * w32term.c (parse_button): New parameter xbutton. Callers changed.
21345 (w32_read_socket): Handle new "XBUTTON" messages.
21346
21347 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
21348 (syms_of_w32fns): DEFVAR_BOOL it.
21349 (w32_wnd_proc): Handle new "XBUTTON" messages.
21350
21351 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21352
21353 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
21354
21355 2002-01-13 Andreas Schwab <schwab@suse.de>
21356
21357 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
21358
21359 2002-01-12 Andreas Schwab <schwab@suse.de>
21360
21361 * .gdbinit (xbuffer): Remove address operator since data is now a
21362 pointer.
21363
21364 2002-01-11 Richard M. Stallman <rms@gnu.org>
21365
21366 * insdel.c (adjust_after_replace_noundo): New function.
21367
21368 * coding.c (code_convert_region): Don't copy old text if undo disabled.
21369
21370 2002-01-09 Jason Rumney <jasonr@gnu.org>
21371
21372 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
21373 when checking for multiple frames.
21374
21375 2002-01-08 Richard M. Stallman <rms@gnu.org>
21376
21377 * window.c (delete_window): Rewrite the code for changing the
21378 selected window to handle the case where WINDOW is not a leaf.
21379
21380 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
21381
21382 * process.c (send_process): Set src_multibyte to 1 after the call
21383 top setup_coding_system, not before the call.
21384
21385 2002-01-07 Jason Rumney <jasonr@gnu.org>
21386
21387 * xmenu.c (set_frame_menubar, xmenu_show):
21388 (xdialog_show): Initialize wv->help to Qnil.
21389
21390 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
21391 (w32_dialog_show): Initialize wv->help to Qnil.
21392
21393 2002-01-06 Jason Rumney <jasonr@gnu.org>
21394
21395 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
21396
21397 * w32menu.c (w32_menu_display_help): Revert last change.
21398
21399 * xmenu.c (menu_highlight_callback): Revert last change.
21400
21401 2002-01-06 Andreas Schwab <schwab@suse.de>
21402
21403 * insdel.c (make_gap_larger): Make sure buffer size does not
21404 overflow range of int.
21405
21406 2002-01-05 Jason Rumney <jasonr@gnu.org>
21407
21408 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
21409 OVERLAPS_P.
21410
21411 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
21412
21413 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
21414 to the left or to the right of the pointer, put it against
21415 the left screen edge.
21416 (x_frame_parms): Add missing braces around initializer.
21417
21418 * w32term.c (x_setup_relief_colors): Don't compute an image's
21419 background color if it doesn't have a Pixmap.
21420 (notice_overwritten_cursor): Don't depend on
21421 output_cursor and updated_area. Compare pixel coordinates with
21422 window's cursor pixel coordinates.
21423 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
21424 Call notice_overwritten_cursor with new arg list.
21425 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
21426 unconditionally.
21427 (x_draw_image_relief): Use predefined macro instead of
21428 constant when the value of `tool_bar_button_relief' is negative.
21429
21430 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
21431
21432 2002-01-04 Richard M. Stallman <rms@gnu.org>
21433
21434 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
21435
21436 2002-01-03 Richard M. Stallman <rms@gnu.org>
21437
21438 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
21439 (Fkey_binding): Try the `keymap' property map first.
21440 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
21441 minor mode bindings.
21442
21443 2002-01-03 Kim F. Storm <storm@cua.dk>
21444
21445 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
21446
21447 2002-01-02 Richard M. Stallman <rms@gnu.org>
21448
21449 * keyboard.c (read_key_sequence): Handle the keymap property
21450 before minor mode maps.
21451
21452 * editfns.c (Fformat): Update thissize from field_width
21453 based on the actual width, in the string case.
21454
21455 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21456
21457 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
21458 when used as truth value to prevent gcc warnings.
21459
21460 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
21461 * w32proc.c: Include <config.h>.
21462
21463 2002-01-01 Andreas Schwab <schwab@suse.de>
21464
21465 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
21466 not EMACS_INT, to make them compatible with DEFVAR_INT.
21467 * lisp.h (max_specpdl_size): Adjust declaration.
21468
21469 2002-01-01 Richard M. Stallman <rms@gnu.org>
21470
21471 * print.c (print_object): Test print_escape_nonascii only for
21472 unibyte strings.
21473 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
21474 when outputting to a multibyte buffer.
21475
21476 2001-12-29 Richard M. Stallman <rms@gnu.org>
21477
21478 * print.c (print_object): In multibyte string, use hex escapes.
21479 Use octal only for unibyte strings.
21480 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
21481
21482 * lread.c (read_escape): New arg BYTEREP for reporting whether
21483 escape forces unibyte or multibyte.
21484 (read1): When reading a string, take note of that info.
21485
21486 2001-12-29 Ken Raeburn <raeburn@gnu.org>
21487
21488 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
21489 comparison to test lisp value returned by Fget.
21490
21491 2001-12-29 Richard M. Stallman <rms@gnu.org>
21492
21493 * lisp.h (max_specpdl_size): Add declaration.
21494
21495 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
21496
21497 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
21498 Handle modifier bits. Correct typo in error message.
21499
21500 2001-12-28 Richard M. Stallman <rms@gnu.org>
21501
21502 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
21503 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
21504 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21505 Update calls to Fdefine_abbrev.
21506 (write_abbrev): Update for changed data format.
21507 Don't list "system" abbrevs.
21508 (Fexpand_abbrev): Update use count with new data format.
21509 (describe_abbrev): Update for changed data format.
21510 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
21511
21512 * config.in (HAVE_MBSINIT): Add #undef.
21513
21514 * strftime.c (mbsinit): Define as no-op if not available.
21515
21516 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
21517 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
21518
21519 * keymap.c (Flookup_key): Error message if key has wrong data type.
21520 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
21521 (exclude_key): New variable.
21522
21523 2001-12-28 Gerd Moellmann <gerd@gnu.org>
21524
21525 * xterm.c (x_setup_relief_colors): Don't compute an image's
21526 background color if it doesn't have a Pixmap.
21527
21528 * xterm.c (notice_overwritten_cursor): Don't depend on
21529 output_cursor and updated_area. Compare pixel coordinates with
21530 window's cursor pixel coordinates.
21531 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
21532 Call notice_overwritten_cursor with new arg list.
21533 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
21534 unconditionally.
21535
21536 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
21537 height of the cursor line to the amount to scroll.
21538
21539 2001-12-27 Richard M. Stallman <rms@gnu.org>
21540
21541 * intervals.c (set_point_both): The position after an invisible,
21542 intangible character is not an acceptable stopping point.
21543
21544 2001-12-27 Ken Raeburn <raeburn@gnu.org>
21545
21546 * window.c (enlarge_window): In new preserve_before code, convert
21547 CURBEG from lisp object to integer before doing arithmetic.
21548
21549 2001-12-27 Richard M. Stallman <rms@gnu.org>
21550
21551 * bytecode.c (Fbyte_code): Undo previous change.
21552
21553 2001-12-26 Kim F. Storm <storm@cua.dk>
21554
21555 * keyboard.c (record_char): Ignore duplicate help-echo events only
21556 separated by mouse-movement. When tracking mouse, only record
21557 first and last mouse-movement event in same window.
21558 Don't record mouse-movement events in keyboard macros.
21559
21560 2001-12-25 Richard M. Stallman <rms@gnu.org>
21561
21562 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
21563 (Fenlarge_window): New arg PRESERVE_BEFORE.
21564
21565 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
21566 instead of Fstring_as_unibyte.
21567
21568 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21569
21570 The following changes remove mocklisp support:
21571
21572 * mocklisp.h, mocklisp.c: Files removed.
21573
21574 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
21575 `Qmocklisp' and `Qmocklisp_arguments'.
21576 Remove prototype of syms_of_mocklisp.
21577
21578 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
21579
21580 * callint.c: Do not include mocklisp.h.
21581 (Fcall_interactively): Do not test for mocklisp case.
21582
21583 * eval.c: Remove variables `Qmocklisp_arguments',
21584 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
21585 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
21586 Do not test for mocklisp case.
21587 (Fwhile): Remove unused variable `tem'.
21588 (syms_of_eval): Remove variable `moclisp-arguments'.
21589
21590 * data.c (wrong_type_argument): Remove mocklisp case.
21591
21592 * doc.c (Fdocumentation): Remove mocklisp case.
21593
21594 * emacs.c (main): Do not call syms_of_mocklisp.
21595
21596 2001-12-21 Richard M. Stallman <rms@gnu.org>
21597
21598 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
21599 to the left or to the right of the pointer, put it against
21600 the left screen edge.
21601
21602 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
21603
21604 * Makefile.in (distclean): Remove .gdbinit if we are building
21605 outside the source tree.
21606
21607 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
21608
21609 * w32.c (emacs_root_dir): New function.
21610
21611 * msdos.c (emacs_root_dir): New function.
21612
21613 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
21614 of the current drive as the fallback for default_directory.
21615
21616 * dired.c (file_name_completion): Run the elements of
21617 completion-ignored-extensions through ENCODE_FILE.
21618
21619 * lisp.h (scmp): Remove prototype, since it's now a static
21620 function private to dired.c.
21621
21622 2001-12-18 Richard M. Stallman <rms@gnu.org>
21623
21624 * dired.c (scmp): Function moved from minibuf.c.
21625 Delete multibyte handling--used only on encoded strings.
21626
21627 * minibuf.c (scmp): Function moved to dired.c.
21628
21629 * fns.c (merge): Add QUIT call.
21630
21631 2001-12-18 Dave Love <fx@gnu.org>
21632
21633 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
21634 language/georgian.el.
21635
21636 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
21637
21638 * Makefile.in (lisp, shortlisp): Synchronize with changes to
21639 lisp/Makefile.in:DONTCOMPILE.
21640
21641 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21642
21643 * xdisp.c (window_box_height): Do not return negative values.
21644 From Gerd Moellmann <gerd@gnu.org>.
21645
21646 * keyboard.c (head_table): Add missing braces around initializer.
21647
21648 * term.c (keys): Likewise.
21649
21650 * xfns.c (x_frame_parms, visual_classes): Likewise.
21651
21652 2001-12-17 Sam Steingold <sds@gnu.org>
21653
21654 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
21655 patch (COMPOSING_P, not COMPOSING).
21656
21657 2001-12-17 Richard M. Stallman <rms@gnu.org>
21658
21659 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
21660
21661 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
21662 before calling decode_coding.
21663
21664 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
21665
21666 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
21667 instead of only for COMPOSITION_DISABLED.
21668
21669 2001-12-16 Richard M. Stallman <rms@gnu.org>
21670
21671 * alloc.c (pure_alloc): After overflow, allocate just a small block.
21672
21673 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
21674
21675 * buffer.h (struct buffer): New field `display_error_modiff'.
21676 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
21677
21678 * window.c (Frecenter): Clear display_error_modiff field.
21679
21680 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
21681 Call redisplay_window, but not if display_error_modiff field says no.
21682 (redisplay_window_error): New function.
21683 (displayed_buffer): New variable.
21684 (redisplay_internal, redisplay_windows): Call the new functions
21685 instead of redisplay_window directly.
21686
21687 2001-12-15 Richard M. Stallman <rms@gnu.org>
21688
21689 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
21690
21691 2001-12-14 Andrew Innes <andrewi@gnu.org>
21692
21693 * makefile.w32-in (EMACSLOADPATH): Define.
21694 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
21695 (bootstrap-temacs): Remove dependency on bootstrap-clean.
21696
21697 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
21698
21699 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
21700 parameter have a numeric value all the time.
21701
21702 * w32fns.c (x_report_frame_params): Likewise.
21703
21704 2001-12-12 Richard M. Stallman <rms@gnu.org>
21705
21706 * fileio.c (Fwrite_region): Doc fix.
21707
21708 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
21709 (redisplay_internal): Call clear_image_cache only for window terminals.
21710
21711 2001-12-12 Gerd Moellmann <gerd@gnu.org>
21712
21713 * xdisp.c (move_it_vertically_backward): Change heuristic
21714 for the case that we didn't move far enough initially.
21715
21716 * window.c (Frecenter): Simplify computation in the case of window
21717 system frames and ARG < 0; use window_box_height.
21718
21719 2001-12-11 Richard M. Stallman <rms@gnu.org>
21720
21721 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
21722 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
21723
21724 2001-12-11 Andrew Innes <andrewi@gnu.org>
21725
21726 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
21727 arg is negative.
21728
21729 2001-12-11 Richard M. Stallman <rms@gnu.org>
21730
21731 * m/hp800.h: Split the __hpux conditional into the parts
21732 that are right for GNU/Linux too and the parts that are not.
21733 Use the former if GNU_LINUX.
21734 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
21735
21736 * s/gnu-linux.h (GNU_LINUX): Defined.
21737
21738 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21739
21740 * macros.c, msdos.c, w16select.c: Change doc-string comments to
21741 `new style' [w/`doc:' keyword].
21742
21743 2001-12-10 Jason Rumney <jasonr@gnu.org>
21744
21745 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
21746 before using.
21747
21748 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21749
21750 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
21751 keyword].
21752
21753 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
21754
21755 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
21756
21757 * s/hpux10.h (srand48): Don't undefine.
21758
21759 2001-12-09 Jason Rumney <jasonr@gnu.org>
21760
21761 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
21762 Add comment to explain where the struct came from.
21763 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
21764 (add_menu_item): Process pop-up menus first to avoid memory leak.
21765 (add_menu_item, w32_menu_display_help): Use `help' field as
21766 Lisp_Object.
21767 (w32_free_submenu_strings): Only free owner-drawn strings.
21768
21769 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21770
21771 * COPYING: Moved back.
21772
21773 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
21774 Add parentheses around && within ||.
21775
21776 * indent.c (compute_motion): Likewise.
21777
21778 * intervals.c (merge_properties_sticky): Likewise.
21779
21780 * coding.c (setup_coding_system, shrink_encoding_region)
21781 (Fdecode_sjis_char): Likewise.
21782
21783 2001-12-07 Andreas Schwab <schwab@suse.de>
21784
21785 * xdisp.c (display_mode_element): Don't read past end of string if
21786 it ends with '%'.
21787
21788 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
21789 can hold.
21790
21791 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
21792 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
21793 type changed to Lisp_Object.
21794 (syms_of_data): DEFVAR_LISP them.
21795
21796 2001-12-07 Richard M. Stallman <rms@gnu.org>
21797
21798 * callproc.c (init_callproc): Set Vdata_directory based on the source
21799 location whenever Emacs was run uninstalled.
21800
21801 2001-12-06 Paul Eggert <eggert@twinsun.com>
21802
21803 * config.in (HAVE_WORKING_VFORK): New #undefs.
21804 * process.c (create_process):
21805 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
21806 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
21807 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
21808 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
21809 * m/intel386.h (HAVE_VFORK): Likewise.
21810 * m/mips-siemens.h (HAVE_VFORK): Likewise.
21811 * m/mips.h (HAVE_VFORK): Likewise.
21812 * s/freebsd.h (vfork): Remove #define.
21813 * s/lynxos.h (HAVE_VFORK): Remove #undef.
21814 * s/usg5-4-2.h: Fix comment about vfork.
21815
21816 2001-12-06 Richard M. Stallman <rms@gnu.org>
21817
21818 * s/hpux10.h (random): Add undef.
21819 (HAVE_RANDOM): Define it just once.
21820
21821 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
21822
21823 * eval.c: Undo last change: the standard syntax is not wanted.
21824
21825 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
21826
21827 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
21828 scroll bars of the frame before deleting the frame itself. If the
21829 frame has a widget, delete the frame with XtDestroyWidget, and do
21830 not call XDestroyWindow before that.
21831
21832 2001-12-06 Kim F. Storm <storm@cua.dk>
21833
21834 * xfns.c (x_report_frame_params): Return actual fringe widths.
21835
21836 * w32fns.c (x_report_frame_params): Return actual fringe widths.
21837
21838 2001-12-05 Andrew Innes <andrewi@gnu.org>
21839
21840 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
21841 excessively large.
21842
21843 * insdel.c (make_gap_larger): New function.
21844 (make_gap_smaller): New function.
21845 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
21846 Call make_gap_smaller if arg is negative.
21847
21848 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
21849
21850 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
21851 Pass a dummy argument when calling interrupt_signal.
21852 (parse_menu_item): Mark disabled items before checking for empty def.
21853 (read_char_minibuf_menu_prompt): Make safety more visible.
21854 (read_key_sequence): Add a `first_unbound' variable.
21855 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
21856 unbound prefix as soon as we can detect it.
21857
21858 * doc.c (Fsnarf_documentation): Add prototype.
21859 (get_doc_string): Handle negative arguments.
21860 (Fdocumentation): Use AREF and ASIZE.
21861 Move the calls to get_doc_string to a single place.
21862 Don't confuse an interactive-spec for a docstring reference.
21863 (Fdocumentation_property): Take advantage of the fact that
21864 get_doc_string now ignores the sign of the docstring position.
21865
21866 * eval.c: Use standard syntax for usage in docstrings.
21867
21868 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21869
21870 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
21871
21872 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21873
21874 * xterm.c (x_draw_image_relief): Use predefined macro instead of
21875 constant when the value of `tool_bar_button_relief' is negative.
21876
21877 2001-12-02 Richard M. Stallman <rms@gnu.org>
21878
21879 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
21880 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
21881
21882 * fileio.c (read_non_regular): Delete Fsignal call.
21883
21884 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
21885
21886 * lisp.h (run_hook_list_with_args): Undo last change.
21887
21888 2001-12-01 Gerd Moellmann <gerd@gnu.org>
21889
21890 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
21891
21892 2001-12-01 Jason Rumney <jasonr@gnu.org>
21893
21894 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
21895
21896 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
21897 [!WM_MOUSELEAVE]: Define.
21898
21899 * w32menu.c (current_popup_menu, get_menu_item_info):
21900 (set_menu_item_info): New vars.
21901 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
21902 (w32_menu_show): Set current_popup_menu.
21903 (add_menu_item): Allocate new strings for owner-drawn menu items
21904 and help strings.
21905 Use owner-draw for disabled menu items again.
21906 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
21907 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
21908
21909 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
21910 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
21911 <WM_EXITMENULOOP>: Free menu strings.
21912 <WM_MOUSELEAVE>: Stop tracking mouse.
21913 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
21914
21915 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
21916 and mouse face.
21917
21918 2001-12-01 Kim F. Storm <storm@cua.dk>
21919
21920 The following changes add left-fringe and right-fringe
21921 frame parameters to adjust fringe widths, or remove one or
21922 both fringes.
21923
21924 * frame.h (struct frame): Remove trunc_area_pixel_width and
21925 trunc_area_cols fields.
21926 (Qleft_fringe, Qright_fringe): Declare.
21927 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
21928
21929 * frame.c (Qleft_fringe, Qright_fringe): New vars.
21930 (syms_of_frame): Initialize them.
21931
21932 * window.c (coordinates_in_window): Handle separate left and right
21933 fringe widths.
21934
21935 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
21936 and fringe_cols fields.
21937 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
21938 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
21939 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
21940 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
21941 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
21942 (x_compute_fringe_widths): Add prototype.
21943
21944 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
21945 fill fringe evenly with small dashes.
21946 (x_draw_fringe_bitmap): Clear background if necessary. Align and
21947 clip the new ZV bitmap to avoid jitter between rows.
21948 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
21949 background. Don't draw fringe bitmaps if fringe width is zero.
21950 (x_compute_fringe_widths): New function.
21951 (x_new_font, x_set_window_size_1): Use it.
21952
21953 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
21954 (x_set_frame_parameters): Process `font' parameter before other
21955 parameters as fringe widths depend on it.
21956 (x_set_fringe_width): New function.
21957 (x_figure_window_size): Use x_compute_fringe_widths.
21958 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
21959 parameters.
21960
21961 * widget.c (set_frame_size): Use x_compute_fringe_widths.
21962 (EmacsFrameSetCharSize): Ditto.
21963
21964 * w32term.h: Merged changes from xterm.h.
21965 * w32term.c: Merged changes from xterm.c.
21966 * w32fns.c: Merged changes from xfns.c.
21967
21968 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21969
21970 * COPYING: Removed.
21971
21972 2001-11-29 Dave Love <fx@gnu.org>
21973
21974 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
21975 extra extra slot.
21976 (detect_coding_mask): Fix call of detect_coding_iso2022.
21977
21978 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21979
21980 * fileio.c (file-name-coding-system)
21981 (default-file-name-coding-system): Doc fix (links to referenced
21982 variables added).
21983
21984 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
21985
21986 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
21987 Add dummy uses of gcproN variables.
21988
21989 * category.c (describe_category, describe_category_1)
21990 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
21991 (syms_of_category): Don't defsubr Sdescribe_categories.
21992
21993 2001-11-28 Richard M. Stallman <rms@gnu.org>
21994
21995 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
21996
21997 * Makefile.in (lispdir): New variable, referring to build dir.
21998 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
21999
22000 2001-11-28 Andrew Innes <andrewi@gnu.org>
22001
22002 * w32menu.c (w32_menu_display_help): Actually add the new argument
22003 OWNER.
22004
22005 2001-11-28 Jason Rumney <jasonr@gnu.org>
22006
22007 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
22008 menu items. From David Ponce <dponce@wanadoo.fr>.
22009 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
22010 conditionally.
22011 (w32_menu_display_help): New argument OWNER. Rewritten to store a
22012 help event in the owner frame's keyboard buffer.
22013
22014 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
22015 (Fx_show_tip): Don't subtract last width from row width.
22016
22017 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
22018 (w32_read_socket): Use EQ to compare frames.
22019
22020 2001-11-28 Gerd Moellmann <gerd@gnu.org>
22021
22022 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
22023 OVERLAPS_P.
22024
22025 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22026
22027 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
22028 `gcpro3' and `gcpro4'.
22029
22030 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
22031
22032 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
22033
22034 * ccl.c: Use AREF and ASIZE.
22035
22036 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
22037
22038 * lisp.h (run_hook_list_with_args): Remove.
22039 (LIST_END_P): Fix call to wrong_type_argument.
22040 (make_fixnum_or_float): Use EMACS_INT rather than int.
22041
22042 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
22043
22044 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
22045 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
22046
22047 * eval.c: Use AREF and ASIZE.
22048 (Ffetch_bytecode): Add the file name to the error message.
22049
22050 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
22051 which match the end of the file-name.
22052 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
22053 is not a valid env var, but leave it as is instead.
22054
22055 * keymap.c (access_keymap): Handle t bindings like nil bindings.
22056 Make nil bindings in char-tables transparent.
22057 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
22058
22059 2001-11-26 Richard M. Stallman <rms@gnu.org>
22060
22061 * textprop.c (set_text_properties_1): Allow START, END in either order.
22062 Do nothing if range is empty.
22063
22064 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
22065
22066 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
22067 (clean): Not here.
22068
22069 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
22070
22071 * textprop.c (set_text_properties_1): Clearly mark that the
22072 interval should not be empty.
22073
22074 * intervals.c (graft_intervals_into_buffer):
22075 Don't call set_text_properties_1 on an empty interval.
22076
22077 2001-11-25 Richard M. Stallman <rms@gnu.org>
22078
22079 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
22080
22081 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
22082 don't lose the data in it.
22083
22084 2001-11-25 Juanma Barranquero <lektu@terra.es>
22085
22086 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
22087
22088 * buffer.c (Fkill_buffer): Likewise.
22089
22090 * print.c (temp_output_buffer_setup): Likewise.
22091
22092 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
22093
22094 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
22095
22096 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
22097
22098 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
22099 Niemitalo <kon@iki.fi>.
22100
22101 2001-11-25 Jason Rumney <jasonr@gnu.org>
22102
22103 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
22104
22105 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
22106 (Fx_show_tip): Block input during frame creation.
22107 (Fx_show_tip, Fx_hide_tip): Enable.
22108
22109 2001-11-24 Richard M. Stallman <rms@gnu.org>
22110
22111 * lread.c (Fload): Detect recursive load error for more than 3
22112 nestings of the same file.
22113 (Vrecursive_load_depth_limit): Variable deleted.
22114 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
22115
22116 2001-11-24 Jason Rumney <jasonr@gnu.org>
22117
22118 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
22119 mouse position if either left or top is not specified.
22120
22121 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
22122 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
22123 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
22124 (my_create_tip_window): Assign tip_window.
22125 (x_create_tip_frame): Use same defaults as X.
22126 (compute_tip_xy): Remove unused variable. Use full screen width.
22127 (Fx_show_tip): Do not double height. Call ShowWindow directly.
22128
22129 * w32term.c (x_after_update_window_line): Doc fix.
22130 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
22131 frames.
22132 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
22133
22134 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
22135 for all Windowed systems.
22136
22137 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
22138
22139 * msdos.c (IT_clear_screen): If the frame's faces are not yet
22140 realized, use the initial screen colors to clear the screen.
22141
22142 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22143
22144 * textprop.c (Fset_text_properties): Remove unused variables
22145 `unchanged', `prev_changed', `s' and `len'.
22146
22147 * search.c (Freplace_match): Remove unused variable `inslen'.
22148
22149 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
22150
22151 2001-11-22 Jason Rumney <jasonr@gnu.org>
22152
22153 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
22154 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
22155 (my_create_tip_window): New function.
22156 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
22157 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
22158
22159 2001-11-20 Jason Rumney <jasonr@gnu.org>
22160
22161 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
22162 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
22163
22164 * w32fns.c (Vw32_system_coding_system): Remove.
22165 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
22166
22167 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
22168
22169 * fileio.c (Fwrite_region): Move choose_write_coding_system to
22170 after build_annotations.
22171
22172 * syntax.c (describe_syntax): Add dummy arg.
22173 (describe_syntax_1): Update call to describe_vector.
22174
22175 * category.c (describe_category): Add dummy arg.
22176 (describe_category_1): Update call to describe_vector.
22177
22178 * keymap.c (Fdescribe_vector): Add `describer' parameter.
22179 (describe_command, describe_translation): Add dummy second param.
22180 (describe_map): Call elt_describer with two arguments.
22181 (describe_vector_princ): Add `fun' parameter.
22182 Call it instead of the hardcoded `princ'.
22183 (describe_vector): Add arg `args'.
22184 Pass it as a new second argument to elt_describer.
22185
22186 * keymap.h (describe_vector): Update prototype.
22187
22188 * frame.c: Don't include keymap.h any more.
22189 (keys_of_frame): Remove.
22190
22191 * lisp.h (keys_of_frame): Remove declaration.
22192
22193 * emacs.c (main): Don't call `keys_of_frame' any more.
22194
22195 2001-11-14 Andreas Schwab <schwab@suse.de>
22196
22197 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
22198 if defined, 0 otherwise.
22199 (MAP_FAILED): Define if not defined and use it to test mmap failure.
22200 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
22201
22202 2001-11-19 Richard M. Stallman <rms@gnu.org>
22203
22204 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
22205
22206 2001-11-18 Jason Rumney <jasonr@gnu.org>
22207
22208 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
22209 (x_draw_bar_cursor): If the background color of the glyph under
22210 the cursor equals the frame's cursor color, use the glyph's
22211 foreground color for drawing the bar cursor.
22212 (x_after_update_window_line): Clear internal border in different
22213 circumstances.
22214 (w32_set_vertical_scroll_bar): Check for width and height > 0.
22215 (w32_draw_relief_rect): Correct relief by 1 pixel.
22216 (x_set_glyph_string_background_width):
22217 Set extends_to_end_of_line_p if the row's fill_line_p is set and
22218 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
22219 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
22220 if cursor_in_non_selected_windows is false.
22221 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
22222 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
22223 Notice if cursor gets overwritten.
22224 (notice_overwritten_cursor): Renamed from
22225 note_overwritten_text_cursor. Rewritten to take glyph widths
22226 into account, and to take X positions as parameters.
22227 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
22228 around call to x_draw_glyphs.
22229 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
22230 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
22231 color to use for image glyph reliefs.
22232 (x_draw_image_relief): Accept zero tool_bar_button_relief.
22233 (glyph_rect): Remove unused variable `area'.
22234
22235 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
22236 some items.
22237 (x_set_internal_border_width): Set frame garbaged when window
22238 doesn't exist yet.
22239 (Fx_create_frame): Accept zero tool_bar_button_relief.
22240 (x_clear_image_1, four_corners_best, image_background)
22241 (image_background_transparent): New functions.
22242 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
22243 (gs_format): Add `:background' entry.
22244 (lookup_image): Set IMG's background color if specified.
22245 (pbm_load, xbm_load_image, png_load): Set IMG's background field
22246 when appropriate.
22247 (x_clear_image_1): Reset `background_valid' and
22248 `background_transparent_valid' fields.
22249 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
22250 calculating it here. Set IMG's background_transparent field.
22251 (enum xpm_keyword_index): Add XPM_BACKGROUND.
22252 (enum png_keyword_index): Add PNG_BACKGROUND.
22253 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
22254 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
22255 (enum gif_keyword_index): Add GIF_BACKGROUND.
22256 (enum gs_keyword_index): Add GS_BACKGROUND.
22257 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
22258 Pre-calculate image background color where necessary.
22259 (x_create_x_image_and_pixmap, xbm_load, gs_load):
22260 Use display info's n_cbits entry for screen depth.
22261 (Fx_show_tip): Remove unused variables `buffer', `top',
22262 `left', `max_width' and `max_height'.
22263
22264 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
22265
22266 2001-11-18 Gerd Moellmann <gerd@gnu.org>
22267
22268 * puresize.h (BASE_PURESIZE): Increase to 750000.
22269
22270 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22271
22272 * frame.c (Fframe_live_p): Doc fix.
22273
22274 2001-11-18 Richard M. Stallman <rms@gnu.org>
22275
22276 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
22277 (message_dolog_marker3): New static variables hold three markers.
22278 (syms_of_xdisp): Initialize and staticpro them.
22279 (message_dolog): Use message_dolog_marker1..3 instead of
22280 allocating markers each time. Unchain them when done.
22281
22282 2001-11-17 Richard M. Stallman <rms@gnu.org>
22283
22284 * doc.c (Fsnarf_documentation): Doc fix.
22285
22286 2001-11-17 Andreas Schwab <schwab@suse.de>
22287
22288 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
22289
22290 2001-11-17 Richard M. Stallman <rms@gnu.org>
22291
22292 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
22293
22294 2001-11-17 Jason Rumney <jasonr@gnu.org>
22295
22296 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
22297
22298 2001-11-17 Gerd Moellmann <gerd@gnu.org>
22299
22300 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
22301 with invalid position.
22302
22303 2001-11-16 Richard M. Stallman <rms@gnu.org>
22304
22305 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
22306
22307 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
22308 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
22309 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
22310
22311 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
22312
22313 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
22314
22315 * fileio.c (build_annotations): Split off the tail.
22316 (build_annotations_2): New fun. Extracted from build_annotations.
22317 (Fwrite_region): Split the call to build_annotations into two
22318 calls to build_annotations and build_annotations_2.
22319
22320 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22321
22322 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
22323 clear_waiting_for_input with argument.
22324
22325 * xterm.h (x_update_cursor): Remove duplicated prototype.
22326
22327 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
22328
22329 * xterm.c (waiting_for_input): Remove unnecessary declaration.
22330
22331 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
22332
22333 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
22334
22335 * fileio.c (choose_write_coding_system): New fun, extracted
22336 from Fwrite_region.
22337 (Fwrite_region): Use it.
22338
22339 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
22340 (funcall_lambda, run_hook_with_args): Make static and add prototype.
22341 (ml_apply, find_handler_clause): Add prototype.
22342
22343 2001-11-16 Eli Zaretskii <eliz@gnu.org>
22344
22345 * config.in: Add #undef HAVE_COFF_H.
22346
22347 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
22348 Required for ISC 4.1.
22349
22350 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
22351
22352 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
22353 Andrew Wiseman <a.wiseman@btclick.com>.
22354
22355 2001-11-16 Kim F. Storm <storm@cua.dk>
22356
22357 The following changes are made to clean up the various internal
22358 references to the fringes to actually use the term `fringe' for
22359 them. Previously, they were called `flags areas', `bitmap areas',
22360 `left/right side of windows', or implicitly as `flags' or
22361 `bitmaps':
22362
22363 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
22364 Comments fixed. Use renamed symbols.
22365
22366 * dispnew.c: Comment fix. Use renamed symbols.
22367
22368 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
22369 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
22370 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
22371
22372 * msdos.c: Comment fix.
22373
22374 * w32fns.c: Use renamed symbols.
22375
22376 * w32term.c: Comment fixes. Use renamed symbols.
22377 (fringe_bitmap_type): Renamed from bitmap_type.
22378 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
22379 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
22380 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
22381
22382 * w32term.h: Comment fixes. Use renamed symbols.
22383 (fringes_extra): Renamed from flags_areas_extra.
22384 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
22385 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
22386 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
22387 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
22388 (FRAME_X_LEFT_FRINGE_WIDTH):
22389 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
22390 (FRAME_X_RIGHT_FRINGE_WIDTH):
22391 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
22392
22393 * widget.c: Use renamed symbols.
22394
22395 * window.c: Comment fixes. Use renamed symbols.
22396 (coordinates-in-window-p): Doc fix.
22397
22398 * xdisp.c: Comment fixes. Use renamed symbols.
22399
22400 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
22401
22402 * xfns.c: Use renamed symbols.
22403
22404 * xterm.c: Comment fixes. Use renamed symbols.
22405 (fringe_bitmap_type): Renamed from bitmap_type.
22406 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
22407 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
22408 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
22409
22410 * xterm.h: Comment fixes. Use renamed symbols.
22411 (fringes_extra): Renamed from flags_areas_extra.
22412 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
22413 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
22414 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
22415 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
22416 (FRAME_X_LEFT_FRINGE_WIDTH):
22417 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
22418 (FRAME_X_RIGHT_FRINGE_WIDTH):
22419 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
22420
22421 2001-11-15 Jason Rumney <jasonr@gnu.org>
22422
22423 * w32menu.c (add-menu-item): Make help_echo and radio buttons
22424 work for most menu items. From David Ponce
22425 <david.ponce@wanadoo.fr>.
22426
22427 2001-11-15 Gerd Moellmann <gerd@gnu.org>
22428
22429 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
22430 Some x_set_* function expect to be called even if old and new
22431 value are equal.
22432
22433 * xdisp.c (build_desired_tool_bar_string): Accept zero
22434 tool_bar_button_relief.
22435
22436 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
22437
22438 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
22439
22440 * xterm.c (x_draw_bar_cursor): If the background color of the
22441 glyph under the cursor equals the frame's cursor color, use
22442 the glyph's foreground color for drawing the bar cursor.
22443
22444 * dispnew.c (direct_output_forward_char): Fix character/byte
22445 position comparison.
22446
22447 2001-11-15 Miles Bader <miles@gnu.org>
22448
22449 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
22450 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
22451 Update arguments to find_field.
22452 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
22453 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
22454 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
22455 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
22456
22457 2001-11-14 Richard M. Stallman <rms@gnu.org>
22458
22459 * editfns.c (Fpropertize): Allow call with 1 arg.
22460
22461 * dispextern.h (image_background, image_background_transparent):
22462 Conditionalize on HAVE_X_WINDOWS.
22463
22464 2001-11-13 Richard M. Stallman <rms@gnu.org>
22465
22466 * print.c (Fprin1_to_string): Doc fix.
22467
22468 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
22469
22470 * floatfns.c (Fceiling, Ffloor): Doc fixes.
22471
22472 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
22473
22474 * fileio.c (Ffile_accessible_directory_p): Doc fix.
22475
22476 * eval.c (syms_of_eval): Doc fix.
22477
22478 * coding.c (syms_of_coding): Doc fix.
22479
22480 * doc.c (Fsnarf_documentation): Doc fix.
22481
22482 * dispnew.c (syms_of_display): Doc fix.
22483
22484 * category.c (Fget_unused_category): Doc fix.
22485
22486 * buffer.c (syms_of_buffer): Doc fixes.
22487
22488 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
22489
22490 * print.c (prin1, print): Doc fix.
22491
22492 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22493
22494 * fontset.h: Remove declarations of variables
22495 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
22496
22497 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
22498 `Vclip_large_size_font'.
22499
22500 2001-11-13 Jason Rumney <jasonr@gnu.org>
22501
22502 * w32fns.c: Doc fix.
22503
22504 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22505
22506 * xfaces.c (Fface_attributes_as_vector): Doc fix.
22507
22508 * fns.c: Doc fix.
22509
22510 * emacs.c: Doc fix.
22511
22512 * coding.c: Doc fix.
22513
22514 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
22515 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
22516 `new style' [w/`doc:' keyword].
22517
22518 2001-11-12 Richard M. Stallman <rms@gnu.org>
22519
22520 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
22521 LeaveNotify events. Only FocusIn and FocusOut do that now.
22522 (x_display_and_set_cursor): Do display hollow cursors in active
22523 minibuffer windows when they are not selected.
22524
22525 2001-11-12 Jason Rumney <jasonr@gnu.org>
22526
22527 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
22528 * w32term.c: Change doc-string comments to `new style'
22529 [w/`doc:' keyword]. Doc fixes.
22530
22531 * w32fns.c: Don't define max.
22532 (Fx_open_connection): Only execute once.
22533
22534 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22535
22536 * ccl.c: Change macros to use do-while block instead of if-else.
22537 Use braces to follow GNU Coding Standards.
22538
22539 2001-11-11 Richard M. Stallman <rms@gnu.org>
22540
22541 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
22542
22543 * lread.c (read_escape): Use end_of_file_error for reporting eof.
22544
22545 * insdel.c (replace_range): Use adjust_markers_for_replace
22546 instead of adjust_markers_for_delete and adjust_markers_for_insert.
22547
22548 * intervals.h (set_text_properties, set_text_properties_1): Declare.
22549
22550 * textprop.c (set_text_properties_1): New subroutine
22551 broken out of set_text_properties.
22552 (set_text_properties): Use set_text_properties_1.
22553
22554 * intervals.c (graft_intervals_into_buffer):
22555 Use set_text_properties_1 to clear out properties.
22556
22557 * search.c (Freplace_match): Use replace_range to insert
22558 and delete. Don't request property inheritance from
22559 surrounding text.
22560
22561 2001-11-10 Jason Rumney <jasonr@gnu.org>
22562
22563 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
22564 vertical fonts. Allow them if face name is explicitly specified.
22565 Do not give up if we find a font that cannot be converted to an xlfd.
22566
22567 2001-11-10 Gerd Moellmann <gerd@gnu.org>
22568
22569 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
22570 instead of malloc/free.
22571
22572 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22573
22574 * xfaces.c (merge_face_vectors): Use braces to follow GNU
22575 Coding Standards.
22576 (Finternal_set_lisp_face_attribute): Likewise.
22577
22578 * buffer.c (Fbury_buffer): Likewise.
22579
22580 * indent.c (current_column_1): Remove unused variable `prev_col'.
22581
22582 * coding.c (encode_coding): Use precomputed value of `src'.
22583 (encode_coding): Remove unused variable `src_end'.
22584 (code_convert_region): Remove unused variables `count'.
22585
22586 2001-11-07 Jason Rumney <jasonr@gnu.org>
22587
22588 * w32term.c (x_display_and_set_cursor): Do not move system caret
22589 if cursor_glyph is NULL.
22590
22591 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22592
22593 * keymap.c (access_keymap): Fix compilation error.
22594
22595 2001-11-07 Miles Bader <miles@gnu.org>
22596
22597 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
22598
22599 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22600
22601 * intervals.c (graft_intervals_into_buffer):
22602 Remove #ifdef'd-out code.
22603 (graft_intervals_into_buffer): Remove unused variable `middle'.
22604
22605 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
22606 code (eval-current-buffer).
22607 Change doc-string comments to `new style' [w/`doc:' keyword].
22608
22609 2001-11-06 Richard M. Stallman <rms@gnu.org>
22610
22611 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
22612
22613 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
22614
22615 * lread.c (read1): Fix behavior with nested backquoting.
22616
22617 * keyboard.c (make_lispy_event): Check integerness and fix
22618 Lisp_Object/int mixup.
22619
22620 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22621
22622 * fns.c (copy_hash_table): Remove unused variable `v'.
22623
22624 * fontset.c (fontset_font_pattern): Remove unused variable
22625 `family_registry'.
22626
22627 * indent.c (current_column_1): Remove unused variable `prev_col'.
22628
22629 2001-11-05 Richard M. Stallman <rms@gnu.org>
22630
22631 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
22632
22633 * buffer.c (Fkill_buffer): Don't delete auto save file
22634 if buffer is modified.
22635
22636 2001-11-05 Andrew Innes <andrewi@gnu.org>
22637
22638 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
22639 CHECK_NUMBER_CDR.
22640
22641 2001-11-05 Richard M. Stallman <rms@gnu.org>
22642
22643 * unexelf.c (unexec): Minor changes; clean up comments.
22644
22645 2001-11-05 Sam Steingold <sds@gnu.org>
22646
22647 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
22648
22649 2001-11-05 Andreas Schwab <schwab@suse.de>
22650
22651 * sound.c (sound_perror): Save errno from being clobbered.
22652
22653 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
22654
22655 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
22656 the program image directly.
22657
22658 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22659
22660 * buffer.h (Fbuffer_local_value): Add prototype.
22661
22662 2001-11-04 Richard M. Stallman <rms@gnu.org>
22663
22664 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
22665 and CHECK_BUFFER.
22666
22667 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
22668 (record_char): Likewise.
22669
22670 * keyboard.c (make_lispy_event): Don't insist a drag event must
22671 move to a different buffer position. Instead, check for moving at
22672 least double_click_fuzz.
22673
22674 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
22675
22676 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
22677
22678 * indent.c (current_column_1, Fmove_to_column): Separate the code
22679 for display-table glyphs from the code for buffer text, to fix
22680 bugs in the former.
22681
22682 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
22683
22684 * buffer.c (Fbuffer_local_value): New function.
22685 (syms_of_buffer): Defsubr it.
22686
22687 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
22688 value of `cursor-in-non-selected-windows'.
22689
22690 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
22691 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
22692 (syms_of_xdisp): Initialize it.
22693
22694 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22695
22696 * xfns.c (Fx_create_frame): Doc fix.
22697
22698 * coding.c: Change doc-string comments to `new style' [w/`doc:'
22699 keyword].
22700
22701 * eval.c (top_level_value, top_level_set): Remove commented and
22702 #ifdef'd-out code.
22703 (Fdefvar): Fix usage in doc-string.
22704
22705 2001-11-03 Richard M. Stallman <rms@gnu.org>
22706
22707 * xfns.c: Include unistd.h, if it exists.
22708
22709 * editfns.c: Move the include of ctype.h after unistd.h.
22710
22711 * gmalloc.c: Test BROKEN_PROTOTYPES.
22712
22713 2001-11-03 Ken Raeburn <raeburn@gnu.org>
22714
22715 * lisp.h (CHECK_STRING_CAR): New macro.
22716 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
22717 treating XCAR and XCDR as lvalues.
22718 (openp): Use CHECK_STRING_CAR.
22719 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
22720
22721 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
22722
22723 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
22724 (SIGMASKTYPE): Define.
22725
22726 * syssignal.h (sigunblock): Don't define if already defined.
22727
22728 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22729
22730 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
22731 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
22732 Fix typos in comments.
22733
22734 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
22735 and #ifdef'd-out code.
22736 Fix and reindent comments.
22737
22738 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
22739
22740 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
22741 argument `i' in macros.
22742
22743 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
22744 `i' in macros.
22745
22746 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
22747 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
22748 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
22749 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
22750 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
22751 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
22752 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
22753 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
22754 in macros.
22755
22756 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22757 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
22758 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
22759 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
22760 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
22761 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
22762 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
22763 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
22764 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
22765 (remove unused second argument).
22766
22767 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
22768
22769 * syntax.c (describe_syntax): New wrapper.
22770 (Finternal_describe_syntax_value): Rename from describe_syntax.
22771 Don't insert space at front and \n at the end.
22772 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
22773
22774 * regex.c (re_wctype): Try to fix some warnings.
22775 (regcomp, regexec): Don't forget the __restrict.
22776
22777 2001-11-02 Richard M. Stallman <rms@gnu.org>
22778
22779 * textprop.c (Fget_char_property): Doc fix.
22780
22781 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22782
22783 * process.c (Fstart_process): Add usage to doc-string.
22784
22785 * data.c (Fsetq_default): Ditto.
22786
22787 * callint.c (Finteractive): Ditto.
22788
22789 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
22790
22791 * macros.c: Don't include keymap.h any more.
22792
22793 2001-11-01 Richard M. Stallman <rms@gnu.org>
22794
22795 * data.c (Fmake_local_variable): Doc fix.
22796
22797 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
22798 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
22799
22800 * keymap.c (Fdescribe_buffer_bindings): Print character property
22801 bindings along with or instead of the buffer local map.
22802 Make the overriding maps override what they should.
22803
22804 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22805
22806 * window.c (grow_mini_window): Fix typo in comment.
22807
22808 2001-11-01 Gerd Moellmann <gerd@gnu.org>
22809
22810 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
22811 (XTset_vertical_scroll_bar): Likewise.
22812
22813 * xfns.c (x_build_heuristic_mask): Use four_corners_best
22814 instead of IMAGE_BACKGROUND.
22815
22816 * xfns.c (four_corners_best): Reindent.
22817
22818 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
22819 Handle :box so that it is possible to specify sexprs.
22820
22821 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
22822
22823 * s/hpux11.h: New file.
22824
22825 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22826
22827 * emacs.c (USAGE1): Show command line option --no-window-system
22828 instead of --no-windows in usage.
22829 (standard_args): Rename --no-windows to --no-window-system.
22830 (bug_reporting_address): Follow Emacs coding conventions.
22831
22832 * eval.c (Fcommandp): Doc fix.
22833 Change doc-string comments to `new style' [w/`doc:' keyword].
22834
22835 * frame.c (Fframe_live_p): Doc fix.
22836
22837 * buffer.c (selective-display-ellipses): Doc fix.
22838
22839 2001-10-31 Gerd Moellmann <gerd@gnu.org>
22840
22841 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
22842
22843 * xfaces.c (realize_x_face): If C is not a single-byte character,
22844 set the face's colors_copied_bitwise_p instead of the defaulted_p
22845 members which have a different meaning.
22846 (free_face_colors): Do nothing for a face whose colors have been
22847 copied bitwise.
22848
22849 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
22850
22851 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22852
22853 * marker.c, mocklisp.c: Change doc-string comments to `new style'
22854 [w/`doc:' keyword].
22855
22856 2001-10-31 Gerd Moellmann <gerd@gnu.org>
22857
22858 * fns.c (require_unwind): Return Lisp_Object.
22859
22860 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22861
22862 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
22863 (last-input-char): Revert doc-string to be the same as the
22864 doc-string of `last-input-event'.
22865
22866 * xdisp.c: Fix typos in comments.
22867
22868 2001-10-31 Gerd Moellmann <gerd@gnu.org>
22869
22870 * window.c (grow_mini_window): Handle case that the root
22871 window is already smaller than the nominal mininum height.
22872
22873 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
22874
22875 * emacs.c (main): Don't call keys_of_macros any more.
22876
22877 * lisp.h (keys_of_macros): Remove.
22878
22879 * macros.c (keys_of_macros): Remove.
22880
22881 * xfaces.c (Fface_attribute_relative_p): Declare args.
22882
22883 2001-10-30 Jason Rumney <jasonr@gnu.org>
22884
22885 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
22886 (enum_font_cb2): Ignore fonts with vertical orientation.
22887
22888 2001-10-30 Richard M. Stallman <rms@gnu.org>
22889
22890 * keyboard.c (Finput_pending_p): Doc fix.
22891
22892 2001-10-30 Gerd Moellmann <gerd@gnu.org>
22893
22894 * xterm.c (x_after_update_window_line): Don't run the code
22895 clearing in borders for rows whose visible height is 0.
22896
22897 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
22898 resized_p flag is set. If not set, use the much less flickering
22899 method previously used.
22900
22901 * dispnew.c (change_frame_size_1): Set frame's resized_p.
22902
22903 * frame.h (struct frame) <resized_p>: New member.
22904
22905 * lread.c (to_multibyte): Ensure read_buffer is at least twice
22906 as large as the number of bytes to convert.
22907
22908 * lread.c (to_multibyte): New function.
22909 (read1): Use it.
22910
22911 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
22912
22913 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
22914
22915 2001-10-30 Gerd Moellmann <gerd@gnu.org>
22916
22917 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
22918 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
22919 if the row's fill_line_p is set and drawing the last glyph with
22920 DRAW_IMAGE_{RAISED,SUNKEN}.
22921
22922 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
22923
22924 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
22925
22926 * xmenu.c: Include coding.h and charset.h.
22927 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
22928 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
22929 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
22930 Explicitly set wv->help. Use `TRUE' rather than `True'.
22931 (menu_help_callback): Use empty_string.
22932
22933 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
22934 (Fx_popup_dialog): Explicitly init f.
22935 (w32_menu_display_help): Use empty_string.
22936
22937 2001-10-29 Richard M. Stallman <rms@gnu.org>
22938
22939 * fns.c (Frequire): Detect recursive try to require the same
22940 feature 3 or more levels deep, and get error.
22941 (require_unwind): New subroutine.
22942 (require_nesting_list): New variable.
22943 (syms_of_fns): Init and staticpro it.
22944
22945 * print.c (print_object): Clarify indication of insertion type.
22946
22947 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
22948
22949 * coding.c (syms_of_coding): Document that locale-coding-system is
22950 used for decoding input on X.
22951
22952 * window.c (Fscroll_left, Fscroll_right): Doc fix.
22953
22954 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22955
22956 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
22957 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
22958
22959 2001-10-29 Gerd Moellmann <gerd@gnu.org>
22960
22961 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
22962 use NO_CURSOR if cursor_in_non_selected_windows is false.
22963
22964 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
22965 the slant attribute if FRAME is t.
22966
22967 * xfns.c (x_set_internal_border_width): Set frame garbaged
22968 when X window doesn't exist yet.
22969
22970 * xterm.c (x_after_update_window_line): Clear internal border
22971 in different circumstances.
22972
22973 * xterm.c (XTread_socket) <KeyPress>: Don't use
22974 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
22975 <handa@etl.go.jp>.
22976
22977 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
22978
22979 * m/ibms390.h: New file. From Adam Thornton
22980 <athornton@sinenomine.net>.
22981
22982 2001-10-28 Gerd Moellmann <gerd@gnu.org>
22983
22984 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
22985
22986 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
22987 a loop counter.
22988
22989 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22990
22991 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
22992
22993 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
22994 keyword].
22995 Fix typos in comments.
22996
22997 * emacs.c (bug_reporting_address): New function.
22998 Use it when displaying usage message.
22999
23000 * minibuf.c (read_minibuf): Remove unused external declaration of
23001 variable `Qread_only'.
23002
23003 * keymap.c (access_keymap): Remove unused variable `charset'.
23004
23005 2001-10-28 Miles Bader <miles@gnu.org>
23006
23007 * xfaces.c (merge_face_heights): Handle TO being relative as well.
23008 Remove #ifdef'd-out code.
23009 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
23010 (syms_of_xfaces): Initialize them.
23011
23012 2001-10-27 Jason Rumney <jasonr@gnu.org>
23013
23014 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
23015 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
23016 position using the system caret.
23017
23018 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
23019 (w32_system_caret_height, w32_system_caret_x)
23020 (w32_system_caret_y): New variables for tracking system caret.
23021 (w32_initialize): Initialize them.
23022 (x_display_and_set_cursor): Make system caret follow the active cursor.
23023
23024 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
23025 New messages types.
23026
23027 * w32term.c (note_mouse_highlight): Clear old help_echo.
23028
23029 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23030
23031 * xterm.c: Fix typo in a comment.
23032
23033 * emacs.c: Fix typos in comments.
23034 Remove unnecessary spaces.
23035 Change doc-string comments to `new style' [w/`doc:' keyword].
23036 (USAGE2): Fix typos in usage string.
23037
23038 * xterm.c: Fix typo in a comment.
23039
23040 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
23041 emacs.c.
23042
23043 2001-10-27 Gerd Moellmann <gerd@gnu.org>
23044
23045 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
23046 instead of 1/2 line_height in the heuristic for skipping
23047 farther backward when target_y was not reached.
23048
23049 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
23050 Display errno only if non-zero.
23051 (sound_warning): New function.
23052 (vox_configure): Don't treat failing to set sample rate as error.
23053 (various places): Improve error messages.
23054
23055 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
23056
23057 * fileio.c (Faccess_file): Run the argument filename through
23058 Fexpand_file_name, before using it.
23059
23060 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
23061 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
23062
23063 2001-10-26 Gerd Moellmann <gerd@gnu.org>
23064
23065 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
23066
23067 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
23068 Fix clearing in the case of scroll bars on the right.
23069
23070 2001-10-26 Juanma Barranquero <lektu@terra.es>
23071
23072 * w32gui.h (XImage): Add a dummy typedef.
23073
23074 2001-10-26 Gerd Moellmann <gerd@gnu.org>
23075
23076 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
23077
23078 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
23079
23080 * frame.c (Fframe_parameter): Fix last change.
23081
23082 * fileio.c: Revert last change (which removed old commented-out
23083 version of expand-file-name). Add a comment that explains why
23084 this old version should not be removed.
23085
23086 2001-10-25 Gerd Moellmann <gerd@gnu.org>
23087
23088 * frame.c (Fframe_parameter): Fix a bug whereby some
23089 ``artificial'' frame parameters, like `minibuffer' were not
23090 obtained by calling Fframe_parameters.
23091
23092 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
23093 cursor differently.
23094
23095 * xdisp.c (move_it_vertically_backward): Compute line height
23096 differently. Add heuristic to try to be more compatible to 20.x.
23097
23098 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
23099
23100 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
23101
23102 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
23103 boolean.
23104
23105 2001-10-25 Miles Bader <miles@gnu.org>
23106
23107 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
23108 BG is a pointer to a structure, not a structure.
23109 (gif_format, png_format): Add missing commas.
23110
23111 2001-10-24 Richard M. Stallman <rms@gnu.org>
23112
23113 * xfaces.c (Fface_attributes_as_vector): New function.
23114 (syms_of_xfaces): Defsubr it.
23115
23116 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23117
23118 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
23119 variable `area'.
23120
23121 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23122
23123 * search.c (scan_newline): Remove unused variable `selective_display'.
23124
23125 2001-10-25 Miles Bader <miles@gnu.org>
23126
23127 * dispextern.h (struct image): Add `background',
23128 `background_valid', and `background_transparent' fields.
23129 (image_background, image_background_transparent): New declarations.
23130 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
23131 * xfns.c (image_background, image_background_transparent)
23132 (four_corners_best): New functions.
23133 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
23134 (gs_format): Add `:background' entry.
23135 (lookup_image): Set IMG's background color if specified.
23136 (pbm_load, xbm_load_image, png_load): Set IMG's background field
23137 when appropriate.
23138 (x_clear_image_1): Reset `background_valid' and
23139 `background_transparent_valid' fields.
23140 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
23141 calculating it here. Set IMG's background_transparent field.
23142 (enum xpm_keyword_index): Add XPM_BACKGROUND.
23143 (enum png_keyword_index): Add PNG_BACKGROUND.
23144 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
23145 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
23146 (enum gif_keyword_index): Add GIF_BACKGROUND.
23147 (enum gs_keyword_index): Add GS_BACKGROUND.
23148 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
23149 Pre-calculate image background color where necessary.
23150 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
23151 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
23152 color to use for image glyph reliefs.
23153
23154 2001-10-24 Gerd Moellmann <gerd@gnu.org>
23155
23156 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
23157 in full-width rows.
23158
23159 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
23160 Fix clearing of area not covered by scroll bar.
23161
23162 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23163
23164 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
23165 and `real_start'.
23166 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
23167 (glyph_rect): Remove unused variable `area'.
23168
23169 2001-10-24 Gerd Moellmann <gerd@gnu.org>
23170
23171 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
23172
23173 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
23174 (row_containing_pos): Take additional argument DY.
23175 Treat rows ending in middle of char differently.
23176 (display_line): Handle tabs on window systems differently.
23177
23178 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
23179 with additional argument.
23180
23181 * dispextern.h (row_containing_pos): Adjust prototype.
23182
23183 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
23184 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
23185 (try_window_id, try_window_reusing_current_matrix)
23186 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
23187 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
23188
23189 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23190
23191 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
23192 gnuemacs).
23193 (HAVE_BOXES): Fix typo in comment.
23194 (push_menu_pane): Fix typo in comment.
23195
23196 * xdisp.c (display_prop_string_p): Remove unused local declaration
23197 of `Qwhen'.
23198 (single_display_prop_string_p): Remove unused local declarations
23199 of `Qwhen' and `Qmargin'.
23200 (string_buffer_position): Remove unused variable `around'.
23201 (store_frame_title): Remove unused variable `width'.
23202
23203 * window.c: Don't define max.
23204 (coordinates_in_window): Remove unused variable `uy'.
23205
23206 * widget.c: Don't define max.
23207
23208 * process.c: Don't define max.
23209 (create_process): Remove unused variable `buffer'.
23210
23211 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23212
23213 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
23214
23215 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
23216
23217 * xfaces.c (Finternal_set_lisp_face_attribute)
23218 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
23219 frame is on a windowed display.
23220
23221 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23222
23223 * dispnew.c (sync_window_with_frame_matrix_rows):
23224 Fix handling of windows which aren't full-width, fix handling
23225 of marginal areas.
23226
23227 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
23228
23229 2001-10-23 Andreas Schwab <schwab@suse.de>
23230
23231 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
23232 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
23233
23234 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23235
23236 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
23237 REAL_END. Notice if cursor gets overwritten.
23238 (notice_overwritten_cursor): Take X positions as parameters.
23239 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
23240 around call to x_draw_glyphs.
23241
23242 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23243
23244 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
23245 instead of C) and usage.
23246
23247 * editfns.c (char-to-string): Fix argument names (use CHAR instead
23248 of C) and usage.
23249
23250 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
23251 `left', `max_width' and `max_height'.
23252
23253 2001-10-23 Gerd Moellmann <gerd@gnu.org>
23254
23255 * xdisp.c (display_line): For a tab continued to the next line,
23256 set row's ends_in_middle_of_char_p.
23257
23258 2001-10-22 Gerd Moellmann <gerd@gnu.org>
23259
23260 * xdisp.c (display_line): Fix computation of continuation lines
23261 width for TABs.
23262
23263 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23264
23265 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
23266 `Qlaplace'.
23267
23268 * fileio.c: Remove unused code.
23269
23270 2001-10-22 Miles Bader <miles@gnu.org>
23271
23272 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
23273 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
23274 Remove `DOC_STRINGS_IN_COMMENTS' cases.
23275
23276 2001-10-21 Jason Rumney <jasonr@gnu.org>
23277
23278 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
23279
23280 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
23281
23282 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
23283 (Finsert_string): Avoid the multi-line string literals warning.
23284
23285 2001-10-22 Miles Bader <miles@gnu.org>
23286
23287 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
23288 (Fdocumentation): Don't use it.
23289 (syms_of_doc): Don't initialize it.
23290
23291 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
23292 * print.c (Fwith_output_to_temp_buffer): Likewise.
23293 * window.c (Fsave_window_excursion): Likewise.
23294 * editfns.c (Fsave_excursion, Fsave_current_buffer)
23295 (Fsave_restriction): Likewise.
23296 * eval.c (Frun_hooks, Frun_hook_with_args)
23297 (Frun_hook_with_args_until_failure)
23298 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
23299 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
23300 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
23301 (Funwind_protect, Fcondition_case): Likewise.
23302 * coding.c (Ffind_operation_coding_system): Likewise.
23303 * keyboard.c (Ftrack_mouse): Likewise.
23304
23305 2001-10-21 Miles Bader <miles@gnu.org>
23306
23307 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
23308 (Fmake_hash_table): Add usage: string to doc string.
23309 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
23310 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
23311 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
23312 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
23313 (Fml_prefix_argument_loop): Likewise.
23314
23315 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23316
23317 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
23318
23319 * sysdep.c (init_sys_modes): Change doc-string comments to `new
23320 style' [w/`doc:' keyword].
23321
23322 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
23323 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
23324 comments to `new style' [w/`doc:' keyword].
23325
23326 2001-10-21 Jason Rumney <jasonr@gnu.org>
23327
23328 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
23329
23330 * w32term.c (remember_mouse_glyph): New function.
23331 (w32_mouse_position): Use it.
23332 (note_mouse_movement): If the mouse moved off the glyph, remember
23333 its new position.
23334
23335 * w32term.h (struct w32_output): Correct spelling of x_compatible.
23336 (w32_display_info): Add mouse_face_overlay.
23337
23338 * w32term.c (notice_overwritten_cursor): Renamed from
23339 note_overwritten_text_cursor. Rewritten to take glyph widths into
23340 account.
23341 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
23342 (fast_find_string_pos): New function.
23343 (fast_find_position): Return the correct vpos. Add parameter
23344 STOP. In the final row, stop before glyphs having STOP as object.
23345 Don't consider glyphs that are not from a buffer.
23346 (fast_find_position) [0]: Add a presumably more correct version
23347 for after 21.1.
23348 (expose_window_tree, expose_frame): Don't compute intersections here.
23349 (expose_window): Do it here instead.
23350 (expose_window_tree, expose_window, expose_line): Return 1 when
23351 overwriting mouse-face.
23352 (expose_window): If W is the window currently being updated, mark
23353 the frame garbaged.
23354 (expose_frame): If mouse-face was overwritten, redo it.
23355 (x_use_underline_position_properties): New variable.
23356 (syms_of_xterm): DEFVAR_BOOL it.
23357 (x_draw_glyph_string): Add comment to use it in future.
23358 (x_draw_glyph_string): Restore clipping after drawing box.
23359 Fix a computation of the underline position.
23360 (w32_get_glyph_string_clip_rect): Minor cleanup.
23361 (x_fill_stretch_glyph_string): Remove an assertion.
23362 (x_produce_glyphs): Don't convert multibyte characters
23363 to unibyte characters in unibyte buffers.
23364 (cursor_in_mouse_face_p): New function.
23365 (x_draw_stretch_glyph_string): Use it to choose a different GC
23366 when drawing a cursor within highlighted text. Don't draw
23367 background again if it has already been drawn.
23368 (x_draw_glyph_string_box): Don't draw a full-width
23369 box just because the glyph row's full_width_p flag is set.
23370 (x_draw_glyphs): Fix computation of rightmost x for
23371 full-width rows.
23372 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
23373 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
23374 change bottom shadow accordingly. Some cleanup.
23375 (x_update_window_end): Handle overwritten mouse face
23376 also for tool bar windows.
23377 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
23378 DRAW is DRAW_IMAGE_RAISED.
23379 (clear_mouse_face): Return 1 if text with mouse face was
23380 actually redrawn. Make the function static.
23381 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
23382 optimize away highlighting if we pass over that same overlay again.
23383 (note_mouse_highlight): Call mouse_face_overlay_overlaps
23384 to detect a case where we have to highlight a different region
23385 despite not having left the currently highlighted region.
23386 Set mouse_face_overlay in the x_display_info. Avoid changing the
23387 mouse pointer shape when show_mouse_face has already done it, or
23388 there is no need. Handle mouse-face and help-echo in strings.
23389 (glyph_rect): New function.
23390 (w32_mouse_position): Use it to raise the threshold for mouse
23391 movement event generation.
23392 (w32_initialize_display_info): Initialize the x_display_info's
23393 mouse_face_overlay.
23394 (w32_set_vertical_scroll_bar): Don't clear a zero height
23395 or width area.
23396 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
23397 a widget to zero height.
23398
23399 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
23400 Protect unibyte strings created by replacing their multibyte
23401 equivalents in menu_items.
23402 (w32_menu_show): Don't overwrite an item's name with its key
23403 description in case the description is a multibyte string.
23404 (single_submenu): Some cleanup.
23405
23406 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
23407 (postprocess_image): New function.
23408 (lookup_image): Call it for all image types except PostScript.
23409 (x_kill_gs_process): Call postprocess_image.
23410 (tiff_error_handler, tiff_warning_handler): New functions.
23411 (tiff_load): Install them as handlers.
23412 (x_kill_gs_process): Recognize if someone has cleared the image
23413 cache under us.
23414 (valid_image_p): Protect better against invalid image
23415 specifications. Previous code could signal an error.
23416 (Fx_hide_tip, Fshow_tip): Doc fix.
23417 (Fv_max_tooltip_size): New variable.
23418 (syns_of_xfns): DEFVAR_LISP it.
23419 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
23420 window buffer to *tip* right after creating the frame. Set frame's
23421 window_width. Use a maximum tooltip size specified by
23422 Vx_max_tooltip_size, if that has valid contents.
23423 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
23424 Make sure the tooltip is completely visible.
23425 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
23426 (Fx_create_frame): Adjust the frame's height for presence
23427 of the tool bar before calling x_figure_window_size.
23428 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
23429 when the window gets smaller.
23430 (x_set_foreground_color): Set frame's cursor_pixel.
23431 (x_set_foreground_color, x_set_background_color): Cleaned up.
23432 (x_set_font): Handle case of x_new_fontset returning the same name
23433 as before, although there was a change in fontsets.
23434
23435 2001-10-21 Miles Bader <miles@gnu.org>
23436
23437 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
23438 (Flogxor): Add usage: string to doc string.
23439 * charset.c (Fstring): Likewise.
23440 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
23441 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
23442
23443 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23444
23445 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
23446
23447 * alloc.c: Reindent DEFUNs with doc: keywords.
23448
23449 * abbrev.c (Finsert_abbrev_table_description): Reindent.
23450
23451 * frame.c: Change doc-string comments to `new style' [w/`doc:'
23452 keyword].
23453
23454 See ChangeLog.9 for earlier changes.
23455
23456 ;; Local Variables:
23457 ;; coding: iso-2022-7bit
23458 ;; End:
23459
23460 Copyright (C) 2001, 2002, 2003, 2004, 2005,
23461 2006 Free Software Foundation, Inc.
23462 Copying and distribution of this file, with or without modification,
23463 are permitted provided the copyright notice and this notice are preserved.
23464
23465 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4