diff options
| author | Jay Belanger | 2008-08-05 03:45:22 +0000 |
|---|---|---|
| committer | Jay Belanger | 2008-08-05 03:45:22 +0000 |
| commit | a5e025ce627790d7b24bab47a838cb5bec0baa79 (patch) | |
| tree | 8e1be5051f7bdb9f08855a62fe1fc0ceacfa7571 | |
| parent | 57675fb5578db241eb2b62fce41ad864dae56bdf (diff) | |
| download | emacs-a5e025ce627790d7b24bab47a838cb5bec0baa79.tar.gz emacs-a5e025ce627790d7b24bab47a838cb5bec0baa79.zip | |
(math-read-number): Handle C-like languages properly.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/calc/calc.el | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c860387517a..ed10a856484 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2008-08-05 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc.el (math-read-number): Handle all C-like languages | ||
| 4 | properly. | ||
| 5 | |||
| 6 | 2008-08-04 Vincent Belaïche <vincent.b.1@hotmail.fr> | ||
| 7 | |||
| 8 | * calc/calc.el (math-read-number): Handle C numbers beginning with | ||
| 9 | 0 correctly. | ||
| 10 | |||
| 1 | 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com> | 11 | 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com> |
| 2 | 12 | ||
| 3 | * term/ns-win.el ([ns-new-frame]): New global key. | 13 | * term/ns-win.el ([ns-new-frame]): New global key. |
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index a4a6387296b..4b16209915e 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el | |||
| @@ -3463,7 +3463,7 @@ largest Emacs integer.") | |||
| 3463 | ;; Integers (most common case) | 3463 | ;; Integers (most common case) |
| 3464 | ((string-match "\\` *\\([0-9]+\\) *\\'" s) | 3464 | ((string-match "\\` *\\([0-9]+\\) *\\'" s) |
| 3465 | (let ((digs (math-match-substring s 1))) | 3465 | (let ((digs (math-match-substring s 1))) |
| 3466 | (if (and (eq calc-language 'c) | 3466 | (if (and (memq calc-language calc-lang-c-type-hex) |
| 3467 | (> (length digs) 1) | 3467 | (> (length digs) 1) |
| 3468 | (eq (aref digs 0) ?0) | 3468 | (eq (aref digs 0) ?0) |
| 3469 | (null decimal)) | 3469 | (null decimal)) |