]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-lib.el
emacs: Fix trimming regexp in notmuch-check-exit-status
[notmuch] / emacs / notmuch-lib.el
index 790136e035594c30aedc77f3e8d4a430b2f9d47d..59b1ce3ffecfaf1e310ac3667446e93cc260d39f 100644 (file)
@@ -438,7 +438,7 @@ You may need to restart Emacs or upgrade your notmuch package."))
        (if err
            ;; We have an error message straight from the CLI.
            (notmuch-logged-error
-            (replace-regexp-in-string "\\s $" "" err) extra)
+            (replace-regexp-in-string "[ \n\r\t\f]*\\'" "" err) extra)
          ;; We only have combined output from the CLI; don't inundate
          ;; the user with it.  Mimic `process-lines'.
          (notmuch-logged-error (format "%s exited with status %s"