all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [jdsmith@as.arizona.edu: mouse-yank-at-point in Comint modes]
Date: Sat, 09 Dec 2006 13:26:24 -0500	[thread overview]
Message-ID: <E1Gt6u0-0006dz-UX@fencepost.gnu.org> (raw)
In-Reply-To: <87y7ph1a09.fsf@pacem.orebokech.com> (message from Romain Francoise on Sat, 09 Dec 2006 14:20:22 +0100)

    Ah, right.  It seems that trying to handle this case is hopeless because
    when `mouse-yank-at-point' is t, yanking will always try to yank in the
    wrong buffer if the target buffer is not current when Emacs receives the
    event (since `mouse-yank-at-click' skips the `mouse-set-point' call in
    that case).

When `mouse-yank-at-point' is t, the right thing to do is look up the
binding in the selected window (if it is different from the one
clicked on) and run that binding.  Both `mouse-yank-at-click' and
`comint-insert-input' should do that.

That way, if a comint buffer is selected, and you click in another window,
`comint-insert-input' will do its thing.

We need to prevent this from recurring more than once.
So if the function looks up the binding and sees "it's me"
it should proceed to do its real job.

      reply	other threads:[~2006-12-09 18:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-09  6:01 [jdsmith@as.arizona.edu: mouse-yank-at-point in Comint modes] Richard Stallman
2006-12-09 11:16 ` Romain Francoise
2006-12-09 12:17   ` Johan Bockgård
2006-12-09 13:20     ` Romain Francoise
2006-12-09 18:26       ` Richard Stallman [this message]

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=E1Gt6u0-0006dz-UX@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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 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.