dot/emacs: Cope if `warning-suppress-types' is unbound at startup.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 10 Apr 2020 17:00:28 +0000 (18:00 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 10 Apr 2020 17:00:28 +0000 (18:00 +0100)
This happens in Emacs 26.  I have no idea why.

dot/emacs

index 978cf3a..79d7438 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
                  edit-server-new-frame nil
                  gnuserv-frame t)
            (trap (let ((warning-suppress-types
-                        (cons '(server) warning-suppress-types)))
+                        (cons '(server)
+                              (and (boundp 'warning-suppress-types)
+                                   warning-suppress-types))))
                    (server-start)))
            (trap (progn
                    (require 'edit-server)