Subject: bug#16138: closed (Re: bug#16138: 24.3; skeleton-end-hook not run)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 20 Dec 2013 00:43:03 +0000

Your bug report

#16138: 24.3; skeleton-end-hook not run

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
16138: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16138
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#16138: 24.3; skeleton-end-hook not run
From: Leo Liu <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: Glenn Morris <[email-masked]>, [email-masked]
Date: Fri, 20 Dec 2013 08:41:56 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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

Subject: 24.3; skeleton-end-hook not run
From: Leo Liu <[email-masked]>
To: [email-masked]
Date: Sat, 14 Dec 2013 15:20:32 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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