1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
Commit graph

1357 commits

Author SHA1 Message Date
Richard M. Stallman
2c46d29fbd (check_memory_limits): Reduce warnlevel when usage drops far enough.
(memory_warnings): New function; just set warning data.
Use start_of_data if start is 0.

[!emacs]: Don't include config.h or lisp.h;
instead, use stddef.h.  Define POINTER, SIZE, EXCEEDS_LISP_PTR.

[!emacs] (safe_bcopy): Define as macro using memmove.
(r_alloc_free): Clear *ptr.
(r_alloc_init): Renamed from malloc_init.  Take no args.
Make it static; declare at top of file.
(r_alloc): Call r_alloc_init, if not initialized yet.
(r_alloc_initialized): Renamed from malloc_initialized; moved to top.
(ROUNDUP): Subtract 1, in case arg is already aligned.

(check_memory_limits): EXCEEDS_LISP_PTR renamed from EXCEEDS_ELISP_PTR.
1992-10-11 20:37:32 +00:00
Jim Blandy
54c908b57c * xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
warnings about redefining NULL under GCC 2.2.2.
1992-10-11 06:44:42 +00:00
Jim Blandy
e25c4e44b8 * keymap.c (initial_define_lispy_key): New function, for defining
non-ascii keys.

	* keymap.c (access_keymap): Treat bindings for Qt as default
	bindings, when new argument T_OK is non-zero.
	(get_keyelt, Fdefine_key, Flookup_key): Call access_keymap with
	T_OK false.
1992-10-11 06:43:30 +00:00
Jim Blandy
6084b314a5 * keyboard.h (Qswitch_frame): Declare this extern.
* keyboard.h (this_command_keys, this_command_key_count): Added
	external declarations.
1992-10-11 06:42:47 +00:00
Jim Blandy
cd21b83986 * keyboard.c (Vlast_event_frame): Make this variable exist even
when MULTI_FRAME isn't #defined.  People might find it
	necessary for writing correct programs, even when the programs
	don't explicitly use multiple frames.
	(read_char, kbd_buffer_store_event, kbd_buffer_get_event): No need
	to test MULTI_FRAME before setting Vlast_event_frame.
	(syms_of_keyboard): DEFVAR Vlast_event_frame whether or not
	MULTI_FRAME is defined.

        * keyboard.c: Add switch-frame events.
	(Qswitch_frame): New event header symbol.
	(head_table): Include Qswitch_frame in the table of event heads.
	(kbd_buffer_get_event): Detect when a frame switch has occurred,
	and return a frame switch event before the enqueued event.
	(make_lispy_switch_frame): New function.
	(unread_switch_frame): New variable.
	(read_key_sequence): Don't throw away the key sequence if the user
	switches frames in the middle of the sequence.  Instead, when we
	receive a switch-frame event in the middle of a key sequence, save
	it, and stuff it into unread_switch_frame when the sequence
	is complete.
	(read_char): If unread_switch_frame is set, return that value.
	(command_loop_1): No need to check Vlast_event_frame and select
	new frames here; that's taken care of by switch-frame events now.
	(syms_of_keyboard): Initialize and staticpro unread_switch_frame.

	* keyboard.c (follow_key, read_key_sequence): Call access_keymap
	with T_OK true.

	* keyboard.c (apply_modifiers): Copy the value of BASE's
	Qevent_kind property to the new symbol.

	* keyboard.c (syms_of_keyboard): Qevent_kind should be initialized
	to intern ("event-kind"), not intern ("event-type").
1992-10-11 06:42:03 +00:00
Jim Blandy
2f0b07e06c * frame.c: #include "commands.h" and "keyboard.h".
(Fselect_frame): Make this interactive, and accept
	switch-frame events as arguments, so we can bind this function to
	switch-frame events.
	(keys_of_frame): New function; bind switch-frame to Fselect_frame.
1992-10-11 06:40:57 +00:00
Jim Blandy
5e67fbc2f0 * emacs.c (main): Call keys_of_frame. 1992-10-11 06:40:24 +00:00
Jim Blandy
bc78232cf6 * callint.c (Fcall_interactively): Allow multiple 'e' specs.
(Finteractive): Doc fix.
1992-10-11 06:39:13 +00:00
Jim Blandy
9712b0bd2e * rmail.el (rmail-mode): Make this autoload; we might find a file
whose first line local variables want to put it in RMAIL mode;
	that ought to work.
1992-10-11 06:35:04 +00:00
Jim Blandy
abe1443115 * dired-aux.el (dired-compress-file): Change references to
`from-file' to use `file'; the former only works because
	dired-compress-file is only called by dired-compress, which binds
	from-file.
1992-10-11 06:34:28 +00:00
Richard M. Stallman
49c1310557 (isearch-ring-advance-edit): Delete spurious `)'. 1992-10-11 05:25:11 +00:00
Richard M. Stallman
c395cc7b23 [__GNUC__ >= 2] (LIB_STANDARD): Don't define. 1992-10-10 11:46:11 +00:00
Jim Blandy
a328c9eff1 *** empty log message *** 1992-10-10 11:40:00 +00:00
Richard M. Stallman
3b7792ed33 (Fwrite_region): If VISIT is a file name,
use that as file name to visit, and print it in the message.
Use it for file locking too.
1992-10-10 08:34:51 +00:00
Richard M. Stallman
ae7a6b887e (comint-last-input-match): defvar moved up. 1992-10-10 07:33:59 +00:00
Jim Blandy
26dc36e6f1 *** empty log message *** 1992-10-10 01:37:56 +00:00
Richard M. Stallman
738949ec3a (PTY_ITERATION, etc.): Defined.
(FIRST_PTY_LETTER): Deleted.
1992-10-09 21:47:10 +00:00
Christopher Zaborsky
9c106b258c Dox fix. 1992-10-09 21:06:02 +00:00
Richard M. Stallman
db32c19336 (mail-unsent-separator): Handle "Message text follows". 1992-10-09 05:38:23 +00:00
Richard M. Stallman
5792c834cd Doc fix. 1992-10-09 05:29:15 +00:00
Richard M. Stallman
f2da0c6813 (mail-unsent-separator): Allow "original message" as alternative.
Allow extra dashes and spaces.
(rmail-retry-failure): Ignore case while searching for unsent sep.
1992-10-09 02:05:10 +00:00
Richard M. Stallman
d80788d86d (add-log-current-defun): In normal C case,
start with beginning-of-line.
In last (fallback) case, start with end-of-line.
(add-log-current-defun-header-regexp): In first alternative
within the parens, don't allow space as last character.
1992-10-08 08:35:26 +00:00
Richard M. Stallman
7b02ee3c41 (cmulisp-mode): Eliminate compatibility code calling
lisp-mode-variables with no arg.
(cmulisp-mode-map): Use shared-lisp-mode-map as tail.
(cmulisp-args-to-list): Fix typo in recursive call.
(cmulisp-buffer): Define variable.
1992-10-08 06:44:58 +00:00
Richard M. Stallman
67f3e2fdf0 (inferior-scheme-filter-regexp):
Move definition of this var up before first use.
(scheme-buffer): Define variable.
1992-10-08 06:44:43 +00:00
Richard M. Stallman
92ad69b62e (custom-prin1-chars): Var defined, and renamed from prin1-chars.
(circle-tree, circle-table): Define vars.
(cust-print-vector, cust-print-list): Rename level to circle-level.
(cust-print-top-level): Likewise.
(circle-level): Var defined.
1992-10-08 06:44:24 +00:00
Richard M. Stallman
7984cdcb44 (hack-local-variables): Ignore attempts to bind enable-local-eval. 1992-10-08 06:14:35 +00:00
Jim Blandy
40eef46593 entered into RCS 1992-10-07 21:30:47 +00:00
Jim Blandy
b5370f0363 * mouse.el: Begin adapting this to the new event format.
(event-window, event-point, mouse-coords, mouse-timestamp):
	Removed.
	(event-start, event-end, posn-window, posn-point, posn-col-row,
	posn-timestamp): New accessors; these are defsubsts.
	(mouse-delete-window, mouse-delete-other-windows,
	mouse-split-window-vertically, mouse-set-point): Rewritten to use
	the new accessors.

	* mouse.el: Remove hack of binding down-mouse-1.

	* mouse.el (mouse-movement-p): Add docstring for this.
1992-10-07 20:46:31 +00:00
Jim Blandy
0d73ca8156 * alloc.c (Fmemory_limit): Explain why we divide by 1024.
Don't bother trying to display the size in the minibuffer.
1992-10-07 20:42:40 +00:00
Jim Blandy
5bf3eac4a6 entered into RCS 1992-10-07 19:46:04 +00:00
Joseph Arceneaux
117f4b92dc Cleaned up rmail-first-unseen-message. 1992-10-07 19:25:24 +00:00
Richard M. Stallman
fb252f97f1 CP:: changed to cust-print- in all names.
Lots of doc fixes.
1992-10-07 09:09:19 +00:00
Richard M. Stallman
72b2181785 (directory_file_name): Don't clobber the envvar
when handling top-level rooted dir.
1992-10-06 22:02:49 +00:00
Christopher Zaborsky
eabf7f96e1 Dox fix. 1992-10-06 21:06:25 +00:00
Christopher Zaborsky
c2ced5d8c1 Doc fix. 1992-10-06 21:01:11 +00:00
Christopher Zaborsky
ff11d0d93d Doc fix. 1992-10-06 20:00:55 +00:00
Richard M. Stallman
ebdf55469b entered into RCS 1992-10-06 18:53:45 +00:00
Jim Blandy
a078803d3e * cal-mayan.el (calendar-print-mayan-date): Fix conversion in
output message.
1992-10-06 15:50:19 +00:00
Richard M. Stallman
d743a3c876 (vc-backend-steal): Delete the workfile after the rcs -M -u. 1992-10-06 08:59:39 +00:00
Richard M. Stallman
90e2359039 (add-log-current-defun): Catch errors checking for DEFUN. 1992-10-06 05:12:54 +00:00
Richard M. Stallman
19a36ec6dc (main) [NeXT]: Call malloc_jumpstart. 1992-10-06 05:09:37 +00:00
Richard M. Stallman
5743648e5f entered into RCS 1992-10-06 04:54:56 +00:00
Richard M. Stallman
172a9c1f72 (Fkill_buffer): Pass 2nd arg to Fother_buffer.
(Fswitch_to_buffer, Fpop_to_buffer, Fbury_buffer):
1992-10-06 00:03:29 +00:00
Richard M. Stallman
9262fcb66a (Fcall_interactively): Pass 2nd arg to Fother_buffer. 1992-10-06 00:03:11 +00:00
Richard M. Stallman
c3c734814d (make_frame): Pass 2nd arg to Fother_buffer. 1992-10-06 00:02:52 +00:00
Richard M. Stallman
faa64cf7ba (window_loop): Pass 2nd arg to Fother_buffer. 1992-10-06 00:02:06 +00:00
Richard M. Stallman
73ce90464c (vc-backend-steal): Put filename after options in rcs commands. 1992-10-05 22:03:53 +00:00
Richard M. Stallman
ad0146295e (vc-steal-lock): Use mail-setup, and do like `mail'.
Supply vc-finish-steal as an action on sending.
(vc-finish-steal): Delete the code to send the message.
1992-10-05 21:09:26 +00:00
Joseph Arceneaux
e9c735fabd * rmail.el (rmail-first-unseen-message): Don't show the message,
just return its number, if there was an unseen message.
	(rmail): Check for unseen messages before calling
	rmail-get-new-mail.  After getting the new mail, call
	rmail-show-message to show the 	pre-existing unseen message, or if
	that is nil, the current message, which rmail-get-new-mail sets to
	the first new message.
1992-10-05 20:38:54 +00:00
Joseph Arceneaux
b81450127d * config.h.in: Added a slot for definition of USE_TEXT_PROPERTIES,
controlling compilation of interval code.
	If using GNUC, support inline functions.
1992-10-05 19:03:02 +00:00