]> git.eshelyaron.com Git - emacs.git/commitdiff
(skeleton-internal-1): Use integerp and stringp
authorKenichi Handa <handa@m17n.org>
Fri, 7 Sep 2007 02:14:55 +0000 (02:14 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 7 Sep 2007 02:14:55 +0000 (02:14 +0000)
instead of char-or-string-p to catch -1.

lisp/skeleton.el

index 4425bb0389af3b300f647a4172a452cace1a4c4d..a49fbdcd954e81c2ecb2f7013e79f6dedb4ac57e 100644 (file)
@@ -355,7 +355,7 @@ automatically, and you are prompted to fill in the variable parts.")))
 
 (defun skeleton-internal-1 (element &optional literal recursive)
   (cond
-   ((char-or-string-p element)
+   ((or (integerp element) (stringp element))
     (if (and (integerp element)                ; -num
             (< element 0))
        (if skeleton-untabify