ChangeLog 469 KB
Newer Older
1 2 3 4 5
2001-10-23  Gerd Moellmann  <gerd@gnu.org>

	* xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation
	error.

Eli Zaretskii's avatar
Eli Zaretskii committed
6 7 8 9 10 11
2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* xfaces.c (Finternal_set_lisp_face_attribute)
	[HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
	frame is on a windowed display.

Gerd Moellmann's avatar
Gerd Moellmann committed
12 13
2001-10-23  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
14 15 16 17
	* dispnew.c (sync_window_with_frame_matrix_rows): Fix 
	handling of windows which aren't full-width, fix handling
	of marginal areas.

Gerd Moellmann's avatar
Gerd Moellmann committed
18 19 20
	* lread.c (syms_of_lread)<recursive-load-depth-limit>: Raise to
	50.

Eli Zaretskii's avatar
Eli Zaretskii committed
21 22 23 24 25
2001-10-23  Andreas Schwab  <schwab@suse.de>

	* m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
	LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".

26 27 28 29 30 31 32 33
2001-10-23  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_draw_glyphs): Remove parameters READ_START and 
	REAL_END.  Notice if cursor gets overwritten.
	(notice_overwritten_cursor): Take X positions as parameters.
	(x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
	around call to x_draw_glyphs.

34 35
2001-10-23  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Pavel Janík's avatar
Pavel Janík committed
36 37
	* syntax.c (modify-syntax-entry): Fix argument names (use CHAR
	instead of C) and usage.
38

Pavel Janík's avatar
Pavel Janík committed
39 40
	* editfns.c (char-to-string): Fix argument names (use CHAR instead
	of C) and usage.
41 42 43 44

	* xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
	`left', `max_width' and `max_height'.

45 46 47 48 49
2001-10-23  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (display_line): For a tab continued to the next line,
	set row's ends_in_middle_of_char_p.

50 51 52 53 54
2001-10-22  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (display_line): Fix computation of continuation lines
	width for TABs.

Pavel Janík's avatar
Pavel Janík committed
55 56
2001-10-22  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

57 58 59
	* xdisp.c (build_desired_tool_bar_string): Remove unused variable
	`Qlaplace'.

Pavel Janík's avatar
Pavel Janík committed
60 61
	* fileio.c: Remove unused code.

62 63 64 65 66 67
2001-10-22  Miles Bader  <miles@gnu.org>

	* lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
	(DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
	Remove `DOC_STRINGS_IN_COMMENTS' cases.

68 69 70 71
2001-10-21  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (x_erase_phys_cursor): Remove inverse_p again.

72 73 74 75 76
2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>

	* mocklisp.c (Fml_if, Fml_provide_prefix_argument)
	(Finsert_string): Avoid the multi-line string literals warning.

Miles Bader's avatar
Miles Bader committed
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
2001-10-22  Miles Bader  <miles@gnu.org>

	* doc.c (Vhelp_manyarg_func_alist): Variable removed.
	(Fdocumentation): Don't use it.
	(syms_of_doc): Don't initialize it.

	* keyboard.c (Ftrack_mouse): Add usage: string to doc string.
	* print.c (Fwith_output_to_temp_buffer): Likewise.
	* window.c (Fsave_window_excursion): Likewise.
	* editfns.c (Fsave_excursion, Fsave_current_buffer) 
	(Fsave_restriction): Likewise.
	* eval.c (Frun_hooks, Frun_hook_with_args) 
	(Frun_hook_with_args_until_failure) 
	(Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif) 
	(Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun) 
	(Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch) 
	(Funwind_protect, Fcondition_case): Likewise.
	* coding.c (Ffind_operation_coding_system): Likewise.
	* keyboard.c (Ftrack_mouse): Likewise.

Miles Bader's avatar
Miles Bader committed
97 98 99 100 101 102 103 104 105 106
2001-10-21  Miles Bader  <miles@gnu.org>

	* fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply) 
	(Fmake_hash_table): Add usage: string to doc string.
	* editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
	(Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat) 
	(Fencode_time, Finsert_and_inherit_before_markers): Likewise.
	* mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
	(Fml_prefix_argument_loop): Likewise.

Pavel Janík's avatar
Pavel Janík committed
107 108
2001-10-21  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

109 110 111
	* fileio.c (Finsert_file_contents): Remove unused variable
	`gap_size'.

Pavel Janík's avatar
Pavel Janík committed
112 113 114 115 116 117 118
	* sysdep.c (init_sys_modes): Change doc-string comments to `new
	style' [w/`doc:' keyword].

	* data.c, fileio.c, indent.c, print.c, search.c, sound.c,
	* sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
	comments to `new style' [w/`doc:' keyword].

119 120 121 122
2001-10-21  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.

Jason Rumney's avatar
Jason Rumney committed
123 124 125 126 127
	* w32term.c (remember_mouse_glyph): New function.
	(w32_mouse_position): Use it.
	(note_mouse_movement): If the mouse moved off the glyph, remember
	its new position.
	
Jason Rumney's avatar
Jason Rumney committed
128 129 130
	* w32term.h (struct w32_output): Correct spelling of x_compatible.
	(w32_display_info): Add mouse_face_overlay.

Jason Rumney's avatar
Jason Rumney committed
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 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
	* w32term.c (notice_overwritten_cursor): Renamed from
	note_overwritten_text_cursor.  Rewritten to take glyph widths into
	account.
	(x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
	(fast_find_string_pos): New function.
	(fast_find_position): Return the correct vpos.  Add parameter
	STOP.  In the final row, stop before glyphs having STOP as object.
	Don't consider glyphs that are not from a buffer.
	(fast_find_position) [0]: Add a presumably more correct version
	for after 21.1.
	(expose_window_tree, expose_frame): Don't compute intersections here.
	(expose_window): Do it here instead.
	(expose_window_tree, expose_window, expose_line): Return 1 when
	overwriting mouse-face.
	(expose_window): If W is the window currently being updated, mark
	the frame garbaged.
	(expose_frame): If mouse-face was overwritten, redo it.
	(x_use_underline_position_properties): New variable.
	(syms_of_xterm): DEFVAR_BOOL it.
	(x_draw_glyph_string): Add comment to use it in future.
	(x_draw_glyph_string): Restore clipping after drawing box.
	Fix a computation of the underline position.
	(w32_get_glyph_string_clip_rect): Minor cleanup.
	(x_fill_stretch_glyph_string): Remove an assertion.
	(x_produce_glyphs): Don't convert multibyte characters
	to unibyte characters in unibyte buffers.
	(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.  Don't draw
	background again if it has already been drawn.
	(x_draw_glyph_string_box): Don't draw a full-width
	box just because the glyph row's full_width_p flag is set.
	(x_draw_glyphs): Fix computation of rightmost x for
	full-width rows.
	(x_dump_glyph_string): Put in #if GLYPH_DEBUG.
	(w32_draw_relief_rect): Extend left shadow to the bottom and left;
	change bottom shadow accordingly. Some cleanup.
	(x_update_window_end): Handle overwritten mouse face
	also for tool bar windows.
	(show_mouse_face): Set the glyph row's mouse_face_p flag also when
	DRAW is DRAW_IMAGE_RAISED.
	(clear_mouse_face): Return 1 if text with mouse face was
	actually redrawn.  Make the function static.  Reset
	dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
	optimize away highlighting if we pass over that same overlay again.
	(note_mouse_highlight): Call mouse_face_overlay_overlaps
	to detect a case where we have to highlight a different region
	despite not having left the currently highlighted region.
	Set mouse_face_overlay in the x_display_info.  Avoid changing the
	mouse pointer shape when show_mouse_face has already done it, or
	there is no need.  Handle mouse-face and help-echo in strings.
	(glyph_rect): New function.
	(w32_mouse_position): Use it to raise the threshold for mouse
	movement event generation.
	(w32_initialize_display_info): Initialize the x_display_info's
	mouse_face_overlay.
	(w32_set_vertical_scroll_bar): Don't clear a zero height
	or width area.
	(w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
	a widget to zero height.

192
	* w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
Jason Rumney's avatar
Jason Rumney committed
193
	Protect unibyte strings created by replacing their multibyte
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
	equivalents in menu_items.
	(w32_menu_show): Don't overwrite an item's name with its key
	description in case the description is a multibyte string.
	(single_submenu): Some cleanup.

	* w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
	(postprocess_image): New function.
	(lookup_image): Call it for all image types except PostScript.
	(x_kill_gs_process): Call postprocess_image.
	(tiff_error_handler, tiff_warning_handler): New functions.
	(tiff_load): Install them as handlers.
	(x_kill_gs_process): Recognize if someone has cleared the image
	cache under us.
	(valid_image_p): Protect better against invalid image
	specifications.  Previous code could signal an error.
	(Fx_hide_tip, Fshow_tip): Doc fix.
	(Fv_max_tooltip_size): New variable.
	(syns_of_xfns): DEFVAR_LISP it.
	(Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
	window buffer to *tip* right after creating the frame. Set frame's
	window_width.  Use a maximum tooltip size specified by
	Vx_max_tooltip_size, if that has valid contents.
	(compute_tip_xy): Add parameters WIDTH and HEIGHT.
	Make sure the tooltip is completely visible.
	(x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
	(Fx_create_frame): Adjust the frame's height for presence
	of the tool bar before calling x_figure_window_size.
	(x_set_tool_bar_lines): Clear the tool bar window's current matrix
	when the window gets smaller.
	(x_set_foreground_color): Set frame's cursor_pixel.
	(x_set_foreground_color, x_set_background_color): Cleaned up.
	(x_set_font): Handle case of x_new_fontset returning the same name
	as before, although there was a change in fontsets.

Miles Bader's avatar
Miles Bader committed
228 229 230 231 232 233 234 235
2001-10-21  Miles Bader  <miles@gnu.org>

	* data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior) 
	(Flogxor): Add usage: string to doc string.
	* charset.c (Fstring): Likewise.
	* callproc.c (Fcall_process_region, Fcall_process): Likewise.
	* alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.

236 237
2001-10-21  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

238 239 240 241 242 243
	* buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.

	* alloc.c: Reindent DEFUNs with doc: keywords.

	* abbrev.c (Finsert_abbrev_table_description): Reindent.

244 245 246
	* frame.c: Change doc-string comments to `new style' [w/`doc:'
	keyword].

Gerd Moellmann's avatar
Gerd Moellmann committed
247 248
2001-10-20  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
249
	* (Version 21.1 released.)
Gerd Moellmann's avatar
Gerd Moellmann committed
250

251 252
2001-10-20  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

253 254 255 256 257 258 259
	* xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes
	removed.

	* xdisp.c (invisible_text_between_p): Put prototype inside #if
	0 because unused.

	* bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
260
	* category.c, ccl.c, charset.c, process.c, syntax.c, window.c: Change
261
	doc-string comments to `new style' [w/`doc:' keyword].
262

263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
2001-10-20  Miles Bader  <miles@gnu.org>

	The following changes remove the glyph_row `inverse_p' field,
	which is never set anymore, due to other changes:

	* dispextern.h (struct glyph_row): Remove `inverse_p' field.
	(reassert_line_highlight, change_line_highlight): Declarations removed.
	* dispnew.c (update_frame_line): Don't call reassert_line_highlight.
	(line_hash_code, row_equal_p, fake_current_matrices) 
	(build_frame_matrix_from_leaf_window, update_frame_line) 
	(update_frame_line, update_frame_line, update_frame_line):
	Don't use `inverse_p' field.
	* xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
	change_line_highlight_hook.
	(XTreassert_line_highlight, x_change_line_highlight):
	Functions removed.
	(x_fix_overlapping_area, x_write_glyphs, expose_area) 
	(expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
	* xdisp.c (dump_glyph_row, display_mode_line): Don't use
	`inverse_p' field.
	* w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area) 
	(expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
	(w32_reassert_line_highlight, x_change_line_highlight):
	Functions removed.
	* w32console.c (reassert_line_highlight, change_line_highlight):
	Functions removed.
	(initialize_w32_display): Don't set reassert_line_highlight_hook
	or change_line_highlight_hook.
	(hl_mode): Function removed.
	(reset_terminal_modes, set_terminal_modes, update_begin) 
	(update_end, w32_face_attributes, initialize_w32_display): 
	(clear_frame, ins_del_lines): Don't call it.
	* termhooks.h (reassert_line_highlight_hook)
	(change_line_highlight_hook): Declarations removed.
	* term.c (reassert_line_highlight_hook)
	(change_line_highlight_hook): Variables removed.
	(reassert_line_highlight, change_line_highlight): Functions removed.
	* msdos.c (IT_reassert_line_highlight)
	(IT_change_line_highlight): Functions removed.
	(internal_terminal_init): Don't set reassert_line_highlight_hook
	or change_line_highlight_hook.
	(highlight): Variable removed.
	(IT_set_face, IT_update_begin, IT_update_end) 
	(IT_set_terminal_modes): Don't set or use it.

	The following changes remove inverse-video support for terminals
	that use a `magic cookie' standout mode.  Due to changes in the
	way mode-lines are displayed, such support no longer works
	anyway, and it's probable that almost no one uses such terminals
	anymore:

	* term.c (standout_requested): Variable removed.
	(update_end, highlight_if_desired): Don't use it.
	(chars_wasted, copybuf): Variables removed.
	(write_standout_marker): Function removed.
	(cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw) 
	(clear_end_of_line_raw, write_glyphs, ins_del_lines):
	Don't use `chars_wasted' or `copybuf'.
	(calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
	Set `costs_set' to true.
	(cursor_to, clear_end_of_line): Test `costs_set' instead of
	`chars_wasted'.
	(clear_end_of_line): Function removed.
	(clear_end_of_line_raw): Renamed to `clear_end_of_line'.
	(clear_to_end): Call `clear_end_of_line' instead of
	`clear_end_of_line_raw'.
329 330 331 332 333 334 335 336
	(TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
	(term_init): Don't set them.
	Turn off any standout/underline modes that require magic cookies.
	(ins_del_lines, highlight_if_desired, background_highlight) 
	(turn_on_highlight, turn_off_highlight, reset_terminal_modes):
	Remove special processing for magic-cookie standout modes.
	(turn_off_face, turn_on_face): Remove special processing for
	underline magic-cookie glitch.
337

338 339 340 341
2001-10-19  Richard M. Stallman  <rms@gnu.org>

	* eval.c (syms_of_eval): Doc fixes.

Gerd Moellmann's avatar
Gerd Moellmann committed
342 343 344 345 346
2001-10-19  Gerd Moellmann  <gerd@gnu.org>

	* xdisp.c (redisplay_internal): Don't clear echo area if the
	mini-window is selected.

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

349 350 351 352 353
	* editfns.c (text_property_stickiness): Non-rear-non-stickiness
	doesn't take precedence if the affected property's value is nil.

	* editfns.c (Fencode_time): Escape a BOL paren in the doc-string.

Miles Bader's avatar
Miles Bader committed
354 355 356 357 358
	* cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
	with fields and suggest using `forward-line' to avoid them.
	* editfns.c (Fline_beginning_position, Fline_end_position):
	Clarify documentation.

359 360 361 362 363
2001-10-18  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (current_minor_maps): `override' only shadows its
	correspondent in minor-mode-map-alist, not the whole tail.

364 365 366 367 368 369
2001-10-18  Andrew Innes  <andrewi@gnu.org>

	* fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
	optimization.  The fontp->encoding array was not being initialized
	correctly when compiled with optimizations by MSVC.

370 371
2001-10-18  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
372
	* xdisp.c (display_line): Indicate empty lines in active mini-window.
373

374 375 376 377 378 379 380 381 382 383 384
2001-10-17  Andrew Innes  <andrewi@gnu.org>

	* fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.

	* w32fns.c (w32_load_system_font): Cache codepage for font, in
	font_info.charset field.

	* w32term.c (w32_encode_char): Get cached codepage from font_info,
	rather than working it out by calling w32_codepage_for_font for
	every glyph.

385 386 387 388 389 390 391
2001-10-17  Andrew Innes  <andrewi@gnu.org>

	* w32term.c (w32_read_socket): Determine clipping rectangle for
	the entire frame, including areas covered by scrollbars and the
	menubar.  This avoids internal arguments about whether a frame is
	fully obscured or not.

Gerd Moellmann's avatar
Gerd Moellmann committed
392 393
2001-10-17  Gerd Moellmann  <gerd@gnu.org>

394 395
	* xdisp.c (try_window_id): Undo last change.  Give up if
	window ends in strings.
Stefan Monnier's avatar
Stefan Monnier committed
396

397
	* xdisp.c (try_window_id): Don't display lines after the window
Stefan Monnier's avatar
Stefan Monnier committed
398
	end if the rest of the window after the window end was already blank.
399

Stefan Monnier's avatar
Stefan Monnier committed
400
	* xdisp.c (try_window_id): Remove code that was only there
401 402
	for the release of 21.1.

Stefan Monnier's avatar
Stefan Monnier committed
403
	* xdisp.c (display_line): Don't indicate empty lines in mini-windows.
Gerd Moellmann's avatar
Gerd Moellmann committed
404

Miles Bader's avatar
Miles Bader committed
405 406 407 408 409 410 411 412 413 414
2001-10-17  Miles Bader  <miles@gnu.org>

	* lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
	* xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
	* xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
	Change doc-string comments to `new style' [w/`doc:' keyword].
	(DOC_STRINGS_IN_COMMENTS): Macro removed.
	* minibuf.c: Remove old commented-out-DEFUN that was used to fake
	out make-docfile.

Miles Bader's avatar
Miles Bader committed
415 416 417 418
2001-10-16  Miles Bader  <miles@gnu.org>

	* fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].

Gerd Moellmann's avatar
Gerd Moellmann committed
419 420 421 422 423
2001-10-16  Gerd Moellmann  <gerd@gnu.org>

	* buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
	*scratch*.

424 425 426 427 428 429 430 431 432 433
2001-10-16  Ken Raeburn  <raeburn@gnu.org>

	Avoid the assumption that car and cdr slots of cons cells are
	addressable lvalues; this allows for easier experimentation with
	other lisp implementations that may not permit such accesses for
	various reasons.  Not quite complete -- buffer.c still needs some
	work, and w32/mac files need rechecking -- so compile-time
	enforcement is left disabled for now.

	* lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
Stefan Monnier's avatar
Stefan Monnier committed
434
	gcc with a union-based Lisp object rep.  Redefine as no-op for now.
435 436 437 438 439 440 441 442 443
	(XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
	(XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
	(XSETCAR, XSETCDR): New macros.
	(XSETCARFASTINT, XSETCDRFASTINT): New macros.
	(CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
	* keyboard.h (POSN_BUFFER_SET_POSN): New macro.
	* alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
	XSETCDR.
	(mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
Stefan Monnier's avatar
Stefan Monnier committed
444 445 446
	* buffer.c (record_buffer, Fbury_buffer)
	(swap_out_buffer_local_variables, recenter_overlay_lists)
	(Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
447 448 449 450 451 452
	fields of a cons cell respectively.
	* callint.c (quotify_args, Fcall_interactively): Likewise.
	* ccl.c (Fregister_code_conversion_map): Likewise.
	* coding.c (detect_coding_system): Likewise.
	* composite.c (get_composition_id, make_composition_value_copy):
	Likewise.
Stefan Monnier's avatar
Stefan Monnier committed
453 454 455 456
	* data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
	(swap_in_symval_forwarding, set_internal, Fset_default)
	(Fmake_variable_buffer_local, Fmake_local_variable)
	(Fmake_variable_frame_local): Likewise.
457
	* fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
Stefan Monnier's avatar
Stefan Monnier committed
458 459
	* keymap.c (Fset_keymap_parent, store_in_keymap)
	(accessible_keymaps_1, where_is_internal_2, Fcopy_keymap):
460 461 462 463 464 465 466 467 468 469 470 471 472 473
	Likewise.
	* minibuf.c (get_minibuffer): Likewise.
	* search.c (Fmatch_data): Likewise.
	* textprop.c (extend_property_ranges): Likewise.
	* undo.c (record_insert, Fundo_boundary, truncate_undo_list):
	Likewise.
	* w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
	Likewise.
	* w32term.c (x_delete_display): Likewise.
	* xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
	Likewise.
	* xterm.c (x_list_fonts, x_load_font, x_delete_display):
	Likewise.
	* doc.c (store_function_docstring): Use XSETCARFASTINT.
Stefan Monnier's avatar
Stefan Monnier committed
474
	* fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492
	(Fread_file_name): Use XSETCAR.
	* fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
	CHECK_NUMBER_CDR.
	(accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
	* frame.c (Fmake_terminal_frame): Use XSETCDR.
	* indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
	CHECK_NUMBER_CDR.
	* keyboard.c (read_char): Alter list traversal to avoid taking the
	address of cons cell slots.  Use POSN_BUFFER_SET_POSN.
	(parse_menu_item): Use XSETCAR and XSETCDR.
	(reach_char_x_menu_prompt): Use XSETCAR.
	(read_key_sequence): Use POSN_BUFFER_SET_POSN.
	(Fcommand_execute): Use XSETCDR.
	* lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
	(openp): Change list traversal to avoid using XCAR as lvalue.
	(read_list): Use XSETCDR.
	* process.c (wait_reading_process_input): Change wait_for_cell
	handling to avoid taking addresses of cons cell slots.
Stefan Monnier's avatar
Stefan Monnier committed
493 494 495 496 497
	* xselect.c (x_own_selection, x_handle_selection_clear)
	(x_clear_frame_selections): Use XSETCDR.
	(wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
	(x_handle_property_notify, x_get_foreign_selection)
	(x_handle_selection_notify): Use XSETCAR.
498

499 500
2001-10-15  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Pavel Janík's avatar
Pavel Janík committed
501 502
	* buffer.c: Put doc strings in comments.

Stefan Monnier's avatar
Stefan Monnier committed
503
	* sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
504

505 506 507 508
2001-10-15  Sam Steingold  <sds@gnu.org>

	* fns.c (Vafter_load_alist): Declare extern (w32 build problem).

Pavel Janík's avatar
Pavel Janík committed
509 510
2001-10-15  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Stefan Monnier's avatar
Stefan Monnier committed
511 512
	* process.c (process-inherit-coding-system-flag)
	(get-buffer-process): Do not confuse make-docfile with doc strings
513 514
	in comment.

Pavel Janík's avatar
Pavel Janík committed
515
	* editfns.c (Fchar_to_string): Make doc string consistent with
Stefan Monnier's avatar
Stefan Monnier committed
516
	arguments.  Put doc strings in comments.
Pavel Janík's avatar
Pavel Janík committed
517 518

	* abbrev.c, minibuf.c: Put doc strings in comments.
Pavel Janík's avatar
Pavel Janík committed
519

520 521
2001-10-15  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
522
	* window.c (window_loop): Don't check for Fother_buffer returning nil.
523

524 525 526
	* window.c (select_window_1): Unfreeze window start.  Remove a
	doubled test for WINDOW being live.

527 528
2001-10-15  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

529 530
	* fns.c (Fmapconcat): Fix typo in a doc string.

531 532
	* dispnew.c (Fsleep_for): Fix typo in a doc string.

Gerd Moellmann's avatar
Gerd Moellmann committed
533 534 535 536 537
2001-10-15  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_draw_glyph_string): Restore clipping after
	drawing box.

538 539
2001-10-15  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Stefan Monnier's avatar
Stefan Monnier committed
540
	* callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
541

Stefan Monnier's avatar
Stefan Monnier committed
542 543
2001-10-14  Stefan Monnier  <monnier@cs.yale.edu>

Gerd Moellmann's avatar
Gerd Moellmann committed
544 545
	* indent.c (skip_invisible): Use new retval of
	TEXT_PROP_MEANS_INVISIBLE.
Stefan Monnier's avatar
Stefan Monnier committed
546

547 548 549 550
	* keymap.c (access_keymap): Unify handling of `t' and generic-char.
	If a parent is reached and noinherit is set, exit immediately.
	Use AREF and ASIZE macros.  Call get_keyelt before checking KEYMAPP.

Stefan Monnier's avatar
Stefan Monnier committed
551 552 553 554 555 556 557 558
	* s/ms-w32.h (EXEC_SUFFIXES):
	* s/msdos.h (EXEC_SUFFIXES):
	* process.h (EXEC_SUFFIXES): Remove.

	* callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
	(decode_suffixes): Remove.

	* intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
Stefan Monnier's avatar
Stefan Monnier committed
559 560
	(TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
	(invisible_ellipsis_p): Remove.
Stefan Monnier's avatar
Stefan Monnier committed
561 562 563 564

	* xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
	(invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
	(invisible_ellipsis_p, invisible_noellipsis_p): Remove.
Stefan Monnier's avatar
Stefan Monnier committed
565 566
	(in_ellipses_for_invisible_text_p, handle_invisible_prop):
	Use new retval of TEXT_PROP_MEANS_INVISIBLE.
Stefan Monnier's avatar
Stefan Monnier committed
567

568 569
2001-10-14  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Pavel Janík's avatar
Pavel Janík committed
570 571
	* lisp.h (Ftop_level): Add prototype.

572 573 574 575
	* xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
	(XTread_socket): Improve style of comments to follow other
	comments.

576 577 578
	* keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
	is already prototyped in included lisp.h).

579 580 581 582 583 584 585 586
	* frame.c (Fset_mouse_position): Improve style of comment to
	follow other comments.
	(Fset_mouse_pixel_position): Improve style of comment to follow
	other comments.
	(Fmake_frame_visible): Doc fix and typo in comment.
	(Fmake_frame_invisible): Doc fix and typo in comment.
	(Ficonify_frame): Fix typo in comment.

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
592 593 594 595 596 597 598
2001-10-13  Gerd Moellmann  <gerd@gnu.org>

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

	* fns.c: Put doc strings in comments.

Eli Zaretskii's avatar
Eli Zaretskii committed
599 600 601 602 603 604 605 606 607
2001-10-13  Eli Zaretskii  <eliz@is.elta.co.il>

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

608 609
2001-10-12  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
610 611 612 613 614 615 616
	* indent.c (skip_invisible): Don't skip "ellipsisized" text.

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

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

Eli Zaretskii's avatar
Eli Zaretskii committed
617
	* xdisp.c (init_iterator): Be more strict with bytepos and charpos.
Stefan Monnier's avatar
Stefan Monnier committed
618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644
	(DOLIST, LOOP_PROPVAL): New macros.
	(invisible_p, invisible_ellipsis_p): Use them.
	(invisible_noellipsis_p): New function.
	(syms_of_xdisp): Use empty_string.

	* alloc.c (mark_interval_tree): Use traverse_intervals_noorder.

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

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

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

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

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

Stefan Monnier's avatar
Stefan Monnier committed
645 646 647 648 649
	* keymap.c (Fkey_description): Use empty_string.
	(Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
	(syms_of_keymap): Setup inheritance between maps.
	Don't export Sdescribe_bindings_internal any more.

650 651
	* minibuf.c (keys_of_minibuf): Eliminate redundant bindings.

Gerd Moellmann's avatar
Gerd Moellmann committed
652 653 654 655 656 657
2001-10-12  Gerd Moellmann  <gerd@gnu.org>

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

658 659 660 661 662
2001-10-12  Eli Zaretskii  <eliz@is.elta.co.il>

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

663 664 665 666 667
2001-10-12  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

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

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

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

Stefan Monnier's avatar
Stefan Monnier committed
672 673 674 675 676
	* xfns.c (x_create_bitmap_from_file, x_find_image_file):
	* w32proc.c (sys_spawnve):
	* w32fns.c (x_create_bitmap_from_file, x_find_image_file):
	* w32.c (check_windows_init_file):
	* sound.c (Fplay_sound):
Stefan Monnier's avatar
Stefan Monnier committed
677
	* emacs.c (init_cmdargs):
Stefan Monnier's avatar
Stefan Monnier committed
678 679 680 681 682 683 684 685 686 687 688 689 690 691
	* process.c (Fstart_process): Update calls to openp.

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

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

Stefan Monnier's avatar
Stefan Monnier committed
692 693 694
	* keymap.h (Fcopy_keymap): Don't export.

	* lisp.h (empty_string): Declare.
Stefan Monnier's avatar
Stefan Monnier committed
695 696
	(Vload_suffixes, Vexec_suffixes): Declare.
	(openp): Update prototype.
Stefan Monnier's avatar
Stefan Monnier committed
697 698 699 700 701 702 703 704 705 706 707 708 709

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

	* search.c (wordify): Use it.

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

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

Stefan Monnier's avatar
Stefan Monnier committed
710 711 712 713 714 715 716 717 718
	* syntax.h (struct gl_state_s): Change the meaning of b_property.
	Remove left_ok and right_ok.
	(UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
	(SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
	new meaning of b_property.

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

719 720
2001-10-11  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
721 722 723 724 725
	* lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
	in case I is of some unsigned type, in which case
	MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
	comparison becomes bogus.

726 727 728 729 730 731
	* editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
	(Fuser_full_name): Fix bug treating a float as a fixnum.

	* data.c (Fstring_to_number): Use make_fixnum_or_float.

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

733 734 735 736 737 738
	* lisp.h (circular_list_error): Add prototype.

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

Stefan Monnier's avatar
Stefan Monnier committed
739 740 741 742 743
2001-10-10  Stefan Monnier  <monnier@cs.yale.edu>

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

Gerd Moellmann's avatar
Gerd Moellmann committed
744 745 746 747 748
2001-10-10  Gerd Moellmann  <gerd@gnu.org>

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

749 750 751 752 753
2001-10-09  Gerd Moellmann  <gerd@gnu.org>

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

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

Andrew Innes's avatar
Andrew Innes committed
758 759 760 761 762 763 764 765 766 767
2001-10-08  Andrew Innes  <andrewi@gnu.org>

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

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

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

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

768 769 770 771
2001-10-08  Stefan Monnier  <monnier@cs.yale.edu>

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

772 773 774 775
2001-10-08  Sam Steingold  <sds@gnu.org>

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

Eli Zaretskii's avatar
Eli Zaretskii committed
776 777 778 779 780 781
2001-10-08  Eli Zaretskii  <eliz@is.elta.co.il>

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

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

Stefan Monnier's avatar
Stefan Monnier committed
784 785 786 787 788
	* lisp.h: Remove the entries for keymap.c (moved to keymap.h).

	* keyboard.h (map_prompt): Remove.

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

Stefan Monnier's avatar
Stefan Monnier committed
791 792 793 794 795 796 797 798 799 800
	* xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.

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

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

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

Stefan Monnier's avatar
Stefan Monnier committed
801 802 803 804 805 806 807 808 809 810 811
	* keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
	(accessible_keymaps_1): New function.
	(Faccessible_keymaps, accessible_keymaps_char_table): Use it.
	(Fwhere_is_internal): Use Fcurrent_active_maps.
	(Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
	Insert in current buffer rather than standard-output.
	Don't call `help-mode'.  Export to elisp.
	(describe_buffer_bindings): New wrapper.
	(syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
	and Sdescribe_buffer_bindings.

812 813
2001-10-08  Gerd Moellmann  <gerd@gnu.org>

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

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

Pavel Janík's avatar
Pavel Janík committed
820 821 822 823
2001-10-08  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

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

824 825
2001-10-08  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
826
	* xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
Gerd Moellmann's avatar
Gerd Moellmann committed
827
	* w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
Stefan Monnier's avatar
Stefan Monnier committed
828
	* sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
Gerd Moellmann's avatar
Gerd Moellmann committed
829
	* intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
Stefan Monnier's avatar
Stefan Monnier committed
830
	* dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
Gerd Moellmann's avatar
Gerd Moellmann committed
831 832 833 834
	Don't define min/max.

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

835 836
	* puresize.h (BASE_PURESIZE): Increase to 725000.

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

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

841 842 843 844 845
	* lisp.h (init_window): Add prototype.

	* editfns.c: Include ctype.h.

	* xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
Stefan Monnier's avatar
Stefan Monnier committed
846
	(xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
847 848 849
	(x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
	variable `sb'.

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

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

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

Pavel Janík's avatar
Pavel Janík committed
858 859 860 861
	* atimer.h (struct atimer): Fix typos in a comment.

	* atimer.c: Fix typo.

Pavel Janík's avatar
Pavel Janík committed
862 863 864
	* Makefile.in: Fix typo.

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

Miles Bader's avatar
Miles Bader committed
866 867 868 869
2001-10-07  Miles Bader  <miles@gnu.org>

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

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

872 873 874
	* minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
	Lisp_Object.

Ken Raeburn's avatar
Ken Raeburn committed
875 876
	* lisp.h (Ffield_end): Declare.

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

Gerd Moellmann's avatar
Gerd Moellmann committed
879 880 881 882 883 884 885 886
	* keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.

	* insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.

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

	* dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.

Gerd Moellmann's avatar
Gerd Moellmann committed
887 888 889 890 891 892
	* bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
	(METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.

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

Stefan Monnier's avatar
Stefan Monnier committed
893
	* data.c (most_positive_fixnum, most_negative_fixnum): New variables.
Gerd Moellmann's avatar
Gerd Moellmann committed
894 895 896
	(syms_of_data): DEFVAR_INT most-positive-fixnum and
	most-negative-fixnum.

Stefan Monnier's avatar
Stefan Monnier committed
897
	* lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
Gerd Moellmann's avatar
Gerd Moellmann committed
898 899
	(FIXNUM_OVERFLOW_P): New macros.

Miles Bader's avatar
Miles Bader committed
900 901 902 903 904 905 906 907 908 909 910 911 912
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
913 914 915 916
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
917 918
2001-10-05  Miles Bader  <miles@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
919 920
	* minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
	(Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
Miles Bader's avatar
Miles Bader committed
921
	New functions (were in simple.el).
Stefan Monnier's avatar
Stefan Monnier committed
922
	(Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
Miles Bader's avatar
Miles Bader committed
923 924 925
	(read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
	(syms_of_minibuf): Initialize them.

Gerd Moellmann's avatar
Gerd Moellmann committed
926 927 928 929 930
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
931 932 933 934
2001-10-04  Andrew Innes  <andrewi@gnu.org>

	* w32fns.c (x_to_w32_color): Fix argument to alloca.
	(w32_load_system_font): Don't believe what GetLanguageFontInfo
Stefan Monnier's avatar
Stefan Monnier committed
935
	says; query codepage info directly to determine if font is double byte.
Andrew Innes's avatar
Andrew Innes committed
936 937 938 939 940 941 942 943 944 945
	(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
946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073
2001-10-04  Stefan Monnier  <monnier@cs.yale.edu>

	* window.h (MINI_WINDOW_P): Use NILP.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
1074 1075 1076
2001-10-04  Gerd Moellmann  <gerd@gnu.org>

	* Branch for 21.1.
1077

1078 1079 1080 1081 1082 1083
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
1084 1085 1086 1087 1088 1089
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.

1090 1091 1092 1093 1094 1095 1096 1097 1098
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

1099 1100 1101 1102
2001-10-01  Richard M. Stallman  <rms@gnu.org>

	* search.c (Freplace_match): Doc fix.

1103 1104 1105 1106 1107 1108
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
1109 1110 1111 1112
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
1113 1114 1115 1116
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
1117 1118 1119 1120 1121
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.

1122 1123 1124 1125 1126
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.

1127 1128 1129 1130
2001-09-27  Stefan Monnier  <monnier@cs.yale.edu>

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

1131 1132 1133 1134 1135 1136 1137 1138
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
1139 1140
2001-09-27  Gerd Moellmann  <gerd@gnu.org>

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

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

1147 1148
2001-09-26  Gerd Moellmann  <gerd@gnu.org>

1149 1150 1151
	* fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
	reading at EOF.

1152
	* xdisp.c (with_echo_area_buffer): Use echo_kboard instead
Gerd Moellmann's avatar
Gerd Moellmann committed
1153
	of the only temporarily set echoing flag for deciding when
1154 1155 1156 1157 1158 1159
	the cancel echoing.

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

	* lisp.h (echo_kboard): Declare extern.

1160
	* xdisp.c (make_cursor_line_fully_visible): Return 0 and set
Gerd Moellmann's avatar
Gerd Moellmann committed
1161
	fonts_changed_p if we need larger matrices due to vscrolling.
1162 1163 1164
	(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.
1165
	(try_cursor_movement, try_scrolling): Use them instead of integers.
1166 1167 1168 1169

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

1170 1171
	* dispnew.c (required_matrix_width, required_matrix_height):
	New functions.
1172
	(allocate_matrices_for_window_redisplay)
1173 1174
	(allocate_matrices_for_frame_redisplay: Use them.
	Remove parameters CH_DIM.
1175

1176 1177 1178 1179
	* 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
1180
	here.
1181

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

1184 1185 1186
	* xfns.c (x_kill_gs_process): Recognize if someone has cleared
	the image cache under us.

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

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

1193 1194 1195 1196 1197 1198 1199
	* 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
1200 1201 1202
	* process.c (send_process): Disable composition if from_byte < 0.
	From Kenichi Handa <handa@etl.go.jp>.

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

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

1207 1208 1209 1210 1211 1212
	* 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
1213 1214 1215
	* process.c (sigchld_handler) [LINUX]: Don't return from
	the signal handler at the end of the loop.

1216 1217
2001-09-21  Gerd Moellmann  <gerd@gnu.org>

1218 1219
	* sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
	Terminate only if kill returns -1, and errno is ESRCH.
1220

1221 1222 1223 1224
2001-09-21  Markus Rost  <rost@math.ohio-state.edu>

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

1225 1226
2001-09-20  Gerd Moellmann  <gerd@gnu.org>

1227 1228 1229
	* process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
	since this function can be called during GC.

1230 1231 1232
	* callproc.c (Fcall_process): Handle errors from pipe(2).
	(child_setup): Delete code in #ifdef vipc.

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

1235 1236 1237 1238
	* xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
	(display_mode_element): Display the string from decode_mode_spec
	depending on its multibyteness.

1239 1240
	* s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.

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

1243 1244
2001-09-18  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1245 1246 1247 1248 1249
	* 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
1250 1251 1252 1253 1254 1255
	* 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
1256 1257 1258
	* s/netbsd.h (C_SWITCH_SYSTEM): Add.
	(LD_SWITCH_SYSTEM): Include /usr/local/lib.

1259 1260 1261 1262 1263
	* 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
1264 1265
2001-09-17  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1266 1267 1268
	* 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
1269 1270 1271
	* m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
	versions >= 2.95.

Eli Zaretskii's avatar
Eli Zaretskii committed
1272 1273 1274 1275
2001-09-14  Eli Zaretskii  <eliz@is.elta.co.il>

	* dired.c (Ffile_attributes): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
1276 1277 1278 1279 1280 1281
2001-09-14  Gerd Moellmann  <gerd@gnu.org>

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

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

1282 1283
2001-09-13  Gerd Moellmann  <gerd@gnu.org>

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

1287 1288 1289
	* fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
	that to mean that the buffer is too small.

1290 1291 1292 1293
	* xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
	current buffer's multibyteness when discarding the iterator's
	stack.

1294 1295 1296
	* xfns.c (Fx_window_property): Handle case that property gets
	deleted between the two calls to XGetWindowProperty.

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

1299
	* minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
1300

1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311
	* 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.

1312 1313 1314 1315 1316 1317 1318
	* 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
1319 1320 1321 1322 1323
	* 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.

1324 1325
2001-09-10  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1326 1327 1328 1329 1330
	* 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.

1331 1332 1333
	* xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
	`format'.

1334 1335 1336 1337
2001-09-10  Richard M. Stallman  <rms@gnu.org>

	* frame.c (Fmouse_position): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
1338 1339 1340 1341 1342
2001-09-07  Gerd Moellmann  <gerd@gnu.org>

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

1343 1344 1345 1346 1347
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.

1348 1349 1350 1351
2001-09-05  Andrew Innes  <andrewi@gnu.org>

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

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

1354 1355
	* macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.

Gerd Moellmann's avatar
Gerd Moellmann committed
1356 1357
	* xdisp.c (string_buffer_position): Use *single_char_property*
	functions instead of the *single_property* functions.
1358

1359 1360
2001-09-04  Andrew Innes  <andrewi@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1361 1362
	* w32term.c (w32_read_socket): Add more information to debugging
	output.
1363 1364 1365 1366 1367 1368 1369 1370

	* 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
1371 1372 1373 1374
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
1375 1376
2001-09-03  Gerd Moellmann  <gerd@gnu.org>

1377 1378 1379 1380 1381 1382 1383 1384 1385 1386
	* 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
1387 1388
	* buffer.c (syms_of_buffer) <default-directory>: Doc fix.

Eli Zaretskii's avatar
Eli Zaretskii committed
1389 1390 1391 1392
2001-09-01  Eli Zaretskii  <eliz@is.elta.co.il>

	* fns.c (Fmd5): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
1393 1394 1395 1396 1397
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
1398 1399
2001-08-30  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
1400
	* emacs.c (shut_down_emacs): Don't call check_glyph_m