* C-k in visual line mode
@ 2012-01-07 15:46 François Pinard
2012-01-11 15:55 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: François Pinard @ 2012-01-07 15:46 UTC (permalink / raw
To: emacs-orgmode
Hi, Org people.
Let me suggest this tiny patch, so C-k does the proper thing in visual
line mode.
diff --git a/lisp/org.el b/lisp/org.el
index a8ac17d..2d0db0c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -20491,7 +20491,8 @@ depending on context."
(if (or (eq org-ctrl-k-protect-subtree 'error)
(not (y-or-n-p "Kill hidden subtree along with headline? ")))
(error "C-k aborted - would kill hidden subtree")))
- (call-interactively 'kill-line))
+ (call-interactively
+ (if visual-line-mode 'kill-visual-line 'kill-line)))
((looking-at (org-re ".*?\\S-\\([ \t]+\\(:[[:alnum:]_@#%:]+:\\)\\)[ \t]*$"))
(kill-region (point) (match-beginning 1))
(org-set-tags nil t))
François
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-11 15:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-07 15:46 C-k in visual line mode François Pinard
2012-01-11 15:55 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.