unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: npostavs@users.sourceforge.net, aaronjensen@gmail.com,
	23928@debbugs.gnu.org
Subject: bug#23928: 25.0.95; Performance regression observable with smartparens
Date: Sun, 10 Jul 2016 22:01:29 +0300	[thread overview]
Message-ID: <83furhe2ra.fsf@gnu.org> (raw)
In-Reply-To: <558772bd-cab7-3358-a7f0-4071d338f0f9@yandex.ru> (message from Dmitry Gutov on Sun, 10 Jul 2016 21:42:50 +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	other threads:[~2016-07-10 19:01 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-09 14:56 bug#23928: 25.0.95; Performance regression observable with smartparens Aaron Jensen
2016-07-09 15:53 ` Noam Postavsky
2016-07-09 17:01   ` Eli Zaretskii
2016-07-10  2:55     ` Aaron Jensen
2016-07-10 14:29       ` Eli Zaretskii
2016-07-10 15:58         ` Aaron Jensen
2016-07-10 16:14           ` Eli Zaretskii
2016-07-10 16:53             ` Aaron Jensen
2016-07-10 17:14               ` Eli Zaretskii
2016-07-10 18:42                 ` Dmitry Gutov
2016-07-10 19:01                   ` Eli Zaretskii [this message]
2016-07-10 19:17                     ` Dmitry Gutov
2016-07-10 19:20                       ` Eli Zaretskii
2016-07-10 19:56                         ` Dmitry Gutov
2016-07-11  2:28                           ` Eli Zaretskii
2016-07-11  2:48                             ` Aaron Jensen
2016-07-11  2:49                               ` Aaron Jensen
2016-07-11 14:38                               ` Eli Zaretskii
2016-07-20  4:58                                 ` Aaron Jensen
2016-07-20 14:56                                   ` Eli Zaretskii
2016-07-10 18:49                 ` Aaron Jensen
2016-07-09 16:50 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83furhe2ra.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=23928@debbugs.gnu.org \
    --cc=aaronjensen@gmail.com \
    --cc=dgutov@yandex.ru \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).