From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1586: prefix arg when mouse clicking on header line Date: Mon, 15 Dec 2008 21:58:06 +0100 Message-ID: Reply-To: Roland Winkler , 1586@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1229499709 10079 80.91.229.12 (17 Dec 2008 07:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 07:41:49 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 17 08:42:55 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LCr3W-0001bs-Bo for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2008 08:42:54 +0100 Original-Received: from localhost ([127.0.0.1]:44958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCr2K-0003gv-DO for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Dec 2008 02:41:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCr1q-0003LZ-5L for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2008 02:41:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCr1o-0003Ki-FJ for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2008 02:41:09 -0500 Original-Received: from [199.232.76.173] (port=47025 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCr1o-0003Kf-8n for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2008 02:41:08 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:43412) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LCr1m-0007uZ-AJ for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2008 02:41:06 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCr1l-0004f8-EA for bug-gnu-emacs@gnu.org; Wed, 17 Dec 2008 02:41:05 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBH7OJF6014034; Tue, 16 Dec 2008 23:24:28 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBH6mkow002583; Tue, 16 Dec 2008 22:48:46 -0800 X-Loop: don@donarmstrong.com Resent-From: "Roland Winkler" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 17 Dec 2008 06:48:45 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1586 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122937470317815 (code B ref -1); Wed, 17 Dec 2008 06:48:45 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 15 Dec 2008 20:58:23 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBFKwGoW017795 for ; Mon, 15 Dec 2008 12:58:18 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]:48243) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LCKVR-0008DT-De for emacs-pretest-bug@gnu.org; Mon, 15 Dec 2008 15:57:33 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LCKW6-0005ll-IM for emacs-pretest-bug@gnu.org; Mon, 15 Dec 2008 15:58:15 -0500 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:3568) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCKW6-0005lS-4c for emacs-pretest-bug@gnu.org; Mon, 15 Dec 2008 15:58:14 -0500 Original-Received: from tfkp04.physik.uni-erlangen.de (tfkp04.physik.uni-erlangen.de [131.188.164.204]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id 8A9F421486 for ; Mon, 15 Dec 2008 21:58:08 +0100 (CET) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Wed, 17 Dec 2008 02:41:09 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23309 gmane.emacs.pretest.bugs:23509 Archived-At: If a command takes a mouse event and an (optional) prefix arg as its arguments, the interactive specifications are (interactive "e\nP") or (interactive (list last-input-event current-prefix-arg)) This works fine inside the main part of a window. For a command that does the same thing in the header line, these interactive specifications do not work. Instead one needs, e..g, (interactive (list last-input-event last-prefix-arg)) i.e., current-prefix-arg needs to be replaced by last-prefix-arg. This problem occured in the context of the command proced-sort-header in proced.el, which provides a complete test example. See also http://lists.gnu.org/archive/html/emacs-devel/2008-12/msg00559.html In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2008-12-05 on regnitz Windowing system distributor `The X.Org Foundation', version 11.0.10502000