From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dominic =?UTF-8?Q?J=C3=A4nichen?= Newsgroups: gmane.emacs.bugs Subject: bug#17140: 24.4.50; Modified mouse-click events are not translated to unmodified if unbound Date: Sat, 29 Mar 2014 15:03:53 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1396105528 18793 80.91.229.3 (29 Mar 2014 15:05:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2014 15:05:28 +0000 (UTC) To: 17140@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 16:05:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WTup0-00052X-3S for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2014 16:05:22 +0100 Original-Received: from localhost ([::1]:39636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTuoz-0007Ub-HV for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2014 11:05:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTuop-0007Qw-5B for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 11:05:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTuoh-0003D5-Nd for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 11:05:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTuoh-0003Ci-Kf for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 11:05:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WTuoh-0005Gh-4I for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 11:05:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dominic =?UTF-8?Q?J=C3=A4nichen?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Mar 2014 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17140 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139610547620204 (code B ref -1); Sat, 29 Mar 2014 15:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2014 15:04:36 +0000 Original-Received: from localhost ([127.0.0.1]:56294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTuoE-0005Fl-Kb for submit@debbugs.gnu.org; Sat, 29 Mar 2014 11:04:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56751) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTuoA-0005Fc-Uh for submit@debbugs.gnu.org; Sat, 29 Mar 2014 11:04:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTuo3-00031u-FO for submit@debbugs.gnu.org; Sat, 29 Mar 2014 11:04:30 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTuo3-00031o-Cx for submit@debbugs.gnu.org; Sat, 29 Mar 2014 11:04:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTunx-00072a-2L for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 11:04:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTunm-0002yI-8w for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 11:04:16 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTunl-0002xr-Um for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 11:04:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WTunj-0004Gi-Ai for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 16:04:03 +0100 Original-Received: from p508409bd.dip0.t-ipconnect.de ([80.132.9.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Mar 2014 16:04:03 +0100 Original-Received: from d.newsgroups by p508409bd.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Mar 2014 16:04:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 180 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p508409bd.dip0.t-ipconnect.de User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT 098a3bb /usr/portage/distfiles/egit-src/pan2) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87525 Archived-At: A keyboard event that includes modifiers as "S-" is translated to the unmodified version if there is no binding of the modified key. (Eg. gets translated to ) This should also happen for mouse-click events, but doesn't. (Unbind and . Then, clicking inside a buffer with Shift held down results in " is undefined" in minibuffer) (refer also to description in emacs-dev; copied here for completeness) I am using shift-select-mode and want to activate a region using S- mouse-1. I have and bound to "mouse-set-point". I either change "mouse-set-point" to contain (interactive "^e") or use cua- mode and (put 'mouse-set-point 'CUA 'move). I find that I can then extend existing regions with , but not activate one (ie. click on some spot to activate the region between that spot and the current mark). This issue exists since rev 107888 and is documented there: "Don't activate the region on shift if the binding is already shifted." That's fine for as translates to , but does not translate to . The only option is to bind , but this does not activate the region as it is already shifted. On Fri, 28 Mar 2014 16:19:19 -0400, Stefan Monnier wrote: > S-mouse-1 does translate to mouse-1, tho only if S-mouse-1 is not > bound. So instead of binding S-mouse-1 to mouse-set-point, you want to > unbind S-mouse-1: (global-set-key [S-mouse-1] nil) Doing that results in S-Mouse-1 being non-functional. (" is undefined" in minibuffer.) In GNU Emacs 24.4.50.5 (x86_64-pc-linux-gnu, GTK+ Version 3.11.8) of 2014-03-28 on dominic-gentoo Repository revision: tsdh@gnu.org-20140328085906-jwbmgf2iyuaintsm Windowing system distributor `The X.Org Foundation', version 11.0.11500000 System Description: Gentoo Base System release 2.2 Configured using: `configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-silent-rules --disable-dependency-tracking --program-suffix=-emacs-24-vcs --infodir=/usr/share/info/emacs-24-vcs --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp --with-gameuser=games --without-compress-install --with-file-notification=gfile --enable-acl --with-dbus --with-gnutls --without-gpm --without-hesiod --with-kerberos --with-kerberos5 --with-xml2 --without-selinux --without-wide-int --with-zlib --with-sound=alsa --with-x --without-ns --without-gconf --with-gsettings --with-toolkit-scroll-bars --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft --with-libotf --with-m17n-flt --with-x-toolkit=gtk3 GENTOO_PACKAGE=app-editors/emacs-vcs-24.4.9999 EBZR_BRANCH=trunk EBZR_REVNO= 'CFLAGS=-march=native -mtune=native -frecord-gcc-switches -fomit-frame-pointer -fuse-linker-plugin -pipe -Wstrict-aliasing -Werror=strict-aliasing -Wformat=2 -Waggressive-loop-optimizations -Werror=aggressive-loop-optimizations -fdiagnostics-color -O3 -flto -fno-fat-lto-objects -floop-interchange -ftree-loop-distribution -fweb -fvariable-expansion-in-unroller -frename-registers -ggdb ' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -march=native -mtune=native -frecord-gcc-switches -fomit-frame-pointer -fuse-linker-plugin -pipe -Wstrict-aliasing -Werror=strict-aliasing -Wformat=2 -Waggressive-loop-optimizations -Werror=aggressive-loop-optimizations -fdiagnostics-color -O3 -flto -fno-fat-lto-objects -floop-interchange -ftree-loop-distribution -fweb -fvariable-expansion-in-unroller -frename-registers -ggdb'' Important settings: value of $LC_MONETARY: de_DE.utf8 value of $LC_NUMERIC: de_DE.utf8 value of $LC_TIME: de_DE.utf8 value of $LANG: en_GB.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-a n i l n i l C-j C-h k ` M-x d e s c - k M-x d e s c - k < u p C-j C-j C-j M-x d e s c - k M-x d e c s c - k Recent messages: Type C-x 1 to delete the help window, C-M-v to scroll help. You can run the command `describe-key' with C-h k Type C-x 1 to delete the help window, C-M-v to scroll help. Entering debugger... delete-backward-char: Buffer is read-only: # is undefined [13 times] (translated from ) at that spot is undefined You can run the command `describe-key' with C-h k (translated from ) at that spot is undefined (translated from ) at that spot is undefined Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message idna dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils debug help-fns help-mode easymenu edmacro kmacro cl-loaddefs cl-lib site-gentoo preview-latex tex-site auto-loads time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 84707 7284) (symbols 48 18518 0) (miscs 40 120 210) (strings 32 12486 4595) (string-bytes 1 367649) (vectors 16 9832) (vector-slots 8 379991 6635) (floats 8 67 335) (intervals 56 484 0) (buffers 960 14) (heap 1024 35758 1231))