[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master b8d4242e8bd 1/2: New user option 'shell-command-guess-functio
From: |
Juri Linkov |
Subject: |
Re: master b8d4242e8bd 1/2: New user option 'shell-command-guess-functions' (bug#18132) |
Date: |
Thu, 30 Nov 2023 20:12:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> In end of data:
>> simple.el:4286:35: Warning: the function `shell-command-guess' is not
>> known to be defined.
>>
>> I expected that ;;;###autoload will add it to the global loaddefs.el,
>> and only ;;;###dired-autoload will add it to dired-loaddefs.el.
>> But actually ;;;###autoload adds it to dired-loaddefs.el.
>>
>> I don't know if there is a way to override this only for one autoload:
>>
>> ;; generated-autoload-file: "dired-loaddefs.el"
>>
>> Something like using ;;;###global-autoload?
>
> Autoloading is the wrong tool for preloaded stuff. Did you try
> declare-function?
Ok, now added declare-function that removed this warning.