[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/35: emacs: info: Buttonize package name heading.
From: |
Alex Kost |
Subject: |
25/35: emacs: info: Buttonize package name heading. |
Date: |
Fri, 11 Dec 2015 11:42:39 +0000 |
alezost pushed a commit to branch wip-refactor-emacs-ui
in repository guix.
commit 3e5e84d80d709abfd33b5686cf922926caee9347
Author: Alex Kost <address@hidden>
Date: Mon Nov 23 00:18:38 2015 +0300
emacs: info: Buttonize package name heading.
* emacs/guix-info.el (guix-package-info-insert-heading): Insert
buttonized name specification.
---
emacs/guix-info.el | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/emacs/guix-info.el b/emacs/guix-info.el
index a9f7bd8..9e17806 100644
--- a/emacs/guix-info.el
+++ b/emacs/guix-info.el
@@ -556,9 +556,10 @@ After calling each METHOD, a new line is inserted."
(defun guix-package-info-insert-heading (entry)
"Insert package ENTRY heading (name specification) at point."
- (guix-format-insert (concat (guix-entry-value entry 'name) " "
- (guix-entry-value entry 'version))
- 'guix-package-info-heading))
+ (guix-insert-button
+ (guix-package-entry->name-specification entry)
+ 'guix-package-name
+ 'face 'guix-package-info-heading))
(defmacro guix-package-info-define-insert-inputs (&optional type)
"Define a face and a function for inserting package inputs.
- 15/35: emacs: list: Factorize "edit package" commands., (continued)
- 15/35: emacs: list: Factorize "edit package" commands., Alex Kost, 2015/12/11
- 10/35: emacs: list: Generalize 'marks' code., Alex Kost, 2015/12/11
- 11/35: emacs: list: Generalize 'describe' code., Alex Kost, 2015/12/11
- 14/35: emacs: list: Split 'guix-list-format' variable., Alex Kost, 2015/12/11
- 20/35: emacs: Add wrappers for 'history-size' and 'revert-confirm'., Alex Kost, 2015/12/11
- 03/35: emacs: Add API for 'guix-entry'., Alex Kost, 2015/12/11
- 19/35: emacs: Split 'guix-param-titles' variable., Alex Kost, 2015/12/11
- 24/35: emacs: Improve messages for packages found by ID., Alex Kost, 2015/12/11
- 21/35: emacs: Split 'guix-root-map' keymap., Alex Kost, 2015/12/11
- 23/35: emacs: Generalize buffer reverting., Alex Kost, 2015/12/11
- 25/35: emacs: info: Buttonize package name heading.,
Alex Kost <=
- 22/35: emacs: Generalize buffer redisplaying., Alex Kost, 2015/12/11
- 27/35: emacs: info: Get rid of syntactic fontification., Alex Kost, 2015/12/11
- 18/35: emacs: info: Split 'guix-info-format' variable., Alex Kost, 2015/12/11
- 17/35: emacs: Factorize macros for defining interfaces., Alex Kost, 2015/12/11
- 29/35: emacs: Reorganize 'readers' code., Alex Kost, 2015/12/11
- 31/35: emacs: Add 'list-single' variables., Alex Kost, 2015/12/11
- 33/35: emacs: Return nil instead of "" in completing readers., Alex Kost, 2015/12/11
- 26/35: emacs: Generalize buffer naming., Alex Kost, 2015/12/11
- 32/35: emacs: Add 'guix-list-get-display-entries'., Alex Kost, 2015/12/11
- 16/35: emacs: info: Generalize inserting and formatting., Alex Kost, 2015/12/11