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 08:08:16 +0200

> From: Arash Esbati <arash@gnu.org>
> Cc: Juri Linkov <juri@linkov.net>
> Date: Wed, 29 Nov 2023 20:14:54 +0100
> 
> Juri Linkov <juri@jurta.org> writes:
> 
> >  (defun minibuffer-default-add-shell-commands ()
> >    "Return a list of all commands associated with the current file.
> > -This function is used to add all related commands retrieved by `mailcap'
> > -to the end of the list of defaults just after the default value."
> > -  (interactive)
> > +This function is used to add all related commands retrieved by
> > +`shell-command-guess' to the end of the list of defaults just
> > +after the default value."
> >    (let* ((filename (if (listp minibuffer-default)
> >                    (car minibuffer-default)
> >                  minibuffer-default))
> > -    (commands (and filename (require 'mailcap nil t)
> > -                   (mailcap-file-default-commands (list filename)))))
> > +    (commands (and filename (shell-command-guess (list filename)))))
> >      (setq commands (mapcar (lambda (command)
> >                          (concat command " " filename))
> >                        commands))
> 
> This give me:
> 
>   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.



reply via email to

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