From 4b7a0fa89382f7d07d5b886712c4fb2eba8911b7 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 22 Jun 2020 11:40:30 +0100 Subject: [PATCH] el/dot-emacs.el (Man-getpage-in-background): Save match-data around loop. Rather than for each item we check. --- el/dot-emacs.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 75e39a5..5d47344 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -4540,12 +4540,12 @@ there is sadness." (preloads (save-match-data (split-string old-preload ":"))) (any nil) (filtered nil)) - (while preloads - (let ((item (pop preloads))) - (if (save-match-data - (string-match "\\(/\\|^\\)noip\.so\\(:\\|$\\)" item)) - (setq any t) - (push item filtered)))) + (save-match-data + (while preloads + (let ((item (pop preloads))) + (if (string-match "\\(/\\|^\\)noip\.so\\(:\\|$\\)" item) + (setq any t) + (push item filtered))))) (if any (unwind-protect (progn -- 2.11.0