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
6e9bad14
Commit
6e9bad14
authored
Jan 28, 2012
by
Chong Yidong
Browse files
* lisp/simple.el (deactivate-mark): Doc fix (Bug#8614).
parent
93376c5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/simple.el
lisp/simple.el
+12
-4
No files found.
lisp/ChangeLog
View file @
6e9bad14
...
...
@@ -47,6 +47,8 @@
2012-01-28 Chong Yidong <cyd@gnu.org>
* simple.el (deactivate-mark): Doc fix (Bug#8614).
* tooltip.el (tooltip-mode): Doc fix.
(tooltip-use-echo-area): Mark as obsolete (Bug#6595).
...
...
lisp/simple.el
View file @
6e9bad14
...
...
@@ -3751,10 +3751,18 @@ a mistake; see the documentation of `set-mark'."
(
signal
'mark-inactive
nil
))
)
(
defsubst
deactivate-mark
(
&optional
force
)
"Deactivate the mark by setting `mark-active' to nil.
Unless FORCE is non-nil, this function does nothing if Transient
Mark mode is disabled.
This function also runs `deactivate-mark-hook'."
"Deactivate the mark.
If Transient Mark mode is disabled, this function normally does
nothing; but if FORCE is non-nil, it deactivates the mark anyway.
Deactivating the mark sets `mark-active' to nil, updates the
primary selection according to `select-active-regions', and runs
`deactivate-mark-hook'.
If Transient Mark mode was temporarily enabled, reset the value
of the variable `transient-mark-mode'; if this causes Transient
Mark mode to be disabled, don't change `mark-active' to nil or
run `deactivate-mark-hook'."
(
when
(
or
transient-mark-mode
force
)
(
when
(
and
(
if
(
eq
select-active-regions
'only
)
(
eq
(
car-safe
transient-mark-mode
)
'only
)
...
...
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