From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH 1/2] emacs: Rename 'guix-search-by-name' to 'guix-packages-by-name'. Date: Thu, 14 Jan 2016 02:14:09 +0300 Message-ID: <1452726850-16850-2-git-send-email-alezost@gmail.com> References: <1452726850-16850-1-git-send-email-alezost@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJUcq-00070v-Qs for guix-devel@gnu.org; Wed, 13 Jan 2016 18:14:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJUcn-0001uT-KP for guix-devel@gnu.org; Wed, 13 Jan 2016 18:14:48 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:33497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJUcn-0001u5-Cp for guix-devel@gnu.org; Wed, 13 Jan 2016 18:14:45 -0500 Received: by mail-lf0-x241.google.com with SMTP id z62so7561370lfd.0 for ; Wed, 13 Jan 2016 15:14:45 -0800 (PST) Received: from localhost.localdomain ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id ra6sm431751lbb.33.2016.01.13.15.14.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 15:14:44 -0800 (PST) In-Reply-To: <1452726850-16850-1-git-send-email-alezost@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * 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). -@item M-x guix-search-by-name +@item 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)) -- 2.6.3