From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-edit-src-code font lock problem Date: Tue, 5 May 2009 14:46:09 +0200 Message-ID: References: <87bpqf5knn.fsf@stats.ox.ac.uk> Mime-Version: 1.0 (Apple Message framework v930.3) 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 1M1K2P-0002tg-KD for emacs-orgmode@gnu.org; Tue, 05 May 2009 08:46:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1K2J-0002ss-Dy for emacs-orgmode@gnu.org; Tue, 05 May 2009 08:46:20 -0400 Received: from [199.232.76.173] (port=52384 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1K2H-0002sk-Lb for emacs-orgmode@gnu.org; Tue, 05 May 2009 08:46:14 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:41940) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1K2G-00030U-Sh for emacs-orgmode@gnu.org; Tue, 05 May 2009 08:46:13 -0400 Received: by ewy6 with SMTP id 6so5061626ewy.42 for ; Tue, 05 May 2009 05:46:12 -0700 (PDT) In-Reply-To: <87bpqf5knn.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs org-mode mailing list Hi Dan, On Apr 29, 2009, at 9:23 PM, Dan Davison wrote: > I'm finding that the font-lock in the indirect buffer spawned by C-c ' > on a source code block is not correct when there is a preceding (odd > number of) apostrophes / backticks etc (depending on the language). > E.g. > > * this works fine as there is no apostrophe > #+begin_src sh > for i in $(seq -w 1 22) ; do > echo $i > done > #+end_src > > * but this doesn't work correctly because of the single-quote / > apostrophe > #+begin_src sh > for i in $(seq -w 1 22) ; do > echo $i > done > #+end_src > > The second example thinks it's in a single-quote-delimited string. Hmmm, this is a serious problem................. time passing ...... OK, I have addressed it by using not a narrowed indirect buffer to edit these snippets, but a truly separate buffer. Thanks for the report. > > org-version 6.26trans > emacs-version 23.0.91.1 > > Dan > > p.s. A minor wish-list item: would it be possible to introduce a > variable (say org-expert or something like that) which, when non-nil, > prevents the appearance of instructive messages such as the one that > appears on org-edit-src-code? Which one do you mean? The message in the echo area (last line of the frame), or the one appearing permanently in the first line of the buffer window? And which other cases of messages did you have in mind? I am not sure if I understand how these are bothering you. - 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