]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-compat.el
emacs: Use 'when' instead of 'if' when there is no ELSE part
[notmuch] / emacs / notmuch-compat.el
index 388ef70fc3b31e6d16fa4db8ec47963591b17df2..3340918f366eaacd1a36e19cdef25fc645b88567 100644 (file)
@@ -68,9 +68,9 @@ inlined."
                   ;; This is an inlined copy of help-form-show as that
                   ;; was introduced in emacs 24 too.
                   (let ((msg (eval help-form)))
-                    (if (stringp msg)
-                        (with-output-to-temp-buffer " *Char Help*"
-                          (princ msg))))))
+                    (when (stringp msg)
+                      (with-output-to-temp-buffer " *Char Help*"
+                        (princ msg))))))
             ((memq char chars)
              (setq done t))
             ((and executing-kbd-macro (= char -1))