From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: Prefix Argument to indent-line-function Date: Sun, 03 Nov 2002 15:30:44 +0100 Organization: University of Dortmund, Germany Sender: emacs-devel-admin@gnu.org Message-ID: <84u1iybu97.fsf@crybaby.uni-duisburg.de> References: <1036280611.10181.17.camel@slider> <200211030231.gA32VXP10722@rum.cs.yale.edu> <1036295309.11508.28.camel@slider> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036337803 906 80.91.224.249 (3 Nov 2002 15:36:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 3 Nov 2002 15:36:43 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 188Mnq-0000EU-00 for ; Sun, 03 Nov 2002 16:36:42 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 188Muw-0008TR-00 for ; Sun, 03 Nov 2002 16:44:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 188Ml1-0000fr-00; Sun, 03 Nov 2002 10:33:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 188LrT-0006yC-00 for emacs-devel@gnu.org; Sun, 03 Nov 2002 09:36:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 188LrQ-0006wL-00 for emacs-devel@gnu.org; Sun, 03 Nov 2002 09:36:22 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10) id 188Lm4-0004BU-00 for emacs-devel@gnu.org; Sun, 03 Nov 2002 09:30:48 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 188Lkf-00066B-00 for ; Sun, 03 Nov 2002 15:29:21 +0100 Original-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 188Lke-000662-00 for ; Sun, 03 Nov 2002 15:29:20 +0100 Original-Path: not-for-mail Original-Lines: 21 Original-NNTP-Posting-Host: p50877983.dip.t-dialin.net Original-X-Trace: main.gmane.org 1036333760 22088 80.135.121.131 (3 Nov 2002 14:29:20 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Sun, 3 Nov 2002 14:29:20 +0000 (UTC) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:qwUfbhNjjWCVe4vezmuG5RG/3wY= Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9090 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9090 JD Smith writes: > You can use this variable, if I understand it correctly, to find the > prefix arg of the initial function called interactively in a stack of > function calls. My indent-line-function looks for a prefix, and if it > finds it, calls code which calls itself again (non-interactively). If > you test for current-prefix-arg, the purposefully non-interactive > invocations are confused, and an infinite loop ensues. I suppose I > could set current-prefix-arg to nil on the first run-through. Yes, something like (if current-prefix-arg (let ((current-prefix-arg nil)) ...call.myself...)) seems promising. kai -- ~/.signature is: umop ap!sdn (Frank Nobis)