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: Tue, 28 Jun 2011 23:19:36 -0400 [thread overview]
Message-ID: <jwvy60lba8i.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87d3hz5kp7.fsf@stupidchicken.com> (Chong Yidong's message of "Mon, 27 Jun 2011 11:59:48 -0400")
> It's a tough decision. It's true that mouse-yank-at-click has fringe
> bindings, so anyone who wants the old behavior would need to rebind
> those too, which is a nuisance.
Shouldn't we do something like the patch below?
> However, if we introduce a boolean to control mouse-yank-at-click, that
> makes it harder for users to have both mouse yank behaviors available
> (by binding mouse-yank-at-click and mouse-yank-primary to different
> keys)---unless we introduce yet another command that unconditionally
> yanks from the kill ring, which I think is not worth the complication.
It doesn't seem that terrible, but I also don't think it matters that
much either way (i.e. I think the main problem with the new behavior is
that C-y now never inserts the primary).
Stefan
=== modified file 'lisp/mouse.el'
--- lisp/mouse.el 2011-06-01 16:10:20 +0000
+++ lisp/mouse.el 2011-06-29 03:17:30 +0000
@@ -2092,16 +2092,16 @@
;; (global-set-key [triple-mouse-1] 'mouse-set-point)
;; Clicking on the fringes causes hscrolling:
-(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])
(global-set-key [mouse-2] 'mouse-yank-primary)
;; Allow yanking also when the corresponding cursor is "in the fringe".
-(global-set-key [right-fringe mouse-2] 'mouse-yank-at-click)
-(global-set-key [left-fringe mouse-2] 'mouse-yank-at-click)
+(global-set-key [right-fringe mouse-2] [mouse-2])
+(global-set-key [left-fringe mouse-2] [mouse-2])
(global-set-key [mouse-3] 'mouse-save-then-kill)
-(global-set-key [right-fringe mouse-3] 'mouse-save-then-kill)
-(global-set-key [left-fringe mouse-3] 'mouse-save-then-kill)
+(global-set-key [right-fringe mouse-3] [mouse-3])
+(global-set-key [left-fringe mouse-3] [mouse-3])
;; By binding these to down-going events, we let the user use the up-going
;; event to make the selection, saving a click.
next prev parent reply other threads:[~2011-06-29 3:19 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 [this message]
2011-06-29 16:08 ` Chong Yidong
2011-06-30 16:57 ` Stefan Monnier
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=jwvy60lba8i.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.