emacs-devel
[Top][All Lists]
Advanced

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

Re: command mode-specificity [was: scratch/command 064f146 1/2: Change..


From: Stefan Monnier
Subject: Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...]
Date: Sat, 20 Feb 2021 09:43:38 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> (This is just a note to remind myself to fix up the "(declare (modes"
>> (and possibly the "(declare (completion") thing -- it doesn't actually
>> work for ;;;###autoload yet.  `make-autoload' has to be tweaked to peek
>> at `declare' in addition to `interactive'.  I'll fix that bit up
>> tomorrow.)

If the `declare` expands to something like `put` then there's already
a mechanism in place to control whether that `put` should be autoloaded
or not (and by default, they're autoloaded).

See for example:

    (defalias 'byte-run--set-debug
      #'(lambda (name _args spec)
          (list 'progn :autoload-end
                (list 'put (list 'quote name)
                      ''edebug-form-spec (list 'quote spec)))))

where the `:autoload-end` indicates that the `put` should not be copied
to the loaddefs/autoloads file.


        Stefan




reply via email to

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