From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#25784: 25.2; mouse-1 binding in debbugs-gnu.el Date: Mon, 20 Feb 2017 13:32:43 +0100 Message-ID: <878tp1m49g.fsf@detlef> References: <87k28npqay.fsf@linux-m68k.org> <87d1eds2ed.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487594057 27869 195.159.176.226 (20 Feb 2017 12:34:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2017 12:34:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Andreas Schwab , 25784-done@debbugs.gnu.org To: charles@aurox.ch (Charles A. Roelli) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 20 13:34:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfnAR-0006ma-JC for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Feb 2017 13:34:11 +0100 Original-Received: from localhost ([::1]:37961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfnAW-0004TV-SZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Feb 2017 07:34:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfnAM-0004R4-Rl for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2017 07:34:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfnAI-0006TR-O9 for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2017 07:34:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48735) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfnAI-0006TJ-L3 for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2017 07:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cfnAI-00008e-9k for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2017 07:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2017 12:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25784 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25784-done@debbugs.gnu.org id=D25784.1487593983449 (code D ref 25784); Mon, 20 Feb 2017 12:34:02 +0000 Original-Received: (at 25784-done) by debbugs.gnu.org; 20 Feb 2017 12:33:03 +0000 Original-Received: from localhost ([127.0.0.1]:46934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfn9K-00007A-JU for submit@debbugs.gnu.org; Mon, 20 Feb 2017 07:33:02 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:55251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfn9J-00006c-2n for 25784-done@debbugs.gnu.org; Mon, 20 Feb 2017 07:33:01 -0500 Original-Received: from detlef.gmx.de ([93.197.204.90]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M03qC-1cMtmM0Ncy-00uEjx; Mon, 20 Feb 2017 13:32:46 +0100 In-Reply-To: (Charles A. Roelli's message of "Mon, 20 Feb 2017 09:55:53 +0100") X-Provags-ID: V03:K0:0INlkOTPZzvtJBPBgx+3kjqtKMuMJjuT7Bc205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.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:129571 Archived-At: charles@aurox.ch (Charles A. Roelli) writes: Hi Charles, > I realize now that this change only makes sense if mouse-2 sets point > when clicked, as it does in Gnus. Good catch! > I think what follows is the correct way to do it, and it works as > expected. This patch works for using the mouse, but there are problems when you enter a bug report via RET or menu -> . I've applied the following patch to the repository: --8<---------------cut here---------------start------------->8--- diff --git a/packages/debbugs/debbugs-gnu.el b/packages/debbugs/debbugs-gnu.el index f814642..eb94679 100644 --- a/packages/debbugs/debbugs-gnu.el +++ b/packages/debbugs/debbugs-gnu.el @@ -1350,6 +1350,7 @@ MERGED is the list of bugs merged with this one." (defun debbugs-gnu-select-report () "Select the report on the current line." (interactive) + (when (mouse-event-p last-input-event) (mouse-set-point last-input-event)) ;; We open the report messages. (let* ((status (debbugs-gnu-current-status)) (id (cdr (assq 'id status))) @@ -1673,6 +1674,7 @@ The following commands are available: (defun debbugs-gnu-select-usertag () "Select the user tag on the current line." (interactive) + (when (mouse-event-p last-input-event) (mouse-set-point last-input-event)) ;; We open the bug reports. (let ((args (get-text-property (line-beginning-position) 'tabulated-list-id))) (when args (apply 'debbugs-gnu args)))) --8<---------------cut here---------------end--------------->8--- Will appear with the next debbugs version 0.15. I've not decided yet, when to release. Best regards, Michael.