From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Better way to make sure external command exists in the system?
Date: Sun, 21 Mar 2021 18:16:49 +0100 [thread overview]
Message-ID: <87y2ego29q.fsf@zoho.eu> (raw)
In-Reply-To: YFdTFpg4UJeS4aTY@protected.localdomain
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
next prev parent reply other threads:[~2021-03-21 17:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-18 12:13 Better way to make sure external command exists in the system? Jean Louis
2021-03-19 13:57 ` Daniel Martín
2021-03-19 14:16 ` 2QdxY4RzWzUUiLuE
2021-03-21 14:10 ` Jean Louis
2021-03-21 17:17 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-21 14:07 ` Jean Louis
2021-03-21 17:16 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2021-03-23 8:02 ` Jean Louis
2021-03-23 9:56 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-23 10:13 ` Jean Louis
2021-03-25 15:01 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-25 15:17 ` Jean Louis
2021-03-25 20:47 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-25 20:56 ` Jean Louis
2021-03-25 21:10 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2ego29q.fsf@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).