diff options
| author | Karl Heuer | 1999-07-25 05:50:42 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-07-25 05:50:42 +0000 |
| commit | cbe8bb8e182a58114e78bbd3826f7c0c9708a79c (patch) | |
| tree | 819865d5697365d06e6a4204bf84ca3d4ca088b3 /lisp | |
| parent | b108eac242e94b396179bc0e58de3952d0abf64f (diff) | |
| download | emacs-cbe8bb8e182a58114e78bbd3826f7c0c9708a79c.tar.gz emacs-cbe8bb8e182a58114e78bbd3826f7c0c9708a79c.zip | |
(custom-save-delete): Avoid error for empty .emacs.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/cus-edit.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 98c0aa6a4d7..ef0e0dc5552 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -3101,7 +3101,10 @@ Leave point at the location of the call, or after the last expression." | |||
| 3101 | (let ((default-major-mode)) | 3101 | (let ((default-major-mode)) |
| 3102 | (set-buffer (find-file-noselect (custom-file)))) | 3102 | (set-buffer (find-file-noselect (custom-file)))) |
| 3103 | (goto-char (point-min)) | 3103 | (goto-char (point-min)) |
| 3104 | (save-excursion (forward-sexp (buffer-size))) ; Test for scan errors. | 3104 | ;; Skip all whitespace and comments. |
| 3105 | (while (forward-comment 1)) | ||
| 3106 | (or (eobp) | ||
| 3107 | (save-excursion (forward-sexp (buffer-size)))) ; Test for scan errors. | ||
| 3105 | (catch 'found | 3108 | (catch 'found |
| 3106 | (while t | 3109 | (while t |
| 3107 | ;; Skip all whitespace and comments. | 3110 | ;; Skip all whitespace and comments. |