初稿: 2018-08-09 Thu 11:22
最終更新日: 2018-12-14 Fri 20:44
ホーム | 文書トップ | 目次

org-check-external-command
外部プログラムの存在確認を行う

 1: (defsubst org-check-external-command (cmd &optional use no-error)
 2:   "Check if external program CMD for USE exists, error if not.
 3: When the program does exist, return its path.
 4: When it does not exist and NO-ERROR is set, return nil.
 5: Otherwise, throw an error.  The optional argument USE can describe what this
 6: program is needed for, so that the error message can be more informative."
 7:   (or (executable-find cmd)
 8:       (if no-error
 9:           nil
10:         (error "Can't find `%s'%s" cmd
11:                (if use (format " (%s)" use) "")))))

日付: 2018-08-09 Thu 11:22

著者: conao

Created: 2018-12-14 Fri 21:04

Validate