emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] "_ID" in "CUSTOM_ID" being fontified as `org-latex-and-related'
@ 2014-02-05 13:04 Sebastien Vauban
  2014-02-05 13:10 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastien Vauban @ 2014-02-05 13:04 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

As you can see on http://screencast.com/t/58dgm0sE1LgX, the "_ID" part
of the string "CUSTOM_ID" is not fontified correctly: it should be
`org-special-keyword' everywhere.

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: [bug] "_ID" in "CUSTOM_ID" being fontified as `org-latex-and-related'
  2014-02-05 13:04 [bug] "_ID" in "CUSTOM_ID" being fontified as `org-latex-and-related' Sebastien Vauban
@ 2014-02-05 13:10 ` Bastien
  2014-02-05 13:20   ` Sebastien Vauban
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2014-02-05 13:10 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



Hi Sébastien,

"Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:

> As you can see on http://screencast.com/t/58dgm0sE1LgX, the "_ID" part
> of the string "CUSTOM_ID" is not fontified correctly: it should be
> `org-special-keyword' everywhere.

I can't reproduce this.

What version of Org?

Reproducible recipe?

Thanks!

-- 
 Bastien

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

* Re: [bug] "_ID" in "CUSTOM_ID" being fontified as `org-latex-and-related'
  2014-02-05 13:10 ` Bastien
@ 2014-02-05 13:20   ` Sebastien Vauban
  2014-02-05 13:36     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastien Vauban @ 2014-02-05 13:20 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Bastien wrote:
> "Sebastien Vauban" writes:
>
>> As you can see on http://screencast.com/t/58dgm0sE1LgX, the "_ID" part
>> of the string "CUSTOM_ID" is not fontified correctly: it should be
>> `org-special-keyword' everywhere.
>
> I can't reproduce this.
>
> What version of Org?

Latest of the day!

> Reproducible recipe?

Org file:

--8<---------------cut here---------------start------------->8---
* Test
  :PROPERTIES:
  :CUSTOM_ID: test
  :END:

This is the 1^st time.
--8<---------------cut here---------------end--------------->8---

Emacs configuration file:

--8<---------------cut here---------------start------------->8---
(load-theme 'leuven t)

;; highlight LaTeX and related syntax
(setq org-highlight-latex-and-related '(latex script entities))

(require 'org)
--8<---------------cut here---------------end--------------->8---

Se http://screencast.com/t/AT6TE0hE0dJ6.

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: [bug] "_ID" in "CUSTOM_ID" being fontified as `org-latex-and-related'
  2014-02-05 13:20   ` Sebastien Vauban
@ 2014-02-05 13:36     ` Bastien
  2014-02-05 13:58       ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2014-02-05 13:36 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



"Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:

> ;; highlight LaTeX and related syntax
> (setq org-highlight-latex-and-related '(latex script entities))

Thanks.

I see the bug (I'd say it's a minor annoyance, though).

I don't know if Nicolas will have time to dive into this and
fix `org-match-substring-regexp' (if that's the thing to do.)
I'd rather not fiddle with this part of the code myself.

-- 
 Bastien

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

* Re: [bug] "_ID" in "CUSTOM_ID" being fontified as `org-latex-and-related'
  2014-02-05 13:36     ` Bastien
@ 2014-02-05 13:58       ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2014-02-05 13:58 UTC (permalink / raw)
  To: Bastien; +Cc: public-emacs-orgmode-mXXj517/zsQ, Sebastien Vauban



Hello,

Bastien <bzg@gnu.org> writes:

> I don't know if Nicolas will have time to dive into this and
> fix `org-match-substring-regexp' (if that's the thing to do.)
> I'd rather not fiddle with this part of the code myself.

The only right way to fix is to use the parser for fontification. This
is on my TODO list, but I first need to improve parser cache (hopefully
before 8.3).

IMO, we can live with this (and some others) fontification artifact
until then.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2014-02-05 13:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 13:04 [bug] "_ID" in "CUSTOM_ID" being fontified as `org-latex-and-related' Sebastien Vauban
2014-02-05 13:10 ` Bastien
2014-02-05 13:20   ` Sebastien Vauban
2014-02-05 13:36     ` Bastien
2014-02-05 13:58       ` Nicolas Goaziou

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).