]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-view-news): Let-bind inhibit-read-only to t, use help-mode.
authorJay Belanger <jay.p.belanger@gmail.com>
Mon, 25 Apr 2005 19:42:44 +0000 (19:42 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Mon, 25 Apr 2005 19:42:44 +0000 (19:42 +0000)
lisp/calc/calc-help.el

index 46b8cec2ac66ea3c716f4022115b07f67693ddd9..2a89bb2b883a498ee83ccbfd24c6ebf6b316d1df 100644 (file)
@@ -393,12 +393,14 @@ C-w  Describe how there is no warranty for Calc."
        (error "Can't locate Calc sources"))
     (calc-quit)
     (switch-to-buffer "*Help*")
-    (erase-buffer)
-    (insert-file-contents (expand-file-name "README" (car path)))
-    (search-forward "Summary of changes")
-    (forward-line -1)
-    (delete-region (point-min) (point))
-    (goto-char (point-min))))
+    (let ((inhibit-read-only t))
+      (erase-buffer)
+      (insert-file-contents (expand-file-name "README" (car path)))
+      (search-forward "Summary of changes")
+      (forward-line -1)
+      (delete-region (point-min) (point))
+      (goto-char (point-min)))
+    (help-mode)))
 
 (defvar calc-help-long-names '((?b . "binary/business")
                               (?g . "graphics")