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: Visuwesh <visuweshm <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: gerd.moellmann <at> gmail.com, eg642616 <at> gmail.com, 77544 <at> debbugs.gnu.org
Subject: bug#77544: (WIP) [PATCH] Prettify page separators.
Date: Sun, 06 Apr 2025 16:07:06 +0530
[ஞாயிறு ஏப்ரல் 06, 2025] Eli Zaretskii wrote:

>> Do we need a new display property when we have the :strike-through face
>> attribute?  The following achieves the same effect, albeit the newline
>> is required for the :extend attribute to work properly AFAIU:
>> 
>>     (font-lock-add-keywords 
>>      nil
>>      '(("\f\n" (0 (prog1 nil
>>                     (put-text-property (match-beginning 0) (1- (match-end 0))
>>                                        'display " ")
>>                     (put-text-property (match-beginning 0) (match-end 0)
>>                                        'face '(:strike-through t :extend t)))))))
>>     (push 'display font-lock-extra-managed-props)
>
> Thanks, but what does this do on TTY frames?  We'd want to show
> dashes, I think.

I see no difference from the line in show in a GUI frame, and in xterm.
However, I don't see a line at all in the Linux tty thingy.  The font
used in xterm does not seem to matter either.

> Besides, we don't have any control on the thickness of the
> strike-through line, something that would be a natural extension here.
> And it sounds like a kludge to me, TBH.

More styling for the horizontal line, similar to what have for
:underline, would be nice to have too.  And I agree, it is a bit of
hack.




This bug report was last modified 75 days ago.

Previous Next


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