]> code.delx.au - gnu-emacs/blobdiff - lisp/calc/calc-incom.el
(calc-sec, calc-csc, calc-cot, calc-sech, calc-csch, calc-coth)
[gnu-emacs] / lisp / calc / calc-incom.el
index 2c7a95339bd1d1e21831e9788cd0bd445e45a1ed..691380e18fe7bc5f604f4c4b14e35232145a7dd3 100644 (file)
@@ -1,6 +1,9 @@
-;; Calculator for GNU Emacs, part II [calc-incom.el]
+;;; calc-incom.el --- complex data type input functions for Calc
+
 ;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
-;; Written by Dave Gillespie, daveg@synaptics.com.
+
+;; Author: David Gillespie <daveg@synaptics.com>
+;; Maintainer: Jay Belanger <belanger@truman.edu>
 
 ;; This file is part of GNU Emacs.
 
 ;; file named COPYING.  Among other things, the copyright notice
 ;; and this notice must be preserved on all copies.
 
+;;; Commentary:
 
+;;; Code:
 
 ;; This file is autoloaded from calc-ext.el.
-(require 'calc-ext)
 
+(require 'calc-ext)
 (require 'calc-macs)
 
-(defun calc-Need-calc-incom () nil)
-
-
 ;;; Incomplete forms.
 
 (defun calc-begin-complex ()
                                   (cons 'vec (append (cdr (cdr inc)) stuff)))
                             (list 'incomplete 'vec))))))))
 
+;; The following variables are initially declared in calc.el,
+;; but are used by calc-digit-dots.
+(defvar calc-prev-char)
+(defvar calc-prev-prev-char)
+(defvar calc-digit-value)
+
 (defun calc-digit-dots ()
   (if (eq calc-prev-char ?.)
       (progn
        (if calc-prev-prev-char
            (calcDigit-nondigit)
          (setq calc-digit-value nil)
-         (erase-buffer)
+          (let ((inhibit-read-only t))
+            (erase-buffer))
          (exit-minibuffer)))
     ;; just ignore extra decimal point, anticipating ".."
     (delete-backward-char 1)))
         (error "Interval form is incomplete"))
        (t (error "Object is incomplete"))))
 
+(provide 'calc-incom)
+
+;;; arch-tag: b8001270-4dc7-481b-a3e3-a952e19b390d
 ;;; calc-incom.el ends here