From: Chang Xiaoduan <drcxd@sina.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] Customizing org-emphasis-alist does not work as expected [9.6.15 (release_9.6.15 @ d:/emacs_home/program/emacs/share/emacs/29.2/lisp/org/)]
Date: Wed, 10 Apr 2024 15:52:13 +0800 [thread overview]
Message-ID: <m3il0pac42.fsf@sina.com> (raw)
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
Hello,
I am trying to customizing `org-emphasis-alist` so that ` can replace ~ as
the code marker. I use the following code in my configuration file:
``` emacs-lisp
(setq org-emphasis-alist
'(("*" bold)
("/" italic)
("_" underline)
("=" org-verbatim verbatim)
("`" org-code verbatim)
("+" (:strike-through t))))
```
After I restart Emacs, things does not work as I expected. Text
surrounded by ` is not rendered using the faces for code, and text
surrounded by ~ is rendered using a different face for code (different
from the faces before the customizing is applied). Also, I have set
`org-hide-emphasis-marker` to `t`, and ~ gets hidden but ` not.
This can be reproduced by launching Emacs using `emacs -Q`. Then
evaluate the code above in the *scratch* buffer. Then open an org-mode
buffer which contains text like "`code`" and "~code~". You can tell the
difference by launching Emacs using `emacs -Q` but does not evaluate the
above code.
Thank you
Emacs : GNU Emacs 29.2 (build 2, x86_64-w64-mingw32)
of 2024-02-02
Package: Org mode version 9.6.15 (release_9.6.15 @ d:/emacs_home/program/emacs/share/emacs/29.2/lisp/org/)
next reply other threads:[~2024-04-10 8:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-10 7:52 Chang Xiaoduan [this message]
2024-04-10 8:19 ` [BUG] Customizing org-emphasis-alist does not work as expected [9.6.15 (release_9.6.15 @ d:/emacs_home/program/emacs/share/emacs/29.2/lisp/org/)] Ihor Radchenko
2024-04-11 16:44 ` Max Nikulin
2024-04-11 17:43 ` Ihor Radchenko
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=m3il0pac42.fsf@sina.com \
--to=drcxd@sina.com \
--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).