From: Lars Ingebrigtsen Date: Fri, 4 Dec 2020 10:46:47 +0000 (+0100) Subject: Allow viper-save-setting to save numerical settings X-Git-Tag: emacs-28.0.90~4929 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1052707230d3d3b3723eefa6dede7542a4ef28bd;p=emacs.git Allow viper-save-setting to save numerical settings * lisp/emulation/viper-util.el (viper-save-setting): Allow saving numerical settings (bug#18928). --- 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 ""))