]> git.eshelyaron.com Git - emacs.git/commitdiff
(edit-options): Make the buffer read-only.
authorRichard M. Stallman <rms@gnu.org>
Wed, 15 Mar 1995 22:51:56 +0000 (22:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 15 Mar 1995 22:51:56 +0000 (22:51 +0000)
(Edit-options-modify): Cope with that.

lisp/options.el

index 4759c10266622809d096d82c148c4198bc7667f2..26036c3d9250f0fa8af3e49b722634e6770bc2ce 100644 (file)
          (princ (substitute-command-keys 
                  (documentation-property sym 'variable-documentation)))
          (princ "\n;;\n"))
-       (setq vars (cdr vars))))))
+       (setq vars (cdr vars)))))
+  (save-excursion
+    (set-buffer "*List Options*")
+    (setq buffer-read-only t)))
 
 ;;;###autoload
 (defun edit-options ()
@@ -119,7 +122,7 @@ For convenience, the characters \\[backward-paragraph] and \\[forward-paragraph]
 
 (defun Edit-options-modify (modfun)
   (save-excursion
-   (let (var pos)
+   (let ((buffer-read-only nil) var pos)
      (re-search-backward "^;; \\|\\`")
      (forward-char 3)
      (setq pos (point))