emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] #+constants line has to be at column 0
@ 2014-03-11 11:17 Eric S Fraga
  2014-03-12 18:04 ` Bastien
  0 siblings, 1 reply; 9+ messages in thread
From: Eric S Fraga @ 2014-03-11 11:17 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

Hello,

Unlike some other #+ directives, the #+constants: one has to be at
column 0 or else it is not understood/parsed by org.  This has
consequences for lists.  See attached example.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: examplebug.org --]
[-- Type: text/x-org, Size: 454 bytes --]

#+TITLE:     examplebug.org
#+AUTHOR:    Eric S Fraga

* Table constants
Assume that I have a list:
1. and in this list, one of the entries is a table
2. This is the table
#+constants: param=-5

   |   | X |  Y |
   | ! | x |  y |
   |---+---+----|
   | # | 1 | -4 |
   | # | 2 | -3 |
   | # | 3 | -2 |
   #+TBLFM: $3=$x+$param

1. The constants line cannot be indented as it is not understood if it is.
2. This means that the list has been interrupted.

[-- Attachment #3: Type: text/plain, Size: 322 bytes --]


Obviously, I can move the constants line elsewhere and/or use the $
directive within the table but I thought that this was an inconsistency
in the parsing of org files?  Maybe not?

Org up to date and verified with emacs -Q.

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-687-g9d39aa

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-13 15:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-11 11:17 [bug] #+constants line has to be at column 0 Eric S Fraga
2014-03-12 18:04 ` Bastien
2014-03-12 18:18   ` Nicolas Goaziou
2014-03-12 18:21     ` Bastien
2014-03-12 20:31       ` Nicolas Goaziou
2014-03-13  7:40         ` Bastien
2014-03-13  8:11     ` Eric S Fraga
2014-03-13 11:22       ` Bastien
2014-03-13 15:54         ` Eric S Fraga

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).