[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: emacs: Rename 'guix-search-by-name' to 'guix-packages-by-name'.
From: |
Alex Kost |
Subject: |
01/02: emacs: Rename 'guix-search-by-name' to 'guix-packages-by-name'. |
Date: |
Mon, 18 Jan 2016 16:12:05 +0000 |
alezost pushed a commit to branch master
in repository guix.
commit e119ba900877970325b2158dd6d3c700feaab516
Author: Alex Kost <address@hidden>
Date: Tue Jan 12 18:06:32 2016 +0300
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.
---
doc/emacs.texi | 2 +-
emacs/guix-ui-package.el | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/emacs.texi b/doc/emacs.texi
index b2a3d47..7edaedc 100644
--- a/doc/emacs.texi
+++ b/doc/emacs.texi
@@ -155,7 +155,7 @@ Display all installed packages.
Display obsolete packages (the packages that are installed in a profile
but cannot be found among available packages).
address@hidden M-x guix-search-by-name
address@hidden M-x guix-packages-by-name
Display package(s) with the specified name.
@item M-x guix-search-by-regexp
diff --git a/emacs/guix-ui-package.el b/emacs/guix-ui-package.el
index 7cf1a7d..0696c4b 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))