From 5d85587f5118ee2f6868fff65e0bed484cecc20b Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 25 Feb 2017 23:32:07 -0500 Subject: gnus-open-github-patch: Don't error on failed search --- lisp/km-mail.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/km-mail.el b/lisp/km-mail.el index 45cdc3b..8fa0cfb 100644 --- a/lisp/km-mail.el +++ b/lisp/km-mail.el @@ -112,7 +112,7 @@ A new buffer with the patch contents is opened in another window." (with-current-buffer gnus-original-article-buffer (save-excursion (goto-char (point-min)) - (if (re-search-forward "https://github.com/.*\\.patch") + (if (re-search-forward "https://github.com/.*\\.patch" nil t) (setq url (match-string-no-properties 0)) (user-error "No patch found")))) (with-current-buffer (get-buffer-create bufname) -- cgit v1.2.3