emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-edit-src-code font lock problem


From: Carsten Dominik
Subject: Re: [Orgmode] org-edit-src-code font lock problem
Date: Tue, 5 May 2009 14:46:09 +0200

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]