diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-04 11:46:47 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-04 12:15:29 +0100 |
commit | 1052707230d3d3b3723eefa6dede7542a4ef28bd (patch) | |
tree | 92c60e42e20dbca1ef5ea63deb0ccc536da0324c /lisp/emulation/viper-util.el | |
parent | f352c57972d24464a42ea3e65dc8ac07d8e0517c (diff) | |
download | emacs-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.el | 2 |
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 "")) |