aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Barzilay2014-06-24 03:55:36 -0400
committerEli Barzilay2014-06-24 03:55:36 -0400
commit7967f7d1d44a1c8e1b077fa186d43a86c72f5d95 (patch)
treef89c003523671413aeeef406c7f82be17e874940
parentb6266364bd99d506753fc3b78dda69de23bdc5d6 (diff)
downloademacs-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/ChangeLog4
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calculator.el10
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 @@
12014-06-24 Eli Barzilay <eli@barzilay.org>
2
3 * NEWS: calculator.el user-visible changes.
4
12014-06-15 Michael Albinus <michael.albinus@gmx.de> 52014-06-15 Michael Albinus <michael.albinus@gmx.de>
2 6
3 * NEWS: New Tramp method "nc". 7 * NEWS: New Tramp method "nc".
diff --git a/etc/NEWS b/etc/NEWS
index 27e9cfa0e3c..2114574b2d1 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
117fitting for use in money calculations; factorial works with
118non-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 @@
12014-06-24 Eli Barzilay <eli@barzilay.org>
2
3 * calculator.el (calculator-last-input): drop 'ascii-character property
4 lookup.
5
12014-06-24 Leo Liu <sdl.web@gmail.com> 62014-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)