From b8f6de66858120029af1cebfdd187a318af3c331 Mon Sep 17 00:00:00 2001 From: Moritz Muehlenhoff Date: Fri, 12 Mar 2021 14:02:29 +0100 Subject: cvelist.el: Modify debian-cvelist-insert-not-for-us to query for the software And keep the last value since they often arrive in batches. --- conf/cvelist.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'conf') diff --git a/conf/cvelist.el b/conf/cvelist.el index e94494f271..f2d7e74710 100644 --- a/conf/cvelist.el +++ b/conf/cvelist.el @@ -15,10 +15,16 @@ ;;; (setq auto-mode-alist ;;; (cons '("list" . debian-cvelist-mode) auto-mode-alist)) +(setq last-nfu "") + +; TODO: Tab completion for existing NFUs (defun debian-cvelist-insert-not-for-us () "Insert NOT-FOR-US keyword." + (setq last-nfu (read-string "Name of software: " last-nfu)) (interactive) - (insert "\tNOT-FOR-US: ")) + (beginning-of-line) + (kill-whole-line) + (insert "\tNOT-FOR-US: " last-nfu "\n" )) (defun debian-cvelist-insert-note () "Insert NOTE comment." -- cgit v1.2.3