]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow viper-save-setting to save numerical settings
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Dec 2020 10:46:47 +0000 (11:46 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 4 Dec 2020 11:15:29 +0000 (12:15 +0100)
* lisp/emulation/viper-util.el (viper-save-setting): Allow saving
numerical settings (bug#18928).

lisp/emulation/viper-util.el

index 9da493d74ba7e8c8888e71f6ee10e3a003df5fc8..208a2ee9863f3fd8e78feee64d58c937f427bd16 100644 (file)
@@ -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 ""))