bpt/emacs.git
31 years ago(edit-picture): Run picture-mode-hook.
Richard M. Stallman [Mon, 12 Oct 1992 04:53:11 +0000 (04:53 +0000)]
(edit-picture): Run picture-mode-hook.

31 years ago(buffer-file-number): New variable.
Richard M. Stallman [Mon, 12 Oct 1992 04:45:53 +0000 (04:45 +0000)]
(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.

31 years ago(find_defun_start): scan_buffer returns start of line;
Richard M. Stallman [Sun, 11 Oct 1992 20:41:13 +0000 (20:41 +0000)]
(find_defun_start): scan_buffer returns start of line;
no need to advance over newline.

31 years ago[!emacs]: Don't define POINTER, SIZE or NULL.
Richard M. Stallman [Sun, 11 Oct 1992 20:40:05 +0000 (20:40 +0000)]
[!emacs]: Don't define POINTER, SIZE or NULL.
(start_of_data): Define as macro, if !emacs.
(EXCEEDS_LISP_PTR): Renamed from EXCEEDS_ELISP_PTR.

31 years ago(morecore_with_warning): Reduce warnlevel when usage drops far enough.
Richard M. Stallman [Sun, 11 Oct 1992 20:39:15 +0000 (20:39 +0000)]
(morecore_with_warning): Reduce warnlevel when usage drops far enough.

(memory_warnings): Renamed from malloc_init.
Don't set lim_data or warnlevel.  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.
(morecore_with_warning): Use EXCEEDS_LISP_PTR.

31 years ago(Fdump_emacs, main): Use memory_warnings.
Richard M. Stallman [Sun, 11 Oct 1992 20:38:00 +0000 (20:38 +0000)]
(Fdump_emacs, main): Use memory_warnings.

31 years ago(check_memory_limits): Reduce warnlevel when usage drops far enough.
Richard M. Stallman [Sun, 11 Oct 1992 20:37:32 +0000 (20:37 +0000)]
(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.

31 years ago* xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
Jim Blandy [Sun, 11 Oct 1992 06:44:42 +0000 (06:44 +0000)]
* xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
warnings about redefining NULL under GCC 2.2.2.

31 years ago* keymap.c (initial_define_lispy_key): New function, for defining
Jim Blandy [Sun, 11 Oct 1992 06:43:30 +0000 (06:43 +0000)]
* 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.

31 years ago* keyboard.h (Qswitch_frame): Declare this extern.
Jim Blandy [Sun, 11 Oct 1992 06:42:47 +0000 (06:42 +0000)]
* keyboard.h (Qswitch_frame): Declare this extern.

* keyboard.h (this_command_keys, this_command_key_count): Added
external declarations.

31 years ago* keyboard.c (Vlast_event_frame): Make this variable exist even
Jim Blandy [Sun, 11 Oct 1992 06:42:03 +0000 (06:42 +0000)]
* 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").

31 years ago* frame.c: #include "commands.h" and "keyboard.h".
Jim Blandy [Sun, 11 Oct 1992 06:40:57 +0000 (06:40 +0000)]
* 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.

31 years ago* emacs.c (main): Call keys_of_frame.
Jim Blandy [Sun, 11 Oct 1992 06:40:24 +0000 (06:40 +0000)]
* emacs.c (main): Call keys_of_frame.

31 years ago* callint.c (Fcall_interactively): Allow multiple 'e' specs.
Jim Blandy [Sun, 11 Oct 1992 06:39:13 +0000 (06:39 +0000)]
* callint.c (Fcall_interactively): Allow multiple 'e' specs.
(Finteractive): Doc fix.

31 years ago* rmail.el (rmail-mode): Make this autoload; we might find a file
Jim Blandy [Sun, 11 Oct 1992 06:35:04 +0000 (06:35 +0000)]
* 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.

31 years ago* dired-aux.el (dired-compress-file): Change references to
Jim Blandy [Sun, 11 Oct 1992 06:34:28 +0000 (06:34 +0000)]
* 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.

31 years ago(isearch-ring-advance-edit): Delete spurious `)'.
Richard M. Stallman [Sun, 11 Oct 1992 05:25:11 +0000 (05:25 +0000)]
(isearch-ring-advance-edit): Delete spurious `)'.

31 years ago[__GNUC__ >= 2] (LIB_STANDARD): Don't define.
Richard M. Stallman [Sat, 10 Oct 1992 11:46:11 +0000 (11:46 +0000)]
[__GNUC__ >= 2] (LIB_STANDARD): Don't define.

31 years ago*** empty log message ***
Jim Blandy [Sat, 10 Oct 1992 11:40:00 +0000 (11:40 +0000)]
*** empty log message ***

31 years ago(Fwrite_region): If VISIT is a file name,
Richard M. Stallman [Sat, 10 Oct 1992 08:34:51 +0000 (08:34 +0000)]
(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.

31 years ago(comint-last-input-match): defvar moved up.
Richard M. Stallman [Sat, 10 Oct 1992 07:33:59 +0000 (07:33 +0000)]
(comint-last-input-match): defvar moved up.

31 years ago*** empty log message ***
Jim Blandy [Sat, 10 Oct 1992 01:37:56 +0000 (01:37 +0000)]
*** empty log message ***

31 years ago(PTY_ITERATION, etc.): Defined.
Richard M. Stallman [Fri, 9 Oct 1992 21:47:10 +0000 (21:47 +0000)]
(PTY_ITERATION, etc.): Defined.
(FIRST_PTY_LETTER): Deleted.

31 years agoDox fix.
Christopher Zaborsky [Fri, 9 Oct 1992 21:06:02 +0000 (21:06 +0000)]
Dox fix.

31 years ago(mail-unsent-separator): Handle "Message text follows".
Richard M. Stallman [Fri, 9 Oct 1992 05:38:23 +0000 (05:38 +0000)]
(mail-unsent-separator): Handle "Message text follows".

31 years agoDoc fix.
Richard M. Stallman [Fri, 9 Oct 1992 05:29:15 +0000 (05:29 +0000)]
Doc fix.

31 years ago(mail-unsent-separator): Allow "original message" as alternative.
Richard M. Stallman [Fri, 9 Oct 1992 02:05:10 +0000 (02:05 +0000)]
(mail-unsent-separator): Allow "original message" as alternative.
Allow extra dashes and spaces.
(rmail-retry-failure): Ignore case while searching for unsent sep.

31 years ago(add-log-current-defun): In normal C case,
Richard M. Stallman [Thu, 8 Oct 1992 08:35:26 +0000 (08:35 +0000)]
(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.

31 years ago(cmulisp-mode): Eliminate compatibility code calling
Richard M. Stallman [Thu, 8 Oct 1992 06:44:58 +0000 (06:44 +0000)]
(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.

31 years ago(inferior-scheme-filter-regexp):
Richard M. Stallman [Thu, 8 Oct 1992 06:44:43 +0000 (06:44 +0000)]
(inferior-scheme-filter-regexp):
Move definition of this var up before first use.
(scheme-buffer): Define variable.

31 years ago(custom-prin1-chars): Var defined, and renamed from prin1-chars.
Richard M. Stallman [Thu, 8 Oct 1992 06:44:24 +0000 (06:44 +0000)]
(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.

31 years ago(hack-local-variables): Ignore attempts to bind enable-local-eval.
Richard M. Stallman [Thu, 8 Oct 1992 06:14:35 +0000 (06:14 +0000)]
(hack-local-variables): Ignore attempts to bind enable-local-eval.

31 years agoentered into RCS
Jim Blandy [Wed, 7 Oct 1992 21:30:47 +0000 (21:30 +0000)]
entered into RCS

31 years ago* mouse.el: Begin adapting this to the new event format.
Jim Blandy [Wed, 7 Oct 1992 20:46:31 +0000 (20:46 +0000)]
* 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.

31 years ago* alloc.c (Fmemory_limit): Explain why we divide by 1024.
Jim Blandy [Wed, 7 Oct 1992 20:42:40 +0000 (20:42 +0000)]
* alloc.c (Fmemory_limit): Explain why we divide by 1024.
Don't bother trying to display the size in the minibuffer.

31 years agoentered into RCS
Jim Blandy [Wed, 7 Oct 1992 19:46:04 +0000 (19:46 +0000)]
entered into RCS

31 years agoCleaned up rmail-first-unseen-message.
Joseph Arceneaux [Wed, 7 Oct 1992 19:25:24 +0000 (19:25 +0000)]
Cleaned up rmail-first-unseen-message.

31 years agoCP:: changed to cust-print- in all names.
Richard M. Stallman [Wed, 7 Oct 1992 09:09:19 +0000 (09:09 +0000)]
CP:: changed to cust-print- in all names.
Lots of doc fixes.

31 years ago(directory_file_name): Don't clobber the envvar
Richard M. Stallman [Tue, 6 Oct 1992 22:02:49 +0000 (22:02 +0000)]
(directory_file_name): Don't clobber the envvar
when handling top-level rooted dir.

31 years agoDox fix.
Christopher Zaborsky [Tue, 6 Oct 1992 21:06:25 +0000 (21:06 +0000)]
Dox fix.

31 years agoDoc fix.
Christopher Zaborsky [Tue, 6 Oct 1992 21:01:11 +0000 (21:01 +0000)]
Doc fix.

31 years agoDoc fix.
Christopher Zaborsky [Tue, 6 Oct 1992 20:00:55 +0000 (20:00 +0000)]
Doc fix.

31 years agoentered into RCS
Richard M. Stallman [Tue, 6 Oct 1992 18:53:45 +0000 (18:53 +0000)]
entered into RCS

31 years ago* cal-mayan.el (calendar-print-mayan-date): Fix conversion in
Jim Blandy [Tue, 6 Oct 1992 15:50:19 +0000 (15:50 +0000)]
* cal-mayan.el (calendar-print-mayan-date): Fix conversion in
        output message.

31 years ago(vc-backend-steal): Delete the workfile after the rcs -M -u.
Richard M. Stallman [Tue, 6 Oct 1992 08:59:39 +0000 (08:59 +0000)]
(vc-backend-steal): Delete the workfile after the rcs -M -u.

31 years ago(add-log-current-defun): Catch errors checking for DEFUN.
Richard M. Stallman [Tue, 6 Oct 1992 05:12:54 +0000 (05:12 +0000)]
(add-log-current-defun): Catch errors checking for DEFUN.

31 years ago(main) [NeXT]: Call malloc_jumpstart.
Richard M. Stallman [Tue, 6 Oct 1992 05:09:37 +0000 (05:09 +0000)]
(main) [NeXT]: Call malloc_jumpstart.

31 years agoentered into RCS
Richard M. Stallman [Tue, 6 Oct 1992 04:54:56 +0000 (04:54 +0000)]
entered into RCS

31 years ago(Fkill_buffer): Pass 2nd arg to Fother_buffer.
Richard M. Stallman [Tue, 6 Oct 1992 00:03:29 +0000 (00:03 +0000)]
(Fkill_buffer): Pass 2nd arg to Fother_buffer.
(Fswitch_to_buffer, Fpop_to_buffer, Fbury_buffer):

31 years ago(Fcall_interactively): Pass 2nd arg to Fother_buffer.
Richard M. Stallman [Tue, 6 Oct 1992 00:03:11 +0000 (00:03 +0000)]
(Fcall_interactively): Pass 2nd arg to Fother_buffer.

31 years ago(make_frame): Pass 2nd arg to Fother_buffer.
Richard M. Stallman [Tue, 6 Oct 1992 00:02:52 +0000 (00:02 +0000)]
(make_frame): Pass 2nd arg to Fother_buffer.

31 years ago(window_loop): Pass 2nd arg to Fother_buffer.
Richard M. Stallman [Tue, 6 Oct 1992 00:02:06 +0000 (00:02 +0000)]
(window_loop): Pass 2nd arg to Fother_buffer.

31 years ago(vc-backend-steal): Put filename after options in rcs commands.
Richard M. Stallman [Mon, 5 Oct 1992 22:03:53 +0000 (22:03 +0000)]
(vc-backend-steal): Put filename after options in rcs commands.

31 years ago(vc-steal-lock): Use mail-setup, and do like `mail'.
Richard M. Stallman [Mon, 5 Oct 1992 21:09:26 +0000 (21:09 +0000)]
(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.

31 years ago* rmail.el (rmail-first-unseen-message): Don't show the message,
Joseph Arceneaux [Mon, 5 Oct 1992 20:38:54 +0000 (20:38 +0000)]
* 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.

31 years ago* config.h.in: Added a slot for definition of USE_TEXT_PROPERTIES,
Joseph Arceneaux [Mon, 5 Oct 1992 19:03:02 +0000 (19:03 +0000)]
* config.h.in: Added a slot for definition of USE_TEXT_PROPERTIES,
controlling compilation of interval code.
If using GNUC, support inline functions.

31 years ago(Info-restore-point): Delete duplicate definition.
Richard M. Stallman [Mon, 5 Oct 1992 10:15:45 +0000 (10:15 +0000)]
(Info-restore-point): Delete duplicate definition.

31 years agoDoc fix.
Richard M. Stallman [Mon, 5 Oct 1992 07:37:10 +0000 (07:37 +0000)]
Doc fix.

31 years agoDox fixes.
Richard M. Stallman [Mon, 5 Oct 1992 06:25:46 +0000 (06:25 +0000)]
Dox fixes.

31 years ago(vc-backend-checkin): Change buffers to get local value of vc-checkin-switches.
Roland McGrath [Mon, 5 Oct 1992 05:49:27 +0000 (05:49 +0000)]
(vc-backend-checkin): Change buffers to get local value of vc-checkin-switches.

31 years ago(vc-backend-checkin): Use apply on vc-do-command: vc-checkin-switches is a
Roland McGrath [Mon, 5 Oct 1992 05:20:52 +0000 (05:20 +0000)]
(vc-backend-checkin): Use apply on vc-do-command: vc-checkin-switches is a
list.

31 years ago(vc-checkin-switches): New defvar.
Roland McGrath [Mon, 5 Oct 1992 05:17:21 +0000 (05:17 +0000)]
(vc-checkin-switches): New defvar.
(vc-backend-checkin): Pass vc-checkin-switches to prog.

31 years agoMost functions renamed to start with ls-lisp.
Richard M. Stallman [Mon, 5 Oct 1992 04:54:07 +0000 (04:54 +0000)]
Most functions renamed to start with ls-lisp.
(insert-directory): Renamed from dired-ls.

31 years ago(dired-lisp-ls): var `short' was erronously unbound.
Sebastian Kremer [Sun, 4 Oct 1992 10:36:03 +0000 (10:36 +0000)]
(dired-lisp-ls): var `short' was erronously unbound.

31 years ago(fill-paragraph): Don't actually change point before
Richard M. Stallman [Sun, 4 Oct 1992 04:10:02 +0000 (04:10 +0000)]
(fill-paragraph): Don't actually change point before
calling fill-region-as-paragraph.
(fill-region-as-paragraph): Save point on undo list at start.

31 years ago(insert-buffer): Before reading arg, barf if read-only.
Richard M. Stallman [Sun, 4 Oct 1992 03:46:01 +0000 (03:46 +0000)]
(insert-buffer): Before reading arg, barf if read-only.

31 years agoDox fix.
Richard M. Stallman [Sat, 3 Oct 1992 18:03:17 +0000 (18:03 +0000)]
Dox fix.

31 years agoDoc fix.
Richard M. Stallman [Sat, 3 Oct 1992 17:56:40 +0000 (17:56 +0000)]
Doc fix.

31 years ago* keyboard.c (read_key_sequence): Treat mouse clicks on non-text
Jim Blandy [Sat, 3 Oct 1992 15:37:35 +0000 (15:37 +0000)]
* keyboard.c (read_key_sequence): Treat mouse clicks on non-text
areas as if they were prefixed with the symbol denoting the
area clicked on - `mode-line', etcetera.
When we throw away an unbound `down-' event, reset mock_input as
well.

* keyboard.c (Qevent_symbol_element_mask, Qmodifier_cache): Two
new symbols, used to implement caches on event heads.  These take
the place of some of the caching that modify_event_symbol used to do.
(parse_modifiers_uncached, apply_modifiers_uncached,
lispy_modifier_list, parse_modifiers, apply_modifiers): New
functions, which replace format_modifiers and reorder_modifiers;
they can be useful elsewhere too.
(reorder_modifiers, modify_event_symbol): Re-implement these in
terms of parse_modifiers and apply_modifiers.  modify_event_symbol
now uses a much simpler cache, and takes advantage of the caches
maintained by parse_ and apply_modifiers.
(follow_key): Don't modify NEXT if KEY has no bindings.
(read_key_sequence): Drop unbound `down-' events, and turn unbound
`drag-' events into clicks if that would make them bound.  This
benefits from the rewriting of the modifier key handling code.
(syms_of_keyboard): Initialize and intern
Qevent_symbol_element_mask and Qmodifier_cache.

* keyboard.c (echo_prompt): Terminate the echo buffer properly
even when the string is too long to display in the minibuffer.
(echo_truncate): Just return echoptr - echobuf, rather than
calling strlen on echobuf.

* keyboard.c (modifier_names): The modifier is named "control",
not "ctrl".

31 years ago* alloc.c (Fmemory_limit): New function.
Jim Blandy [Sat, 3 Oct 1992 08:36:49 +0000 (08:36 +0000)]
* alloc.c (Fmemory_limit): New function.
(syms_of_alloc): Defsubr it.

31 years ago* window.c (SAVE_WINDOW_DATA_SIZE): Define this using sizeof,
Jim Blandy [Sat, 3 Oct 1992 07:15:35 +0000 (07:15 +0000)]
* window.c (SAVE_WINDOW_DATA_SIZE): Define this using sizeof,
instead of just saying it's 7; that way, we won't get screwed if
we add members to struct save_window_data.

* window.c (Fset_window_configuration): The pointer to the
saved window data is called `data', not just `d'.

31 years ago* window.c (struct save_window_data): Save the currently selected
Jim Blandy [Sat, 3 Oct 1992 05:42:42 +0000 (05:42 +0000)]
* window.c (struct save_window_data): Save the currently selected
frame, too.
(Fset_window_configuration): Restore the frame's selected window
using Fselect_window, and then restore the selected frame using
Fselect_frame.
(Fcurrent_window_configuration): Record the currently selected
frame.  Update docstring to describe the information now recorded.

* window.c (Fset_window_configuration): Clean up the way we save
and restore the frame's size.

        * window.c (struct save_window_data): Add a member called
focus_frame, to save and restore the screen's focus frame.
(Fset_window_configuration): Redirect the frame's focus as
indicated in the window configuration.
(Fcurrent_window_configuration): Record the frame's current focus.

31 years ago* xterm.c (x_find_modifier_meanings): If there are no
Jim Blandy [Sat, 3 Oct 1992 05:10:14 +0000 (05:10 +0000)]
* xterm.c (x_find_modifier_meanings): If there are no
modifiers containing a Meta_ keysym, use the Alt keysyms to
denote meta.
(construct_mouse_click): Set the down_modifier bit on mouse
button press events.
(XTread_socket): When processing keypress events, use
x_meta_mod_mask when processing ordinary ASCII characters, not
just when processing function keys and other non-ASCII events.
(XTread_socket): If we receive a MappingNotify event with the
`request' member set to `MappingModifier', then call
x_find_modifier_meanings to refresh x_meta_mod_mask.

31 years ago* process.c (wait_reading_process_input): If the select returns
Jim Blandy [Sat, 3 Oct 1992 03:30:53 +0000 (03:30 +0000)]
* process.c (wait_reading_process_input): If the select returns
ENOMEM, treat that like EINTR under Ultrix.

31 years ago* keyboard.c (modify_event_symbol): Make sure that the unmodified
Jim Blandy [Sat, 3 Oct 1992 03:03:45 +0000 (03:03 +0000)]
* keyboard.c (modify_event_symbol): Make sure that the unmodified
event header gets the proper properties set on it, by recursing
and letting the same code build the properties for all event symbols.

* keyboard.c (Qmouse_click): Fix typo which assigned `mouse-click'
symbol to Qmouse_movement.

31 years ago(open-line): Shield undo from the hack to insert at pt-1.
Richard M. Stallman [Sat, 3 Oct 1992 02:21:51 +0000 (02:21 +0000)]
(open-line): Shield undo from the hack to insert at pt-1.

31 years ago(Fprimitive_undo): When undoing an insert, move point and then delete.
Richard M. Stallman [Sat, 3 Oct 1992 02:12:40 +0000 (02:12 +0000)]
(Fprimitive_undo): When undoing an insert, move point and then delete.

31 years agoDoc fix.
Jim Blandy [Sat, 3 Oct 1992 01:09:59 +0000 (01:09 +0000)]
Doc fix.

31 years agoFixed typos.
Joseph Arceneaux [Sat, 3 Oct 1992 00:08:23 +0000 (00:08 +0000)]
Fixed typos.

31 years ago* minibuf.c (read_minibuf): Don't bother to save the current
Jim Blandy [Sat, 3 Oct 1992 00:06:36 +0000 (00:06 +0000)]
* minibuf.c (read_minibuf): Don't bother to save the current
frame's focus, and have read_minibuf_unwind restore it; saving and
restoring the window configurations will take care of that.
(read_minibuf_unwind): Don't worry about restoring the frame's focus.

31 years ago* intervals.c: `copy_intervals()' no longer static.
Joseph Arceneaux [Sat, 3 Oct 1992 00:05:48 +0000 (00:05 +0000)]
* intervals.c: `copy_intervals()' no longer static.

31 years ago* keymap.c (access_keymap, store_in_keymap,
Jim Blandy [Sat, 3 Oct 1992 00:05:39 +0000 (00:05 +0000)]
* keymap.c (access_keymap, store_in_keymap,
Fsingle_key_description): No need to check for
EVENT_HAS_PARAMETERS before using EVENT_HEAD; the latter now
works properly on all sorts of events.

31 years ago* intervals.h: Declare `copy_intervals()'.
Joseph Arceneaux [Sat, 3 Oct 1992 00:04:59 +0000 (00:04 +0000)]
* intervals.h: Declare `copy_intervals()'.

31 years agoDoc fixes.
Jim Blandy [Sat, 3 Oct 1992 00:04:45 +0000 (00:04 +0000)]
Doc fixes.

31 years ago* termhooks.h (struct input_event): Doc fix.
Jim Blandy [Sat, 3 Oct 1992 00:01:09 +0000 (00:01 +0000)]
* termhooks.h (struct input_event): Doc fix.
(NUM_MOUSE_BUTTONS): New constant.
(click_modifier): New modifier.
(NUM_MODIFIER_COMBOS): Removed.

31 years ago* keyboard.h (EVENT_HAS_PARAMETERS): Definition changed - all events
Jim Blandy [Fri, 2 Oct 1992 23:56:44 +0000 (23:56 +0000)]
* keyboard.h (EVENT_HAS_PARAMETERS): Definition changed - all events
are not 5 elements long.
(EVENT_HEAD): Work correctly on all sorts of events, not just
events with parameters.
(EVENT_WINDOW, EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON,
EVENT_WINDOW_POSN, EVENT_TIMESTAMP): These aren't useful
anymore; this information may appear twice in an event.  These
are replaced by the POSN_ accessors, which are meant to be
composed with the EVENT_START and EVENT_END accessors.
(EVENT_START, EVENT_END): Two new accessors, to get at the
starting and ending position of an event.
(POSN_WINDOW, POSN_BUFFER_POSN, PONS_SCROLLBAR_BUTTON,
POSN_WINDOW_POSN, POSN_TIMESTAMP): New macros, to futher
diasassemble the values returned by EVENT_START and EVENT_END.

* keyboard.h (Qevent_unmodified): Extern declaration replaced by...
(Qevent_symbol_elements): This.
(EVENT_HEAD_UNMODIFIED): Use the Qevent_symbol_elements
property, rather than the Qevent_unmodified property.

31 years ago* keyboard.c (echo_char, read_char): Apply EVENT_HEAD without first
Jim Blandy [Fri, 2 Oct 1992 23:55:39 +0000 (23:55 +0000)]
* keyboard.c (echo_char, read_char): Apply EVENT_HEAD without first
testing for EVENT_HAS_PARAMETERS; EVENT_HEAD works properly on
all sorts of events now.
(read_key_sequence): Use the new accessors to decide in which window
an event occurred.

* keyboard.c (Qevent_unmodified): Replaced by...
(Qevent_symbol_elements): New property.
(syms_of_keyboard): initialize and staticpro the latter, not the
former.

* keyboard.c (readable_events): This doesn't need to scan and
discard mouse release events anymore; it just uses
EVENT_QUEUES_EMPTY.
(kbd_buffer_get_event): No need to skip past mouse release events.

* keyboard.c (button_down_location): New variable, which
stores the location at which each button was pressed, so we
can build a complete drag event when the button is released.
(make_lispy_event): When a button is pressed, record its
location in button_down_location, and turn it into a `down'
event.  When a button is released, compare its release
location with its press location, and decide whether to call
it a `click' or `drag' event.
Change mouse movement events to be arranged like click events.
(format_modifiers): Note that the click modifier has no
written representation.
(modifier_names, modifer_symbols): New variables, used to
create the Qevent_symbol_elements property.
(modify_event_symbol): Change the format of the modified
symbol cache; there are too many modifier bits now to use a
vector indexed by a modifier mask.  Use an assoc-list instead.
Document the format of the cache.
Put the Qevent_symbol_elements property on each new symbol,
instead of a Qevent_unmodified property.
(symbols_of_keyboard): Put Qevent_symbol_elements properties on
the symbols specified in head_table, not Qevent_unmodifed properties.
Initialize and staticpro modifier_symbols, and staticpro the
window elements of button_down_location.

31 years ago(Info-follow-nearest-node): Handle line breaks after *note.
Richard M. Stallman [Fri, 2 Oct 1992 23:52:26 +0000 (23:52 +0000)]
(Info-follow-nearest-node): Handle line breaks after *note.
Fix interactive spec.  Doc fix.  Put on mouse-3.

31 years ago* buffer.c: #include intervals.h.
Joseph Arceneaux [Fri, 2 Oct 1992 23:43:16 +0000 (23:43 +0000)]
* buffer.c: #include intervals.h.

31 years agoFixed typos.
Joseph Arceneaux [Fri, 2 Oct 1992 22:33:18 +0000 (22:33 +0000)]
Fixed typos.

31 years ago* lisp.h: Declare Qbuffer_or_string_p.
Joseph Arceneaux [Fri, 2 Oct 1992 22:32:00 +0000 (22:32 +0000)]
* lisp.h: Declare Qbuffer_or_string_p.

31 years agoFixed typeos.
Joseph Arceneaux [Fri, 2 Oct 1992 22:30:42 +0000 (22:30 +0000)]
Fixed typeos.

31 years ago* xmenu.c: #include "keyboard.h".
Jim Blandy [Fri, 2 Oct 1992 22:18:46 +0000 (22:18 +0000)]
* xmenu.c: #include "keyboard.h".
(Fx_popup_menu): Use the event accessors defined in keyboard.h,
instead of writing out cars and cdrs.

31 years ago* intervals.c: Removed #include of "screen.h".
Joseph Arceneaux [Fri, 2 Oct 1992 20:13:46 +0000 (20:13 +0000)]
* intervals.c: Removed #include of "screen.h".

31 years ago* textprop.c: Conditionalize all functions on
Joseph Arceneaux [Fri, 2 Oct 1992 20:05:45 +0000 (20:05 +0000)]
* textprop.c: Conditionalize all functions on
"USE_TEXT_PROPERTIES".

31 years ago* intervals.c: Conditionalize all functions on
Joseph Arceneaux [Fri, 2 Oct 1992 20:02:51 +0000 (20:02 +0000)]
* intervals.c: Conditionalize all functions on
"USE_TEXT_PROPERTIES".

31 years ago* alloc.c: #include "intervals.h".
Joseph Arceneaux [Fri, 2 Oct 1992 19:59:42 +0000 (19:59 +0000)]
* alloc.c: #include "intervals.h".
(init_intervals, make_interval,
mark_interval, mark_interval_tree): New functions conditionally
defined.
(make_uninit_string): Call INITIALIZE_INTERVAL.
(INIT_INTERVALS, UNMARK_BALANCE_INTERVALS, MARK_INTERVAL_TREE):
New macros, conditionally defined.
(mark_object): Call MARK_INTERVAL_TREE in case Lisp_String.
(gc_sweep): If text properties are in use, place all unmarked
intervals on the free list.  Call UNMARK_BALANCE_INTERVALS on
`buffer->intervals' when unmarking `buffer'.
(compact_strings): Include INTERVAL_PTR_SIZE in calculation for
target of bcopy when relocating strings.
(init_alloc_once): Call INIT_INTERVALS.
(make_pure_string): Include INTERVAL_PTR_SIZE in calculation of
`size'.

31 years ago* fileio.c (Finsert_file_contents): Call offset_intervals() if
Joseph Arceneaux [Fri, 2 Oct 1992 18:59:40 +0000 (18:59 +0000)]
* fileio.c (Finsert_file_contents): Call offset_intervals() if
text was actually inserted.
#include "intervals.h".

31 years ago(nuke-nroff-bs): Delete just 9 lines above header.
Richard M. Stallman [Fri, 2 Oct 1992 04:06:18 +0000 (04:06 +0000)]
(nuke-nroff-bs): Delete just 9 lines above header.

31 years ago*** empty log message ***
Jim Blandy [Fri, 2 Oct 1992 02:26:36 +0000 (02:26 +0000)]
*** empty log message ***