diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2021-07-01 14:28:49 +0200 |
---|---|---|
committer | Moritz Muehlenhoff <jmm@debian.org> | 2021-07-01 14:28:49 +0200 |
commit | 37a8693ab32cebfe1c04c58e812666f1365245f4 (patch) | |
tree | ae034af444ae56fe8639ea571e08e8646506b8be /conf | |
parent | 238ee9d04b4c716e1836720fca851028780987de (diff) |
cvelist.el: new defun to add a bug reference
Diffstat (limited to 'conf')
-rw-r--r-- | conf/cvelist.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/conf/cvelist.el b/conf/cvelist.el index 901d4e0fb6..d8155789eb 100644 --- a/conf/cvelist.el +++ b/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'.") |