GNU bug report logs -
#57459
Customisation before enabling display-fill-column-indicator-mode
Previous Next
Reported by: wilnerthomas <at> tutanota.com
Date: Sun, 28 Aug 2022 13:14:02 UTC
Severity: normal
Tags: notabug
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57459 in the body.
You can then email your comments to 57459 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57459
; Package
emacs
.
(Sun, 28 Aug 2022 13:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
wilnerthomas <at> tutanota.com
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 28 Aug 2022 13:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Seems that face attributes can be set for fill-column-indicator before calling
display-fill-column-indicator-mode. But not for display-fill-column-indicator-character.
It would help if the customisation behaviour is made consistent such that one can
customise the fill-column-indicator properties before enabling the mode. With
the customisation remaining effective when the mode is disabled.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57459
; Package
emacs
.
(Sun, 28 Aug 2022 14:15:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 57459 <at> debbugs.gnu.org (full text, mbox):
> Date: Sun, 28 Aug 2022 15:13:27 +0200 (CEST)
> From: wilnerthomas--- via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
>
> Seems that face attributes can be set for fill-column-indicator before calling
> display-fill-column-indicator-mode. But not for display-fill-column-indicator-character.
Please show how you tried doing that, starting from "emacs -Q". There
are many possible ways of customizing face attributes, and we need to
know which one you found not functioning in this case.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57459
; Package
emacs
.
(Sun, 28 Aug 2022 14:40:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 57459 <at> debbugs.gnu.org (full text, mbox):
Aug 28, 2022, 14:14 by eliz <at> gnu.org:
>> Date: Sun, 28 Aug 2022 15:13:27 +0200 (CEST)
>> From: wilnerthomas--- via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>>
>>
>> Seems that face attributes can be set for fill-column-indicator before calling
>> display-fill-column-indicator-mode. But not for display-fill-column-indicator-character.
>>
>
> Please show how you tried doing that, starting from "emacs -Q". There
> are many possible ways of customizing face attributes, and we need to
> know which one you found not functioning in this case.
>
I made the following function
(defun indicator-attributes ()
(setq display-fill-column-indicator-character ?\u2503)
(set-face-attribute 'fill-column-indicator nil :background "green" :height 1.0))
I have another function to enable global-display-fill-column-indicator-mode
(defun colum-indicator ()
(interactive) (global-display-fill-column-indicator-mode))
If I call (indicator-attributes) in my init file, then do "M-x colum-indicator" in a buffer, I get the old character.
But if I change colum-indicator to include (indicator-attributes) after setting the global mode, I get
the correct wider character if I do "M-x colum-indicator" in a buffer.
(defun colum-indicator ()
(interactive) (global-display-fill-column-indicator-mode) (indicator-attributes))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57459
; Package
emacs
.
(Sun, 28 Aug 2022 15:02:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 57459 <at> debbugs.gnu.org (full text, mbox):
> Date: Sun, 28 Aug 2022 16:38:55 +0200 (CEST)
> From: wilnerthomas <at> tutanota.com
> Cc: 57459 <at> debbugs.gnu.org
>
> Aug 28, 2022, 14:14 by eliz <at> gnu.org:
>
> > Please show how you tried doing that, starting from "emacs -Q". There
> > are many possible ways of customizing face attributes, and we need to
> > know which one you found not functioning in this case.
> >
> I made the following function
>
> (defun indicator-attributes ()
>
> (setq display-fill-column-indicator-character ?\u2503)
>
> (set-face-attribute 'fill-column-indicator nil :background "green" :height 1.0))
>
> I have another function to enable global-display-fill-column-indicator-mode
>
> (defun colum-indicator ()
> (interactive) (global-display-fill-column-indicator-mode))
>
> If I call (indicator-attributes) in my init file, then do "M-x colum-indicator" in a buffer, I get the old character.
>
> But if I change colum-indicator to include (indicator-attributes) after setting the global mode, I get
> the correct wider character if I do "M-x colum-indicator" in a buffer.
>
> (defun colum-indicator ()
>
> (interactive) (global-display-fill-column-indicator-mode) (indicator-attributes))
It's the same issue as with fill-column:
display-fill-column-indicator-character is a variable that
automatically becomes buffer-local when set (see its doc string). So
your setq is in effect only for a single buffer: the one in which
Emacs loads and evaluates the init file.
You should use setq-default instead.
This is not a bug.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57459
; Package
emacs
.
(Sun, 28 Aug 2022 15:08:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 57459 <at> debbugs.gnu.org (full text, mbox):
Aug 28, 2022, 15:02 by eliz <at> gnu.org:
>> Date: Sun, 28 Aug 2022 16:38:55 +0200 (CEST)
>> From: wilnerthomas <at> tutanota.com
>> Cc: 57459 <at> debbugs.gnu.org
>>
>> Aug 28, 2022, 14:14 by eliz <at> gnu.org:
>>
>> > Please show how you tried doing that, starting from "emacs -Q". There
>> > are many possible ways of customizing face attributes, and we need to
>> > know which one you found not functioning in this case.
>> >
>> I made the following function
>>
>> (defun indicator-attributes ()
>>
>> (setq display-fill-column-indicator-character ?\u2503)
>>
>> (set-face-attribute 'fill-column-indicator nil :background "green" :height 1.0))
>>
>> I have another function to enable global-display-fill-column-indicator-mode
>>
>> (defun colum-indicator ()
>> (interactive) (global-display-fill-column-indicator-mode))
>>
>> If I call (indicator-attributes) in my init file, then do "M-x colum-indicator" in a buffer, I get the old character.
>>
>> But if I change colum-indicator to include (indicator-attributes) after setting the global mode, I get
>> the correct wider character if I do "M-x colum-indicator" in a buffer.
>>
>> (defun colum-indicator ()
>>
>> (interactive) (global-display-fill-column-indicator-mode) (indicator-attributes))
>>
>
> It's the same issue as with fill-column:
> display-fill-column-indicator-character is a variable that
> automatically becomes buffer-local when set (see its doc string). So
> your setq is in effect only for a single buffer: the one in which
> Emacs loads and evaluates the init file.
>
> You should use setq-default instead.
>
> This is not a bug.
>
Thusly I have the same problem because for setq-default, the new value is seen in buffers that do not have their own values for the variable.
But I want to change the value even if buffer has its own value.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57459
; Package
emacs
.
(Mon, 29 Aug 2022 15:25:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 57459 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> This is not a bug.
So I'm closing this bug report.
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 29 Aug 2022 15:25:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
57459 <at> debbugs.gnu.org and wilnerthomas <at> tutanota.com
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 29 Aug 2022 15:25:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 27 Sep 2022 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 212 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.