(custom-save-delete): Don't delete whitespace
authorRichard M. Stallman <rms@gnu.org>
Wed, 6 Jan 1999 08:40:50 +0000 (08:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 6 Jan 1999 08:40:50 +0000 (08:40 +0000)
and comments before the sexp that is replaced.

lisp/cus-edit.el

index 7640f47..61bc962 100644 (file)
@@ -3102,6 +3102,8 @@ Leave point at the location of the call, or after the last expression."
   (goto-char (point-min))
   (catch 'found
     (while t
+      ;; Skip all whitespace and comments.
+      (while (forward-comment 1))
       (let ((start (point))
            (sexp (condition-case nil
                      (read (current-buffer))