From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug: table parsing is on in BEGIN_EXAMPLE section Date: Sun, 29 Jun 2008 16:49:32 +0200 Message-ID: References: <4863B141.9080509@gmail.com> Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KD2Jo-0003BH-QT for emacs-orgmode@gnu.org; Sun, 29 Jun 2008 15:12:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KD2Jo-0003B5-41 for emacs-orgmode@gnu.org; Sun, 29 Jun 2008 15:12:12 -0400 Received: from [199.232.76.173] (port=45896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KD2Jn-0003B2-VJ for emacs-orgmode@gnu.org; Sun, 29 Jun 2008 15:12:12 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:16287) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KD2Jn-00005s-Ro for emacs-orgmode@gnu.org; Sun, 29 Jun 2008 15:12:12 -0400 In-Reply-To: <4863B141.9080509@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Wanrong Lin Cc: emacs-orgmode@gnu.org 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