emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 262a7c9ea0: New minor mode elide-head-mode


From: Stefan Monnier
Subject: Re: master 262a7c9ea0: New minor mode elide-head-mode
Date: Mon, 10 Jan 2022 12:36:09 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Po Lu [2022-01-10 20:35:28] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> `elide-head-mode` already works both to enable and to disable the minor
>> mode interactively.  For use on hooks, `elide-head-mode` already works
>> to enable the mode.  For the rare case where the users need to disable
>> the mode from a hook, they should use (lambda () (elide-head-mode -1)).
>
> Adding an anonymous function to a hook hurts,

Fully agreed.

> and IME `elide-head' is (or at least used to be) something commonly
> placed in site initialization files.

`elide-head-mode` gives the same result as `elide-head` when placed on
a hook.  The need for an anonymous function is only when you need to
disable `elide-head-mode` from the hook, which is very unusual.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]