]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-digit-dots): Inhibit read-only before erasing minibuffer.
authorJay Belanger <jay.p.belanger@gmail.com>
Mon, 25 Oct 2004 13:57:20 +0000 (13:57 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Mon, 25 Oct 2004 13:57:20 +0000 (13:57 +0000)
lisp/calc/calc-incom.el

index b8bb7ab4f9af3e7cb5cf96d8c587fcc4d846de4d..7dc7f08b4bd594a13be17f88b4e475460bfb3ab4 100644 (file)
        (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)))