From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 2/3] emacs: Set 'guix-buffer-item' before displaying entries.
Date: Sat, 13 Feb 2016 22:04:42 +0300 [thread overview]
Message-ID: <1455390283-3585-3-git-send-email-alezost@gmail.com> (raw)
In-Reply-To: <1455390283-3585-1-git-send-email-alezost@gmail.com>
* emacs/guix-buffer.el (guix-buffer-set): Set 'guix-buffer-item' early,
so that it can be used during displaying entries. For example, this
allows to use a value of the current guix profile when package entries
are inserted in a "List" or "Info" buffer.
---
emacs/guix-buffer.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/emacs/guix-buffer.el b/emacs/guix-buffer.el
index af76e63..873540b 100644
--- a/emacs/guix-buffer.el
+++ b/emacs/guix-buffer.el
@@ -241,8 +241,8 @@ HISTORY should be one of the following:
`replace' - replace the current history item."
(guix-buffer-with-item buffer-item
(when %entries
- (guix-buffer-show-entries %entries %buffer-type %entry-type)
(setq guix-buffer-item buffer-item)
+ (guix-buffer-show-entries %entries %buffer-type %entry-type)
(when history
(funcall (cl-ecase history
(add #'guix-history-add)
--
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 ` [PATCH 1/3] emacs: Add 'M-x guix-installed-{user/system}-packages' Alex Kost
2016-02-21 22:03 ` Ludovic Courtès
2016-02-13 19:04 ` Alex Kost [this message]
2016-02-21 22:06 ` [PATCH 2/3] emacs: Set 'guix-buffer-item' before displaying entries 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455390283-3585-3-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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.