diff options
| author | Jay Belanger | 2012-11-27 22:51:13 -0600 |
|---|---|---|
| committer | Jay Belanger | 2012-11-27 22:51:13 -0600 |
| commit | e7c8fcc44eff6dbc6ccb6ebc7f6389233ee516ab (patch) | |
| tree | 22bb18c81564605c1eaa9e5fa8e454c127dd223e | |
| parent | 48d6d9c01917c8dc7b29dfb208962224bf1d3035 (diff) | |
| download | emacs-e7c8fcc44eff6dbc6ccb6ebc7f6389233ee516ab.tar.gz emacs-e7c8fcc44eff6dbc6ccb6ebc7f6389233ee516ab.zip | |
* lisp/calc/calc-forms.el (calc-date-notation): Fix regexp
used to find time codes. Fix symbol for seconds.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calc/calc-forms.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6a1ac6f680d..1ec3c88fbc2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-11-28 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc-forms.el (calc-date-notation): Fix regexp | ||
| 4 | used to find time codes. Fix symbol for seconds. | ||
| 5 | |||
| 1 | 2012-11-27 Glenn Morris <rgm@gnu.org> | 6 | 2012-11-27 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * emacs-lisp/derived.el (derived-mode-make-docstring): | 8 | * emacs-lisp/derived.el (derived-mode-make-docstring): |
diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el index 98b22550f75..15a153059a8 100644 --- a/lisp/calc/calc-forms.el +++ b/lisp/calc/calc-forms.el | |||
| @@ -94,7 +94,8 @@ | |||
| 94 | (setcar (nthcdr arg calc-standard-date-formats) fmt)) | 94 | (setcar (nthcdr arg calc-standard-date-formats) fmt)) |
| 95 | (let ((case-fold-search nil)) | 95 | (let ((case-fold-search nil)) |
| 96 | (and (not (string-match "<.*>" fmt)) | 96 | (and (not (string-match "<.*>" fmt)) |
| 97 | (string-match "\\`[^hHspP]*\\([^ac-gi-lnoqrt-zAC-GI-OQRT-Z]*[bBhHmpPsS]+[^ac-gi-lnoqrt-zAC-GI-OQRT-Z]*\\)[^hHspP]*\\'" fmt) | 97 | ;; Find time part to put in <...> |
| 98 | (string-match "\\`[^hHspP]*\\([^ac-gi-lnoqrt-zAC-GI-OQRT-Z]*\\(bs\\|bm\\|bh\\|BS\\|BH\\|[hHmpPsS]\\)+[^ac-gi-lnoqrt-zAC-GI-OQRT-Z]*\\)[^hHspP]*\\'" fmt) | ||
| 98 | (string-match (concat "[^ac-gi-lnoqrt-zAC-GI-OQRT-Z]*" | 99 | (string-match (concat "[^ac-gi-lnoqrt-zAC-GI-OQRT-Z]*" |
| 99 | (regexp-quote (math-match-substring fmt 1)) | 100 | (regexp-quote (math-match-substring fmt 1)) |
| 100 | "[^ac-gi-lnoqrt-zAC-GI-OQRT-Z]*") fmt) | 101 | "[^ac-gi-lnoqrt-zAC-GI-OQRT-Z]*") fmt) |
| @@ -140,7 +141,7 @@ | |||
| 140 | W www Www Wwww WWW WWWW | 141 | W www Www Wwww WWW WWWW |
| 141 | h hh bh H HH BH | 142 | h hh bh H HH BH |
| 142 | p P pp PP pppp PPPP | 143 | p P pp PP pppp PPPP |
| 143 | m mm bm s ss bss SS BS C | 144 | m mm bm s ss bs SS BS C |
| 144 | N n J j U b)) | 145 | N n J j U b)) |
| 145 | (and (eq sym 'X) (not lfmt) (not fullfmt)) | 146 | (and (eq sym 'X) (not lfmt) (not fullfmt)) |
| 146 | (error "Bad format code: %s" sym)) | 147 | (error "Bad format code: %s" sym)) |