diff options
| author | Jan D | 2015-03-22 19:31:46 +0100 |
|---|---|---|
| committer | Jan D | 2015-03-22 19:31:46 +0100 |
| commit | c3c4b758c6d3e33d7fa7621ba4a50ec75c121247 (patch) | |
| tree | d3d70e6b6973ade152c370afe8ba41d099ee6bbc | |
| parent | a4ff05a2172fc0c057ca9715d263c8b00fbf0218 (diff) | |
| download | emacs-c3c4b758c6d3e33d7fa7621ba4a50ec75c121247.tar.gz emacs-c3c4b758c6d3e33d7fa7621ba4a50ec75c121247.zip | |
Fixes: debbugs:18939
* simple.el (deactivate-mark): Only modify PRIMARY if we own PRIMARY.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8f888e37b06..7c7c66d24d6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-03-22 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * simple.el (deactivate-mark): Only modify PRIMARY if we own | ||
| 4 | PRIMARY (Bug#18939). | ||
| 5 | |||
| 1 | 2015-03-22 Martin Rudalics <rudalics@gmx.at> | 6 | 2015-03-22 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * emacs-lisp/debug.el (debug): Don't try using "previous" window | 8 | * emacs-lisp/debug.el (debug): Don't try using "previous" window |
diff --git a/lisp/simple.el b/lisp/simple.el index ae07f6237ce..5e5cd877e9b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4420,7 +4420,8 @@ run `deactivate-mark-hook'." | |||
| 4420 | ;; the region prior to the last command modifying the buffer. | 4420 | ;; the region prior to the last command modifying the buffer. |
| 4421 | ;; Set the selection to that, or to the current region. | 4421 | ;; Set the selection to that, or to the current region. |
| 4422 | (cond (saved-region-selection | 4422 | (cond (saved-region-selection |
| 4423 | (x-set-selection 'PRIMARY saved-region-selection) | 4423 | (if (x-selection-owner-p 'PRIMARY) |
| 4424 | (x-set-selection 'PRIMARY saved-region-selection)) | ||
| 4424 | (setq saved-region-selection nil)) | 4425 | (setq saved-region-selection nil)) |
| 4425 | ;; If another program has acquired the selection, region | 4426 | ;; If another program has acquired the selection, region |
| 4426 | ;; deactivation should not clobber it (Bug#11772). | 4427 | ;; deactivation should not clobber it (Bug#11772). |