Advertisement
Guest User

Error from function

a guest
May 24th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.74 KB | None | 0 0
  1. Debugger entered--Lisp error: (wrong-type-argument integerp nil)
  2.   substring("abc def" nil 1)
  3.   (let ((first-char (substring string nil 1)) (rest-str (substring string 1))) (concat (capitalize first-char) rest-str))
  4.   (progn (let ((first-char (substring string nil 1)) (rest-str (substring string 1))) (concat (capitalize first-char) rest-str)))
  5.   (if (and string (> (length string) 0)) (progn (let ((first-char (substring string nil 1)) (rest-str (substring string 1))) (concat (capitalize first-char) rest-str))))
  6.   my/capitalize-first-char("abc def")
  7.   eval((my/capitalize-first-char "abc def") nil)
  8.   eval-expression((my/capitalize-first-char "abc def") nil)
  9.   call-interactively(eval-expression nil nil)
  10.   command-execute(eval-expression)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement