[Git][security-tracker-team/security-tracker][master] cvelist.el: New debian-cvelist-cvesearch() function to look up a CVE at MITRE
Moritz Muehlenhoff
jmm at debian.org
Thu Oct 8 18:48:12 BST 2020
Moritz Muehlenhoff pushed to branch master at Debian Security Tracker / security-tracker
Commits:
d5b54e6a by Moritz Muehlenhoff at 2020-10-08T19:47:45+02:00
cvelist.el: New debian-cvelist-cvesearch() function to look up a CVE at MITRE
- - - - -
1 changed file:
- conf/cvelist.el
Changes:
=====================================
conf/cvelist.el
=====================================
@@ -1,5 +1,4 @@
;; Major mode for Debian's CVE list
-;; currently only does some syntax highlighting
;;
;; Can be enabled via
;;
@@ -18,10 +17,16 @@
(interactive)
(insert "\tNOTE: "))
+(defun debian-cvelist-cvesearch ()
+ "Look up a CVE ID at the MITRE website"
+ (interactive)
+ (browse-url (concat "https://cve.mitre.org/cgi-bin/cvename.cgi?name=" (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)
(define-key map (kbd "C-c C-n") 'debian-cvelist-insert-note)
+ (define-key map (kbd "C-c C-c") 'debian-cvelist-cvesearch)
map)
"Keymap for `debian-cvelist-mode'.")
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/d5b54e6ada06f5b5597601ef26a39f051f363055
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/d5b54e6ada06f5b5597601ef26a39f051f363055
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20201008/1e55f6c4/attachment-0001.html>
More information about the debian-security-tracker-commits
mailing list