emacs-devel
[Top][All Lists]
Advanced

[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: Sat, 07 Jun 2014 19:28:19 +0200
User-agent: Notmuch/0.17+15~gb65ca8e (http://notmuchmail.org) Emacs/24.4.50.1 (x86_64-unknown-linux-gnu)

On Tue, Jun 03 2014, Stefan Monnier <address@hidden> wrote:
> If useful, we could extend replace-match such that NEWTEXT can be
> a function instead of a string.  That should be easy and clean.

I don't think that would be useful to be honest.  However, what I think
would help is to let STRING be a function which would be called for
every \N in the NEWTEXT.  tildify would then use it as:

  (replace-match end-re-fmt t nil
                 (lambda (num) (regexp-quote (match-string num string))))

end-re-fmt would be a format of a environment end regex such as
"end-\\1", and string would be the text matched by environment open
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]