--- Begin Message ---
Subject: |
24.3; skeleton-end-hook not run |
Date: |
Sat, 14 Dec 2013 15:20:32 +0800 |
I had to make use of skeleton-end-hook and was surprised to find that it
actually doesn't work.
1. Emacs -q
2. (setq skeleton-pair t)
3. (global-set-key "(" 'skeleton-pair-insert-maybe)
4. (add-hook 'skeleton-end-hook (lambda () (error "bomb!!!")))
now try ( to trigger skeleton-pair-insert-maybe in some buffer and
nothing should happen.
Leo
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#16138: 24.3; skeleton-end-hook not run |
Date: |
Fri, 20 Dec 2013 08:41:56 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.9.1) |
Version: 24.4
On 2013-12-19 21:38 +0800, Stefan Monnier wrote:
> Because the default value inserts a newline, which is not desired for
> paren-pairs.
I fix it by let-binding skeleton-end-newline to nil instead. It is odd
that skeleton-end-hook is not called at all.
Leo
--- End Message ---