From: Eshel Yaron Date: Thu, 17 Apr 2025 07:13:37 +0000 (+0200) Subject: savehist: Take care not to set nil X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cfd5f010e43f79523d349b2940a1625b26ccfdb3;p=emacs.git savehist: Take care not to set nil --- diff --git a/lisp/savehist.el b/lisp/savehist.el index cb680dcfd9b..2ffb6731be6 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el @@ -222,6 +222,7 @@ Normally invoked by calling `savehist-mode' to unset the minor mode." (savehist--manage-timer)) (defvar savehist--has-given-file-warning nil) + (defun savehist-save () "Save the values of minibuffer history variables. Unbound symbols referenced in `savehist-additional-variables' are ignored." @@ -242,7 +243,7 @@ Unbound symbols referenced in `savehist-additional-variables' are ignored." (prin1 (seq-keep (lambda (sym) - (and (boundp sym) + (and sym (boundp sym) (not (memq sym savehist-ignored-variables)) (readablep (symbol-value sym)) (cons sym (symbol-value sym))))