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
commitfffa85c4fc442e61598644e48eec1682f6f9496d (patch)
tree224e669cb32e49e29582858e324bd724844d2fc9 /conf
parentc2a1580c7755d1aec53e091730b776e96b55db8e (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