From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: org-src-fontify-natively makes things very, very slow Date: Sat, 19 Mar 2011 20:34:58 +0000 Message-ID: <87oc56q26l.fsf@ucl.ac.uk> References: <87ipvhiou8.fsf@ucl.ac.uk> <804o71triy.fsf@somewhere.org> <87bp18su1a.fsf@ucl.ac.uk> <80fwqjqxfj.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34996 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q12rg-0001Va-2b for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 16:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q12re-0007fr-Rj for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 16:35:11 -0400 Received: from vscane-a2.ucl.ac.uk ([144.82.108.42]:64706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q12re-0007fX-No for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 16:35:10 -0400 In-Reply-To: <80fwqjqxfj.fsf@somewhere.org> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Sat, 19 Mar 2011 10:20:00 +0100") 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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban writes: > Hi Eric, > > Eric S Fraga wrote: [...] >> where there is no matching #+end_src or, more precisely, the next #+end_= src >> line is one that does not belong to this current source block. Your sear= ch >> (in org.el) for the end of the block assumes that it does have the end >> statement in place already. I'm not sure how to fix this because it's an >> ill-defined situation. > > You say "your search..." but I only added the overlay-put command... and I > must admit this whole block is difficult to follow (so many cases). Yes but the overlay needs to know where to end; I am using search in a more general sense here in that you are defining the start and end of a region to overlay using regular expressions, are you not? [...] >> My solution, by the way, is to insert the #+end_src line immediately upon >> writing a #+begin_src line and then back up a line to start writing the >> code. > > "My" solution is even simpler: just use a yasnippet template, that prompt= s you > for the language and puts the begin/end upfront: yes, I used to use yasnippet a lot but I don't any longer. I am actually in confusion as to which completion mechanism to use in Emacs these days and am going a little crazy... :( I'm currently playing with auto-complete. Thanks, eric --=20 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.83.g1bd87.dirty)