guix-commits
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]