GNU bug report logs - #76494
[PATCH] Highlight fill-column-indicator when current line is longer than `fill-column'

Previous Next

Package: emacs;

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

Date: Sun, 23 Feb 2025 04:22:02 UTC

Severity: wishlist

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

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: 76494 <at> debbugs.gnu.org
Subject: bug#76494: [PATCH] Highlight fill-column-indicator when current line is longer than `fill-column'
Date: Mon, 24 Feb 2025 21:32:29 -0600
Eli Zaretskii <eliz <at> gnu.org> writes:

> There might be some misunderstanding: using setq-local makes the
> character local to a buffer, whereas I thought you wanted to use a
> special character only for the lines that exceed the fill-column?

Even if I wanted to, that wouldn't be possible because of the way
display-fill-column-indicator is designed.

> When I use your code, then whenever I'm on a line that is too long,
> _all_ the fill-column indicators in the window change into the U+2503
> character shown in red, not just the indicator of that single line.

Yeah, that's correct, affects the entire indicator.


something like this:

                                           │
                                           │
                                           │
(print "..|........................")      │
          ^ (cursor)                       │
(print "---")                              │
                                           │
                                 indicator ^

                                           ┃
                                           ┃
                                           ┃
(print "...............|........................")
                       ^ (cursor)          ┃
(print "---")                              ┃
                                           ┃
                                 indicator ^

                                           │
                                           │
                                           │
(print ".......................................")
                                           │
(print "---")|                             │
             ^ (cursor)                    │
                                 indicator ^

-- 
                                                   - E.G via GNU Emacs.




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.