emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: org-kill-line shouldn't assume visual-line-mode means kill-visual-l


From: Nathan Collins
Subject: Bug: org-kill-line shouldn't assume visual-line-mode means kill-visual-line
Date: Mon, 18 Nov 2024 19:53:54 +0800

Hello,

In the latest version of org.el, at line 21367 [1], inside `defun
org-kill-line`, we have

     (if (bound-and-true-p visual-line-mode) 'kill-visual-line 'kill-line)))

but I think instead this should just call whatever `kill-line` is
bound to in `visual-line-mode-map`. By default, `visual-line-mode-map`
remaps `kill-line` to `kill-visual-line`, but I remove this remap
because I prefer the default `C-k` behavior. But in org-mode, I can't
figure out a way to disable this behavior of `org-kill-line`, except
by removing org-mode's remap of `kill-line` to `org-kill-line`, which
loses the other fancy logic of `org-kill-line`.

Cheers,

-nathan

[1]: 
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org.el#n213667



reply via email to

[Prev in Thread] Current Thread [Next in Thread]