chiark / gitweb /
el/dot-emacs.el (Man-getpage-in-background): Don't try to split atoms.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 22 Jun 2020 10:41:12 +0000 (11:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 22 Jun 2020 10:41:12 +0000 (11:41 +0100)
In particular, the symbol `nil' isn't a string, so check for this
specially.  Conveniently, `nil' is exactly the right list.

el/dot-emacs.el

index 5d4734402bd8ceea0afce235d1d3656317f0e4c6..173537bc36a57046fb3219897fc9fa00f394c795 100644 (file)
@@ -4537,7 +4537,8 @@ (defadvice Man-getpage-in-background
     (around mdw-inhibit-noip (topic) compile activate)
   "Inhibit the `noip' preload hack when invoking `man'."
   (let* ((old-preload (getenv "LD_PRELOAD"))
-        (preloads (save-match-data (split-string old-preload ":")))
+        (preloads (and old-preload
+                       (save-match-data (split-string old-preload ":"))))
         (any nil)
         (filtered nil))
     (save-match-data