Dustin Lee wrote:
I have the following section in my .emacs
...
(global-set-key (kbd "M-(") 'skeleton-pair-insert-maybe)
(setq skeleton-pair 1)
This works fine for emacs 21. I'm trying out emacs 22 and when I
press M-( instead of the expected "()" I get "\250\250".
Any ideas?
As far as I can see, skelton-pair-insert-maybe expects to be bound to
the first character in the pair.
The code above works if you use "ESC (", since skeleton-pair-insert sees
the ( as the last key pressed, but if you use Alt-(, then you need to
hold Alt down while you press the (, so the last keypress is different.