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
8cdc660f
Commit
8cdc660f
authored
May 16, 1993
by
Richard M. Stallman
Browse files
(push-mark): Always activate the mark if not in Transient Mark mode.
parent
b027f415
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lisp/simple.el
lisp/simple.el
+3
-2
No files found.
lisp/simple.el
View file @
8cdc660f
...
...
@@ -1262,7 +1262,7 @@ purposes. See the documentation of `set-mark' for more information."
(
defun
push-mark
(
&optional
location
nomsg
activate
)
"Set mark at LOCATION (point, by default) and push old mark on mark ring.
Display `Mark set' unless the optional second arg NOMSG is non-nil.
A
ctivate
the
mark if optional third arg ACTIVATE
is
non-nil.
In Transient Mark mode, a
ctivate mark if optional third arg ACTIVATE non-nil.
Novice Emacs Lisp programmers often try to use the mark for the wrong
purposes. See the documentation of `set-mark' for more information.
...
...
@@ -1278,7 +1278,8 @@ In Transient Mark mode, this does not activate the mark."
(
set-marker
(
mark-marker
)
(
or
location
(
point
))
(
current-buffer
))
(
or
nomsg
executing-macro
(
>
(
minibuffer-depth
)
0
)
(
message
"Mark set"
))
(
if
activate
(
set-mark
(
mark
t
)))
(
if
(
or
activate
(
not
transient-mark-mode
))
(
set-mark
(
mark
t
)))
nil
)
(
defun
pop-mark
()
...
...
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