[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/37: emacs: info: Buttonize package name heading.
From: |
Alex Kost |
Subject: |
25/37: emacs: info: Buttonize package name heading. |
Date: |
Fri, 18 Dec 2015 18:51:31 +0000 |
alezost pushed a commit to branch wip-refactor-emacs-ui
in repository guix.
commit 60126b86c92672193eba623e73537bdc0ab67f00
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.
- 12/37: emacs: list: Generalize 'sort-key' code., (continued)
- 12/37: emacs: list: Generalize 'sort-key' code., Alex Kost, 2015/12/18
- 10/37: emacs: list: Generalize 'marks' code., Alex Kost, 2015/12/18
- 11/37: emacs: list: Generalize 'describe' code., Alex Kost, 2015/12/18
- 13/37: emacs: list: Add 'guix-list-mode-initialize'., Alex Kost, 2015/12/18
- 14/37: emacs: list: Split 'guix-list-format' variable., Alex Kost, 2015/12/18
- 15/37: emacs: list: Factorize "edit package" commands., Alex Kost, 2015/12/18
- 06/37: emacs: Rename internal procedures., Alex Kost, 2015/12/18
- 20/37: emacs: Add wrappers for 'history-size' and 'revert-confirm'., Alex Kost, 2015/12/18
- 24/37: emacs: Improve messages for packages found by ID., Alex Kost, 2015/12/18
- 19/37: emacs: Split 'guix-param-titles' variable., Alex Kost, 2015/12/18
- 25/37: emacs: info: Buttonize package name heading.,
Alex Kost <=
- 21/37: emacs: Split 'guix-root-map' keymap., Alex Kost, 2015/12/18
- 22/37: emacs: Generalize buffer redisplaying., Alex Kost, 2015/12/18
- 18/37: emacs: info: Split 'guix-info-format' variable., Alex Kost, 2015/12/18
- 23/37: emacs: Generalize buffer reverting., Alex Kost, 2015/12/18
- 27/37: emacs: info: Get rid of syntactic fontification., Alex Kost, 2015/12/18
- 17/37: emacs: Factorize macros for defining interfaces., Alex Kost, 2015/12/18
- 31/37: emacs: Add 'list-single' variables., Alex Kost, 2015/12/18
- 29/37: emacs: Reorganize 'readers' code., Alex Kost, 2015/12/18
- 32/37: emacs: Add 'guix-list-get-display-entries'., Alex Kost, 2015/12/18
- 33/37: emacs: Return nil instead of "" in completing readers., Alex Kost, 2015/12/18