emacs-devel
[Top][All Lists]
Advanced

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

Re: [elpa] externals/setup 31dfc0f24e 2/5: Expand on how setting a "feat


From: Stefan Monnier
Subject: Re: [elpa] externals/setup 31dfc0f24e 2/5: Expand on how setting a "feature" sets hooks and maps.
Date: Wed, 20 Apr 2022 10:57:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Hi Philip,

> +- Declares a current mode by appending \"-mode\" to
> +  FEATURE, unless it already ends with \"-mode\"

BTW, this also means that the current mode *has* to end in `-mode`.

In many/most cases it's better to ask the user to write the `-mode`.
Those 5 extra letters may seem like clutter, but they simplify the
"model", so I think it's to the benefit of the end user.

Otherwise you end up with possible confusions like "does `perl` refer
to the name of the language or to the name of the mode?" whose answer
influences how you specify the setup of `cperl-mode` for example.


        Stefan




reply via email to

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