emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: table parsing is on in BEGIN_EXAMPLE section
@ 2008-06-26 15:09 Wanrong Lin
  2008-06-29 14:49 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Wanrong Lin @ 2008-06-26 15:09 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I just had a need to use the +BEGIN_EXAMPLE marker, and I found that if 
I have a directory tree listing like this:

+BEGIN_EXAMPLE
     +---bin
     |   +---decoder_a.exe
     |   +---decoder_b.exe
     |   +---encoder.exe
     +---doc
+END_EXAMPLE


It will be treated (and font-locked) as a table. Not really a a big deal 
unless I press the "Tab" key on it. Just want to report it in the hope 
that it is a snap for Carsten to fix it. :-)

Wanrong

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

* Re: Bug: table parsing is on in BEGIN_EXAMPLE section
  2008-06-26 15:09 Bug: table parsing is on in BEGIN_EXAMPLE section Wanrong Lin
@ 2008-06-29 14:49 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-06-29 14:49 UTC (permalink / raw)
  To: Wanrong Lin; +Cc: emacs-orgmode


On Jun 26, 2008, at 5:09 PM, Wanrong Lin wrote:

> Hi,
>
> I just had a need to use the +BEGIN_EXAMPLE marker, and I found that  
> if I have a directory tree listing like this:
>
> +BEGIN_EXAMPLE
>    +---bin
>    |   +---decoder_a.exe
>    |   +---decoder_b.exe
>    |   +---encoder.exe
>    +---doc
> +END_EXAMPLE
>
>
> It will be treated (and font-locked) as a table. Not really a a big  
> deal unless I press the "Tab" key on it. Just want to report it in  
> the hope that it is a snap for Carsten to fix it. :-)

No, this in not easy to fix.  The table commands are all context- 
sensitive, each command needs to test if the cursor is currently in a  
table - I do not want to mack this test more complicated that  
necessary.  Right now it only checks if the first character in a line  
is "|". Going back to search for BEGIN_EXAMPLE would significantly  
more elaborate and slow down table editing.

- Carsten

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

end of thread, other threads:[~2008-06-29 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-26 15:09 Bug: table parsing is on in BEGIN_EXAMPLE section Wanrong Lin
2008-06-29 14:49 ` Carsten Dominik

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