1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00
Commit graph

1411 commits

Author SHA1 Message Date
Jim Blandy
605be8af79 * window.c: Try to deal coherently with deleted windows:
*	(Flive_window_p): New function.
	(Qlive_window_p): New variable, to name it in type errors.
	(syms_of_window): Defsubr Slive_window_p, init and staticpro
	Qlive_window_p.
	(decode_window): Use CHECK_LIVE_WINDOW instead of
	CHECK_WINDOW; the only thing a user should be able to do to a dead
	window is check its type.
	(Fcoordinates_in_window_p, Fnext_window, Fprevious_window,
	Fdelete_other_windows, Fselect_window, Fsplit_window,
	Fscroll_other_window): Use CHECK_LIVE_WINDOW instead of
	CHECK_WINDOW.
	(Fdelete_window): If WINDOW is a deleted window, do nothing;
	there's no harm in allowing people to delete deleted windows.
	Delete all of WINDOW's subwindows, too.
	(delete_all_subwindows): Set the buffer, vchild, and hchild of the
	windows we delete all to nil.

	* window.c (Fwindow_minibuffer_p): Make the WINDOW argument
	optional, like all the other window-querying functions.

	* window.c (Fpos_visible_in_window_p): Use decode_window to handle
	the WINDOW argument, instead of writing out that function's code.

	* window.c (check_frame_size): Don't define this extern; that
	doesn't mean anything.

	* window.c (Fdelete_window): Choose an alternative when we delete
	any frame's selected window, not just when we delete the selected
	frame's selected window.
1992-10-19 18:46:29 +00:00
Jim Blandy
896adf8499 * minibuf.c (temp_echo_area_glyphs): Don't clear echo_area_glyphs
and previous_echo_glyphs; let message do that work.
1992-10-19 18:44:46 +00:00
Jim Blandy
03273ec57b * lisp.h (CHECK_LIVE_WINDOW): New predicate.
(Qlive_window_p): Extern declaration for this.
1992-10-19 18:41:37 +00:00
Jim Blandy
0188441d06 * keymap.c (store_in_keymap): Don't forget to QUIT in the
keymap-scanning loop.  Don't treat vectors as binding tables if
	they're the wrong length.

	* keymap.c (store_in_keymap): Don't forget to QUIT in the
	keymap-scanning loop.  Don't treat vectors as binding tables if
	they're the wrong length.
1992-10-19 18:41:06 +00:00
Jim Blandy
49fcd3debd * keyboard.h (this_command_keys): Extern declaration changed. Doc fix. 1992-10-19 18:39:37 +00:00
Jim Blandy
6569cc8d18 * keyboard.c (this_command_keys): Make this a vector, instead of
an array of Lisp_Objects.
	(this_command_keys_size): Deleted.
	(echo, add_command_key, Fthis_command_keys): Adjusted
	appropriately.
	(init_keyboard): Don't allocate it here.
	(syms_of_keyboard): Allocate it here, and staticpro it.

	* keyboard.c (read_char): Call ourselves with the appropriate
	number of arguments.
	(read_char_menu_prompt): If USED_MOUSE_MENU is zero, don't try to
	store things in it.

	* keyboard.c (modify_event_symbol): Arrange to set the
	click_modifier bit on otherwise unmodified mouse clicks.

	* keyboard.c (kbd_buffer_get_event): Remember that
	*mouse_position_hook may set *FRAME to 0; don't generate
	switch-frame events in this case.  Fix fencepost bug in fetching
	events from keyboard buffer.
1992-10-19 18:38:58 +00:00
Jim Blandy
3b0182e33a Same. * xfns.c (x_set_face): Dyked out this function; it has no callers,
and refers to an obsolete version of struct face.
1992-10-19 18:36:13 +00:00
Jim Blandy
774910ebd7 * frame.c (make_frame_without_minibuffer, Fwindow_frame): Use
CHECK_LIVE_WINDOW instead of CHECK_WINDOW.
	* sunfns.c (Fsun_menu_internal): Same.
	* xmenu.c (Fx_popup_menu): Same.
1992-10-19 18:33:14 +00:00
Jim Blandy
11edeb0334 * xterm.c (compose_status): New variable.
(XTread_socket): Pass it by reference to XLookupString.

	* xterm.c: Clean up some of the caps lock handling:
	(x_shift_lock_mask): New variable.
	(x_find_modifier_mappings): Set it, based on the modifier mappings.
	(x_convert_modifiers): Use x_shift_lock_mask, instead of assuming
	that the lock bit always means to shift the character.
	(XTread_socket): When handling KeyPress events, don't pass an
	XComposeStatus structure along to XLookupString.  When handling
	MappingNotify events, call XRefreshKeyboardMapping for both
	MappingModifier and MappingKeyboard events, not just the latter.
1992-10-19 18:31:34 +00:00
Richard M. Stallman
2247b0fc58 (kill-sentence, backward-kill-sentence):
(kill-paragraph, backward-kill-paragraph):
Don't change point before calling kill-region.
1992-10-18 22:56:00 +00:00
Richard M. Stallman
1ddea2ab1f Doc fixes. 1992-10-18 22:21:08 +00:00
Richard M. Stallman
c884cb878a Comment fix. 1992-10-18 22:20:45 +00:00
Richard M. Stallman
753d16a62a Delete version 18 compatibility stuff.
(mail-abbrevs, build-mail-abbrevs, rebuild-mail-abbrevs):
(merge-mail-abbrevs): Renamed `mail-aliases' to `mail-abbrevs'.
(mail-abbrev-end-of-buffer): Renamed from abbrev-hacking-end-of-buffer.
(mail-abbrev-next-line): Renamed from abbrev-hacking-next-line.
1992-10-18 22:20:07 +00:00
Richard M. Stallman
5ef9d62709 (mail-setup): Call build-mail-aliases, not mail-abbrev-setup.
(sendmail-send-it): Call expand-mail-aliases.
1992-10-18 22:19:36 +00:00
Richard M. Stallman
d0c9169e2b (rmail-sort-messages): Give up right away if not Rmail mode. 1992-10-18 19:10:56 +00:00
Christopher Zaborsky
a2a05344be Dox fixes. 1992-10-18 19:03:45 +00:00
Richard M. Stallman
02c5fd9981 (BROKEN_FIONREAD): Defined. 1992-10-18 08:09:23 +00:00
Richard M. Stallman
99976f85b7 (occur): Always search entire buffer. 1992-10-18 01:06:40 +00:00
Jim Blandy
ccdac5be86 * * editfns.c (Fmessage): With no arguments, clear any active
message; let the minibuffer contents show through.
1992-10-17 22:11:56 +00:00
Jim Blandy
7e6491d3b4 * callint.c (Fcall_interactively): Change handling of 'e' spec;
this_command_keys is now a vector.
1992-10-17 22:11:23 +00:00
Jim Blandy
22cb290f67 * make-dist: Include lib-src/makedoc.com and emacs.csh in the
distribution.

	* config.sub: New file, to help us recognize configuration names.
	* make-dist: Include it in the distribution.
1992-10-17 22:07:49 +00:00
Jim Blandy
20d9a863df Partially changed to use GCC-style configuration names. 1992-10-17 22:07:23 +00:00
Jim Blandy
03b600f722 *** empty log message *** 1992-10-17 22:05:04 +00:00
Jim Blandy
b0f3a26ba8 * mouse.el (mouse-tear-off-window): New function. 1992-10-17 21:57:45 +00:00
Richard M. Stallman
652ccd357d (mouse-set-region): New command. Bind drag-mouse-1 to it. 1992-10-17 07:07:39 +00:00
Jim Blandy
cb7b0c050f *** empty log message *** 1992-10-16 08:26:44 +00:00
Richard M. Stallman
628ed36619 (telnet): Do erase-buffer after the initial output. 1992-10-16 01:35:47 +00:00
Roland McGrath
134994aee8 (check_memory_limits): Declare __morecore.
Remove unused variable `result'.
1992-10-15 23:44:00 +00:00
Roland McGrath
fd0654667e (morecore_with_warning): Removed.
(check_memory_limits): New fn; most code from morecore_with_warning, but
only checks limits, doesn't do any work.
(memory_warnings): Set __after_morecore_hook to check_memory_limits;
don't set __morecore.
1992-10-15 23:29:28 +00:00
Mike Stump
4e7d5543d9 Add support for a new 64 bit CPU type. Elxsi. 1992-10-15 21:06:27 +00:00
Richard M. Stallman
2a01536358 (telnet): Wait for telnet output before sending `open'. 1992-10-15 07:18:11 +00:00
Richard M. Stallman
5bfe95c936 Comment fix. 1992-10-15 05:07:42 +00:00
Joseph Arceneaux
e0b634930e * intervals.c (traverse_intervals): New parameter `depth'.
Increment this when passing recursively.
1992-10-14 23:12:09 +00:00
Joseph Arceneaux
433c217556 * alloc.c (mark_interval_tree): Pass 0 as initial depth argument
to traverse_intervals().
1992-10-14 23:10:56 +00:00
Joseph Arceneaux
125f517a5f * scroll.c (do_scrolling): Don't bcopy non-existant `nruns' or
`face_list' elements.  Do copy new `max_ascent' frame element.
1992-10-14 23:00:38 +00:00
Joseph Arceneaux
9f2279add7 * dispextern.h: New element of frame structure `max_ascent'.
Removed elements `nruns' and `face_list'.
	LINE_HEIGHT and LINE_WIDTH macros removed.
	New struct face with associated typedef FACE declared, along with
	accessing macros.
1992-10-14 23:00:18 +00:00
Joseph Arceneaux
9d46c2e6bb * xterm.h: Declaration of struct face removed. 1992-10-14 22:51:35 +00:00
Joseph Arceneaux
448fd7c056 * dispnew.c (scroll_frame_lines): All references to frame elements
`nruns' and 'face_list' removed.  Handle new element `max_ascent'.
	(free_frame_glyphs): Don't free nonexistent elements `nruns' and
	`face_list';  do free `max_ascent' element.
	(make_frame_glyphs): Don't allocate nonexistent elements `nruns'
	and `face_list';  do allocate `max_ascent' element.
	(update_frame): Replaced use of macro LINE_HEIGHT with element
	frame element `pix_height'.
1992-10-14 21:30:21 +00:00
Jim Blandy
6d1df4b2a4 * files.el (file-truename): The variable ~ should be considered an
absolute pathname; handle it correctly.  Concatenate the directory
	onto the filename in the correct order.
1992-10-14 16:45:31 +00:00
Jim Blandy
1e733c6f88 Initial revision 1992-10-13 17:55:42 +00:00
Jim Blandy
856bf26390 * keyboard.c (kbd_buffer_get_event): Fix fencepost bug in
fetching events from kbd_buffer.
1992-10-12 22:12:59 +00:00
Roland McGrath
aef4d57054 Removed #include "mem-limits.h".
[emacs]: Moved #undef NULL and #include "getpagesize.h" here.
[! emacs]: #include <unistd.h>, <malloc.h>, <string.h>.
(r_alloc_init): Use NIL, not NULL.
1992-10-12 21:40:50 +00:00
Jim Blandy
6f97c96a77 * keyboard.c (kbd_buffer_get_event): Remember that
*mouse_position_hook may set *FRAME to 0; don't generate
	switch-frame events in this case.
1992-10-12 21:25:28 +00:00
Roland McGrath
bbc60227be (sbrk): Removed decl.
(real_morecore): New static variable.
(warnlevel, warn_function, check_memory_limits): Removed.
(obtain): Don't call check_memory_limits.
(obtain, relinquish, r_alloc_sbrk): Use (*real_morecore) in place of sbrk;
it returns 0 for errors, not -1.
(r_alloc_init): Set real_morecore to old value of __morecore.
Don't initialize lim_data or warnlevel, and don't call get_lim_data.
(memory_warnings): Function removed.
1992-10-12 21:07:25 +00:00
Roland McGrath
da396c5e1f (warnfunction): Renamed to warn_function (was used inconsistently).
(morecore_with_warning, memory_warnings): Change callers (were inconsistent).
1992-10-12 19:59:52 +00:00
Roland McGrath
aa3e02cec0 (start_of_data): Removed extra defn.
(get_lim_data): Define to return void.
1992-10-12 19:10:02 +00:00
Roland McGrath
e231fd422e mem_limits.h is now called mem-limits.h. 1992-10-12 18:55:05 +00:00
Roland McGrath
a128c7a004 (visit-tags-table-buffer): When trying to pick table, call
tags-expand-table-name on alternatives that might be nil.
(tags-table-files): Don't call visit-tags-table-buffer; assume we are there.
1992-10-12 17:18:22 +00:00
Richard M. Stallman
e0dad66eef (edit-picture): Run picture-mode-hook. 1992-10-12 04:53:11 +00:00
Richard M. Stallman
f3e2360646 (buffer-file-number): New variable.
(find-file-noselect): Record the file's filenum and devnum.
Notify if any buffer has the same values.
(basic-save-buffer): Save new filenum and devnum.
For file-precious-flag, pass real name as VISIT arg of write-region.
(set-visited-file-name): Likewise.
Clear buffer-file-{number,truename} if now visiting no file.
1992-10-12 04:45:53 +00:00