Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
29204e13
Commit
29204e13
authored
Jun 21, 2004
by
Richard M. Stallman
Browse files
(command_loop_1): Handle values `only' and `identity' for Vtransient_mark_mode.
parent
5a39b770
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/keyboard.c
src/keyboard.c
+12
-0
No files found.
src/keyboard.c
View file @
29204e13
...
...
@@ -681,6 +681,8 @@ static SIGTYPE interrupt_signal P_ ((int signalnum));
to support it. */
static int cannot_suspend;
extern Lisp_Object Qidentity, Qonly;
/* Install the string STR as the beginning of the string of echoing,
so that it serves as a prompt for the next character.
Also start echoing. */
...
...
@@ -1822,6 +1824,16 @@ command_loop_1 ()
call1 (Vrun_hooks, intern ("activate-mark-hook"));
}
/* Setting transient-mark-mode to `only' is a way of
turning it on for just one command. */
if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks))
{
if (EQ (Vtransient_mark_mode, Qidentity))
Vtransient_mark_mode = Qnil;
if (EQ (Vtransient_mark_mode, Qonly))
Vtransient_mark_mode = Qidentity;
}
finalize:
if (current_buffer == prev_buffer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment