From unknown Fri Jun 13 11:30:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17140: 24.4.50; Modified mouse-click events are not translated to unmodified if unbound 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: To: 17140@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139610547620204 (code B ref -1); Sat, 29 Mar 2014 15:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Mar 2014 15:04:36 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 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 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 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 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 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 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 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/ From: Dominic =?UTF-8?Q?J=C3=A4nichen?= Date: Sat, 29 Mar 2014 15:03:53 +0000 (UTC) Lines: 180 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) 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)) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 14 20:27:05 2019 Received: (at control) by debbugs.gnu.org; 15 Aug 2019 00:27:05 +0000 Received: from localhost ([127.0.0.1]:49949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy3bd-0004kS-Jy for submit@debbugs.gnu.org; Wed, 14 Aug 2019 20:27:05 -0400 Received: from quimby.gnus.org ([80.91.231.51]:58670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy3bc-0004kI-J5 for control@debbugs.gnu.org; Wed, 14 Aug 2019 20:27:04 -0400 Received: from 24-104-73-23-ip-static.hfc.comcastbusiness.net ([24.104.73.23] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hy3bZ-0005jq-MS for control@debbugs.gnu.org; Thu, 15 Aug 2019 02:27:03 +0200 Date: Wed, 14 Aug 2019 17:26:59 -0700 Message-Id: <875zmzs27g.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #23732 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: forcemerge 23732 17140 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 23732 17140 quit