diff lisp/cus-edit.el @ 23999:8c46e3a0623e

(custom-save-delete): Don't delete whitespace and comments before the sexp that is replaced.
author Richard M. Stallman <rms@gnu.org>
date Wed, 06 Jan 1999 08:40:50 +0000
parents a4dd6e536bc1
children 38e309abdbc6
line wrap: on
line diff
--- a/lisp/cus-edit.el	Wed Jan 06 08:09:27 1999 +0000
+++ b/lisp/cus-edit.el	Wed Jan 06 08:40:50 1999 +0000
@@ -3102,6 +3102,8 @@
   (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))