[Top][All Lists]

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

Re: [Emacs-diffs] scratch/so-long d216f81: fixup! Add so-long library

From: Stefan Monnier
Subject: Re: [Emacs-diffs] scratch/so-long d216f81: fixup! Add so-long library
Date: Mon, 15 Apr 2019 07:55:21 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> or just don't define turn-on-so-long-minor-mode at all, which is what
>> I recommend.
>> I also recommend not to bother defining the turn-off function and let
>> users call (so-long-minor-mode -1) for the few cases where they might
>> need it.
> The actual reason for defining these functions is for the associated
> so-long-action-alist entry:
>     (so-long-minor-mode
>      "Enable so-long-minor-mode"
>      turn-on-so-long-minor-mode
>      turn-off-so-long-minor-mode)

BTW: How 'bout making this alist accept elements of the form
(<minor-mode> "description")?

Being a minor mode means you know how to gets its current status, how to
turn it on and how to turn it off, so you can standardize the treatment
you did for longlines-mode.


reply via email to

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