emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: w t <1218121@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Infinite loop
Date: Thu, 27 May 2010 22:38:30 -0700	[thread overview]
Message-ID: <AANLkTin0yeB74E3i2sVhU5f1pZmPsjqolZdoB_sx9b4n@mail.gmail.com> (raw)
In-Reply-To: <745265F2-BE27-4D42-A102-6605D878B517@gmail.com>

On 5/12/10, Carsten Dominik <carsten.dominik@gmail.com> 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
>>
>> |:=$0 <RET>
>>
>> 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 "‘0’ 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 "|:=$0 C-c C-c" give the infinite loop;
but "C-u C-c =" followed by entering $0 at the buffer gives 0.

We can also get inconsistent results with column formulas: entering

|    |
#+TBLFM: $1=$0

followed by C-u C-c * gives

|  0 |
#+TBLFM: $1=$0

but entering the =$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.

      reply	other threads:[~2010-05-28  5:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-01 20:21 Infinite loop w t
2010-05-13  5:23 ` Carsten Dominik
2010-05-28  5:38   ` w t [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTin0yeB74E3i2sVhU5f1pZmPsjqolZdoB_sx9b4n@mail.gmail.com \
    --to=1218121@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).