diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2021-03-12 14:02:29 +0100 |
---|---|---|
committer | Moritz Muehlenhoff <jmm@debian.org> | 2021-03-12 14:02:29 +0100 |
commit | fffa85c4fc442e61598644e48eec1682f6f9496d (patch) | |
tree | 224e669cb32e49e29582858e324bd724844d2fc9 /conf | |
parent | c2a1580c7755d1aec53e091730b776e96b55db8e (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.el | 8 |
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." |