From 136221e80b08e02cf64182f53333f0509267e7cd Mon Sep 17 00:00:00 2001 From: Moritz Muehlenhoff Date: Fri, 17 Sep 2021 15:24:57 +0200 Subject: new defun for PTS lookups --- conf/cvelist.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'conf') diff --git a/conf/cvelist.el b/conf/cvelist.el index 94472f6c96..d35874980e 100644 --- a/conf/cvelist.el +++ b/conf/cvelist.el @@ -83,6 +83,11 @@ (interactive) (browse-url (concat "https://cve.mitre.org/cgi-bin/cvename.cgi?name=" (thing-at-point 'symbol)))) +(defun debian-cvelist-ptslookup () + "Look up a package name in Debian Package Tracker." + (interactive) + (browse-url (concat "https://tracker.debian.org/pkg/" (thing-at-point 'symbol)))) + (defvar debian-cvelist-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-c C-f") 'debian-cvelist-insert-not-for-us) @@ -93,6 +98,7 @@ (define-key map (kbd "C-c C-x") 'debian-cvelist-insert-not-affected) (define-key map (kbd "C-c C-p") 'debian-cvelist-insert-postponed) (define-key map (kbd "C-c C-b") 'debian-cvelist-insert-bug) + (define-key map (kbd "C-c C-p") 'debian-cvelist-ptslookup) map) "Keymap for `debian-cvelist-mode'.") -- cgit v1.2.3