emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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

* Re: C-k in visual line mode
  2012-01-07 15:46 C-k in visual line mode François Pinard
@ 2012-01-11 15:55 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-01-11 15:55 UTC (permalink / raw)
  To: François Pinard; +Cc: emacs-orgmode

Hi François,

pinard@iro.umontreal.ca (François Pinard) writes:

> Let me suggest this tiny patch, so C-k does the proper thing in visual
> line mode.

Applied, thanks.  

-- 
 Bastien

^ permalink raw reply	[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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).