From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 1/3] emacs: Add 'M-x guix-installed-{user/system}-packages'.
Date: Sat, 13 Feb 2016 22:04:41 +0300 [thread overview]
Message-ID: <1455390283-3585-2-git-send-email-alezost@gmail.com> (raw)
In-Reply-To: <1455390283-3585-1-git-send-email-alezost@gmail.com>
* emacs/guix-ui-package.el (guix-installed-user-packages)
(guix-installed-system-packages): New commands.
* doc/emacs.texi (Emacs Commands): Document them.
---
doc/emacs.texi | 8 +++++++-
emacs/guix-ui-package.el | 13 +++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/doc/emacs.texi b/doc/emacs.texi
index dbe59f0..27f5365 100644
--- a/doc/emacs.texi
+++ b/doc/emacs.texi
@@ -150,7 +150,13 @@ Commands for displaying packages:
Display all/newest available packages.
@item M-x guix-installed-packages
-Display all installed packages.
+@itemx M-x guix-installed-user-packages
+@itemx M-x guix-installed-system-packages
+Display installed packages. As described above, @kbd{M-x
+guix-installed-packages} uses an arbitrary profile that you can specify,
+while the other commands display packages installed in 2 special
+profiles: @file{~/.guix-profile} and @file{/run/current-system/profile}
+(only on GuixSD).
@item M-x guix-obsolete-packages
Display obsolete packages (the packages that are installed in a profile
diff --git a/emacs/guix-ui-package.el b/emacs/guix-ui-package.el
index ff10a1e..78d2c40 100644
--- a/emacs/guix-ui-package.el
+++ b/emacs/guix-ui-package.el
@@ -982,6 +982,19 @@ Interactively with prefix, prompt for PROFILE."
(guix-package-get-display profile 'installed))
;;;###autoload
+(defun guix-installed-user-packages ()
+ "Display information about Guix packages installed in a user profile."
+ (interactive)
+ (guix-installed-packages guix-user-profile))
+
+;;;###autoload
+(defun guix-installed-system-packages ()
+ "Display information about Guix packages installed in a system profile."
+ (interactive)
+ (guix-installed-packages
+ (guix-packages-profile guix-system-profile nil t)))
+
+;;;###autoload
(defun guix-obsolete-packages (&optional profile)
"Display information about obsolete Guix packages.
If PROFILE is nil, use `guix-current-profile'.
--
2.6.3
next prev parent reply other threads:[~2016-02-13 19:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-13 19:04 [PATCH 0/3] emacs: Few improvements Alex Kost
2016-02-13 19:04 ` Alex Kost [this message]
2016-02-21 22:03 ` [PATCH 1/3] emacs: Add 'M-x guix-installed-{user/system}-packages' Ludovic Courtès
2016-02-13 19:04 ` [PATCH 2/3] emacs: Set 'guix-buffer-item' before displaying entries Alex Kost
2016-02-21 22:06 ` Ludovic Courtès
2016-02-22 19:48 ` Alex Kost
2016-02-13 19:04 ` [PATCH 3/3] emacs: Do not allow to modify system profiles Alex Kost
2016-02-21 22:07 ` Ludovic Courtès
2016-02-23 10:55 ` Pjotr Prins
2016-02-24 16:52 ` Alex Kost
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455390283-3585-2-git-send-email-alezost@gmail.com \
--to=alezost@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).