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


Message #11 received at 76494 <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 76494 <at> debbugs.gnu.org
Subject: Re: bug#76494: [PATCH] Highlight fill-column-indicator when current
 line is longer than `fill-column'
Date: Sun, 23 Feb 2025 01:11:43 -0600
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

> I see your change adds a post-command-hook, but when and how is that
> hook removed?

The hook is removed when display-fill-column-indicator-mode is turn-off,
i forgot to remove the hook in the submitted patch, I've fixed it.

>> I also wanted to do the same for indicator character but I couldn't find
>> a way to implement it.
>
> What do you mean by "indicator character"?

i meant `display-fill-column-indicator-character', I wanted to
allow changing its character to a custom one.

example: use this `┃' character (or one chosen by the user)
instead default `│' when changing the fill-column-indicator face.

>> +(defcustom display-fill-column-indicator-warning nil
>> +  "Highlight fill-column-indicator when cursor is above `fill-column'.
>> +Non-nil means highlight fill-column-indicator when cursor is
>> +above `fill-column'."
>> +  :type 'boolean)
>
> This lacks a :version tag.
>
> Also, what do you mean by "cursor is above `fill-column'"?  The
> "above" part confuses me.

I updated the patch to clarify this part.

[0001-Highlight-fill-column-indicator-when-current-line-is.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]

-- 
                                                   - 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.