summaryrefslogtreecommitdiff
path: root/lisp/emulation/viper-util.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-12-04 11:46:47 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-04 12:15:29 +0100
commit1052707230d3d3b3723eefa6dede7542a4ef28bd (patch)
tree92c60e42e20dbca1ef5ea63deb0ccc536da0324c /lisp/emulation/viper-util.el
parentf352c57972d24464a42ea3e65dc8ac07d8e0517c (diff)
downloademacs-1052707230d3d3b3723eefa6dede7542a4ef28bd.tar.gz
Allow viper-save-setting to save numerical settings
* lisp/emulation/viper-util.el (viper-save-setting): Allow saving numerical settings (bug#18928).
Diffstat (limited to 'lisp/emulation/viper-util.el')
-rw-r--r--lisp/emulation/viper-util.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el
index 9da493d74ba..208a2ee9863 100644
--- a/lisp/emulation/viper-util.el
+++ b/lisp/emulation/viper-util.el
@@ -596,7 +596,7 @@ Otherwise return the normal value."
(defun viper-save-setting (var message file &optional erase-msg)
(let* ((var-name (symbol-name var))
(var-val (if (boundp var) (eval var)))
- (regexp (format "^[^;]*%s[ \t\n]*[a-zA-Z---_']*[ \t\n)]" var-name))
+ (regexp (format "^[^;]*%s[ \t\n]*[a-zA-Z0-9---_']*[ \t\n)]" var-name))
(buf (find-file-noselect (substitute-in-file-name file)))
)
(message "%s" (or message ""))