diff --git a/core/core.el b/core/core.el index df4138747..9467207e7 100644 --- a/core/core.el +++ b/core/core.el @@ -424,8 +424,7 @@ in interactive sessions, nil otherwise (but logs a warning)." (let (vars) (with-temp-buffer (insert-file-contents file) - (search-forward "\n\n") - (while (re-search-forward "\n\\([^= \n]+\\)=" nil t) + (while (re-search-forward "\n *[^#] *\\([^= \n]+\\)=" nil t) (save-excursion (let ((var (match-string 1)) (value (buffer-substring-no-properties