ChangeLog 419 KB
Newer Older
1 2 3 4 5
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.

6 7
2001-08-28  Gerd Moellmann  <gerd@gnu.org>

8 9 10 11 12 13
	* 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
14
	* dispnew.c (direct_output_for_insert): Set updated_area
Gerd Moellmann's avatar
Gerd Moellmann committed
15
	before inserting/writing glyphs.
Gerd Moellmann's avatar
Gerd Moellmann committed
16

17 18 19 20 21 22
	* 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
23 24 25 26 27
2001-08-28  Miles Bader  <miles@gnu.org>

	* textprop.c (Fprevious_single_char_property_change) 
       (Fnext_single_char_property_change): Doc fixes.

28 29
2001-08-27  Gerd Moellmann  <gerd@gnu.org>

30 31 32 33 34 35 36 37 38
	* 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.

39 40 41
	* fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
	unconditionally.

42 43
2001-08-24  Gerd Moellmann  <gerd@gnu.org>

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

47 48 49
	* fileio.c (Finsert_file_contents): Set coding's dest_multibyte
	to 0 also in the REPLACE case.

50 51 52 53 54
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
55 56 57 58 59 60 61 62
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
63 64
2001-08-22  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
65 66 67 68 69 70 71 72 73 74 75 76 77 78
	* 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
79 80 81
	* keymap.c (access_keymap): Fix last change to not consider
	IDX when it has modifiers.

82 83 84 85 86 87 88
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.

89 90
2001-08-16  Gerd Moellmann  <gerd@gnu.org>

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

94 95 96 97
	* xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
	of the screen line, not text line, containing IT's current
	position.

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

100 101 102
	* window.c (window_scroll_pixel_based): Don't recenter if
	PT is partially visible in the window.

Stefan Monnier's avatar
Stefan Monnier committed
103 104
	* xterm.c (expose_window_tree, expose_window, expose_line):
	Return 1 when overwriting mouse-face.
105 106
	(expose_frame): If mouse-face was overwritten, redo it.

Gerd Moellmann's avatar
Gerd Moellmann committed
107 108 109
	* 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
110 111 112 113 114
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
115 116 117 118 119
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.

120 121 122 123 124
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
125 126
2001-08-13  Gerd Moellmann  <gerd@gnu.org>

127 128
	* 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
129

Gerd Moellmann's avatar
Gerd Moellmann committed
130 131 132
	* 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
133 134 135 136
	* 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
137 138 139 140 141
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
142 143
2001-08-09  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
144 145 146 147 148
	* 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
149 150 151 152 153
	* 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
154

Gerd Moellmann's avatar
Gerd Moellmann committed
155 156 157
2001-08-08  Gerd Moellmann  <gerd@gnu.org>

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

160 161
2001-08-07  Gerd Moellmann  <gerd@gnu.org>

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

165 166 167 168 169
	* 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
170 171 172 173
2001-08-06  Gerd Moellmann  <gerd@gnu.org>

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

174 175 176 177
2001-08-06  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* alloc.c (init_stack): Remove declaration.

178 179
2001-08-03  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
180 181 182 183 184
	* 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
185
	which cannot be confused with valid events.
Gerd Moellmann's avatar
Gerd Moellmann committed
186 187 188 189
	(read_char): When reading from Vunread_command_events, check for
	events of the form (EVENT . disabled) instead of
	(EVENT . nil).

190 191 192
	* 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
193 194 195 196 197
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
198 199
2001-08-01  Gerd Moellmann  <gerd@gnu.org>

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

203 204 205 206 207 208
	* 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.

209 210 211
	* keyboard.c (command_loop_1): Fix spelling of
	resize_echo_area_exactly.

Stefan Monnier's avatar
Stefan Monnier committed
212
	* dispextern.h (resize_echo_area_exactly): Fix typo in function name.
213 214 215

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

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

219 220 221 222 223
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
224 225 226 227 228
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
229 230
2001-07-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
231 232 233 234 235
	* 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
236 237 238 239
	* 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>.

240 241 242 243 244 245 246 247
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
248 249 250
	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
251 252 253
	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
254 255 256
2001-07-26  Gerd Moellmann  <gerd@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
258 259 260 261 262 263
	* 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
264

Andrew Innes's avatar
Andrew Innes committed
265 266 267 268 269 270 271
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
272 273 274
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
275 276
	is non-nil, instead of when redisplaying_p is non-zero.
	See comment there.
Gerd Moellmann's avatar
Gerd Moellmann committed
277 278
	(mark_window_display_accurate_1): Add an assertion.

279 280
2001-07-25  Gerd Moellmann  <gerd@gnu.org>

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

283 284 285
	* xfns.c (Fx_file_dialog): Block/unblock input while processing
	events so that we get a chance of processing expose events.

286 287
	* xdisp.c (resize_mini_window): Don't resize while redisplaying.

Gerd Moellmann's avatar
Gerd Moellmann committed
288 289 290 291 292
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
293 294
2001-07-23  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
295
	* indent.c (current_column): Fix column computation in the
296 297 298
	presence of display table entries.
	(current_column_1, Fmove_to_column, compute_motion): Likewise.

299 300 301 302
	* 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
303 304 305 306
	* editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
	(MAX_10_EXP): New macro.
	(Fformat): Use it.

Gerd Moellmann's avatar
Gerd Moellmann committed
307 308 309
	* coding.c (code_convert_region): Handle the multibyte case if
	decoding ends with CODING_FINISH_INSUFFICIENT_SRC.

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

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

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

317 318
2001-07-19  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
319 320 321
	* 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
322
	* composite.h (syms_of_composite): Renamed from syms_of_composition.
323

324 325 326 327 328
2001-07-18  Ken Raeburn  <raeburn@gnu.org>

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

329 330 331 332 333
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.

334
  	* lisp.h (XVECTOR): Verify correct object type before returning a
335 336
	pointer, using eassert.

337 338
2001-07-17  Gerd Moellmann  <gerd@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
342 343 344 345
2001-07-17  Jan Nieuwenhuizen  <janneke@gnu.org>

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
348 349 350 351 352 353 354
	* 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
355 356 357 358 359
	* 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.

360 361 362 363 364 365 366 367 368 369 370
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.

371 372 373 374 375
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.

376 377 378 379 380
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.

381 382 383 384 385 386 387 388 389 390
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
391 392
	depending on TRACE_SELECTION.  Replace fprintfs in #if 0 with
	TRACE macros to facilitate debugging.  Add additional trace statements.
393 394 395
	(toplevel): Add prototypes for file-local functions.
	(x_atom_to_symbol): Remove DPYINFO parameter.

396 397 398 399 400 401 402
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
403 404
2001-07-11  Gerd Moellmann  <gerd@gnu.org>

405 406
	* xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.

407 408 409
	* 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.
410

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

415 416
2001-07-10  Gerd Moellmann  <gerd@gnu.org>

417
	* dispnew.c (update_window): Don't skip the header-line
418 419
	update when scrolling_window returns 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
420 421 422
	* xfaces.c (unload_color): Do nothing if PIXEL is -1.

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

425 426
	* xdisp.c (add_to_log): Do nothing if called asynchronously.

427 428 429 430 431 432
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.

433 434
2001-07-06  Eli Zaretskii  <eliz@is.elta.co.il>

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

438 439
	* 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
440 441
	(syms_of_msdos): Add \n\ at the end of a line in the doc string
	line for dos-unsupported-char-glyph.
442 443 444

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

445 446
2001-07-05  Gerd Moellmann  <gerd@gnu.org>

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

449 450 451
	* eval.c (specbind): Additionally record the buffer that was
	current when a buffer-local or frame-local variable was bound.

452 453 454 455 456
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
457 458
2001-07-03  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
459 460 461 462 463
	* 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
464
	* xdisp.c (compute_line_metrics): On ttys, subtract continuation
465
	glyphs and truncation glyphs at the end of a row from its pixel width.
Gerd Moellmann's avatar
Gerd Moellmann committed
466 467 468 469
	(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
470 471
2001-07-02  Gerd Moellmann  <gerd@gnu.org>

472 473 474 475 476
	* 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
477 478
	* Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
	($(lwlibdir)TAGS): New target.
479
	(TAGS): Fix dependency list.
Gerd Moellmann's avatar
Gerd Moellmann committed
480

Gerd Moellmann's avatar
Gerd Moellmann committed
481 482 483
	* xterm.c (x_list_fonts): Make sure XFreeFont is called
	with input blocked.

484 485 486 487 488 489
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.

490 491
2001-06-27  Gerd Moellmann  <gerd@gnu.org>

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

496 497 498
	* sound.c (vox_configure, vox_close): Turn off atimers
	around ioctls.

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

501 502 503 504 505
	* 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
506 507 508 509 510 511 512 513 514 515 516
	* 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.

517 518
2001-06-25  Gerd Moellmann  <gerd@gnu.org>

519 520 521 522 523 524 525 526 527 528 529
	* 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.

530 531 532 533 534
	* 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.

535 536 537 538
2001-06-23  Richard M. Stallman  <rms@gnu.org>

	* minibuf.c (Fcompleting_read): Doc fix.

539 540 541 542 543
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
544 545 546 547 548
2001-06-18  Gerd Moellmann  <gerd@gnu.org>

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

549 550 551 552 553
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.

554 555 556 557 558
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."

559 560 561 562 563 564 565 566 567 568
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.

569 570 571 572 573 574
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.

575 576 577 578 579
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
580 581
2001-05-31  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
582 583 584
	* Makefile.in (bootstrap-doc): New target.
	(bootstrap-emacs): Depend on it.

585 586 587 588 589
	* 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
590 591 592 593 594 595 596 597
	* 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.

598 599 600 601
2001-05-30  Stefan Monnier  <monnier@cs.yale.edu>

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

602 603
2001-05-30  Gerd Moellmann  <gerd@gnu.org>

604 605 606 607 608 609
	* 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.

610 611 612 613
	* 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.

614 615
2001-05-29  Gerd Moellmann  <gerd@gnu.org>

616 617 618 619
	* xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
	Protect unibyte strings created by replacing their multibyte
	equivalents in menu_items.

620 621 622
	* keymap.c (Fsingle_key_description): NUL-terminate the string
	buffer before calling build_string.

623 624 625
	* callproc.c (Fcall_process): Deal with decode_coding returning
	CODING_FINISH_INCONSISTENT_EOL.

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

628
	* xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
629 630 631 632 633 634
	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
635 636
	* macros.c (Fstart_kbd_macro): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
637 638 639 640
	* 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
641 642 643 644 645 646
	* 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
647 648
	* termcap.c (speeds): Put in #if 0.

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

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

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

656 657 658 659
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.
660
	(x_set_foreground_color, x_set_background_color)
661 662
	(x_set_mouse_color, x_set_cursor_color): Cleaned up.

663 664 665 666
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.
667 668 669 670

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

671 672
2001-05-16  Gerd Moellmann  <gerd@gnu.org>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
676 677 678 679 680
	* 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
681 682 683
	* keymap.c (Fsingle_key_description): Replace a build_string with
	a make_multibyte_string.  From Kenichi Handa <handa@etl.go.jp>.

684 685 686
	* fontset.c (Ffontset_info): Check that face is non-null
	before accessing its fields.

687 688
2001-05-15  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
689 690 691
	* keyboard.c (read_key_sequence): Prevent generating a fake
	prefix key twice.

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

695 696 697
	* ccl.c (ccl_driver): Don't copy remaining bytes in case
	of CCL_STAT_INVALID_CMD.

698 699
2001-05-14  Stefan Monnier  <monnier@cs.yale.edu>

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

703 704 705 706 707 708
	* 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.

709 710
2001-05-14  Gerd Moellmann  <gerd@gnu.org>

711 712
	* xterm.c (note_mouse_highlight): Avoid changing the mouse
	pointer shape when show_mouse_face has already done it.
713

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

717 718
	* xfaces.c (split_font_name): Make sure to leave the loop
	with the right value of `i'.
719

720 721 722 723
	* xfaces.c (split_font_name): Handle matrix transformations
	in the pixel and point size fields of XLFD font names.
	(xlfd_point_size): Likewise.

724 725
2001-05-12  Eli Zaretskii  <eliz@is.elta.co.il>

726
	* w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
727 728
	(x_to_w32_font): Add prototype.

729 730 731
	* regex.c (malloc, realloc, free) [emacs]: Undefine before
	redefining, to avoid compiler warnings.

732 733
	* w32proc.c: Include syssignal.h, to avoid compiler warnings.

734 735 736 737 738 739 740 741 742 743 744 745 746
	* 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
747 748
2001-05-11  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
749 750 751 752 753
	* 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.

754 755 756 757 758 759 760
	* 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.

761 762 763 764 765 766
	* 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.
767

Gerd Moellmann's avatar
Gerd Moellmann committed
768 769 770 771 772 773
	* 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.

774 775
2001-05-10  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
776 777
	* xdisp.c (try_window_id): Fix case of all changes before
	the window start.
Stefan Monnier's avatar
Stefan Monnier committed
778

779 780
	* xdisp.c (try_window_id): Add some xasserts.

781 782 783 784
2001-05-09  Gerd Moellmann  <gerd@gnu.org>

	* lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.

Gerd Moellmann's avatar
Gerd Moellmann committed
785 786 787 788
2001-05-09  Dave Love  <fx@gnu.org>

	* xdisp.c (GIVE_UP): Fix for K&R C.

789 790
2001-05-09  Gerd Moellmann  <gerd@gnu.org>

791 792
	* print.c (syms_of_print) <print-length, print-level>: Doc fix.

793 794 795
	* xterm.c (note_mouse_highlight): Don't change the mouse cursor
	back to the text cursor shape without need.

Gerd Moellmann's avatar
Gerd Moellmann committed
796 797
2001-05-07  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
798 799 800 801
	* xfns.c (x_set_foreground_color): Set frame's cursor_pixel.

	* dispextern.h (inverse_video): Declare extern.

Gerd Moellmann's avatar
Gerd Moellmann committed
802 803 804
	* keyboard.c (delete_kboard): Handle the case that selected_frame
	has been deleted in the course of x_connection_closed.

805 806
2001-05-03  Eli Zaretskii  <eliz@is.elta.co.il>

Stefan Monnier's avatar
Stefan Monnier committed
807 808
	* xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
	Fix the change from 2001-04-30.
809

Gerd Moellmann's avatar
Gerd Moellmann committed
810 811
2001-05-03  Gerd Moellmann  <gerd@gnu.org>

812 813 814 815
	* xfns.c (file_dialog_unmap_cb): New function.
	(Fx_file_dialog): Use it as XmNunmapCallback to capture the case
	where a dialog is closed via the window manager.

Stefan Monnier's avatar
Stefan Monnier committed
816
	* xdisp.c (try_window_id): Cases of changes all in front of
Gerd Moellmann's avatar
Gerd Moellmann committed
817 818 819 820 821
	the window start or all below the window end mostly rewritten.
	(redisplay_window): Move the tests if try_window_id is
	applicable to try_window_id.
	(GIVE_UP): New macro.

Gerd Moellmann's avatar
Gerd Moellmann committed
822 823
2001-05-02  Gerd Moellmann  <gerd@gnu.org>

824
	* xterm.c (expose_window): Return int.  If W is the window
Stefan Monnier's avatar
Stefan Monnier committed
825 826
	currently being updated, mark the frame garbaged.
	Fix computation of rows intersecting the exposed rectangle.
827
	(expose_window_tree): Stop when expose_window returns 0.
Stefan Monnier's avatar
Stefan Monnier committed
828

Gerd Moellmann's avatar
Gerd Moellmann committed
829 830 831
	* xterm.c (x_draw_stretch_glyph_string): Don't draw background
	again if it has already been drawn.

Stefan Monnier's avatar
Stefan Monnier committed
832 833 834 835 836
2001-05-01  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (update_syntax_table): Check that oldi has the same
	properties as old_prop before deciding not to invalidate.

837 838
2001-04-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
839 840 841
	* undo.c (Fprimitive_undo): In a writable buffer, enable undoing
	read-only text that is so because of text properties.

842
	* xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
Stefan Monnier's avatar
Stefan Monnier committed
843
	(XTread_socket) <Expose> [USE_LUCID]: Handle events for
844 845
	windows that are components of a Lucid menu bar.

Gerd Moellmann's avatar
Gerd Moellmann committed
846 847 848 849 850
2001-04-27  Gerd Moellmann  <gerd@gnu.org>

	* term.c (turn_on_face): Fix reverse video handling on terminals
	that don't support colors.

851 852 853 854 855
2001-04-26  Gerd Moellmann  <gerd@gnu.org>

	* editfns.c (save_excursion_restore): Don't use XBUFFER on
	a non-buffer.

856 857
2001-04-25  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
858 859 860
	* term.c (toggle_highlight): New function.
	(turn_on_face): Change handling of reverse video.

Stefan Monnier's avatar
Stefan Monnier committed
861 862
	* process.c (wait_reading_process_input):
	Call record_asynch_buffer_change only if a timer really changed buffers.
863

864 865 866
	* buffer.c (mouse_face_overlay_overlaps): Fix the computation
	of the number of overlays to check.

867 868
	* keyboard.c (command_loop_1): Redo change of 2001-03-12.

869 870 871
	* xdisp.c (try_window_id): Fix a case where window_end_pos
	and window_end_bytepos were not adjusted.

872 873 874 875 876
2001-04-23  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (compute_char_face): If buffer is unibyte, set CH to
	zero instead of -1.

877 878
2001-04-21  Eli Zaretskii  <eliz@is.elta.co.il>

Stefan Monnier's avatar
Stefan Monnier committed
879 880 881
	* process.c (wait_reading_process_input) [!subprocesses]:
	Don't reference waiting_for_user_input_p, it's not defined in the
	branch without async subprocesses support.
882

883 884
2001-04-19  Gerd Moellmann  <gerd@gnu.org>

885 886 887
	* keyboard.c (delete_kboard): Prevent a dangling reference
	from current_kboard to KB, which is freed.

Stefan Monnier's avatar
Stefan Monnier committed
888 889
	* process.c (wait_reading_process_input):
	Call record_asynch_buffer_change after running timers, to make
890 891
	read_key_sequence aware of buffer changes from under it.

Gerd Moellmann's avatar
Gerd Moellmann committed
892 893
2001-04-18  Gerd Moellmann  <gerd@gnu.org>

894 895
	* xfaces.c (Qscalable_fonts_allowed): New variable.
	(realizing_basic_faces_p): Removed.
Gerd Moellmann's avatar
Gerd Moellmann committed
896 897
	(x_face_list_fonts): Special handling for realizing_basic_faces_p
	removed.
898
	(realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
Stefan Monnier's avatar
Stefan Monnier committed
899 900
	(syms_of_xfaces): Initialize Qscalable_fonts_allowed.  Change default
	for scalable-fonts-allowed to t.
901

Gerd Moellmann's avatar
Gerd Moellmann committed
902 903
	* fileio.c (Finsert_file_contents): If the file size returned from
	stat is zero, set END to READ_BUF_SIZE.  This makes sure we can
Stefan Monnier's avatar
Stefan Monnier committed
904
	read from files on a procfs whose contents are generated dynamically.
Gerd Moellmann's avatar
Gerd Moellmann committed
905

906 907 908 909 910 911
2001-04-18  Eli Zaretskii  <eliz@is.elta.co.il>

	* gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
	defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
	(__memalign_hook): Make the two prototypes consistent.

Gerd Moellmann's avatar
Gerd Moellmann committed
912 913 914 915 916
2001-04-17  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (redisplay_window): Make sure to clear the desired glyph
	matrix of mini-windows.

917 918 919 920
2001-04-12  Stefan Monnier  <monnier@cs.yale.edu>

	* intervals.c (find_interval): Don't rebalance during signal handling.

921 922
2001-04-11  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
923
	* fns.c: Include blockinput.h.
924

925 926
	* fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.

Gerd Moellmann's avatar
Gerd Moellmann committed
927 928
2001-04-10  Gerd Moellmann  <gerd@gnu.org>

929 930
	* fns.c (Fcompare_strings): Fix return values.

Gerd Moellmann's avatar
Gerd Moellmann committed
931 932 933 934 935
	* window.c (window_scroll): Change the meaning of N to mean
	N screen-fulls or N lines.
	(window_scroll_pixel_based, window_scroll_line_based)
	(scroll_command, Fscroll_other_window): Change accordingly.

936 937
	* window.c (window_scroll_pixel_based, Frecenter):
	Call window_box_height instead of using it.last_visible_y for the
Gerd Moellmann's avatar
Gerd Moellmann committed
938 939 940 941
	height of the window.

	* xdisp.c (redisplay_window) <recenter>: Call window_box_height
	instead of using it.last_visible_y for the height of the window.
942

Gerd Moellmann's avatar
Gerd Moellmann committed
943
	* w32proc.c (sys_spawnve): Quote more chars for Cygwin.
Gerd Moellmann's avatar
Gerd Moellmann committed
944
	From Dan Holmsand <dan@eyebee.com>.
Gerd Moellmann's avatar
Gerd Moellmann committed
945 946

	* w32.c (sys_open): Try to open file without _O_CREAT first, to be
Gerd Moellmann's avatar
Gerd Moellmann committed
947 948
	able to write to hidden and system files.  From Dan Holmsand
	<dan@eyebee.com>.
Gerd Moellmann's avatar
Gerd Moellmann committed
949

Gerd Moellmann's avatar
Gerd Moellmann committed
950 951
	* fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile.  From Dan
	Holmsand <dan@eyebee.com>.
Gerd Moellmann's avatar
Gerd Moellmann committed
952

953 954
2001-04-09  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
955 956
	* fns.c (Fplist_get, Fplist_put): Add QUITs.

957 958 959 960 961 962
	* window.c (window_internal_height): Return 1 less if the
	window has a header line.

	* xdisp.c (try_window_id): When scrolling on a terminal, take
	the change of window_internal_height into account.

963 964 965 966 967
2001-04-09  Eli Zaretskii  <eliz@is.elta.co.il>

	* gmalloc.c (align): If the argument SIZE would overflow
	__malloc_ptrdiff_t, fail right away.

968 969 970 971 972 973 974 975 976 977
2001-04-06  Gerd Moellmann  <gerd@gnu.org>

	* xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
	Make sure the tooltip is completely visible.
	(x_make_gc): Use FRAME_X_SCREEN_NUMBER.

	* xterm.h (FRAME_X_SCREEN_NUMBER): New macro.

	* xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.

Dave Love's avatar
Dave Love committed
978 979
2001-04-06  Dave Love  <fx@gnu.org>

980 981
	* composite.c (update_compositions) <check_mask & CHECK_HEAD>:
	Fix test of `from'.
Dave Love's avatar
Dave Love committed
982

983 984
2001-04-06  Gerd Moellmann  <gerd@gnu.org>

985
	* composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
Gerd Moellmann's avatar
Gerd Moellmann committed
986

987 988
	* xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.

989 990
2001-04-05  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
991 992
	* sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.

993
	* editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
Gerd Moellmann's avatar
Gerd Moellmann committed
994

995 996 997 998 999 1000
	* xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
	(syms_of_xfns): DEFVAR_LISP it.  Initialize from XmVERSION_STRING.

	* xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
	shell widget's position only if it is non-null.

1001 1002
	* xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
	Set f->output_data.x->widget to null after destroying it.
1003

1004 1005 1006
	* fns.c (Frequire): Doc fix.  Rename parameter FILE_NAME to
	FILENAME to bring it in synch with the documentation.

1007 1008 1009 1010 1011
	* xfaces.c (realizing_basic_faces_p): Renamed from
	realize_default_face_p.
	(realize_basic_faces): Set/clear realizing_basic_faces_p.
	(realize_default_face): Don't set the flag.

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

1014 1015
	* lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.

1016 1017
	* keyboard.c (echoing, echo_message_buffer): Make externally visible.

1018 1019 1020
	* xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
	the buffer that was used for echoing.

1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033
	* xfaces.c (best_matching_font): Remove unused parameter PATTERN.
	(first_font_matching): Removed unused function.
	(x_face_list_fonts): Remove unused parameter SCALABLE_P.
	(may_use_scalable_font_p): Remove parameter FONT; rename
	parameter NAME to FONT.
	(x_face_list_fonts): Fix missing bounds check.
	(realizing_default_face_p): New variable.
	(realize_default_face): Set and clear that flag.
	(x_face_list_fonts): When called during the realization of the
	default face, and no matching fonts are found when ignoring
	scalable fonts and fonts matching a regexp from
	face-ignored-fonts, try without ignoring fonts.

Gerd Moellmann's avatar
Gerd Moellmann committed
1034 1035
2001-04-03  Gerd Moellmann  <gerd@gnu.org>

1036 1037 1038 1039
	* xfns.c (postprocess_image): New function.
	(lookup_image): Call it for all image types except PostScript.
	(x_kill_gs_process): Call postprocess_image.

Gerd Moellmann's avatar
Gerd Moellmann committed
1040 1041 1042 1043
	* xterm.c (x_use_underline_position_properties): New variable.
	(x_draw_glyph_string): Use it.
	(syms_of_xterm): DEFVAR_BOOL it.

1044 1045 1046 1047 1048 1049 1050 1051 1052 1053
2001-04-02  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_alloc_nearest_color_1): New function.
	(x_alloc_nearest_color): Use it.
	(x_color_cells): Take a Display as argument, instead of a frame.
	(cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
	(cvt_string_to_pixel, cvt_pixel_dtor): New functions.
	(x_initialize): Register cvt_string_to_pixel as resource converter
	string -> Pixel and cvt_pixel_dtor as pixel resource destructor.

1054 1055
2001-03-30  Gerd Moellmann  <gerd@gnu.org>

1056 1057 1058 1059 1060
	* xdisp.c (get_overlay_strings): Set iterator's end_charpos.
	(set_iterator_to_next): If a string from a display property ends,
	consider the case that this might also be the end of an
	overlay string having the display property.

1061
	* xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
1062

Gerd Moellmann's avatar
Gerd Moellmann committed
1063 1064
	* xdisp.c (reseat_to_string): Undo last change.

1065 1066 1067 1068
	* dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
	matrix of a window when the header line changes, when
	new rows are allocated, or when the width changes.

Eli Zaretskii's avatar
Eli Zaretskii committed
1069 1070
2001-03-30  Eli Zaretskii  <eliz@is.elta.co.il>

1071
	* print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
Eli Zaretskii's avatar
Eli Zaretskii committed
1072

Eli Zaretskii's avatar
Eli Zaretskii committed
1073 1074 1075 1076 1077
2001-03-29  Eli Zaretskii  <eliz@is.elta.co.il>

	* fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
	deprecated.

1078 1079
2001-03-29  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1080 1081 1082
	* data.c (Fsubr_interactive_form): New function.
	(syms_of_data): Defsubr it.

1083 1084 1085 1086
	* alloc.c (live_string_p, live_cons_p, live_symbol_p)
	(live_float_p, live_misc_p): Return 1 only if the offset of the
	pointer in its block is >= 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
1087 1088 1089 1090 1091 1092
2001-03-28  Paul Eggert <eggert@twinsun.com>

	* editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
	microseconds calcuation.  Avoid double-rounding problem.
	In doc string, warn that the result is approximate.

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

1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106
	* eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
	bind `inhibit-eval-during-redisplay' to t.

	* lisp.h (Qinhibit_eval_during_redisplay): Declare extern.

	* xdisp.c (inhibit_eval_during_redisplay)
	(Qinhibit_eval_during_redisplay): New variables.
	(safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
	don't eval, return nil instead.
	(syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
	Initialize Qinhibit_eval_during_redisplay.

1107 1108 1109
	* xdisp.c (reseat_to_string): If STRING is multibyte, set
	the iterator's multibyte_p flag.

Gerd Moellmann's avatar
Gerd Moellmann committed
1110 1111 1112 1113
	* xfaces.c (realize_basic_faces): Decrement menu_face_change_count
	instead of setting it to zero; it's incremented for each frame
	where the menu face is changed.

1114 1115 1116 1117
	* xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
	change bottom shadow accordingly.

	* xterm.c (expose_window_tree, expose_frame): Don't compute
1118 1119
	intersections here.
	(expose_window): Do it here instead.
1120
	(x_draw_glyph_string): Fix a computation of the underline position.
1121

Gerd Moellmann's avatar
Gerd Moellmann committed
1122 1123 1124
	* bytecode.c (BYTE_CODE_QUIT): New macro.
	(Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.

1125 1126
2001-03-27  Gerd Moellmann  <gerd@gnu.org>

1127 1128 1129 1130 1131
	* xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
	Give up if matrix starts in an ellipsis.
	(init_from_display_pos): Do nothing if POS doesn't specify
	a dpvec_index but the iterator has such a position.

1132 1133
	* xdisp.c (init_from_display_pos): Remove unwarranted assertion.

1134 1135 1136 1137
	* xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
	x/y position is (0, 0) after destroying the menu bar, restore
	its original position.

1138 1139 1140 1141
	* xdisp.c (in_ellipses_for_invisible_text_p): New function.
	(init_from_display_pos): Use it.
	(try_window_reusing_current_matrix): Don't use cursor_row_p.

1142 1143 1144 1145
2001-03-26  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (try_window_id): Undo last change.

Eli Zaretskii's avatar
Eli Zaretskii committed
1146 1147 1148 1149 1150 1151
2001-03-26  Eli Zaretskii  <eliz@is.elta.co.il>

	* print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.

	* buffer.c (syms_of_buffer): Doc fix.

1152 1153 1154 1155 1156
2001-03-26  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (x_update_menu_appearance): Use local variable
	popup_path for setting font resources.

1157 1158
2001-03-25  Eli Zaretskii  <eliz@is.elta.co.il>

1159 1160 1161
	* frame.c (Fframe_list): Don't reference tip_frame if
	HAVE_WINDOW_SYSTEM is not defined.

1162 1163 1164
	* emacs.c (main): Update the copyright year.  From Werner LEMBERG
	<wl@gnu.org>.

1165 1166
2001-03-25  Gerd Moellmann  <gerd@gnu.org>

1167 1168
	* xdisp.c (init_from_display_pos): Test invisible property
	with TEXT_PROP_MEANS_INVISIBLE instead of NILP.