1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 06:21:02 -08:00
Commit graph

2030 commits

Author SHA1 Message Date
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
Richard M. Stallman
ecc71b7f7d *** empty log message *** 1993-03-07 07:32:47 +00:00
Richard M. Stallman
a3b75b3f69 (Info-insert-dir): Fix typo. 1993-03-07 04:25:47 +00:00
Richard M. Stallman
fc2892fd3c (function-key-map): Map key symbols backspace, return... into ASCII chars. 1993-03-07 04:22:37 +00:00
Richard M. Stallman
463f48f40f (Info-forward-node): Properly go to first menu item.
(Info-insert-dir): Bind temp wider, around use.
1993-03-07 04:22:15 +00:00
Richard M. Stallman
75e86b2eb6 (isearch-unread): Find last list element by hand. 1993-03-07 04:22:00 +00:00
Richard M. Stallman
f448b83429 Initial revision 1993-03-07 04:10:02 +00:00
Richard M. Stallman
3547c85556 (momentary-string-display): Handle any event when flushing the display. 1993-03-06 06:16:06 +00:00
Richard M. Stallman
1614c867a7 (Info-summary): Handle any event when flushing the display. 1993-03-06 06:15:39 +00:00
Richard M. Stallman
8f90f59416 (isearch-unread): Handle multiple args.
For Emacs 19, use listify-key-sequence.
If not Emacs 19, assume they are a meta sequence.
(isearch-other-meta-char): Pass the whole key sequence.
(isearch-other-control-char): Make this alias for ...-meta-char.
1993-03-06 06:15:05 +00:00
Richard M. Stallman
383aee8621 (te-escape-extended-command-unread): Handle any key sequence. 1993-03-06 06:13:50 +00:00
Richard M. Stallman
bfd72d065f (emerge-show-file-name): Handle any kind of event. 1993-03-06 06:10:05 +00:00
Richard M. Stallman
d654e8ce59 (fortran-abbrev-start): Handle any kind of event.
(fortran-window-create-momentarily): Likewise.
1993-03-06 06:08:40 +00:00
Richard M. Stallman
07f6d4ae18 (electric-help-command-loop): Handle any kind of event. 1993-03-06 06:06:10 +00:00
Richard M. Stallman
d42cc509cb (electric-buffer-list): Handle any kind of event.
(Electric-buffer-menu-exit): Handle any key sequence.
1993-03-06 06:05:12 +00:00
Richard M. Stallman
561a73d746 Fix bug in previous change. 1993-03-06 06:03:19 +00:00
Richard M. Stallman
ae20cac8ea (simula-electric-label): Handle any event when flushing the display. 1993-03-06 06:01:29 +00:00
Richard M. Stallman
d70202c082 (prefix-arg-internal): Use listify-key-sequence. 1993-03-06 05:56:36 +00:00
Richard M. Stallman
bdc2ae8d60 (comint-dynamic-list-completions): Handle any event when flushing the display. 1993-03-06 05:56:08 +00:00
Richard M. Stallman
cde6d7e316 (listify-key-sequence): New function. 1993-03-06 05:54:29 +00:00
Richard M. Stallman
a354518d21 (check_protected_fields): Variable deleted.
(syms_of_buffer): Delete vars buffer-field-list and check-protected-fields.
1993-03-06 02:59:13 +00:00
Richard M. Stallman
78d7ac46c7 (check_protected_fields): Delete decl. 1993-03-06 02:58:49 +00:00
Richard M. Stallman
f405a5850c (read_escape): Handle M-, C- and S- for new convention.
(read1): Move the meta bit to the right place for a string.
1993-03-05 23:57:00 +00:00
Richard M. Stallman
dea4d2e671 (current_column, Fmove_to_column, compute_motion):
Expect display table elts to be vectors.
1993-03-05 23:56:43 +00:00
Richard M. Stallman
80ec1ba2eb (XTread_socket): Set bufp->modifiers for all kinds of keys. 1993-03-05 23:56:13 +00:00
Richard M. Stallman
ba8810f92a (Fend_kbd_macro): Fix call to make_event_array. 1993-03-05 23:55:44 +00:00
Richard M. Stallman
88dbfee590 (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros. 1993-03-05 23:55:20 +00:00