GNU bug report logs - #77544
(WIP) [PATCH] Prettify page separators.

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Sat, 5 Apr 2025 05:02:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: gerd.moellmann <at> gmail.com, 77544 <at> debbugs.gnu.org, Visuwesh <visuweshm <at> gmail.com>
Subject: bug#77544: (WIP) [PATCH] Prettify page separators.
Date: Fri, 08 Aug 2025 23:09:03 -0600
[Message part 1 (text/plain, inline)]
Sorry for the delay, i tried to make the strike-through face property
support the same line styles as the underline, but i couldn't figure out
how, as it seems that strike-through is designed to support only 1
style.

My solution was to make a kind of hack to display the underline as
strike-through, and it worked.

Another solution was to reuse the code from display space type, for make
a new display property type (as suggested by Gerd), but I ended up
getting lost when I saw too many references to this in the source code,
so for now the hack was the only solution I could think of.

This should work well in both GUI and TUI frames.

In GUI, the line will be displayed as a double horizontal line (as
shown in the screenshot)

[Captura desde 2025-08-08 23-05-44.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
And in TUI, it will be displayed as a normal underline (or
strike-through if underline is not supported).

Optionally, I've added a new minor mode to enable this outside
whitespace-mode (an example of use in this would be in the NEWS file or
in *Compile-Log* buffers).

[0001-whitespace-mode-Prettify-page-delimiters-characters..patch (text/x-patch, attachment)]
[Message part 5 (text/plain, inline)]
-- 
- E.G via Gnus and Org.

This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.