From cfd5f010e43f79523d349b2940a1625b26ccfdb3 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Thu, 17 Apr 2025 09:13:37 +0200 Subject: [PATCH] savehist: Take care not to set nil --- lisp/savehist.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))) -- 2.39.5