GNU bug report logs - #55881
Request: Use of face for whitespace-style

Previous Next

Package: emacs;

Reported by: goncholden <goncholden <at> protonmail.com>

Date: Fri, 10 Jun 2022 04: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 55881 in the body.
You can then email your comments to 55881 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#55881; Package emacs. (Fri, 10 Jun 2022 04:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to goncholden <goncholden <at> protonmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 10 Jun 2022 04:14:02 GMT) Full text and rfc822 format available.

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

From: goncholden <goncholden <at> protonmail.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Request: Use of face for whitespace-style
Date: Fri, 10 Jun 2022 04:12:47 +0000
[Message part 1 (text/plain, inline)]
Because tab-mark, tabs, trailing, etc ... work via faces, could the requirement for faces declaration be removed from whitespace-style?

In summary, from

(setq whitespace-style '(face tab-mark tabs trailing))

to

(setq whitespace-style '(tab-mark tabs trailing))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55881; Package emacs. (Fri, 10 Jun 2022 09:52:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: goncholden <goncholden <at> protonmail.com>
Cc: 55881 <at> debbugs.gnu.org
Subject: Re: bug#55881: Request: Use of face for whitespace-style
Date: Fri, 10 Jun 2022 11:51:27 +0200
goncholden <goncholden <at> protonmail.com> writes:

> Because tab-mark, tabs, trailing, etc ... work via faces, could the requirement for
> faces declaration be removed from  whitespace-style?
>
> In summary, from 
>
> (setq whitespace-style '(face tab-mark tabs trailing))
>
> to
>
> (setq whitespace-style '(tab-mark tabs trailing))

No.  As the doc string says:

---
One reason to not use faces to visualize spaces (i.e., not
include `face' in `whitespace-style') is to use `whitespace-mode'
only for cleaning up a buffer.  See `whitespace-cleanup' and
`whitespace-cleanup-region'.
---

Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) notabug. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 10 Jun 2022 09:52:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 55881 <at> debbugs.gnu.org and goncholden <goncholden <at> protonmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 10 Jun 2022 09:52:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55881; Package emacs. (Fri, 10 Jun 2022 18:17:01 GMT) Full text and rfc822 format available.

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

From: goncholden <goncholden <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 55881 <at> debbugs.gnu.org
Subject: Re: bug#55881: Request: Use of face for whitespace-style
Date: Fri, 10 Jun 2022 18:16:11 +0000
------- Original Message -------
On Friday, June 10th, 2022 at 9:51 PM, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:


> goncholden goncholden <at> protonmail.com writes:
>
> > Because tab-mark, tabs, trailing, etc ... work via faces, could the requirement for
> > faces declaration be removed from whitespace-style?
> >
> > In summary, from
> >
> > (setq whitespace-style '(face tab-mark tabs trailing))
> >
> > to
> >
> > (setq whitespace-style '(tab-mark tabs trailing))
>
>
> No. As the doc string says:
>
> ---
> One reason to not use faces to visualize spaces (i.e., not
> include `face' in` whitespace-style') is to use `whitespace-mode' only for cleaning up a buffer. See` whitespace-cleanup' and
> `whitespace-cleanup-region'.
> ---

Could whitespace-cleanup and whitespace-cleanup-region decide by themselves what they have to do?

> Closing.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 09 Jul 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 36 days ago.

Previous Next


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