From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: prefix arg when mouse clicking on header Date: Sun, 14 Dec 2008 23:03:59 -0500 Message-ID: References: <18757.39394.481444.293571@tfkp04.physik.uni-erlangen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229313944 2779 80.91.229.12 (15 Dec 2008 04:05:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2008 04:05:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Roland Winkler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 15 05:06:48 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LC4jG-000782-SL for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 05:06:47 +0100 Original-Received: from localhost ([127.0.0.1]:44686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LC4i4-0003ia-MN for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2008 23:05:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LC4gf-0003J0-A8 for emacs-devel@gnu.org; Sun, 14 Dec 2008 23:04:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LC4gd-0003IK-Pf for emacs-devel@gnu.org; Sun, 14 Dec 2008 23:04:04 -0500 Original-Received: from [199.232.76.173] (port=49412 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LC4gd-0003ID-Jc for emacs-devel@gnu.org; Sun, 14 Dec 2008 23:04:03 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:40824 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LC4gd-0000f1-5f for emacs-devel@gnu.org; Sun, 14 Dec 2008 23:04:03 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEEAIhmRUlMConz/2dsb2JhbACBbMtbgn6BMQ X-IronPort-AV: E=Sophos;i="4.36,221,1228107600"; d="scan'208";a="31039871" Original-Received: from 76-10-137-243.dsl.teksavvy.com (HELO pastel.home) ([76.10.137.243]) by ironport2-out.teksavvy.com with ESMTP; 14 Dec 2008 23:04:00 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E1F1885A8; Sun, 14 Dec 2008 23:03:59 -0500 (EST) In-Reply-To: <18757.39394.481444.293571@tfkp04.physik.uni-erlangen.de> (Roland Winkler's message of "Mon, 15 Dec 2008 00:42:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106922 Archived-At: > (interactive (list last-input-event (or last-prefix-arg 'no-arg))) > seems to work. But is this the right thing? Why last-prefix-arg > instead of current-prefix-arg? Certainly, this is consistent with > the code letter P being ignored by interactive. Not sure why that is. Maybe some code somewhere catches the click, does some processing and pushes events back on unread-command-events, so the real code is only run on the second round? > Also I was wondering what is the proper replacement for the code > letter e used by interactive when the list is constructed by hand. AFAIK it's last-nonmenu-event. > If yes, that could go into the elisp manual. It should go somewhere, I agree. I tend to think that call-interactively should use a table mapping letters to Elisp code, so it'd be easy to see which code corresponds to while letter. Stefan