]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/savehist.el (savehist-save): Preserve shared structure
authorAaron L. Zeng <azeng@janestreet.com>
Tue, 21 Mar 2023 20:07:54 +0000 (16:07 -0400)
committerEli Zaretskii <eliz@gnu.org>
Sat, 25 Mar 2023 12:12:30 +0000 (15:12 +0300)
This avoids ballooning the size of variables that contain
large text properties, such as the 'yank-handler' installed
by 'evil-yank-rectangle', which contains a list of lines in
the string.
* lisp/savehist.el (savehist-save): Enable 'print-circle'.
(Bug#62364)

Copyright-paperwork-exempt: yes

lisp/savehist.el

index b532668f8a426b51c99cd40e27be67704825d7fc..ea8968c771b580611afdafa2cea704bbc6f98153 100644 (file)
@@ -232,8 +232,9 @@ If AUTO-SAVE is non-nil, compare the saved contents to the one last saved,
       savehist-coding-system))
     (run-hooks 'savehist-save-hook)
     (let ((print-length nil)
-         (print-level nil)
-         (print-quoted t))
+          (print-level nil)
+          (print-quoted t)
+          (print-circle t))
       ;; Save the minibuffer histories, along with the value of
       ;; savehist-minibuffer-history-variables itself.
       (when savehist-save-minibuffer-history