Only use `visual-line-mode' if it's bound.
* org.el (org-kill-line): Access `visual-line-mode' only if it's bound. TINYCHANGE
This commit is contained in:
parent
00f59ff30b
commit
872a6f75c9
|
@ -20801,7 +20801,7 @@ depending on context."
|
||||||
(not (y-or-n-p "Kill hidden subtree along with headline? ")))
|
(not (y-or-n-p "Kill hidden subtree along with headline? ")))
|
||||||
(error "C-k aborted - would kill hidden subtree")))
|
(error "C-k aborted - would kill hidden subtree")))
|
||||||
(call-interactively
|
(call-interactively
|
||||||
(if visual-line-mode 'kill-visual-line 'kill-line)))
|
(if (and (boundp 'visual-line-mode) visual-line-mode) 'kill-visual-line 'kill-line)))
|
||||||
((looking-at (org-re ".*?\\S-\\([ \t]+\\(:[[:alnum:]_@#%:]+:\\)\\)[ \t]*$"))
|
((looking-at (org-re ".*?\\S-\\([ \t]+\\(:[[:alnum:]_@#%:]+:\\)\\)[ \t]*$"))
|
||||||
(kill-region (point) (match-beginning 1))
|
(kill-region (point) (match-beginning 1))
|
||||||
(org-set-tags nil t))
|
(org-set-tags nil t))
|
||||||
|
|
Loading…
Reference in New Issue