emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Parsing consecutive stars
@ 2012-10-05  1:13 William Léchelle
  2012-10-06 11:10 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: William Léchelle @ 2012-10-05  1:13 UTC (permalink / raw)
  To: emacs-orgmode

Hi list,

It looks like the stars parser has a problem with 2 consecutive stars, hence
with bold in 2nd level headers.

The following sums up all the relevant tests I performed. Only 3rd and 4th
lines seem to be related, in a strange fashion, even, but I couldn't find
anything else that would indicate lines not being independant.

* Test *it* !
* *Test thouroughly* !
** try deleting these : ** *** ** * ** *** **
** Is *this* bold ?
   Note that anytime it is, editing the line gets the failure back.
*** From here, it all *seems* to *works* *fine*.
*** Only ** *here* it *doesn't !*
*** *More* ** so *even*.
    I can try with text, it doesn't *change* ** *anything*.
*** Darn. ** Even if I add many words it *fails* !
**** Hope ! ** Even if I add many words it only *fails* *once* !
**** But ** *sadly* it ** can *fail* *many times* !
*** If I try with *** *more* stars, it's **** totally *fine*
    It ** actually *** *helps*, *even*
    You *do* ** need * *a few*.
    But ** ** *two* is *enough*

While constructing this, I was using (recent git version, and)
(setq org-emphasis-regexp-components
      '(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 2))
but reverting to default with
(setq org-emphasis-regexp-components 
      '(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 1))
showed no improvement regarding the weird behavior. (I do imagine things could
go a lot worse with hugher values, though ^_^)

(problem raised on http://stackoverflow.com/questions/12736868/cant-use-bold-face-on-2nd-level-outline-in-emacs-org-mode)

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

end of thread, other threads:[~2012-10-06 11:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05  1:13 [BUG] Parsing consecutive stars William Léchelle
2012-10-06 11:10 ` 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).