From: Jim Porter <jporterbugs@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, Michal Nazarewicz <mina86@mina86.com>
Cc: emacs-devel@gnu.org
Subject: Re: [RFC] Add :invisible face attribute
Date: Sat, 21 Dec 2024 09:46:40 -0800 [thread overview]
Message-ID: <81970ad8-d2a4-eca6-d8cd-4092fbbac90d@gmail.com> (raw)
In-Reply-To: <867c7xlyqp.fsf@gnu.org>
On 12/18/2024 8:52 AM, Eli Zaretskii wrote:
>> From: Michal Nazarewicz <mina86@mina86.com>
>> Date: Wed, 18 Dec 2024 17:08:12 +0100
>>
>> Introduce :invisible face attribute which makes foreground to be the
>> same as background rendering the text invisible; or when :invert-video
>> is also in effect, background is the same as foreground.
[snip]
>
> A new face attribute adds quite a bit of complexity, so we should
> really believe this is a good idea. Given that this can already be
> achieved without a new attribute, I'm not sure. Is this really a
> frequent need/situation?
>
> But let's see what others think about this.
I'm just brainstorming here, but could Org use a display spec with
specified spaces[1] to make Emacs render a space of the appropriate
width? That requires a bit of computation, but it's how
'visual-wrap-prefix-mode' and SHR handle (roughly) similar sorts of things.
If it's too difficult to get the existing specified spaces to work
properly here, maybe we could enhance them? For example, perhaps you
could have a display spec like this:
'(space :width "**")
Which would mean "make a space as wide as the string '**'". That might
even allow simplifying some of the code in 'visual-wrap-prefix-mode'
(specifically, the parts that compute the width of the prefix; see
'visual-wrap--content-prefix').
Still, if the existing specified space code is enough, it's probably
best not to add even more complexity to it.
[1]
https://www.gnu.org/software/emacs/manual/html_node/elisp/Specified-Space.html
next prev parent reply other threads:[~2024-12-21 17:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 16:08 [RFC] Add :invisible face attribute Michal Nazarewicz
2024-12-18 16:52 ` Eli Zaretskii
2024-12-18 18:05 ` Michal Nazarewicz
2024-12-21 17:46 ` Jim Porter [this message]
2024-12-21 18:28 ` Ihor Radchenko
2024-12-21 18:52 ` Jim Porter
2024-12-21 4:51 ` Richard Stallman
2024-12-21 16:09 ` Michal Nazarewicz
2024-12-21 18:05 ` Kévin Le Gouguec
2024-12-21 18:30 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81970ad8-d2a4-eca6-d8cd-4092fbbac90d@gmail.com \
--to=jporterbugs@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mina86@mina86.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.