From mboxrd@z Thu Jan 1 00:00:00 1970 From: w t <1218121@gmail.com> Subject: Re: Infinite loop Date: Thu, 27 May 2010 22:38:30 -0700 Message-ID: References: <745265F2-BE27-4D42-A102-6605D878B517@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=50344 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHsHA-0003y6-KQ for emacs-orgmode@gnu.org; Fri, 28 May 2010 01:38:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from <1218121@gmail.com>) id 1OHsH9-0002Db-Lc for emacs-orgmode@gnu.org; Fri, 28 May 2010 01:38:32 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:52602) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from <1218121@gmail.com>) id 1OHsH9-0002DW-In for emacs-orgmode@gnu.org; Fri, 28 May 2010 01:38:31 -0400 Received: by gwb19 with SMTP id 19so816072gwb.0 for ; Thu, 27 May 2010 22:38:30 -0700 (PDT) In-Reply-To: <745265F2-BE27-4D42-A102-6605D878B517@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 5/12/10, Carsten Dominik wrote: > > On May 1, 2010, at 10:21 PM, w t wrote: > >> Org-mode 6.35trans from 2010-04-30 >> Emacs 23.1 >> Linux >> >> Typing >> >> |:=3D$0 >> >> causes an apparent infinite loop, which can be killed with C-g. > > Yes, this is true. But not really a problem, is it? $0 is supposed > to be used only > in a @N$0 context. > > - Carsten > Sorry for the delay in response. When I originally read in the manual "=910=92 refers to the current row and column," I incorrectly thought that $0 would give the column number, like $#. So in the context of my misunderstanding, it seemed important, but not so much now. I don't have enough experience to say if there is any problem. I can only talk about inconsistency of perhaps uninteresting examples. To that end, the manual says "Also, if you omit either the column or the row part of the reference, the current row/column is implied." I take this to mean that $0 and @0$0 should produce the same result, but @0$0 gives 0 if the current field is empty. Or from a different angle, depending on how we enter $0 as the formula of a empty field, we can get different results: Again "|:=3D$0 C-c C-c" give the infinite loop; but "C-u C-c =3D" followed by entering $0 at the buffer gives 0. We can also get inconsistent results with column formulas: entering | | #+TBLFM: $1=3D$0 followed by C-u C-c * gives | 0 | #+TBLFM: $1=3D$0 but entering the =3D$0 directly into the empty field give an infinite loop. Of course, there are other variations, but all this may be just nitpicking; I can't see any practical problems.