yasnippet errors on emacs.app on mac ox lion

89 views
Skip to first unread message

Qzi chiu

unread,
Dec 14, 2012, 7:36:49 AM12/14/12
to smart-...@googlegroups.com
;; yasnippet                                                                    
(add-to-list 'load-path
              "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(setq yas/snippet-dirs '("~/.emacs.d/plugins/yasnippet/snippets""~/.emacs.d/plu\
gins/yasnippet/extras/imported"))
(setq yas/prompt-functions
      '(yas/dropdown-prompt yas/x-prompt yas/completing-prompt yas/ido-prompt y\
as/no-prompt))
(yas-global-mode 1)
(yas-minor-mode-on)


error is below:

Debugger entered--Lisp error: (wrong-number-of-arguments called-interactively-p 1)
  (called-interactively-p (quote interactive))
  (yas--called-interactively-p (quote interactive))
  (if (yas--called-interactively-p (quote interactive)) (progn (yas--message 3 "Loaded snippets from %s." top-level-dir)))
  (when (yas--called-interactively-p (quote interactive)) (yas--message 3 "Loaded snippets from %s." top-level-dir))
  yas-load-directory("~/.emacs.d/plugins/yasnippet/extras/imported" t)
  (cond ((file-directory-p directory) (yas-load-directory directory ...) (if nojit ... ...)) (t (push ... errors)))
  (while --cl-dolist-temp-- (setq directory (car --cl-dolist-temp--)) (cond (... ... ...) (t ...)) (setq --cl-dolist-temp-- (cdr --cl-dolist-temp--)))
  (let ((--cl-dolist-temp-- ...) directory) (while --cl-dolist-temp-- (setq directory ...) (cond ... ...) (setq --cl-dolist-temp-- ...)) nil)
  (catch (quote --cl-block-nil--) (let (... directory) (while --cl-dolist-temp-- ... ... ...) nil))
  (cl-block-wrapper (catch (quote --cl-block-nil--) (let ... ... nil)))
  (block nil (let (... directory) (while --cl-dolist-temp-- ... ... ...) nil))
  (dolist (directory (reverse ...)) (cond (... ... ...) (t ...)))
  (if yas-snippet-dirs (dolist (directory ...) (cond ... ...)) (call-interactively (quote yas-load-directory)))
  (let (errors) (if yas-snippet-dirs (dolist ... ...) (call-interactively ...)) errors)
  yas--load-snippet-dirs(nil)
  (setq errors (yas--load-snippet-dirs interactive))
  (let ((errors) (snippet-editing-buffers ...)) (when snippet-editing-buffers (if interactive ... ...)) (setq yas--tables (make-hash-table)) (setq yas--parents (make-hash-table)) ($
  (catch (quote abort) (let (... ...) (when snippet-editing-buffers ...) (setq yas--tables ...) (setq yas--parents ...) (setq yas--menu-table ...) (setq yas--scheduled-jit-loads ..$
  yas-reload-all()
  (progn (yas-reload-all))
  (if yas-global-mode (progn (yas-reload-all)))
  (when yas-global-mode (yas-reload-all))
  yas--global-mode-reload-with-jit-maybe()
  run-hooks(yas-global-mode-hook yas-global-mode-on-hook)
  yas--global-mode-reload-with-jit-maybe()
  run-hooks(yas-global-mode-hook yas-global-mode-on-hook)
  yas-global-mode(1)
  eval-buffer(#<buffer  *load*> nil "/Users/qzi/.emacs" nil t)  ; Reading at buffer position 821
  load-with-code-conversion("/Users/qzi/.emacs" "/Users/qzi/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\313\316#\203/^@\317\202A^@\315\202A^@   \320=\203=^@\321\202A^@\307^$
  command-line()
  normal-top-level()




Joao

unread,
Dec 16, 2012, 10:32:17 AM12/16/12
to smart-...@googlegroups.com
Maybe open this in the github issue tracker. Also don't forget to include the exact emacs versions and yasnippet versions you are using.

For best results (speed of response), read https://github.com/capitaomorte/yasnippet#important-note-regarding-bug-reporting carefully before submitting the error.
Reply all
Reply to author
Forward
0 new messages