diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-09-11 12:06:22 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-09-11 12:06:22 +0200 |
commit | 5fe16500348a084f2612f0118d434f7147c3ffeb (patch) | |
tree | 308909148ec681b68d84fef5c2cec6d1050a03ff | |
parent | 98755f62968d871a9e44ee163030be85c0f4a2d4 (diff) | |
download | org-mode-5fe16500348a084f2612f0118d434f7147c3ffeb.tar.gz |
Fix `org-copy-visible'
* lisp/org.el (org-copy-visible): Deactivate region before adding
visible part to kill ring.
See https://lists.gnu.org/archive/html/emacs-devel/2018-09/msg00476.html
-rw-r--r-- | lisp/org.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el index 9425248..0b5e8d7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -20062,6 +20062,7 @@ this numeric value." (let ((next (next-single-char-property-change beg 'invisible nil end))) (setq result (concat result (buffer-substring beg next))) (setq beg next))) + (setq deactivate-mark t) (kill-new result) (message "Visible strings have been copied to the kill ring."))) |