[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/09: emacs: Display license info on button press in Package Info buffe
From: |
Alex Kost |
Subject: |
09/09: emacs: Display license info on button press in Package Info buffer. |
Date: |
Mon, 18 Apr 2016 07:13:37 +0000 |
alezost pushed a commit to branch master
in repository guix.
commit a7c61781df789183665dc7570e088ec11678a7db
Author: Alex Kost <address@hidden>
Date: Thu Apr 7 21:36:32 2016 +0300
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.
---
emacs/guix-ui-package.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/emacs/guix-ui-package.el b/emacs/guix-ui-package.el
index 7e20b32..38f0c08 100644
--- a/emacs/guix-ui-package.el
+++ b/emacs/guix-ui-package.el
@@ -346,9 +346,13 @@ formatted with this string, an action button is inserted.")
(define-button-type 'guix-package-license
:supertype 'guix
'face 'guix-package-info-license
- 'help-echo "Browse license URL"
+ 'help-echo "Display license info"
'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
:supertype 'guix
- branch master updated (9bb46c1 -> a7c6178), Alex Kost, 2016/04/18
- 05/09: emacs: Make 'guix-find-location' interactive., Alex Kost, 2016/04/18
- 03/09: emacs: Separate package license code., Alex Kost, 2016/04/18
- 09/09: emacs: Display license info on button press in Package Info buffer.,
Alex Kost <=
- 01/09: emacs: Add 'guix-packages-by-location' command., Alex Kost, 2016/04/18
- 06/09: doc: emacs: Add "Package Source Locations" section., Alex Kost, 2016/04/18
- 08/09: emacs: Add location "Packages" button to Package Info buffer., Alex Kost, 2016/04/18
- 07/09: emacs: Add interface for package locations., Alex Kost, 2016/04/18
- 02/09: emacs: Separate package location code., Alex Kost, 2016/04/18
- 04/09: emacs: Display message if license not found., Alex Kost, 2016/04/18