From: Jay Belanger Date: Tue, 18 Jan 2005 04:52:55 +0000 (+0000) Subject: (calc-edit-mode): Inhibit read-only when erasing buffer. X-Git-Tag: ttn-vms-21-2-B4~2692 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=48e7c397f3debc587e8605ddeb41a78d95572c16;p=emacs.git (calc-edit-mode): Inhibit read-only when erasing buffer. --- diff --git a/lisp/calc/calc-yank.el b/lisp/calc/calc-yank.el index 53d5946e073..339dfd838a4 100644 --- a/lisp/calc/calc-yank.el +++ b/lisp/calc/calc-yank.el @@ -460,7 +460,8 @@ To cancel the edit, simply kill the *Calc Edit* buffer." (setq calc-restore-trail (get-buffer-window (calc-trail-buffer))) (make-local-variable 'calc-allow-ret) (setq calc-allow-ret allow-ret) - (erase-buffer) + (let ((inhibit-read-only t)) + (erase-buffer)) (add-hook 'kill-buffer-hook (lambda () (let ((calc-edit-handler nil)) (calc-edit-finish t))