ChangeLog 135 KB
Newer Older
Jason Rumney's avatar
Jason Rumney committed
1 2 3 4 5
2002-05-04  Jason Rumney  <jasonr@gnu.org>

	* process.c (init_process): Only add server subfeature if we can
	use non-blocking I/O.

6 7 8 9 10
2002-05-04  Andrew Choi  <akochoi@shaw.ca>

	* macterm.c (XTread_socket): Call WaitNextEvent once instead of
	repeatedly.

Jason Rumney's avatar
Jason Rumney committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24
2002-05-03  Jason Rumney  <jasonr@gnu.org>

	* process.c (Fmake_network_process): Only support server sockets
	when we can make them non-blocking.

	* s/ms-w32.h (HAVE_SELECT): Define.

	* w32.h (FILE_NDELAY): New flag.

	* w32.c (sys_getpeername, fcntl): New functions.
	(_sys_read_ahead): Temporarily block on non-blocking sockets.

	* w32proc.c: include sys/file.h.

Colin Walters's avatar
Colin Walters committed
25 26 27 28 29
2002-05-03  Colin Walters  <walters@verbum.org>

	* callproc.c (Vgame_score_directory): Renamed to
	Vshared_game_score_directory.

30 31
2002-04-30  Richard M. Stallman  <rms@gnu.org>

32 33 34
	* s/gnu.h [emacs]: Include stdio.h.
	(GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.

35 36 37 38
	* eval.c (do_autoload): Error if called while preparing to dump.

	* fns.c (Frequire): Error if need to load while preparing to dump.

Colin Walters's avatar
Colin Walters committed
39 40
2002-04-28  Colin Walters  <walters@verbum.org>

Colin Walters's avatar
Colin Walters committed
41 42
	* callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
	Default to "~/.emacs.d/games".
Colin Walters's avatar
Colin Walters committed
43

44 45
2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>

46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
	* lread.c (openp): Change arg exec_only to predicate.
	(build_load_history): Use XCAR/XCDR.
	(Flocate_file_internal): New fun.
	(syms_of_lread): Defsubr it.
	(Fload): Update call to openp.

	* lisp.h (openp): Update prototype.

	* 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_internal):
	* process.c (Fstart_process):
	* macfns.c (x_create_bitmap_from_file, x_find_image_file):
	* mac.c (run_mac_command):
	* emacs.c (init_cmdargs):
	* callproc.c (Fcall_process): Update call to openp.

Stefan Monnier's avatar
Stefan Monnier committed
65 66
	* textprop.c (remove_properties): Don't use XCAR without CONSP.

67 68
	* xterm.c (XTread_socket): Disable the Xutf8LookupString code.

Pavel Janík's avatar
Pavel Janík committed
69 70 71 72 73
2002-04-29  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
	(DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.

74 75 76 77 78 79 80
2002-04-28  Richard M. Stallman  <rms@gnu.org>

	* minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.

	* eval.c (Fcommandp): New arg for_call_interactively.
	* lisp.h (Fcommandp): Declare new arg.

Jason Rumney's avatar
Jason Rumney committed
81 82 83 84 85 86 87
2002-04-28  Jason Rumney  <jasonr@gnu.org>

	* w32proc.c (syms_of_w32proc): Get true file attributes by default.

	* w32.c (stat, fstat): Use file index information to generate
	inodes for directories where available.

88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
2002-04-26  Andrew Choi  <akochoi@shaw.ca>

	* Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
	[HAVE_CARBON]: Include Mac object files.

	* alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
	fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
	termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
	MAC_OSX, and MAC_OS instead of macintosh.

	* editfns.c [MAC_OS8]: Include stdio.h.

	* emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.

	* fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
	Apple Monaco.

	* process.c: Declare QCfamily and QCfilter as extern.
	(wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
	calling select.

109 110
	* termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.

111
	* tparam.c [MAC_OSX]: Don't define BC and UP.
112

113 114
	* config.in [HAVE_CARBON]: Add.

115 116
	* mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
	Move here from mac/src and mac/inc.
117 118

	* s/darwin.h, m/powermac.h, unexmacosx.c: New files.
119

120 121
2002-04-26  Gerd Moellmann  <gerd@gnu.org>

122 123 124
	* xterm.c (x_draw_phys_cursor_glyph): Undo last change.
	Compute phys_cursor_width from the x position returned
	by x_draw_glyhs, which is cheaper.
125 126 127
	(x_display_and_set_cursor): Compute the buffer-local value
	of `cursor-in-non-selected-windows' only when needed.

128 129 130 131 132 133
2002-04-25  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
	cursor on a stretch glyph has a width that depends on
	x_stretch_cursor_p.

134 135
2002-04-25  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

136 137
	* abbrev.c (abbrev-start-location): Doc fix.

138 139
	* indent.c (Fvertical_motion): Fix last change.

140 141 142 143 144
2002-04-25  Gerd Moellmann  <gerd@gnu.org>

	* indent.c (Fvertical_motion): Move to the start of the line
	containing PT before moving up or down.

145 146
2002-04-24  Gerd Moellmann  <gerd@gnu.org>

147 148 149 150 151 152
	* dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
	case of writing a whole row, more or less analogous to the case of
	writing only parts of a row.

	* xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
	0 for NO_CURSOR.
153

154 155
	* xterm.c (notice_overwritten_cursor): Fix an off by 1 error.

Colin Walters's avatar
Colin Walters committed
156 157 158 159
2002-04-23  Colin Walters  <walters@verbum.org>

	* buffer.c (syms_of_buffer): Doc fix.

160 161
2002-04-23  Gerd Moellmann  <gerd@gnu.org>

162 163 164
	* xterm.c (notice_overwritten_cursor): Handle the special case
	of the cursor being in the first blank non-text line at the
	end of a window.
165

166 167 168 169 170 171 172 173
	* xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
	(x_draw_phys_cursor_glyph): Set phys_cursor_width here.
	(x_display_and_set_cursor): Don't set phys_cursor_width here, for
	bar cursors only, to make phys_cursor_width contain what its name
	suggests.
	(notice_overwritten_cursor): Consider the cursor image erased if
	the output area intersects the cursor image in y-direction.

174 175 176 177 178
2002-04-23  Simon Marshall  <simon@gnu.org>

	* xfns.c (x_set_mouse_color): Change default for cross_cursor
	to XC_hand2.

Pavel Janík's avatar
Pavel Janík committed
179 180
2002-04-23  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

181
	* xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
Pavel Janík's avatar
Pavel Janík committed
182

183 184 185 186
2002-04-22  Kim F. Storm  <storm@cua.dk>

	* textprop.c (remove_properties): Fixed trap for malformed plist.

187 188
2002-04-22  Richard M. Stallman  <rms@gnu.org>

189 190
	* cmds.c (Fend_of_line): Handle intangible text in mid line.

191 192 193
	* window.c (make_window): Initialize height_fixed_p,
	last_cursor_off_p, and p->cursor_off_p slots.

Pavel Janík's avatar
Pavel Janík committed
194 195 196 197
2002-04-20  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* fns.c (use-dialog-box): Doc fix.

Pavel Janík's avatar
Pavel Janík committed
198 199 200 201 202 203 204
2002-04-19  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* xterm.c (note_mode_line_or_margin_highlight): Remove unused
	variables `row', `i' and `area'.
	(XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
	toolkit library.

205 206 207 208 209 210 211
2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>

	* xfaces.c (clear_font_table): Don't free the default font of
	a frame even if it's on another display.
	(Finternal_set_lisp_face_attribute): Don't use XFRAME on something
	that could be Qt.

212 213 214 215 216 217
2002-04-19  Juanma Barranquero  <lektu@terra.es>

	* indent.c (Fmove_to_column): Remove unused local variable
	`next_boundary_byte'.
	(current_column_1): Likewise.

Eli Zaretskii's avatar
Eli Zaretskii committed
218 219 220
2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (Qhbar): New variable.
221
	(syms_of_msdos): Intern and staticpro it.
Eli Zaretskii's avatar
Eli Zaretskii committed
222 223 224
	(IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
	cursor type.

225 226 227 228 229 230 231 232 233 234 235
2002-04-19  Dave Lambert <dlambert@acm.org>

	Theses change implement an underscore-like (`hbar') cursor.

	* xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.

	* xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
	Handle the `hbar' cursor type.
	(x_display_and_set_cursor): Handle the HBAR_CURSOR case.

	* xfns.c (Qhbar): New variable.
236
	(syms_of_xfns): Intern and staticpro it.
237
	(x_specified_cursor_type): Handle `hbar' cursor.
Eli Zaretskii's avatar
Eli Zaretskii committed
238 239 240 241

	* s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
	not defined.

242 243 244 245 246 247 248 249 250 251
2002-04-18  Richard M. Stallman  <rms@gnu.org>

	* textprop.c (remove_properties): New arg LIST allows scanning
	either a list or a plist.
	(interval_has_some_properties_list): New function, like
	interval_has_some_properties using list instead of plist.
	All callers changed.
	(Fremove_list_of_text_properties): New function.
	(syms_of_textprop): Defsubr it.

252 253 254 255
2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>

	* s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.

256 257
2002-04-17  Juanma Barranquero  <lektu@terra.es>

258
	* indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
259

260 261 262 263 264
2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>

	* window.c (coordinates_in_window): Don't report on margin area
	if its width is zero.

Jason Rumney's avatar
Jason Rumney committed
265 266 267 268 269
2002-04-16  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (Fx_file_dialog): Decode file name before using.

	* w32term.c (construct_drag_n_drop): Likewise.
270

Eli Zaretskii's avatar
Eli Zaretskii committed
271 272 273 274 275 276 277
2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>

	* puresize.h (BASE_PURESIZE): Increase to 830000, since we now
	store load-history in pure space.

	* s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.

Stefan Monnier's avatar
Stefan Monnier committed
278 279 280 281 282 283 284 285 286 287 288
2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>

	* xterm.c (Qlatin_1, Qutf_8): New vars.
	(syms_of_xterm): Initialize them.
	(XTread_socket): Eliminate incorrect optimization that tried to avoid
	decoding the output of X*LookupString.
	Always use latin-1 to decode the output of XLookupString.
	Try Xutf8LookupString if XmbLookupString failed.

	* region-cache.c (new_region_cache): Use BEG.

289 290 291 292 293 294 295
2002-04-16  Gerd Moellmann  <gerd@gnu.org>

	* buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
	configuration files.
	(mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
	returns 0.

296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
2002-04-15  Andreas Schwab  <schwab@suse.de>

	* config.in: Regenerated using autoheader.

	* m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
	m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
	m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
	m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
	m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
	m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
	m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
	m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
	m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
	m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
	m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
	m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
	m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
	m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
	m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
	s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
	STACK_DIRECTION, now set by autoconf.

Pavel Janík's avatar
Pavel Janík committed
318 319 320 321 322 323
2002-04-14  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* dispnew.c (marginal_area_string): Sort arguments.

	* dispextern.h (marginal_area_string): Add prototype.

Richard M. Stallman's avatar
Richard M. Stallman committed
324 325
2002-04-13  Richard M. Stallman  <rms@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
326
	* fileio.c (Finsert_file_contents):
Richard M. Stallman's avatar
Richard M. Stallman committed
327 328 329 330 331 332 333 334 335 336 337 338 339
	Don't call temp_output_buffer_setup--do just part, by hand.

	* coding.c (run_pre_post_conversion_on_str):
	Don't call temp_output_buffer_setup--do just part, by hand.

	* keyboard.c (command_loop_1): Don't call start_hourglass
	or cancel_hourglass when executing a macro.

	* marker.c (count_markers): New function.

	* xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
	grow without limit.  Move recently used elements to the front.

340 341 342 343
2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>

	* unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.

Gerd Moellmann's avatar
Gerd Moellmann committed
344 345
2002-04-12  Gerd Moellmann  <gerd@gnu.org>

346 347 348 349 350
	* xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
	rows marginal areas.
	(Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
	(syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.

Gerd Moellmann's avatar
Gerd Moellmann committed
351 352 353 354 355 356 357 358
	* dispnew.c (marginal_area_string): Check that glyph row is enabled.

2002-04-12  Dave Love  <fx@gnu.org>

	* dispnew.c (marginal_area_string): New.

	* window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
	(Qleft_margin, Qright_margin): Declare.
Stefan Monnier's avatar
Stefan Monnier committed
359
	(coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
Gerd Moellmann's avatar
Gerd Moellmann committed
360 361 362 363 364 365 366

	* xterm.c (note_mode_line_or_margin_highlight): Renamed from
	note_mode_line_highlight and extended.

	* keyboard.c (Qleft_margin, Qright_margin): Declare.
	(make_lispy_event): Deal with mouse events in margins.

Stefan Monnier's avatar
Stefan Monnier committed
367 368 369 370 371 372 373 374 375 376
2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>

	* msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.

	* keyboard.c (command_loop_1): Turn off transient-mark-mode rather
	than deactivating the mark if tmm is set to `lambda'.
	(gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
	Use a single event for HELP_EVENT.
	(Fexecute_extended_command): Save last_point_position.

Pavel Janík's avatar
Pavel Janík committed
377 378 379 380 381 382
2002-04-12  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* lisp.h (Fpropertize): Add prototype.

	* fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.

Colin Walters's avatar
Colin Walters committed
383 384
2002-04-10  Colin Walters  <walters@verbum.org>

Colin Walters's avatar
Colin Walters committed
385 386
	* config.in: Add HAVE_SHARED_GAME_DIR.

Colin Walters's avatar
Colin Walters committed
387 388 389
	* callproc.c: (Vgame_score_directory): New variable.
	(syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.

390 391 392 393
2002-04-10  Richard M. Stallman  <rms@gnu.org>

	* puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.

Stefan Monnier's avatar
Stefan Monnier committed
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408
2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>

	* minibuf.c (read_minibuf): Use empty_string.
	(Ftry_completion): Allow lambda forms and lists of strings for `alist'.
	Short-circuit the search as soon as it "failed".
	(Fall_completions): Allow lambda forms and lists of strings for alist.
	(Fcompleting_read): Set Qminibuffer_completion_confirm to nil
	when require_match is nil.
	(Ftest_completion): Rename from `test_completion' and export to elisp.
	Call the predicate also when alist is a list.
	Obey Vcompletion_regexp_list.
	(do_completion, Fminibuffer_complete_and_exit): Use it.
	(Fassoc_string): Rename from `assoc_for_completion'.
	Allow list of strings as well and export to elisp.

Stefan Monnier's avatar
Stefan Monnier committed
409 410 411 412
2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>

	* puresize.h (BASE_PURESIZE): Increase to 900KB.

413 414 415 416
2002-04-08  Juanma Barranquero  <lektu@terra.es>

	* w32.c (sys_accept): Don't hide variable `s'.

417 418
2002-04-05  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
419
	* callint.c (Fcall_interactively): Use INTEGERP instead of
420 421
	NUMBERP for checking Vhistory_length.

Pavel Janík's avatar
Pavel Janík committed
422 423 424 425 426
2002-04-05  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
	Doc fix to reflect it.

427 428 429 430 431 432 433 434
2002-04-04  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (display_mode_element): New arg RISKY.
	Disregard text props found or specified within a variable
	that isn't marked risky-local-variable.
	(Qrisky_local_variable): New variable.
	(syms_of_xdisp): Init and staticpro it.

Stefan Monnier's avatar
Stefan Monnier committed
435 436 437 438 439
2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>

	* undo.c (record_point): New fun.
	(record_delete, record_insert): Use it.

Juanma Barranquero's avatar
Juanma Barranquero committed
440 441 442 443 444
2002-04-03  Juanma Barranquero  <lektu@terra.es>

	* doc.c (Fdocumentation): Add missing parentheses.
	(Fdocumentation_property): Likewise.

Stefan Monnier's avatar
Stefan Monnier committed
445 446 447 448 449
2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>

	* doc.c (Fdocumentation, Fdocumentation_property): When the doc
	data is 0, just return nil.

450 451 452 453 454
2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (syms_of_msdos): Fix last change with
	mouse_autoselect_window.

Pavel Janík's avatar
Pavel Janík committed
455 456 457 458 459
2002-04-03  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
	mouse_autoselect_window.

460 461
2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>

462 463 464
	* keyboard.c (make_lispy_event): Handle unknown keysyms together
	with system-specific keysyms.  Use it also for unknown function keys.

465 466 467 468 469 470
	* doc.c (reread_doc_file): Return whether reload was attempted.
	(Fdocumentation, Fdocumentation_property): Don't try to reload
	if the doc is 0 and only ask once.

	* Makefile.in (lisp, shortlisp): Add ucs-tables.elc.

471 472 473 474 475
2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>

	* keyboard.c (read_char): If the event was Qselect_window,
	restore timer_idleness_start_time to its previous value.

476
	* msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
477

478 479
2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>

Stefan Monnier's avatar
Stefan Monnier committed
480 481 482 483 484
	* region-cache.c (new_region_cache): Use BEG.

	* marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
	Use BEG and BEG_BYTE.

485
	* doc.c (get_doc_string): Return nil if the location is wrong.
Stefan Monnier's avatar
Stefan Monnier committed
486 487 488 489 490 491 492 493 494 495
	(reread_doc_file): New fun.
	(Fdocumentation, Fdocumentation_property):
	Call it if get_doc_string fails.
	(Fsnarf_documentation): Make it work for a dumped Emacs.

	* charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
	Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.

	* charset.c (Fstring): Allow 0 arguments.

496 497 498 499 500 501 502
	* xterm.c (XTread_socket): Fix int/Lisp_Object confusion.

	* process.c (DATAGRAM_CONN_P, list_processes_1)
	(Fprocess_datagram_address, Fset_process_datagram_address)
	(Fset_network_process_options, server_accept_connection):
	Fix some int/Lisp_Object confusions (thank you union types).

Pavel Janík's avatar
Pavel Janík committed
503 504 505 506 507
2002-04-01  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* msdos.c: Rename x_autoselect_window_p to autoselect_window_p.

	* w32term.c: Likewise.
508
	(note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
Pavel Janík's avatar
Pavel Janík committed
509 510 511

	* keyboard.c (Qselect_window): New symbol.
	(head_table): Use it.
512 513
	(keys_of_keyboard): Bound select-window event to handle-select-window.
	(kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
Pavel Janík's avatar
Pavel Janík committed
514 515 516 517 518

	* xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
	(last_window): New variable.
	(XTread_socket): Generate SELECT_WINDOW_EVENTs.
	(note_mouse_movement): Remove reimplemented code in #if 0.
Pavel Janík's avatar
Pavel Janík committed
519 520
	(XTread_socket): Generate SELECT_WINDOW_EVENTs only for
	Emacs windows.
Pavel Janík's avatar
Pavel Janík committed
521

522
	* termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
Pavel Janík's avatar
Pavel Janík committed
523

524 525 526 527 528
2002-03-31  Gerd Moellmann  <gerd@gnu.org>

	* xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
	Callers changed.

Richard M. Stallman's avatar
Richard M. Stallman committed
529 530 531 532 533 534 535
2002-03-30  Richard M. Stallman  <rms@gnu.org>

	* window.c (window_scroll_pixel_based): Exit the move_it_by_lines
	loop whenever it stops making progress.

	* widget.c (set_frame_size): Don't call change_frame_size.

Gerd Moellmann's avatar
Gerd Moellmann committed
536 537
2002-03-30  Gerd Moellmann  <gerd@gnu.org>

538 539
	* dispnew.c (direct_output_for_insert):
	Call mark_window_display_accurate.
Gerd Moellmann's avatar
Gerd Moellmann committed
540

541 542 543 544
2002-03-29  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.

545 546
2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>

Eli Zaretskii's avatar
Eli Zaretskii committed
547 548
	* Makefile.in (lread.o): Depend on coding.h.

Gerd Moellmann's avatar
Gerd Moellmann committed
549
	* lread.c (openp, Fload): Encode the file name before passing it
550 551 552 553
	to `stat', `access', and `emacs_open'.
	(openp): GCPRO the encoded file name.  Don't recompute Lisp
	strings unnecessarily.

Kim F. Storm's avatar
Kim F. Storm committed
554 555 556 557
2002-03-29  Kim F. Storm  <storm@cua.dk>

	* fns.c (Flax_plist_put): Doc fix.

558 559 560 561
2002-03-28  Miles Bader  <miles@gnu.org>

	* process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.

562 563 564 565 566
2002-03-27  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* process.c (set-network-process-options): Add usage.
	(make-network-process): Doc fix.

567 568 569 570
2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>

	* emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".

571 572
2002-03-26  Richard M. Stallman  <rms@gnu.org>

573 574 575 576
	* fns.c (Fsubstring_no_properties): New function.
	(Flax_plist_get, Flax_plist_put): New functions.
	(syms_of_fns): defsubr them.

577 578 579 580 581 582 583 584 585
	* xdisp.c (update_menu_bar): Test only update_mode_lines;
	don't test or alter w->update_mode_line.

	* window.c (Fdisplay_buffer): Doc fix.

2002-03-24  Richard M. Stallman  <rms@gnu.org>

	* regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.

Gerd Moellmann's avatar
Gerd Moellmann committed
586 587 588 589 590 591 592
2002-03-24  Gerd Moellmann  <gerd@gnu.org>

	* eval.c (Qdeclare, Vmacro_declaration_function): New variables.
	(Fdefmacro): Handle `(declare ...)'.
	(syms_of_eval) <Qdeclare>: Initialize and staticpro.
	(syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.

593 594 595 596 597 598 599 600 601 602
2002-03-24  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
	(xbm_file_p): Add prototypes.
	(xbm_format, xbm_image_p): Sync with xfns.c.
	(reflect_byte): New function.
	(xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
	(xbm_load_image): Create bitmaps with a depth of 1.
	(init_xfns): Enable XBM images.

603 604 605 606 607 608 609
2002-03-23  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (w32_handle_tool_bar_click): Detect up and down events
	correctly.  Do not pass up_modifier to keyboard buffer.

	* w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.

Stefan Monnier's avatar
Stefan Monnier committed
610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>

	* Makefile.in (bootstrapclean): New target.
	(bootstrap-temacs, bootstrap-doc): Remove.
	(bootstrap-emacs): Use a bog-standard `temacs'.
	Don't bother to build a DOC file.

	* sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.

	* emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
	in temacs even if !CANNOT_DUMP.
	(standard_args): Keep --no-loadup even if !CANNOT_DUMP.

	* alloc.c (check_pure_size): Only output a warning.

625 626
2002-03-22  Jason Rumney  <jasonr@gnu.org>

627 628 629
	* w32fns.c (Fx_create_frame): Enable tool-bar when images are
	supported.

Jason Rumney's avatar
Jason Rumney committed
630
	* w32term.c (zv_bits): Declare as short, for word alignment.
631 632 633 634 635 636 637
	(w32_read_socket) <WM_XBUTTONUP>: Fix last change.
	(syms_of_w32term): Define x-use-underline-position-properties.

	* w32fns.c (x_set_cursor_color): Set cursor_gc as well.
	(clear_image_cache): Block input, fix logic, clear matrices in
	all frames that share this cache.

Eli Zaretskii's avatar
Eli Zaretskii committed
638 639
2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>

640 641 642
	* emacs.c (main): Update the Copyright year in the blurb printed
	by "emacs --version".

643 644
	* xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.

Eli Zaretskii's avatar
Eli Zaretskii committed
645 646 647 648
	* xterm.c (XTread_socket): If XK_ISO_Lock and
	XK_ISO_Last_Group_Lock are defined, handle keysyms between
	XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.

649 650 651 652 653 654 655 656
2002-03-21  Kim F. Storm  <storm@cua.dk>

	* keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
	menu-bar bindings in keymap and local-map properties _are_ used.
	But try keymap property first in accordance with 2002-01-03 patch.
	Added comment describing why this is not always reliable.
	(tool_bar_items): Ditto for tool-bar.

657 658 659 660
2002-03-21  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (x_clear_image_1): Disable color table code.

661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676
2002-03-21  Kim F. Storm  <storm@cua.dk>

	* lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
	removed the wrong version of the DEFUN macro; fixed it.

	* fns.c (Ffeaturep): Allow subfeature to be a list (test using
	Fmember rather than Fmemq).
	(Fprovide): Check that subfeatures is a list.

	* process.c (QCfeature, QCdatagram): Removed variables.
	(QCtype, Qdatagram): New variables.
	(network_process_featurep): Removed function.
	(Fmake_network_process): Removed :feature check.
	Use :type 'datagram instead of :datagram t to create a datagram
	socket.  This allows us to add other connection types (e.g. raw
	sockets) later in a consistent manner.
Kim F. Storm's avatar
Kim F. Storm committed
677 678
	(init_process) [subprocess, HAVE_SOCKETS]: Provide list of
	supported subfeatures for feature make-network-process.
679 680 681 682 683 684 685 686 687 688
	(syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
	Intern and staticpro QCtype and Qdatagram.
	(syms_of_process) [!subprocess]: Intern and staticpro QCtype.

	* xfns.c: (QCtype): Remove duplicate declaration and
	initialization (is now declared in process.c).

	* w32fns.c: (QCtype): Remove duplicate declaration and
	initialization (is now declared in process.c).

689 690
2002-03-21  Richard M. Stallman  <rms@gnu.org>

691 692 693 694 695 696
	* regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
	(CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
	when jumping to `fail' to avoid undoing reg changes in the
	last iteration of the loop.
	(GET_UNSIGNED_NUMBER): Skip spaces around the number.

697 698 699
	* Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
	Depend on process.h.

Jason Rumney's avatar
Jason Rumney committed
700 701 702 703 704
2002-03-20  Jason Rumney  <jasonr@gnu.org>

	Most of the following changes are still conditional on HAVE_IMAGES
	which is not set by default on Windows.

Jason Rumney's avatar
Jason Rumney committed
705 706
	* emacs.c (main) [WINDOWSNT]: Call init_xfns.

Jason Rumney's avatar
Jason Rumney committed
707 708 709 710 711 712 713 714 715 716 717 718 719
	* w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
	(Fimage_size, Fimage_mask_p, XPutPixel): New functions.
	(four_corners_best, x_clear_image_1, x_clear_image)
	(x_alloc_image_color, postprocess_image) 
	(x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image) 
	(x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
	(init_xfns, syms_of_w32fns): Initialize image functions and constants.

	* w32gui.h (struct XImage): Define.

	* w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
	extract mouse co-ordinates.

Jason Rumney's avatar
Jason Rumney committed
720 721 722 723 724 725 726 727 728 729 730 731 732 733
2002-03-20  Jason Rumney  <jasonr@gnu.org>

	* w32.c (init_winsock): Dynamically load new server and UDP
	socket functions.
	(socket_to_fd): New function.
	(sys_socket): Use it.
	(sys_setsockopt, sys_listen, sys_getsockname, sys_accept) 
	(sys_recvfrom, sys_sendto): New wrapper functions.

	* process.c (QCfamily, QCfilter): Remove duplicate declaration
	and initialization.

	* makefile.w32-in (LIBS): Remove $(WSOCK32).

Eli Zaretskii's avatar
Eli Zaretskii committed
734 735 736 737 738 739
2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>

	* process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
	use "sun" as a variable, it's a predefined constant on Sun
	machines.

740 741 742 743
2002-03-20  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* bytecode.c (Fbyte_code): Revert last change.

Kim F. Storm's avatar
Kim F. Storm committed
744 745 746 747 748
2002-03-19  Kim F. Storm  <storm@cua.dk>

	* makefile.w32-in (LIBS): Add $(WSOCK32).
	From David Ponce <dponce@voila.fr>.

Pavel Janík's avatar
Pavel Janík committed
749 750
2002-03-18  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

751 752 753
	* process.c (wait_reading_process_input): Move variables `pname'
	and `pnamelen' down where they are used.

754 755 756
	* bytecode.c (Fbyte_code): Discard unused computed value to
	prevent gcc warning.

Pavel Janík's avatar
Pavel Janík committed
757 758
	* lisp.h (Fplist_member): Add prototype.

Kim F. Storm's avatar
Kim F. Storm committed
759 760 761 762 763 764
2002-03-18  Kim F. Storm  <storm@cua.dk>

	* config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
	HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
	HAVE_SYS_UN_H.

Pavel Janík's avatar
Pavel Janík committed
765
	* process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
Kim F. Storm's avatar
Kim F. Storm committed
766 767
	Remove explicit GNU_LINUX settings for datagram support.

768 769 770 771 772 773 774
2002-03-18  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* process.c (Fmake_network_process): Remove unused variable `sa'.
	Doc fix.  Add usage:.
	(set_socket_options): Remove unused variables `optnum' and
	`opttype'.

775 776 777 778 779 780 781 782 783
2002-03-17  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (cursor_type_changed): New variable.
	(redisplay_internal): Redisplay all windows if cursor_type_changed.
	Clear it when clearing windows_or_buffers_changed.
	(try_cursor_movement, redisplay_window, try_window_id)
	(try_window_reusing_current_matrix): Test cursor_type_changed
	along with windows_or_buffers_changed.

Pavel Janík's avatar
Pavel Janík committed
784
	* window.h (cursor_type_changed): New variable.
785 786 787 788 789 790 791

	* xfns.c (x_set_cursor_type): Set cursor_type_changed,
	not update_mode_lines, and always set it to 1.

	* xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
	if no frames needed redrawing.

792 793
2002-03-17  Kim F. Storm  <storm@cua.dk>

Pavel Janík's avatar
Pavel Janík committed
794
	The following changes add support for network server processes,
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 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
	datagram connections, and local (unix) sockets.

	* process.h (struct Lisp_Process): New member log.
	Doc fix: Member command used to indicate stopped network process.
	Doc fix: Member childp contains plist for network process.
	Doc fix: Member kill_without_query is inverse of query-on-exit flag.

	* process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
	(QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
	(QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
	New variables.
	(NETCONN1_P): New macro.
	(DATAGRAM_SOCKETS): New conditional symbol.
	(datagram_address): New array.
	(DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
	(status_message): Use concat3.
	(Fprocess_status): Add `listen' status to doc string.  Return `stop'
	for a stopped network process.
	(Fset_process_buffer): Update contact plist for network process.
	(Fset_process_filter): Ditto.  Don't enable input for stopped
	network processes.  Server must listen, even if filter is t.
	(Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
	New functions.
	(Fprocess_kill_without_query): Removed.  Now defined in simple.el.
	(Fprocess_contact): Added KEY argument.  Handle datagrams.
	(list_processes_1): Optionally show only processes with the query
	on exit flag set.  Dynamically adjust column widths.  Omit tty
	column if not needed.  Report stopped network processes.
	Identify server and datagram network processes.
	(Flist_processes): New optional arg `query-only'.
	(conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
	(conv_lisp_to_sockaddr, set_socket_options)
	(network_process_featurep, unwind_request_sigio): New helper functions.
	(Fprocess_datagram_address, Fset_process_datagram_address):
	(Fset_network_process_options): New lisp functions.
	(Fopen_network_stream): Removed.  Now defined in simple.el.
	(Fmake_network_process): New lisp function.  Code is based on previous
	Fopen_network_stream, but heavily reworked with new property list based
	argument list, support for datagrams, server processes, and local
	sockets in addition to old client-only functionality.
	(server_accept_connection): New function.
	(wait_reading_process_input): Use it to handle incoming connects.
	Do not enable input on a new connection if process is stopped.
	(read_process_output): Handle datagram sockets. Use 2k buffer for them.
	(send_process): Handle datagram sockets.
	(Fstop_process, Fcontinue_process): Apply to network processes.  A stopped
	network process is indicated by setting command field to t .
	(Fprocess_send_eof): No-op if datagram connection.
	(Fstatus_notify): Don't read input for a stream server socket or a
	stopped network process.
	(init_process): Initialize datagram_address array.
	(syms_of_process): Intern and staticpro new variables, defsubr new
	functions.

Jason Rumney's avatar
Jason Rumney committed
849 850 851 852 853
2002-03-16  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (w32_to_all_x_charsets): Return correct type in
	startup case.

854 855 856 857 858 859 860 861 862 863 864
2002-03-16  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (redisplay_internal, redisplay_windows): 
	Use list_of_error to call internal_condition_case_1.
	(safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
	so as to catch all errors with no possibility of debugger redisplay.
	(list_of_error): New variable.
	(syms_of_xdisp): Init and staticpro it.

	* print.c (print_object): Delete `\ ' from printed rep of frame.

865 866 867 868 869
2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>

	* msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
	until its implementation is fixed.

870 871 872 873
2002-03-14  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* xfns.c (png_load): Remove unused variable `gamma_str'.

874 875 876 877
2002-03-14  Richard M. Stallman  <rms@gnu.org>

	* xfns.c (x_real_positions): Handle failure in XQueryTree.

Miles Bader's avatar
Miles Bader committed
878 879 880 881 882 883 884 885 886 887 888 889 890
2002-03-14  Miles Bader  <miles@gnu.org>

	* intervals.c (adjust_for_invis_intang): New function.
	(set_point_both): Use `adjust_for_invis_intang' to do most of the
	work for dealing with invisible+intangible regions.  Do so before
	and after both forward and backward movements, to handle both
	front-sticky and rear-sticky cases.
	* textprop.c (text_property_stickiness): Function moved here from
	`editfns.c'.
	* intervals.h (text_property_stickiness): New declaration.
	* editfns.c (char_property_eq): Function removed.
	(text_property_stickiness): Function moved to `textprop.c'.

Jason Rumney's avatar
Jason Rumney committed
891 892 893 894 895 896 897
2002-03-13  Jason Rumney  <jasonr@gnu.org>

	* config.in: Add STRFTIME_NO_POSIX2.

	* strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
	and %OX when underlying strftime does not.

898 899
2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>

900 901 902 903 904 905
	* xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
	Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
	line) to avoid annoying flicker.
	(xm_scroll_callback): Get rid of the now unnecessary kludge.
	(XTread_socket): Mark it static.

906 907
	* xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.

Kim F. Storm's avatar
Kim F. Storm committed
908 909 910 911
2002-03-13  Kim F. Storm  <storm@cua.dk>

	* puresize.h (BASE_PURESIZE): Increase to 775000.

912 913 914 915
2002-03-12  Juanma Barranquero  <lektu@terra.es>

	* editfns.c (syms_of_editfns): Fix typo.

916 917 918 919 920
2002-03-12  Gerd Moellmann  <gerd@gnu.org>

	* xsmfns.c: Include stdio.h because termhooks.h needs it.
	Include termopt.h for interrupt_input.

921 922 923 924
2002-03-11  Andreas Schwab  <schwab@suse.de>

	* coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.

925 926
2002-03-11  Gerd Moellmann  <gerd@gnu.org>

927 928 929
	* xterm.c (note_mouse_movement): Put code for
	x_autoselect_window_p in #if 0.

Pavel Janík's avatar
Pavel Janík committed
930
	* lread.c (Fload): Don't assume that message_with_string uses the
931 932
	string it is given like a C string.

Jan Djärv's avatar
Jan Djärv committed
933 934
2002-03-10  Jan D.  <Jan.Djarv@mbox200.swipnet.se>

935
	* xterm.h (x_session_check_input, x_session_initialize): Declared.
Jan Djärv's avatar
Jan Djärv committed
936

Jan Djärv's avatar
Jan Djärv committed
937 938 939
	* xterm.c: (XTread_socket): Add call to x_session_check_input and
	x_session_have_connection.
	(x_initialize): Add call to x_session_initialize.
Jan Djärv's avatar
Jan Djärv committed
940

Pavel Janík's avatar
Pavel Janík committed
941
	* termhooks.h (enum event_kind): Add save_session_event.
Jan Djärv's avatar
Jan Djärv committed
942

Pavel Janík's avatar
Pavel Janík committed
943
	* keyboard.c: Add Emacs event save_session_event.
Jan Djärv's avatar
Jan Djärv committed
944

Pavel Janík's avatar
Pavel Janík committed
945
	* emacs.c (main): Add call to syms_of_xsmfns.
Jan Djärv's avatar
Jan Djärv committed
946

Pavel Janík's avatar
Pavel Janík committed
947
	* lisp.h: Declare syms_of_xsmfns as extern.
Jan Djärv's avatar
Jan Djärv committed
948

Pavel Janík's avatar
Pavel Janík committed
949
	* config.in: Add HAVE_X_SM.
Jan Djärv's avatar
Jan Djärv committed
950

951 952 953
	* Makefile.in (LIBXT): Add -lSM -lICE
	if HAVE_X_SM and not USE_X_TOOLKIT.
	(XOBJ): New file xsmfns.c added.
Jan Djärv's avatar
Jan Djärv committed
954 955 956

	* xsmfns.c: New file for X session management.

957 958 959 960 961
2002-03-09  Jason Rumney  <jasonr@gnu.org>

	* fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
	read-only when setting modified time.

Gerd Moellmann's avatar
Gerd Moellmann committed
962 963
2002-03-08  Gerd Moellmann  <gerd@gnu.org>

Gerd Moellmann's avatar
Gerd Moellmann committed
964 965 966 967
	* xdisp.c (move_it_vertically_backward): At the end of the
	function, when moving forward by lines, treat terminal frames
	specially.

968 969 970
	* keyboard.c (echo_char): Make sure to add a separator between
	keys even if echo_dash hasn't been called.

Gerd Moellmann's avatar
Gerd Moellmann committed
971 972 973 974 975 976 977
	* xdisp.c: Use new string macros.
	(update_echo_area): Pass number of bytes to message3 instead of
	number of chars.
	(set_message_1): Don't access a string's size_byte directly.
	(decode_mode_spec_coding): Use number of bytes of eoltype string
	instead number of chars.

Gerd Moellmann's avatar
Gerd Moellmann committed
978 979
	* lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.

980 981 982 983 984
2002-03-08  Juanma Barranquero  <lektu@terra.es>

	* w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
	24-bit.

Jason Rumney's avatar
Jason Rumney committed
985 986 987 988
2002-03-06  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.

Gerd Moellmann's avatar
Gerd Moellmann committed
989 990
2002-03-06  Gerd Moellmann  <gerd@gnu.org>

Stefan Monnier's avatar
Stefan Monnier committed
991
	* keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
992 993 994 995 996 997 998 999 1000 1001
	(cancel_echoing, echo_length, echo_truncate): Changed to
	work with new kboard definition.
	(echo_now): Use message3_nolog instead of message2_nolog.

	* alloc.c (mark_kboards): Mark echo_string.

	* keyboard.h (ECHOBUFSIZE): Removed.
	(struct kboard): Member echoptr removed, member echobuf renamed
	to echo_string.

Gerd Moellmann's avatar
Gerd Moellmann committed
1002 1003 1004 1005
	* xdisp.c (message_with_string): Use Fformat instead of doprnt and
	message3 instead of message2 to display the message using STRING's
	text properties.

1006 1007 1008 1009
2002-03-05  Andreas Schwab  <schwab@suse.de>

	* xdisp.c (hscroll_margin): Change to EMACS_INT.

1010 1011 1012 1013 1014
2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>

	* frame.c (default-frame-alist): Explain that setting it doesn't
	affect existing frames.

Stefan Monnier's avatar
Stefan Monnier committed
1015 1016 1017 1018 1019 1020
2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>

	* indent.c (skip_invisible): Fix my brain fart.

	* dispnew.c (sit_for): Don't wait if executing a kbd macro.

1021 1022 1023 1024 1025 1026 1027 1028
2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>

	* dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
	* alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
	* lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
	* window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
	and variables to use EMACS_INT instead of just int.

Stefan Monnier's avatar
Stefan Monnier committed
1029 1030
	* buffer.c (syms_of_buffer): Allow non-string `mode-name'.

1031 1032 1033 1034 1035
2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>

	* sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
	environment, pass it down with corrected value.

Pavel Janík's avatar
Pavel Janík committed
1036 1037 1038 1039 1040
2002-03-04  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* lread.c (read_filtered_event): Do not call start_hourglass
	before returning.

1041 1042 1043 1044
2002-03-04  Juanma Barranquero  <lektu@terra.es>

	* w32term.c (x_display_and_set_cursor): Fix typo.

1045 1046 1047 1048
2002-03-03  Richard M. Stallman  <rms@gnu.org>

	* fileio.c (Fmake_temp_name): Doc fix.

1049 1050 1051 1052 1053 1054 1055
2002-03-03  Gary Wong  <gtw@gnu.org>

	* termcap.c [!emacs]: Replace ospeed for building standalone
	libtermcap, for binary compatibility.

	* tparam.c [!emacs]: Move #define of bcopy to after string.h.

1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082
2002-03-03  Richard M. Stallman  <rms@gnu.org>

	* xrdb.c (file_p): Rename arg `path' to `filename'.

	* abbrev.c (Fexpand_abbrev): Increment plist as use count
	only if it is an integer.

	* xfns.c (png_load): Set screen_gamma based on f->gamma.
	If png_get_sRGB gives an answer, call png_set_gamma
	using the default image gamma value.

	* lread.c (read1): When reading from a file, default string to
	multibyte only if it has some multibyte characters.

	* print.c (print_object): Output multibyte chars 128...255
	using \x even if ! print_escape_multibyte.

	* xdisp.c (display_mode_element): Move the places where
	bytepos, charpos, this, and lisp_string are set.
	Use lisp_string to set bytepos.

	* xdisp.c (redisplay_internal):
	Call clear_image_cache only if HAVE_WINDOW_SYSTEM.

	* xdisp.c (display_mode_element): Merge properties specified with
	:propertize onto those that come with the string.

Eli Zaretskii's avatar
Eli Zaretskii committed
1083 1084 1085 1086
2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>

	* xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
	automatic-hscrolling.  Users changed.
1087 1088 1089
	<hscroll-margin>: Renamed from automatic-hscroll-margin.
	Users changed.
	<hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
Eli Zaretskii's avatar
Eli Zaretskii committed
1090

1091 1092 1093 1094
2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>

	* buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.

Kim F. Storm's avatar
Kim F. Storm committed
1095 1096 1097 1098 1099
2002-03-02  Kim F. Storm  <storm@cua.dk>

	* window.c (Fminibuffer_selected_window): New function.
	(syms_of_window): Defsubr it.

1100 1101
2002-03-01  Kim F. Storm  <storm@cua.dk>

Kim F. Storm's avatar
Kim F. Storm committed
1102 1103 1104
	* window.h (struct window): New member phys_cursor_width.

	* window.c (make_window, replace_window): Init phys_cursor_width.
1105

Kim F. Storm's avatar
Kim F. Storm committed
1106 1107 1108 1109 1110 1111
	* xterm.c (x_display_and_set_cursor): Blink box cursor using
	hollow box cursor.  Blink bar cursor using 1 pixel wide bar.

	* w32term.c (x_display_and_set_cursor): Blink box cursor using
	hollow box cursor.  Blink bar cursor using 1 pixel wide bar.

1112 1113 1114 1115
	* lisp.h (GCPRO6): New macro.

	* process.c (Fopen_network_stream): Use GCPRO6.

1116 1117 1118 1119
2002-03-01  Kim F. Storm  <storm@cua.dk>

	* process.c (Qconnect, Qfailed): New variables.
	(syms_of_process): Intern and staticpro them.
1120
	(Fprocess_status): Document connect and failed return values.
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130
	[NON_BLOCKING_CONNECT]: New conditional.
	(connect_wait_mask, num_pending_connects): New variables.
	(status_message): Convert Qfailed status.
	(Fopen_network_stream): Added support for non-blocking connect.
	New optional args: filter, sentinel, non_blocking.  Doc updated.
	[HAVE_GETADDRINFO, !HAVE_GETADDRINFO]:  Merged common code.
	(deactivate_process): Handle pending non-blocking connect.
	(wait_reading_process_input): Poll for status of non-blocking
	connects.  Exec sentinel directly when connect succeeds.
	(status_notify): Don't read process output if not yet connected.
1131

1132 1133 1134 1135 1136 1137
2002-02-28  Kim F. Storm  <storm@cua.dk>

	* window.c: (minibuf_selected_window): Renamed from
	Vminibuf_selected_window.  Users changed.
	(syms_of_window): Staticpro it.

Kim F. Storm's avatar
Kim F. Storm committed
1138 1139 1140 1141 1142
2002-02-26  Kim F. Storm  <storm@cua.dk>

	The following changes add a new Vminibuf_selected_window variable
	which is similar to Vminibuf_scroll_window, but which is only set
	on entry to the minibuffer (from a non-minibuffer window):
1143

Kim F. Storm's avatar
Kim F. Storm committed
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163
	* window.c: (Vminibuf_selected_window): New variable.
	(struct save_window_data): New member minibuf_selected_window.
	(Fset_window_configuration): Restore Vminibuf_selected_window.
	(Fcurrent_window_configuration): Save Vminibuf_selected_window.
	Set minibuf_scroll_window member to nil if minibuf_level is 0.
	(compare_window_configurations): Compare minibuf_selected_window.

	* window.h: (Vminibuf_selected_window): Declare extern.

	* minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
	entry to minibuffer or on entry from a non-minibuffer window.

	* dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
	Vminibuf_selected_window instead of Vminibuf_scroll_window.

	* xdisp.c (init_iterator): Compare with Vminibuf_selected_window
	instead of Vminibuf_scroll_window when deciding in which window
	the region should be highlighted.  Consequently, the region remains
	highlighteded even when a completion buffer is also displayed.

Eli Zaretskii's avatar
Eli Zaretskii committed
1164 1165
2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>

1166 1167 1168
	* fileio.c (Fsubstitute_in_file_name): Fix the change from
	2002-02-08.

Eli Zaretskii's avatar
Eli Zaretskii committed
1169 1170 1171 1172
	* xselect.c (Qcompound_text_with_extensions): Renamed from
	Qcompound_text_no_extensions.
	(lisp_data_to_selection_data, syms_of_xselect): Use the new name.

1173 1174 1175 1176
2002-02-26  Juanma Barranquero  <lektu@terra.es>

	* w32proc.c (syms_of_ntproc): Doc fix.

1177 1178 1179 1180
2002-02-24  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* intervals.h: Include "dispextern.h" unconditionally.

1181 1182 1183 1184
2002-02-24  Jason Rumney  <jasonr@gnu.org>

	* Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
	and disp-table.elc.
Jason Rumney's avatar
Jason Rumney committed
1185
	(lisp): Add emacs-lisp/backquote.elc.
1186

1187 1188 1189 1190 1191 1192 1193
2002-02-24  Kim F. Storm  <storm@cua.dk>

	* keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
	The validation of the event type was too strict as it didn't
	allow string events; buffer names are used in bindings for
	menu-bar-select-buffer (see `menu-bar-update-buffers').

Kim F. Storm's avatar
Kim F. Storm committed
1194
2002-02-23  Kim F. Storm  <storm@cua.dk>
1195

1196
	The following changes rework my patch of 2002-02-06 which
1197 1198 1199
	added command remapping by entering the commands directly into
	the keymaps.  Now, command remapping uses an explicit `remap'
	prefix in the keymaps, i.e. [remap COMMAND].
1200

1201 1202
	* keymap.c (Qremap, remap_command_vector): New variables.
	(is_command_symbol): Removed function.
1203 1204 1205
	(Fdefine_key): No longer accept a symbol for KEY.
	Added validation of [remap COMMAND] argument for KEY.
	The DEF is no longer required to be a symbol when remapping a command.
1206 1207 1208 1209 1210 1211 1212 1213 1214 1215
	(Fremap_command): New function to remap command through keymaps.
	(Flookup_key): Perform command remapping initiated by
	Fremap_command directly for speed.
	(Fkey_binding): Use Fremap_command for command remapping.
	(where_is_internal): Handle new command remapping representation.
	(syms_of_keymap): Intern Qremap, initialize remap_command_vector,
	staticpro them.  Defsubr Fremap_command.

	* keymap.h (Fremap_command): Declare extern.
	(is_command_symbol): Remove extern.
1216

1217 1218 1219
	* keyboard.c (command_loop_1): Use Fremap_command for command
	remapping; now try command remapping for all symbols.

1220 1221 1222 1223
2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* coding.h (run_pre_post_conversion_on_str): Add prototype.

Jason Rumney's avatar
Jason Rumney committed
1224 1225 1226 1227 1228 1229 1230 1231 1232
2002-02-23  Jason Rumney  <jasonr@gnu.org>

	* w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
	on the string before encoding it.
	(Fw32_get_clipboard_data): Run post-read-conversion on the string
	after decoding it.

	* w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.

1233 1234 1235 1236 1237 1238 1239
2002-02-23  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* w32term.c (enter_timestamp): Remove unused static variable to
	prevent warning.

	* xterm.c (enter_timestamp): Put in #if 0 to prevent warning.

1240 1241 1242 1243 1244 1245
2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* w16select.c (Fw16_get_clipboard_data): Fix last change.

	* xselect.c (selection_data_to_lisp_data): Fix last change.

1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258
2002-02-22  Jason Rumney  <jasonr@gnu.org>

	* w32term.h (struct w32_output): New member menu_command_in_progress.

	* w32menu.c (menubar_selection_callback): Free the menu and
	clear the menu_command_in_progress flag.

	* w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
	(menu_free_timer): New variable.
	(MENU_FREE_ID, MENU_FREE_DELAY): New constants.
	(w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
	<WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
	menu command is in progress.
1259 1260
	<WM_COMMAND>: Set the menu_command_in_progress flag.
	Kill any menu_free_timer that is running.
1261 1262 1263 1264

	* w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
	Call ExtTextOutA rather than ExtTextOut.

Eli Zaretskii's avatar
Eli Zaretskii committed
1265 1266 1267 1268
2002-02-22  Eli Zaretskii  <eliz@gnu.org>

	* puresize.h (BASE_PURESIZE): Increase to 755000.

1269 1270 1271 1272 1273 1274 1275
2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>

	* w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
	on the string before encoding it.
	(Fw16_get_clipboard_data): Run post-read-conversion on the string
	after decoding it.

1276 1277 1278 1279
2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>

	Support for ICCCM  Extended Segments in X selections:

Eli Zaretskii's avatar
Eli Zaretskii committed
1280
	* xselect.c <Qcompound_text_no_extensions>: New variable.
1281 1282 1283 1284
	(syms_of_xselect): Intern and staticpro it.
	(selection_data_to_lisp_data): Run post-read-conversion on decoded
	selection text.
	(lisp_data_to_selection_data): If next-selection-coding-system is
Eli Zaretskii's avatar
Eli Zaretskii committed
1285
	compound-text-no-extensions, set the type of selection to be
1286 1287 1288 1289 1290 1291 1292 1293
	compound-text.

	* xterm.h (x_encode_text): Update prototype.

	* xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
	callers changed.  If SELECTIONP is non-zero, run the
	pre-write-conversion function before encoding the selection text.

1294 1295 1296
2002-02-21  Kim F. Storm  <storm@cua.dk>

	* frame.c (syms_of_frame): Change mouse-highlight default to t.
1297

1298 1299
	* keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
	Correct composing of language-change event.
1300

1301 1302 1303 1304 1305 1306 1307 1308
2002-02-20  Kim F. Storm  <storm@cua.dk>

	* keyboard.c (menu_bar_items): Don't include keymap or local-map
	bindings at PT when building menu (the menu is not updated often
	enough for this to work reliable).
	(tool_bar_items): Likewise.
	(current_active_maps): Removed unused (and buggy) function.

1309 1310 1311 1312
2002-02-20  Pavel Jan,Bm(Bk  <Pavel@Janik.cz>

	* xfns.c (gif_load): Use correct width and height for GIF images.

Eli Zaretskii's avatar
Eli Zaretskii committed
1313 1314 1315 1316 1317
2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>

	* floatfns.c (Fatan): Accept an optional second arg and call
	atan2 if passed 2 args.

Jason Rumney's avatar
Jason Rumney committed
1318 1319 1320 1321
2002-02-18  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (glyph_rect): Determine the row and glyph more precisely.

Jason Rumney's avatar
Jason Rumney committed
1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337
2002-02-17  Jason Rumney  <jasonr@gnu.org>

	* w32term.c (x_autoselect_window_p): New variable.
	(syms_of_w32term): DEFVAR_BOOL and initialize it.
	(note_mouse_movement): Use it.

	* w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.

	* w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.

	* w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
	New variables.
	(syms_of_w32fns): Intern and staticpro them.
	(x_frame_parms) <"fullscreen">: New parameter.
	(x_fullscreen_move, x_set_fullscreen): New functions.
	(x_set_frame_parameters): Support Qfullscreen.
1338
	(x_real_positions): Save x/y_pixels_diff frame params.
Jason Rumney's avatar
Jason Rumney committed
1339 1340 1341
	(x_figure_window_size): Support full-screen frames.
	(Fx_create_frame): Default the fullscreen parameter.

1342
	* w32term.c (x_check_fullscreen, x_check_fullscreen_move)
Jason Rumney's avatar
Jason Rumney committed
1343 1344 1345
	(x_fullscreen_adjust): New functions.
	(w32_read_socket) <WM_WINDOWPOSCHANGED>:  Don't	resize to
	fullscreen.  Call x_check_fullscreen_move, and set the
1346
	want_fullscreen member of output_data.w32
Jason Rumney's avatar
Jason Rumney committed
1347 1348 1349 1350 1351 1352 1353
	<WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.

	* w32term.h: New enum for FULLSCREEN_* constants.
	(struct w32_output): New members want_fullscreen, x_pixels_diff,
	y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
	(x-fullscreen-adjust): New prototype.

1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387
2002-02-17  Kim F. Storm  <storm@cua.dk>

	* frame.c: (Vmouse_highlight): New variable.
	(syms_of_frame): DEFVAR_LISP it.

	* frame.h: (Vmouse_highlight): Declare extern.

	* xterm.h (struct x_display_info): Add mouse_face_hidden.

	* xterm.c (disable_mouse_highlight): Removed variable.
	(note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
	(show_mouse_face): Don't show highlight if mouse_face_hidden is	set.
	(XTread_socket): Turn mouse_face_hidden off after mouse movement,
	and on after keyboard input.
	(x_term_init): Initialize mouse_face_hidden.

	* msdos.h (struct display_info): Add mouse_face_hidden.

	* msdos.c (disable_mouse_highlight): Removed variable.
	(show_mouse_face): Don't show highlight if mouse_face_hidden is	set.
	(IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
	(internal_terminal_init): Initialize mouse_face_hidden.
	(dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
	and on after keyboard input.

	* w32term.h (struct w32_display_info): Add mouse_face_hidden.

	* w32term.c (disable_mouse_highlight): Removed variable.
	(note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
	(show_mouse_face): Don't show highlight if mouse_face_hidden is	set.
	(w32_read_socket): Turn mouse_face_hidden off after mouse movement,
	and on after keyboard input.
	(w32_initialize_display_info): Initialize mouse_face_hidden.

Eli Zaretskii's avatar
Eli Zaretskii committed
1388 1389
2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>

1390 1391 1392 1393
	* msdos.c (last_mouse_window): New variable.
	(dos_rawgetc): Fix last change--if the mouse is in the same window
	as recorded in last_mouse_window, don't select this window.

1394
	* Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
Eli Zaretskii's avatar
Eli Zaretskii committed
1395

1396 1397 1398 1399 1400 1401
	* msdos.c (x_autoselect_window_p): New variable.
	(syms_of_msdos): Defvar it.
	(dos_rawgetc): If x_autoselect_window_p is set, select the window
	in which the last mouse movement occured, unless it is already
	selected.

1402 1403
	* xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
	New variables.