emacs-devel
[Top][All Lists]
Advanced

[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: Eli Zaretskii
Subject: Re: master b8d4242e8bd 1/2: New user option 'shell-command-guess-functions' (bug#18132)
Date: Thu, 30 Nov 2023 19:55:30 +0200

> From: Juri Linkov <juri@linkov.net>
> Cc: Arash Esbati <arash@gnu.org>,  emacs-devel@gnu.org
> Date: Thu, 30 Nov 2023 19:22:03 +0200
> 
> >>   ELC+ELN  ../lisp/simple.elc
> >> In end of data:
> >> simple.el:4286:35: Warning: the function ‘shell-command-guess’ is not
> >> known to be defined.
> >>
> >> Maybe you want to declare that function?  This is with Emacs 30
> >> (a811846879) on macOS.
> >
> > Same as previously: recompile once more, and the warning will be gone.
> >
> > There's no problem here.
> 
> I still see this warning on bootstrap:
> 
>   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?



reply via email to

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