Re: [Orgmode] Bug: table parsing is on in BEGIN_EXAMPLE section

2008-06-29 Thread Carsten Dominik


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


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: table parsing is on in BEGIN_EXAMPLE section

2008-06-26 Thread Wanrong Lin

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


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode