ChangeLog 491 KB
Newer Older
Jason Rumney's avatar
Jason Rumney committed
1 2 3 4 5 6 7 8 9
2001-11-12  Jason Rumney  <jasonr@gnu.org>

	* w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
	* w32term.c: Change doc-string comments to `new style'.
	[w/`doc:' keyword]. Doc fixes.

	* w32fns.c: Don't define max.
	(Fx_open_connection): Only execute once.

10 11 12 13 14
2001-11-12  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* ccl.c: Change macros to use do-while block instead of if-else.
	Use braces to follow GNU Coding Standards.

15 16
2001-11-11  Richard M. Stallman  <rms@gnu.org>

17 18 19 20
	* sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.

	* lread.c (read_escape): Use end_of_file_error for reporting eof.

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
	* insdel.c (replace_range): Use adjust_markers_for_replace
	instead of adjust_markers_for_delete and adjust_markers_for_insert.

	* intervals.h: Declare set_text_properties and set_text_properties_1.

	* textprop.c (set_text_properties_1): New subroutine
	broken out of set_text_properties.
	(set_text_properties): Use set_text_properties_1.

	* intervals.c (graft_intervals_into_buffer):
	Use set_text_properties_1 to clear out properties.

	* search.c (Freplace_match): Use replace_range to insert
	and delete.  Don't request property inheritance from
	surrounding text.

Jason Rumney's avatar
Jason Rumney committed
37 38 39 40 41 42 43
2001-11-10  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (enum_font_cb2): Use leading @ on face name to detect
	vertical fonts. Allow them if face name is explicitly specified.
	Do not give up if we find a font that cannot be converted to an
	xlfd.

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

	* unexelf.c (unexec): Use mmap/munmap to allocate buffers 
	instead of malloc/free.

49 50
2001-11-09  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

51 52 53 54
	* xfaces.c (merge_face_vectors): Use braces to follow GNU
	Coding Standards.
	(Finternal_set_lisp_face_attribute): Likewise.

55 56
	* buffer.c (Fbury_buffer): Likewise.

57 58
	* indent.c (current_column_1): Remove unused variable `prev_col'.

59 60 61 62
	* coding.c (encode_coding): Use precomputed value of `src'.
	(encode_coding): Remove unused variable `src_end'.
	(code_convert_region): Remove unused variables `count'.

Jason Rumney's avatar
Jason Rumney committed
63 64 65 66 67
2001-11-07  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (x_display_and_set_cursor): Do not move system caret
	if cursor_glyph is NULL.

68 69 70 71
2001-11-07  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* keymap.c (access_keymap): Fix compilation error.

Miles Bader's avatar
Miles Bader committed
72 73 74 75
2001-11-07  Miles Bader  <miles@gnu.org>

	* xfns.c (x_set_frame_parameters): Avoid infinite recursion.

76 77
2001-11-07  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

78 79 80 81
	* intervals.c (graft_intervals_into_buffer):
	Remove #ifdef'd-out code.
	(graft_intervals_into_buffer): Remove unused variable `middle'.

82 83 84 85
	* lread.c (Feval_region): Remove obsolete #ifdef'd-out
	code (eval-current-buffer).
	Change doc-string comments to `new style' [w/`doc:' keyword].

86 87 88 89
2001-11-06  Richard M. Stallman  <rms@gnu.org>

	* keymap.c (access_keymap): Don't use initializers on Lisp_Object.

90 91
2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
92 93
	* lread.c (read1): Fix behavior with nested backquoting.

94 95 96
	* keyboard.c (make_lispy_event): Check integerness and fix
	Lisp_Object/int mixup.

97 98 99 100
2001-11-06  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* fns.c (copy_hash_table): Remove unused variable `v'.

101 102 103
	* fontset.c (fontset_font_pattern): Remove unused variable
	`family_registry'.

104 105
	* indent.c (current_column_1): Remove unused variable `prev_col'.

106 107 108 109 110 111 112
2001-11-05  Richard M. Stallman  <rms@gnu.org>

	* m/news-risc.h (BROKEN_PROTOTYPES): Defined.

	* buffer.c (Fkill_buffer): Don't delete auto save file
	if buffer is modified.

Andrew Innes's avatar
Andrew Innes committed
113 114 115 116 117
2001-11-05  Andrew Innes  <andrewi@gnu.org>

	* w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
	CHECK_NUMBER_CDR.

118 119 120 121
2001-11-05  Richard M. Stallman  <rms@gnu.org>

	* unexelf.c (unexec): Minor changes; clean up comments.

122 123 124 125
2001-11-05  Sam Steingold  <sds@gnu.org>

	* w32term.c (x_display_and_set_cursor): Fix w32 compilation error.

126 127 128 129
2001-11-05  Andreas Schwab  <schwab@suse.de>

	* sound.c (sound_perror): Save errno from being clobbered.

130
2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
131 132 133 134

	* unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
	the program image directly.

135 136 137 138
2001-11-05  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* buffer.h (Fbuffer_local_value): Add prototype.

139 140
2001-11-04  Richard M. Stallman  <rms@gnu.org>

141 142 143 144 145 146 147 148 149 150 151 152 153 154
	* buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
	and CHECK_BUFFER.

	* keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
	(record_char): Likewise.

	* keyboard.c (make_lispy_event): Don't insist a drag event must
	move to a different buffer position.  Instead, check for moving at
	least double_click_fuzz.

	* fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.

	* keyboard.c (echo-area-clear-hook): Undo Oct 29 change.

155 156 157 158
	* indent.c (current_column_1, Fmove_to_column): Separate the code
	for display-table glyphs from the code buffer text, to fix
	bugs in the former.

159 160 161
2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>

	* buffer.c (Fbuffer_local_value): New function.
Stefan Monnier's avatar
Stefan Monnier committed
162
	(syms_of_buffer): Defsubr it.
163

164 165 166 167 168 169
	* xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
	value of `cursor-in-non-selected-windows'.

	* lisp.h (Qcursor_in_non_selected_windows): New declaration.
	* xdisp.c (Qcursor_in_non_selected_windows): New variable.
	(syms_of_xdisp): Initialize it.
170

171 172
2001-11-04  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Pavel Janík's avatar
Pavel Janík committed
173 174
	* xfns.c (Fx_create_frame): Doc fix.

175 176 177
	* coding.c: Change doc-string comments to `new style' [w/`doc:'
	keyword].

178 179 180 181
	* eval.c (top_level_value, top_level_set): Remove commented and
	#ifdef'd-out code.
	(Fdefvar): Fix usage in doc-string.

182 183 184 185 186 187 188 189
2001-11-03  Richard M. Stallman  <rms@gnu.org>

	* xfns.c: Include unistd.h, if it exists.

	* editfns.c: Move the include of ctype.h after unistd.h.

	* gmalloc.c: Test BROKEN_PROTOTYPES.

Ken Raeburn's avatar
Ken Raeburn committed
190 191 192 193 194 195 196 197
2001-11-03  Ken Raeburn  <raeburn@gnu.org>

	* lisp.h (CHECK_STRING_CAR): New macro.
	* lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
	treating XCAR and XCDR as lvalues.
	(openp): Use CHECK_STRING_CAR.
	(read_list): Use XSETCDR instead of treating XCDR as lvalue.

Eli Zaretskii's avatar
Eli Zaretskii committed
198 199 200
2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>

	* s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
Eli Zaretskii's avatar
Eli Zaretskii committed
201
	(SIGMASKTYPE): Define.
Eli Zaretskii's avatar
Eli Zaretskii committed
202 203 204

	* syssignal.h (sigunblock): Don't define if already defined.

Pavel Janík's avatar
Pavel Janík committed
205 206
2001-11-02  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

207 208
	* eval.c (debugger_may_continue, Vdebug_ignored_errors)
	(call_debugger, Fcondition_case, skip_debugger, unbind_to):
209 210
	Fix typos in comments.

211 212 213 214
	* mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
	and #ifdef'd-out code.
	Fix and reindent comments.

Stefan Monnier's avatar
Stefan Monnier committed
215
	* mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
216

Pavel Janík's avatar
Pavel Janík committed
217 218 219 220 221 222
	* category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
	argument `i' in macros.

	* frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
	`i' in macros.

223 224 225 226 227 228 229 230
	* lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
	(CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
	(CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
	(CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
	(CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
	(CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
	(CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
	(CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
Pavel Janík's avatar
Pavel Janík committed
231 232 233 234 235 236 237 238 239 240 241 242 243
	in macros.

	* abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
	casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
	composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
	eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
	indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
	minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
	sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
	w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
	xfaces.c, xmenu.c, xselect.c : Update usage of CHECK_ macros
	(remove unused second argument).

Stefan Monnier's avatar
Stefan Monnier committed
244 245 246 247 248 249 250 251 252 253
2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (describe_syntax): New wrapper.
	(Finternal_describe_syntax_value): Rename from describe_syntax.
	Don't insert space at front and \n at the end.
	(syms_of_syntax): Defsubr Sinternal_describe_syntax_value.

	* regex.c (re_wctype): Try to fix some warnings.
	(regcomp, regexec): Don't forget the __restrict.

254 255 256 257
2001-11-02  Richard M. Stallman  <rms@gnu.org>

	* textprop.c (Fget_char_property): Doc fix.

Pavel Janík's avatar
Pavel Janík committed
258 259 260 261 262 263 264 265
2001-11-02  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* process.c (Fstart_process): Add usage to doc-string.

	* data.c (Fsetq_default): Ditto.

	* callint.c (Finteractive): Ditto.

Stefan Monnier's avatar
Stefan Monnier committed
266 267 268 269
2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>

	* macros.c: Don't include keymap.h any more.

270 271
2001-11-01  Richard M. Stallman  <rms@gnu.org>

272 273 274 275 276
	* data.c (Fmake_local_variable): Doc fix.

	* eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
	(Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.

277 278 279 280
	* keymap.c (Fdescribe_buffer_bindings): Print character property
	bindings along with or instead of the buffer local map.
	Make the overriding maps override what they should.

281 282 283 284
2001-11-01  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* window.c (grow_mini_window): Fix typo in comment.

285 286
2001-11-01  Gerd Moellmann  <gerd@gnu.org>

287 288 289
	* xterm.c (x_scroll_bar_create): Check for width and height > 0.
	(XTset_vertical_scroll_bar): Likewise.

290 291
	* xfns.c (x_build_heuristic_mask): Use four_corners_best
	instead of IMAGE_BACKGROUND.
Stefan Monnier's avatar
Stefan Monnier committed
292

293 294
	* xfns.c (four_corners_best): Reindent.

Stefan Monnier's avatar
Stefan Monnier committed
295
	* xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
296 297
	Handle :box so that it is possible to specify sexprs.

Pavel Janík's avatar
Pavel Janík committed
298 299 300 301 302 303 304 305 306
2001-11-01  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* xfaces.c (Finternal_merge_in_global_face): Reindent.
	(Fface_font): Ditto.
	(Finternal_set_alternative_font_registry_alist): Ditto.
	(Ftty_suppress_bold_inverse_default_colors): Ditto.

	* xfns.c (x-get-resource): Reindent.

Eli Zaretskii's avatar
Eli Zaretskii committed
307 308 309 310
2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>

	* s/hpux11.h: New file.

Pavel Janík's avatar
Pavel Janík committed
311 312
2001-10-31  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Pavel Janík's avatar
Pavel Janík committed
313 314 315 316 317
	* emacs.c (USAGE1): Show command line option --no-window-system
	instead of --no-windows in usage.
	(standard_args): Rename --no-windows to --no-window-system.
	(bug_reporting_address): Follow Emacs coding conventions.

Pavel Janík's avatar
Pavel Janík committed
318 319 320
	* eval.c (Fcommandp): Doc fix.
	Change doc-string comments to `new style' [w/`doc:' keyword].

Pavel Janík's avatar
Pavel Janík committed
321 322 323 324
	* frame.c (Fframe_live_p): Doc fix.

	* buffer.c (selective-display-ellipses): Doc fix.

325 326
2001-10-31  Gerd Moellmann  <gerd@gnu.org>

327 328
	* lread.c (to_multibyte): Fix computation of new read_buffer_size.

329 330 331 332 333 334
	* xfaces.c (realize_x_face): If C is not a single-byte character,
	set the face's colors_copied_bitwise_p instead of the defaulted_p
	members which have a different meaning.
	(free_face_colors): Do nothing for a face whose colors have been
	copied bitwise.

Stefan Monnier's avatar
Stefan Monnier committed
335
	* dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
336

337 338
2001-10-31  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

339 340
	* marker.c, mocklisp.c: Change doc-string comments to `new style'
	[w/`doc:' keyword].
341

342 343 344 345
2001-10-31  Gerd Moellmann  <gerd@gnu.org>

	* fns.c (require_unwind): Return Lisp_Object.

Pavel Janík's avatar
Pavel Janík committed
346 347
2001-10-31  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

348 349 350 351
	* keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
	(last-input-char): Revert doc-string to be the same as the
	doc-string of `last-input-event'.

Pavel Janík's avatar
Pavel Janík committed
352 353
	* xdisp.c:  Fix typos in comments.

354 355 356 357 358
2001-10-31  Gerd Moellmann  <gerd@gnu.org>

	* window.c (grow_mini_window): Handle case that the root
	window is already smaller than the nominal mininum height.

Stefan Monnier's avatar
Stefan Monnier committed
359 360
2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
361 362 363 364 365 366
	* emacs.c (main): Don't call keys_of_macros any more.

	* lisp.h (keys_of_macros): Remove.

	* macros.c (keys_of_macros): Remove.

Stefan Monnier's avatar
Stefan Monnier committed
367 368
	* xfaces.c (Fface_attribute_relative_p): Declare args.

369 370 371 372 373
2001-10-30  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
	(enum_font_cb2): Ignore fonts with vertical orientation.

374 375 376 377
2001-10-30  Richard M. Stallman  <rms@gnu.org>

	* keyboard.c (Finput_pending_p): Doc fix.

Gerd Moellmann's avatar
Gerd Moellmann committed
378 379
2001-10-30  Gerd Moellmann  <gerd@gnu.org>

380 381 382
	* xterm.c (x_after_update_window_line): Don't run the code
	clearing in borders for rows whose visible height is 0.

Gerd Moellmann's avatar
Gerd Moellmann committed
383 384 385 386 387 388 389 390
	* xdisp.c (clear_garbaged_frames): Redraw the frame only if its
	resized_p flag is set.  If not set, use the much less flickering
	method previously used.

	* dispnew.c (change_frame_size_1): Set frame's resized_p.

	* frame.h (struct frame) <resized_p>: New member.

391 392
	* lread.c (to_multibyte): Ensure read_buffer is at least twice
	as large as the number of bytes to convert.
Stefan Monnier's avatar
Stefan Monnier committed
393

Gerd Moellmann's avatar
Gerd Moellmann committed
394 395 396
	* lread.c (to_multibyte): New function.
	(read1): Use it.

397 398 399 400
2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).

401 402
2001-10-30  Gerd Moellmann  <gerd@gnu.org>

403
	* xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
Stefan Monnier's avatar
Stefan Monnier committed
404 405 406
	(x_set_glyph_string_background_width): Set extends_to_end_of_line_p
	if the row's fill_line_p is set and drawing the last glyph with
	DRAW_IMAGE_{RAISED,SUNKEN}.
407

408 409
	* xdisp.c (clear_garbaged_frames): Call Fredraw_frame.

Stefan Monnier's avatar
Stefan Monnier committed
410 411 412 413 414 415 416 417 418 419 420 421 422
2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>

	* xmenu.c: Include coding.h and charset.h.
	(Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
	(Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
	(single_submenu, xmenu_show): Use ENCODE_SYSTEM.
	Explicitly set wv->help.  Use `TRUE' rather than `True'.
	(menu_help_callback): Use empty_string.

	* w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
	(Fx_popup_dialog): Explicitly init f.
	(w32_menu_display_help): Use empty_string.

423 424
2001-10-29  Richard M. Stallman  <rms@gnu.org>

425 426 427 428 429 430
	* fns.c (Frequire): Detect recursive try to require the same
	feature 3 or more levels deep, and get error.
	(require_unwind): New subroutine.
	(require_nesting_list): New variable.
	(syms_of_fns): Init and staticpro it.

431 432
	* print.c (print_object): Clarify indication of insertion type.

433 434
2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>

435 436 437
	* coding.c (syms_of_coding): Document that locale-coding-system is
	used for decoding input on X.

438 439
	* window.c (Fscroll_left, Fscroll_right): Doc fix.

440 441 442 443 444
2001-10-29  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* keyboard.c (Finput_pending_p): Fix typo in doc-string.
	(echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.

Gerd Moellmann's avatar
Gerd Moellmann committed
445 446
2001-10-29  Gerd Moellmann  <gerd@gnu.org>

447 448 449
	* xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
	use NO_CURSOR if cursor_in_non_selected_windows is false.

Gerd Moellmann's avatar
Gerd Moellmann committed
450 451 452
	* xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
	the slant attribute if FRAME is t.

Gerd Moellmann's avatar
Gerd Moellmann committed
453 454 455
	* xfns.c (x_set_internal_border_width): Set frame garbaged
	when X window doesn't exist yet.

456 457
	* xterm.c (x_after_update_window_line): Clear internal border
	in different circumstances.
458

Gerd Moellmann's avatar
Gerd Moellmann committed
459 460 461 462
	* xterm.c (XTread_socket) <KeyPress>: Don't use
	STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
	<handa@etl.go.jp>.

Eli Zaretskii's avatar
Eli Zaretskii committed
463 464 465 466 467
2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>

	* m/ibms390.h: New file.  From Adam Thornton
	<athornton@sinenomine.net>.

468 469
2001-10-28  Gerd Moellmann  <gerd@gnu.org>

470
	* xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
471

472 473 474
	* xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
	a loop counter.

475 476
2001-10-28  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

477 478
	* emacs.c: Use argv[0] instead of emacs when -t was specified.

479 480 481
	* keyboard.c: Change doc-string comments to `new style' [w/`doc:'
	keyword].
	Fix typos in comments.
482

483 484 485
	* emacs.c (bug_reporting_address): New function.
	Use it when displaying usage message.

486 487 488
	* minibuf.c (read_minibuf): Remove unused external declaration of
	variable `Qread_only'.

489 490
	* keymap.c (access_keymap): Remove unused variable `charset'.

Miles Bader's avatar
Miles Bader committed
491 492 493 494 495 496 497
2001-10-28  Miles Bader  <miles@gnu.org>

	* xfaces.c (merge_face_heights): Handle TO being relative as well.
	Remove #ifdef'd-out code.
	(Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
	(syms_of_xfaces): Initialize them.

Jason Rumney's avatar
Jason Rumney committed
498 499 500 501 502 503 504 505 506 507
2001-10-27  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
	<WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
	position using the system caret.

	* w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
	(w32_system_caret_height, w32_system_caret_x)
	(w32_system_caret_y): New variables for tracking system caret.
	(w32_initialize): Initialize them.
Stefan Monnier's avatar
Stefan Monnier committed
508
	(x_display_and_set_cursor): Make system caret follow the active cursor.
Jason Rumney's avatar
Jason Rumney committed
509

Stefan Monnier's avatar
Stefan Monnier committed
510 511
	* w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
	New messages types.
Jason Rumney's avatar
Jason Rumney committed
512 513 514

	* w32term.c (note_mouse_highlight): Clear old help_echo.

515 516
2001-10-27  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Pavel Janík's avatar
Pavel Janík committed
517 518
	* xterm.c: Fix typo in a comment.

Pavel Janík's avatar
Pavel Janík committed
519 520 521 522 523
	* emacs.c: Fix typos in comments.
	Remove unnecessary spaces.
	Change doc-string comments to `new style' [w/`doc:' keyword].
	(USAGE2): Fix typos in usage string.

Pavel Janík's avatar
Pavel Janík committed
524 525
	* xterm.c: Fix typo in a comment.

526 527 528
	* lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
	emacs.c.

529 530
2001-10-27  Gerd Moellmann  <gerd@gnu.org>

531
	* xdisp.c (move_it_vertically_backward): Use 2/3 line_height
Stefan Monnier's avatar
Stefan Monnier committed
532
	instead of 1/2 line_height in the heuristic for skipping
533 534
	farther backward when target_y was not reached.

535 536 537 538 539 540
	* sound.c (sound_perror): Unblock SIGIO, turn on atimers.
	Display errno only if non-zero.
	(sound_warning): New function.
	(vox_configure): Don't treat failing to set sample rate as error.
	(various places): Improve error messages.

Eli Zaretskii's avatar
Eli Zaretskii committed
541 542
2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>

Eli Zaretskii's avatar
Eli Zaretskii committed
543 544 545
	* fileio.c (Faccess_file): Run the argument filename through
	Fexpand_file_name, before using it.

Eli Zaretskii's avatar
Eli Zaretskii committed
546 547 548
	* dispnew.c (syms_of_display) <visible-bell>: Add a reference to
	ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>

549 550
2001-10-26  Gerd Moellmann  <gerd@gnu.org>

551 552
	* insdel.c (insert_1_both): Do nothing if NCHARS == 0.

553 554
	* xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
	Fix clearing in the case of scroll bars on the right.
Stefan Monnier's avatar
Stefan Monnier committed
555

556 557 558 559
2001-10-26  Juanma Barranquero <lektu@terra.es>

	* w32gui.h (XImage): Add a dummy typedef.

560 561
2001-10-26  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
562
	* xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
563

564 565 566 567
2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>

	* frame.c (Fframe_parameter): Fix last change.

Eli Zaretskii's avatar
Eli Zaretskii committed
568 569 570 571
	* fileio.c: Revert last change (which removed old commented-out
	version of expand-file-name).  Add a comment that explains why
	this old version should not be removed.

Gerd Moellmann's avatar
Gerd Moellmann committed
572 573
2001-10-25  Gerd Moellmann  <gerd@gnu.org>

574 575 576 577
	* frame.c (Fframe_parameter): Fix a bug whereby some
	``artificial'' frame parameters, like `minibuffer' were not
	obtained by calling Fframe_parameters.

Gerd Moellmann's avatar
Gerd Moellmann committed
578 579 580
	* xterm.c (show_mouse_face): Clean up.  Recognize overwritten
	cursor differently.

Gerd Moellmann's avatar
Gerd Moellmann committed
581 582 583
	* xdisp.c (move_it_vertically_backward): Compute line height
	differently.  Add heuristic to try to be more compatible to 20.x.

584 585
2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
586 587
	* lisp.h (make_fixnum_or_float): Coerce double to int explicitly.

Gerd Moellmann's avatar
Gerd Moellmann committed
588 589
	* editfns.c (text_property_stickiness): Fix Lisp_Object used as
	boolean.
590

Miles Bader's avatar
Miles Bader committed
591 592 593 594 595 596
2001-10-25  Miles Bader  <miles@gnu.org>

	* xfns.c (png_load): Make sure SPECIFIED_BG is a string.
	BG is a pointer to a structure, not a structure.
	(gif_format, png_format): Add missing commas.

597 598 599
2001-10-24  Richard M. Stallman  <rms@gnu.org>

	* xfaces.c (Fface_attributes_as_vector): New function.
Stefan Monnier's avatar
Stefan Monnier committed
600
	(syms_of_xfaces): Defsubr it.
601

602 603 604 605 606
2001-10-24  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
	variable `area'.

607 608
2001-10-25  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Stefan Monnier's avatar
Stefan Monnier committed
609
	* search.c (scan_newline): Remove unused variable `selective_display'.
610

611 612 613 614 615 616 617 618
2001-10-25  Miles Bader  <miles@gnu.org>

	* dispextern.h (struct image): Add `background',
	`background_valid', and `background_transparent' fields.
	(image_background, image_background_transparent): New declarations.
	(IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
	* xfns.c (image_background, image_background_transparent)
	(four_corners_best): New functions.
Stefan Monnier's avatar
Stefan Monnier committed
619
	(xpm_format, png_format, jpeg_format, tiff_format, gif_format)
620 621 622 623 624 625 626 627 628 629 630 631 632 633
	(gs_format): Add `:background' entry.
	(lookup_image): Set IMG's background color if specified.
	(pbm_load, xbm_load_image, png_load): Set IMG's background field
	when appropriate.
	(x_clear_image_1): Reset `background_valid' and
	`background_transparent_valid' fields.
	(x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
	calculating it here.  Set IMG's background_transparent field.
	(enum xpm_keyword_index): Add XPM_BACKGROUND.
	(enum png_keyword_index): Add PNG_BACKGROUND.
	(enum jpeg_keyword_index): Add JPEG_BACKGROUND.
	(enum tiff_keyword_index): Add TIFF_BACKGROUND.
	(enum gif_keyword_index): Add GIF_BACKGROUND.
	(enum gs_keyword_index): Add GS_BACKGROUND.
Stefan Monnier's avatar
Stefan Monnier committed
634
	(pbm_load, png_load, jpeg_load, tiff_load, gif_load):
635 636 637 638 639
	Pre-calculate image background color where necessary.
	* xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
	`IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
	color to use for image glyph reliefs.

640 641
2001-10-24  Gerd Moellmann  <gerd@gnu.org>

642 643
	* xterm.c (x_draw_glyphs): Don't check for cursor overwriting
	in full-width rows.
Stefan Monnier's avatar
Stefan Monnier committed
644

645 646 647
	* xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
	Fix clearing of area not covered by scroll bar.

648 649 650 651
2001-10-24  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
	and `real_start'.
Stefan Monnier's avatar
Stefan Monnier committed
652
	(x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
653 654
	(glyph_rect): Remove unused variable `area'.

655 656
2001-10-24  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
657
	* xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
Stefan Monnier's avatar
Stefan Monnier committed
658 659 660 661

	* xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
	(row_containing_pos): Take additional argument DY.
	Treat rows ending in middle of char differently.
662 663 664 665 666 667 668
	(display_line): Handle tabs on window systems differently.

	* xterm.c, w32term.c (fast_find_position): Call row_containing_pos
	with additional argument.

	* dispextern.h (row_containing_pos): Adjust prototype.

669 670 671 672 673 674
	* xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
	(inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
	(try_window_id, try_window_reusing_current_matrix)
	(try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
	(syms_of_xdisp) [GLYPH_DEBUG]:  DEFVAR_BOOL the variables.

Pavel Janík's avatar
Pavel Janík committed
675 676
2001-10-24  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

677 678 679 680 681
	* xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
	gnuemacs).
	(HAVE_BOXES): Fix typo in comment.
	(push_menu_pane): Fix typo in comment.

682 683 684 685 686 687 688
	* xdisp.c: (display_prop_string_p): Remove unused local declaration
	of `Qwhen'.
	(single_display_prop_string_p): Remove unused local declarations
	of `Qwhen' and `Qmargin'.
	(string_buffer_position): Remove unused variable `around'.
	(store_frame_title): Remove unused variable `width'.

Pavel Janík's avatar
Pavel Janík committed
689 690 691
	* window.c: Don't define max.
	(coordinates_in_window): Remove unused variable `uy'.

Pavel Janík's avatar
Pavel Janík committed
692 693
	* widget.c: Don't define max.

Pavel Janík's avatar
Pavel Janík committed
694 695 696
	* process.c: Don't define max.
	(create_process): Remove unused variable `buffer'.

697 698
2001-10-23  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
699
	* xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
700

Eli Zaretskii's avatar
Eli Zaretskii committed
701 702 703 704 705 706
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
707 708
2001-10-23  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
709 710
	* dispnew.c (sync_window_with_frame_matrix_rows):
	Fix handling of windows which aren't full-width, fix handling
Gerd Moellmann's avatar
Gerd Moellmann committed
711 712
	of marginal areas.

Stefan Monnier's avatar
Stefan Monnier committed
713
	* lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
Gerd Moellmann's avatar
Gerd Moellmann committed
714

Eli Zaretskii's avatar
Eli Zaretskii committed
715 716 717 718 719
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".

720 721
2001-10-23  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
722
	* xterm.c (x_draw_glyphs): Remove parameters READ_START and
723 724 725 726 727
	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.

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

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

Pavel Janík's avatar
Pavel Janík committed
733 734
	* editfns.c (char-to-string): Fix argument names (use CHAR instead
	of C) and usage.
735 736 737 738

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

739 740 741 742 743
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.

744 745 746 747 748
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
749 750
2001-10-22  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

751 752 753
	* xdisp.c (build_desired_tool_bar_string): Remove unused variable
	`Qlaplace'.

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

756 757 758 759 760 761
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.

762 763 764 765
2001-10-21  Jason Rumney  <jasonr@gnu.org>

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

766 767 768 769 770
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
771 772 773 774 775 776 777 778 779
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.
Stefan Monnier's avatar
Stefan Monnier committed
780
	* editfns.c (Fsave_excursion, Fsave_current_buffer)
Miles Bader's avatar
Miles Bader committed
781
	(Fsave_restriction): Likewise.
Stefan Monnier's avatar
Stefan Monnier committed
782 783 784 785 786
	* 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)
Miles Bader's avatar
Miles Bader committed
787 788 789 790
	(Funwind_protect, Fcondition_case): Likewise.
	* coding.c (Ffind_operation_coding_system): Likewise.
	* keyboard.c (Ftrack_mouse): Likewise.

Miles Bader's avatar
Miles Bader committed
791 792
2001-10-21  Miles Bader  <miles@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
793
	* fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
Miles Bader's avatar
Miles Bader committed
794 795
	(Fmake_hash_table): Add usage: string to doc string.
	* editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
Stefan Monnier's avatar
Stefan Monnier committed
796
	(Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
Miles Bader's avatar
Miles Bader committed
797 798 799 800
	(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
801 802
2001-10-21  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Stefan Monnier's avatar
Stefan Monnier committed
803
	* fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
804

Pavel Janík's avatar
Pavel Janík committed
805 806 807 808 809 810 811
	* 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].

812 813 814 815
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
816 817 818 819
	* 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.
Stefan Monnier's avatar
Stefan Monnier committed
820

Jason Rumney's avatar
Jason Rumney committed
821 822 823
	* w32term.h (struct w32_output): Correct spelling of x_compatible.
	(w32_display_info): Add mouse_face_overlay.

Jason Rumney's avatar
Jason Rumney committed
824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884
	* 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.

885
	* w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
Jason Rumney's avatar
Jason Rumney committed
886
	Protect unibyte strings created by replacing their multibyte
887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920
	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
921 922
2001-10-21  Miles Bader  <miles@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
923
	* data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
Miles Bader's avatar
Miles Bader committed
924 925 926 927 928
	(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.

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

931 932 933 934 935 936
	* buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.

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

	* abbrev.c (Finsert_abbrev_table_description): Reindent.

937 938 939
	* frame.c: Change doc-string comments to `new style' [w/`doc:'
	keyword].

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

Gerd Moellmann's avatar
Gerd Moellmann committed
942
	* (Version 21.1 released.)
Gerd Moellmann's avatar
Gerd Moellmann committed
943

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

Stefan Monnier's avatar
Stefan Monnier committed
946
	* xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
947 948 949 950 951

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

	* bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
Stefan Monnier's avatar
Stefan Monnier committed
952 953
	* category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
	Change doc-string comments to `new style' [w/`doc:' keyword].
954

955 956 957 958 959 960 961 962
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.
Stefan Monnier's avatar
Stefan Monnier committed
963 964
	(line_hash_code, row_equal_p, fake_current_matrices)
	(build_frame_matrix_from_leaf_window, update_frame_line)
965 966 967 968 969 970
	(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.
Stefan Monnier's avatar
Stefan Monnier committed
971
	(x_fix_overlapping_area, x_write_glyphs, expose_area)
972 973 974
	(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.
Stefan Monnier's avatar
Stefan Monnier committed
975
	* w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
976 977 978 979 980 981 982 983
	(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.
Stefan Monnier's avatar
Stefan Monnier committed
984 985
	(reset_terminal_modes, set_terminal_modes, update_begin)
	(update_end, w32_face_attributes, initialize_w32_display):
986 987 988 989 990 991 992 993 994 995 996
	(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.
Stefan Monnier's avatar
Stefan Monnier committed
997
	(IT_set_face, IT_update_begin, IT_update_end)
998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009
	(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.
Stefan Monnier's avatar
Stefan Monnier committed
1010
	(cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
	(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'.
1021 1022 1023
	(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.
Stefan Monnier's avatar
Stefan Monnier committed
1024
	(ins_del_lines, highlight_if_desired, background_highlight)
1025 1026 1027 1028
	(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.
1029

1030 1031 1032 1033
2001-10-19  Richard M. Stallman  <rms@gnu.org>

	* eval.c (syms_of_eval): Doc fixes.

Gerd Moellmann's avatar
Gerd Moellmann committed
1034 1035 1036 1037 1038
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
1039 1040
2001-10-19  Miles Bader  <miles@gnu.org>

1041 1042 1043 1044 1045
	* 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
1046 1047 1048 1049 1050
	* 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.

1051 1052 1053 1054 1055
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.

1056 1057 1058 1059 1060 1061
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.

1062 1063
2001-10-18  Gerd Moellmann  <gerd@gnu.org>

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

1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076
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.

1077 1078 1079 1080 1081 1082 1083
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
1084 1085
2001-10-17  Gerd Moellmann  <gerd@gnu.org>

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

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

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

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

Miles Bader's avatar
Miles Bader committed
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106
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
1107 1108 1109 1110
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
1111 1112 1113 1114 1115
2001-10-16  Gerd Moellmann  <gerd@gnu.org>

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

1116 1117 1118 1119 1120 1121 1122 1123 1124 1125
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
1126
	gcc with a union-based Lisp object rep.  Redefine as no-op for now.
1127 1128 1129 1130 1131 1132 1133 1134 1135
	(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
1136 1137 1138
	* 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
1139 1140 1141 1142 1143 1144
	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
1145 1146 1147 1148
	* 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.
1149
	* fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
Stefan Monnier's avatar
Stefan Monnier committed
1150
	* keymap.c (Fset_keymap_parent, store_in_keymap)
Stefan Monnier's avatar
Stefan Monnier committed
1151
	(accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
1152 1153 1154
	* minibuf.c (get_minibuffer): Likewise.
	* search.c (Fmatch_data): Likewise.
	* textprop.c (extend_property_ranges): Likewise.
Stefan Monnier's avatar
Stefan Monnier committed
1155
	* undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
1156 1157 1158 1159 1160
	* 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.
Stefan Monnier's avatar
Stefan Monnier committed
1161
	* xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
1162
	* doc.c (store_function_docstring): Use XSETCARFASTINT.
Stefan Monnier's avatar
Stefan Monnier committed
1163
	* fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181
	(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
1182 1183 1184 1185 1186
	* 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.
1187

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

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

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

1194 1195 1196 1197
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
1198 1199
2001-10-15  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

Stefan Monnier's avatar
Stefan Monnier committed
1200 1201
	* process.c (process-inherit-coding-system-flag)
	(get-buffer-process): Do not confuse make-docfile with doc strings
1202 1203
	in comment.

Pavel Janík's avatar
Pavel Janík committed
1204
	* editfns.c (Fchar_to_string): Make doc string consistent with
Stefan Monnier's avatar
Stefan Monnier committed
1205
	arguments.  Put doc strings in comments.
Pavel Janík's avatar
Pavel Janík committed
1206 1207

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

1209 1210
2001-10-15  Gerd Moellmann  <gerd@gnu.org>

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

1213 1214 1215
	* window.c (select_window_1): Unfreeze window start.  Remove a
	doubled test for WINDOW being live.

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

1218 1219
	* fns.c (Fmapconcat): Fix typo in a doc string.

1220 1221
	* dispnew.c (Fsleep_for): Fix typo in a doc string.

Gerd Moellmann's avatar
Gerd Moellmann committed
1222 1223 1224 1225 1226
2001-10-15  Gerd Moellmann  <gerd@gnu.org>

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

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

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

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

Gerd Moellmann's avatar
Gerd Moellmann committed
1233 1234
	* indent.c (skip_invisible): Use new retval of
	TEXT_PROP_MEANS_INVISIBLE.
Stefan Monnier's avatar
Stefan Monnier committed
1235