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

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

Re: Better way to make sure external command exists in the system?


From: Emanuel Berg
Subject: Re: Better way to make sure external command exists in the system?
Date: Sun, 21 Mar 2021 18:16:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Jean Louis wrote:

> I would not like later invoking functions that don't work.
> But I do the checks in the functions. Sometimes majority of
> functions belong in the same domain that uses
> external commands.
>
> (defun rcd-which-list (command-list)
>   "Verifies that list of shell commands COMMAND-LIST exist in
> user's $PATH"
>   (let ((all-exist t))
>     (dolist (command command-list all-exist)
>       (unless (executable-find command)
>       (setq all-exist nil)
>       (rcd-warning-message "Shell command `%s' does not exist" command)))))
>
> [and much more Elisp]

I'll read it, if you fix all this first...

byte compiler:

geh.el: 
In image-resize-dired:
geh.el:324:32: Warning: reference to free variable
    ‘*image-default-resize-size*’

In rcd-warning-message:
geh.el:340:22: Warning: reference to free variable
    ‘rcd-warning-message-sound-file’

In end of data:
geh.el:342:1: Warning: the following functions are not known to be defined:
    shell-double-quote, dired-get-marked-files

checkdoc: [see lines 52-62 here 
https://dataswamp.org/~incal/emacs-init/ide/elisp.el]

geh.el:281: First line is not a complete sentence
geh.el:290: First sentence should end with punctuation
geh.el:290: Argument ‘file’ should appear (as FILE) in the doc string
geh.el:301: First sentence should end with punctuation
geh.el:309: First sentence should end with punctuation
geh.el:309: Argument ‘file’ should appear (as FILE) in the doc string
geh.el:321: First sentence should end with punctuation
geh.el:330: First sentence should end with punctuation
geh.el:330: Argument ‘file’ should appear (as FILE) in the doc string
geh.el:338: First line is not a complete sentence
geh.el:338: Argument ‘format-string’ should appear (as FORMAT-STRING) in the 
doc string

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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