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 /lisp | |
| 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.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calculator.el | 10 |
2 files changed, 9 insertions, 6 deletions
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) |