[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: infloop in skeleton-insert
From: |
Nick Roberts |
Subject: |
Re: infloop in skeleton-insert |
Date: |
Tue, 10 Apr 2007 23:58:10 +1200 |
> skeleton-internal-1 can enter an infinite loop if the ELEMENT argument
> is a negative integer. To reproduce:
>
> emacs -Q
>
> M-x auto-insert-mode RET
>
> C-x C-f ~/tmp/test.tex
>
> Answer yes when asked to perform auto insertion for latex mode.
>
> Hit RET repeatedly.
I can't reproduce this on Emacs 22, although oddly it tells me that the buffer
is not modified when it completes.
> This bug is due to skeleton-internal-1 relying on char-or-string-p to
> return non-nil if its argument is an integer, while in fact,
> char-or-string-p returns nil if its argument is a negative integer.
It doesn't on Emacs 22:
(char-or-string-p -4)
t
and if it does on Emacs 23 then I think that must be the bug.
--
Nick http://www.inet.net.nz/~nickrob
- infloop in skeleton-insert, Lawrence Mitchell, 2007/04/10
- Re: infloop in skeleton-insert,
Nick Roberts <=
- Re: infloop in skeleton-insert, Kenichi Handa, 2007/04/10
- Re: infloop in skeleton-insert, Nick Roberts, 2007/04/10
- Re: infloop in skeleton-insert, Kenichi Handa, 2007/04/10
- Re: infloop in skeleton-insert, Jason Rumney, 2007/04/10
- Re: infloop in skeleton-insert, Nick Roberts, 2007/04/10
- Re: infloop in skeleton-insert, Miles Bader, 2007/04/10
- Re: infloop in skeleton-insert, Kenichi Handa, 2007/04/10
- Re: infloop in skeleton-insert, Nick Roberts, 2007/04/11
- Re: infloop in skeleton-insert, Miles Bader, 2007/04/11
- Re: infloop in skeleton-insert, martin rudalics, 2007/04/10