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
24c22852
Commit
24c22852
authored
Aug 30, 1994
by
Richard M. Stallman
Browse files
(set-mark): When POS is nil, always clear mark-active.
parent
bb1e67a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lisp/simple.el
lisp/simple.el
+6
-2
No files found.
lisp/simple.el
View file @
24c22852
...
...
@@ -1335,8 +1335,12 @@ store it in a Lisp variable. Example:
(setq mark-active t)
(run-hooks 'activate-mark-hook)
(set-marker (mark-marker) pos (current-buffer)))
(deactivate-mark)
(set-marker (mark-marker) pos (current-buffer))))
;; Normally we never clear mark-active except in Transient Mark mode.
;; But when we actually clear out the mark value too,
;; we must clear mark-active in any mode.
(setq mark-active nil)
(run-hooks 'deactivate-mark-hook)
(set-marker (mark-marker) nil)))
(defvar mark-ring nil
"The list of saved former marks of the current 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