emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-edit-src-code font lock problem
@ 2009-04-29 19:23 Dan Davison
  2009-05-05 12:46 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Davison @ 2009-04-29 19:23 UTC (permalink / raw)
  To: emacs org-mode mailing list

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.

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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-05 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-29 19:23 org-edit-src-code font lock problem Dan Davison
2009-05-05 12:46 ` Carsten Dominik
2009-05-05 14:17   ` Dan Davison
2009-05-05 16:15     ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).