Allow acdw/copy-region-as-plain in read-only buffers

This commit is contained in:
Case Duckworth 2021-08-20 17:28:29 -05:00
parent ca44456488
commit e423eeca3e
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ With a prefix argument, run git pull on the repo first."
(defun acdw/copy-region-plain (start end)
"Copy a region to clipboard, removing all Org formatting."
(interactive "*r")
(interactive "r")
(let ((s (buffer-substring-no-properties start end))
(extracted-heading (when (derived-mode-p 'org-mode)
(acdw/org-extract-heading-text))))