all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthew Woodcraft <matthew@woodcraft.me.uk>
To: 18212@debbugs.gnu.org
Subject: bug#18212: 24.3.92; Left-click on a button is treated as mouse-2
Date: Wed, 06 Aug 2014 21:35:29 +0100	[thread overview]
Message-ID: <87vbq5nypa.fsf@golux.woodcraft.me.uk> (raw)


If click with my left mouse button (normally mouse-1) on "button" text,
Emacs appears to think I clicked mouse-2 (normally the middle button).


Recipe to reproduce:

emacs -Q --exec "(global-set-key (kbd \"<down-mouse-2>\") 'clipboard-yank)" --exec "(info)"

Left-click on one of the hyperlinks.

Emacs says
  Buffer is read-only: #<buffer *info*>
rather than following the hyperlink.


Using describe-key with a left click suggests that Emacs thinks that,
when over a 'button', the left click is mouse-2:
«
<down-mouse-2> at that spot runs the command clipboard-yank, which is
an interactive compiled Lisp function in `menu-bar.el'.
»
If I click somewhere that isn't a 'button', Emacs thinks it's mouse-1.


The problem didn't happen with the released Emacs 24.3.

This Emacs was built from the emacs-24 branch as of 2014-08-03.

In GNU Emacs 24.3.92.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2014-08-03 on golux, modified by Debian
 (emacs-snapshot package, version 2:20140803-mjw1)
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux 7.6 (wheezy)

Configured using:
 `configure --build i486-linux-gnu --host i486-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var
 --infodir=/usr/share/info/emacs-snapshot --mandir=/usr/share/man
 --with-pop=yes
 --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.92/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.92/site-lisp:/usr/share/emacs/site-lisp
 --enable-silent-rules --enable-link-time-optimization
 --with-crt-dir=/usr/lib/i386-linux-gnu/ --with-x=yes
 --with-x-toolkit=gtk3 --with-toolkit-scroll-bars --with-imagemagick=yes
 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
 -Werror=format-security' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-z,relro'

Important settings:
  value of $LC_CTYPE: en_GB.UTF-8
  locale-coding-system: utf-8-unix






             reply	other threads:[~2014-08-06 20:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-06 20:35 Matthew Woodcraft [this message]
2014-08-06 23:59 ` bug#18212: 24.3.92; Left-click on a button is treated as mouse-2 Glenn Morris
2014-08-07 13:08 ` Stefan Monnier
2014-08-07 18:36 ` Stefan Monnier
2014-08-07 21:02   ` Matthew Woodcraft
2014-08-08  2:28     ` Stefan Monnier
2014-08-08 18:38       ` Stefan Monnier

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=87vbq5nypa.fsf@golux.woodcraft.me.uk \
    --to=matthew@woodcraft.me.uk \
    --cc=18212@debbugs.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.