From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: [PATCH] Small improvement of maintainability of link escaping Date: Sat, 5 Oct 2013 15:31:09 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a11c2bb449386be04e7fe6efe Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSRwz-000781-6O for emacs-orgmode@gnu.org; Sat, 05 Oct 2013 09:31:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSRws-0003Pj-Ef for emacs-orgmode@gnu.org; Sat, 05 Oct 2013 09:31:17 -0400 Received: from mail-qa0-x22b.google.com ([2607:f8b0:400d:c00::22b]:48145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSRws-0003Pf-8i for emacs-orgmode@gnu.org; Sat, 05 Oct 2013 09:31:10 -0400 Received: by mail-qa0-f43.google.com with SMTP id k15so1861016qaq.16 for ; Sat, 05 Oct 2013 06:31:09 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --001a11c2bb449386be04e7fe6efe Content-Type: text/plain; charset=ISO-8859-1 Sorry, I attached the wrong patch (the other one that is waiting in another thread), here again. --001a11c2bb449386be04e7fe6efe Content-Type: text/plain; charset=US-ASCII; name="0001-Small-improvement-of-maintainability-of-link-escapin.patch.txt" Content-Disposition: attachment; filename="0001-Small-improvement-of-maintainability-of-link-escapin.patch.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hmevq48k1 RnJvbSA2ZDVmNjAzMDU4MjExYWRlM2I1ZGIxMThjYjNhN2QwNGZiZjUyYTZlIE1vbiBTZXAgMTcg MDA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