emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "William Léchelle" <william.lechelle@ens-lyon.fr>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [BUG] Parsing consecutive stars
Date: Thu, 04 Oct 2012 21:13:49 -0400	[thread overview]
Message-ID: <87vcepk9f6.wl%william.lechelle@ens-lyon.fr> (raw)

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)

             reply	other threads:[~2012-10-05  1:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-05  1:13 William Léchelle [this message]
2012-10-06 11:10 ` [BUG] Parsing consecutive stars Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vcepk9f6.wl%william.lechelle@ens-lyon.fr \
    --to=william.lechelle@ens-lyon.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).