* Confusing interaction when typing leading * for headings when org-hide-emphasis-markers is on
@ 2017-11-25 17:36 Stig Brautaset
2017-11-25 20:29 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Stig Brautaset @ 2017-11-25 17:36 UTC (permalink / raw)
To: Org-Mode
Hello,
I've got =(setq org-hide-emphasis-markers t)= in my config, and
it's mostly great but it does confuse me when I manually start
sub-sub headings. (Which perhaps is a silly thing to do, but
getting over muscle memory is hard to change.) After typing the
third =*= (and on any subsequent ones typed) the first and last
asterisks are hidden and the remaining appear bolded, until I type
a space when what I'm typing is suddenly recognised as a heading
and snaps back to displaying all the typed asterisks as expected.
I couldn't figure out how to post a video, so visually, here is
what I see. One character typed on each line (comments after =;=):
: *
: **
: * ; this is in bold
: ** ; this is in bold
: **** ; asterisks no longer bold after typing a space
I tried adding an asterisks to the BORDER characters in
org-emphasis-regexp-components, but that didn't seem to help.
PS: I realise that ironing out all visual niggles here is perhaps
not possible, and perhaps me just learning to use the Org
functions for inserting headings would hide the problem from me,
but I decided to report it in case it turns out to be simple to
find an acceptable fix for someone.
Stig
--
; GNU Emacs 27.0.50, Org mode version 9.1.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Confusing interaction when typing leading * for headings when org-hide-emphasis-markers is on
2017-11-25 17:36 Confusing interaction when typing leading * for headings when org-hide-emphasis-markers is on Stig Brautaset
@ 2017-11-25 20:29 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-11-25 20:29 UTC (permalink / raw)
To: Stig Brautaset; +Cc: Org-Mode
Hello,
Stig Brautaset <stig@brautaset.org> writes:
> I've got =(setq org-hide-emphasis-markers t)= in my config, and it's
> mostly great but it does confuse me when I manually start sub-sub
> headings. (Which perhaps is a silly thing to do, but getting over
> muscle memory is hard to change.) After typing the third =*= (and on
> any subsequent ones typed) the first and last asterisks are hidden and
> the remaining appear bolded, until I type a space when what I'm typing
> is suddenly recognised as a heading and snaps back to displaying all
> the typed asterisks as expected.
>
> I couldn't figure out how to post a video, so visually, here is what
> I see. One character typed on each line (comments after =;=):
>
> : *
> : **
> : * ; this is in bold
> : ** ; this is in bold
> : **** ; asterisks no longer bold after typing a space
>
> I tried adding an asterisks to the BORDER characters in
> org-emphasis-regexp-components, but that didn't seem to help.
It is something to be expected with a non-nil
`org-hide-emphasis-markers'. "***" at the beginning of the line is
really a bold asterisk, whereas "*** " is a headline.
I suggest to use M-RET to circumvent the problem. You will quickly get
used to it.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-25 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-25 17:36 Confusing interaction when typing leading * for headings when org-hide-emphasis-markers is on Stig Brautaset
2017-11-25 20:29 ` 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).