From: Stefan Monnier <monnier@iro.umontreal.ca>
To: yagnesh raghava <yagneshmsc@gmail.com>
Cc: 9932-done@debbugs.gnu.org
Subject: 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 [thread overview]
Message-ID: <jwvehxel3cl.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CANptXfPeNxMO8FrUWR_W+0VGGEP=K3Tt3PKtBwakNQOh2PbTuA@mail.gmail.com> (yagnesh raghava's message of "Sat, 12 Nov 2011 04:12:29 +0900")
>> 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
prev parent reply other threads:[~2011-11-11 22:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-01 14:34 bug#9932: 24.0.90; electric pair mode is getting enabled globally , not just for a buffer Yagnesh Raghava Yakkala
2011-11-09 4:23 ` Stefan Monnier
[not found] ` <handler.9932.B.13201637308411.ack@debbugs.gnu.org>
2011-11-11 19:12 ` bug#9932: Acknowledgement (24.0.90; electric pair mode is getting enabled globally , not just for a buffer.) yagnesh raghava
2011-11-11 22:12 ` Stefan Monnier [this message]
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=jwvehxel3cl.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=9932-done@debbugs.gnu.org \
--cc=yagneshmsc@gmail.com \
/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).