unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55881: Request: Use of face for whitespace-style
@ 2022-06-10  4:12 goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-06-10  9:51 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-10  4:12 UTC (permalink / raw)
  To: 55881

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1152 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#55881: Request: Use of face for whitespace-style
  2022-06-10  4:12 bug#55881: Request: Use of face for whitespace-style goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-10  9:51 ` Lars Ingebrigtsen
  2022-06-10 18:16   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-10  9:51 UTC (permalink / raw)
  To: goncholden; +Cc: 55881

goncholden <goncholden@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#55881: Request: Use of face for whitespace-style
  2022-06-10  9:51 ` Lars Ingebrigtsen
@ 2022-06-10 18:16   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 3+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-10 18:16 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 55881


------- Original Message -------
On Friday, June 10th, 2022 at 9:51 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:


> goncholden goncholden@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
>





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-10 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10  4:12 bug#55881: Request: Use of face for whitespace-style goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-10  9:51 ` Lars Ingebrigtsen
2022-06-10 18:16   ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).