1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-20 07:00:31 -08:00
Commit graph

8356 commits

Author SHA1 Message Date
Jim Blandy
330fba95d2 *** empty log message *** 1993-03-09 23:40:36 +00:00
Jim Blandy
92e30bc5e0 Initial revision 1993-03-09 23:02:46 +00:00
Eric S. Raymond
00b3f57b23 Fix typo. 1993-03-09 23:02:40 +00:00
Richard M. Stallman
16ad0a7100 (run-at-time): Allow an integer as TIME.
(cancel-timer): New function.
1993-03-09 22:57:25 +00:00
Eric S. Raymond
3234e2a32f Version 5 baseline. 1993-03-09 22:56:29 +00:00
Richard M. Stallman
17f0e88a1b (c-beginning-of-statement): If next to a comment, use sentence motion. 1993-03-09 22:14:36 +00:00
Richard M. Stallman
bc6312e108 (query-replace-map): Add `quit' bindings. Delete default binding. 1993-03-09 21:18:31 +00:00
Richard M. Stallman
81eb8fcd8d (map-y-or-n-p): Handle `quit' as answer. 1993-03-09 21:17:46 +00:00
Richard M. Stallman
0a2eb25e05 (map-y-or-n-p): Use query-replace-map. 1993-03-09 19:53:06 +00:00
Richard M. Stallman
81bdc14db5 (query-replace-map): New keymap.
(perform-replace): Use query-replace-map.

(query-replace, query-replace-regexp, map-query-replace-regexp):
(replace-string, replace-regexp): Don't print `done' if unread chars.
1993-03-09 19:51:29 +00:00
Richard M. Stallman
78e3ef3ce6 (command-apropos): Print echo area message iff found symbols. 1993-03-09 17:48:56 +00:00
Jim Blandy
11a364d9f2 *** empty log message *** 1993-03-09 17:03:08 +00:00
Richard M. Stallman
d41d75fbe9 (rmail-update-summary): New function.
(rmail-new-summary): New arg redo-form.  Considerable rewrite
of how and when buffers are selected.
(rmail-summary-mode): New local vars rmail-summary-redo,
revert-buffer-function, post-command-hook, rmail-current-message.
(rmail-summary-expunge): Use rmail-update-summary.
(rmail-summary-get-new-mail): Likewise.
(rmail-summary-expunge-and-save): Likewise.
(rmail-summary-input): Don't update summary at all.
(rmail-summary-reply): Do the work inside save-window-excursion,
then switch to the mail buffer.
(rmail-summary-retry-failure): Likewise.
(rmail-summary-edit-current-message): Delete spurious autoload.
(rmail-summary-summary): Function deleted.
Use plain rmail-summary on h and C-M-h.
(rmail-summary-rmail-update): New function.

Big rewrite from weiner@pts.mot.com.
1993-03-09 08:08:52 +00:00
Richard M. Stallman
bd1f0f843f (rmail-delete-forward): Go to summary buf to change D mark.
Always do the motion in the rmail buffer; let that handle summary.
(rmail-undelete-previous-message): Likewise.
(rmail-select-summary): New macro.
(rmail-show-message): Use rmail-select-summary.
(rmail-get-new-mail): Likewise.
(rmail-expunge): Likewise.

(rmail-bury): Record Rmail buffer to bury it later.

Major changes from Bob Weiner <weiner@pts.mot.com>
Handle some Emacs 18 function names to run in 18.
This is to facilitate working with Weiner.
(rmail-reply-prefix): New variable.
(rmail-reply): Use that variable to add to subject.
(rmail-retry-failure): Change binding to M-m.
(rmail-forward): Look for >From as well as for From.
Handle case where neither is found.
(rmail-last-regexp): New variable.
(rmail-mode): Make rmail-last-regexp local.
(rmail): Don't update rmail-mode data for old buffer
if it's not in rmail mode.
Error if in Rmail Edit mode.
(rmail-bury): New command, plus key binding.
(rmail-summary-by-topic): New key binding.
(rmail-insert-inbox-text): Check for pop case earlier.
(rmail-convert-to-babyl-format): Handle Content-Length field.
(rmail-maybe-display-summary): New function.
(rmail-redisplay-summary): New user option.
(rmail-undelete-previous-message, rmail-delete-forward):
(rmail-get-new-mail, rmail-show-message): Update summary buffer if any.
Call rmail-maybe-display-summary to put it back on screen.
(rmail-only-expunge): Renamed from rmail-expunge.
(rmail-expunge): New function.
(rmail-message-recipients-p, rmail-message-regexp-p): New functions.
(rmail-summary-exists, rmail-summary-displayed): New functions.
1993-03-09 08:08:13 +00:00
Richard M. Stallman
af39530ef0 (set-mark): Activate the mark.
(mark): Handle region-active.  New optional arg FORCE.
(exchange-point-and-mark, push_mark): Pass FORCE.
(set-mark-command): Likewise.
1993-03-09 05:40:33 +00:00
Richard M. Stallman
af9157b9bc entered into RCS 1993-03-09 05:37:50 +00:00
Richard M. Stallman
b0dbaa217b Initial revision 1993-03-09 05:27:35 +00:00
Richard M. Stallman
e31b61e614 Add autoload comments.
(rope-to-vector): Deleted.
(describe-display-table): Don't use rope-to-vector.
1993-03-08 08:11:01 +00:00
Richard M. Stallman
0f03054a85 (posn-timestamp, posn-col-row, posn-point, posn-window):
(event-end, event-start, mouse-movement-p): Moved from mouse.el.
1993-03-08 08:10:13 +00:00
Richard M. Stallman
9a408b1d63 (posn-timestamp, posn-col-row, posn-point, posn-window):
(event-end, event-start, mouse-movement-p): Moved to subr.el.
1993-03-08 08:09:54 +00:00
Richard M. Stallman
c0f864088b Comment change. 1993-03-08 08:08:51 +00:00
Richard M. Stallman
a26a1f956a (Fframe_char_height, Fframe_char_width):
(Fframe_pixel_height, Fframe_pixel_width):
New functions, two versions of each.
[MULTI_FRAME] (syms_of_frame): Make them Lisp functions.
[!MULTI_FRAME] (syms_of_frame): Likewise.  Also Fselected_frame.
1993-03-08 08:08:23 +00:00
Richard M. Stallman
55caf99cb9 (Fx_pixel_width, Fx_pixel_height): Fns deleted.
(syms_of_xfns): Don't install them.
(x_user_set_name): Function deleted.
(x_char_height, x_char_width): New functions.
1993-03-08 08:07:52 +00:00
Richard M. Stallman
bb621b01c9 entered into RCS 1993-03-08 07:44:39 +00:00
Richard M. Stallman
c581d7100c (copy_rope): Expect FROM to be a vector.
(copy_part_of_rope): New function.
(display_string): Expect display table elts to be vectors.
1993-03-08 06:37:04 +00:00
Richard M. Stallman
10e6549c5f (XTread_socket):
Don't reverse the chars that XLookupString returns.  Use all of them.
Save last 100 chars and keysyms in temp_buffer.
1993-03-08 05:38:53 +00:00
Richard M. Stallman
d63de416be (event-basic-type): New function. 1993-03-08 00:07:53 +00:00
Richard M. Stallman
1a7c673b85 Declare Qcategory, Qlocal_map. Declare textget, get_local_map. 1993-03-07 23:45:23 +00:00
Richard M. Stallman
497ba7a108 Include intervals.h.
(read_key_sequence): Use get_local_map.
1993-03-07 23:43:52 +00:00
Roland McGrath
188d4d111d (syms_of_buffer): Make erase-buffer a disabled command. 1993-03-07 23:41:34 +00:00
Richard M. Stallman
6ba6e250c9 Include termhooks.h.
(push_key_description): Handle all modifiers.
Handle large character codes.
(Fkey_description): Move the meta bit, if arg is string.
(Fsingle_key_description): Don't alter integer value.
Make tem long enough.

(Flookup_key): Use meta_modifier as meta-bit if from vector.
(Fdefine_key): Likewise.
1993-03-07 23:32:54 +00:00
Richard M. Stallman
dc70cea781 (Fget_text_property): Use textget.
(Fnext_single_property_change): Likewise.
(Fprevious_single_property_change): Likewise.

(syms_of_textprop): Set up Qcategory, Qlocal_map.
1993-03-07 23:30:01 +00:00
Richard M. Stallman
5f1d59f437 *** empty log message *** 1993-03-07 20:57:30 +00:00
Richard M. Stallman
d3cc13faac (read_key_sequence):
Use meta_modifier for meta keys when handling function_key_map.
1993-03-07 20:18:52 +00:00
Richard M. Stallman
e7cb0106ac (isearch-other-meta-char): Call listify-key-sequence.
(isearch-unread): Don't call it here.
(isearch-mode-map): Bind the ASCII-equivalent function keys.
1993-03-07 20:17:27 +00:00
Paul Eggert
02da625312 (vc-update-change-log): Check that ChangeLog is writable
before starting the expensive rcs2log process.
Use call-process instead of shell-command to invoke rcs2log;
this avoids undesired shell escapes and is more robust about errors.
Put mark at point-min, so that the new insertion is in the region.
(vc-checkin-hook): Fix `runs-hooks' typo.
(vc-checkout-writeable-buffer-hook): New var.
(vc-next-action): Fix bug: initial checkin was botched when C-x v v
was applied to a new file while vc-initial-comment was non-nil.
(vc-register): Don't barf when registering a new, empty buffer.
(vc-directory): The `No files are currently registered'
message was wrongly worded, because sometimes the message talks
about locked files, not registered files.
(vc-file-tree-walk): Change (apply 'funcall ...) to (apply
...), since the 'funcall is redundant.
When traversing a directory tree, message
"Traversing directory XXX" so that the user can see what progress is
being made.  Traversal can take a long time.  Omit first argument,
since it is always the current directory.  All callers changed.
(vc-file-tree-walk-internal): New function.
(vc-do-command, vc-diff, vc-version-diff, vc-backend-diff):
Remove redundant calls to `format'.
(vc-diff): Remove unused variable `old'.
(vc-version-diff): When recursively generating a difference
listing, don't append the latest output unless diff was actually run;
otherwise, you'll get the output from the previous file by mistake.
1993-03-07 18:20:54 +00:00
Richard M. Stallman
23ad46587f (Qmodification_hooks): Renamed from Qmodification.
(syms_of_textprop): Changed accordingly.
1993-03-07 09:35:31 +00:00
Richard M. Stallman
294efdbeb8 (verify_interval_modification): Handle insertions
specially.  For non-insertions, check only the chars being changed.
`modification-hooks' property is now a list of functions.
(set_point): Ignore chars outside current restriction.
1993-03-07 09:34:39 +00:00
Richard M. Stallman
83ec8b67da (struct buffer): New field mark_active. 1993-03-07 09:33:43 +00:00
Richard M. Stallman
2f545eea31 (prepare_to_modify_buffer): Set Vdeactivate_mark. 1993-03-07 09:33:13 +00:00
Richard M. Stallman
9772455e0d (save_excursion_save): Save mark_active of buffer.
(save_excursion_restore): Restore mark_active of buffer.
Run activate-mark-hook if it's on, or deactivate-mark-hook if it turns off.
(region_limit): Error if mark inactive, if transient-mark-mode.
1993-03-07 09:32:22 +00:00
Richard M. Stallman
4d1f43c038 (check_mark): Error if mark is not active. 1993-03-07 09:31:37 +00:00
Richard M. Stallman
a3c44b1451 (x_alt_mod_mask, x_super_mod_mask, x_hyper_mod_mask): New variables.
(x_find_modifier_meanings): Set them.
(x_convert_modifiers): Check for them.
(XTread_socket): Handle BackSpace, etc, function keys.
1993-03-07 09:30:31 +00:00
Richard M. Stallman
3076b39de3 (alt_modifier, super_modifier, hyper_modifier):
(shift_modifier, ctrl_modifier, meta_modifier):
Renumber the bits.
1993-03-07 09:29:36 +00:00
Richard M. Stallman
86e5706b37 (follow_key): Downcase shift_modifier as well as ASCII.
(command_loop_1): Run pre-command-hook and post-command-hook.
Set this_command before running pre-command-hook.
(syms_of_keyboard): Set up vars for those hooks.

(syms_of_keyboard): Handle gaps in modifier_names.
(modifier_names): Reorder to match termhooks.h.

(parse_modifiers_uncached): Detect `s-', not `super-'.
(apply_modifiers_uncached): Make `s-', not `super-'.

(lispy_function_keys): Add codes starting at 0xff00
and running through 0xffff.

(read_char): Move metabit when fetching from string macro.

(command_loop_1): Clear Vdeactivate_mark before cmd.
Clear mark_active if command set Vdeactivate_mark.
Run deactivate-mark-hook at that time, or activate-mark-hook.
(syms_of_keyboard): Define variable deactivate-mark.

(syms_of_keyboard): New lisp var unread-command-char.
(Finput_pending_p): Test unread_command_char.
(Fdiscard_input, quit_throw_to_read_char, init_keyboard): Set it.
(read_char): Fetch from it.

(Fthis_command_keys, Fread_key_sequence):
Fix calls to make_event_array.

(make_lispy_event): Put meta and shift modifiers
into an integer.
(read_avail_input): Set the modifiers field in the events read.
(kbd_buffer_get_event): Pass thru integer event untruncated.
(read_char): Likewise.
(read_key_sequence, read_char): Only -1 means EOF.
(kbd_buffer_store_event): Don't ignore 0200 bit in quit char.
(follow_key): Use new meta bit flag.
1993-03-07 09:27:28 +00:00
Richard M. Stallman
7bd279cd8e (syms_of_lread): Set up Qascii_character.
(Fread_char, Fread_char_exclusive): Use that property
to convert symbols like tab, return, M-return,... to ASCII.

Include termhooks.h.
(read_escape): Handle \H, \A, \s.  Use ..._modifier.
1993-03-07 09:25:28 +00:00
Richard M. Stallman
c48f61ef04 (reset_buffer_local_variables): Reset mark_active.
(syms_of_buffer): New buffer-local var `mark-active'.
(init_buffer_once): Initialize mechanism for it.
1993-03-07 09:24:18 +00:00
Richard M. Stallman
2ed45c8b81 (isearch-mode): Don't make a pre-command-hook. 1993-03-07 08:43:57 +00:00
Richard M. Stallman
cfadef6306 (vc-revert-buffer1): Use mark-marker; don't alter mark-active. 1993-03-07 07:44:46 +00:00
Richard M. Stallman
53e5a4e8a4 (event-modifiers): New function.
(eventp): New function.
1993-03-07 07:35:57 +00:00