From: Mark Wooding Date: Mon, 22 Jun 2020 10:41:12 +0000 (+0100) Subject: el/dot-emacs.el (Man-getpage-in-background): Don't try to split atoms. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/15e3b2e28dccbb5a6d4337b657320df2636e1e2f?hp=4b7a0fa89382f7d07d5b886712c4fb2eba8911b7 el/dot-emacs.el (Man-getpage-in-background): Don't try to split atoms. In particular, the symbol `nil' isn't a string, so check for this specially. Conveniently, `nil' is exactly the right list. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 5d47344..173537b 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -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