From 21fa2d07117280f9a0cb6dff42d227a23cdc1b56 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 8 Oct 2021 17:21:11 -0500 Subject: Handle nil --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index 8ec369a..b376d55 100644 --- a/init.el +++ b/init.el @@ -560,7 +560,7 @@ "Return t if at least one regex in RETGEXP-LIST matches STRING, else nil." ;; FINE alphapapa ;P (seq-some (lambda (regexp) - (string-match regexp string)) + (string-match regexp (or string ""))) regexp-list)) (defun flymake-unless () -- cgit 1.4.1-21-gabe81