all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michal Nazarewicz <mina86@mina86.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Sending multiple patches
Date: Mon, 02 Jun 2014 21:03:51 +0200	[thread overview]
Message-ID: <xa1t7g4zkuaw.fsf@mina86.com> (raw)
In-Reply-To: <jwv4n038o3p.fsf-monnier+emacs@gnu.org>

On Mon, Jun 02 2014, Stefan Monnier <monnier@iro.umontreal.ca> 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:

    verb\foo\

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 +--<mpn@google.com>--<xmpp:mina86@jabber.org>--ooO--(_)--Ooo--



  parent reply	other threads:[~2014-06-02 19:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-02  8:35 Sending multiple patches Michal Nazarewicz
2014-06-02 13:17 ` Stefan Monnier
2014-06-02 13:24   ` David Kastrup
2014-06-02 16:15     ` Stefan Monnier
2014-06-02 17:58       ` Yuri Khan
2014-06-02 15:47   ` Glenn Morris
2014-06-02 18:33   ` Michal Nazarewicz
2014-06-02 19:11     ` Stefan Monnier
2014-06-03  6:28       ` Michal Nazarewicz
2014-06-03 13:25         ` Stefan Monnier
2014-06-07 17:28           ` Michal Nazarewicz
2014-06-08  1:26             ` Stefan Monnier
2014-06-07 15:05         ` Herring, Davis
2014-06-02 19:03   ` Michal Nazarewicz [this message]
2014-06-03  0:00     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xa1t7g4zkuaw.fsf@mina86.com \
    --to=mina86@mina86.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.