help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: About the correspondence between the feature name and its mode's nam


From: Thibaut Verron
Subject: Re: About the correspondence between the feature name and its mode's name.
Date: Tue, 27 Jul 2021 17:18:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 27/07/2021 17:05, Hongyi Zhao wrote:
Case 1:

https://github.com/stardiviner/sdcv.el/blob/943ae3e90cc9a0a88a37cc710acd7424fd4defc4/sdcv.el#L495

(provide 'sdcv)

https://github.com/stardiviner/sdcv.el/blob/943ae3e90cc9a0a88a37cc710acd7424fd4defc4/sdcv.el#L232

defvar sdcv-mode-map

Case 2:

https://github.com/gucong/emacs-sdcv/blob/c51569ebf3fd1f8c02c33c289d229996bf2ff186/sdcv-mode.el#L53
(provide 'sdcv-mode)

https://github.com/gucong/emacs-sdcv/blob/c51569ebf3fd1f8c02c33c289d229996bf2ff186/sdcv-mode.el#L193

defvar sdcv-mode-map


So, I'm still confused on the canonical usage of the  feature name and
its mode's name. Any hints will be highly appreciated.

The feature name is usually related to the file name. Since a single file can define several modes, or no mode at all, there is not in general an association between feature name and mode name.

User-level packages can use autoload directives as an entry point, so that users don't have to guess or look the feature name up.

Best wishes,

Thibaut




reply via email to

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