summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorMoritz Muehlenhoff <jmm@debian.org>2021-03-12 14:02:29 +0100
committerMoritz Muehlenhoff <jmm@debian.org>2021-03-12 14:02:29 +0100
commitb8f6de66858120029af1cebfdd187a318af3c331 (patch)
tree271161cf543750bff3f6881c7e046fe8394aecda /conf
parent978252f422005f266dad949515b85cde9c06436f (diff)
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.
Diffstat (limited to 'conf')
-rw-r--r--conf/cvelist.el8
1 files changed, 7 insertions, 1 deletions
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."

© 2014-2024 Faster IT GmbH | imprint | privacy policy