me
/
guix
Archived
1
0
Fork 0

gnu: emacs: Don't error on missing commands.

This is a follow-up to commit 64557bc695.
Inputs lacking from emacs proper may not be present in emacs-minimal,
thus throwing an error on lookup.  This error is already anticipated in
the handling code.

* gnu/packages/emacs.scm (emacs)[patch-program-file-names]: Wrap
search-input-file in false-if-exception.
master
Liliana Marie Prikler 2022-05-14 22:06:57 +02:00
parent 35707e5058
commit 775817648f
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 4 additions and 3 deletions

View File

@ -148,9 +148,10 @@
(format #f "~s" (search-input-file inputs "/bin/sh"))))
(substitute* "lisp/doc-view.el"
(("\"(gs|dvipdf|ps2pdf|pdftotext)\"" all what)
(let ((replacement (search-input-file
inputs
(string-append "/bin/" what))))
(let ((replacement (false-if-exception
(search-input-file
inputs
(string-append "/bin/" what)))))
(if replacement
(string-append "\"" replacement "\"")
all))))