Skip to content
Snippets Groups Projects
Commit a7c61781 authored by Alex Kost's avatar Alex Kost
Browse files

emacs: Display license info on button press in Package Info buffer.

* emacs/guix-ui-package.el (guix-package-license): Adjust button action
  to display license info instead of browsing license URL.
parent 690c055b
No related branches found
No related tags found
No related merge requests found
...@@ -346,9 +346,13 @@ formatted with this string, an action button is inserted.") ...@@ -346,9 +346,13 @@ formatted with this string, an action button is inserted.")
(define-button-type 'guix-package-license (define-button-type 'guix-package-license
:supertype 'guix :supertype 'guix
'face 'guix-package-info-license 'face 'guix-package-info-license
'help-echo "Browse license URL" 'help-echo "Display license info"
'action (lambda (btn) 'action (lambda (btn)
(guix-browse-license-url (button-label btn)))) (require 'guix-ui-license)
(guix-buffer-get-display-entries
'info 'license
(list 'name (button-label btn))
'add)))
(define-button-type 'guix-package-name (define-button-type 'guix-package-name
:supertype 'guix :supertype 'guix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment