From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.devel Subject: RE: prefix arg when mouse clicking on header Date: Mon, 15 Dec 2008 02:25:23 +0100 Message-ID: <18757.45571.175775.403557@tfkp04.physik.uni-erlangen.de> References: <18757.39394.481444.293571@tfkp04.physik.uni-erlangen.de> <000001c95e48$446696c0$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229304349 16847 80.91.229.12 (15 Dec 2008 01:25:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2008 01:25:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 15 02:26:52 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 1LC2EV-0002MM-2w for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 02:26:51 +0100 Original-Received: from localhost ([127.0.0.1]:56237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LC2DI-0006rt-Rt for ged-emacs-devel@m.gmane.org; Sun, 14 Dec 2008 20:25:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LC2DD-0006rf-KZ for emacs-devel@gnu.org; Sun, 14 Dec 2008 20:25:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LC2DB-0006rQ-DO for emacs-devel@gnu.org; Sun, 14 Dec 2008 20:25:30 -0500 Original-Received: from [199.232.76.173] (port=35961 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LC2DB-0006rN-6v for emacs-devel@gnu.org; Sun, 14 Dec 2008 20:25:29 -0500 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]:23274) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LC2DA-0004op-Rv for emacs-devel@gnu.org; Sun, 14 Dec 2008 20:25:29 -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 C4B5D21486; Mon, 15 Dec 2008 02:25:25 +0100 (CET) In-Reply-To: <000001c95e48$446696c0$0200a8c0@us.oracle.com> X-Mailer: VM 8.0.9 under Emacs 22.2.1 (i686-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:106918 Archived-At: On Sun Dec 14 2008 Drew Adams wrote: > (interactive "e\nP") works for me. > > For example, try the version of `mouse-yank-secondary' in `mouse+.el', with > `second-sel.el' also loaded. If `mouse-yank-secondary' is bound to, say, > `M-mouse-2', then `C-u 3 M-mouse-2' yanks the 3rd most recent secondary > selection. > > The code for that, as an example, is here: > http://www.emacswiki.org/emacs/mouse%2b.el ; mouse+.el > http://www.emacswiki.org/emacs/second-sel.el Is this code supposed to work for header lines, too? I agree that I have no problem with (interactive "e\nP") inside the main part of the buffer. And the following code works too. (interactive (list last-input-event current-prefix-arg)) Yet for the header line, I need to replace current-prefix-arg by last-prefix-arg. Why? And is there a common meaning for the prefix `last-' of last-input-event and last-prefix-arg? Or is this coincidence accidental? Roland