From: David Maus <dmaus@ictsoc.de>
To: Bastien <bastien.guerry@wikimedia.fr>
Cc: emacs-orgmode@gnu.org, niels giesen <niels.giesen@gmail.com>
Subject: Re: $0 replaced with ampersand (&) when invoking `org-edit-special'
Date: Sun, 27 Feb 2011 18:11:29 +0100 [thread overview]
Message-ID: <87wrkle726.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <87aai2zyn6.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 984 bytes --]
At Fri, 11 Feb 2011 10:52:29 +0100,
Bastien wrote:
>
> Hi Niels,
>
> niels giesen <niels.giesen@gmail.com> writes:
>
> > According to [ (info "(org) Formula syntax for Calc") ], $0
> > references the current cell. Pressing C-c C-c on the #+TBLFM line
> > below does indeed work, but C-c ' (`org-edit-special') changes the
> > $0 reference into a single ampersand (&). Is this a bug?
>
> I can confirm this and I think it's a bug.
>
> Carsten, do you know what happens here?
`org-number-to-letters' does expect the number to be greater than
zero. If it is zero (like in the $0 case) it will return the empty
string.
This can be simply fixed by not calling `org-number-to-letters' if the
is a single zero. Or, what seems a cleaner solution, to make up a
representation of $0 in letter-notation.
Hope to have some more time to fix this one, if someone else steps in
I'm fine.
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2011-02-27 17:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-19 11:34 $0 replaced with ampersand (&) when invoking `org-edit-special' niels giesen
2011-01-09 13:36 ` David Maus
2011-01-30 16:32 ` David Maus
2011-01-31 11:44 ` Niels Giesen
2011-02-11 9:52 ` Bastien
2011-02-27 17:11 ` David Maus [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=87wrkle726.wl%dmaus@ictsoc.de \
--to=dmaus@ictsoc.de \
--cc=bastien.guerry@wikimedia.fr \
--cc=emacs-orgmode@gnu.org \
--cc=niels.giesen@gmail.com \
/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).