GNU bug report logs - #23928
25.0.95; Performance regression observable with smartparens

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Sat, 9 Jul 2016 14:58:02 UTC

Severity: normal

Tags: moreinfo

Found in version 25.0.95

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 23928 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>, Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 23928 <at> debbugs.gnu.org, npostavs <at> users.sourceforge.net
Subject: Re: bug#23928: 25.0.95; Performance regression observable with
 smartparens
Date: Sun, 10 Jul 2016 21:42:50 +0300
On 07/10/2016 08:14 PM, Eli Zaretskii wrote:

>>  Does smartparens really care about this? Why?
>>
>> I’d imagine because of things like ruby’s do/end. It wouldn’t want to match DO/Do/etc.
>
> 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))))

?

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




This bug report was last modified 8 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.