From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: kill-whole-line and fields
Date: Thu, 29 Apr 2004 22:47:01 -0500 (CDT) [thread overview]
Message-ID: <200404300347.i3U3l1A24456@raven.dms.auburn.edu> (raw)
While implementing comint-kill-whole-line, the following question
occurred to me: should kill-whole-line itself respect fields as it
currently does?
Example:
Start with:
[bash2.05b.0 ~ 3 1] umask
0022
[bash2.05b.0 ~ 3 2]
With point on the `m' of umask, invoking kill-whole-line produces:
[bash2.05b.0 ~ 3 1] 0022
[bash2.05b.0 ~ 3 2]
Invoking the proposed comint-kill-whole-line produces:
0022
[bash2.05b.0 ~ 3 2]
as (I believe) it clearly should, because its entire purpose is to be
able to kill entire lines, _overriding_ the read-only-ness of prompts,
if comint-prompt-read-only is t.
But it is not completely clear what kill-whole-line itself should do.
There currently is no convenient way to kill an entire line if there
is a field at the beginning of a line and point is not in that field.
C-a gets stuck at the field boundary. This might be a motivation for
making kill-whole-line ignore fields. C-a C-k C-k (or sometimes C-a
C-k) easily produces the current kill-whole-line behavior.
Also, given the name `kill-whole-line', people might expect to get the
comint-kill-whole-line behavior, especially that, with point inside
the prompt, kill-whole-line produces the same result as
comint-kill-whole-line produces over the entire line.
Changing the behavior would be trivial: just bind inhibit-field-text-motion
to t. I could install this, if it would be considered desirable.
Sincerely,
Luc.
reply other threads:[~2004-04-30 3:47 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200404300347.i3U3l1A24456@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
/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 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.