From: yagnesh raghava <yagneshmsc@gmail.com>
To: 9932@debbugs.gnu.org
Subject: bug#9932: Acknowledgement (24.0.90; electric pair mode is getting enabled globally , not just for a buffer.)
Date: Sat, 12 Nov 2011 04:12:29 +0900 [thread overview]
Message-ID: <CANptXfPeNxMO8FrUWR_W+0VGGEP=K3Tt3PKtBwakNQOh2PbTuA@mail.gmail.com> (raw)
In-Reply-To: <handler.9932.B.13201637308411.ack@debbugs.gnu.org>
Hello Stefan,
Thanks for the reply
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Electric pair mode enables globally. I would rather prefer it to be
>> buffer local.
>
>> I think it would be good to have an electric-pair-mode for a single
>> buffer and an electric-pair-global-mode/global-electric-pair-mode for
>> enabling the feature globally.
>
> 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.
>
> 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
--
YYR
next prev parent reply other threads:[~2011-11-11 19: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 ` yagnesh raghava [this message]
2011-11-11 22:12 ` bug#9932: Acknowledgement (24.0.90; electric pair mode is getting enabled globally , not just for a buffer.) Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANptXfPeNxMO8FrUWR_W+0VGGEP=K3Tt3PKtBwakNQOh2PbTuA@mail.gmail.com' \
--to=yagneshmsc@gmail.com \
--cc=9932@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.