From 8360a3dc8f702c52a4b411927369fba96efd6024 Mon Sep 17 00:00:00 2001 From: TEC Date: Sat, 27 Feb 2021 02:52:08 +0800 Subject: [PATCH] Function was pushed in an incomplete/invalid state So let's fill in the gaps --- config.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index da492d7..0178cd6 100644 --- a/config.org +++ b/config.org @@ -5060,15 +5060,15 @@ or no selection is made: nil is returned." default-value) (setq values (mapcar (lambda (value) - (if ((string-match-p (regexp-quote value) default)) + (if (string-match-p (regexp-quote value) default) (setq default-value (concat value " " (propertize "(default)" 'face 'font-lock-doc-face))) value)) values)) (let ((selection (ivy-read question values :preselect default-value))) - (unless ((string-match-p "(default)$" selection) - (string= "" selection)) + (unless (or (string-match-p "(default)$" selection) + (string= "" selection)) selection)))) #+end_src