all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
Cc: rogers-emacs@rgrjr.dyndns.org, emacs-devel@gnu.org
Subject: Re: comint-insert-input on non-command lines:  A trivial fix, a quibble, and a bug
Date: Wed, 10 May 2006 17:29:54 +1200	[thread overview]
Message-ID: <17505.31314.844449.970281@farnswood.snap.net.nz> (raw)
In-Reply-To: <200605100441.k4A4f636019170@jane.dms.auburn.edu>

 >    When comint-use-prompt-regexp is nil things should work as before.  When
 >    it is t, you should get the old behaviour i.e output lines are copied
 >    too.
 > 
 > Now C-c RET works indeed OK if comint-use-prompt-regexp is non-nil,
 > but now mouse-2 gives problems.  I do not believe that mouse-2 should
 > do anything but yank if comint-use-prompt-regexp is non-nil, since the
 > behavior is too confusing otherwise, without any help echo to warn or
 > anything.  Of course, the mouse-2 help-echo should also be made
 > conditional on comint-use-prompt-regexp being nil.

Luc, do you actually use comint?  You appear to know more about the variables
than me (perhaps from re-writing the manual) but I have been using mouse-2 to
insert input (in the GUD buffer) for a long time, and not found it confusing.

 > Also, people who find the old behavior useful will now have to set
 > comint-use-prompt-regexp non-nil for no other reason than to restore
 > that behavior.  To me, this seems weird. 

Fields provide the opportunity to distinguish between input and output:
I think we should use it.

 > You replaced comint-copy-old-input with comint-insert-input believing
 > that it was similar to comint-insert-clicked-input.  But it is not.
 > mouse-2 has an important global binding, yanking, and even overriding
 > that global binding for old input seems rather dubious, let alone
 > overriding it in the entire comint buffer, making yanking using
 > mouse-2 completely impossible.

What binding do you think comint-insert-clicked-input had?  It was mouse-2
and it overrode the global binding.  Perhaps you are also arguing against
that function which was introduced six years ago and in Emacs 21.

It doesn't make yanking impossible (try it), just yanking at previous input.

 > On the other hand, `C-c RET' has no important global binding, so there
 > is no reason not to use it on output.  The user gets the opportunity
 > to edit, so even _if_ he hit `C-c RET' by accident, which is very
 > unlikely, no major harm is done.  So providing the extra functionality
 > to people who find it useful does not impose any real hardship on
 > people who never use it.
 
Just like help-follow-mouse used to work on words which weren't
cross-references.

I think it lacks logic, adds complexity and just performs a task that can be
done with two mouse clicks anyway.

 > In certain derived Comint modes, like external Lisp mode, using `C-c RET'
 > on output seems even more often useful than in shell-mode, which,
 > if I understood correctly, is what Bob is concerned with.

If it is so useful, I wonder why it wasn't documented.  In fact the
documentation even suggests it wasn't intended to be used in this way.

 > I personally believe that restoring comint-copy-old-input would be a
 > good thing.  `comint-insert-input' has not been part of any release,
 > so if we ever plan to undo the change, now is the time to do it.

I think some of your assertions are wrong.

 > Regardless of whether comint-copy-old-input gets restored, I believe
 > that it would be good to make the mouse-2 binding and corresponding
 > help-echo conditional on comint-use-prompt-regexp being non-nil and
 > document that wherever the mouse-2 binding is mentioned.  I could do
 > that if there are no objections.

I don't even follow that, mouse-2 inserts input even when
comint-use-prompt-regexp being non-nil

-- 
Nick                                           http://www.inet.net.nz/~nickrob

  reply	other threads:[~2006-05-10  5:29 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
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 [this message]
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.31314.844449.970281@farnswood.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=emacs-devel@gnu.org \
    --cc=rogers-emacs@rgrjr.dyndns.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 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.