bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23928: 25.0.95; Performance regression observable with smartparens


From: Eli Zaretskii
Subject: bug#23928: 25.0.95; Performance regression observable with smartparens
Date: Sun, 10 Jul 2016 22:01:29 +0300

> Cc: npostavs@users.sourceforge.net, 23928@debbugs.gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sun, 10 Jul 2016 21:42:50 +0300
> 
> > Then setting case-fold-search locally in the buffer (with setq-local
> > and its ilk) should do the trick.
> 
> Do you mean something like
> 
> (let (was-local was-value)
>    (unwind-protect
>        (progn
>          (when (local-variable-p 'case-fold-search)
>            (setq was-local t
>                  local-value case-fold-search))
>          (setq-local case-fold-search nil)
>          do-stuff)
>      (if was-local
>          (setq-local case-fold-search was-value)
>        (kill-local-variable 'case-fold-search))))
> 
> ?

Yes, something like that.  I admit I didn't study the code well enough
to figure out the details.

> (Minor modes are generally not expected to leave behind themselves 
> changes buffer-local values of general-purpose variables).

Of course.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]