[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scan of regexps in emacs
From: |
Paul Eggert |
Subject: |
Re: Scan of regexps in emacs |
Date: |
Mon, 11 Mar 2019 15:49:53 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 |
On 3/11/19 1:51 AM, Mattias Engdegård wrote:
> - (if (looking-at iso2022-gb-designation)
> + (if (looking-at "\e\\$A")
>
> What about (regexp-quote iso2022-gb-designation) instead, possibly hoisted?
> (Of course the reader then wonders why iso2022-ascii-designation isn't
> quoted. Oh dear.)
I went through exactly the same thought processes. As variables like
iso2022-gb-designation are not really intended to be changed, I figured
it was OK to simply expand it inline by hand.
- Re: Scan of regexps in emacs, (continued)