]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Entries between 2002-03-10 and 2002-02-16 was missing, restore them.
[gnu-emacs] / src / ChangeLog
1 2003-02-23 Richard M. Stallman <rms@gnu.org>
2
3 * callint.c (fix_command): New subroutine, from Fcall_interactively.
4 Detect (when ... (region-beginning)) etc.
5 (Fcall_interactively): Call fix_command.
6 (Qif, Qwhen): New variables.
7 (syms_of_callint): Init and staticpro them.
8
9 * regex.c (print_partial_compiled_pattern): Output to stderr.
10
11 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
12
13 * dired.c (directory_files_internal): Don't expand directory.
14 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
15 instead. From Lars Hansen <larsh@math.ku.dk>.
16
17 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
18
19 * fns.c (string_to_multibyte): Remove unused var i.
20 (Flanginfo): Fix int/Lisp_Object mixup.
21 (void_call2): New fun.
22 (Fmap_char_table): Use it in place of call2.
23
24 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
25
26 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
27
28 * keymap.c (copy_keymap_1): Make it static.
29
30 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
31
32 2003-02-22 David Ponce <david@dponce.com>
33
34 * lread.c (Fload): Don't check STRING_MULTIBYTE.
35
36 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
37
38 * process.h: Removed subtty field from struct Lisp_Process.
39
40 * process.c (create_process): Remove setting of subtty.
41 (emacs_get_tty_pgrp): New function.
42 (Fprocess_running_child_p, process_send_signal):
43 Call emacs_get_tty_pgrp instead of ioctl.
44 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
45
46 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
47
48 * keymap.c (Fdefine_key): Doc fix.
49
50 2003-02-21 Juanma Barranquero <lektu@terra.es>
51
52 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
53
54 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
55 POLLING_PROBLEM_IN_SELECT.
56
57 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
58 Delete #undef of POLLING_PROBLEM_IN_SELECT.
59
60 * s/hpux10-20.h: New file.
61
62 * process.c (wait_reading_process_input):
63 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
64
65 2003-02-20 Kenichi Handa <handa@m17n.org>
66
67 * fontset.c (check_fontset_name): If NAME is nil, return the
68 default fontset.
69 (override_font_info): New function.
70 (Fset_fontset_font): Document that NAME nil means the default fontset.
71 (Ffontset_info): If FONTSET is not the default fontset, merge
72 FONTSET onto the copy of the default fontset, and work on that
73 copy. Document that NAME nil means the default fontset.
74 (Ffontset_font): Document that NAME nil means the default fontset.
75
76 * process.c (setup_process_coding_systems): If the process's
77 in/out descriptor is -1, do nothing.
78
79 2003-02-19 Andreas Schwab <schwab@suse.de>
80
81 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
82 Add prototypes.
83
84 2003-02-19 Kenichi Handa <handa@m17n.org>
85
86 * xfaces.c (try_alternative_families): Try all scalable fonts if
87 Vscalable_fonts_allowed is not Qt.
88
89 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
90
91 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
92
93 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
94
95 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
96 names.
97
98 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
99 (sorted_font_list): Move allocation of struct font_name to
100 x_face_list_fonts.
101 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
102 (Fx_list_fonts): Set maxnames to -1 to get all font names.
103
104 2003-02-18 Kim F. Storm <storm@cua.dk>
105
106 * lread.c (read1): Fix last change.
107 "`" is not always special. Allow "?" after a character constant.
108
109 2003-02-18 Andrew Choi <akochoi@shaw.ca>
110
111 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
112
113 2003-02-18 Andreas Schwab <schwab@suse.de>
114
115 * window.c (window_scroll_pixel_based): Move outside a
116 multi-glyph character before setting new window start.
117
118 * xdisp.c (in_display_vector_p): New function.
119 * dispextern.h (in_display_vector_p): Declare.
120
121 2003-02-18 Kim F. Storm <storm@cua.dk>
122
123 * lread.c (read1): Fix and relax read syntax.
124 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
125 Only recognize "," after dotted-pair dot if inside backquote.
126 Never include "`" or "," (inside backquote) in a symbol.
127 Allow dotted-pair dot after a character constant.
128 Allow "`" and "," (inside backquote) after a character constant.
129
130 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
131
132 * gtkutil.c (xg_tool_bar_expose_callback): New function.
133 (xg_create_tool_bar): Force style of tool bar to be horizontal with
134 icons. Set name of tool bar to emacs-toolbar.
135 (update_frame_tool_bar): Connect expose event to
136 xg_tool_bar_expose_callback.
137
138 2003-02-17 Richard M. Stallman <rms@gnu.org>
139
140 * keyboard.c (this_command_key_count_reset): New variable.
141 Initiatize to 0 where this_command_key_count is set.
142 (read_char): Save and restore this_command_key_count_reset
143 around input method code.
144 (read_char): If this_command_key_count_reset, echo reread commands.
145 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
146
147 2003-02-17 Kenichi Handa <handa@m17n.org>
148
149 * fns.c (string_to_multibyte): Always return a multibyte string.
150
151 2003-02-16 Jason Rumney <jasonr@gnu.org>
152
153 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
154 Negative max_fonts parameter means list all.
155
156 2003-02-14 Dave Love <fx@gnu.org>
157
158 * fns.c (Flanginfo): Doc fix.
159
160 2003-02-13 Kim F. Storm <storm@cua.dk>
161
162 * lread.c (read_escape): Interpret \s as a SPACE character, except
163 for \s-X in a character constant which still is the super modifier.
164 (read1): Signal an `invalid read syntax' error if a character
165 constant is immediately followed by a digit or symbol character.
166
167 * search.c (Fmatch_data): Doc fix. Explicitly state that
168 match-data is undefined if last search failed.
169
170 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
171 All uses changed.
172
173 2003-02-12 Juanma Barranquero <lektu@terra.es>
174
175 * eval.c (Fdefmacro): Fix typo.
176
177 2003-02-12 Kim F. Storm <storm@cua.dk>
178
179 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
180 macro is a string, convert meta modifiers in string when copying
181 the string into a vector.
182
183 2003-02-11 Kim F. Storm <storm@cua.dk>
184
185 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
186
187 2003-02-11 Kenichi Handa <handa@m17n.org>
188
189 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
190
191 2003-02-10 Kim F. Storm <storm@cua.dk>
192
193 * process.c: Doc fixes.
194 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
195
196 2003-02-10 Kenichi Handa <handa@m17n.org>
197
198 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
199
200 * process.c (QCfilter_multibyte): New variable.
201 (setup_process_coding_systems): New function.
202 (Fset_process_buffer, Fset_process_filter):
203 Call setup_process_coding_systems.
204 (Fstart_process): Initialize the member `filter_multibyte' of
205 struct Lisp_Process.
206 (create_process): Call setup_process_coding_systems.
207 (Fmake_network_process): New keyward `:filter-multibyte'.
208 Initialize the member `filter_multibyte' of struct Lisp_Process.
209 Call setup_process_coding_systems.
210 (server_accept_connection): Call setup_process_coding_systems.
211 (read_process_output): If the process has a filter, decide the
212 multibyteness of a string to given to the filter by
213 `filter_multibyte' member of the process. If the process doesn't
214 have a filter and the result of conversion is unibyte, use
215 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
216 multibyte form.
217 (Fset_process_coding_system): Call setup_process_coding_systems.
218 (Fset_process_filter_multibyte): New function.
219 (Fprocess_filter_multibyte_p): New function.
220 (syms_of_process): Intern and staticpro QCfilter_multibyte.
221 Defsubr Sset_process_filter_multibyte and
222 Sprocess_filter_multibyte_p.
223
224 * process.h (struct Lisp_Process): New member filter_multibyte.
225
226 * lisp.h (setup_process_coding_systems): Add prototype.
227
228 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
229 process, update coding systems for the process.
230
231 2003-02-09 Kenichi Handa <handa@m17n.org>
232
233 * fns.c (string_to_multibyte): New function.
234 (Fstring_to_multibyte): New function.
235 (syms_of_fns): Defsubr it.
236
237 2003-02-08 Andreas Schwab <schwab@suse.de>
238
239 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
240 instead of the substitution.
241
242 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
243
244 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
245
246 * xmenu.c (menu_position_func): Adjust menu popup position so that
247 the menu is fully visible.
248
249 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
250
251 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
252 (x_make_frame_invisible, x_wm_set_icon_position):
253 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
254
255 * xfns.c (x_set_name, x_set_title): Ditto.
256
257 2003-02-04 Richard M. Stallman <rms@gnu.org>
258
259 * keyboard.c (echo_now): Update before_command_echo_length.
260 (Freset_this_command_lengths): Reset this_command_key_count etc.
261 immediately rather than arranging to do it later.
262 (before_command_key_count_1, before_command_echo_length_1)
263 (before_command_restore_flag): Vars deleted.
264 (add_command_key): Don't handle before_command_restore_flag.
265 (read_char, record_menu_key): Don't update before_command_key_count or
266 before_command_echo_length.
267 (read_char): Don't handle before_command_restore_flag.
268
269 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
270 in direct-output clauses if it wouldn't be called in the ordinary case.
271
272 2003-02-04 Kim F. Storm <storm@cua.dk>
273
274 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
275
276 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
277
278 * gtkutil.c (remove_from_container): Copying list is not needed.
279 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
280 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
281 on list returned from gtk_container_get_children to avoid memory leak.
282
283 2003-02-01 Jason Rumney <jasonr@gnu.org>
284
285 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
286 local malloc.
287 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
288 definitions in xpm.h.
289 (init_xpm_functions): New function.
290 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
291 (init_external_image_libraries): Try to load libXpm.dll.
292
293 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
294 timestamp.
295
296 2003-01-31 Dave Love <fx@gnu.org>
297
298 * syntax.c (Fskip_chars_forward)
299 (open-paren-in-column-0-is-defun-start): Doc fix.
300
301 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
302
303 * fileio.c: Support // at start of name for Cygwin (just added proper
304 preprocessor tests).
305
306 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
307
308 * Makefile.in: Use @EXEEXT@ for Cygwin.
309
310 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
311
312 * s/cygwin.h: Added for Cygwin port.
313
314 2003-01-31 Juanma Barranquero <lektu@terra.es>
315
316 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
317 when including gif_lib.h.
318 (init_gif_functions, init_tiff_functions): New functions.
319 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
320 Windows. Disable color table lookups. Call library functions
321 through pointers determined at runtime.
322 (init_external_image_libraries): Try to load libungif.dll and
323 libtiff.dll.
324
325 2003-01-31 Kenichi Handa <handa@m17n.org>
326
327 * xdisp.c (SKIP_GLYPHS): New macro.
328 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
329
330 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
331
332 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
333
334 2003-01-30 Dave Love <fx@gnu.org>
335
336 * alloc.c (Vgc_elapsed, gcs_done): New variables.
337 (Fgarbage_collect): Use them.
338 (init_alloc, syms_of_alloc): Set them up.
339
340 2003-01-30 Juanma Barranquero <lektu@terra.es>
341
342 * w32fns.c (init_external_image_libraries): Add missing operator.
343
344 2003-01-29 Jason Rumney <jasonr@gnu.org>
345
346 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
347 an alternative name for jpeg.dll.
348
349 2003-01-29 Kenichi Handa <handa@m17n.org>
350
351 * xdisp.c (set_cursor_from_row): Pay attention to string display
352 properties.
353
354 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
355
356 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
357 <escape>.
358 (keycode_to_xkeysym_table): Reformat and add more comments.
359 (XTread_socket): Drop special case for backspace.
360
361 2003-01-28 Andrew Choi <akochoi@shaw.ca>
362
363 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
364 values in old-style RGB specs.
365
366 2003-01-27 Juanma Barranquero <lektu@terra.es>
367
368 * w32fns.c (init_external_image_libraries): Try alternate names for the
369 jpeg dll.
370
371 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
372
373 * gtkutil.c (create_dialog, xg_separator_p)
374 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
375 before calling strcmp or strlen.
376
377 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
378
379 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
380 and handle image load failure.
381
382 2003-01-26 Jason Rumney <jasonr@gnu.org>
383
384 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
385 New functions.
386 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
387 Disable color table lookups. Call jpeg library functions
388 through pointers determined at runtime.
389 (init_external_image_libraries): Try to load jpeg.dll.
390
391 2003-01-25 Richard M. Stallman <rms@gnu.org>
392
393 * lisp.h: Declare format2 instead of format1.
394
395 * fileio.c (barf_or_query_if_file_exists):
396 Call format2 instead of format1.
397
398 * editfns.c (format2): New function, replaces format1
399 but takes exactly two Lisp Objects as format args.
400
401 * buffer.c (Fkill_buffer): Call format2 instead of format1.
402
403 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
404
405 * xterm.h: Change to return value of x_dispatch_event to int.
406
407 * xterm.c (x_filter_event): New function.
408 (event_handler_gdk, XTread_socket): Call x_filter_event.
409 (x_dispatch_event): Change to return value of finish.
410 (event_handler_gdk): Use return value from x_dispatch_event.
411
412 * xfns.c (x_window): Call create_frame_xic for GTK version to
413 initialize input methods.
414
415 * gtkutil.h: Add (void) prototypes.
416
417 * gtkutil.c (create_menus): Remove code that puts the help menu to
418 the right.
419
420 2003-01-25 Jason Rumney <jasonr@gnu.org>
421
422 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
423 [HAVE_PNG]: Sync with xfns.c version.
424 (png_load): Adjust colors for Windows. Use Windows
425 bitmaps. Disable color table lookups.
426 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
427 (init_png_functions): New function.
428 (png_read_from_memory, png_load): Call png library functions
429 through pointers determined at runtime.
430 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
431 (init_external_image_libraries): New function.
432 (init_xfns): Call it.
433
434 2003-01-24 Andreas Schwab <schwab@suse.de>
435
436 * minibuf.c (Fminibuffer_message): Verify type of parameter.
437
438 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
439
440 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
441 of static initializer.
442
443 2003-01-24 Dave Love <fx@gnu.org>
444
445 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
446 architectures.
447
448 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
449 Use __alignof__.
450
451 2003-01-24 Kenichi Handa <handa@m17n.org>
452
453 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
454 It it is nonzero, don't pretend that an invisible area doesn't exist.
455 (command_loop_1): Call adjust_point_for_property with proper
456 second arg.
457
458 2003-01-22 Jason Rumney <jasonr@gnu.org>
459
460 Sync changes with xterm.c and xfns.c.
461
462 * w32term.c (x_draw_glyph_string_foreground)
463 (x_draw_composite_glyph_string_foreground): Implement overstriking.
464
465 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
466 phys_cursor's hpos is overwritten. This is still not completely
467 correct, as it doesn't really make sense to use hpos at all to
468 get the cursor glyph (as that is relative to the width of the
469 characters on the line, which may have changed during the update).
470
471 * w32term.c (notice_overwritten_cursor): Handle the special case
472 of the cursor being in the first blank non-text line at the
473 end of a window.
474
475 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
476 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
477 Compute from the x position returned by x_draw_glyphs.
478
479 (x_display_and_set_cursor): Don't set phys_cursor_width here,
480 except for NO_CURSOR and system caret, to make phys_cursor_width
481 contain what its name suggests.
482 (notice_overwritten_cursor): Consider the cursor image erased if
483 the output area intersects the cursor image in y-direction.
484
485 * w32term.c (note_mode_line_or_margin_highlight): Renamed from
486 note_mode_line_highlight and extended.
487
488 * w32term.c (last_window): New variable.
489 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
490 (note_mouse_movement): Remove reimplemented code in #if 0.
491
492 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
493 not update_mode_lines, and always set it to 1.
494
495 2003-01-21 Jason Rumney <jasonr@gnu.org>
496
497 * w32fns.c (IDC_HAND): Define it if system headers don't.
498
499 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
500
501 * w32term.h (struct w32_output): New member hand_cursor.
502 (WM_EMACS_SETCURSOR): New message definition.
503
504 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
505 function w32_define_cursor.
506 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
507 position, change member name output_data.x to output_data.w32 and
508 add function w32_define_cursor.
509 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
510 and change member name output_data.x to output_data.w32.
511 (w32_initialize_display_info):
512 Setup dpyinfo->vertical_scroll_bar_cursor.
513
514 * w32fns.c (Vx_hand_shape): New variable.
515 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
516 WM_EMACS_SETCURSOR.
517 (x-create-frame): Setup Cursor types.
518
519 2003-01-21 David Ponce <david@dponce.com>
520
521 * w32term.c (w32_encode_char): For DIM=1 charset, set
522 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
523 x_encode_char change by Kenichi Handa <handa@m17n.org> on
524 2002-09-30.)
525 (w32_draw_relief_rect): Declare all args.
526 (w32_define_cursor): New.
527
528 * w32fns.c (w32_load_cursor): New function.
529 (w32_init_class): Use it.
530 (x_put_x_image): Declare all args.
531
532 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
533
534 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
535
536 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
537
538 * gtkutil.c: Must include stdio.h before termhooks.h
539
540 2003-01-21 Dave Love <fx@gnu.org>
541
542 * alloc.c (Fgc_status): Print zombie list.
543 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
544 Fix assignment of zombies.
545 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
546 Don't take car of non-cons.
547
548 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
549
550 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
551
552 2003-01-20 David Ponce <david@dponce.com>
553
554 * w32menu.c (digest_single_submenu): Declare all args.
555
556 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
557 changes in xmenu.c:
558
559 (parse_single_submenu): Use individual keymap's prompt
560 string as pane name, if there is one.
561 (set_frame_menubar): Save menu_items_n_panes from each call to
562 parse_single_submenu and use it when calling digest_single_submenu.
563
564 2003-01-20 Steven Tamm <steventamm@mac.com>
565
566 * macterm.c (XTread_socket): Checks for valid, visible window
567 before sending a scroll-wheel event.
568
569 2003-01-20 Richard M. Stallman <rms@gnu.org>
570
571 * xdisp.c (redisplay_window): If mini window's buffer is not
572 a minibuffer, then redisplay it like other windows.
573
574 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
575
576 * gtkutil.c (xg_create_frame_widgets): Check if there is an
577 external tool bar before setting tool bar height.
578
579 2003-01-19 Ja
580
581 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
582 (x_from_xcolors): Adjust RGB values for W32.
583 (image_background, image_background_transparent)
584 (postprocess_image, x_to_xcolors, x_disable_image)
585 (x_build_heuristic_mask): Adapt for W32 and enable.
586 (x_create_x_image_and_pixmap): Mark images with palettes as such.
587 (xbm_load): Remove unused variable.
588
589 2002-11-14 Richard M. Stallman <rms@gnu.org>
590
591 * buffer.c (syms_of_buffer): Doc fix.
592
593 2002-11-14 Dave Love <fx@gnu.org>
594
595 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
596
597 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
598 * xmenu.c (unuse_menu_items, digest_single_submenu):
599 * xfns.c (x_put_x_image):
600 * xdisp.c (message2_nolog, set_message):
601 * undo.c (record_point):
602 * terminfo.c (tparam):
603 * syntax.c (scan_sexps_forward):
604 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
605 * composite.c (update_compositions):
606 * cm.c (calccost, cmgoto):
607 * charset.c (c_string_width): Declare all args (per C99).
608
609 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
610
611 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
612 Don't declare.
613
614 * emacs.c (main) [!VMS]: Avoid third arg.
615
616 * fns.c (Fcopy_sequence): Doc fix.
617 (Fmap_char_table): Cast `call2'.
618
619 2002-11-14 Francesco Potorti` <pot@gnu.org>
620
621 * s/sol2-8.h: New file.
622
623 2002-11-14 Kim F. Storm <storm@cua.dk>
624
625 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
626 dependency on `risky-local-variable' and the :propertize form.
627
628 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
629
630 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
631
632 * syntax.c (scan_sexps_forward): Undo last patch.
633 Use a more obvious fix: check eob before updating the syntax table.
634
635 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
636
637 * syntax.c (scan_sexps_forward): Update syntax table before reading
638 a char rather than after so we don't update the table past eob.
639
640 2002-11-09 Dave Love <fx@gnu.org>
641
642 * buffer.c (Fset_buffer_major_mode): Fix last change.
643
644 * regex.c (regexec): Fix pmatch declaration.
645
646 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
647
648 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
649 to self-inserting characters.
650 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
651
652 * coding.c (Vtranslation_table_for_input): New.
653 (syms_of_coding): DEFVAR it.
654
655 2002-11-08 Juanma Barranquero <lektu@terra.es>
656
657 * w32term.c (w32_draw_fringe_bitmap): Remove unused variable window.
658
659 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
660
661 * process.c (Fformat_network_address): Remove unused locals p,
662 cp, and i.
663
664 2002-11-06 Dave Love <fx@gnu.org>
665
666 * buffer.c (Qset_buffer_major_mode_hook): New.
667 (Fset_buffer_major_mode): Use it.
668
669 2002-11-06 Richard M. Stallman <rms@gnu.org>
670
671 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
672 and stop_polling.
673
674 * process.c (wait_reading_process_input):
675 Test POLLING_PROBLEM_IN_SELECT, not hpux.
676 Avoid initialization for auto Lisp_Object var.
677
678 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
679
680 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
681
682 2002-11-05 Richard M. Stallman <rms@gnu.org>
683
684 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
685
686 * callint.c (Fcall_interactively): New local filter_specs.
687 (Fcall_interactively): Check for progn as well as let.
688 Add a gcpro.
689 (Qprogn): New variable.
690 (syms_of_callint): Staticpro and init Qprogn.
691
692 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
693
694 * lread.c (Feval_buffer): Doc fix.
695
696 2002-11-04 Dave Love <fx@gnu.org>
697
698 * keyboard.c (read_char): Always translate iff
699 Vkeyboard_translate_table is a char table and c is valid.
700
701 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
702 and fix C types.
703
704 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
705
706 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
707
708 * editfns.c (get_pos_property): Don't hardcode Qfield.
709
710 * keyboard.c (adjust_point_for_property): Handle `display' prop on
711 overlays. Also handle `invisible' prop.
712
713 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
714
715 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
716 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
717
718 2002-11-01 Andreas Schwab <schwab@suse.de>
719
720 * editfns.c (Fmessage): Revert last change to properly handle %%.
721
722 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
723
724 * xmenu.c (unuse_menu_items): New fun.
725 (menu_items_inuse): New var.
726 (syms_of_xmenu): Initialize it.
727 (init_menu_items): Use it to detect re-entrance.
728 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
729 (Fx_popup_menu): Remove spurious XSETFRAME.
730
731 * editfns.c (find_field): Make an exception for nil fields.
732
733 2002-11-01 Dave Love <fx@gnu.org>
734
735 * m/gec63.h: Deleted.
736
737 2002-10-31 Dave Love <fx@gnu.org>
738
739 * xterm.c (XTread_socket): Fix last change.
740 (xaw_scroll_callback): Cast call_data to long to avoid warning.
741
742 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
743
744 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
745
746 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
747
748 * editfns.c (overlays_around, get_pos_property): New funs.
749 (find_field): Use them.
750 Also be careful not to modify POS before its last use.
751 (Fmessage): Don't Fformat if there's nothing to format.
752
753 2002-10-30 Dave Love <fx@gnu.org>
754
755 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
756 [HAVE_PTY_H]; Include pty.h.
757
758 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
759
760 * xterm.c (Qeql): Declare.
761 (Vx_keysym_table): New.
762 (syms_of_xterm): Initialize it.
763 (XTread_socket): Use it. Deal with ASCII keysyms.
764 (XSetIMValues) [HAVE_X11R6]: Prototype.
765
766 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
767 (lispy_kana_keys): Comment out.
768 (make_lispy_event) [XK_kana_A]: Comment out.
769 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
770 Fix sprintf call.
771
772 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
773 regexp.h change).
774 (TERMINFO, LIBS_TERMCAP): Define.
775
776 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
777 (bcmp): Define conditional on HAVE_BCMP.
778 (NO_SIOCTL_H): Don't define.
779 (TIOCSIGSEND): Don't make conditional on IRIX6.
780
781 * s/sol2-5.h: Don't include strings.h.
782 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
783
784 * s/irix6-0.h (IRIX6): Don't define.
785 (bcopy, bcmp, bzero): Don't undef.
786
787 * s/irix6-5.h: Don't include strings.h.
788 (IRIX6): Don't define.
789 (bcopy, bcmp, bzero): Don't undef.
790
791 * syntax.c (Fforward_comment): Doc fix.
792
793 2002-10-29 Kim F. Storm <storm@cua.dk>
794
795 * process.c (Fsignal_process): Allow PROCESS to be specified by
796 name in addition to pid (as integer or string).
797
798 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
799
800 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
801 environments.
802
803 2002-10-27 Kim F. Storm <storm@cua.dk>
804
805 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
806
807 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
808
809 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
810
811 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
812
813 2002-10-26 Richard M. Stallman <rms@gnu.org>
814
815 * editfns.c (Fformat): Detect invalid format letters for floats.
816
817 2002-10-25 Kenichi Handa <handa@m17n.org>
818
819 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
820 (x_set_title): Likewise.
821
822 2002-10-25 Juanma Barranquero <lektu@terra.es>
823
824 * macgui.h:
825 * w32gui.h: Remove definition of XColor.
826
827 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
828
829 2002-10-24 Kim F. Storm <storm@cua.dk>
830
831 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
832 Callers changed (supply dummy arg).
833
834 * lisp.h (get_window_cursor_type): Update prototype.
835
836 * w32term.c (x_display_and_set_cursor): Get active_cursor from
837 get_window_cursor_type to track system caret.
838
839 2002-10-24 Kim F. Storm <storm@cua.dk>
840
841 * process.c (Fformat_network_address): New function.
842 (syms_of_process): Defsubr it.
843 (list_processes_1): Use it to format :local/:remote address if
844 service/host is not set; before emacs would crash in that case.
845 (Fmake_network_process): Don't use Ffind_operation_coding_system
846 to setup coding system if host or service is not set.
847
848 2002-10-23 Juanma Barranquero <lektu@terra.es>
849
850 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
851
852 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
853 COLORREF.
854
855 * macgui.h:
856 * w32gui.h: Add definition of XColor.
857
858 * macfns.c:
859 * w32fns.c:
860 * xfaces.c: Remove definition of XColor.
861
862 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
863
864 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
865
866 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
867 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
868 window if it is dedicated.
869 (Fshrink_window): Add preserve_before as was done for enlarge_window.
870 (Vspecial_display_function): Update docstring.
871
872 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
873 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
874 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
875
876 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
877
878 * casefiddle.c (casify_region): Don't treat a prefix char as part
879 of a word when at the beginning.
880
881 2002-10-17 Juanma Barranquero <lektu@terra.es>
882
883 * lread.c (syms_of_lread): Fix typos.
884
885 2002-10-17 Dave Love <fx@gnu.org>
886
887 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
888
889 2002-10-16 Richard M. Stallman <rms@gnu.org>
890
891 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
892
893 2002-10-14 Juanma Barranquero <lektu@terra.es>
894
895 * w16select.c (syms_of_win16select): Fix docstring for
896 `selection-coding-system'.
897
898 * w32select.c (syms_of_w32select): Likewise.
899
900 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
901
902 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
903 a backslash-quoted char.
904 (scan_lists, scan_sexps_forward): Pacify the compiler.
905
906 2002-10-13 Richard M. Stallman <rms@gnu.org>
907
908 * window.c (window_scroll): Set immediate_quit.
909
910 * print.c (print): When backquote form is the car of a list,
911 output in old style. Use old_backquote_output to output all
912 comma forms inside it in old style too.
913
914 * buffer.h (struct buffer): Move `undo_list' down below `name'.
915
916 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
917
918 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
919 batch mode).
920
921 * lread.c (Fload): Doc fix (load-suffixes).
922
923 2002-10-10 Steven Tamm <steventamm@mac.com>
924
925 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
926 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
927 Also switch the default to Qnil from Qt.
928
929 2002-10-08 Kenichi Handa <handa@m17n.org>
930
931 * coding.c (code_convert_region): When we need more GAP for
932 conversion, pay attention to the case that coding->produced is not
933 greater than coding->consumed.
934
935 2002-10-07 Richard M. Stallman <rms@gnu.org>
936
937 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
938
939 2002-10-06 Andrew Choi <akochoi@shaw.ca>
940
941 * macmenu.c (mac_menu_show): Add j to count menu items; match
942 menu_item_selection to it to find selected item.
943
944 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
945
946 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
947 cases. The correct fix is to pass ReparentNotify to Xt.
948 The shell widget interprets ConfigureNotify differently depending
949 on if it has been reparented or not.
950
951 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
952
953 * editfns.c (Fformat_time_string): Doc fix.
954
955 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
956
957 * fns.c (Flength): Doc fix.
958
959 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
960
961 * keyboard.c (keyremap): New struct.
962 (read_key_sequence): Use it: globally replace keytran_foo with
963 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
964 keytran_next and fkey_next to just `next'.
965
966 2002-10-04 Steven Tamm <steventamm@mac.com>
967
968 * macterm.c (keycode_to_xkeysym_table): Change return to be
969 treated like an X keysym.
970
971 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
972
973 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
974 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
975 This is to also handle x/y changes that occur because of a resize.
976
977 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
978
979 * frame.c (Vdelete_frame_functions): New variable.
980 (syms_of_frame): Initialize and defvar it.
981 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
982 it when frame's `tooltip' parameter is non-nil.
983
984 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
985
986 * w32fns.c (x_create_tip_frame): Likewise.
987
988 * macfns.c (x_create_tip_frame): Likewise.
989
990 2002-09-30 Kenichi Handa <handa@m17n.org>
991
992 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
993 -1 before calling ccl_driver.
994
995 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
996 Only when it is non-nil, handle composition sequence.
997 (setup_coding_system) <0>: Don't force composition handling.
998
999 * Makefile.in (lisp, shortlisp): Add utf-16.elc
1000
1001 2002-09-29 Richard M. Stallman <rms@gnu.org>
1002
1003 * search.c (Freplace_match): Adjust match data for the substitution
1004 just made in the buffer.
1005
1006 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
1007 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
1008
1009 2002-09-27 Richard M. Stallman <rms@gnu.org>
1010
1011 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
1012 (read_char): Use them. Do all exits thru the end of the function.
1013
1014 2002-09-27 Kenichi Handa <handa@etl.go.jp>
1015
1016 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
1017 is nil.
1018
1019 2002-09-26 Richard M. Stallman <rms@gnu.org>
1020
1021 * regex.h (__restrict_arr): Don't define if already defined.
1022
1023 * coding.c (run_pre_post_conversion_on_str):
1024 Save and restore Vdeactivate_mark.
1025
1026 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
1027
1028 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
1029
1030 2002-09-26 Kenichi Handa <handa@etl.go.jp>
1031
1032 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
1033 nonzero, try face's family at first. Otherwise try FAMILY at first.
1034 (choose_face_font): If C is a single byte char or latin-1, call
1035 try_font_list with PREFER_FACE_FAMILY 1.
1036
1037 2002-09-21 Richard M. Stallman <rms@gnu.org>
1038
1039 * window.c (select_window_1): Don't select frame.
1040 Set frame's selected window only when frame itself is selected.
1041 (Fselect_window): Doc fix.
1042
1043 2002-09-18 Kim F. Storm <storm@cua.dk>
1044
1045 * process.c (make-network-process): Doc fix (there is no
1046 network-server-log-function hook).
1047
1048 2002-09-18 Richard M. Stallman <rms@gnu.org>
1049
1050 * print.c (print): Clear out the unused parts of Vprint_number_table.
1051 (syms_of_print): Doc fix for `print-number-table'.
1052
1053 * unexelf.c (unexec): Undo previous change.
1054
1055 2002-09-17 Andreas Schwab <schwab@suse.de>
1056
1057 * m/alpha.h [LINUX]: Don't define DATA_START.
1058
1059 2002-09-16 Dave Love <fx@gnu.org>
1060
1061 * unexelf.c (unexec): Deal with .got, reinstating change from
1062 25-08-1999.
1063
1064 2002-09-13 Richard M. Stallman <rms@gnu.org>
1065
1066 * s/sol2-6.h (UNEXEC): Comment out definition.
1067
1068 * unexsol.c (unexec): Don't downcase first letter of error msg.
1069
1070 * xfaces.c (Fcolor_supported_p): Just one arg is required.
1071
1072 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
1073
1074 * unexsol.c: Include buffer.h, charset.h, coding.h.
1075
1076 2002-09-11 Richard M. Stallman <rms@gnu.org>
1077
1078 * unexsol.c: Don't use report_file_error; do it by hand
1079 using dlerror.
1080
1081 * process.c (wait_reading_process_input, both versions):
1082 Before calling turn_on_atimers, call stop_polling.
1083
1084 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
1085
1086 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
1087 we go to too_near_end, call clear_glyph_matrix.
1088 (redisplay_window): After make_cursor_line_fully_visible,
1089 call clear_glyph_matrix and bypass `goto done'.
1090
1091 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
1092 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
1093
1094 2002-09-10 Richard M. Stallman <rms@gnu.org>
1095
1096 * fileio.c (Fdo_auto_save): Catch error making directory.
1097 Only call push_message if we need to.
1098 At the same time, make an unwind-protect to pop it.
1099 Rename local message_p to old_message_p.
1100 (do_auto_save_make_dir, do_auto_save_eh): New functions.
1101 (do_auto_save_unwind): Don't call pop_message.
1102
1103 local_request 1.
1104 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
1105
1106 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
1107
1108 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
1109
1110 2002-08-13 Richard M. Stallman <rms@gnu.org>
1111
1112 * minibuf.c (Fminibufferp): New function.
1113 (syms_of_minibuf): Defsubr it.
1114 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
1115
1116 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
1117
1118 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
1119
1120 2002-08-12 Richard M. Stallman <rms@gnu.org>
1121
1122 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
1123 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
1124 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
1125 already.
1126
1127 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
1128
1129 2002-08-11 Andrew Choi <akochoi@shaw.ca>
1130
1131 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
1132 (Vmac_pass_command_to_system): New variable.
1133 (Vmac_pass_control_to_system): New variable.
1134 (do_mouse_moved): Check wp with is_emacs_window.
1135 (XTread_socket): Check window_ptr with is_emacs_window.
1136 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
1137 events back to Mac Toolbox for processing, depending on values of
1138 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
1139 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
1140 Vmac_pass_control_to_system.
1141
1142 2002-08-10 Kenichi Handa <handa@etl.go.jp>
1143
1144 * coding.c (unencodable_char_position): New function.
1145 (Funencodable_char_position): New function.
1146 (syms_of_coding): Defsubr Funencodable_char_position.
1147
1148 2002-08-10 Andrew Choi <akochoi@shaw.ca>
1149
1150 * mac.c (sys_select) [MAC_OSX]: New function.
1151
1152 * macterm.c (MakeMeTheFrontProcess): New function.
1153 (mac_initialize): Call MakeMeTheFrontProcess.
1154
1155 * s/darwin.h: Define select to sys_select.
1156
1157 2002-08-09 Richard M. Stallman <rms@gnu.org>
1158
1159 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
1160
1161 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
1162
1163 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
1164 end of the buffer.
1165
1166 2002-08-08 Ken Raeburn <raeburn@mit.edu>
1167
1168 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
1169
1170 * puresize.h (BASE_PURESIZE): Increase to 910000.
1171
1172 2002-08-08 Kenichi Handa <handa@etl.go.jp>
1173
1174 * coding.c (Ffind_operation_coding_system): For write-region, if
1175 VISIT is a filename, make it the target.
1176
1177 2002-08-07 Richard M. Stallman <rms@gnu.org>
1178
1179 * alloc.c (mark_object): Detect long lists for debugging.
1180 (mark_object_loop_halt): New variable.
1181
1182 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
1183
1184 * data.c (Fmake_variable_frame_local): Doc fix.
1185
1186 2002-08-01 David Ponce <david@dponce.com>
1187
1188 * w32menu.c (local_heap, local_alloc, local_free): New macros.
1189 (malloc_widget_value, free_widget_value)
1190 (w32_free_submenu_strings): Use them.
1191
1192 (push_submenu_start, push_submenu_end, push_left_right_boundary)
1193 (push_menu_pane, push_menu_item, single_keymap_panes)
1194 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
1195 (single_submenu, set_frame_menubar)
1196 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
1197
1198 (Fx_popup_menu): Don't show pop up menu until preceding one is
1199 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
1200
1201 * w32menu.c: Changes adapted from xmenu.c
1202 (set_frame_menubar): First parse all submenus,
1203 then make widget_value trees from them.
1204 Don't allocate any widget_value objects
1205 until we are done with the parsing.
1206 (parse_single_submenu): New function.
1207 (digest_single_submenu): New function.
1208 (single_submenu): Function deleted, replaced by those two.
1209
1210 2002-08-04 Andrew Choi <akochoi@shaw.ca>
1211
1212 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
1213 returns a valid window pointer before proceeding for keyDown and
1214 autoKey events.
1215
1216 2002-08-03 Andrew Choi <akochoi@shaw.ca>
1217
1218 * macterm.c (USE_CARBON_EVENTS): New macro.
1219 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
1220 (x_iconify_frame): Call CollapseWindow.
1221 (Vmac_reverse_ctrl_meta): New variable.
1222 (Vmac_wheel_button_is_mouse_2): New variable.
1223 (init_mac_drag_n_drop): New function.
1224 (mac_do_receive_drag): New function.
1225 (mac_handle_service_event): New function.
1226 (init_service_handler): New function.
1227 (mac_to_emacs_modifiers): New function.
1228 (mac_event_to_emacs_modifiers): New function.
1229 (mac_get_mouse_btn): New function.
1230 (mac_convert_event_ref): New function.
1231 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
1232 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
1233 mac_get_mouse_btn.
1234 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
1235
1236 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
1237 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
1238 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
1239 TOOL_BAR_EVENT for MAC_OS as well.
1240 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
1241 as for WINDOWS_NT.
1242 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
1243
1244 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
1245
1246 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
1247
1248 * xdisp.c (forward_to_next_line_start): Fix a condition that
1249 lead to a newline being skipped.
1250
1251 2002-08-02 Andrew Choi <akochoi@shaw.ca>
1252
1253 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
1254
1255 2002-08-01 Richard M. Stallman <rms@gnu.org>
1256
1257 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
1258
1259 2002-07-31 Andrew Choi <akochoi@shaw.ca>
1260
1261 * macfns.c: #undef init_process before #define-ing it.
1262
1263 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
1264 HAVE_CARBON is defined.
1265
1266 2002-07-31 Richard M. Stallman <rms@gnu.org>
1267
1268 * xmenu.c (set_frame_menubar): First parse all submenus,
1269 then make widget_value trees from them.
1270 Don't allocate any widget_value objects
1271 until we are done with the parsing.
1272 (parse_single_submenu): New function.
1273 (digest_single_submenu): New function.
1274 (single_submenu): Function deleted, replaced by those two.
1275
1276 2002-07-30 Juanma Barranquero <lektu@terra.es>
1277
1278 * w32proc.c (syms_of_ntproc): Fix docstring of
1279 `w32-get-true-file-attributes'.
1280
1281 2002-07-28 Richard M. Stallman <rms@gnu.org>
1282
1283 * s/hpux8.h (HPUX8): Define this before including hpux.h.
1284 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
1285
1286 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
1287
1288 * keyboard.c (make_lispy_event):
1289 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
1290 Explicitly clear up_modifier in event->modifiers.
1291
1292 2002-07-27 Richard M. Stallman <rms@gnu.org>
1293
1294 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
1295
1296 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
1297 for bar cursor.
1298
1299 2002-07-26 Kenichi Handa <handa@etl.go.jp>
1300
1301 * coding.c (detect_coding_iso2022): While checking a byte sequence
1302 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
1303 it in the normal loop.
1304
1305 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
1306
1307 * xterm.c (expose_overlaps): New function.
1308 (expose_window): Use it to fix the display of overlapping rows.
1309
1310 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
1311
1312 2002-07-23 Ken Raeburn <raeburn@gnu.org>
1313
1314 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
1315 since it only depends on XUINT.
1316
1317 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
1318 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
1319 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
1320 Macros deleted.
1321
1322 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
1323 its value over other approaches.
1324 * sysdep.c (start_of_data): Don't define the function if a macro
1325 form has been defined.
1326
1327 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
1328
1329 * xdisp.c (redisplay_updating_p): New variable.
1330 (init_iterator): Don't free realized faces when
1331 redisplay_updating_p is set.
1332 (redisplay_internal): Set redisplay_updating_p while updating
1333 the display.
1334
1335 2002-07-23 Richard M. Stallman <rms@gnu.org>
1336
1337 * editfns.c (Fmessage): Treat "" like nil.
1338
1339 2002-07-23 Kenichi Handa <handa@etl.go.jp>
1340
1341 * xdisp.c (face_before_or_after_it_pos):
1342 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
1343
1344 2002-07-22 Juanma Barranquero <lektu@terra.es>
1345
1346 * callproc.c (init_callproc) [DOS_NT]:
1347 Initialize Vshared_game_score_directory to nil.
1348 (syms_of_callproc) [DOS_NT]: Likewise.
1349
1350 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
1351
1352 * xdisp.c (display_line): Replace an abort with xassert.
1353
1354 2002-07-21 Richard M. Stallman <rms@gnu.org>
1355
1356 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
1357 and END_UNCHANGED when setting buffer_unchanged_p.
1358 Use current_matrix_up_to_date_p to decide whether to use
1359 try_cursor_movement.
1360
1361 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
1362
1363 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
1364
1365 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
1366 Set to nil if dir does not exist.
1367 (syms_of_callproc): Init unconditionally and simply.
1368
1369 * buffer.c (Fbuffer_list): Doc fix.
1370
1371 2002-07-21 Ken Raeburn <raeburn@gnu.org>
1372
1373 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
1374
1375 * buffer.c (mmap_realloc): When shrinking, make sure number of
1376 pages to unmap is rounded towards zero.
1377
1378 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
1379 (XSETINT): Deleted.
1380
1381 * m/att3b.h (XINT): Don't define.
1382 (VALBITS, VALMASK, XTYPE): Deleted.
1383 (DATA_SEG_BITS): Define.
1384 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
1385 ARRAY_MARK_FLAG): Deleted.
1386 (DATA_SEG_BITS): Define.
1387 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
1388 (DATA_SEG_BITS): Define.
1389
1390 2002-07-20 Richard M. Stallman <rms@gnu.org>
1391
1392 * print.c (print_error_message): New args CONTEXT and CALLER.
1393 Calls changed.
1394
1395 * lisp.h (print_error_message): Declare new args.
1396
1397 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
1398 and CONTEXT to print_error_message, don't print them here.
1399 For a Quit, don't use Vsignaling_function.
1400 Call message_log_maybe_newline.
1401
1402 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
1403
1404 2002-07-20 Kim F. Storm <storm@cua.dk>
1405
1406 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
1407
1408 2002-07-19 Ken Raeburn <raeburn@gnu.org>
1409
1410 * bytecode.c (struct byte_stack): Pointers into byte string now
1411 point to const.
1412 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
1413 const.
1414 * charset.h (BCOPY_SHORT): Source pointer now points to const.
1415 * coding.c (encode_eol, detect_coding, detect_eol):
1416 (decode_coding, encode_coding, detect_coding_system):
1417 Source strings now treated as const.
1418 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
1419 modify Lisp string contents.
1420 * coding.h (decode_coding, encode_coding, detect_coding,
1421 detect_eol): Declarations updated.
1422 * composite.c (compose_chars_in_text): Treat Lisp string contents
1423 as const.
1424 * dispnew.c (safe_bcopy): Source pointer now points to const.
1425 * lisp.h (STRING_COPYIN): New macro.
1426 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
1427 (internal_with_output_to_temp_buffer): Declarations updated.
1428 * print.c (temp_output_buffer_setup):
1429 (internal_with_output_to_temp_buffer): Buffer name argument is now
1430 pointer to const.
1431 * sound.c (struct sound_device): Function pointer field "write"
1432 buffer argument now points to const.
1433 (vox_write): Buffer argument points to const.
1434 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
1435 contents as const.
1436 * sysdep.c (emacs_write): Buffer pointer now const.
1437 * term.c (encode_terminal_code): Buffer pointer now const.
1438 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
1439 (x_face_list_fonts, x_update_menu_appearance):
1440 (hash_string_case_insensitive): Treat Lisp string contents as const.
1441
1442 2002-07-19 Juanma Barranquero <lektu@terra.es>
1443
1444 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
1445 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
1446
1447 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
1448
1449 * fileio.c (syms_of_fileio): Likewise.
1450
1451 2002-07-18 Richard M. Stallman <rms@gnu.org>
1452
1453 * data.c (Fdefalias): Doc fix.
1454
1455 2002-07-17 Dave Love <fx@gnu.org>
1456
1457 * intervals.h (text_property_stickiness): Use P_.
1458
1459 * ccl.c: Remove `emacs' conditionals.
1460 (ccl_backtrace_table): Fix size spec.
1461 (ccl_driver): Fix type errors.
1462
1463 2002-07-16 Ken Raeburn <raeburn@gnu.org>
1464
1465 * alloc.c (xstrdup, make_string, make_unibyte_string)
1466 (make_multibyte_string, build_string): String pointer args now
1467 point to const.
1468 * charset.c (find_charset_in_text, c_string_width):
1469 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
1470 * fileio.c (report_file_error):
1471 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
1472 (count_combining_before, count_combining_after, insert_1_both):
1473 (insert, insert_and_inherit, insert_string):
1474 (insert_before_markers, insert_before_markers_and_inherit):
1475 * lread.c (intern, oblookup, hash_string):
1476 * minibuf.c (temp_echo_area_glyphs):
1477 * search.c (fast_c_string_match_ignore_case):
1478 * sysdep.c (emacs_open, set_file_times):
1479 * xfaces.c (xstricmp):
1480 * xdisp.c (store_frame_title, string_char_and_length):
1481 (message_dolog, message2, message2_nolog, set_message): Likewise.
1482 (set_message_1): Cast message string argument to const pointer.
1483 * editfns.c (general_insert_function): Insertion function now
1484 takes pointer to const for input data.
1485 * charset.h (find_charset_in_text, c_string_width):
1486 (parse_str_as_multibyte): Declarations updated.
1487 * dispextern.h (xstricmp): Declaration updated.
1488 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
1489 (count_size_as_multibyte, count_combining_before):
1490 (count_combining_after, insert_1, insert_1_both, message_dolog):
1491 (insert, insert_and_inherit, insert_before_markers)
1492 (insert_before_markers_and_inherit, set_message, message2):
1493 (message2_dolog, build_string, make_string, make_unibyte_string):
1494 (make_multibyte_string, intern, oblookup, report_file_error):
1495 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
1496 (emacs_open, xstrdup): Declarations updated.
1497 * systime.h (set_file_times): Declaration updated.
1498
1499 * charset.c (find_charset_in_text, lisp_string_width): Use const
1500 for pointer to lisp string data.
1501 * charset.h (FETCH_STRING_CHAR_ADVANCE):
1502 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
1503 * coding.c (Ffind_coding_systems_region_interval):
1504 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
1505 (Fmake_directory_internal, Fdelete_directory):
1506 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
1507 * fontset.c (font_family_registry, fs_query_fontset):
1508 (list_fontsets):
1509 * frame.c (Fframe_parameter):
1510 * keyboard.c (cmd_error_internal):
1511 * keymap.c (Fdescribe_buffer_bindings):
1512 * lread.c (complete_filename_p, openp):
1513 * minibuf.c (Fminibuffer_complete_word):
1514 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
1515 (face_before_or_after_it_pos, next_element_from_string):
1516 (get_overlay_arrow_glyph_row, display_mode_element):
1517 (decode_mode_spec_coding):
1518 * xterm.c (same_x_server): Likewise.
1519
1520 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
1521 settings of non-existent fields.
1522
1523 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
1524 copy a lisp value.
1525
1526 * lread.c (Fintern_soft): Use string macros instead of
1527 Lisp_String fields.
1528 * keyboard.c (echo_char, parse_modifiers_uncached):
1529 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
1530 * textprop.c (validate_interval_range, interval_of): Likewise.
1531
1532 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
1533
1534 * charset.h (FETCH_STRING_CHAR_ADVANCE)
1535 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
1536 XSTRING()->size_byte.
1537
1538 * lisp.h (SDATA, SREF): Produce rvalue.
1539 (SSET): New macro.
1540 * alloc.c (make_event_array): Use SSET for storing into a string.
1541 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
1542 a string.
1543 * casefiddle.c (casify_object): Use SSET.
1544 * charset.h (FETCH_STRING_CHAR_ADVANCE)
1545 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
1546 address of string contents.
1547 * data.c (Faref): Use SDATA.
1548 (Faset): Use SDATA, SSET.
1549 * dired.c (directory_files_internal): Use SSET.
1550 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
1551 (Fread_file_name): Use SREF, SSET.
1552 * fns.c (concat): Use SSET.
1553 (concat, Fdelete): Use SDATA.
1554 * insdel.c (insert_from_string_1): Use SDATA.
1555 * keyboard.c (Fevent_convert_list): Use SREF.
1556 * lread.c (Fload): Use SDATA, SSET.
1557 * macfns.c (validate_x_resource_name): Use SSET.
1558 * process.c (status_message): Use SSET.
1559 * search.c (wordify): Use SDATA.
1560 (Freplace_match): Use SREF.
1561 * w32fns.c (validate_x_resource_name): Use SSET.
1562 * xfns.c (validate_x_resource_name): Use SSET.
1563 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
1564
1565 2002-07-16 Richard M. Stallman <rms@gnu.org>
1566
1567 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
1568
1569 * xdisp.c (reconsider_clip_changes):
1570 Don't test prevent_redisplay_optimizations_p.
1571 (redisplay_internal): Test prevent_redisplay_optimizations_p
1572 along with clip_changed in some cases.
1573 (try_window_id): Likewise.
1574 (redisplay_window): New local var buffer_unchanged_p.
1575
1576 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
1577
1578 * process.c (create_process): Test USG_SUBTTY_WORKS.
1579 (process_send_signal): Clean up handling of GID.
1580 Detect errors in ioctls meant to set GID.
1581
1582 * window.c (temp_output_buffer_show):
1583 Don't set prevent_redisplay_optimizations_p.
1584
1585 2002-07-15 Juanma Barranquero <lektu@terra.es>
1586
1587 * eval.c (Fdefvaralias): Add docstring argument.
1588
1589 2002-07-15 Ken Raeburn <raeburn@gnu.org>
1590
1591 * lisp.h (STRING_INTERVALS): Produce rvalue.
1592 (STRING_SET_INTERVALS): New macro.
1593 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
1594 * fns.c (Fstring_as_multibyte): Likewise.
1595 * intervals.c (balance_possible_root_interval, delete_interval)
1596 (create_root_interval, copy_intervals_to_string): Likewise.
1597 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
1598 instead of 0.
1599
1600 2002-07-14 Ken Raeburn <raeburn@gnu.org>
1601
1602 * lisp.h (STRING_SET_CHARS): New macro.
1603 (SCHARS, SBYTES): Produce rvalues.
1604 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
1605 * fns.c (concat): Likewise.
1606 * lread.c (read_vector): Likewise.
1607
1608 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
1609 (STRING_SET_UNIBYTE): New macro.
1610 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
1611 length of -1) changed to use STRING_SET_UNIBYTE.
1612 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1613 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
1614 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
1615 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
1616 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
1617 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
1618 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
1619 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
1620 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1621 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
1622 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
1623 STRING_BYTES or indirection changed to SCHARS, SBYTES,
1624 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
1625 unchanged for now.
1626
1627 2002-07-13 Kim F. Storm <storm@cua.dk>
1628
1629 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
1630
1631 2002-07-12 Richard M. Stallman <rms@gnu.org>
1632
1633 * fileio.c (Fwrite_region): Doc fix.
1634
1635 * print.c (print_error_message): Don't handle Vsignaling_function here.
1636
1637 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
1638 (command_loop_1): Avoid certain actions after memory-full error.
1639
1640 * eval.c (Fsignal): Don't call cancel_hourglass.
1641 For a memory-full error, don't call Vsignal_hook_function
1642 and don't set Vsignaling_function.
1643
1644 * process.c (process_send_signal): Add abort call.
1645
1646 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
1647
1648 * keymap.c (Fkey_binding): Fix typo.
1649
1650 2002-07-11 Richard M. Stallman <rms@gnu.org>
1651
1652 * alloc.c (Vmemory_full): New variable.
1653 (Vmemory_signal_data): Renamed from memory_signal_data.
1654 Uses changed.
1655 (syms_of_alloc): Defvar them.
1656 (memory_full, buffer_memory_full): Set Vmemory_full.
1657
1658 * lisp.h (Vmemory_full): Add declaration.
1659 (current_column, indented_beyond_p): Change declaration.
1660
1661 * indent.c (last_known_column): Declare as double, not float.
1662 (current_column, current_column_1, string_display_width)
1663 (position_indentation): Return `double'.
1664 (indented_beyond_p): Arg `column' is `double'. Callers changed.
1665
1666 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
1667 (back_to_previous_visible_line_start)
1668 (reseat_at_next_visible_line_start, next_element_from_buffer):
1669 Use `double', not `float', when calling indented_beyond_p.
1670
1671 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
1672
1673 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
1674
1675 2002-07-11 Juanma Barranquero <lektu@terra.es>
1676
1677 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
1678 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
1679 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
1680 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
1681 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
1682 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
1683
1684 2002-07-10 Juanma Barranquero <lektu@terra.es>
1685
1686 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
1687 changed.
1688
1689 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
1690
1691 * data.c (Fdefalias): Add an optional `docstring' argument.
1692 (set_internal, Fsetq_default): Use XCAR/XCDR.
1693
1694 * composite.c (HASH_VALUE, HASH_KEY):
1695 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
1696
1697 2002-07-09 Kenichi Handa <handa@etl.go.jp>
1698
1699 * callproc.c (Fcall_process): Fix previous change.
1700
1701 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
1702
1703 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1704 Add support for hash-tables.
1705 (Ftry_completion): Return t even if the string appears multiple times.
1706
1707 * fns.c (Fnconc): Use XCDR.
1708 (Fprovide): Use CONSP and XCDR.
1709 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
1710 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
1711 (Fmake_hash_table): Accept `:size nil'.
1712 (Fmakehash): Delete: moved to subr.el.
1713 (syms_of_fns): Don't defsubr makehash.
1714
1715 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
1716 (HASH_TABLE_SIZE): Move from fns.c.
1717
1718 2002-07-07 Richard M. Stallman <rms@gnu.org>
1719
1720 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
1721 Instead just return 0 when there is something to be done.
1722 (try_scrolling): If make_cursor_line_fully_visible returns 0,
1723 retry scrolling as if cursor were off the bottom.
1724 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
1725 return CURSOR_MOVEMENT_MUST_SCROLL.
1726 (redisplay_window): If make_cursor_line_fully_visible returns 0,
1727 go to try_to_scroll.
1728
1729 * buffer.c (Fbuffer_local_value): Store current value into its binding
1730 so we get the up-to-date value for the binding that is loaded.
1731
1732 * eval.c (Fdefmacro): Doc fix.
1733
1734 2002-07-05 Dave Love <fx@gnu.org>
1735
1736 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
1737 correctly.
1738
1739 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
1740 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
1741 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
1742 CCL_LookupCharConstTbl.
1743 (syms_of_ccl): Defvar translation-hash-table-vector.
1744
1745 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1746
1747 * xdisp.c: Remove unused variable `face'.
1748
1749 2002-07-04 Juanma Barranquero <lektu@terra.es>
1750
1751 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
1752 obsolescence information.
1753
1754 2002-07-03 Andrew Choi <akochoi@shaw.ca>
1755
1756 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
1757 pattern. Search cache first.
1758 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
1759 for Japanese font.
1760 (XLoadQueryFont): Use it.
1761
1762 2002-07-02 Richard M. Stallman <rms@gnu.org>
1763
1764 * keymap.c (Fdefine_key): Doc fix.
1765
1766 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
1767
1768 2002-07-02 Juanma Barranquero <lektu@terra.es>
1769
1770 * keymap.c (syms_of_keymap): Fix typo.
1771
1772 2002-07-01 Andrew Choi <akochoi@shaw.ca>
1773
1774 * s/darwin.h: Define POSIX_SIGNALS.
1775
1776 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
1777 and FSRefMakePath to convert FSSpec returned with Apple Event to
1778 Posix pathname.
1779 (mac_initialize) [TARGET_API_MAC_CARBON]:
1780 Call init_required_apple_events and disable the `Quit' menu item
1781 provided automatically by the Carbon Toolbox.
1782
1783 2002-07-01 Dave Love <fx@gnu.org>
1784
1785 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
1786 for K&R.
1787
1788 * xterm.c: Fix prototype for K&R.
1789
1790 * term.c (costs_set): Declare static, non-initialized for pcc.
1791
1792 2002-07-01 Richard M. Stallman <rms@gnu.org>
1793
1794 * keyboard.c (timer_last_idleness_start_time): New variable.
1795 (timer_start_idle): Set that.
1796 (read_key_sequence): Use that to reset timer_idleness_start_time
1797 to previous value.
1798
1799 * window.c (Frecenter): With arg, set optional_new_start.
1800
1801 * xdisp.c (redisplay_internal): Make optional_new_start really work.
1802
1803 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
1804 buffer for completion.
1805
1806 2002-06-29 Ken Raeburn <raeburn@gnu.org>
1807
1808 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
1809
1810 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1811
1812 * keyboard.c (readable_filtered_events): New function that filters
1813 FOCUS_IN_EVENT depending on parameter.
1814 (readable_events): Calls readable_filtered_events, not filtering
1815 FOCUS_IN_EVENT.
1816 (get_filtered_input_pending): New function, filtering parameter passed
1817 to readable_filtered_events.
1818 (get_input_pending): Calls get_filtered_input_pending, not filtering
1819 FOCUS_IN_EVENT.
1820 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
1821 FOCUS_IN_EVENT.
1822
1823 * xterm.h (struct x_output): Add focus_state.
1824
1825 * xterm.c (x_focus_changed): New function.
1826 (x_detect_focus_change): New function.
1827 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
1828 EnterNotify and LeaveNotify to track X focus changes.
1829
1830 2002-06-28 Andreas Schwab <schwab@suse.de>
1831
1832 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
1833
1834 2002-06-27 Kim F. Storm <storm@cua.dk>
1835
1836 * xdisp.c: (mode_line_string_list, mode_line_string_face)
1837 (mode_line_string_face_prop): New variables.
1838 (store_mode_line_string): New function.
1839 (display_mode_element): Use store_mode_line_string to
1840 add mode-line string elements to mode_line_string_list
1841 when mode_line_string_list is non-nil.
1842 (Fformat_mode_line): Now returns propertized string by
1843 default. New arg NO-PROPS to ignore properties.
1844 (decode_mode_spec): Only add two dashes for %- in propertized
1845 mode-line string.
1846 (syms_of_xdisp): Init and staticpro mode_line_string_list.
1847
1848 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
1849
1850 * minibuf.c (minibuffer_completion_contents): Add return type.
1851
1852 2002-06-27 Juanma Barranquero <lektu@terra.es>
1853
1854 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
1855
1856 2002-06-26 Juanma Barranquero <lektu@terra.es>
1857
1858 * fileio.c (read_file_name_cleanup): Add missing return.
1859
1860 2002-06-26 Richard M. Stallman <rms@gnu.org>
1861
1862 * window.c (Frecenter): Don't set force_start flag.
1863
1864 * minibuf.c (do_completion, Fminibuffer_complete_word)
1865 (Fminibuffer_completion_help): Complete just the text before point.
1866 (minibuffer_completion_contents): New function.
1867
1868 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
1869
1870 * frame.c (frames_bury_buffer): Function deleted.
1871
1872 2002-06-25 Miles Bader <miles@gnu.org>
1873
1874 * callint.c (Fcall_interactively): When checking to see if doprnt hit
1875 the end of callint_message, allow for a terminating '\0'.
1876
1877 2002-06-24 Juanma Barranquero <lektu@terra.es>
1878
1879 * w32select.c: Include composite.h
1880
1881 * w16select.c: Likewise.
1882
1883 2002-06-24 Kenichi Handa <handa@etl.go.jp>
1884
1885 * callproc.c (Fcall_process): If code detection is necessary,
1886 call detect_coding directly here.
1887
1888 * coding.c (detect_eol): Preserve coding->cmp_data.
1889
1890 * w16select.c (Fw16_get_clipboard_data):
1891 * w32fns.c (w32_to_x_font):
1892 * w32select.c (Fw32_get_clipboard_data):
1893 * xselect.c (selection_data_to_lisp_data):
1894 * xterm.c (XTread_socket): Disable composition handling.
1895
1896 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
1897
1898 * print.c (temp_output_buffer_setup): Kill all local variables.
1899
1900 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
1901
1902 * lread.c (Fread): Remove redundant and imprecise declaration.
1903
1904 * xfns.c (check_x_display_info): Use check_x_frame.
1905
1906 * .gdbinit (xprintsym): Use the new `xname' field.
1907 (xsymbol): Use it.
1908
1909 2002-06-22 Jason Rumney <jasonr@gnu.org>
1910
1911 * w32fns.c (file_dialog_callback): New function.
1912 (Fx_file_dialog): Allow selecting directories as well as files.
1913
1914 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1915
1916 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
1917 OpenBSD. Add support for mipseb-*-netbsd* machines.
1918
1919 2002-06-17 Andrew Choi <akochoi@shaw.ca>
1920
1921 * macterm.c (mac_scroll_area): Set foreground and backcolor to
1922 black and white before scrolling. Restore frame background and
1923 foreground color after scrolling.
1924 (do_window_update): Call XClearWindow before calling expose_frame.
1925 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
1926 FRAME_FOREGROUND_PIXEL of frame.
1927
1928 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1929 test Mac command key as <ALT> key.
1930
1931 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
1932
1933 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
1934
1935 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
1936 Lookup keys in function-key-map immediately so that key-translation-map
1937 can be applied earlier.
1938 Remove function_key_possible and key_translation_possible, replaced
1939 by checking `keytran_start < t'.
1940
1941 * .gdbinit (xsymbol): Use the new `xname' field.
1942
1943 2002-06-17 Andrew Choi <akochoi@shaw.ca>
1944
1945 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1946 test Mac command key as <ALT> key.
1947
1948 * mac.c (do_applescript): Call initialize_applescript if necessary
1949 when first called. Dispose of result_desc only when there is no error.
1950 (Fdo_applescript): Use %d format specifier instead of %ld.
1951
1952 2002-06-16 Andrew Choi <akochoi@shaw.ca>
1953
1954 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
1955 of FrontWindow for cases keyDown and autoKey.
1956
1957 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
1958 Vdefault_fontset to Monaco with mac-roman coding.
1959
1960 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
1961 init_process before and after inclusion of Carbon/Carbon.h, resp.
1962
1963 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
1964 cursor_gc.
1965 (add_font_name_table_entry): New function.
1966 (init_font_name_table): Use add_font_name_table_entry; add italic,
1967 bold, and bold-italic entries for truetype fonts.
1968
1969 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
1970 for Mac too.
1971 (try_font_list) [MAC_OS]: If no font matches given registry, try
1972 fonts with any registry matching face_family.
1973 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
1974
1975 * s/darwin.h: If autoconf detects the Ncurses library, define
1976 LIBS_TERMCAP to -lncurses to use it.
1977
1978 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
1979
1980 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
1981
1982 2002-06-15 Richard M. Stallman <rms@gnu.org>
1983
1984 * window.c (Fset_window_configuration): Explicitly preserve
1985 the point value that new_current_buffer had at the start.
1986
1987 2002-06-14 Juanma Barranquero <lektu@terra.es>
1988
1989 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
1990 Fix typos.
1991
1992 2002-06-14 Kim F. Storm <storm@cua.dk>
1993
1994 * insdel.c (insert_1_both, insert_from_string_1)
1995 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
1996 insert happened in the end_unchanged region. Otherwise, the
1997 redisplay may be confused and duplicate the last line in the
1998 buffer [seen after save-buffer when require-final-newline==t].
1999
2000 2002-06-13 Jason Rumney <jasonr@gnu.org>
2001
2002 * w32.c (init_environment): Remove EMACSLOCKDIR.
2003 (stat): Swap _S_IFDIR and _S_IFREG.
2004
2005 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2006
2007 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
2008 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
2009 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
2010 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
2011 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
2012 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
2013 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
2014 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
2015 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
2016 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
2017 SELECTION_REQUEST_EVENT, selection_clear_event to
2018 SELECTION_CLEAR_EVENT, buffer_sw
2019
2020 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
2021
2022 * region-cache.c (new_region_cache): Use BEG.
2023
2024 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
2025 Use BEG and BEG_BYTE.
2026
2027 * doc.c (get_doc_string): Return nil if the location is wrong.
2028 (reread_doc_file): New fun.
2029 (Fdocumentation, Fdocumentation_property):
2030 Call it if get_doc_string fails.
2031 (Fsnarf_documentation): Make it work for a dumped Emacs.
2032
2033 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
2034 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
2035
2036 * charset.c (Fstring): Allow 0 arguments.
2037
2038 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
2039
2040 * process.c (DATAGRAM_CONN_P, list_processes_1)
2041 (Fprocess_datagram_address, Fset_process_datagram_address)
2042 (Fset_network_process_options, server_accept_connection):
2043 Fix some int/Lisp_Object confusions (thank you union types).
2044
2045 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2046
2047 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
2048
2049 * w32term.c: Likewise.
2050 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
2051
2052 * keyboard.c (Qselect_window): New symbol.
2053 (head_table): Use it.
2054 (keys_of_keyboard): Bound select-window event to handle-select-window.
2055 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
2056
2057 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
2058 (last_window): New variable.
2059 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
2060 (note_mouse_movement): Remove reimplemented code in #if 0.
2061 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
2062 Emacs windows.
2063
2064 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
2065
2066 2002-03-31 Gerd Moellmann <gerd@gnu.org>
2067
2068 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
2069 Callers changed.
2070
2071 2002-03-30 Richard M. Stallman <rms@gnu.org>
2072
2073 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
2074 loop whenever it stops making progress.
2075
2076 * widget.c (set_frame_size): Don't call change_frame_size.
2077
2078 2002-03-30 Gerd Moellmann <gerd@gnu.org>
2079
2080 * dispnew.c (direct_output_for_insert):
2081 Call mark_window_display_accurate.
2082
2083 2002-03-29 Jason Rumney <jasonr@gnu.org>
2084
2085 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
2086
2087 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
2088
2089 * Makefile.in (lread.o): Depend on coding.h.
2090
2091 * lread.c (openp, Fload): Encode the file name before passing it
2092 to `stat', `access', and `emacs_open'.
2093 (openp): GCPRO the encoded file name. Don't recompute Lisp
2094 strings unnecessarily.
2095
2096 2002-03-29 Kim F. Storm <storm@cua.dk>
2097
2098 * fns.c (Flax_plist_put): Doc fix.
2099
2100 2002-03-28 Miles Bader <miles@gnu.org>
2101
2102 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
2103
2104 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2105
2106 * process.c (set-network-process-options): Add usage.
2107 (make-network-process): Doc fix.
2108
2109 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2110
2111 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
2112
2113 2002-03-26 Richard M. Stallman <rms@gnu.org>
2114
2115 * fns.c (Fsubstring_no_properties): New function.
2116 (Flax_plist_get, Flax_plist_put): New functions.
2117 (syms_of_fns): defsubr them.
2118
2119 * xdisp.c (update_menu_bar): Test only update_mode_lines;
2120 don't test or alter w->update_mode_line.
2121
2122 * window.c (Fdisplay_buffer): Doc fix.
2123
2124 2002-03-24 Richard M. Stallman <rms@gnu.org>
2125
2126 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
2127
2128 2002-03-24 Gerd Moellmann <gerd@gnu.org>
2129
2130 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
2131 (Fdefmacro): Handle `(declare ...)'.
2132 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
2133 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
2134
2135 2002-03-24 Jason Rumney <jasonr@gnu.org>
2136
2137 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
2138 (xbm_file_p): Add prototypes.
2139 (xbm_format, xbm_image_p): Sync with xfns.c.
2140 (reflect_byte): New function.
2141 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
2142 (xbm_load_image): Create bitmaps with a depth of 1.
2143 (init_xfns): Enable XBM images.
2144
2145 2002-03-23 Jason Rumney <jasonr@gnu.org>
2146
2147 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
2148 correctly. Do not pass up_modifier to keyboard buffer.
2149
2150 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
2151
2152 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
2153
2154 * Makefile.in (bootstrapclean): New target.
2155 (bootstrap-temacs, bootstrap-doc): Remove.
2156 (bootstrap-emacs): Use a bog-standard `temacs'.
2157 Don't bother to build a DOC file.
2158
2159 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
2160
2161 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
2162 in temacs even if !CANNOT_DUMP.
2163 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
2164
2165 * alloc.c (check_pure_size): Only output a warning.
2166
2167 2002-03-22 Jason Rumney <jasonr@gnu.org>
2168
2169 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
2170 supported.
2171
2172 * w32term.c (zv_bits): Declare as short, for word alignment.
2173 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
2174 (syms_of_w32term): Define x-use-underline-position-properties.
2175
2176 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
2177 (clear_image_cache): Block input, fix logic, clear matrices in
2178 all frames that share this cache.
2179
2180 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
2181
2182 * emacs.c (main): Update the Copyright year in the blurb printed
2183 by "emacs --version".
2184
2185 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
2186
2187 * xterm.c (XTread_socket): If XK_ISO_Lock and
2188 XK_ISO_Last_Group_Lock are defined, handle keysyms between
2189 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
2190
2191 2002-03-21 Kim F. Storm <storm@cua.dk>
2192
2193 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
2194 menu-bar bindings in keymap and local-map properties _are_ used.
2195 But try keymap property first in accordance with 2002-01-03 patch.
2196 Added comment describing why this is not always reliable.
2197 (tool_bar_items): Ditto for tool-bar.
2198
2199 2002-03-21 Jason Rumney <jasonr@gnu.org>
2200
2201 * w32fns.c (x_clear_image_1): Disable color table code.
2202
2203 2002-03-21 Kim F. Storm <storm@cua.dk>
2204
2205 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
2206 removed the wrong version of the DEFUN macro; fixed it.
2207
2208 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
2209 Fmember rather than Fmemq).
2210 (Fprovide): Check that subfeatures is a list.
2211
2212 * process.c (QCfeature, QCdatagram): Removed variables.
2213 (QCtype, Qdatagram): New variables.
2214 (network_process_featurep): Removed function.
2215 (Fmake_network_process): Removed :feature check.
2216 Use :type 'datagram instead of :datagram t to create a datagram
2217 socket. This allows us to add other connection types (e.g. raw
2218 sockets) later in a consistent manner.
2219 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
2220 supported subfeatures for feature make-network-process.
2221 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
2222 Intern and staticpro QCtype and Qdatagram.
2223 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
2224
2225 * xfns.c: (QCtype): Remove duplicate declaration and
2226 initialization (is now declared in process.c).
2227
2228 * w32fns.c: (QCtype): Remove duplicate declaration and
2229 initialization (is now declared in process.c).
2230
2231 2002-03-21 Richard M. Stallman <rms@gnu.org>
2232
2233 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
2234 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
2235 when jumping to `fail' to avoid undoing reg changes in the
2236 last iteration of the loop.
2237 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
2238
2239 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
2240 Depend on process.h.
2241
2242 2002-03-20 Jason Rumney <jasonr@gnu.org>
2243
2244 Most of the following changes are still conditional on HAVE_IMAGES
2245 which is not set by default on Windows.
2246
2247 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
2248
2249 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
2250 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
2251 (four_corners_best, x_clear_image_1, x_clear_image)
2252 (x_alloc_image_color, postprocess_image)
2253 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
2254 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
2255 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
2256
2257 * w32gui.h (struct XImage): Define.
2258
2259 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
2260 extract mouse co-ordinates.
2261
2262 2002-03-20 Jason Rumney <jasonr@gnu.org>
2263
2264 * w32.c (init_winsock): Dynamically load new server and UDP
2265 socket functions.
2266 (socket_to_fd): New function.
2267 (sys_socket): Use it.
2268 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
2269 (sys_recvfrom, sys_sendto): New wrapper functions.
2270
2271 * process.c (QCfamily, QCfilter): Remove duplicate declaration
2272 and initialization.
2273
2274 * makefile.w32-in (LIBS): Remove $(WSOCK32).
2275
2276 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
2277
2278 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
2279 Don't use "sun" as a variable, it's a predefined constant on Sun
2280 machines.
2281
2282 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2283
2284 * bytecode.c (Fbyte_code): Revert last change.
2285
2286 2002-03-19 Kim F. Storm <storm@cua.dk>
2287
2288 * makefile.w32-in (LIBS): Add $(WSOCK32).
2289 From David Ponce <dponce@voila.fr>.
2290
2291 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2292
2293 * process.c (wait_reading_process_input): Move variables `pname'
2294 and `pnamelen' down where they are used.
2295
2296 * bytecode.c (Fbyte_code): Discard unused computed value to
2297 prevent gcc warning.
2298
2299 * lisp.h (Fplist_member): Add prototype.
2300
2301 2002-03-18 Kim F. Storm <storm@cua.dk>
2302
2303 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
2304 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
2305
2306 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
2307 Remove explicit GNU_LINUX settings for datagram support.
2308
2309 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2310
2311 * process.c (Fmake_network_process): Remove unused variable `sa'.
2312 Doc fix. Add usage:.
2313 (set_socket_options): Remove unused variables `optnum' and `opttype'.
2314
2315 2002-03-17 Richard M. Stallman <rms@gnu.org>
2316
2317 * xdisp.c (cursor_type_changed): New variable.
2318 (redisplay_internal): Redisplay all windows if cursor_type_changed.
2319 Clear it when clearing windows_or_buffers_changed.
2320 (try_cursor_movement, redisplay_window, try_window_id)
2321 (try_window_reusing_current_matrix): Test cursor_type_changed
2322 along with windows_or_buffers_changed.
2323
2324 * window.h (cursor_type_changed): New variable.
2325
2326 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
2327 not update_mode_lines, and always set it to 1.
2328
2329 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
2330 if no frames needed redrawing.
2331
2332 2002-03-17 Kim F. Storm <storm@cua.dk>
2333
2334 The following changes add support for network server processes,
2335 datagram connections, and local (unix) sockets.
2336
2337 * process.h (struct Lisp_Process): New member log.
2338 Doc fix: Member command used to indicate stopped network process.
2339 Doc fix: Member childp contains plist for network process.
2340 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
2341
2342 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
2343 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
2344 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
2345 New variables.
2346 (NETCONN1_P): New macro.
2347 (DATAGRAM_SOCKETS): New conditional symbol.
2348 (datagram_address): New array.
2349 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
2350 (status_message): Use concat3.
2351 (Fprocess_status): Add `listen' status to doc string. Return `stop'
2352 for a stopped network process.
2353 (Fset_process_buffer): Update contact plist for network process.
2354 (Fset_process_filter): Ditto. Don't enable input for stopped
2355 network processes. Server must listen, even if filter is t.
2356 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
2357 New functions.
2358 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
2359 (Fprocess_contact): Added KEY argument. Handle datagrams.
2360 (list_processes_1): Optionally show only processes with the query
2361 on exit flag set. Dynamically adjust column widths. Omit tty
2362 column if not needed. Report stopped network processes.
2363 Identify server and datagram network processes.
2364 (Flist_processes): New optional arg `query-only'.
2365 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
2366 (conv_lisp_to_sockaddr, set_socket_options)
2367 (network_process_featurep, unwind_request_sigio): New helper functions.
2368 (Fprocess_datagram_address, Fset_process_datagram_address):
2369 (Fset_network_process_options): New lisp functions.
2370 (Fopen_network_stream): Removed. Now defined in simple.el.
2371 (Fmake_network_process): New lisp function. Code is based on previous
2372 Fopen_network_stream, but heavily reworked with new property list based
2373 argument list, support for datagrams, server processes, and local
2374 sockets in addition to old client-only functionality.
2375 (server_accept_connection): New function.
2376 (wait_reading_process_input): Use it to handle incoming connects.
2377 Do not enable input on a new connection if process is stopped.
2378 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
2379 (send_process): Handle datagram sockets.
2380 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
2381 network process is indicated by setting command field to t .
2382 (Fprocess_send_eof): No-op if datagram connection.
2383 (Fstatus_notify): Don't read input for a stream server socket or a
2384 stopped network process.
2385 (init_process): Initialize datagram_address array.
2386 (syms_of_process): Intern and staticpro new variables, defsubr new
2387 functions.
2388
2389 2002-03-16 Jason Rumney <jasonr@gnu.org>
2390
2391 * w32fns.c (w32_to_all_x_charsets): Return correct type in
2392 startup case.
2393
2394 2002-03-16 Richard M. Stallman <rms@gnu.org>
2395
2396 * xdisp.c (redisplay_internal, redisplay_windows):
2397 Use list_of_error to call internal_condition_case_1.
2398 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
2399 so as to catch all errors with no possibility of debugger redisplay.
2400 (list_of_error): New variable.
2401 (syms_of_xdisp): Init and staticpro it.
2402
2403 * print.c (print_object): Delete `\ ' from printed rep of frame.
2404
2405 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
2406
2407 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
2408 until its implementation is fixed.
2409
2410 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2411
2412 * xfns.c (png_load): Remove unused variable `gamma_str'.
2413
2414 2002-03-14 Richard M. Stallman <rms@gnu.org>
2415
2416 * xfns.c (x_real_positions): Handle failure in XQueryTree.
2417
2418 2002-03-14 Miles Bader <miles@gnu.org>
2419
2420 * intervals.c (adjust_for_invis_intang): New function.
2421 (set_point_both): Use `adjust_for_invis_intang' to do most of the
2422 work for dealing with invisible+intangible regions. Do so before
2423 and after both forward and backward movements, to handle both
2424 front-sticky and rear-sticky cases.
2425 * textprop.c (text_property_stickiness): Function moved here from
2426 `editfns.c'.
2427 * intervals.h (text_property_stickiness): New declaration.
2428 * editfns.c (char_property_eq): Function removed.
2429 (text_property_stickiness): Function moved to `textprop.c'.
2430
2431 2002-03-13 Jason Rumney <jasonr@gnu.org>
2432
2433 * config.in: Add STRFTIME_NO_POSIX2.
2434
2435 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
2436 and %OX when underlying strftime does not.
2437
2438 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
2439
2440 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
2441 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
2442 line) to avoid annoying flicker.
2443 (xm_scroll_callback): Get rid of the now unnecessary kludge.
2444 (XTread_socket): Mark it static.
2445
2446 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
2447
2448 2002-03-13 Kim F. Storm <storm@cua.dk>
2449
2450 * puresize.h (BASE_PURESIZE): Increase to 775000.
2451
2452 2002-03-12 Juanma Barranquero <lektu@terra.es>
2453
2454 * editfns.c (syms_of_editfns): Fix typo.
2455
2456 2002-03-12 Gerd Moellmann <gerd@gnu.org>
2457
2458 * xsmfns.c: Include stdio.h because termhooks.h needs it.
2459 Include termopt.h for interrupt_input.
2460
2461 2002-03-11 Andreas Schwab <schwab@suse.de>
2462
2463 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
2464
2465 2002-03-11 Gerd Moellmann <gerd@gnu.org>
2466
2467 * xterm.c (note_mouse_movement): Put code for
2468 x_autoselect_window_p in #if 0.
2469
2470 * lread.c (Fload): Don't assume that message_with_string uses the
2471 string it is given like a C string.
2472
2473 2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2474
2475 * xterm.h: Extern declare x_session_check_input () and
2476 x_session_initialize ().
2477
2478 * xterm.c: Added calls to x_session_check_input () and
2479 x_session_initialize ().
2480
2481 * termhooks.h (enum event_kind): Added save_session_event.
2482
2483 * keyboard.c: Added Emacs event save_session_event.
2484
2485 * emacs.c (main): Added call to syms_of_xsmfns ().
2486
2487 * lisp.h: Extern declare syms_of_xsmfns ().
2488
2489 * config.in: Added HAVE_X_SM
2490
2491 * Makefile.in: Added test for HAVE_X_SM and added new file xsmfns.c
2492
2493 * xsmfns.c: New file for X session management.
2494
2495 2002-03-09 Jason Rumney <jasonr@gnu.org>
2496
2497 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
2498 read-only when setting modified time.
2499
2500 2002-03-08 Gerd Moellmann <gerd@gnu.org>
2501
2502 * xdisp.c (move_it_vertically_backward): At the end of the
2503 function, when moving forward by lines, treat terminal frames
2504 specially.
2505
2506 * keyboard.c (echo_char): Make sure to add a separator between
2507 keys even if echo_dash hasn't been called.
2508
2509 * xdisp.c: Use new string macros.
2510 (update_echo_area): Pass number of bytes to message3 instead of
2511 number of chars.
2512 (set_message_1): Don't access a string's size_byte directly.
2513 (decode_mode_spec_coding): Use number of bytes of eoltype string
2514 instead number of chars.
2515
2516 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
2517
2518 2002-03-08 Juanma Barranquero <lektu@terra.es>
2519
2520 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
2521 24-bit.
2522
2523 2002-03-06 Jason Rumney <jasonr@gnu.org>
2524
2525 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
2526
2527 2002-03-06 Gerd Moellmann <gerd@gnu.org>
2528
2529 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
2530 (cancel_echoing, echo_length, echo_truncate): Changed to
2531 work with new kboard definition.
2532 (echo_now): Use message3_nolog instead of message2_nolog.
2533
2534 * alloc.c (mark_kboards): Mark echo_string.
2535
2536 * keyboard.h (ECHOBUFSIZE): Removed.
2537 (struct kboard): Member echoptr removed, member echobuf renamed
2538 to echo_string.
2539
2540 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
2541 message3 instead of message2 to display the message using STRING's
2542 text properties.
2543
2544 2002-03-05 Andreas Schwab <schwab@suse.de>
2545
2546 * xdisp.c (hscroll_margin): Change to EMACS_INT.
2547
2548 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
2549
2550 * frame.c (default-frame-alist): Explain that setting it doesn't
2551 affect existing frames.
2552
2553 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
2554
2555 * indent.c (skip_invisible): Fix my brain fart.
2556
2557 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
2558
2559 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
2560
2561 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
2562 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
2563 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
2564 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
2565 and variables to use EMACS_INT instead of just int.
2566
2567 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
2568
2569 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2570
2571 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
2572 environment, pass it down with corrected value.
2573
2574 2002-03-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2575
2576 * lread.c (read_filtered_event): Do not call start_hourglass
2577 before returning.
2578
2579 2002-03-04 Juanma Barranquero <lektu@terra.es>
2580
2581 * w32term.c (x_display_and_set_cursor): Fix typo.
2582
2583 2002-03-03 Richard M. Stallman <rms@gnu.org>
2584
2585 * fileio.c (Fmake_temp_name): Doc fix.
2586
2587 2002-03-03 Gary Wong <gtw@gnu.org>
2588
2589 * termcap.c [!emacs]: Replace ospeed for building standalone
2590 libtermcap, for binary compatibility.
2591
2592 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
2593
2594 2002-03-03 Richard M. Stallman <rms@gnu.org>
2595
2596 * xrdb.c (file_p): Rename arg `path' to `filename'.
2597
2598 * abbrev.c (Fexpand_abbrev): Increment plist as use count
2599 only if it is an integer.
2600
2601 * xfns.c (png_load): Set screen_gamma based on f->gamma.
2602 If png_get_sRGB gives an answer, call png_set_gamma
2603 using the default image gamma value.
2604
2605 * lread.c (read1): When reading from a file, default string to
2606 multibyte only if it has some multibyte characters.
2607
2608 * print.c (print_object): Output multibyte chars 128...255
2609 using \x even if ! print_escape_multibyte.
2610
2611 * xdisp.c (display_mode_element): Move the places where
2612 bytepos, charpos, this, and lisp_string are set.
2613 Use lisp_string to set bytepos.
2614
2615 * xdisp.c (redisplay_internal):
2616 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
2617
2618 * xdisp.c (display_mode_element): Merge properties specified with
2619 :propertize onto those that come with the string.
2620
2621 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
2622
2623 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
2624 automatic-hscrolling. Users changed.
2625 <hscroll-margin>: Renamed from automatic-hscroll-margin.
2626 Users changed.
2627 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
2628
2629 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2630
2631 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
2632
2633 2002-03-02 Kim F. Storm <storm@cua.dk>
2634
2635 * window.c (Fminibuffer_selected_window): New function.
2636 (syms_of_window): Defsubr it.
2637
2638 2002-03-01 Kim F. Storm <storm@cua.dk>
2639
2640 * window.h (struct window): New member phys_cursor_width.
2641
2642 * window.c (make_window, replace_window): Init phys_cursor_width.
2643
2644 * xterm.c (x_display_and_set_cursor): Blink box cursor using
2645 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
2646
2647 * w32term.c (x_display_and_set_cursor): Blink box cursor using
2648 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
2649
2650 * lisp.h (GCPRO6): New macro.
2651
2652 * process.c (Fopen_network_stream): Use GCPRO6.
2653
2654 2002-03-01 Kim F. Storm <storm@cua.dk>
2655
2656 * process.c (Qconnect, Qfailed): New variables.
2657 (syms_of_process): Intern and staticpro them.
2658 (Fprocess_status): Document connect and failed return values.
2659 [NON_BLOCKING_CONNECT]: New conditional.
2660 (connect_wait_mask, num_pending_connects): New variables.
2661 (status_message): Convert Qfailed status.
2662 (Fopen_network_stream): Added support for non-blocking connect.
2663 New optional args: filter, sentinel, non_blocking. Doc updated.
2664 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
2665 (deactivate_process): Handle pending non-blocking connect.
2666 (wait_reading_process_input): Poll for status of non-blocking
2667 connects. Exec sentinel directly when connect succeeds.
2668 (status_notify): Don't read process output if not yet connected.
2669
2670 2002-02-28 Kim F. Storm <storm@cua.dk>
2671
2672 * window.c: (minibuf_selected_window): Renamed from
2673 Vminibuf_selected_window. Users changed.
2674 (syms_of_window): Staticpro it.
2675
2676 2002-02-26 Kim F. Storm <storm@cua.dk>
2677
2678 The following changes add a new Vminibuf_selected_window variable
2679 which is similar to Vminibuf_scroll_window, but which is only set
2680 on entry to the minibuffer (from a non-minibuffer window):
2681
2682 * window.c: (Vminibuf_selected_window): New variable.
2683 (struct save_window_data): New member minibuf_selected_window.
2684 (Fset_window_configuration): Restore Vminibuf_selected_window.
2685 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
2686 Set minibuf_scroll_window member to nil if minibuf_level is 0.
2687 (compare_window_configurations): Compare minibuf_selected_window.
2688
2689 * window.h: (Vminibuf_selected_window): Declare extern.
2690
2691 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
2692 entry to minibuffer or on entry from a non-minibuffer window.
2693
2694 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
2695 Vminibuf_selected_window instead of Vminibuf_scroll_window.
2696
2697 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
2698 instead of Vminibuf_scroll_window when deciding in which window
2699 the region should be highlighted. Consequently, the region remains
2700 highlighteded even when a completion buffer is also displayed.
2701
2702 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
2703
2704 * fileio.c (Fsubstitute_in_file_name): Fix the change from
2705 2002-02-08.
2706
2707 * xselect.c (Qcompound_text_with_extensions): Renamed from
2708 Qcompound_text_no_extensions.
2709 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
2710
2711 2002-02-26 Juanma Barranquero <lektu@terra.es>
2712
2713 * w32proc.c (syms_of_ntproc): Doc fix.
2714
2715 2002-02-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2716
2717 * intervals.h: Include "dispextern.h" unconditionally.
2718
2719 2002-02-24 Jason Rumney <jasonr@gnu.org>
2720
2721 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
2722 and disp-table.elc.
2723 (lisp): Add emacs-lisp/backquote.elc.
2724
2725 2002-02-24 Kim F. Storm <storm@cua.dk>
2726
2727 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
2728 The validation of the event type was too strict as it didn't
2729 allow string events; buffer names are used in bindings for
2730 menu-bar-select-buffer (see `menu-bar-update-buffers').
2731
2732 2002-02-23 Kim F. Storm <storm@cua.dk>
2733
2734 The following changes rework my patch of 2002-02-06 which
2735 added command remapping by entering the commands directly into
2736 the keymaps. Now, command remapping uses an explicit `remap'
2737 prefix in the keymaps, i.e. [remap COMMAND].
2738
2739 * keymap.c (Qremap, remap_command_vector): New variables.
2740 (is_command_symbol): Removed function.
2741 (Fdefine_key): No longer accept a symbol for KEY.
2742 Added validation of [remap COMMAND] argument for KEY.
2743 The DEF is no longer required to be a symbol when remapping a command.
2744 (Fremap_command): New function to remap command through keymaps.
2745 (Flookup_key): Perform command remapping initiated by
2746 Fremap_command directly for speed.
2747 (Fkey_binding): Use Fremap_command for command remapping.
2748 (where_is_internal): Handle new command remapping representation.
2749 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
2750 staticpro them. Defsubr Fremap_command.
2751
2752 * keymap.h (Fremap_command): Declare extern.
2753 (is_command_symbol): Remove extern.
2754
2755 * keyboard.c (command_loop_1): Use Fremap_command for command
2756 remapping; now try command remapping for all symbols.
2757
2758 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
2759
2760 * coding.h (run_pre_post_conversion_on_str): Add prototype.
2761
2762 2002-02-23 Jason Rumney <jasonr@gnu.org>
2763
2764 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
2765 on the string before encoding it.
2766 (Fw32_get_clipboard_data): Run post-read-conversion on the string
2767 after decoding it.
2768
2769 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
2770
2771 2002-02-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2772
2773 * w32term.c (enter_timestamp): Remove unused static variable to
2774 prevent warning.
2775
2776 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
2777
2778 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
2779
2780 * w16select.c (Fw16_get_clipboard_data): Fix last change.
2781
2782 * xselect.c (selection_data_to_lisp_data): Fix last change.
2783
2784 2002-02-22 Jason Rumney <jasonr@gnu.org>
2785
2786 * w32term.h (struct w32_output): New member menu_command_in_progress.
2787
2788 * w32menu.c (menubar_selection_callback): Free the menu and
2789 clear the menu_command_in_progress flag.
2790
2791 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
2792 (menu_free_timer): New variable.
2793 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
2794 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
2795 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
2796 menu command is in progress.
2797 <WM_COMMAND>: Set the menu_command_in_progress flag.
2798 Kill any menu_free_timer that is running.
2799
2800 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
2801 Call ExtTextOutA rather than ExtTextOut.
2802
2803 2002-02-22 Eli Zaretskii <eliz@gnu.org>
2804
2805 * puresize.h (BASE_PURESIZE): Increase to 755000.
2806
2807 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2808
2809 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
2810 on the string before encoding it.
2811 (Fw16_get_clipboard_data): Run post-read-conversion on the string
2812 after decoding it.
2813
2814 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2815
2816 Support for ICCCM Extended Segments in X selections:
2817
2818 * xselect.c <Qcompound_text_no_extensions>: New variable.
2819 (syms_of_xselect): Intern and staticpro it.
2820 (selection_data_to_lisp_data): Run post-read-conversion on decoded
2821 selection text.
2822 (lisp_data_to_selection_data): If next-selection-coding-system is
2823 compound-text-no-extensions, set the type of selection to be
2824 compound-text.
2825
2826 * xterm.h (x_encode_text): Update prototype.
2827
2828 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
2829 callers changed. If SELECTIONP is non-zero, run the
2830 pre-write-conversion function before encoding the selection text.
2831
2832 2002-02-21 Kim F. Storm <storm@cua.dk>
2833
2834 * frame.c (syms_of_frame): Change mouse-highlight default to t.
2835
2836 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
2837 Correct composing of language-change event.
2838
2839 2002-02-20 Kim F. Storm <storm@cua.dk>
2840
2841 * keyboard.c (menu_bar_items): Don't include keymap or local-map
2842 bindings at PT when building menu (the menu is not updated often
2843 enough for this to work reliable).
2844 (tool_bar_items): Likewise.
2845 (current_active_maps): Removed unused (and buggy) function.
2846
2847 2002-02-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2848
2849 * xfns.c (gif_load): Use correct width and height for GIF images.
2850
2851 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
2852
2853 * floatfns.c (Fatan): Accept an optional second arg and call
2854 atan2 if passed 2 args.
2855
2856 2002-02-18 Jason Rumney <jasonr@gnu.org>
2857
2858 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
2859
2860 2002-02-17 Jason Rumney <jasonr@gnu.org>
2861
2862 * w32term.c (x_autoselect_window_p): New variable.
2863 (syms_of_w32term): DEFVAR_BOOL and initialize it.
2864 (note_mouse_movement): Use it.
2865
2866 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
2867
2868 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
2869
2870 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
2871 New variables.
2872 (syms_of_w32fns): Intern and staticpro them.
2873 (x_frame_parms) <"fullscreen">: New parameter.
2874 (x_fullscreen_move, x_set_fullscreen): New functions.
2875 (x_set_frame_parameters): Support Qfullscreen.
2876 (x_real_positions): Save x/y_pixels_diff frame params.
2877 (x_figure_window_size): Support full-screen frames.
2878 (Fx_create_frame): Default the fullscreen parameter.
2879
2880 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
2881 (x_fullscreen_adjust): New functions.
2882 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
2883 fullscreen. Call x_check_fullscreen_move, and set the
2884 want_fullscreen member of output_data.w32
2885 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
2886
2887 * w32term.h: New enum for FULLSCREEN_* constants.
2888 (struct w32_output): New members want_fullscreen, x_pixels_diff,
2889 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
2890 (x-fullscreen-adjust): New prototype.
2891
2892 2002-02-17 Kim F. Storm <storm@cua.dk>
2893
2894 * frame.c: (Vmouse_highlight): New variable.
2895 (syms_of_frame): DEFVAR_LISP it.
2896
2897 * frame.h: (Vmouse_highlight): Declare extern.
2898
2899 * xterm.h (struct x_display_info): Add mouse_face_hidden.
2900
2901 * xterm.c (disable_mouse_highlight): Removed variable.
2902 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
2903 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2904 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
2905 and on after keyboard input.
2906 (x_term_init): Initialize mouse_face_hidden.
2907
2908 * msdos.h (struct display_info): Add mouse_face_hidden.
2909
2910 * msdos.c (disable_mouse_highlight): Removed variable.
2911 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2912 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
2913 (internal_terminal_init): Initialize mouse_face_hidden.
2914 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
2915 and on after keyboard input.
2916
2917 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
2918
2919 * w32term.c (disable_mouse_highlight): Removed variable.
2920 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
2921 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2922 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
2923 and on after keyboard input.
2924 (w32_initialize_display_info): Initialize mouse_face_hidden.
2925
2926 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
2927
2928 * msdos.c (last_mouse_window): New variable.
2929 (dos_rawgetc): Fix last change--if the mouse is in the same window
2930 as recorded in last_mouse_window, don't select this window.
2931
2932 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
2933
2934 * msdos.c (x_autoselect_window_p): New variable.
2935 (syms_of_msdos): Defvar it.
2936 (dos_rawgetc): If x_autoselect_window_p is set, select the window
2937 in which the last mouse movement occured, unless it is already
2938 selected.
2939
2940 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
2941 New variables.
2942 (syms_of_xdisp): DEVFAR them.
2943 (hscroll_window_tree): Use automatic_hscroll_margin and
2944 Vautomatic_hscroll_step to compute the amount of window scrolling.
2945
2946 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2947
2948 * xterm.c (x-autoselect-window): New variable.
2949 (note_mouse_movement): Use it.
2950
2951 * keyboard.c: Do not include "systime.h" twice.
2952
2953 2002-02-15 Andreas Schwab <schwab@suse.de>
2954
2955 * puresize.h (BASE_PURESIZE): Increase to 9/5.
2956
2957 * alloc.c (NSTATICS): Increase to 1280.
2958
2959 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
2960
2961 * alloc.c (NSTATICS): Bump to 1026.
2962
2963 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
2964 (Vx_super_keysym): New variables.
2965 (syms_of_xterm): DEFVAR_LISP them.
2966 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
2967 variables to determine which keys to use for the various modifiers.
2968
2969 2002-02-13 Kim F. Storm <storm@cua.dk>
2970
2971 * window.c: (Vmode_line_in_non_selected_windows): Removed.
2972 (mode_line_in_non_selected_windows): New variable.
2973 (syms_of_window): DEFVAR_BOOL it.
2974
2975 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
2976 Use mode_line_in_non_selected_windows.
2977 (mode_line_in_non_selected_windows): Declare extern.
2978 (Vmode_line_in_non_selected_windows): Removed extern.
2979
2980 2002-02-13 Richard M. Stallman <rms@gnu.org>
2981
2982 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
2983 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
2984 (Fclear_this_command_keys): Doc fixes.
2985
2986 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
2987 (update_face_from_frame_parameter): Increment face_change_count
2988 and windows_or_buffers_changed to force redisplay using changed faces.
2989
2990 * xdisp.c (QCpropertize): New variable.
2991 (mode_line_proptrans_alist): New variable.
2992 (display_mode_element): New arg PROPS; all calls changed.
2993 Implement this, for strings.
2994 Handle literal output of strings by sharing the
2995 main-line code for strings, using local var `literal'.
2996 Handle :propertize feature.
2997 (syms_of_xdisp): Initialze and staticpro QCpropertize and
2998 mode_line_proptrans_alist.
2999
3000 2002-02-11 Kim F. Storm <storm@cua.dk>
3001
3002 * window.c: (Vmode_line_in_non_selected_windows): New variable.
3003 (syms_of_window): DEFVAR_LISP it.
3004
3005 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
3006 (CURRENT_MODE_LINE_FACE_ID): Use it.
3007 (Vmode_line_in_non_selected_windows): Declare extern.
3008
3009 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
3010 to get mode line face.
3011
3012 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
3013
3014 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
3015 variables; cus-start.el doesn't need them anymore.
3016
3017 2002-02-09 Kim F. Storm <storm@cua.dk>
3018
3019 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
3020 reduction. This fixes a display problem where stray newlines were
3021 inserted in the window (corrected by C-l). Clarified code (IMHO).
3022
3023 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
3024
3025 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
3026
3027 * xdisp.c (display_mode_lines): Fix last change.
3028
3029 2002-02-09 Jason Rumney <jasonr@gnu.org>
3030
3031 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
3032 match each other.
3033 (w32_load_system_font): Prevent Cleartype fonts from loading.
3034 (Fx_show_tip): Ensure tip frames are above other topmost windows.
3035
3036 2002-02-09 Kim F. Storm <storm@cua.dk>
3037
3038 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
3039 (CURRENT_MODE_LINE_HEIGHT): Use it.
3040 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
3041
3042 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
3043 (pos_visible_p, handle_face_prop): Likewise.
3044 (display_mode_lines): Likewise, but for the real selected window.
3045 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
3046
3047 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
3048 in non-selected windows.
3049 (realize_basic_faces): Realize it.
3050 (syms_of_term): Intern and staticpro it.
3051
3052 2002-02-08 Kim F. Storm <storm@cua.dk>
3053
3054 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
3055 Changed mail addresses to emacs-devel@gnu.org.
3056
3057 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3058
3059 * fileio.c (Fsubstitute_in_file_name): If the file name includes
3060 ~user, and there's no such user, don't discard everything before ~user.
3061
3062 * floatfns.c (Fround): Doc fix.
3063
3064 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3065
3066 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
3067
3068 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
3069
3070 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
3071
3072 2002-02-07 Kim F. Storm <storm@cua.dk>
3073
3074 * keymap.c (where_is_internal): Only check whether definition is
3075 remapped if it fulfills is_command_symbol.
3076
3077 2002-02-07 Andreas Schwab <schwab@suse.de>
3078
3079 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
3080
3081 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
3082
3083 2002-02-06 Kim F. Storm <storm@cua.dk>
3084
3085 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
3086 defining command remapping. Doc updated.
3087 (Flookup_key): Remap command through keymap if KEY is a symbol.
3088 (is_command_symbol): New function.
3089 (Fkey_binding): Use it. New optional argument NO-REMAP.
3090 Doc updated. Callers changed. Perform command remapping via
3091 recursive call unless that arg is non-nil.
3092 (where_is_internal): New argument no_remap. Callers changed.
3093 Call recursively to find original key bindings for a remapped
3094 comand unless that arg is non-nil.
3095 (Fwhere_is_internal): New optional argument NO-REMAP.
3096 Doc updated. Callers changed. Pass arg to where_is_internal.
3097
3098 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3099 (is_command_symbol): Added prototype.
3100
3101 * keyboard.c (Vthis_original_command): New variable.
3102 (syms_of_keyboard): DEFVAR_LISP it.
3103 (command_loop_1): Set it, and perform command remapping.
3104
3105 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3106
3107 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
3108
3109 2002-02-06 Jason Rumney <jasonr@gnu.org>
3110
3111 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
3112
3113 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
3114
3115 * charset.c (get_charset_id): Use if-else instead of ?:.
3116
3117 2002-02-06 Richard M. Stallman <rms@gnu.org>
3118
3119 * filelock.c (S_ISLNK): Define if not defined.
3120
3121 2002-02-03 Richard M. Stallman <rms@gnu.org>
3122
3123 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
3124
3125 * lread.c (read1): Redesign strategy for force_multibyte and
3126 force_singlebyte. Now is_multibyte records whether read_buffer
3127 is multibyte. Encountering any multibyte character makes it so.
3128
3129 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
3130
3131 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
3132 with the same sequence, map that sequence to f10 rather than f0.
3133
3134 2002-02-03 Andreas Schwab <schwab@suse.de>
3135
3136 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
3137 latter never being defined on GNU/Linux.
3138
3139 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3140
3141 * xfaces.c (realize_default_face): Don't set the weight and slant of
3142 the default face to Qnormal, unless these attributes are unspecified.
3143
3144 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3145
3146 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
3147 Call cancel_hourglass unconditionally.
3148
3149 * eval.c (Fsignal): Remove duplicated declaration of
3150 the variable `display_hourglass_p'.
3151
3152 2002-01-31 Richard M. Stallman <rms@gnu.org>
3153
3154 * editfns.c (region_limit): Nicer error message.
3155
3156 * coding.c (decode_composition_emacs_mule):
3157 Give up if NCOMPONENT gets too large to index `component'.
3158
3159 * callint.c (check_mark): New arg to specify clearer error message.
3160 Callers changed.
3161
3162 2002-01-27 Richard M. Stallman <rms@gnu.org>
3163
3164 * minibuf.c (Fcompleting_read): Doc fix.
3165
3166 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3167
3168 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
3169 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
3170 Fix doc-strings.
3171
3172 2002-01-26 Richard M. Stallman <rms@gnu.org>
3173
3174 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
3175
3176 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
3177 and scroll_up_aggressively.
3178
3179 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3180
3181 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
3182
3183 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
3184
3185 * textprop.c (Fnext_property_change, Fnext_single_property_change)
3186 (Fprevious_property_change, Fprevious_single_property_change):
3187 Stay within the narrowed-buffer boundaries.
3188
3189 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3190
3191 * term.c (Ftty_display_color_cells): New function.
3192 (syms_of_term): Defsubr it.
3193 (Ftty_display_color_cells, Ftty_display_color_p): Change the
3194 argument name to DISPLAY. Doc fix.
3195
3196 * dispextern.h: Add prototype for set_tty_color_mode and
3197 tty_setup_colors.
3198
3199 2002-01-24 Jason Rumney <jasonr@gnu.org>
3200
3201 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
3202 If region left to draw is not what was expected, mark the frame as
3203 garbaged.
3204
3205 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
3206 Combine the regions returned by BeginPaint and GetUpdateRect.
3207
3208 2002-01-23 Jason Rumney <jasonr@gnu.org>
3209
3210 * w32term.c (x_update_window_begin): Only hide caret if
3211 w32_use_visible_system_caret is set.
3212 (x_update_window_end): Only show caret if
3213 w32_use_visible_system_caret is set.
3214 (syms_of_w32term): Handle SystemParametersInfo call failing.
3215
3216 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3217
3218 2002-01-22 Richard M. Stallman <rms@gnu.org>
3219
3220 * unexelf.c (unexec): Define n so as to cause compilation error
3221 for the code where people have often written n instead of nn.
3222
3223 * .gdbinit (hookpost-run): Defined.
3224
3225 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3226
3227 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
3228
3229 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3230
3231 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
3232 if fullscreen is being set.
3233
3234 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3235
3236 * minibuf.c (Fminibuffer_contents)
3237 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
3238 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
3239
3240 2002-01-21 Richard M. Stallman <rms@gnu.org>
3241
3242 * window.c (check_frame_size): Fix minimum height calculation.
3243
3244 2002-01-20 Ken Raeburn <raeburn@gnu.org>
3245
3246 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
3247 height before comparison.
3248 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
3249
3250 2002-01-20 Jason Rumney <jasonr@gnu.org>
3251
3252 * w32term.c (w32_system_caret_width): Remove.
3253 (w32_use_visible_system_caret): New user flag.
3254 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
3255 Windows reports a screen reader running.
3256 (x_update_window_begin): Hide the system caret.
3257 (x_update_window_end): Show the system caret.
3258 (x_display_and_set_cursor): Don't draw a cursor when
3259 w32_use_visible_system_caret is set. Do not adjust width.
3260
3261 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
3262 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
3263 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
3264 the user requests it. Use system default width when creating.
3265 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
3266
3267 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
3268 New window messages.
3269
3270 2002-01-20 Richard M. Stallman <rms@gnu.org>
3271
3272 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
3273
3274 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3275
3276 * doprnt.c (doprnt1): Fix typos in error call.
3277
3278 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3279
3280 * unexelf.c (unexec) [__sgi]: Support the .got sections.
3281
3282 2002-01-20 Jason Rumney <jasonr@gnu.org>
3283
3284 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
3285 that Windows returns. If a double check fails, try to guess how
3286 ExtTextOut is going to act.
3287
3288 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
3289 in place of stricmp.
3290 (w32_list_synthesized_fonts): Removed.
3291 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
3292 (struct enumfont_t): New element; list.
3293 (enum_font_cb2): List all style and charset variations of a font.
3294 (Fw32_select_font): New optional argument; include_proportional.
3295 Exclude vertical fonts. Exclude proportional fonts unless
3296 include_proportional is non-nil.
3297 (w32_enable_synthesized_fonts): Change to a boolean.
3298 (Fw32_send_sys_command): Doc fix.
3299
3300 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3301
3302 * dispnew.c (update_frame): Move the variable `tem' to the block
3303 where it is used.
3304
3305 2002-01-19 Jason Rumney <jasonr@gnu.org>
3306
3307 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
3308 call to face-set-after-frame-default.
3309
3310 2002-01-18 Richard M. Stallman <rms@gnu.org>
3311
3312 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
3313 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
3314
3315 2002-01-17 Richard M. Stallman <rms@gnu.org>
3316
3317 * window.c (enlarge_window): When exceeding size of parent,
3318 directly delete all the siblings instead of trying to resize it.
3319
3320 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3321
3322 * term.c (set_tty_color_mode): Remove unused variable `tem'.
3323
3324 2002-01-16 Henrik Enberg <henrik@enberg.org>
3325
3326 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3327
3328 2002-01-16 Kim F. Storm <storm@cua.dk>
3329
3330 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
3331 is invisible. This can happen if cursor is on top line of a
3332 window, and we switch to a buffer with a header line.
3333
3334 * w32term.c (x_erase_phys_cursor): Ditto.
3335
3336 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3337
3338 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
3339 `dont_resize' only when used.
3340
3341 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
3342
3343 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
3344
3345 * xdisp.c (display_mode_element): When computing charpos, depend
3346 on multibyteness of elt, not the text in field.
3347
3348 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3349
3350 * buffer.c (Fkill_all_local_variables):
3351 Increment `update_mode_lines' only once.
3352
3353 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3354
3355 * lisp.h (adjust_after_replace_noundo)
3356 (Fupdate_coding_systems_internal): Add prototypes.
3357
3358 * sound.c (Fplay_sound): Initialize header_size also for :data case.
3359
3360 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
3361
3362 Support for the --color command-line argument and tty-color-mode
3363 frame parameter:
3364
3365 * term.c (tty_default_color_capabilities, tty_setup_colors)
3366 (set_tty_color_mode): New functions.
3367 (term_init): Call tty_default_color_capabilities.
3368 (Qtty_color_mode_alist): New variable.
3369 (syms_of_term): Intern and staticpro it.
3370
3371 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
3372 frames.
3373 (do_switch_frame): For termcap frames, switch the tty
3374 color mode as specified by the frame's parameters.
3375 (Qtty_color_mode): New variable.
3376 (syms_of_frame): Intern and staticpro it.
3377
3378 * emacs.c (USAGE2): Add the --color option.
3379 (standard_args): Ditto.
3380
3381 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3382
3383 * xterm.h (struct x_output): New members want_fullscreen,
3384 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
3385 y_pixels_outer_diff.
3386 New enum for FULLSCREEN_* constants.
3387 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
3388 is NULL.
3389 (x_fullscreen_adjust): Add prototype.
3390
3391 * emacs.c (USAGE2): Add the new full-screen arguments.
3392 (standard_args): Ditto.
3393
3394 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
3395 New variables.
3396 (syms_of_xfns): Intern and staticpro them.
3397 (x_frame_parms) <"fullscreen">: New parameter.
3398 (x_fullscreen_move, x_set_fullscreen): New functions.
3399 (x_set_frame_parameters): Support for Qfullscreen.
3400 (x_real_positions): More accurate computation of the frame position.
3401 (x_figure_window_size): Support full-screen frames.
3402 (Fx_create_frame): Default the fullscreen parameter.
3403
3404 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
3405 (XTread_socket) <Expose>: Call x_check_fullscreen.
3406 <ConfigureNotify>: Don't resize to fullscreen.
3407 Call x_check_fullscreen_move, and set the want_fullscreen member of
3408 output_data.x.
3409
3410 2002-01-13 Jason Rumney <jasonr@gnu.org>
3411
3412 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
3413 for mice with more than 3 buttons.
3414
3415 * w32term.c (parse_button): New parameter xbutton. Callers changed.
3416 (w32_read_socket): Handle new "XBUTTON" messages.
3417
3418 * w32fns.
3419 bindings along with or instead of the buffer local map.
3420 Make the overriding maps override what they should.
3421
3422 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3423
3424 * window.c (grow_mini_window): Fix typo in comment.
3425
3426 2001-11-01 Gerd Moellmann <gerd@gnu.org>
3427
3428 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
3429 (XTset_vertical_scroll_bar): Likewise.
3430
3431 * xfns.c (x_build_heuristic_mask): Use four_corners_best
3432 instead of IMAGE_BACKGROUND.
3433
3434 * xfns.c (four_corners_best): Reindent.
3435
3436 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3437 Handle :box so that it is possible to specify sexprs.
3438
3439 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
3440
3441 * s/hpux11.h: New file.
3442
3443 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3444
3445 * emacs.c (USAGE1): Show command line option --no-window-system
3446 instead of --no-windows in usage.
3447 (standard_args): Rename --no-windows to --no-window-system.
3448 (bug_reporting_address): Follow Emacs coding conventions.
3449
3450 * eval.c (Fcommandp): Doc fix.
3451 Change doc-string comments to `new style' [w/`doc:' keyword].
3452
3453 * frame.c (Fframe_live_p): Doc fix.
3454
3455 * buffer.c (selective-display-ellipses): Doc fix.
3456
3457 2001-10-31 Gerd Moellmann <gerd@gnu.org>
3458
3459 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
3460
3461 * xfaces.c (realize_x_face): If C is not a single-byte character,
3462 set the face's colors_copied_bitwise_p instead of the defaulted_p
3463 members which have a different meaning.
3464 (free_face_colors): Do nothing for a face whose colors have been
3465 copied bitwise.
3466
3467 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
3468
3469 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3470
3471 * marker.c, mocklisp.c: Change doc-string comments to `new style'
3472 [w/`doc:' keyword].
3473
3474 2001-10-31 Gerd Moellmann <gerd@gnu.org>
3475
3476 * fns.c (require_unwind): Return Lisp_Object.
3477
3478 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3479
3480 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
3481 (last-input-char): Revert doc-string to be the same as the
3482 doc-string of `last-input-event'.
3483
3484 * xdisp.c: Fix typos in comments.
3485
3486 2001-10-31 Gerd Moellmann <gerd@gnu.org>
3487
3488 * window.c (grow_mini_window): Handle case that the root
3489 window is already smaller than the nominal mininum height.
3490
3491 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
3492
3493 * emacs.c (main): Don't call keys_of_macros any more.
3494
3495 * lisp.h (keys_of_macros): Remove.
3496
3497 * macros.c (keys_of_macros): Remove.
3498
3499 * xfaces.c (Fface_attribute_relative_p): Declare args.
3500
3501 2001-10-30 Jason Rumney <jasonr@gnu.org>
3502
3503 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
3504 (enum_font_cb2): Ignore fonts with vertical orientation.
3505
3506 2001-10-30 Richard M. Stallman <rms@gnu.org>
3507
3508 * keyboard.c (Finput_pending_p): Doc fix.
3509
3510 2001-10-30 Gerd Moellmann <gerd@gnu.org>
3511
3512 * xterm.c (x_after_update_window_line): Don't run the code
3513 clearing in borders for rows whose visible height is 0.
3514
3515 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
3516 resized_p flag is set. If not set, use the much less flickering
3517 method previously used.
3518
3519 * dispnew.c (change_frame_size_1): Set frame's resized_p.
3520
3521 * frame.h (struct frame) <resized_p>: New member.
3522
3523 * lread.c (to_multibyte): Ensure read_buffer is at least twice
3524 as large as the number of bytes to convert.
3525
3526 * lread.c (to_multibyte): New function.
3527 (read1): Use it.
3528
3529 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
3530
3531 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
3532
3533 2001-10-30 Gerd Moellmann <gerd@gnu.org>
3534
3535 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
3536 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
3537 if the row's fill_line_p is set and drawing the last glyph with
3538 DRAW_IMAGE_{RAISED,SUNKEN}.
3539
3540 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
3541
3542 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
3543
3544 * xmenu.c: Include coding.h and charset.h.
3545 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
3546 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
3547 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
3548 Explicitly set wv->help. Use `TRUE' rather than `True'.
3549 (menu_help_callback): Use empty_string.
3550
3551 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
3552 (Fx_popup_dialog): Explicitly init f.
3553 (w32_menu_display_help): Use empty_string.
3554
3555 2001-10-29 Richard M. Stallman <rms@gnu.org>
3556
3557 * fns.c (Frequire): Detect recursive try to require the same
3558 feature 3 or more levels deep, and get error.
3559 (require_unwind): New subroutine.
3560 (require_nesting_list): New variable.
3561 (syms_of_fns): Init and staticpro it.
3562
3563 * print.c (print_object): Clarify indication of insertion type.
3564
3565 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
3566
3567 * coding.c (syms_of_coding): Document that locale-coding-system is
3568 used for decoding input on X.
3569
3570 * window.c (Fscroll_left, Fscroll_right): Doc fix.
3571
3572 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3573
3574 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
3575 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
3576
3577 2001-10-29 Gerd Moellmann <gerd@gnu.org>
3578
3579 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
3580 use NO_CURSOR if cursor_in_non_selected_windows is false.
3581
3582 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
3583 the slant attribute if FRAME is t.
3584
3585 * xfns.c (x_set_internal_border_width): Set frame garbaged
3586 when X window doesn't exist yet.
3587
3588 * xterm.c (x_after_update_window_line): Clear internal border
3589 in different circumstances.
3590
3591 * xterm.c (XTread_socket) <KeyPress>: Don't use
3592 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
3593 <handa@etl.go.jp>.
3594
3595 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3596
3597 * m/ibms390.h: New file. From Adam Thornton
3598 <athornton@sinenomine.net>.
3599
3600 2001-10-28 Gerd Moellmann <gerd@gnu.org>
3601
3602 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
3603
3604 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
3605 a loop counter.
3606
3607 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3608
3609 * emacs.c: Use argv[0] instead of emacs when -t was specified.
3610
3611 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
3612 keyword].
3613 Fix typos in comments.
3614
3615 * emacs.c (bug_reporting_address): New function.
3616 Use it when displaying usage message.
3617
3618 * minibuf.c (read_minibuf): Remove unused external declaration of
3619 variable `Qread_only'.
3620
3621 * keymap.c (access_keymap): Remove unused variable `charset'.
3622
3623 2001-10-28 Miles Bader <miles@gnu.org>
3624
3625 * xfaces.c (merge_face_heights): Handle TO being relative as well.
3626 Remove #ifdef'd-out code.
3627 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
3628 (syms_of_xfaces): Initialize them.
3629
3630 2001-10-27 Jason Rumney <jasonr@gnu.org>
3631
3632 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
3633 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
3634 position using the system caret.
3635
3636 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
3637 (w32_system_caret_height, w32_system_caret_x)
3638 (w32_system_caret_y): New variables for tracking system caret.
3639 (w32_initialize): Initialize them.
3640 (x_display_and_set_cursor): Make system caret follow the active cursor.
3641
3642 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
3643 New messages types.
3644
3645 * w32term.c (note_mouse_highlight): Clear old help_echo.
3646
3647 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3648
3649 * xterm.c: Fix typo in a comment.
3650
3651 * emacs.c: Fix typos in comments.
3652 Remove unnecessary spaces.
3653 Change doc-string comments to `new style' [w/`doc:' keyword].
3654 (USAGE2): Fix typos in usage string.
3655
3656 * xterm.c: Fix typo in a comment.
3657
3658 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
3659 emacs.c.
3660
3661 2001-10-27 Gerd Moellmann <gerd@gnu.org>
3662
3663 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
3664 instead of 1/2 line_height in the heuristic for skipping
3665 farther backward when target_y was not reached.
3666
3667 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
3668 Display errno only if non-zero.
3669 (sound_warning): New function.
3670 (vox_configure): Don't treat failing to set sample rate as error.
3671 (various places): Improve error messages.
3672
3673 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
3674
3675 * fileio.c (Faccess_file): Run the argument filename through
3676 Fexpand_file_name, before using it.
3677
3678 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
3679 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
3680
3681 2001-10-26 Gerd Moellmann <gerd@gnu.org>
3682
3683 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
3684
3685 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3686 Fix clearing in the case of scroll bars on the right.
3687
3688 2001-10-26 Juanma Barranquero <lektu@terra.es>
3689
3690 * w32gui.h (XImage): Add a dummy typedef.
3691
3692 2001-10-26 Gerd Moellmann <gerd@gnu.org>
3693
3694 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
3695
3696 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
3697
3698 * frame.c (Fframe_parameter): Fix last change.
3699
3700 * fileio.c: Revert last change (which removed old commented-out
3701 version of expand-file-name). Add a comment that explains why
3702 this old version should not be removed.
3703
3704 2001-10-25 Gerd Moellmann <gerd@gnu.org>
3705
3706 * frame.c (Fframe_parameter): Fix a bug whereby some
3707 ``artificial'' frame parameters, like `minibuffer' were not
3708 obtained by calling Fframe_parameters.
3709
3710 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
3711 cursor differently.
3712
3713 * xdisp.c (move_it_vertically_backward): Compute line height
3714 differently. Add heuristic to try to be more compatible to 20.x.
3715
3716 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
3717
3718 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
3719
3720 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
3721 boolean.
3722
3723 2001-10-25 Miles Bader <miles@gnu.org>
3724
3725 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
3726 BG is a pointer to a structure, not a structure.
3727 (gif_format, png_format): Add missing commas.
3728
3729 2001-10-24 Richard M. Stallman <rms@gnu.org>
3730
3731 * xfaces.c (Fface_attributes_as_vector): New function.
3732 (syms_of_xfaces): Defsubr it.
3733
3734 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3735
3736 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
3737 variable `area'.
3738
3739 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3740
3741 * search.c (scan_newline): Remove unused variable `selective_display'.
3742
3743 2001-10-25 Miles Bader <miles@gnu.org>
3744
3745 * dispextern.h (struct image): Add `background',
3746 `background_valid', and `background_transparent' fields.
3747 (image_background, image_background_transparent): New declarations.
3748 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
3749 * xfns.c (image_background, image_background_transparent)
3750 (four_corners_best): New functions.
3751 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
3752 (gs_format): Add `:background' entry.
3753 (lookup_image): Set IMG's background color if specified.
3754 (pbm_load, xbm_load_image, png_load): Set IMG's background field
3755 when appropriate.
3756 (x_clear_image_1): Reset `background_valid' and
3757 `background_transparent_valid' fields.
3758 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3759 calculating it here. Set IMG's background_transparent field.
3760 (enum xpm_keyword_index): Add XPM_BACKGROUND.
3761 (enum png_keyword_index): Add PNG_BACKGROUND.
3762 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3763 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3764 (enum gif_keyword_index): Add GIF_BACKGROUND.
3765 (enum gs_keyword_index): Add GS_BACKGROUND.
3766 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
3767 Pre-calculate image background color where necessary.
3768 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3769 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3770 color to use for image glyph reliefs.
3771
3772 2001-10-24 Gerd Moellmann <gerd@gnu.org>
3773
3774 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
3775 in full-width rows.
3776
3777 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3778 Fix clearing of area not covered by scroll bar.
3779
3780 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3781
3782 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
3783 and `real_start'.
3784 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
3785 (glyph_rect): Remove unused variable `area'.
3786
3787 2001-10-24 Gerd Moellmann <gerd@gnu.org>
3788
3789 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
3790
3791 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
3792 (row_containing_pos): Take additional argument DY.
3793 Treat rows ending in middle of char differently.
3794 (display_line): Handle tabs on window systems differently.
3795
3796 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
3797 with additional argument.
3798
3799 * dispextern.h (row_containing_pos): Adjust prototype.
3800
3801 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
3802 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
3803 (try_window_id, try_window_reusing_current_matrix)
3804 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
3805 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
3806
3807 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3808
3809 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
3810 gnuemacs).
3811 (HAVE_BOXES): Fix typo in comment.
3812 (push_menu_pane): Fix typo in comment.
3813
3814 * xdisp.c: (display_prop_string_p): Remove unused local declaration
3815 of `Qwhen'.
3816 (single_display_prop_string_p): Remove unused local declarations
3817 of `Qwhen' and `Qmargin'.
3818 (string_buffer_position): Remove unused variable `around'.
3819 (store_frame_title): Remove unused variable `width'.
3820
3821 * window.c: Don't define max.
3822 (coordinates_in_window): Remove unused variable `uy'.
3823
3824 * widget.c: Don't define max.
3825
3826 * process.c: Don't define max.
3827 (create_process): Remove unused variable `buffer'.
3828
3829 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3830
3831 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
3832
3833 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
3834
3835 * xfaces.c (Finternal_set_lisp_face_attribute)
3836 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
3837 frame is on a windowed display.
3838
3839 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3840
3841 * dispnew.c (sync_window_with_frame_matrix_rows):
3842 Fix handling of windows which aren't full-width, fix handling
3843 of marginal areas.
3844
3845 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
3846
3847 2001-10-23 Andreas Schwab <schwab@suse.de>
3848
3849 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
3850 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
3851
3852 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3853
3854 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
3855 REAL_END. Notice if cursor gets overwritten.
3856 (notice_overwritten_cursor): Take X positions as parameters.
3857 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3858 around call to x_draw_glyphs.
3859
3860 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3861
3862 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
3863 instead of C) and usage.
3864
3865 * editfns.c (char-to-string): Fix argument names (use CHAR instead
3866 of C) and usage.
3867
3868 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
3869 `left', `max_width' and `max_height'.
3870
3871 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3872
3873 * xdisp.c (display_line): For a tab continued to the next line,
3874 set row's ends_in_middle_of_char_p.
3875
3876 2001-10-22 Gerd Moellmann <gerd@gnu.org>
3877
3878 * xdisp.c (display_line): Fix computation of continuation lines
3879 width for TABs.
3880
3881 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3882
3883 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
3884 `Qlaplace'.
3885
3886 * fileio.c: Remove unused code.
3887
3888 2001-10-22 Miles Bader <miles@gnu.org>
3889
3890 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3891 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
3892 Remove `DOC_STRINGS_IN_COMMENTS' cases.
3893
3894 2001-10-21 Jason Rumney <jasonr@gnu.org>
3895
3896 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
3897
3898 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3899
3900 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
3901 (Finsert_string): Avoid the multi-line string literals warning.
3902
3903 2001-10-22 Miles Bader <miles@gnu.org>
3904
3905 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
3906 (Fdocumentation): Don't use it.
3907 (syms_of_doc): Don't initialize it.
3908
3909 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
3910 * print.c (Fwith_output_to_temp_buffer): Likewise.
3911 * window.c (Fsave_window_excursion): Likewise.
3912 * editfns.c (Fsave_excursion, Fsave_current_buffer)
3913 (Fsave_restriction): Likewise.
3914 * eval.c (Frun_hooks, Frun_hook_with_args)
3915 (Frun_hook_with_args_until_failure)
3916 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
3917 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
3918 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
3919 (Funwind_protect, Fcondition_case): Likewise.
3920 * coding.c (Ffind_operation_coding_system): Likewise.
3921 * keyboard.c (Ftrack_mouse): Likewise.
3922
3923 2001-10-21 Miles Bader <miles@gnu.org>
3924
3925 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
3926 (Fmake_hash_table): Add usage: string to doc string.
3927 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
3928 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
3929 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
3930 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
3931 (Fml_prefix_argument_loop): Likewise.
3932
3933 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3934
3935 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
3936
3937 * sysdep.c (init_sys_modes): Change doc-string comments to `new
3938 style' [w/`doc:' keyword].
3939
3940 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
3941 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
3942 comments to `new style' [w/`doc:' keyword].
3943
3944 2001-10-21 Jason Rumney <jasonr@gnu.org>
3945
3946 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
3947
3948 * w32term.c (remember_mouse_glyph): New function.
3949 (w32_mouse_position): Use it.
3950 (note_mouse_movement): If the mouse moved off the glyph, remember
3951 its new position.
3952
3953 * w32term.h (struct w32_output): Correct spelling of x_compatible.
3954 (w32_display_info): Add mouse_face_overlay.
3955
3956 * w32term.c (notice_overwritten_cursor): Renamed from
3957 note_overwritten_text_cursor. Rewritten to take glyph widths into
3958 account.
3959 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3960 (fast_find_string_pos): New function.
3961 (fast_find_position): Return the correct vpos. Add parameter
3962 STOP. In the final row, stop before glyphs having STOP as object.
3963 Don't consider glyphs that are not from a buffer.
3964 (fast_find_position) [0]: Add a presumably more correct version
3965 for after 21.1.
3966 (expose_window_tree, expose_frame): Don't compute intersections here.
3967 (expose_window): Do it here instead.
3968 (expose_window_tree, expose_window, expose_line): Return 1 when
3969 overwriting mouse-face.
3970 (expose_window): If W is the window currently being updated, mark
3971 the frame garbaged.
3972 (expose_frame): If mouse-face was overwritten, redo it.
3973 (x_use_underline_position_properties): New variable.
3974 (syms_of_xterm): DEFVAR_BOOL it.
3975 (x_draw_glyph_string): Add comment to use it in future.
3976 (x_draw_glyph_string): Restore clipping after drawing box.
3977 Fix a computation of the underline position.
3978 (w32_get_glyph_string_clip_rect): Minor cleanup.
3979 (x_fill_stretch_glyph_string): Remove an assertion.
3980 (x_produce_glyphs): Don't convert multibyte characters
3981 to unibyte characters in unibyte buffers.
3982 (cursor_in_mouse_face_p): New function.
3983 (x_draw_stretch_glyph_string): Use it to choose a different GC
3984 when drawing a cursor within highlighted text. Don't draw
3985 background again if it has already been drawn.
3986 (x_draw_glyph_string_box): Don't draw a full-width
3987 box just because the glyph row's full_width_p flag is set.
3988 (x_draw_glyphs): Fix computation of rightmost x for
3989 full-width rows.
3990 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3991 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
3992 change bottom shadow accordingly. Some cleanup.
3993 (x_update_window_end): Handle overwritten mouse face
3994 also for tool bar windows.
3995 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3996 DRAW is DRAW_IMAGE_RAISED.
3997 (clear_mouse_face): Return 1 if text with mouse face was
3998 actually redrawn. Make the function static.
3999 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
4000 optimize away highlighting if we pass over that same overlay again.
4001 (note_mouse_highlight): Call mouse_face_overlay_overlaps
4002 to detect a case where we have to highlight a different region
4003 despite not having left the currently highlighted region.
4004 Set mouse_face_overlay in the x_display_info. Avoid changing the
4005 mouse pointer shape when show_mouse_face has already done it, or
4006 there is no need. Handle mouse-face and help-echo in strings.
4007 (glyph_rect): New function.
4008 (w32_mouse_position): Use it to raise the threshold for mouse
4009 movement event generation.
4010 (w32_initialize_display_info): Initialize the x_display_info's
4011 mouse_face_overlay.
4012 (w32_set_vertical_scroll_bar): Don't clear a zero height
4013 or width area.
4014 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4015 a widget to zero height.
4016
4017 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4018 Protect unibyte strings created by replacing their multibyte
4019 equivalents in menu_items.
4020 (w32_menu_show): Don't overwrite an item's name with its key
4021 description in case the description is a multibyte string.
4022 (single_submenu): Some cleanup.
4023
4024 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
4025 (postprocess_image): New function.
4026 (lookup_image): Call it for all image types except PostScript.
4027 (x_kill_gs_process): Call postprocess_image.
4028 (tiff_error_handler, tiff_warning_handler): New functions.
4029 (tiff_load): Install them as handlers.
4030 (x_kill_gs_process): Recognize if someone has cleared the image
4031 cache under us.
4032 (valid_image_p): Protect better against invalid image
4033 specifications. Previous code could signal an error.
4034 (Fx_hide_tip, Fshow_tip): Doc fix.
4035 (Fv_max_tooltip_size): New variable.
4036 (syns_of_xfns): DEFVAR_LISP it.
4037 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
4038 window buffer to *tip* right after creating the frame. Set frame's
4039 window_width. Use a maximum tooltip size specified by
4040 Vx_max_tooltip_size, if that has valid contents.
4041 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4042 Make sure the tooltip is completely visible.
4043 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4044 (Fx_create_frame): Adjust the frame's height for presence
4045 of the tool bar before calling x_figure_window_size.
4046 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
4047 when the window gets smaller.
4048 (x_set_foreground_color): Set frame's cursor_pixel.
4049 (x_set_foreground_color, x_set_background_color): Cleaned up.
4050 (x_set_font): Handle case of x_new_fontset returning the same name
4051 as before, although there was a change in fontsets.
4052
4053 2001-10-21 Miles Bader <miles@gnu.org>
4054
4055 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
4056 (Flogxor): Add usage: string to doc string.
4057 * charset.c (Fstring): Likewise.
4058 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
4059 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
4060
4061 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4062
4063 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
4064
4065 * alloc.c: Reindent DEFUNs with doc: keywords.
4066
4067 * abbrev.c (Finsert_abbrev_table_description): Reindent.
4068
4069 * frame.c: Change doc-string comments to `new style' [w/`doc:'
4070 keyword].
4071
4072 See ChangeLog.9 for earlier changes.
4073
4074 ;; Local Variables:
4075 ;; coding: iso-2022-7bit
4076 ;; End:
4077
4078 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4079 Copying and distribution of this file, with or without modification,
4080 are permitted provided the copyright notice and this notice are preserved.