From: Ihor Radchenko <yantar92@posteo.net>
To: David Zelinsky <dzpost@dedekind.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: emphasis in embedded text
Date: Fri, 25 Nov 2022 14:38:57 +0000 [thread overview]
Message-ID: <87a64f9jzy.fsf@localhost> (raw)
In-Reply-To: <86y1rzelfk.fsf@rubiaceae.dedekind.net>
David Zelinsky <dzpost@dedekind.net> writes:
> I wanted to have some text emphasized when immediately following a
> comma. I found in the manual the suggestion to use a zero-width space
> character. That works, except that it turns out that by default emacs
> actually displays the zero-width space as 1-pixel wide. That's not
> noticeable in a paragraph. But in an org-mode table, it causes cell
> boundaries to be slightly misaligned. And with more than one of these
> in a row, it becomes more than slightly. That is very annoying.
I can see this being very annoying. Another argument to implement proper
pixel-precise table alignment.
Meanwhile, I recommend https://github.com/casouri/valign
> Before I found this, I also stumbled on suggestions (apparently
> predating adoption of the zero-width space paradigm) to customize
> `org-emphasis-regexp-components'. That actually works very nicely for
> my purpose, so I'll probably stick with that.
Please, don't use it. It is internal variable and changing it will
break things.
> But the point of this post is to suggest that the org-mode manual ought
> to document these things more fully. The section (12.2 Emphasis and
> Monospace) that mentions the zero-width space approach ought to also
> mention that by default in emacs these are not actually zero width.
> Something like the description in the linked post would be great.
It should not matter ideally. Zero-width space is part of syntax and the
way Emacs displays it usually does not matter. As I said, issues with
non-fixed width symbols in tables should be fixed separately.
> I don't know if this list is the right place to make such a suggestion.
> Should I submit a bug report with some suggested modifications to the
> manual? Or is this all documented somewhere already and I just didn't
> find it?
This list is the right place for discussions, patches, and bug reports.
> ***NOTE***: I gather there's some controversy about the zero-width space
> approach, especially in regard to exports. I very much don't want to
> trigger that debate! I'm merely suggesting the manual say a bit more
> about how things currently work, so others won't spend as much time as I
> did figuring it out :)
+1
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2022-11-25 14:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-25 3:56 emphasis in embedded text David Zelinsky
2022-11-25 14:38 ` Ihor Radchenko [this message]
2022-11-25 15:27 ` Max Nikulin
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=87a64f9jzy.fsf@localhost \
--to=yantar92@posteo.net \
--cc=dzpost@dedekind.net \
--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).