aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-03-26 15:29:13 +0000
committerStefan Monnier2004-03-26 15:29:13 +0000
commit6a3ed0641cd34e10ab5e13e4accb5a19546cf644 (patch)
treeab83caf319b381c4367d051c5c5b812e8b93863b
parentcaa8e7aa7568d36f37d359ccf1fb025cec105d44 (diff)
downloademacs-6a3ed0641cd34e10ab5e13e4accb5a19546cf644.tar.gz
emacs-6a3ed0641cd34e10ab5e13e4accb5a19546cf644.zip
(calc-mode-map): Use mapc.
-rw-r--r--lisp/calc/calc.el19
1 files changed, 9 insertions, 10 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index bf06b68ac99..782275c9b07 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -1,6 +1,6 @@
1;;; calc.el --- the GNU Emacs calculator 1;;; calc.el --- the GNU Emacs calculator
2 2
3;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002 Free Software Foundation, Inc. 3;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
4 4
5;; Author: David Gillespie <daveg@synaptics.com> 5;; Author: David Gillespie <daveg@synaptics.com>
6;; Maintainers: D. Goel <deego@gnufans.org> 6;; Maintainers: D. Goel <deego@gnufans.org>
@@ -733,13 +733,13 @@ scientific notation in calc-mode.")
733 (define-key map "\M-\C-m" 'calc-last-args-stub) 733 (define-key map "\M-\C-m" 'calc-last-args-stub)
734 (define-key map "\C-j" 'calc-over) 734 (define-key map "\C-j" 'calc-over)
735 735
736 (mapcar (lambda (x) (define-key map (char-to-string x) 'undefined)) 736 (mapc (lambda (x) (define-key map (char-to-string x) 'undefined))
737 "lOW") 737 "lOW")
738 (mapcar (lambda (x) (define-key map (char-to-string x) 'calc-missing-key)) 738 (mapc (lambda (x) (define-key map (char-to-string x) 'calc-missing-key))
739 (concat "ABCDEFGHIJKLMNPQRSTUVXZabcdfghjkmoprstuvwxyz" 739 (concat "ABCDEFGHIJKLMNPQRSTUVXZabcdfghjkmoprstuvwxyz"
740 ":\\|!()[]<>{},;=~`\C-k\M-k\C-w\M-w\C-y\C-_")) 740 ":\\|!()[]<>{},;=~`\C-k\M-k\C-w\M-w\C-y\C-_"))
741 (mapcar (lambda (x) (define-key map (char-to-string x) 'calcDigit-start)) 741 (mapc (lambda (x) (define-key map (char-to-string x) 'calcDigit-start))
742 "_0123456789.#@") 742 "_0123456789.#@")
743 map)) 743 map))
744 744
745(defvar calc-digit-map 745(defvar calc-digit-map
@@ -2952,8 +2952,7 @@ If mouse is pressed in Calc window, push cut buffer contents onto the stack."
2952 (if (eq calc-language 'big) 2952 (if (eq calc-language 'big)
2953 (setq s (concat s "\n")) 2953 (setq s (concat s "\n"))
2954 (when calc-line-numbering 2954 (when calc-line-numbering
2955 (aset s 0 ?1) 2955 (setq s (concat "1:" (substring s 2)))))
2956 (aset s 1 ?:)))
2957 (setcar (cdr entry) (calc-count-lines s)) 2956 (setcar (cdr entry) (calc-count-lines s))
2958 s)) 2957 s))
2959 2958