1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

* lisp/calc/calc-forms.el (calc-date-notation): Fix typo.

This commit is contained in:
Jay Belanger 2012-12-10 20:37:36 -06:00
parent ff3f6c266a
commit 8c21bef6d1

View File

@ -82,7 +82,7 @@
(calc-wrapper
(if (string-match-p "\\`\\s-*\\'" fmt)
(setq fmt "1"))
(if (string-match "\\` \\(*[0-9]\\|10\\|11\\) *\\'" fmt)
(if (string-match "\\` *\\([0-9]\\|10\\|11\\) *\\'" fmt)
(setq fmt (nth (string-to-number fmt) calc-standard-date-formats)))
(or (string-match "[a-zA-Z]" fmt)
(error "Bad date format specifier"))