Re: Washing GitHub emails to include inline patch?

Subject: Re: Washing GitHub emails to include inline patch?

Date: Fri, 22 Sep 2017 10:57:41 -0400

To: Tomi Ollila, jb55@jb55.com

Cc: notmuch@notmuchmail.org

From: Kyle Meyer


Tomi Ollila <tomi.ollila@iki.fi> writes:

> On Thu, Sep 21 2017, Kyle Meyer wrote:
>
>>
>> --8<---------------cut here---------------start------------->8---
>> (defun km/open-github-patch (buffer)
>>   "Find GitHub patch link in BUFFER and show it in a new buffer."
>>   (let ((url
>>          (with-current-buffer buffer
>>            (save-excursion
>>              (goto-char (point-min))
>>              (if (re-search-forward "https://github.com/.*\\.patch" nil t)
>
> Just a read-through thought -- would "https://github[.]com/.*[.]patch" work
> above ?

oops, good catch.  I didn't mean to match any single character with the
first period.

Either your suggestion or "https://github\\.com/.*\\.patch" should work.

-- 
Kyle
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: