From: omar.antolin@gmail.com (Omar Antolín)
To: emacs-orgmode@gnu.org
Subject: The syntax class of ", /, =, ~
Date: Thu, 26 Jul 2018 15:28:35 -0500 [thread overview]
Message-ID: <86wothpwr0.fsf@gmail.com> (raw)
In a nutshell, I propose that ", /, = and ~ be assigned to the syntax class "paired delimiter", which is $. (This would allow electric-pair-mode to work with them.)
The definition of org-mode as a derived mode contains the following lines:
(modify-syntax-entry ?@ "w")
(modify-syntax-entry ?\" "\"")
(modify-syntax-entry ?\\ "_")
(modify-syntax-entry ?~ "_")
What is the rationale behind the choices for ~ and "? It feels to me like both should be assigned class "paired delimiters" (i.e., class $). I would also expect / and = to be paired delimiters, but maybe I'm missing some subtlety.
(I guess * is a paired delimter in a sense, too (because it is used for bold), but since it is used for headings it would probably be too confusing to modify its syntax class.)
--
Omar
next reply other threads:[~2018-07-26 20:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 20:28 Omar Antolín [this message]
2018-08-19 8:33 ` The syntax class of ", /, =, ~ 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=86wothpwr0.fsf@gmail.com \
--to=omar.antolin@gmail.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).