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
This commit is contained in:
Nicolas Goaziou 2018-09-11 12:06:22 +02:00
parent 98755f6296
commit 5fe1650034
1 changed files with 1 additions and 0 deletions

View File

@ -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.")))