emacs: Gracefully handle wrong package names passed to 'guix-edit'.
authorLudovic Courtès <ludo@gnu.org>
Tue, 8 Mar 2016 09:59:27 +0000 (10:59 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 8 Mar 2016 10:11:28 +0000 (11:11 +0100)
commit16f4acbddbb38275a52554caf693017465586ac6
treedc6557825244fd10b7b7788fedfa9b76497c6684
parente224495ce1ce373cc43b49faa538116c9cac1466
emacs: Gracefully handle wrong package names passed to 'guix-edit'.

Fixes <http://bugs.gnu.org/22933>.

* emacs/guix-main.scm (package-location-string): Rewrite to handle the
case where 'packages-by-name' returns the empty list.

Co-authored-by: Mathieu Lirzin <mthl@gnu.org>
emacs/guix-main.scm