ChangeLog 437 KB
Newer Older
Miles Bader's avatar
Miles Bader committed
1 2 3 4 5 6 7 8 9 10 11 12 13
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
14 15 16 17
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
18 19 20 21 22 23 24 25 26
2001-10-05  Miles Bader  <miles@gnu.org>

	* minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents) 
	(Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents): 
	New functions (were in simple.el).
	(Fminibuffer_complete_and_exit, Fminibuffer_complete_word) 
	(read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
	(syms_of_minibuf): Initialize them.

Gerd Moellmann's avatar
Gerd Moellmann committed
27 28 29 30 31
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
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
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
	says; query codepage info directly to determine if font is double
	byte.
	(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
48 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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
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.

176 177 178 179 180 181
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
182 183 184 185 186 187
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.

188 189 190 191 192 193 194 195 196
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

197 198 199 200
2001-10-01  Richard M. Stallman  <rms@gnu.org>

	* search.c (Freplace_match): Doc fix.

201 202 203 204 205 206
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
207 208 209 210
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
211 212 213 214
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
215 216 217 218 219
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.

220 221 222 223 224
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.

225 226 227 228
2001-09-27  Stefan Monnier  <monnier@cs.yale.edu>

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

229 230 231 232 233 234 235 236
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
237 238
2001-09-27  Gerd Moellmann  <gerd@gnu.org>

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

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

245 246
2001-09-26  Gerd Moellmann  <gerd@gnu.org>

247 248 249
	* fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
	reading at EOF.

250
	* xdisp.c (with_echo_area_buffer): Use echo_kboard instead
Gerd Moellmann's avatar
Gerd Moellmann committed
251
	of the only temporarily set echoing flag for deciding when
252 253 254 255 256 257
	the cancel echoing.

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

	* lisp.h (echo_kboard): Declare extern.

258
	* xdisp.c (make_cursor_line_fully_visible): Return 0 and set
Gerd Moellmann's avatar
Gerd Moellmann committed
259
	fonts_changed_p if we need larger matrices due to vscrolling.
260 261 262
	(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.
263
	(try_cursor_movement, try_scrolling): Use them instead of integers.
264 265 266 267

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

268 269
	* dispnew.c (required_matrix_width, required_matrix_height):
	New functions.
270
	(allocate_matrices_for_window_redisplay)
271 272
	(allocate_matrices_for_frame_redisplay: Use them.
	Remove parameters CH_DIM.
273

274 275 276 277
	* 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
278
	here.
279

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

282 283 284
	* xfns.c (x_kill_gs_process): Recognize if someone has cleared
	the image cache under us.

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

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

291 292 293 294 295 296 297
	* 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
298 299 300
	* process.c (send_process): Disable composition if from_byte < 0.
	From Kenichi Handa <handa@etl.go.jp>.

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

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

305 306 307 308 309 310
	* 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
311 312 313
	* process.c (sigchld_handler) [LINUX]: Don't return from
	the signal handler at the end of the loop.

314 315
2001-09-21  Gerd Moellmann  <gerd@gnu.org>

316 317
	* sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
	Terminate only if kill returns -1, and errno is ESRCH.
318

319 320 321 322
2001-09-21  Markus Rost  <rost@math.ohio-state.edu>

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

323 324
2001-09-20  Gerd Moellmann  <gerd@gnu.org>

325 326 327
	* process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
	since this function can be called during GC.

328 329 330
	* callproc.c (Fcall_process): Handle errors from pipe(2).
	(child_setup): Delete code in #ifdef vipc.

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

333 334 335 336
	* xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
	(display_mode_element): Display the string from decode_mode_spec
	depending on its multibyteness.

337 338
	* s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.

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

341 342
2001-09-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
343 344 345 346 347
	* 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
348 349 350 351 352 353
	* 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
354 355 356
	* s/netbsd.h (C_SWITCH_SYSTEM): Add.
	(LD_SWITCH_SYSTEM): Include /usr/local/lib.

357 358 359 360 361
	* 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
362 363
2001-09-17  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
364 365 366
	* 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
367 368 369
	* m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
	versions >= 2.95.

Eli Zaretskii's avatar
Eli Zaretskii committed
370 371 372 373
2001-09-14  Eli Zaretskii  <eliz@is.elta.co.il>

	* dired.c (Ffile_attributes): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
374 375 376 377 378 379
2001-09-14  Gerd Moellmann  <gerd@gnu.org>

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

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

380 381
2001-09-13  Gerd Moellmann  <gerd@gnu.org>

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

385 386 387
	* fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
	that to mean that the buffer is too small.

388 389 390 391
	* xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
	current buffer's multibyteness when discarding the iterator's
	stack.

392 393 394
	* xfns.c (Fx_window_property): Handle case that property gets
	deleted between the two calls to XGetWindowProperty.

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

397 398
	* minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
	
399 400 401 402 403 404 405 406 407 408 409
	* 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.

410 411 412 413 414 415 416
	* 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
417 418 419 420 421
	* 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.

422 423
2001-09-10  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
424 425 426 427 428
	* 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.

429 430 431
	* xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
	`format'.

432 433 434 435
2001-09-10  Richard M. Stallman  <rms@gnu.org>

	* frame.c (Fmouse_position): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
436 437 438 439 440
2001-09-07  Gerd Moellmann  <gerd@gnu.org>

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

441 442 443 444 445
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.

446 447 448 449
2001-09-05  Andrew Innes  <andrewi@gnu.org>

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

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

452 453
	* macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.

Gerd Moellmann's avatar
Gerd Moellmann committed
454 455 456
	* xdisp.c (string_buffer_position): Use *single_char_property*
	functions instead of the *single_property* functions.
	
457 458
2001-09-04  Andrew Innes  <andrewi@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
459 460
	* w32term.c (w32_read_socket): Add more information to debugging
	output.
461 462 463 464 465 466 467 468

	* 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
469 470 471 472
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
473 474
2001-09-03  Gerd Moellmann  <gerd@gnu.org>

475 476 477 478 479 480 481 482 483 484
	* 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
485 486
	* buffer.c (syms_of_buffer) <default-directory>: Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
487 488 489 490
2001-09-01  Eli Zaretskii  <eliz@is.elta.co.il>

	* fns.c (Fmd5): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
491 492 493 494 495
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
496 497
2001-08-30  Gerd Moellmann  <gerd@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
502 503 504 505
	* 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
506
	`display' property, position in the object and position in the buffer.
Gerd Moellmann's avatar
Gerd Moellmann committed
507

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

511 512 513 514
2001-08-29  Gerd Moellmann  <gerd@gnu.org>

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

515 516 517 518 519
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.

520 521
2001-08-28  Gerd Moellmann  <gerd@gnu.org>

522 523 524 525 526 527
	* 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
528
	* dispnew.c (direct_output_for_insert): Set updated_area
Gerd Moellmann's avatar
Gerd Moellmann committed
529
	before inserting/writing glyphs.
Gerd Moellmann's avatar
Gerd Moellmann committed
530

531 532 533 534 535 536
	* 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
537 538
2001-08-28  Miles Bader  <miles@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
539 540
	* textprop.c (Fprevious_single_char_property_change)
	(Fnext_single_char_property_change): Doc fixes.
Miles Bader's avatar
Miles Bader committed
541

542 543
2001-08-27  Gerd Moellmann  <gerd@gnu.org>

544 545 546 547 548 549 550 551 552
	* 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.

553 554 555
	* fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
	unconditionally.

556 557
2001-08-24  Gerd Moellmann  <gerd@gnu.org>

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

561 562 563
	* fileio.c (Finsert_file_contents): Set coding's dest_multibyte
	to 0 also in the REPLACE case.

564 565 566 567 568
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
569 570 571 572 573 574 575 576
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
577 578
2001-08-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
579 580 581 582 583 584 585 586 587 588 589 590 591 592
	* 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
593 594 595
	* keymap.c (access_keymap): Fix last change to not consider
	IDX when it has modifiers.

596 597 598 599 600 601 602
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.

603 604
2001-08-16  Gerd Moellmann  <gerd@gnu.org>

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

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

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

613 614 615
	* window.c (window_scroll_pixel_based): Don't recenter if
	PT is partially visible in the window.

Stefan Monnier's avatar
Stefan Monnier committed
616 617
	* xterm.c (expose_window_tree, expose_window, expose_line):
	Return 1 when overwriting mouse-face.
618 619
	(expose_frame): If mouse-face was overwritten, redo it.

Gerd Moellmann's avatar
Gerd Moellmann committed
620 621 622
	* 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
623 624 625 626 627
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
628 629 630 631 632
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.

633 634 635 636 637
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
638 639
2001-08-13  Gerd Moellmann  <gerd@gnu.org>

640 641
	* 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
642

Gerd Moellmann's avatar
Gerd Moellmann committed
643 644 645
	* 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
646 647 648 649
	* 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
650 651 652 653 654
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
655 656
2001-08-09  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
657 658 659 660 661
	* 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
662 663 664 665 666
	* 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
667

Gerd Moellmann's avatar
Gerd Moellmann committed
668 669 670
2001-08-08  Gerd Moellmann  <gerd@gnu.org>

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

673 674
2001-08-07  Gerd Moellmann  <gerd@gnu.org>

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

678 679 680 681 682
	* 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
683 684 685 686
2001-08-06  Gerd Moellmann  <gerd@gnu.org>

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

687 688 689 690
2001-08-06  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* alloc.c (init_stack): Remove declaration.

691 692
2001-08-03  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
693 694 695 696 697
	* 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
698
	which cannot be confused with valid events.
Gerd Moellmann's avatar
Gerd Moellmann committed
699 700 701 702
	(read_char): When reading from Vunread_command_events, check for
	events of the form (EVENT . disabled) instead of
	(EVENT . nil).

703 704 705
	* 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
706 707 708 709 710
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
711 712
2001-08-01  Gerd Moellmann  <gerd@gnu.org>

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

716 717 718 719 720 721
	* 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.

722 723 724
	* keyboard.c (command_loop_1): Fix spelling of
	resize_echo_area_exactly.

Stefan Monnier's avatar
Stefan Monnier committed
725
	* dispextern.h (resize_echo_area_exactly): Fix typo in function name.
726 727 728

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

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

732 733 734 735 736
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
737 738 739 740 741
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
742 743
2001-07-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
744 745 746 747 748
	* 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
749 750 751 752
	* 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>.

753 754 755 756 757 758 759 760
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
761 762 763
	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
764 765 766
	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
767 768 769
2001-07-26  Gerd Moellmann  <gerd@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
771 772 773 774 775 776
	* 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
777

Andrew Innes's avatar
Andrew Innes committed
778 779 780 781 782 783 784
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
785 786 787
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
788 789
	is non-nil, instead of when redisplaying_p is non-zero.
	See comment there.
Gerd Moellmann's avatar
Gerd Moellmann committed
790 791
	(mark_window_display_accurate_1): Add an assertion.

792 793
2001-07-25  Gerd Moellmann  <gerd@gnu.org>

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

796 797 798
	* xfns.c (Fx_file_dialog): Block/unblock input while processing
	events so that we get a chance of processing expose events.

799 800
	* xdisp.c (resize_mini_window): Don't resize while redisplaying.

Gerd Moellmann's avatar
Gerd Moellmann committed
801 802 803 804 805
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
806 807
2001-07-23  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
808
	* indent.c (current_column): Fix column computation in the
809 810 811
	presence of display table entries.
	(current_column_1, Fmove_to_column, compute_motion): Likewise.

812 813 814 815
	* 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
816 817 818 819
	* editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
	(MAX_10_EXP): New macro.
	(Fformat): Use it.

Gerd Moellmann's avatar
Gerd Moellmann committed
820 821 822
	* coding.c (code_convert_region): Handle the multibyte case if
	decoding ends with CODING_FINISH_INSUFFICIENT_SRC.

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

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

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

830 831
2001-07-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
832 833 834
	* 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
835
	* composite.h (syms_of_composite): Renamed from syms_of_composition.
836

837 838 839 840 841
2001-07-18  Ken Raeburn  <raeburn@gnu.org>

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

842 843 844 845 846
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.

847
  	* lisp.h (XVECTOR): Verify correct object type before returning a
848 849
	pointer, using eassert.

850 851
2001-07-17  Gerd Moellmann  <gerd@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
855 856 857 858
2001-07-17  Jan Nieuwenhuizen  <janneke@gnu.org>

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
861 862 863 864 865 866 867
	* 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
868 869 870 871 872
	* 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.

873 874 875 876 877 878 879 880 881 882 883
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.

884 885 886 887 888
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.

889 890 891 892 893
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.

894 895 896 897 898 899 900 901 902 903
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
904 905
	depending on TRACE_SELECTION.  Replace fprintfs in #if 0 with
	TRACE macros to facilitate debugging.  Add additional trace statements.
906 907 908
	(toplevel): Add prototypes for file-local functions.
	(x_atom_to_symbol): Remove DPYINFO parameter.

909 910 911 912 913 914 915
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
916 917
2001-07-11  Gerd Moellmann  <gerd@gnu.org>

918 919
	* xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.

920 921 922
	* 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.
923

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

928 929
2001-07-10  Gerd Moellmann  <gerd@gnu.org>

930
	* dispnew.c (update_window): Don't skip the header-line
931 932
	update when scrolling_window returns 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
933 934 935
	* xfaces.c (unload_color): Do nothing if PIXEL is -1.

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

938 939
	* xdisp.c (add_to_log): Do nothing if called asynchronously.

940 941 942 943 944 945
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.

946 947
2001-07-06  Eli Zaretskii  <eliz@is.elta.co.il>

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

951 952
	* 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
953 954
	(syms_of_msdos): Add \n\ at the end of a line in the doc string
	line for dos-unsupported-char-glyph.
955 956 957

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

958 959
2001-07-05  Gerd Moellmann  <gerd@gnu.org>

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

962 963 964
	* eval.c (specbind): Additionally record the buffer that was
	current when a buffer-local or frame-local variable was bound.

965 966 967 968 969
2001-07-04  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_produce_glyphs): Don't convert multibyte characters
	to unibyte characters in unibyte buffers.

Gerd Moellmann's avatar
Gerd Moellmann committed
970 971
2001-07-03  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
972 973 974 975 976
	* eval.c (specbind): If SYMBOL has a frame-local binding, record
	the frame on the binding stack.  Change format of entries for
	local bindings on the binding stack to '(SYMBOL . WHERE)'.
	(unbind_to): Handle unbinding a frame-local variable.

Gerd Moellmann's avatar
Gerd Moellmann committed
977
	* xdisp.c (compute_line_metrics): On ttys, subtract continuation
978
	glyphs and truncation glyphs at the end of a row from its pixel width.
Gerd Moellmann's avatar
Gerd Moellmann committed
979 980 981 982
	(dump_glyph_row): Print row's continuation_lines_width.
	(try_window_id): Take the shortcut if ZV is visible in the
	window, but there are actually no changes at ZV.

Gerd Moellmann's avatar
Gerd Moellmann committed
983 984
2001-07-02  Gerd Moellmann  <gerd@gnu.org>

985 986 987 988 989
	* xterm.h (x_free_dpy_colors): Add prototype.

	* xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
	right number of arguments.

Gerd Moellmann's avatar
Gerd Moellmann committed
990 991
	* Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
	($(lwlibdir)TAGS): New target.
992
	(TAGS): Fix dependency list.
Gerd Moellmann's avatar
Gerd Moellmann committed
993

Gerd Moellmann's avatar
Gerd Moellmann committed
994 995 996
	* xterm.c (x_list_fonts): Make sure XFreeFont is called
	with input blocked.

997 998 999 1000 1001 1002
2001-06-30  Gerd Moellmann  <gerd@gnu.org>

	* emacs.c (main): Remove extern declaration for sys_nerr, which
	isn't used and causes a compilation error with GCC 3.0 on
	FreeBSD 4.3.

1003 1004
2001-06-27  Gerd Moellmann  <gerd@gnu.org>

1005
	* widget.c (EmacsFrameSetCharSize): Turn off atimers and block
Stefan Monnier's avatar
Stefan Monnier committed
1006
	SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
1007 1008
	(toplevel): Include <signal.h> and syssignal.h.

1009 1010 1011
	* sound.c (vox_configure, vox_close): Turn off atimers
	around ioctls.

Gerd Moellmann's avatar
Gerd Moellmann committed
1012 1013
2001-06-26  Gerd Moellmann  <gerd@gnu.org>

1014 1015 1016 1017 1018
	* keyboard.c (read_char) <non_reread>: Record the previous idle
	start time before calling timer_stop_idle.
	(read_char) <reread_first>: After processing a help-echo event,
	restore the previous idle start time.

Gerd Moellmann's avatar
Gerd Moellmann committed
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029
	* xdisp.c (handle_invisible_prop): Deal with overlay strings at
	the start of invisible text.
	(setup_for_ellipsis): New function.
	(next_overlay_string): After all overlay strings have been
	processed, display an ellipsis if necessary.
	(load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
	(push_it): Initialize display_ellipsis_p on the iterator's stack.

	* dispextern.h (struct iterator_stack_entry): Add member
	display_ellipsis_p.

1030 1031
2001-06-25  Gerd Moellmann  <gerd@gnu.org>

1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042
	* widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
	on the value of the wait-for-wm frame parameter.

	* xterm.h (struct x_output): Add member wait_for_wm.

	* xfns.c (Qwait_for_wm): New variable.
	(x_frame_parms): Add entry for `wait-for-wm".
	(x_set_wait_for_wm): New function.
	(Fx_create_frame): Call x_default_parameter for wait-for-wm.
	(syms_of_xfns): Initialize and staticpro Qwait_for_wm.

1043 1044 1045 1046 1047
	* xdisp.c (try_window_id) <all changes below window end>: Don't
	take this shortcut if ZV is visible in the window.
	(try_window_id): When checking for window start being in changed
	text, don't check that the buffer's size has changed.

1048 1049 1050 1051
2001-06-23  Richard M. Stallman  <rms@gnu.org>

	* minibuf.c (Fcompleting_read): Doc fix.

1052 1053 1054 1055 1056
2001-06-19  Gerd Moellmann  <gerd@gnu.org>

	* composite.c (Ffind_composition_internal): Accept ZV
	and a string's end position as POS.

Gerd Moellmann's avatar
Gerd Moellmann committed
1057 1058 1059 1060 1061
2001-06-18  Gerd Moellmann  <gerd@gnu.org>

	* composite.c (Ffind_composition_internal): Check POS
	for validity.

1062 1063 1064 1065 1066
2001-06-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* editfns.c (Fmessage_box): If the frame is not under a window
	system, output the message in the echo area.

1067 1068 1069 1070 1071
2001-06-14  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (try_window_id): When EOB is visible, don't treat
	insertion at EOB as if it were "off the bottom of the screen."

1072 1073 1074 1075 1076 1077 1078 1079 1080 1081
2001-06-11  Andrew Innes  <andrewi@gnu.org>

	* w32proc.c (create_child): Add new parameter is_gui_app.
	(w32_executable_type): Add new parameter is_gui_app.
	(sys_spawnve): Use it.
	(sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
	SIGQUIT.  This matches better how the signals are interpreted by
	MSVC compiled programs.
	(syms_of_ntproc): Update docstring.

1082 1083 1084 1085 1086 1087
2001-06-02  Stefan Monnier  <monnier@cs.yale.edu>

	* xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
	well otherwise note_mouse_highlight might optimize away highlighting
	if we pass over that same overlay again.

1088 1089 1090 1091 1092
2001-06-02  Eli Zaretskii  <eliz@is.elta.co.il>

	* lread.c (Fload): Document that the argument is run via
	substitute-in-file-name.

Gerd Moellmann's avatar
Gerd Moellmann committed
1093 1094
2001-05-31  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1095 1096 1097
	* Makefile.in (bootstrap-doc): New target.
	(bootstrap-emacs): Depend on it.

1098 1099 1100 1101 1102
	* fileio.c (Fdo_auto_save): Don't try to create the directory of
	auto-save-list-file-name when shutting down Emacs, because
	creating the directory might signal an error, and leaves
	Emacs in a strange state.

Gerd Moellmann's avatar
Gerd Moellmann committed
1103 1104 1105 1106 1107 1108 1109 1110
	* term.c: (tty_cursor_hidden): New variable.
	(update_begin): Don't call tty_hide_cursor.  Clean up.
	(update_end, set_terminal_window, set_scroll_region): Clean up.
	(ring_bell, reset_terminal_modes): Clean up.
	(tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
	on tty_cursor_hidden.
	(write_glyphs): Call tty_hide_cursor.

1111 1112 1113 1114
2001-05-30  Stefan Monnier  <monnier@cs.yale.edu>

	* buffer.c (copy_overlays): Make ENABLE_CHECKING happy.

1115 1116
2001-05-30  Gerd Moellmann  <gerd@gnu.org>

1117 1118 1119 1120 1121 1122
	* xfns.c (enum image_value_type): New enumerator
	IMAGE_STRING_OR_NIL_VALUE.
	(parse_image_spec): Handle it.
	(xbm_format, pbm_format): Use it for :foreground and :background.
	(xbm_load, pbm_load): Check for nil color names.

1123 1124 1125 1126
	* xterm.c (note_mouse_highlight): If an overlapping overlay
	exists, but we find that we highlight the same overlay as before,
	don't do the highlighting again.

1127 1128
2001-05-29  Gerd Moellmann  <gerd@gnu.org>

1129 1130 1131 1132
	* xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
	Protect unibyte strings created by replacing their multibyte
	equivalents in menu_items.

1133 1134 1135
	* keymap.c (Fsingle_key_description): NUL-terminate the string
	buffer before calling build_string.

1136 1137 1138
	* callproc.c (Fcall_process): Deal with decode_coding returning
	CODING_FINISH_INCONSISTENT_EOL.

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

1141
	* xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
1142 1143 1144 1145 1146 1147
	an item's name with its key description in case the description
	is a multibyte string.

	* keymap.c (Fsingle_key_description): Create a multibyte string
	only if necessary.

Gerd Moellmann's avatar
Gerd Moellmann committed
1148 1149
	* macros.c (Fstart_kbd_macro): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
1150 1151 1152 1153
	* xterm.c (cursor_in_mouse_face_p): New function.
	(x_draw_stretch_glyph_string): Use it to choose a different GC
	when drawing a cursor within highlighted text.

Gerd Moellmann's avatar
Gerd Moellmann committed
1154 1155 1156 1157 1158 1159
	* editfns.c (char_property_eq): Put in #if 0.

	* indent.c (string_display_width): Put in #if 0.

	* lread.c (Fload): Remove unused label.

Gerd Moellmann's avatar
Gerd Moellmann committed
1160 1161
	* termcap.c (speeds): Put in #if 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
1162 1163
2001-05-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1164 1165
	* eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.

Gerd Moellmann's avatar
Gerd Moellmann committed
1166 1167 1168
	* xfaces.c (xlfd_point_size): Don't divide pixel size from
	transformation matrix by 10.

1169 1170 1171 1172
2001-05-16  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (x_set_foreground_color): Change frame's cursor_pixel
	only if it's equal to the former foreground pixel color.
1173
	(x_set_foreground_color, x_set_background_color)
1174 1175
	(x_set_mouse_color, x_set_cursor_color): Cleaned up.

1176 1177 1178 1179
2001-05-16  Dave Love  <fx@gnu.org>

	* insdel.c (signal_before_change, signal_after_change): Consider a
	local change hook which changes the buffer.
1180 1181 1182 1183

	* process.c (read_process_output): Don't call signal_after_change
	and update_compositions after insert_from_string_before_markers.

1184 1185
2001-05-16  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1186 1187 1188
	* xfaces.c (split_font_name): Use the right field when
	checking for `[...]' syntax.

Gerd Moellmann's avatar
Gerd Moellmann committed
1189 1190 1191 1192 1193
	* buffer.c (copy_overlays): New function.
	(clone_per_buffer_values): Use it.

	* buffer.h (OVERLAY_PLIST): New macro.

Gerd Moellmann's avatar
Gerd Moellmann committed
1194 1195 1196
	* keymap.c (Fsingle_key_description): Replace a build_string with
	a make_multibyte_string.  From Kenichi Handa <handa@etl.go.jp>.

1197 1198 1199
	* fontset.c (Ffontset_info): Check that face is non-null
	before accessing its fields.

1200 1201
2001-05-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1202 1203 1204
	* keyboard.c (read_key_sequence): Prevent generating a fake
	prefix key twice.

Gerd Moellmann's avatar
Gerd Moellmann committed
1205 1206 1207
	* xfaces.c (split_font_name): Handle `[...]' for the right
	font name fields.

1208 1209 1210
	* ccl.c (ccl_driver): Don't copy remaining bytes in case
	of CCL_STAT_INVALID_CMD.

1211 1212
2001-05-14  Stefan Monnier  <monnier@cs.yale.edu>

1213 1214 1215
	* eval.c (Fdefvar): Only record (defvar <var>) in the load-history
	in <var> has no default value yet.

1216 1217 1218 1219 1220 1221
	* xfaces.c (try_alternative_families): First try the FAMILY.
	And if nothing is found in the end, try again with scalable fonts.
	(try_font_list): Let try_alternative_families do a bit more of
	the work.  Only use FAMILY if it is not nil.
	(syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.

1222 1223
2001-05-14  Gerd Moellmann  <gerd@gnu.org>

1224 1225
	* xterm.c (note_mouse_highlight): Avoid changing the mouse
	pointer shape when show_mouse_face has already done it.
1226

1227
	* xterm.c (x_draw_glyphs): Fix computation of rightmost x for
Gerd Moellmann's avatar
Gerd Moellmann committed
1228 1229
	full-width rows.

1230 1231
	* xfaces.c (split_font_name): Make sure to leave the loop
	with the right value of `i'.
1232

1233 1234 1235 1236
	* xfaces.c (split_font_name): Handle matrix transformations
	in the pixel and point size fields of XLFD font names.
	(xlfd_point_size): Likewise.

1237 1238
2001-05-12  Eli Zaretskii  <eliz@is.elta.co.il>

1239
	* w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
1240 1241
	(x_to_w32_font): Add prototype.

1242 1243 1244
	* regex.c (malloc, realloc, free) [emacs]: Undefine before
	redefining, to avoid compiler warnings.

1245 1246
	* w32proc.c: Include syssignal.h, to avoid compiler warnings.

1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259
	* w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
	(w32_get_bdf_glyph): Cast between unsigned char and char when
	passing arguments to subroutines, to shut up compiler warnings.
	(w32_get_bdf_glyph): Don't mix signed and unsigned when calling
	GET_HEX_VAL.

	* xfaces.c: Include keyboard.h before frame.h, not after it.

	* widget.c: Include keyboard.h before frame.h.

	* w32term.h (struct image, struct face): Forward declaration, to
	avoid compiler warnings.

Gerd Moellmann's avatar
Gerd Moellmann committed
1260 1261
2001-05-11  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1262 1263 1264 1265 1266
	* keyboard.c (read_key_sequence): Don't modify events when
	generating fake prefix keys (mode-line, scroll-bar, ...) since
	this prevents proper processing of such events when pushed back
	into unread-command-events.

1267 1268 1269 1270 1271 1272 1273
	* xterm.c (clear_mouse_face): Return 1 if text with mouse face was
	actually redrawn.  Make the function static.
	(note_mouse_highlight): Fix a case where the mouse cursor
	was changed back to the text cursor.

	* xterm.h (clear_mouse_face): Remove prototype.

1274 1275 1276 1277 1278 1279
	* xdisp.c (try_window_id): Fix the fix and set the right
	window_end_vpos.

	* xdisp.c (try_window_id): Fix computation of window end in the
	case that lines were deleted at the end of the window.  Add some
	more debug_method_adds.
1280

Gerd Moellmann's avatar
Gerd Moellmann committed
1281 1282 1283 1284 1285 1286
	* xfaces.c (try_alternative_families): New function.
	(try_font_list): Use it.  If ATTRS specifies a family, check
	fonts from that family first.
	(choose_face_font): Remove code setting the family part of
	the pattern to nil.

1287 1288
2001-05-10  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar