[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44232: global-display-fill-column-indicator-mode vs. readonly buffer
From: |
Lars Ingebrigtsen |
Subject: |
bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers |
Date: |
Mon, 26 Oct 2020 18:31:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
>> That's basically the same as highlight-changes-global-modes, but with
>> the added
>>
>> ;; ...the buffer is not internal (name starts with a space)
>> (not (eq (aref (buffer-name) 0) ?\ ))
>> ;; ...the buffer is not special (name starts with *)
>> (or (not (eq (aref (buffer-name) 0) ?*))
>>
>> So that's kinda kludgy.
>
> It's not quite the same thing, because whitespace-enable-predicate only
> takes on function values, and is explicitly intended to be customised
> with the existing DSL of add-function, rather than a new ad-hoc DSL.
I'm not quite sure I follow. The bit before the thing I quoted was
pretty much the equivalent of highlight-changes-global-modes:
((listp whitespace-global-modes)
(if (eq (car-safe whitespace-global-modes) 'not)
(not (memq major-mode (cdr whitespace-global-modes)))
(memq major-mode whitespace-global-modes)))
> [Not that I'd argue for the superiority of whitespace-enable-predicate
> over other customisation approaches.]
So I'd say whitespace-enable-predicate has the same ad-hoc DSL built in,
but with an add-function DSL on top of it?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, 積丹尼 Dan Jacobson, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Lars Ingebrigtsen, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, 積丹尼 Dan Jacobson, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Lars Ingebrigtsen, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Eli Zaretskii, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Lars Ingebrigtsen, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Basil L. Contovounesios, 2020/10/26
- bug#44232: (no subject), Lars Ingebrigtsen, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Basil L. Contovounesios, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers,
Lars Ingebrigtsen <=
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Basil L. Contovounesios, 2020/10/26
- bug#44232: (no subject), Dmitry Gutov, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Eli Zaretskii, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Lars Ingebrigtsen, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Lars Ingebrigtsen, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Eli Zaretskii, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Lars Ingebrigtsen, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Lars Ingebrigtsen, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Eli Zaretskii, 2020/10/26
- bug#44232: global-display-fill-column-indicator-mode vs. readonly buffers, Lars Ingebrigtsen, 2020/10/26