emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [yasnippet] Symbol's function definition is void: yas/next-field-gro


From: Karl Voit
Subject: [O] [yasnippet] Symbol's function definition is void: yas/next-field-group
Date: Tue, 9 Aug 2011 13:34:49 +0200
User-agent: slrn/0.9.9 (Linux)

Hi!

I tried to set up yasnippet for me and it seems to me that I do have
problems using yasnippet.

yasnippet v0.6.1
Org-mode current git version

I already found [1] and my .emacs contains:

,----
| ;; ######################################################
| ;;; yasnippet
| ;; http://yasnippet.googlecode.com/svn/trunk/doc/index.html
| (require 'yasnippet)
| (setq yas/root-directory "~/.emacs.d/snippets")
| (yas/load-directory yas/root-directory)
|
| ;; ######################################################
| ;; yasnippet and Org-mode
| ;; from: http://orgmode.org/manual/Conflicts.html
| (add-hook 'org-mode-hook
|                     (lambda ()
|                       (org-set-local 'yas/trigger-key [tab])
|                       (define-key yas/keymap [tab] 'yas/next-field-group)))
| (defun yas/org-very-safe-expand ()
|                  (let ((yas/fallback-behavior 'return-nil)) (yas/expand)))
| (add-hook 'org-mode-hook
|                     (lambda ()
|                         (make-variable-buffer-local 'yas/trigger-key)
|                         (setq yas/trigger-key [tab])
|                         (add-to-list 'org-tab-first-hook 
'yas/org-very-safe-expand)
|                         (define-key yas/keymap [tab] 'yas/next-field)))
`----

Whenever I try to expand a snippet containing $1, $2, ... I just get
to $1 and then there I get «Symbol's function definition is void:
yas/next-field-group» in the *Messages* buffer.

Pressing «Tab» does not jump to $2 or $0.

Does anybody have a clue, what is going on?

Probably this is not even related to Org-mode since I changed to
*scratch* and invoked latex-mode/begin+«Tab» and it does not work
either ...

  1. http://orgmode.org/manual/Conflicts.html
-- 
Karl Voit




reply via email to

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