emacs-pretest-bug
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]