From: Nathan Collins <nathan.collins@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: org-kill-line shouldn't assume visual-line-mode means kill-visual-line
Date: Mon, 18 Nov 2024 19:53:54 +0800 [thread overview]
Message-ID: <CAO8RVvdAJg-RqXMmBCzyAQiLhXRm=KehJsk7x-aGnee6EGRB8A@mail.gmail.com> (raw)
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 other threads:[~2024-11-18 12:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO8RVvdAJg-RqXMmBCzyAQiLhXRm=KehJsk7x-aGnee6EGRB8A@mail.gmail.com' \
--to=nathan.collins@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).