From: Bob Rogers <rogers-emacs@rgrjr.dyndns.org>
Cc: Miles Bader <miles@gnu.org>,
Luc Teirlinck <teirllm@dms.auburn.edu>,
emacs-devel@gnu.org
Subject: comint-insert-input on non-command lines: A trivial fix, a quibble, and a bug
Date: Tue, 9 May 2006 23:01:31 -0400 [thread overview]
Message-ID: <17505.22411.194721.809455@rgrjr.dyndns.org> (raw)
In-Reply-To: <17502.37204.411491.461843@farnswood.snap.net.nz>
From: Nick Roberts <nickrob@snap.net.nz>
Date: Tue, 9 May 2006 15:11:33 +1200
> Perhaps, but that doesn't address the original issue, namely that in
> comint-mode "C-c RET" is now less useful that it had been.
You're quoting my reply to Luc. My reply to you, which you appear to have
ignored, did address the original issue.
At the time, it seemed more appropriate to reply indirectly; I now see
that that was a mistake. My apologies.
> But it doesn't address the original problem: "C-c RET" still does
> nothing when invoked on an output line. Please find a solution below
> that merges your changes with the guts of the comint-copy-old-input
> definition from 21.3, restoring the original behavior. If that is
> satisfactory to everyone, then I will undertake to ensure that all of
> the documentation is consistent.
I've already said why I don't like it. We haven't reached an agreement
yet that this behaviour is desirable.
Yes, of course. I only made an offer to follow up that was conditional
on acceptance.
From: Nick Roberts <nickrob@snap.net.nz>
Date: Mon, 8 May 2006 12:31:16 +1200
> First the fix (see the diff below): When you type "C-c RET"
> (comint-insert-input) in shell mode (e.g.) with point on a line of
> output, nothing happens, not even a ding.
The name comint-insert-input suggests that it inserts (old) input so
to do nothing when the point isn't over input seems appropriate to me.
The name comint-insert-input does suggest that it should be inserting
something, so I found "doing nothing" surprising. At the very least, it
should explain why it is refusing do what I am obviously asking.
> This seems to be because
> comint-insert-input is trying to invoke the "RET" binding, but doesn't
> allow for the fact that this-command-keys returns a string.
Its because comint-insert-input can also be invoked by mouse-2 which
falls back to the global binding (generally mouse-yank-at-click).
OK. But why wouldn't this be a reasonable thing to do for keyboard
input as well?
> In contrast, I never expect
> insertion when I type "C-c RET"; besides which, the side-effects of an
> accidental "C-c RET" are easier to undo. So if "safety" were the reason
> ...
It isn't the reason. We have tried to combine two commands with a
similar functionality (comint-insert-clicked-input, comint-copy-old-input)
So the loss of functionality was accidental, then?
> for changing comint-insert-input to work only on actual command input,
> then it seems inconsistent not to do the same for comint-send-input as
> well. Moreover, I would argue that comint-send-input should be the
> picky one, and comint-insert-input should be more forgiving, so that you
> could then get the current effect of "RET" on an arbitrary line by
> typing "C-c RET RET", i.e. insert at the process mark and then submit
> it. As it is, I see no way to get the former comint-copy-old-input
> behavior, save by cut-and-paste. Or have I missed something?
I see now that comint-copy-old-input did indeed copy the whole line but
although the name would not suggest so. Presumably sometimes you need
part of the line, in which case you would need to cut and paste anyway.
Not necessarily. It is often more convenient to copy the whole line,
then pare it down at the command prompt.
> If not, that's the bug: I find it extremely useful to be able to
> reinvoke lines of transcript output (e.g. commands echoed by "make")
> after editing them, so it is frustrating that "C-c RET" no longer works
> for that.
Again the name comint-copy-old-input doesn't suggest this behaviour and
my preference would be not to have it.
That depends on how narrowly you want to define "input."
. . .
From: Nick Roberts <nickrob@snap.net.nz>
Date: Tue, 9 May 2006 18:17:19 +1200
Luc Teirlinck writes:
> . . .
>
> Was there any reason, other than merely a desire to combine two
> somewhat similar commands, to get rid of comint-copy-old-input?
> Was anything broken about it?
I don't think so, but I made that change nearly two years ago. Since then
there hasn't exactly been a rush of bug reports, so I find it hard to
believe that it's been that inconvenient.
Well, I found it within an hour of building emacs from CVS, having used
distro versions for many years now. It's possible that I'm the only one
who ever uses C-c RET on output lines . . . but somehow I doubt that.
-- Bob
next prev parent reply other threads:[~2006-05-10 3:01 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-06 20:05 comint-insert-input on non-command lines: A trivial fix, a quibble, and a bug Bob Rogers
2006-05-08 0:31 ` Nick Roberts
2006-05-08 3:16 ` Luc Teirlinck
2006-05-08 3:49 ` Luc Teirlinck
2006-05-08 4:49 ` Miles Bader
2006-05-08 14:08 ` Stefan Monnier
2006-05-09 2:33 ` Miles Bader
2006-05-08 4:08 ` Luc Teirlinck
2006-05-08 4:18 ` Nick Roberts
2006-05-09 1:55 ` Bob Rogers
2006-05-09 3:11 ` Nick Roberts
2006-05-10 3:01 ` Bob Rogers [this message]
2006-05-10 5:57 ` Nick Roberts
2006-05-09 3:01 ` Luc Teirlinck
2006-05-09 3:21 ` Nick Roberts
2006-05-09 3:59 ` Luc Teirlinck
2006-05-09 6:17 ` Nick Roberts
2006-05-09 14:58 ` Luc Teirlinck
2006-05-10 1:09 ` Nick Roberts
2006-05-10 1:13 ` Luc Teirlinck
2006-05-10 1:58 ` Miles Bader
2006-05-10 2:21 ` Nick Roberts
2006-05-10 2:32 ` Miles Bader
2006-05-10 3:50 ` Nick Roberts
2006-05-10 4:09 ` Miles Bader
2006-05-10 4:41 ` Luc Teirlinck
2006-05-10 5:29 ` Nick Roberts
2006-05-10 6:06 ` Luc Teirlinck
2006-05-10 6:27 ` Miles Bader
2006-05-10 21:38 ` comint-insert-input on non-command lines: Nick Roberts
2006-05-11 1:12 ` Luc Teirlinck
2006-05-11 1:33 ` Luc Teirlinck
2006-05-11 18:31 ` Richard Stallman
2006-05-11 20:29 ` Nick Roberts
2006-05-11 22:40 ` Luc Teirlinck
2006-05-14 23:29 ` Richard Stallman
2006-05-15 3:46 ` Luc Teirlinck
2006-05-15 20:37 ` Richard Stallman
2006-05-28 2:11 ` Luc Teirlinck
2006-05-28 3:48 ` Luc Teirlinck
2006-05-29 3:41 ` Nick Roberts
2006-05-29 3:58 ` Luc Teirlinck
2006-05-31 3:14 ` Luc Teirlinck
2006-05-31 3:24 ` Bob Rogers
2006-05-09 4:15 ` comint-insert-input on non-command lines: A trivial fix, a quibble, and a bug Luc Teirlinck
2006-05-10 5:19 ` Luc Teirlinck
2006-05-10 6:04 ` Nick Roberts
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=17505.22411.194721.809455@rgrjr.dyndns.org \
--to=rogers-emacs@rgrjr.dyndns.org \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
--cc=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.