diff options
| author | Richard M. Stallman | 1995-03-15 22:51:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-03-15 22:51:56 +0000 |
| commit | 9b8002ba7de817e35ad45116ec8d7e061ced2c1d (patch) | |
| tree | 2d0f930b321ddbf50be31d0644c5f40c6068b3d0 | |
| parent | 514354e97c828423a9295080e560f3407cb5500d (diff) | |
| download | emacs-9b8002ba7de817e35ad45116ec8d7e061ced2c1d.tar.gz emacs-9b8002ba7de817e35ad45116ec8d7e061ced2c1d.zip | |
(edit-options): Make the buffer read-only.
(Edit-options-modify): Cope with that.
| -rw-r--r-- | lisp/options.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/options.el b/lisp/options.el index 4759c102666..26036c3d925 100644 --- a/lisp/options.el +++ b/lisp/options.el | |||
| @@ -53,7 +53,10 @@ | |||
| 53 | (princ (substitute-command-keys | 53 | (princ (substitute-command-keys |
| 54 | (documentation-property sym 'variable-documentation))) | 54 | (documentation-property sym 'variable-documentation))) |
| 55 | (princ "\n;;\n")) | 55 | (princ "\n;;\n")) |
| 56 | (setq vars (cdr vars)))))) | 56 | (setq vars (cdr vars))))) |
| 57 | (save-excursion | ||
| 58 | (set-buffer "*List Options*") | ||
| 59 | (setq buffer-read-only t))) | ||
| 57 | 60 | ||
| 58 | ;;;###autoload | 61 | ;;;###autoload |
| 59 | (defun edit-options () | 62 | (defun edit-options () |
| @@ -119,7 +122,7 @@ For convenience, the characters \\[backward-paragraph] and \\[forward-paragraph] | |||
| 119 | 122 | ||
| 120 | (defun Edit-options-modify (modfun) | 123 | (defun Edit-options-modify (modfun) |
| 121 | (save-excursion | 124 | (save-excursion |
| 122 | (let (var pos) | 125 | (let ((buffer-read-only nil) var pos) |
| 123 | (re-search-backward "^;; \\|\\`") | 126 | (re-search-backward "^;; \\|\\`") |
| 124 | (forward-char 3) | 127 | (forward-char 3) |
| 125 | (setq pos (point)) | 128 | (setq pos (point)) |