Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c3c4b758
Commit
c3c4b758
authored
Mar 22, 2015
by
Jan D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes: debbugs:18939
* simple.el (deactivate-mark): Only modify PRIMARY if we own PRIMARY.
parent
a4ff05a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/simple.el
lisp/simple.el
+2
-1
No files found.
lisp/ChangeLog
View file @
c3c4b758
2015-03-22 Jan Djärv <jan.h.d@swipnet.se>
* simple.el (deactivate-mark): Only modify PRIMARY if we own
PRIMARY (Bug#18939).
2015-03-22 Martin Rudalics <rudalics@gmx.at>
* emacs-lisp/debug.el (debug): Don't try using "previous" window
...
...
lisp/simple.el
View file @
c3c4b758
...
...
@@ -4420,7 +4420,8 @@ run `deactivate-mark-hook'."
;; the region prior to the last command modifying the buffer.
;; Set the selection to that, or to the current region.
(
cond
(
saved-region-selection
(
x-set-selection
'PRIMARY
saved-region-selection
)
(
if
(
x-selection-owner-p
'PRIMARY
)
(
x-set-selection
'PRIMARY
saved-region-selection
))
(
setq
saved-region-selection
nil
))
;; If another program has acquired the selection, region
;; deactivation should not clobber it (Bug#11772).
...
...
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