[Git][security-tracker-team/security-tracker][master] cvelist.el: new defun to add a bug reference
Moritz Muehlenhoff (@jmm)
jmm at debian.org
Thu Jul 1 13:29:09 BST 2021
Moritz Muehlenhoff pushed to branch master at Debian Security Tracker / security-tracker
Commits:
0a80525f by Moritz Muehlenhoff at 2021-07-01T14:28:49+02:00
cvelist.el: new defun to add a bug reference
- - - - -
1 changed file:
- conf/cvelist.el
Changes:
=====================================
conf/cvelist.el
=====================================
@@ -16,6 +16,7 @@
;;; (cons '("list" . debian-cvelist-mode) auto-mode-alist))
(setq last-nfu "")
+(setq bugnum "")
; TODO: Tab completion for existing NFUs
(defun debian-cvelist-insert-not-for-us ()
@@ -31,6 +32,13 @@
(interactive)
(insert "\tNOTE: "))
+(defun debian-cvelist-insert-bug ()
+ "Add bugnumber to end of line."
+ (setq bugnum (read-string "Bug number (without #): " bugnum))
+ (interactive)
+ (end-of-line)
+ (insert " (bug #" bugnum ")" ))
+
; TODO: Read supported distros from central config and prompt for applicable suites
(defun debian-cvelist-insert-nodsa ()
"Insert no-dsa comment based on the current source entry."
@@ -74,6 +82,7 @@
(define-key map (kbd "C-c C-l") 'debian-cvelist-insert-nodsa)
(define-key map (kbd "C-c C-a") 'debian-cvelist-insert-srcentry)
(define-key map (kbd "C-c C-x") 'debian-cvelist-insert-not-affected)
+ (define-key map (kbd "C-c C-b") 'debian-cvelist-insert-bug)
map)
"Keymap for `debian-cvelist-mode'.")
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/0a80525f3452446a3ff9b7785b33150f98f0e864
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/0a80525f3452446a3ff9b7785b33150f98f0e864
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/20210701/138ee502/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list