GNU bug report logs - #9932
24.0.90; electric pair mode is getting enabled globally , not just for a buffer.

Previous Next

Package: emacs;

Reported by: Yagnesh Raghava Yakkala <yagneshmsc <at> gmail.com>

Date: Tue, 1 Nov 2011 16:09:03 UTC

Severity: wishlist

Found in version 24.0.90

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 9932-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: yagnesh raghava <yagneshmsc <at> gmail.com>
Cc: 9932-done <at> debbugs.gnu.org
Subject: Re: bug#9932: Acknowledgement (24.0.90;
	electric pair mode is getting enabled globally , not just for a
	buffer.)
Date: Fri, 11 Nov 2011 17:12:19 -0500
>> How 'bout a way to turn it off buffer-locally, so you can have it
>> enabled globally but can also disable it in some modes?
>> E.g. the patch below would be enough for that, after which you could do
>> (add-hook 'text-mode-hook
>> (lambda () (set (make-local-variable 'electric-pair-mode) nil)))
>> to turn if off in all modes derived from text-mode.
> This is fine for now.

Great, thanks, I've installed it.

>> We could easily provide this in 24.1, whereas what you suggest would
>> have to wait for 24.2.
> Thanks for the consideration, I would definitely wait to see this in 24.2

To better design the new feature, I'd be interested to hear about your
use case:
- why do you need it enabled in some modes and not others?
- why do you prefer to disable it globally and enable it in some
  specific modes rather than the reverse?
- what distinguishes these different modes?
- is there some particular behavior of electric-pair which you don't
  like, such that if we could somehow fix it, you'd then actually be
  happy to have it enabled everywhere?


        Stefan




This bug report was last modified 13 years and 194 days ago.

Previous Next


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