diff options
| author | Eli Barzilay | 2014-06-24 03:55:36 -0400 |
|---|---|---|
| committer | Eli Barzilay | 2014-06-24 03:55:36 -0400 |
| commit | 7967f7d1d44a1c8e1b077fa186d43a86c72f5d95 (patch) | |
| tree | f89c003523671413aeeef406c7f82be17e874940 | |
| parent | b6266364bd99d506753fc3b78dda69de23bdc5d6 (diff) | |
| download | emacs-7967f7d1d44a1c8e1b077fa186d43a86c72f5d95.tar.gz emacs-7967f7d1d44a1c8e1b077fa186d43a86c72f5d95.zip | |
lisp/calculator.el (calculator-last-input): drop 'ascii-character property
lookup.
etc/NEWS: calculator.el user-visible changes.
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calculator.el | 10 |
4 files changed, 17 insertions, 6 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog index 4419f4a0e66..fbeaed956a4 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-24 Eli Barzilay <eli@barzilay.org> | ||
| 2 | |||
| 3 | * NEWS: calculator.el user-visible changes. | ||
| 4 | |||
| 1 | 2014-06-15 Michael Albinus <michael.albinus@gmx.de> | 5 | 2014-06-15 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * NEWS: New Tramp method "nc". | 7 | * NEWS: New Tramp method "nc". |
| @@ -113,6 +113,10 @@ protocols as well as for "telnet" and "ftp" are passed to Tramp. | |||
| 113 | 113 | ||
| 114 | *** New connection method "nc", which allows to access dumb busyboxes. | 114 | *** New connection method "nc", which allows to access dumb busyboxes. |
| 115 | 115 | ||
| 116 | ** Calculator: decimal display mode uses "," groups, so it's more | ||
| 117 | fitting for use in money calculations; factorial works with | ||
| 118 | non-integer inputs. | ||
| 119 | |||
| 116 | ** Obsolete packages | 120 | ** Obsolete packages |
| 117 | 121 | ||
| 118 | --- | 122 | --- |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3ed3d16e69f..1ce15a3c8b6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-06-24 Eli Barzilay <eli@barzilay.org> | ||
| 2 | |||
| 3 | * calculator.el (calculator-last-input): drop 'ascii-character property | ||
| 4 | lookup. | ||
| 5 | |||
| 1 | 2014-06-24 Leo Liu <sdl.web@gmail.com> | 6 | 2014-06-24 Leo Liu <sdl.web@gmail.com> |
| 2 | 7 | ||
| 3 | * align.el (align-adjust-col-for-rule): Unbreak due to defaulting | 8 | * align.el (align-adjust-col-for-rule): Unbreak due to defaulting |
diff --git a/lisp/calculator.el b/lisp/calculator.el index 9ffa6b1a64b..ad7a7f4c92a 100644 --- a/lisp/calculator.el +++ b/lisp/calculator.el | |||
| @@ -1217,13 +1217,11 @@ Use KEYS if given, otherwise use `this-command-keys'." | |||
| 1217 | inp | 1217 | inp |
| 1218 | ;; Translates kp-x to x and [tries to] create a string to lookup | 1218 | ;; Translates kp-x to x and [tries to] create a string to lookup |
| 1219 | ;; operators; assume all symbols are translatable via | 1219 | ;; operators; assume all symbols are translatable via |
| 1220 | ;; `function-key-map' or with an 'ascii-character property. This | 1220 | ;; `function-key-map'. This is needed because we have key |
| 1221 | ;; is needed because we have key bindings for kp-* (which might be | 1221 | ;; bindings for kp-* (which might be the wrong thing to do) so |
| 1222 | ;; the wrong thing to do) so they don't get translated in | 1222 | ;; they don't get translated in `this-command-keys'. |
| 1223 | ;; `this-command-keys'. | ||
| 1224 | (concat (mapcar (lambda (k) | 1223 | (concat (mapcar (lambda (k) |
| 1225 | (if (numberp k) k (or (get k 'ascii-character) | 1224 | (if (numberp k) k (error "??bad key?? (%S)" k))) |
| 1226 | (error "??bad key??")))) | ||
| 1227 | (or (lookup-key function-key-map inp) inp)))))) | 1225 | (or (lookup-key function-key-map inp) inp)))))) |
| 1228 | 1226 | ||
| 1229 | (defun calculator-clear-fragile (&optional op) | 1227 | (defun calculator-clear-fragile (&optional op) |