From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: Emacs developers <emacs-devel@gnu.org>,
David De La Harpe Golden <david@harpegolden.net>
Subject: Re: clipboard/selection: customization vs. rebinding
Date: Thu, 30 Jun 2011 12:57:20 -0400 [thread overview]
Message-ID: <jwvhb77qmw5.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87k4c4d3i0.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 29 Jun 2011 12:08:39 -0400")
>> Shouldn't we do something like the patch below?
>>
>> -(global-set-key [left-fringe mouse-1] 'mouse-set-point)
>> -(global-set-key [right-fringe mouse-1] 'mouse-set-point)
>> +(global-set-key [left-fringe mouse-1] [mouse-1])
>> +(global-set-key [right-fringe mouse-1] [mouse-1])
> That doesn't work for mouse-yank-primary. Binding [left-fringe mouse-2]
> to [mouse-2], and doing mouse-2 in the fringe, gives an error:
> Debugger entered--Lisp error: (error "mouse-yank-primary must be bound
> to an event with parameters")
> call-interactively(mouse-yank-primary nil nil)
> The problem is that mouse events are not passed along to keyboard macro
> bindings.
Hmm... so maybe we should do
(define-key function-key-map [left-fringe mouse-2] [mouse-2])
instead. The point is simply that by default clicks in the fringe
should fallback to doing the same as clicks in the text area.
Stefan
next prev parent reply other threads:[~2011-06-30 16:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-26 21:12 clipboard/selection: customization vs. rebinding David De La Harpe Golden
2011-06-27 15:59 ` Chong Yidong
2011-06-29 3:19 ` Stefan Monnier
2011-06-29 16:08 ` Chong Yidong
2011-06-30 16:57 ` Stefan Monnier [this message]
2011-07-01 5:12 ` David De La Harpe Golden
2011-07-03 18:30 ` Chong Yidong
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=jwvhb77qmw5.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cyd@stupidchicken.com \
--cc=david@harpegolden.net \
--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.