From cf585bae0aab1d7de5de8c3a7da471bddc082542 Mon Sep 17 00:00:00 2001 From: Moritz Muehlenhoff Date: Tue, 6 Jul 2021 12:24:36 +0200 Subject: cvelist.el: New defun to add a tag --- conf/cvelist.el | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'conf') 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 " (" 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 " (" 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'.") -- cgit v1.2.3