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
commit0e5e85b2e8a817fba936a522a6b4b01913b01f34 (patch)
tree84b5ba34dd2a0f1614dce0771214b374cefcee01 /conf
parentc13a5125ca32537a03c54add82ade516e00b9d89 (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