From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#19185: 25.0.50; Strangeness with mouse-1 button up events Date: Tue, 25 Nov 2014 19:52:08 -0500 Message-ID: <87fvd63hs7.fsf@maru2.md5i.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416963204 21124 80.91.229.3 (26 Nov 2014 00:53:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2014 00:53:24 +0000 (UTC) To: 19185@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 01:53:18 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 1XtQr7-0006Ib-J7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 01:53:17 +0100 Original-Received: from localhost ([::1]:60036 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtQr7-0007QT-3e for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 19:53:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtQqz-0007NZ-DN for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 19:53:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtQqs-0000Y3-Un for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 19:53:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtQqs-0000Xh-Pv for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 19:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XtQqs-0006cx-HY for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 19:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Nov 2014 00:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19185 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.141696315225432 (code B ref -1); Wed, 26 Nov 2014 00:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Nov 2014 00:52:32 +0000 Original-Received: from localhost ([127.0.0.1]:45369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtQqN-0006c5-O9 for submit@debbugs.gnu.org; Tue, 25 Nov 2014 19:52:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36927) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtQqL-0006bw-1i for submit@debbugs.gnu.org; Tue, 25 Nov 2014 19:52:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtQqF-0000HP-NZ for submit@debbugs.gnu.org; Tue, 25 Nov 2014 19:52:28 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtQqF-0000HK-Jz for submit@debbugs.gnu.org; Tue, 25 Nov 2014 19:52:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtQqA-0007KU-UI for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 19:52:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtQq6-0000ER-4A for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 19:52:18 -0500 Original-Received: from md5i.com ([75.151.244.229]:48897 helo=maru2) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtQq5-0000D3-UR for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 19:52:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=TjAF+7goch2h5bdv7/GtK4hgPx5N2LS7DXyV+lHkIXY=; b=ner81NVsNRAOjJtmWW2XBw4Y3QNrUrdf9+g2tfYT4GEGZbURUdugjzpSzWbGOLxbym5iTTaUFvfgCWMp/2qGIqqM8oJ9R5/AXK4z+qwYu8GW0CPNwyZYqHleIlLy77jZ; Original-Received: from md5i by maru2 with local (Exim 4.84) (envelope-from ) id 1XtQq0-0002it-4P for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 19:52:08 -0500 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:96584 Archived-At: emacs -Q C-h k We get the following *Help*: at that spot runs the command mouse-drag-region (found in global-map), which is an interactive compiled Lisp function in `mouse.el'. It is bound to . (mouse-drag-region START-EVENT) Set the region to the text that the mouse is dragged over. Highlight the drag area as you move the mouse. This must be bound to a button-down mouse event. In Transient Mark mode, the highlighting remains as long as the mark remains active. Otherwise, it remains until the next input event. ----------------- up-event ---------------- at that spot runs the command mouse-set-point (found in global-map), which is an interactive compiled Lisp function in `mouse.el'. It is bound to . (mouse-set-point EVENT &optional PROMOTE-TO-REGION) Move point to the position clicked on with the mouse. This should be bound to a mouse click event type. If PROMOTE-TO-REGION is non-nil and event is a multiple-click, select the corresponding element around point. [back] Now, type C-h k and click (mouse-1) on a `mouse.el' link in the *Help* buffer. (translated from ) at that spot runs the command mouse-drag-region (found in global-map), which is an interactive compiled Lisp function in `mouse.el'. It is bound to . (mouse-drag-region START-EVENT) Set the region to the text that the mouse is dragged over. Highlight the drag area as you move the mouse. This must be bound to a button-down mouse event. In Transient Mark mode, the highlighting remains as long as the mark remains active. Otherwise, it remains until the next input event. ----------------- up-event ---------------- at that spot runs the command push-button (found in button-map), which is an interactive compiled Lisp function in `button.el'. (push-button &optional POS USE-MOUSE-ACTION) Perform the action specified by a button at location POS. POS may be either a buffer position or a mouse-event. If USE-MOUSE-ACTION is non-nil, invoke the button's mouse-action instead of its normal action; if the button has no mouse-action, the normal action is used instead. The action may be either a function to call or a marker to display and is invoked using `button-activate' (which see). POS defaults to point, except when `push-button' is invoked interactively as the result of a mouse-event, in which case, the mouse event is used. If there's no button at POS, do nothing and return nil, otherwise return t. [back] Here the up-event is . Why? Going further, if I am in Gnus and click on a link in an email, I get the following: (translated from ) at that spot runs the command widget-button-click (found in gnus-article-mode-map), which is an interactive compiled Lisp function in `wid-edit.el'. (widget-button-click EVENT) Invoke the button that the mouse is pointing at. ----------------- up-event ---------------- at that spot runs the command mouse-yank-primary (found in global-map), which is an interactive compiled Lisp function in `mouse.el'. (mouse-yank-primary CLICK) Insert the primary selection at the position clicked on. Move point to the end of the inserted text, and set mark at beginning. If `mouse-yank-at-point' is non-nil, insert at point regardless of where you click. [back] This is definitely wrong. widget-button-click makes sense, but mouse-yank-primary makes Emacs beep at me. In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, X toolkit) of 2014-11-13 on maru2 Windowing system distributor `The X.Org Foundation', version 11.0.11601000 System Description: Debian GNU/Linux unstable (sid) Configured using: `configure --without-toolkit-scroll-bars --with-x-toolkit=lucid 'CFLAGS=-Og -ggdb -g3' --with-wide-int' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Help 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 buffer-read-only: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit Making completion list... Type C-x 1 to delete the help window. previous-line: Beginning of buffer [2 times] Type C-x 1 to delete the help window, C-M-v to scroll help. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message 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 help-mode easymenu help-fns time-date tooltip eldoc 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 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 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 x-toolkit x multi-tty emacs) Memory information: ((conses 16 78708 8870) (symbols 48 18226 0) (miscs 40 56 150) (strings 32 12151 4682) (string-bytes 1 315968) (vectors 16 9437) (vector-slots 8 387790 14511) (floats 8 79 357) (intervals 56 666 183) (buffers 976 14) (heap 1024 22548 1237)) -- Michael Welsh Duggan (md5i@md5i.com)