]> git.notmuchmail.org Git - notmuch/commitdiff
test/emacs: add workaround for Emacs 30 pp changes
authorDavid Bremner <david@tethera.net>
Tue, 25 Feb 2025 11:25:59 +0000 (07:25 -0400)
committerDavid Bremner <david@tethera.net>
Tue, 25 Feb 2025 20:51:00 +0000 (16:51 -0400)
This relies on the fact that setting pp-default-function has no effect
for Emacs <30.

(cherry picked from commit e3d4721b1ba4836c7646e057b50123fe994652eb)

test/test-lib.el

index 4cfb8ef163aac196558c81adae112091661036ff..bf1fab66ff549286b515ba480cb9d2fe537ff66b 100644 (file)
@@ -33,6 +33,9 @@
 
 (require 'cl-lib)
 
+;; Use old pretty print algorithm, so tests don't break with Emacs 30
+(setq-default pp-default-function 'pp-28)
+
 ;; Ensure that the dynamic variables that are defined by this library
 ;; are defined by the time that we let-bind them.  This is needed
 ;; because starting with Emacs 27 undeclared variables in evaluated