emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-kill-line shouldn't assume visual-line-mode means kill-visual-line
@ 2024-11-18 11:53 Nathan Collins
  2024-12-15 10:48 ` How to handle both minor mode and major mode remapping a command? (was: Bug: org-kill-line shouldn't assume visual-line-mode means kill-visual-line) Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Collins @ 2024-11-18 11:53 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-17 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 11:53 Bug: org-kill-line shouldn't assume visual-line-mode means kill-visual-line Nathan Collins
2024-12-15 10:48 ` How to handle both minor mode and major mode remapping a command? (was: Bug: org-kill-line shouldn't assume visual-line-mode means kill-visual-line) Ihor Radchenko
2024-12-17 17:33   ` How to handle both minor mode and major mode remapping a command? Michael Heerdegen

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).