[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Erc-discuss] suggestion: have erc-cmd-IGNORE regexp-quote the suppl
From: |
Andreas Schwab |
Subject: |
Re: [Erc-discuss] suggestion: have erc-cmd-IGNORE regexp-quote the supplied name |
Date: |
Thu, 20 Jul 2006 00:15:34 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Eric Hanchrow <address@hidden> writes:
> Often I want to ignore someone whose nick happens to contain
> characters that are special in regular expressions. For example,
> someone's nick was something like
>
> idiot[abcd]
>
> and I ignored him; I was alarmed to continue to see messages from him,
> until I realized that I was not actually ignoring the string
> "idiot[abcd]", but rather the four strings
>
> idiota
> idiotb
> idiotc
> idiotd
>
> So I made this tiny hack.
What's wrong with (erc-cmd-IGNORE "idiot\\[abcd]")?
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."