diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2021-07-06 12:24:36 +0200 |
---|---|---|
committer | Moritz Muehlenhoff <jmm@debian.org> | 2021-07-06 12:25:18 +0200 |
commit | 9cdb77aeca4a63c2e107baed47e14568abdd19e9 (patch) | |
tree | e6c259d783bde3ab2d38ca6a3ffcd9350b1e4f65 /conf | |
parent | db2266f4f85009368b17a894c064814375e82f8c (diff) |
cvelist.el: New defun to add a <postponed> tag
Diffstat (limited to 'conf')
-rw-r--r-- | conf/cvelist.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/conf/cvelist.el b/conf/cvelist.el index d8155789eb..94472f6c96 100644 --- a/conf/cvelist.el +++ b/conf/cvelist.el @@ -49,6 +49,15 @@ (beginning-of-line) (insert (concat "\t[buster] - " srcpkg " <no-dsa> (" reason ")\n" ))) +(defun debian-cvelist-insert-postponed () + "Insert postponed comment based on the current source entry." + (interactive) + (setq reason (read-string "Reason for postponed: " "Minor issue, fix along with next update")) + (setq srcpkg (thing-at-point 'filename)) + (next-line) + (beginning-of-line) + (insert (concat "\t[buster] - " srcpkg " <postponed> (" reason ")\n" ))) + ; TODO: Read supported distros from central config and prompt for applicable suites (defun debian-cvelist-insert-not-affected () "Insert not-affected comment based on the current source entry." @@ -82,6 +91,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-p") 'debian-cvelist-insert-postponed) (define-key map (kbd "C-c C-b") 'debian-cvelist-insert-bug) map) "Keymap for `debian-cvelist-mode'.") |