]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/ada-mode/gpr-skel.el
* packages/ada-mode: Miscellaneous cleanups.
[gnu-emacs-elpa] / packages / ada-mode / gpr-skel.el
old mode 100755 (executable)
new mode 100644 (file)
index 2ddc5d1..9990f09
@@ -213,15 +213,15 @@ it is a name, and use the word before that as the token."
       ;; hippie is asking us to try the "next" completion; we don't have one
       nil
     (let ((pos (point))
-         (undo-len (length pending-undo-list)))
+         (undo-len (if (sequencep pending-undo-list) (length pending-undo-list) 0)))
       (undo-boundary)
       (condition-case nil
          (progn
            (skeleton-expand)
            t)
-       ('error
+       (error
         ;; undo hook action if any
-        (unless (= undo-len (length pending-undo-list))
+        (unless (= undo-len (if (sequencep pending-undo-list) (length pending-undo-list) 0))
           (undo))
 
         ;; undo motion