Guix/Emacs: Fix manifest matching when it contains "guix".

master
Pierre Neidhardt 2020-08-10 12:12:46 +02:00
parent fdbf703369
commit 29be65d8cd
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ NAME-FUNCTION takes the file base name as argument and returns NAME.
If MULTIPLE? is non-nil, return a list of (NAME FILE) of the selected manifests."
(cl-flet ((name (file)
(replace-regexp-in-string
"-?guix-?" ""
"guix-" ""
(funcall name-function
(file-name-base file)))))
(if file