ChangeLog 447 KB
Newer Older
1 2
2001-10-14  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

3 4 5 6
	* xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
	(XTread_socket): Improve style of comments to follow other
	comments.

7 8 9
	* keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
	is already prototyped in included lisp.h).

10 11 12 13 14 15 16 17
	* frame.c (Fset_mouse_position): Improve style of comment to
	follow other comments.
	(Fset_mouse_pixel_position): Improve style of comment to follow
	other comments.
	(Fmake_frame_visible): Doc fix and typo in comment.
	(Fmake_frame_invisible): Doc fix and typo in comment.
	(Ficonify_frame): Fix typo in comment.

Gerd Moellmann's avatar
Gerd Moellmann committed
18 19
2001-10-14  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
20
	* xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
Gerd Moellmann's avatar
Gerd Moellmann committed
21
	* term.c, alloc.c: Put doc strings in comments.
Gerd Moellmann's avatar
Gerd Moellmann committed
22

Gerd Moellmann's avatar
Gerd Moellmann committed
23 24 25 26 27 28 29
2001-10-13  Gerd Moellmann  <gerd@gnu.org>

	* lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
	Provide definitions for doc strings in comments.

	* fns.c: Put doc strings in comments.

Eli Zaretskii's avatar
Eli Zaretskii committed
30 31 32 33 34 35 36 37 38
2001-10-13  Eli Zaretskii  <eliz@is.elta.co.il>

	* dired.c (file_name_completion): Ignore a candidate directory if
	it matches an element in completion-ignored-extensions that ends
	in a slash.
	(syms_of_dired) <completion-ignored-extensions>: Mention the above
	feature in the doc string.
	(Ffile_name_completion): Ditto.

39 40
2001-10-12  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
41 42 43 44 45 46 47
	* indent.c (skip_invisible): Don't skip "ellipsisized" text.

	* xfns.c (syms_of_xfns): Update calls to Fprovide.

	* lisp.h (Fprovide): Update prototype.
	(Ffeaturep, invisible_p): Remove.

Eli Zaretskii's avatar
Eli Zaretskii committed
48
	* xdisp.c (init_iterator): Be more strict with bytepos and charpos.
Stefan Monnier's avatar
Stefan Monnier committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
	(DOLIST, LOOP_PROPVAL): New macros.
	(invisible_p, invisible_ellipsis_p): Use them.
	(invisible_noellipsis_p): New function.
	(syms_of_xdisp): Use empty_string.

	* alloc.c (mark_interval_tree): Use traverse_intervals_noorder.

	* lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
	(syms_of_lread) <Vafter_load_alist>: Update docstring.

	* print.c (Fwith_output_to_temp_buffer): Align with
	internal_with_output_to_temp_buffer.
	(print_preprocess): Use traverse_intervals_noorder.
	(print_object): Update call to traverse_intervals.

	* intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
	(traverse_intervals_noorder, invisible_noellipsis_p): New funs.

	* intervals.c (traverse_intervals_noorder): New function.
	(search_for_interval, count_intervals): Use it.
	(traverse_intervals): Use less stack space and drop `depth' arg.

	* fns.c (Ffeaturep): Add new `subfeature' arg.
	(Fprovide): Add new `subfeatures' arg.  Use `after-load-alist'.
	(Qsubfeatures): New var.
	(syms_of_fns): Initialize it.

Stefan Monnier's avatar
Stefan Monnier committed
76 77 78 79 80
	* keymap.c (Fkey_description): Use empty_string.
	(Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
	(syms_of_keymap): Setup inheritance between maps.
	Don't export Sdescribe_bindings_internal any more.

81 82
	* minibuf.c (keys_of_minibuf): Eliminate redundant bindings.

Gerd Moellmann's avatar
Gerd Moellmann committed
83 84 85 86 87 88
2001-10-12  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (notice_overwritten_cursor): Renamed from
	note_overwritten_text_cursor.  Rewritten to take glyph widths into
	account.

89 90 91 92 93
2001-10-12  Eli Zaretskii  <eliz@is.elta.co.il>

	* lread.c (syms_of_lread) <load-suffixes>: Fix last change:
	multi-line strings without a trailing "\n\".

94 95 96 97 98
2001-10-12  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
	defined.

Stefan Monnier's avatar
Stefan Monnier committed
99 100
2001-10-11  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
101 102
	* callint.c (Fcall_interactively): Remove unused code.  Use XCAR.

Stefan Monnier's avatar
Stefan Monnier committed
103 104 105 106 107
	* xfns.c (x_create_bitmap_from_file, x_find_image_file):
	* w32proc.c (sys_spawnve):
	* w32fns.c (x_create_bitmap_from_file, x_find_image_file):
	* w32.c (check_windows_init_file):
	* sound.c (Fplay_sound):
Stefan Monnier's avatar
Stefan Monnier committed
108
	* emacs.c (init_cmdargs):
Stefan Monnier's avatar
Stefan Monnier committed
109 110 111 112 113 114 115 116 117 118 119 120 121 122
	* process.c (Fstart_process): Update calls to openp.

	* callproc.c (Vexec_suffixes): New var.
	(Fcall_process): Update call to openp.
	(decode_suffixes): New function.
	(syms_of_callproc): Init exec-suffixes.

	* lread.c (Vload_suffixes, default_suffixes): New vars.
	(openp): Take a lisp list of suffixes.
	Check for file-name-handlers even if the file was absolute already.
	(syms_of_lread): Declare load-suffixes.
	(Fload): Fix up call to openp.
	Don't bother checking for file-name-handler at the very beginning.

Stefan Monnier's avatar
Stefan Monnier committed
123 124 125
	* keymap.h (Fcopy_keymap): Don't export.

	* lisp.h (empty_string): Declare.
Stefan Monnier's avatar
Stefan Monnier committed
126 127
	(Vload_suffixes, Vexec_suffixes): Declare.
	(openp): Update prototype.
Stefan Monnier's avatar
Stefan Monnier committed
128 129 130 131 132 133 134 135 136 137 138 139 140

	* emacs.c (empty_string): New var.
	(syms_of_emacs): Initialize it.

	* search.c (wordify): Use it.

	* buffer.c (Fbury_buffer): Don't try to remove the buffer from the
	selected window if it's not displayed there.  Handle the case
	when the window is dedicated.
	(syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.

	* undo.c (Fprimitive_undo): Use XCAR/XCDR.

Stefan Monnier's avatar
Stefan Monnier committed
141 142 143 144 145 146 147 148 149
	* syntax.h (struct gl_state_s): Change the meaning of b_property.
	Remove left_ok and right_ok.
	(UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
	(SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
	new meaning of b_property.

	* syntax.c (update_syntax_table): Simplify.
	(Fforward_comment): Don't skip quoted chars when going backward.

150 151
2001-10-11  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
152 153 154 155 156
	* lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
	in case I is of some unsigned type, in which case
	MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
	comparison becomes bogus.

157 158 159 160 161 162
	* editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
	(Fuser_full_name): Fix bug treating a float as a fixnum.

	* data.c (Fstring_to_number): Use make_fixnum_or_float.

	* lisp.h (make_fixnum_or_float): New macro.
Stefan Monnier's avatar
Stefan Monnier committed
163

164 165 166 167 168 169
	* lisp.h (circular_list_error): Add prototype.

	* data.c (Qcircular_list): New variable.
	(circular_list_error): New function.
	(syms_of_data): Initialize it Qcircular_list.

Stefan Monnier's avatar
Stefan Monnier committed
170 171 172 173 174
2001-10-10  Stefan Monnier  <monnier@cs.yale.edu>

	* window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
	casefiddle.c, buffer.c: Include keymap.h.

Gerd Moellmann's avatar
Gerd Moellmann committed
175 176 177 178 179
2001-10-10  Gerd Moellmann  <gerd@gnu.org>

	* s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
	options.  From Dave Love <d.love@dl.ac.uk>.

180 181 182 183 184
2001-10-09  Gerd Moellmann  <gerd@gnu.org>

	* regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
	From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.

Gerd Moellmann's avatar
Gerd Moellmann committed
185 186 187
	* editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
	unsigned char.
	From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
Stefan Monnier's avatar
Stefan Monnier committed
188

Andrew Innes's avatar
Andrew Innes committed
189 190 191 192 193 194 195 196 197 198
2001-10-08  Andrew Innes  <andrewi@gnu.org>

	* lisp.h [max]: Undef min and max before redefining them.

	* w32gui.h: Do not undef min and max.

	* w32heap.h: Do not undef min and max.

	* s/ms-w32.h: Do not undef min and max.

199 200 201 202
2001-10-08  Stefan Monnier  <monnier@cs.yale.edu>

	* xdisp.c (handle_fontified_prop): Don't bind after-change-functions.

203 204 205 206
2001-10-08  Sam Steingold  <sds@gnu.org>

	* keymap.c (current-active-maps): Quote newlines (compilation error).

Eli Zaretskii's avatar
Eli Zaretskii committed
207 208 209 210 211 212
2001-10-08  Eli Zaretskii  <eliz@is.elta.co.il>

	* Makefile.in (lisp, shortlisp): Replace bindings.el with
	bindings.elc, since otherwise doc strings in bindings.el get wrong
	offsets in etc/DOC.

Stefan Monnier's avatar
Stefan Monnier committed
213 214
2001-10-08  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
215 216 217 218 219
	* lisp.h: Remove the entries for keymap.c (moved to keymap.h).

	* keyboard.h (map_prompt): Remove.

	* xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
Gerd Moellmann's avatar
Gerd Moellmann committed
220
	* intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
Stefan Monnier's avatar
Stefan Monnier committed
221

Stefan Monnier's avatar
Stefan Monnier committed
222 223 224 225 226 227 228 229 230 231
	* xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.

	* w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.

	* keyboard.c (map_prompt): Remove.
	(read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
	Use Fkeymap_prompt.

	* keymap.h: New file.  Extracted from lisp.h.

Stefan Monnier's avatar
Stefan Monnier committed
232 233 234 235 236 237 238 239 240 241 242
	* keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
	(accessible_keymaps_1): New function.
	(Faccessible_keymaps, accessible_keymaps_char_table): Use it.
	(Fwhere_is_internal): Use Fcurrent_active_maps.
	(Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
	Insert in current buffer rather than standard-output.
	Don't call `help-mode'.  Export to elisp.
	(describe_buffer_bindings): New wrapper.
	(syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
	and Sdescribe_buffer_bindings.

243 244
2001-10-08  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
245
	* atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
246 247
	Remove code setting signal handler.

Stefan Monnier's avatar
Stefan Monnier committed
248
	* sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
249 250
	Clear ICRNL and INLCR.  From Daiki Ueno <ueno@unixuser.org>.

Pavel Janík's avatar
Pavel Janík committed
251 252 253 254
2001-10-08  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* keyboard.c: Don't define min/max.

255 256
2001-10-08  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
257
	* xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
Gerd Moellmann's avatar
Gerd Moellmann committed
258
	* w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
Stefan Monnier's avatar
Stefan Monnier committed
259
	* sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
Gerd Moellmann's avatar
Gerd Moellmann committed
260
	* intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
Stefan Monnier's avatar
Stefan Monnier committed
261
	* dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
Gerd Moellmann's avatar
Gerd Moellmann committed
262 263 264 265
	Don't define min/max.

	* lisp.h (min, max): New macros.

266 267
	* puresize.h (BASE_PURESIZE): Increase to 725000.

Pavel Janík's avatar
Pavel Janík committed
268 269
2001-10-08  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Pavel Janík's avatar
Pavel Janík committed
270 271
	* xfaces.c (free_frame_menubar): Add prototype.

272 273 274 275 276
	* lisp.h (init_window): Add prototype.

	* editfns.c: Include ctype.h.

	* xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
Stefan Monnier's avatar
Stefan Monnier committed
277
	(xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
278 279 280
	(x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
	variable `sb'.

Pavel Janík's avatar
Pavel Janík committed
281 282 283 284
	* xfns.c (Fx_hide_tip): Fix typo in a doc string.
	(Fx_file_dialog) [USE_MOTIF]: Remove unused variables
	`popup_activated_flag' and `title'.

Pavel Janík's avatar
Pavel Janík committed
285 286
	* doc.c (Fdocumentation_property): Fix typo in a doc string.

Pavel Janík's avatar
Pavel Janík committed
287 288
	* emacs.c (main): Remove extra `;'.

Pavel Janík's avatar
Pavel Janík committed
289 290 291 292
	* atimer.h (struct atimer): Fix typos in a comment.

	* atimer.c: Fix typo.

Pavel Janík's avatar
Pavel Janík committed
293 294 295
	* Makefile.in: Fix typo.

	* README: Remove obsolete part mentioning removed VMS file.
Pavel Janík's avatar
Pavel Janík committed
296

Miles Bader's avatar
Miles Bader committed
297 298 299 300
2001-10-07  Miles Bader  <miles@gnu.org>

	* Makefile.in (lisp, shortlisp): Add `button.elc'.

Ken Raeburn's avatar
Ken Raeburn committed
301 302
2001-10-07  Ken Raeburn  <raeburn@gnu.org>

303 304 305
	* minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
	Lisp_Object.

Ken Raeburn's avatar
Ken Raeburn committed
306 307
	* lisp.h (Ffield_end): Declare.

Gerd Moellmann's avatar
Gerd Moellmann committed
308 309
2001-10-07  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
310 311 312 313 314 315 316 317
	* keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.

	* insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.

	* floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.

	* dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.

Gerd Moellmann's avatar
Gerd Moellmann committed
318 319 320 321 322 323
	* bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
	(METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.

	* alloc.c (inhibit_garbage_collection): Simplify.
	(Fmemory_use_counts): Ditto.

Stefan Monnier's avatar
Stefan Monnier committed
324
	* data.c (most_positive_fixnum, most_negative_fixnum): New variables.
Gerd Moellmann's avatar
Gerd Moellmann committed
325 326 327
	(syms_of_data): DEFVAR_INT most-positive-fixnum and
	most-negative-fixnum.

Stefan Monnier's avatar
Stefan Monnier committed
328
	* lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
Gerd Moellmann's avatar
Gerd Moellmann committed
329 330
	(FIXNUM_OVERFLOW_P): New macros.

Miles Bader's avatar
Miles Bader committed
331 332 333 334 335 336 337 338 339 340 341 342 343
2001-10-06  Miles Bader  <miles@gnu.org>

	* xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
	scroll_bar_bottom_shadow_pixel fields.
	* xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
	for the shadows, and tell the toolkit about them if we succeed.
	(x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
	Free scroll-bar shadow colors.
	* xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
	Free scroll-bar shadow colors when the background color changes.
	(Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
	Initialize scroll-bar shadow-color fields.

Gerd Moellmann's avatar
Gerd Moellmann committed
344 345 346 347
2001-10-05  Gerd Moellmann  <gerd@gnu.org>

	* fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.

Miles Bader's avatar
Miles Bader committed
348 349
2001-10-05  Miles Bader  <miles@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
350 351
	* minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
	(Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
Miles Bader's avatar
Miles Bader committed
352
	New functions (were in simple.el).
Stefan Monnier's avatar
Stefan Monnier committed
353
	(Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
Miles Bader's avatar
Miles Bader committed
354 355 356
	(read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
	(syms_of_minibuf): Initialize them.

Gerd Moellmann's avatar
Gerd Moellmann committed
357 358 359 360 361
2001-10-05  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
	(tiff_load): Install them as error and warning handler.

Andrew Innes's avatar
Andrew Innes committed
362 363 364 365
2001-10-04  Andrew Innes  <andrewi@gnu.org>

	* w32fns.c (x_to_w32_color): Fix argument to alloca.
	(w32_load_system_font): Don't believe what GetLanguageFontInfo
Stefan Monnier's avatar
Stefan Monnier committed
366
	says; query codepage info directly to determine if font is double byte.
Andrew Innes's avatar
Andrew Innes committed
367 368 369 370 371 372 373 374 375 376
	(x_to_w32_charset): Handle private format for unknown charsets.
	Handle wildcards in charset spec, by ignoring them.
	(w32_codepage_for_font): Fix argument to alloca.  Don't remove
	"*-" prefix from charset.
	(x_to_w32_font): Enlarge remainder array for safety.  Specifically
	handle the truncated font spec form constructed by font_list_1, so
	that we correctly identify the charset fields.  Don't remove "*-"
	prefix from charset.
	(w32_list_synthesized_fonts): Fix argument to alloca.

Gerd Moellmann's avatar
Gerd Moellmann committed
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504
2001-10-04  Stefan Monnier  <monnier@cs.yale.edu>

	* window.h (MINI_WINDOW_P): Use NILP.

	* coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.

	* termhooks.h (struct input_event): Use proper type for `kind'.

2001-10-04  Gerd Moellmann  <gerd@gnu.org>

	This handles unknown keysyms better than before.  For example,
	after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
	Emacs formerly completely ignored F5.  With the change, it derives
	a key symbol from the name of the X keysym, `ccaron' in this case.
	Reported by Martin Buchholz.

	* xterm.c (XTread_socket): Return a non_ascii_keystroke for
	unknown keysyms.

	* keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
	that EVENT->code isn't a function key, use the keysym's name.

2001-10-04  Gerd Moellmann  <gerd@gnu.org>

	FOREACH is a macro that should make it easier to loop over Lisp
	lists with checks for cycles and proper lists.

	* lisp.h (LIST_END_P, FOREACH): New macros.

2001-10-04  Gerd Moellmann  <gerd@gnu.org>

	On some systems, XtCloseDisplay seems to cause a SIGSEGV when
	called for a lost connection.  Prevent dumping core in this case.
	Instead print the X error, and exit.  On user request.

	* xterm.c (error_msg): New variable.
	(x_fatal_error_signal): New function.
	(x_connection_closed): Set error_msg.  Install x_fatal_error_signal
	as fatal_error_signal_hook around the call to XtCloseDisplay.

	* emacs.c (fatal_error_signal_hook): New variable.
	(fatal_error_signal): Call that function.

2001-10-04  Gerd Moellmann  <gerd@gnu.org>

	With this, Emacs prints how much pure storage it will
	approximately need in case pure storage overflows while dumping.

	* alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
	New variables.
	(init_alloc_once): Initialize new variables.
	(PURE_POINTER_P): Use new variables.
	(pure_alloc): If pure storage overflows, allocate from the heap.
	(check_pure_size): New function.
	(Fgarbage_collect): Don't GC if pure storage has overflowed.

	* lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
	(check_pure_size): Add prototype.

	* emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.

2001-10-04  Gerd Moellmann  <gerd@gnu.org>

	This adds a post-gc-hook that's run with GC inhibited.
	Requested by Francois Pinard.  XEmacs has it.  Added to NEWS.

	* alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
	(syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
	(Fgarbage_collect): Run post-gc-hook.

2001-10-04  Gerd Moellmann  <gerd@gnu.org>

	This adds `defvaralias' and `indirect-variable'.  Changes not
	directly related to this feature are there to gain the same
	performance again as before variable aliases.

	You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
	code to get and set symbol values, to take defvaralias into account.

	(Note: the new `constant' bit-flag in symbols would make it
	possible to define arbitrary read-only variables, e.g. with
	`defconst'.)

	Documentation is in lispref/variables.texi.  Added to NEWS.

	* lisp.h (enum symbol_interned): New enumeration.
	(struct Lisp_Symbol): Remove member `obarray', add
	`indirect_variable', `constant', and `interned'.
	(SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
	(SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
	(indirect_variable): Add prototype.

	* print.c (print_preprocess, print_object): Test internedness of
	symbols differently.

	* lread.c (Fintern, Funintern): Set symbol's interned and constant
	bit-fields.
	(init_obarray): Likewise for t and nil.

	* eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
	(Fdefvaralias): New function.
	(specbind): Simplify the test if symbol is a constant.
	(syms_of_eval): Defsubr Fdefvaralias.

	* data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
	(Qcyclic_variable_indirection): New variable.
	(Fkeywordp): Check for internedness differently.
	(Fmakunbound): Simplify the test if symbol is a constant.
	(indirect_variable, Findirect_variable): New functions.
	(swap_in_symval_forwarding): If SYMBOL is an alias, use the
	aliased symbol.
	(let_shadows_buffer_binding_p): Check for variable aliases.
	(set_internal): Simplify the test if SYMBOL is a constant.
	If SYMBOL has a buffer-local value and is an alias, use the aliased
	symbol instead.
	(syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
	Sindirect_variable.

	* bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
	(Fbyte_code) <varset>: Simplify the test if symbol's value can be
	set directly.

	* alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.

	* abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
	* minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
	SET_SYMBOL_VALUE macros instead of accessing symbol values directly.

Gerd Moellmann's avatar
Gerd Moellmann committed
505 506 507 508
2001-10-04  Gerd Moellmann  <gerd@gnu.org>

	* Branch for 21.1.
	
509 510 511 512 513 514
2001-10-03  Miles Bader  <miles@gnu.org>

	* callproc.c (syms_of_callproc): Explicitly state in the
	documentation for `process-environment' that earlier entries take
	precedence over later ones.

Miles Bader's avatar
Miles Bader committed
515 516 517 518 519 520
2001-10-02  Miles Bader  <miles@gnu.org>

	* textprop.c (Fnext_char_property_change)
	(Fprevious_char_property_change): Remove reference to non-existant
	argument OBJECT from doc-string.

521 522 523 524 525 526 527 528 529
2001-10-01  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
	(try_window_id): Skip back over lines ending in a newline from a
	string.

	* dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
	New bit flag

530 531 532 533
2001-10-01  Richard M. Stallman  <rms@gnu.org>

	* search.c (Freplace_match): Doc fix.

534 535 536 537 538 539
2001-09-28  Andrew Innes  <andrewi@gnu.org>

	* w32menu.c (set_frame_menubar): Take into account that
	f->menu_bar_vector can be nil, and not a vector.  From Ken Raeburn
	<raeburn@gnu.org>.

Eli Zaretskii's avatar
Eli Zaretskii committed
540 541 542 543
2001-09-30  Eli Zaretskii  <eliz@is.elta.co.il>

	* frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.

Pavel Janík's avatar
Pavel Janík committed
544 545 546 547
2001-09-28  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* s/gnu-linux.h: Fix a typo in comment.

Andreas Schwab's avatar
.  
Andreas Schwab committed
548 549 550 551 552
2001-09-28  Andreas Schwab  <schwab@suse.de>

	* s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
	nocombreloc, in case -z combreloc is the default.

553 554 555 556 557
2001-09-28  Gerd Moellmann  <gerd@gnu.org>

	* m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
	really going on here.

558 559 560 561
2001-09-27  Stefan Monnier  <monnier@cs.yale.edu>

	* search.c (trivial_regexp_p): Catch \{N,M\} as well.

562 563 564 565 566 567 568 569
2001-09-27  Eli Zaretskii  <eliz@is.elta.co.il>

	* Makefile.in (shortlisp): Resync with loadup.el: add backquote,
	utf-8, menu-bar, and latin-N.
	(SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
	unconditionally now.
	(lisp): Add latin-N, since they are preloaded.

Gerd Moellmann's avatar
Gerd Moellmann committed
570 571
2001-09-27  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
572 573 574
	* xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
	to the left.  Some cleanup.

Gerd Moellmann's avatar
Gerd Moellmann committed
575 576 577
	* xdisp.c (display_mode_element): One more case where a string's
	multibyteness should be used for display.

578 579
2001-09-26  Gerd Moellmann  <gerd@gnu.org>

580 581 582
	* fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
	reading at EOF.

583
	* xdisp.c (with_echo_area_buffer): Use echo_kboard instead
Gerd Moellmann's avatar
Gerd Moellmann committed
584
	of the only temporarily set echoing flag for deciding when
585 586 587 588 589 590
	the cancel echoing.

	* keyboard.c (echo_kboard): Make externally visible.

	* lisp.h (echo_kboard): Declare extern.

591
	* xdisp.c (make_cursor_line_fully_visible): Return 0 and set
Gerd Moellmann's avatar
Gerd Moellmann committed
592
	fonts_changed_p if we need larger matrices due to vscrolling.
593 594 595
	(try_scrolling, try_cursor_movement, redisplay_window): Give up on
	this round of redisplay if make_cursor_line_fully_visible fails.
	(CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
596
	(try_cursor_movement, try_scrolling): Use them instead of integers.
597 598 599 600

	* dispextern.h (required_matrix_width, required_matrix_height):
	Add prototypes.

601 602
	* dispnew.c (required_matrix_width, required_matrix_height):
	New functions.
603
	(allocate_matrices_for_window_redisplay)
604 605
	(allocate_matrices_for_frame_redisplay: Use them.
	Remove parameters CH_DIM.
606

607 608 609 610
	* xdisp.c (display_mode_lines): Temporarily set selected_frame
	and selected_window to the frame of the window whose mode-lines
	are displayed, and to the window itself.
	(redisplay_window, redisplay_mode_lines): Don't set selected_frame
611
	here.
612

Gerd Moellmann's avatar
Gerd Moellmann committed
613 614
2001-09-25  Gerd Moellmann  <gerd@gnu.org>

615 616 617
	* xfns.c (x_kill_gs_process): Recognize if someone has cleared
	the image cache under us.

618
	* xdisp.c (display_mode_element): If the mode element is a symbol
619
	with a string value, use that string's multibyteness for displaying.
620

Gerd Moellmann's avatar
Gerd Moellmann committed
621 622 623
	* keyboard.c (read_char): Don't clear a message for a switch-frame
	event.   From Stefan Monnier  <monnier@cs.yale.edu>.

624 625 626 627 628 629 630
	* xterm.c (fast_find_position) [0]: Add a presumably more correct
	version for after 21.1.

	* xdisp.c (row_containing_pos): Make externally visible.

	* dispextern.h (row_containing_pos): Add prototype.

Gerd Moellmann's avatar
Gerd Moellmann committed
631 632 633
	* process.c (send_process): Disable composition if from_byte < 0.
	From Kenichi Handa <handa@etl.go.jp>.

Gerd Moellmann's avatar
Gerd Moellmann committed
634 635
2001-09-24  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
636 637
	* xterm.c (refreshicon): Function removed.

638 639 640 641 642 643
	* Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.

	* sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.

	* xterm.c (toplevel): Remove includes in #if 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
644 645 646
	* process.c (sigchld_handler) [LINUX]: Don't return from
	the signal handler at the end of the loop.

647 648
2001-09-21  Gerd Moellmann  <gerd@gnu.org>

649 650
	* sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
	Terminate only if kill returns -1, and errno is ESRCH.
651

652 653 654 655
2001-09-21  Markus Rost  <rost@math.ohio-state.edu>

	* Makefile.in (shortlisp): Add ../lisp/env.elc.

656 657
2001-09-20  Gerd Moellmann  <gerd@gnu.org>

658 659 660
	* process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
	since this function can be called during GC.

661 662 663
	* callproc.c (Fcall_process): Handle errors from pipe(2).
	(child_setup): Delete code in #ifdef vipc.

Gerd Moellmann's avatar
Gerd Moellmann committed
664 665
2001-09-19  Gerd Moellmann  <gerd@gnu.org>

666 667 668 669
	* xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
	(display_mode_element): Display the string from decode_mode_spec
	depending on its multibyteness.

670 671
	* s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.

Gerd Moellmann's avatar
Gerd Moellmann committed
672 673
	* m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.

674 675
2001-09-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
676 677 678 679 680
	* keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
	recursive_edit_unwind.
	(recursive_edit_unwind): Set kboard state according to
	SINGLE-KBOARD.

Gerd Moellmann's avatar
Gerd Moellmann committed
681 682 683 684 685 686
	* buffer.c (modify_overlay): Don't do nothing if START == END;
	This can still be a modification, for example when an overlay has
	a before-string or after-string.
	(Fdelete_overlay): Prevent redisplay optimizations when deleting
	an overlay with before-string or after-string.

Gerd Moellmann's avatar
Gerd Moellmann committed
687 688 689
	* s/netbsd.h (C_SWITCH_SYSTEM): Add.
	(LD_SWITCH_SYSTEM): Include /usr/local/lib.

690 691 692 693 694
	* xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
	first_unchanged_at_end_row is in front of
	last_unchanged_at_beg_row.  This code should be removed after the
	release of 21.1.

Gerd Moellmann's avatar
Gerd Moellmann committed
695 696
2001-09-17  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
697 698 699
	* buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
	BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.

Gerd Moellmann's avatar
Gerd Moellmann committed
700 701 702
	* m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
	versions >= 2.95.

Eli Zaretskii's avatar
Eli Zaretskii committed
703 704 705 706
2001-09-14  Eli Zaretskii  <eliz@is.elta.co.il>

	* dired.c (Ffile_attributes): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
707 708 709 710 711 712
2001-09-14  Gerd Moellmann  <gerd@gnu.org>

	* fileio.c (Ffile_symlink_p): Fix last change.

	* filelock.c (current_lock_owner): Fix last change.

713 714
2001-09-13  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
715 716 717
	* filelock.c (current_lock_owner): If readlink returns ERANGE,
	take that to mean that the buffer is too small.

718 719 720
	* fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
	that to mean that the buffer is too small.

721 722 723 724
	* xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
	current buffer's multibyteness when discarding the iterator's
	stack.

725 726 727
	* xfns.c (Fx_window_property): Handle case that property gets
	deleted between the two calls to XGetWindowProperty.

Gerd Moellmann's avatar
Gerd Moellmann committed
728 729
2001-09-11  Gerd Moellmann  <gerd@gnu.org>

730 731
	* minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
	
732 733 734 735 736 737 738 739 740 741 742
	* minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
	in addition to read-only.

	* xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
	to t in addition to read-only.

	* lisp.h (Qinhibit_modification_hooks): Declare.

	* insdel.c (Qinhibit_modification_hooks): New variable.
	(syms_of_insdel): Initialize and staticpro it.

743 744 745 746 747 748 749
	* textprop.c (verify_interval_modification): Don't run
	modification-hooks if inhibit_modification_hooks.

	* dispnew.c (set_window_cursor_after_update): Fix code
	finding glyph row containing cursor when cursor_in_echo_area
	is >= 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
750 751 752 753 754
	* xdisp.c (init_from_display_pos): Put some code in #if 0.
	(add_to_log): Use bcopy instead of strcpy.
	(init_from_display_pos): Use an explicit loop over bytes in
	overlay strings instead of calling index.

755 756
2001-09-10  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
757 758 759 760 761
	* alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.

	* dispnew.c (direct_output_for_insert): Don't change IT's
	stop_charpos to something in front of its current position.

762 763 764
	* xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
	`format'.

765 766 767 768
2001-09-10  Richard M. Stallman  <rms@gnu.org>

	* frame.c (Fmouse_position): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
769 770 771 772 773
2001-09-07  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (init_from_display_pos): Don't compare the result
	of calling index with NULL.

774 775 776 777 778
2001-09-06  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (x_set_background_color): Don't change the colors
	of the X window of scroll bar widgets.

779 780 781 782
2001-09-05  Andrew Innes  <andrewi@gnu.org>

	* w32fns.c (w32_createwindow): Undo last change.

Gerd Moellmann's avatar
Gerd Moellmann committed
783 784
2001-09-05  Gerd Moellmann  <gerd@gnu.org>

785 786
	* macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.

Gerd Moellmann's avatar
Gerd Moellmann committed
787 788 789
	* xdisp.c (string_buffer_position): Use *single_char_property*
	functions instead of the *single_property* functions.
	
790 791
2001-09-04  Andrew Innes  <andrewi@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
792 793
	* w32term.c (w32_read_socket): Add more information to debugging
	output.
794 795 796 797 798 799 800 801

	* w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
	from Emacs frames, so that calls to GetClipBox in w32term.c
	correctly report when part of a frame is visible (including
	scrollbars, etc).  This prevents repeated redrawing of frames when
	only a scrollbar is visible.
	(w32_wnd_proc): Add more frame information to debugging output.

Stefan Monnier's avatar
Stefan Monnier committed
802 803 804 805
2001-09-03  Stefan Monnier  <monnier@cs.yale.edu>

	* xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.

Gerd Moellmann's avatar
Gerd Moellmann committed
806 807
2001-09-03  Gerd Moellmann  <gerd@gnu.org>

808 809 810 811 812 813 814 815 816 817
	* xterm.c (note_mouse_highlight) <help-echo>: When looking for
	help-echo for a string which doesn't have help-echo itself, use
	get-char-property to obtain the help-echo from the string's buffer
	(note_mouse_highlight) <mouse-face>: When on a string that doesn't
	have mouse-face, look ``under'' the string for mouse-face from an
	overlay.
	(fast_find_position): Add parameter STOP.  In the final row, stop
	before glyphs having STOP as object.  Don't consider glyphs that
	are not from a buffer.

Gerd Moellmann's avatar
Gerd Moellmann committed
818 819
	* buffer.c (syms_of_buffer) <default-directory>: Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
820 821 822 823
2001-09-01  Eli Zaretskii  <eliz@is.elta.co.il>

	* fns.c (Fmd5): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
824 825 826 827 828
2001-08-31  Gerd Moellmann  <gerd@gnu.org>

	* composite.c (update_compositions): Do nothing if
	inhibit-modification-hooks is set.

Gerd Moellmann's avatar
Gerd Moellmann committed
829 830
2001-08-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
831
	* emacs.c (shut_down_emacs): Don't call check_glyph_memory
Eli Zaretskii's avatar
Eli Zaretskii committed
832
	and check_message_stack if terminating abnormally.  We want
Gerd Moellmann's avatar
Gerd Moellmann committed
833 834
	glyph matrices etc. in a core dump.

Gerd Moellmann's avatar
Gerd Moellmann committed
835 836 837 838
	* xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
	(syms_of_xdisp): Initialize them.
	(handle_single_display_prop): Don't change point, bind `object',
	`position', and `buffer-position' instead to the object having the
Stefan Monnier's avatar
Stefan Monnier committed
839
	`display' property, position in the object and position in the buffer.
Gerd Moellmann's avatar
Gerd Moellmann committed
840

Gerd Moellmann's avatar
Gerd Moellmann committed
841 842 843
	* fileio.c (Finsert_file_contents): Don't change the multibyteness
	of the buffer if REPLACE is non-nil.

844 845 846 847
2001-08-29  Gerd Moellmann  <gerd@gnu.org>

	* fileio.c (Finsert_file_contents): Undo change of 2001-08-27.

848 849 850 851 852
2001-08-28  Eli Zaretskii  <eliz@is.elta.co.il>

	* w32term.c (x_set_glyph_string_background_width)
	(show_mouse_face): Track the last changes in xterm.c.

853 854
2001-08-28  Gerd Moellmann  <gerd@gnu.org>

855 856 857 858 859 860
	* xterm.c (x_set_glyph_string_background_width): Set the glyph
	string's background width so that multi-line mouse-face is drawn
	to the right edge of the window.
	(show_mouse_face): Set the row's mouse_face_p flag after drawing
	glyphs.

Gerd Moellmann's avatar
Gerd Moellmann committed
861
	* dispnew.c (direct_output_for_insert): Set updated_area
Gerd Moellmann's avatar
Gerd Moellmann committed
862
	before inserting/writing glyphs.
Gerd Moellmann's avatar
Gerd Moellmann committed
863

864 865 866 867 868 869
	* xdisp.c (display_mode_element): Use string_byte_to_char to
	determine character positions in strings, use chars_in_text
	instead of strwidth.
	(dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
	a matrix as parameter; this is easier to use from GDB.

Miles Bader's avatar
Miles Bader committed
870 871
2001-08-28  Miles Bader  <miles@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
872 873
	* textprop.c (Fprevious_single_char_property_change)
	(Fnext_single_char_property_change): Doc fixes.
Miles Bader's avatar
Miles Bader committed
874

875 876
2001-08-27  Gerd Moellmann  <gerd@gnu.org>

877 878 879 880 881 882 883 884 885
	* fileio.c (Finsert_file_contents): Allocate, restore, and
	free composition data in the case of REPLACE not being nil.

	* xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
	there exist overlay strings with newlines at POS.
	(text_outside_line_unchanged_p): Return 0 if changes start at
	START and overlays exist at START.  Likewise for END.
	(try_window_id): Give up if init_to_row_end returns 0.

886 887 888
	* fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
	unconditionally.

889 890
2001-08-24  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
891 892 893
	* keymap.c (access_keymap): Return the cdr of the binding of
	a generic character instead of its definition (KEY . BINDING).

894 895 896
	* fileio.c (Finsert_file_contents): Set coding's dest_multibyte
	to 0 also in the REPLACE case.

897 898 899 900 901
2001-08-24  Andrew Choi  <akochoi@cse.cuhk.edu.hk>

	* fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
	open to determine whether file is readable (as for DOS_NT).

Gerd Moellmann's avatar
Gerd Moellmann committed
902 903 904 905 906 907 908 909
2001-08-23  Gerd Moellmann  <gerd@gnu.org>

	* fileio.c (Finsert_file_contents): If VISIT is non-nil, and
	coding.type is coding_type_no_conversion or coding_type_raw_text,
	use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
	non-nil instead of just setting enable_multibyte_characters in the
	buffer to nil.

Gerd Moellmann's avatar
Gerd Moellmann committed
910 911
2001-08-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
912 913 914 915 916 917 918 919 920 921 922 923 924 925
	* dispextern.h (struct face_cache): Add member
	menu_face_changed_p.

	* xfaces.c (menu_face_changed_default): New variable.
	(menu_face_changed_count): Variable removed.
	(Finternal_set_lisp_face_attribute): Doc fix.  If FRAME is t, set
	the menu_face_changed_default flag, otherwise set the FRAME's
	menu_face_changed_p flag if the `menu' face has been changed.
	Prevent calling set_font_frame_param if FRAME is t.
	(make_face_cache): Initialize cache's menu_face_changed_p
	from menu_face_changed_default.
	(realize_basic_faces): Look into the frame's face cache to
	determine if the menu appearance needs updating.

Gerd Moellmann's avatar
Gerd Moellmann committed
926 927 928
	* keymap.c (access_keymap): Fix last change to not consider
	IDX when it has modifiers.

929 930 931 932 933 934 935
2001-08-21  Gerd Moellmann  <gerd@gnu.org>

	* keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
	. BINDING) exists, where GENERIC-CHAR is the generic character of
	the charset of IDX, return BINDING unless there exists a binding
	for IDX itself.

936 937
2001-08-16  Gerd Moellmann  <gerd@gnu.org>

938 939 940
	* xrdb.c (SYSV): Don't define on Solaris 2.
	From Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>.

941
	* xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
Stefan Monnier's avatar
Stefan Monnier committed
942
	of the screen line, not text line, containing IT's current position.
943

Gerd Moellmann's avatar
Gerd Moellmann committed
944 945
2001-08-15  Gerd Moellmann  <gerd@gnu.org>

946 947 948
	* window.c (window_scroll_pixel_based): Don't recenter if
	PT is partially visible in the window.

Stefan Monnier's avatar
Stefan Monnier committed
949 950
	* xterm.c (expose_window_tree, expose_window, expose_line):
	Return 1 when overwriting mouse-face.
951 952
	(expose_frame): If mouse-face was overwritten, redo it.

Gerd Moellmann's avatar
Gerd Moellmann committed
953 954 955
	* xfaces.c (x_update_menu_appearance): Don't call
	set_frame_menubar, let the next redisplay do it.

Andrew Innes's avatar
Andrew Innes committed
956 957 958 959 960
2001-08-14  Andrew Innes  <andrewi@gnu.org>

	* w32term.c (x_draw_glyph_string): Draw relief (if any) before
	drawing glyph string.

Eli Zaretskii's avatar
Eli Zaretskii committed
961 962 963 964 965
2001-08-14  Eli Zaretskii  <eliz@is.elta.co.il>

	* s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
	running HI-UX/MPP.

966 967 968 969 970
2001-08-14  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (x_update_menu_appearance): Save and restore value of
	interrupt_input_blocked.

Gerd Moellmann's avatar
Gerd Moellmann committed
971 972
2001-08-13  Gerd Moellmann  <gerd@gnu.org>

973 974
	* xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
	a line start, move back to the line start.
Stefan Monnier's avatar
Stefan Monnier committed
975

Gerd Moellmann's avatar
Gerd Moellmann committed
976 977 978
	* xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
	exactly when a mini-buffer is active.

Gerd Moellmann's avatar
Gerd Moellmann committed
979 980 981 982
	* keyboard.c (make_lispy_event): Interpret double_click_fuzz
	in units of 1/8 character on non window-system frames.
	(syms_of_keyboard) <double-click-fuzz>: Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
983 984 985 986 987
2001-08-10  Eli Zaretskii  <eliz@is.elta.co.il>

	* keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
	a doc string.

Gerd Moellmann's avatar
Gerd Moellmann committed
988 989
2001-08-09  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
990 991 992 993 994
	* keyboard.c (Vpre_help_message): New variable.
	(syms_of_keyboard): Initialize and staticpro it.
	(show_help_echo): Record current message before displaying a
	help-echo, and restore that message when clearing the help.

Gerd Moellmann's avatar
Gerd Moellmann committed
995 996 997 998 999
	* xfns.c (x_create_im): Remove prototype.

	* xdisp.c (mark_window_display_accurate_1): Remove an assertion.

	* dispnew.c (adjust_glyph_matrix): Undo last change.
Stefan Monnier's avatar
Stefan Monnier committed
1000

Gerd Moellmann's avatar
Gerd Moellmann committed
1001 1002 1003
2001-08-08  Gerd Moellmann  <gerd@gnu.org>

	* dispnew.c (adjust_glyph_matrix): In the optimization for
Stefan Monnier's avatar
Stefan Monnier committed
1004
	windows whose height has changed, disable partially visible lines.
Gerd Moellmann's avatar
Gerd Moellmann committed
1005

1006 1007
2001-08-07  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1008
	* window.c (Frecenter): If ARG < 0, and on a window system
Stefan Monnier's avatar
Stefan Monnier committed
1009
	frame, count in some empty lines when we can't move -ARG lines down.
Gerd Moellmann's avatar
Gerd Moellmann committed
1010

1011 1012 1013 1014 1015
	* xdisp.c (start_display): Don't try to determine the continuation
	lines width if lines are truncated.  It's superfluous and leads to
	incorrect results if POS is not visible in the window after
	reseating the iterator at the previous line start.

Gerd Moellmann's avatar
Gerd Moellmann committed
1016 1017 1018 1019
2001-08-06  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.

1020 1021 1022 1023
2001-08-06  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* alloc.c (init_stack): Remove declaration.

1024 1025
2001-08-03  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1026 1027 1028 1029 1030
	* keyboard.c (read_key_sequence): Check that key is an integer
	before comparing it with quit_char.
	(add_command_key): Use larger_vector.
	(read_char_x_menu_prompt): Instead of converting symbol and
	integer events into conses (EVENT . nil), use (EVENT . disabled)
Gerd Moellmann's avatar
Gerd Moellmann committed
1031
	which cannot be confused with valid events.
Gerd Moellmann's avatar
Gerd Moellmann committed
1032 1033 1034 1035
	(read_char): When reading from Vunread_command_events, check for
	events of the form (EVENT . disabled) instead of
	(EVENT . nil).

1036 1037 1038
	* xdisp.c (resize_mini_window): If Vmax_mini_window_height is
	a float, determine the max height from the frame's height.

Gerd Moellmann's avatar
Gerd Moellmann committed
1039 1040 1041 1042 1043
2001-08-02  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (redisplay_internal): Take message_cleared_p into
	account only if minibuf_level == 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
1044 1045
2001-08-01  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1046 1047
	* xdisp.c (redisplay_internal): Add a check for the last
	displayed message.
Stefan Monnier's avatar
Stefan Monnier committed
1048

1049 1050 1051 1052 1053 1054
	* xdisp.c (message_cleared_p): New variable.
	(clear_message): Set message_cleared_p when clearing the current
	message.
	(redisplay_internal): Look at message_cleared_p to capture
	the case that the echo area should be cleared.

1055 1056 1057
	* keyboard.c (command_loop_1): Fix spelling of
	resize_echo_area_exactly.

Stefan Monnier's avatar
Stefan Monnier committed
1058
	* dispextern.h (resize_echo_area_exactly): Fix typo in function name.
1059 1060 1061

	* xdisp.c (resize_echo_area_exactly): Fix typo in function name.

Gerd Moellmann's avatar
Gerd Moellmann committed
1062 1063 1064
	* xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
	current matrix when the window gets smaller.

1065 1066 1067 1068 1069
2001-08-01  Eli Zaretskii  <eliz@is.elta.co.il>

	* print.c (strout): Cast the character passed to insert_char to
	unsigned char, to avoid sign extension when it is promoted to int.

Gerd Moellmann's avatar
Gerd Moellmann committed
1070 1071 1072 1073 1074
2001-07-31  Gerd Moellmann  <gerd@gnu.org>

	* fileio.c (Finsert_file_contents): Don't treat a return value
	of 0 from emacs_read as an IO error.

Gerd Moellmann's avatar
Gerd Moellmann committed
1075 1076
2001-07-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1077 1078 1079 1080 1081
	* keyboard.c (abs): New macro.
	(double_click_fuzz): New variable.
	(make_lispy_event): Use it to determine what makes a double-click.
	(syms_of_keyboard): DEFVAR_INT it.

Gerd Moellmann's avatar
Gerd Moellmann committed
1082 1083 1084 1085
	* xmenu.c (set_frame_menubar): Take into account that
	f->menu_bar_vector can be nil, and not a vector.  From Ken Raeburn
	<raeburn@gnu.org>.

1086 1087 1088 1089 1090 1091 1092 1093
2001-07-27  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.

	* dispnew.c (shift_glyph_matrix, blank_row): Fix computation
	of row's visible height.

	* xdisp.c (init_from_display_pos): If POS is in an overlay string,
Stefan Monnier's avatar
Stefan Monnier committed
1094 1095 1096
	deal with the first overlay string having an image `display' property.
	(try_window_reusing_current_matrix, compute_line_metrics):
	Fix computation of row's visible height for the case that part of the
1097 1098 1099
	row is invisible above and part of the row is at the same time
	invisible below the window.

Gerd Moellmann's avatar
Gerd Moellmann committed
1100 1101 1102
2001-07-26  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (x-show-tip): Doc fix.
Stefan Monnier's avatar
Stefan Monnier committed
1103

Gerd Moellmann's avatar
Gerd Moellmann committed
1104 1105 1106 1107 1108 1109
	* xfns.c (Vx_max_tooltip_size): New variable.
	(syms_of_xfns): DEFVAR_LISP it.
	(Fx_show_tip): Set frame's window_width to the width of the
	window.  Use a maximum tooltip size specified by
	Vx_max_tooltip_size, if that has valid contents.
	(x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
Stefan Monnier's avatar
Stefan Monnier committed
1110

Andrew Innes's avatar
Andrew Innes committed
1111 1112 1113 1114 1115 1116 1117
2001-07-26  Andrew Innes  <andrewi@gnu.org>

	* w32term.c (x_display_list): New variable.
	(w32_term_init): Set it.

	* w32term.h (x_display_list): New extern.

Gerd Moellmann's avatar
Gerd Moellmann committed
1118 1119 1120
2001-07-26  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (resize_mini_window): Give up when inhibit-redisplay
Stefan Monnier's avatar
Stefan Monnier committed
1121 1122
	is non-nil, instead of when redisplaying_p is non-zero.
	See comment there.
Gerd Moellmann's avatar
Gerd Moellmann committed
1123 1124
	(mark_window_display_accurate_1): Add an assertion.

1125 1126
2001-07-25  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1127 1128
	* dispextern.h (struct it): Increase size of ctl_chars to 16.

1129 1130 1131
	* xfns.c (Fx_file_dialog): Block/unblock input while processing
	events so that we get a chance of processing expose events.

1132 1133
	* xdisp.c (resize_mini_window): Don't resize while redisplaying.

Gerd Moellmann's avatar
Gerd Moellmann committed
1134 1135 1136 1137 1138
2001-07-24  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (valid_image_p): Protect better against invalid image
	specifications.  Previous code could signal an error.

Gerd Moellmann's avatar
Gerd Moellmann committed
1139 1140
2001-07-23  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
1141
	* indent.c (current_column): Fix column computation in the
1142 1143 1144
	presence of display table entries.
	(current_column_1, Fmove_to_column, compute_motion): Likewise.

1145 1146 1147 1148
	* dispnew.c (adjust_glyph_matrix): In the optimization for
	windows whose height has changed, use the new window height
	to compute which rows to invalidate.

Gerd Moellmann's avatar
Gerd Moellmann committed
1149 1150 1151 1152
	* editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
	(MAX_10_EXP): New macro.
	(Fformat): Use it.

Gerd Moellmann's avatar
Gerd Moellmann committed
1153 1154 1155
	* coding.c (code_convert_region): Handle the multibyte case if
	decoding ends with CODING_FINISH_INSUFFICIENT_SRC.

Gerd Moellmann's avatar
Gerd Moellmann committed
1156 1157
2001-07-20  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1158 1159 1160
	* dispextern.h (struct face): Change type of `stipple' to
	int; it's an ID.

Gerd Moellmann's avatar
Gerd Moellmann committed
1161 1162
	* xterm.c (x_fill_stretch_glyph_string): Remove an assertion.

1163 1164
2001-07-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1165 1166 1167
	* dispnew.c (update_window): Don't set the cursor at the end
	of the update if display update has been paused.

Stefan Monnier's avatar
Stefan Monnier committed
1168
	* composite.h (syms_of_composite): Renamed from syms_of_composition.
1169

1170 1171 1172 1173 1174
2001-07-18  Ken Raeburn  <raeburn@gnu.org>

	* fns.c (Fset_char_table_default): Check that a charset is defined
	before checking its dimension.

1175 1176 1177 1178 1179
2001-07-17  Ken Raeburn  <raeburn@gnu.org>

	* coding.c (setup_coding_system): Don't do any designation based
	on reg_bits if charset is not yet defined.

1180
  	* lisp.h (XVECTOR): Verify correct object type before returning a
1181 1182
	pointer, using eassert.

1183 1184
2001-07-17  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
1185 1186
	* keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
	Increase to 4096 because of paste problems reported on GNU/Linux.
1187

Gerd Moellmann's avatar
Gerd Moellmann committed
1188 1189 1190 1191
2001-07-17  Jan Nieuwenhuizen  <janneke@gnu.org>

	* emacs.c (USAGE1): Add +LINE:COLUMN option help.

Gerd Moellmann's avatar
Gerd Moellmann committed
1192 1193
2001-07-16  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1194 1195 1196 1197 1198 1199 1200
	* fileio.c (unwind_read): Function removed.
	(read_non_regular, read_non_regular_quit): New functions.
	(Finsert_file_contents): When reading from non-regular files,
	arrange to catch a `quit' and terminate the loop.  Rearrange
	code so that a `quit' when reading from a regular file doesn't
	insert text in the buffer.

Gerd Moellmann's avatar
Gerd Moellmann committed
1201 1202 1203 1204 1205
	* xfaces.c (clear_face_cache): Clear fonts on a display basis.
	Clear faces afterwards.
	(clear_font_table): Take a x_display_info parameter.  Don't free
	fonts being the default font of any frame on the given display.

1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216
2001-07-13  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
	instead of CHAR_STRING which can signal an error.

	* charset.c (char_to_string_1): Extracted from char_to_string.
	Return -1 instead of signaling an error.
	(char_to_string): Use it.

	* charset.h (CHAR_STRING_NO_SIGNAL): New macro.

1217 1218 1219 1220 1221
2001-07-12  Stefan Monnier  <monnier@cs.yale.edu>

	* coding.c (Ffind_coding_systems_region_internal): If safe_codings
	is t, don't try to append anything to it.

1222 1223 1224 1225 1226
2001-07-12  Eli Zaretskii  <eliz@is.elta.co.il>

	* dired.c (file_name_completion): Pass dp->d_name to
	Fstring_match, not elt, which is always nil here.

1227 1228 1229 1230 1231 1232 1233 1234 1235 1236
2001-07-12  Gerd Moellmann  <gerd@gnu.org>

	* xselect.c (x_decline_selection_request): Handle errors
	caused by receivers that have vanished.

	* xterm.c (XTread_socket) <PropertyNotify>: Put the code
	ignoring events on foreign windows in #if 0.  Always dispatch
	the event after checking it with x_handle_property_notify.

	* xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
1237 1238
	depending on TRACE_SELECTION.  Replace fprintfs in #if 0 with
	TRACE macros to facilitate debugging.  Add additional trace statements.
1239 1240 1241
	(toplevel): Add prototypes for file-local functions.
	(x_atom_to_symbol): Remove DPYINFO parameter.

1242 1243 1244 1245 1246 1247 1248
2001-07-11  Stefan Monnier  <monnier@cs.yale.edu>

	* w32menu.c (menubar_selection_callback, w32_menu_show):
	Initialize `entry' to nil.
	(w32_dialog_show): Remove unused `save_wv' variable.
	(name_is_separator): Recognize "--:foo" and "--foo-bar".

Gerd Moellmann's avatar
Gerd Moellmann committed
1249 1250
2001-07-11  Gerd Moellmann  <gerd@gnu.org>

1251 1252
	* xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.

1253 1254 1255
	* fileio.c (unwind_read): Print a message when discarding inserted
	text or switching the buffer to unibyte.  Change parameter.
	(Finsert_file_contents): Don't pass VISIT to unwind_read.
1256

Gerd Moellmann's avatar
Gerd Moellmann committed
1257 1258 1259 1260
	* fileio.c (unwind_read): New function.
	(Finsert_file_contents): Record it as unwind-function for
	the case that reading is interrupted by C-g.

1261 1262
2001-07-10  Gerd Moellmann  <gerd@gnu.org>

1263
	* dispnew.c (update_window): Don't skip the header-line
1264 1265
	update when scrolling_window returns 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
1266 1267 1268
	* xfaces.c (unload_color): Do nothing if PIXEL is -1.

	* xfns.c (Fx_create_frame): Initialize frame colors to -1,
1269
	for the case that x_decode_color signals an error.
Gerd Moellmann's avatar
Gerd Moellmann committed
1270

1271 1272
	* xdisp.c (add_to_log): Do nothing if called asynchronously.

1273 1274 1275 1276 1277 1278
2001-07-09  Gerd Moellmann  <gerd@gnu.org>

	* sound.c (toplevel): Include <signal.h> and "syssignal.h".
	(vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
	around ioctls.

1279 1280
2001-07-06  Eli Zaretskii  <eliz@is.elta.co.il>

Eli Zaretskii's avatar
Eli Zaretskii committed
1281 1282 1283
	* dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
	doc string line for dos-timezone-offset.

1284 1285
	* msdos.c (do_visible_bell): Add \n\ at the end of each line of
	inline assembly, to avoid compiler warnings.
Eli Zaretskii's avatar
Eli Zaretskii committed
1286 1287
	(syms_of_msdos): Add \n\ at the end of a line in the doc string
	line for dos-unsupported-char-glyph.
1288 1289 1290

	* buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.

1291 1292
2001-07-05  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1293 1294
	* sound.c: Include Emacs' header files with #include "...".

1295 1296 1297
	* eval.c (specbind): Additionally record the buffer that was
	current when a buffer-local or frame-local variable was bound.