aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2016-01-12 18:06:32 +0300
committerAlex Kost <alezost@gmail.com>2016-01-18 19:11:46 +0300
commite119ba900877970325b2158dd6d3c700feaab516 (patch)
treefb6c1440dbde1dfb6252153743a031a99d440b6b /emacs
parent264ae686fae658c90716632715846d34aa61b9f3 (diff)
downloadguix-e119ba900877970325b2158dd6d3c700feaab516.tar
guix-e119ba900877970325b2158dd6d3c700feaab516.tar.gz
emacs: Rename 'guix-search-by-name' to 'guix-packages-by-name'.
* emacs/guix-ui-package.el (guix-search-by-name): Rename to... (guix-packages-by-name): ... this. Complete package name. * doc/emacs.texi (Emacs Commands): Likewise.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/guix-ui-package.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/guix-ui-package.el b/emacs/guix-ui-package.el
index 7cf1a7d07f..0696c4b565 100644
--- a/emacs/guix-ui-package.el
+++ b/emacs/guix-ui-package.el
@@ -912,15 +912,15 @@ See `guix-package-info-type'."
"A history of minibuffer prompts.")
;;;###autoload
-(defun guix-search-by-name (name &optional profile)
- "Search for Guix packages by NAME.
+(defun guix-packages-by-name (name &optional profile)
+ "Display Guix packages with NAME.
NAME is a string with name specification. It may optionally contain
a version number. Examples: \"guile\", \"guile-2.0.11\".
If PROFILE is nil, use `guix-current-profile'.
Interactively with prefix, prompt for PROFILE."
(interactive
- (list (read-string "Package name: " nil 'guix-package-search-history)
+ (list (guix-read-package-name)
(guix-ui-read-profile)))
(guix-package-get-display profile 'name name))