[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending multiple patches

From: Michal Nazarewicz
Subject: Re: Sending multiple patches
Date: Mon, 02 Jun 2014 21:03:51 +0200
User-agent: Notmuch/0.17+15~gb65ca8e (http://notmuchmail.org) Emacs/ (x86_64-unknown-linux-gnu)

On Mon, Jun 02 2014, Stefan Monnier <address@hidden> wrote:
> - Rather than ("end-" 1), tildify-ignored-environments-alist should
>   probably just use "end-\\1" so it can just use `replace-match'.

I started implementing this which is when I realised that "end-\\1"
won't cut it because contents of the matched capture group must be
escaped with `regexp-quote'.  For example, if we had:

    ("verb\\(.\\)" . "\\1")

and a buffer had:


the end-regex for “verb\” would become just a single back-slash,
i.e. not a valid regex.

Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +--<address@hidden>--<xmpp:address@hidden>--ooO--(_)--Ooo--

reply via email to

[Prev in Thread] Current Thread [Next in Thread]