GNU bug report logs - #34014
25.2; binding down mouse event with modifier to mouse-drag-region does not work

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Adolf Mathias <adolf.mathias@HIDDEN>; dated Tue, 8 Jan 2019 13:31:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 34014 <at> debbugs.gnu.org:


Received: (at 34014) by debbugs.gnu.org; 1 Mar 2019 08:00:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 01 03:00:34 2019
Received: from localhost ([127.0.0.1]:55732 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gzd5t-0001IW-RZ
	for submit <at> debbugs.gnu.org; Fri, 01 Mar 2019 03:00:34 -0500
Received: from eggs.gnu.org ([209.51.188.92]:36111)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1gzd5s-0001II-21
 for 34014 <at> debbugs.gnu.org; Fri, 01 Mar 2019 03:00:32 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59442)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1gzd5k-0000LR-CR; Fri, 01 Mar 2019 03:00:25 -0500
Received: from [176.228.60.248] (port=1065 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1gzd5j-0007oo-4h; Fri, 01 Mar 2019 03:00:24 -0500
Date: Fri, 01 Mar 2019 10:00:09 +0200
Message-Id: <83pnrbhvna.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Adolf Mathias <adolf.mathias@HIDDEN>
In-reply-to: <CACHJYueYx6RC18S6LGGRUZdkK_RPwnY_VGk3aR8zf1AzX6a26g@HIDDEN>
 (message from Adolf Mathias on Tue, 8 Jan 2019 10:51:19 +0100)
Subject: Re: bug#34014: 25.2;
 binding down mouse event with modifier to mouse-drag-region does not
 work
References: <CACHJYueYx6RC18S6LGGRUZdkK_RPwnY_VGk3aR8zf1AzX6a26g@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 34014
Cc: 34014 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> From: Adolf Mathias <adolf.mathias@HIDDEN>
> Date: Tue, 8 Jan 2019 10:51:19 +0100
> 
> >From 'emacs -Q' under X11, Ubuntu Bionic Beaver, enter:
> M-: (define-key global-map '[S-down-mouse-1] 'mouse-drag-region)
> 
> Now attempting to drag a region with held down shift key gives the
> error message:
> 
> <S-drag-mouse-1> is undefined
> 
> Redefining the mouse key without shift modifier, and then dragging,
> works as intended:
> M-: (define-key global-map '[down-mouse-1] 'mouse-drag-region)
> 
> This used to work in Emacs 24 and before.

Sorry for such a long delay in responding to your report.

Can you tell why you want to bind S-down-mouse-1 and not
S-drag-mouse-1 to a drag command?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34014; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Jan 2019 13:31:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 08 08:31:01 2019
Received: from localhost ([127.0.0.1]:49349 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ggrTA-0001sY-3j
	for submit <at> debbugs.gnu.org; Tue, 08 Jan 2019 08:31:01 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48774)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <adolf.mathias@HIDDEN>) id 1ggo18-0002ll-0m
 for submit <at> debbugs.gnu.org; Tue, 08 Jan 2019 04:49:50 -0500
Received: from lists.gnu.org ([209.51.188.17]:47211)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <adolf.mathias@HIDDEN>)
 id 1ggo12-0001bX-Ms
 for submit <at> debbugs.gnu.org; Tue, 08 Jan 2019 04:49:44 -0500
Received: from eggs.gnu.org ([209.51.188.92]:58968)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <adolf.mathias@HIDDEN>) id 1ggo11-0001oh-CJ
 for bug-gnu-emacs@HIDDEN; Tue, 08 Jan 2019 04:49:44 -0500
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 Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <adolf.mathias@HIDDEN>) id 1ggo0z-0001VL-Qc
 for bug-gnu-emacs@HIDDEN; Tue, 08 Jan 2019 04:49:43 -0500
Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:43214)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <adolf.mathias@HIDDEN>)
 id 1ggo0z-0001Qk-H6
 for bug-gnu-emacs@HIDDEN; Tue, 08 Jan 2019 04:49:41 -0500
Received: by mail-ed1-x541.google.com with SMTP id f9so3530855eds.10
 for <bug-gnu-emacs@HIDDEN>; Tue, 08 Jan 2019 01:49:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=tZO6VYJyZUq+IfJNUBuBAwQ1iFBDyA+GpTZx5QdJBOg=;
 b=MTlOlhIARNr3zGiiPsyeCM3YYI+TNKtA8aP3HzNNoD7/l5ZR+rlyMuh6nR8wbCtKYC
 bCJ9avByHCRhABwnYJxmtsJYL61DLAuN0toxIa5UyRdVsZRMYz6Exwm7vvPmJuzKCT3q
 1nKPLtRsKfM0l4vxShFow3p9Ra+cF3uFAmra6pH/GwgVxu5yy05DDoMO9GjTvfL1x5FB
 yoyUKilGodPtf7/8oAug/WufssZ5NSjeactY+U7CBjrk+w2F35k8sHWhRT1oYK/qNSec
 l+IeeBLsdf6LiI09ao7rlDIb4b9FgQPgFAS+afZUjWFKdp7TeUKzOTXAJFRgd07ckdm3
 WVEw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=tZO6VYJyZUq+IfJNUBuBAwQ1iFBDyA+GpTZx5QdJBOg=;
 b=s3TkjEOaWLE+p8m62thtUWchqLeztTVdU5AJZyfUyFGkvYvISkenFbksORQJMbQOrj
 y52oB+2x/cx6mf+Q5DQRIaASQukhQNTkF0jZoJHU/WZWEhJPhQ8PwRL46iRJN3JcNt95
 sffc3Exo1C6fklTcn97LEz5frpkAPCAJp4tmLXcDTrwNrzdD4lUnZpfnjVPGuL4FmHKU
 fsPG6z17+lhgwt9ZOFvCVkIj6BlE9HbJ2J6E8ETr8D+riEL52XORFkiSIfBCi8ga39uB
 iNhlBVq6xa4l2Mb0NpI6KaXyBj3zsKHxmgOesjS9xl+vxRj+FfUwQNeb/X+RN95vVPww
 673g==
X-Gm-Message-State: AJcUukfzf7ssvh8nL6HsyayhF3qeXGAoHWFhnD1n40B/+byAr+WDesm/
 1s9aaJUef008bwrxZXQbuknoq0ZT2Eg3iZ33w0pmWfky
X-Google-Smtp-Source: ALg8bN7exByueNrQ+JE/9T6J6R/DW2TDu2NhKahh7LpGAMNJWsf8VhgIBje+NP9YYYhgzk/0R2zvDmvKD1qqoWQauAM=
X-Received: by 2002:a50:b902:: with SMTP id m2mr1371933ede.108.1546940978698; 
 Tue, 08 Jan 2019 01:49:38 -0800 (PST)
MIME-Version: 1.0
From: Adolf Mathias <adolf.mathias@HIDDEN>
Date: Tue, 8 Jan 2019 10:51:19 +0100
Message-ID: <CACHJYueYx6RC18S6LGGRUZdkK_RPwnY_VGk3aR8zf1AzX6a26g@HIDDEN>
Subject: 25.2; binding down mouse event with modifier to mouse-drag-region
 does not work
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::541
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 08 Jan 2019 08:30:57 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

======================

From 'emacs -Q' under X11, Ubuntu Bionic Beaver, enter:
M-: (define-key global-map '[S-down-mouse-1] 'mouse-drag-region)

Now attempting to drag a region with held down shift key gives the
error message:

<S-drag-mouse-1> is undefined

Redefining the mouse key without shift modifier, and then dragging,
works as intended:
M-: (define-key global-map '[down-mouse-1] 'mouse-drag-region)

This used to work in Emacs 24 and before.

======================



In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
 of 2017-09-22, modified by Debian built on lgw01-amd64-050
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description:    Ubuntu 18.04.1 LTS

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --build x86_64-linux-gnu
 --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3
 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs25-jYekUr/emacs25-25.2+1=.
-fstack-protector-strong
 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LC_CTYPE: en_US.utf8
  value of $LC_MONETARY: de_DE.UTF-8
  value of $LC_NUMERIC: C
  value of $LC_TIME: C
  value of $LANG: C
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-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 messages:
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
gui-get-primary-selection: No selection is available
Mark set
mouse-drag-region
Mark set
mouse-drag-region
Mark set
<S-drag-mouse-1> is undefined
C-c RET is undefined

Load-path shadows:
/usr/share/emacs/25.2/site-lisp/debian-startup hides
/usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs25/site-lisp/cmake-data/cmake-mode hides
/usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs25/site-lisp/auctex/context-nl hides
/usr/share/emacs/site-lisp/auctex/context-nl
/usr/share/emacs25/site-lisp/auctex/tex hides
/usr/share/emacs/site-lisp/auctex/tex
/usr/share/emacs25/site-lisp/auctex/tex-style hides
/usr/share/emacs/site-lisp/auctex/tex-style
/usr/share/emacs25/site-lisp/auctex/latex hides
/usr/share/emacs/site-lisp/auctex/latex
/usr/share/emacs25/site-lisp/auctex/tex-font hides
/usr/share/emacs/site-lisp/auctex/tex-font
/usr/share/emacs25/site-lisp/auctex/context-en hides
/usr/share/emacs/site-lisp/auctex/context-en
/usr/share/emacs25/site-lisp/auctex/tex-ispell hides
/usr/share/emacs/site-lisp/auctex/tex-ispell
/usr/share/emacs25/site-lisp/auctex/font-latex hides
/usr/share/emacs/site-lisp/auctex/font-latex
/usr/share/emacs25/site-lisp/auctex/texmathp hides
/usr/share/emacs/site-lisp/auctex/texmathp
/usr/share/emacs25/site-lisp/auctex/toolbar-x hides
/usr/share/emacs/site-lisp/auctex/toolbar-x
/usr/share/emacs25/site-lisp/auctex/multi-prompt hides
/usr/share/emacs/site-lisp/auctex/multi-prompt
/usr/share/emacs25/site-lisp/auctex/context hides
/usr/share/emacs/site-lisp/auctex/context
/usr/share/emacs25/site-lisp/auctex/tex-jp hides
/usr/share/emacs/site-lisp/auctex/tex-jp
/usr/share/emacs25/site-lisp/auctex/preview hides
/usr/share/emacs/site-lisp/auctex/preview
/usr/share/emacs25/site-lisp/auctex/prv-emacs hides
/usr/share/emacs/site-lisp/auctex/prv-emacs
/usr/share/emacs25/site-lisp/auctex/tex-info hides
/usr/share/emacs/site-lisp/auctex/tex-info
/usr/share/emacs25/site-lisp/auctex/tex-fold hides
/usr/share/emacs/site-lisp/auctex/tex-fold
/usr/share/emacs25/site-lisp/auctex/bib-cite hides
/usr/share/emacs/site-lisp/auctex/bib-cite
/usr/share/emacs25/site-lisp/auctex/tex-mik hides
/usr/share/emacs/site-lisp/auctex/tex-mik
/usr/share/emacs25/site-lisp/auctex/tex-buf hides
/usr/share/emacs/site-lisp/auctex/tex-buf
/usr/share/emacs25/site-lisp/auctex/tex-bar hides
/usr/share/emacs/site-lisp/auctex/tex-bar
/usr/share/emacs25/site-lisp/auctex/plain-tex hides
/usr/share/emacs/site-lisp/auctex/plain-tex

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils preview-latex tex-site
auto-loads time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded 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 dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 91833 8234)
 (symbols 48 20167 0)
 (miscs 40 103 171)
 (strings 32 15355 5105)
 (string-bytes 1 440851)
 (vectors 16 11880)
 (vector-slots 8 434204 5146)
 (floats 8 164 159)
 (intervals 56 301 0)
 (buffers 976 19))




Acknowledgement sent to Adolf Mathias <adolf.mathias@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#34014; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.