Fix error message

* lisp/org.el (org-kill-line): Fix error message.
This commit is contained in:
Nicolas Goaziou 2018-04-18 22:18:23 +02:00
parent 8b6a617ff5
commit 8814988d1c
1 changed files with 3 additions and 1 deletions

View File

@ -23694,7 +23694,9 @@ depending on context."
org-ctrl-k-protect-subtree org-ctrl-k-protect-subtree
(or (eq org-ctrl-k-protect-subtree 'error) (or (eq org-ctrl-k-protect-subtree 'error)
(not (y-or-n-p "Kill hidden subtree along with headline? ")))) (not (y-or-n-p "Kill hidden subtree along with headline? "))))
(user-error "C-k aborted as it would kill a hidden subtree")) (user-error
(substitute-command-keys
"`\\[org-kill-line]' aborted as it would kill a hidden subtree")))
(call-interactively (call-interactively
(if (bound-and-true-p visual-line-mode) 'kill-visual-line 'kill-line))) (if (bound-and-true-p visual-line-mode) 'kill-visual-line 'kill-line)))
((looking-at ".*?\\S-\\([ \t]+\\(:[[:alnum:]_@#%:]+:\\)\\)[ \t]*$") ((looking-at ".*?\\S-\\([ \t]+\\(:[[:alnum:]_@#%:]+:\\)\\)[ \t]*$")