unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* pair-mode: remove "(" from pair-mode-chars when in python-mode.
@ 2008-12-16 14:10 Livin Stephen Sharma
  2008-12-18  4:05 ` Kevin Rodgers
  2008-12-18 10:00 ` Livin Stephen Sharma
  0 siblings, 2 replies; 3+ messages in thread
From: Livin Stephen Sharma @ 2008-12-16 14:10 UTC (permalink / raw)
  To: emacs help - gnu

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]

Hi. How can I turn OFF the pair-mode char being inserted ONLY for "("
 ( but NOT for the other quote/braces/etc chars ) .


Details...

 [[[ I don't know lisp. ]]]

... I'm trying to have pair-mode ON in python-mode, BUT not have ")"
auto-inserted when I type "(".

 For other characters like

> [
>
{
>
<
>
'
>
"
>
etc, I DO want pair-mode to provide the matching pair.


I'd been at it (trial-and-error) for some time with no progress, so I tried
this to try to see ANY change in behaviour:

  (make-variable-buffer-local 'pair-mode-chars)
>
  (make-variable-buffer-local 'pair-mode-map)
>

>   (set 'pair-mode-chars '(91))
>
  (set 'pair-mode-map '(keymap (91 . skeleton-pair-insert-maybe)))
>

C-h v pair-mode-chars _does_ show this:

.. Its value is (91)
>
>

>
>
Local in buffer HelloBrian.py; global value is
>
>
(40 91 123 60 2219 96 34 39) ...
>
>


But even so, the matching character being inserted for ALL of these:

> <{("'`
>

I expected pair-mode be working only for "[" ?

I'd appreciate help on this.

[-- Attachment #2: Type: text/html, Size: 6977 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-18 10:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16 14:10 pair-mode: remove "(" from pair-mode-chars when in python-mode Livin Stephen Sharma
2008-12-18  4:05 ` Kevin Rodgers
2008-12-18 10:00 ` Livin Stephen Sharma

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).