X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/fad2f6858075f49c4c8fd16f0535c287e3f14ac3..63e81ac4472a8e80db5337e53b50d967c67064b1:/lisp/calc/calc-map.el diff --git a/lisp/calc/calc-map.el b/lisp/calc/calc-map.el index 726a500c10..05002a6619 100644 --- a/lisp/calc/calc-map.el +++ b/lisp/calc/calc-map.el @@ -1,26 +1,25 @@ ;;; calc-map.el --- higher-order functions for Calc -;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2004 Free Software Foundation, Inc. +;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, +;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. ;; Author: David Gillespie -;; Maintainer: Jay Belanger +;; Maintainer: Jay Belanger ;; This file is part of GNU Emacs. +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + ;; GNU Emacs is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY. No author or distributor -;; accepts responsibility to anyone for the consequences of using it -;; or for whether it serves any particular purpose or works at all, -;; unless he says so in writing. Refer to the GNU Emacs General Public -;; License for full details. - -;; Everyone is granted permission to copy, modify and redistribute -;; GNU Emacs, but only under the conditions described in the -;; GNU Emacs General Public License. A copy of this license is -;; supposed to have been given to you along with GNU Emacs so you -;; can know your rights and responsibilities. It should be in a -;; file named COPYING. Among other things, the copyright notice -;; and this notice must be preserved on all copies. +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see . ;;; Commentary: @@ -497,6 +496,9 @@ ;;; Return a list of the form (nargs func name) +(defvar calc-get-operator-history nil + "History for calc-get-operator.") + (defun calc-get-operator (msg &optional nargs) (setq calc-aborted-prefix nil) (let ((inv nil) (hyp nil) (prefix nil) (forcenargs nil) @@ -582,7 +584,8 @@ (let* ((calc-dollar-values calc-arg-values) (calc-dollar-used 0) (calc-hashes-used 0) - (func (calc-do-alg-entry "" "Function: "))) + (func (calc-do-alg-entry "" "Function: " nil + 'calc-get-operator-history))) (setq record-entry t) (or (= (length func) 1) (error "Bad format")) @@ -1271,5 +1274,5 @@ (provide 'calc-map) -;;; arch-tag: 980eac49-00e0-4870-b72a-e726b74c7990 +;; arch-tag: 980eac49-00e0-4870-b72a-e726b74c7990 ;;; calc-map.el ends here