[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New hook before-region-change-functions wanted
From: |
Stefan Monnier |
Subject: |
Re: New hook before-region-change-functions wanted |
Date: |
Sat, 09 Sep 2017 09:46:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>> The mechanism will also work a little faster with the new hook than
>> without it, given that changes of restriction are more rarely
>> effected than syntax-ppss is called.
> I don't imagine the performance difference will be in any way
> noticeable. It's just one "if".
Furthermore, this `if` will avoid two cache switches when
a save-restriction+widen happens between two syntax-ppss calls.
All in all, I think both approaches would work equally well,
Stefan
- New hook before-region-change-functions wanted, Alan Mackenzie, 2017/09/08
- Re: New hook before-region-change-functions wanted, Eli Zaretskii, 2017/09/08
- Re: New hook before-region-change-functions wanted, Dmitry Gutov, 2017/09/08
- Re: New hook before-region-change-functions wanted,
Stefan Monnier <=
- Re: New hook before-region-change-functions wanted, John Wiegley, 2017/09/08
- Re: New hook before-region-change-functions wanted, Richard Stallman, 2017/09/08
- Re: New hook before-region-change-functions wanted, Andreas Röhler, 2017/09/12
Re: New hook before-region-change-functions wanted, Stefan Monnier, 2017/09/09