Mercurial > emacs
comparison lisp/calc/calc.el @ 90813:e6fdae9180d4
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 698-710)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 216)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-196
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 24 Apr 2007 21:56:25 +0000 |
parents | c0409ee15cee e62817ef9d31 |
children | 988f1edc9674 |
comparison
equal
deleted
inserted
replaced
90812:6137cc8ddf90 | 90813:e6fdae9180d4 |
---|---|
2 | 2 |
3 ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, |
4 ;; 2005, 2006, 2007 Free Software Foundation, Inc. | 4 ;; 2005, 2006, 2007 Free Software Foundation, Inc. |
5 | 5 |
6 ;; Author: David Gillespie <daveg@synaptics.com> | 6 ;; Author: David Gillespie <daveg@synaptics.com> |
7 ;; Maintainer: Jay Belanger <belanger@truman.edu> | 7 ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
8 ;; Keywords: convenience, extensions | 8 ;; Keywords: convenience, extensions |
9 ;; Version: 2.1 | 9 ;; Version: 2.1 |
10 | 10 |
11 ;; This file is part of GNU Emacs. | 11 ;; This file is part of GNU Emacs. |
12 | 12 |
399 "lp %s" | 399 "lp %s" |
400 "*Name of command for printing GNUPLOT output; %s = file name to print." | 400 "*Name of command for printing GNUPLOT output; %s = file name to print." |
401 :group 'calc | 401 :group 'calc |
402 :type '(choice (string) (sexp))) | 402 :type '(choice (string) (sexp))) |
403 | 403 |
404 (defvar calc-bug-address "belanger@truman.edu" | 404 (defvar calc-bug-address "jay.p.belanger@gmail.com" |
405 "Address of the maintainer of Calc, for use by `report-calc-bug'.") | 405 "Address of the maintainer of Calc, for use by `report-calc-bug'.") |
406 | 406 |
407 (defvar calc-scan-for-dels t | 407 (defvar calc-scan-for-dels t |
408 "If t, scan keymaps to find all DEL-like keys. | 408 "If t, scan keymaps to find all DEL-like keys. |
409 if nil, only DEL itself is mapped to calc-pop.") | 409 if nil, only DEL itself is mapped to calc-pop.") |
1146 (use-global-map glob) | 1146 (use-global-map glob) |
1147 (use-local-map loc))))) | 1147 (use-local-map loc))))) |
1148 | 1148 |
1149 (defvar calc-alg-map) ; Defined in calc-ext.el | 1149 (defvar calc-alg-map) ; Defined in calc-ext.el |
1150 | 1150 |
1151 (defun calc-version () | |
1152 "Return version of this version of Calc." | |
1153 (interactive) | |
1154 (message (concat "Calc version " calc-version))) | |
1155 | |
1151 (defun calc-mode () | 1156 (defun calc-mode () |
1152 "Calculator major mode. | 1157 "Calculator major mode. |
1153 | 1158 |
1154 This is an RPN calculator featuring arbitrary-precision integer, rational, | 1159 This is an RPN calculator featuring arbitrary-precision integer, rational, |
1155 floating-point, complex, matrix, and symbolic arithmetic. | 1160 floating-point, complex, matrix, and symbolic arithmetic. |
1256 (make-local-variable 'overlay-arrow-string) | 1261 (make-local-variable 'overlay-arrow-string) |
1257 (when buf | 1262 (when buf |
1258 (set (make-local-variable 'calc-main-buffer) buf)) | 1263 (set (make-local-variable 'calc-main-buffer) buf)) |
1259 (when (= (buffer-size) 0) | 1264 (when (= (buffer-size) 0) |
1260 (let ((buffer-read-only nil)) | 1265 (let ((buffer-read-only nil)) |
1261 (insert (propertize (concat "Emacs Calculator v" calc-version | 1266 (insert (propertize (concat "Emacs Calculator Trail\n") |
1262 " by Dave Gillespie\n") | |
1263 'font-lock-face 'italic)))) | 1267 'font-lock-face 'italic)))) |
1264 (run-mode-hooks 'calc-trail-mode-hook)) | 1268 (run-mode-hooks 'calc-trail-mode-hook)) |
1265 | 1269 |
1266 (defun calc-create-buffer () | 1270 (defun calc-create-buffer () |
1267 (set-buffer (get-buffer-create "*Calculator*")) | 1271 (set-buffer (get-buffer-create "*Calculator*")) |