From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [BUG] (error "Lisp nesting exceeds `max-lisp-eval-depth'") Date: Tue, 12 Feb 2013 19:55:32 +0100 Message-ID: <86liatjra3.fsf@somewhere.org> References: <867gmdj3x2.fsf@somewhere.org> <87a9r9kdt7.fsf@bzg.ath.cx> <86txphpgyj.fsf@somewhere.org> <87a9r9h1dm.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Bastien, Bastien wrote: > "Sebastien Vauban" writes: > >> After testing: nope, it does not occur when YASnippet is not loaded. > > Now that John H. gave me some directions on using yasnippet, I'm ready > to test further and to hunt your bug. > > Would you mind sharing the minimal yas/org config I need to reproduce > the problem? Let me insist on minimal :) Okaayyy, understood!=C2=A0;-) #+begin_src emacs-lisp (add-to-list 'load-path "~/Public/Repositories/yasnippet") ;; Yet Another Snippet extension for Emacs (require 'yasnippet) ;; root directories that store the snippets (setq yas/root-directory nil) (let ((my-snippets "~/src/yasnippet/snippets") (local-snippets "~/Public/Repositories/yasnippet/snippets")) (when (file-directory-p local-snippets) (add-to-list 'yas/root-directory local-snippets)) ;; the first element is always the user-created snippets directory (when (file-directory-p my-snippets) (add-to-list 'yas/root-directory my-snippets))) ;; enable the YASnippet menu and tab-trigger expansion in *all* ;; buffers (yas/global-mode 1) ;; text that will be used in menu to represent the trigger (setq yas/trigger-symbol " ") ;; allow YASnippet to do its thing in Org files (when (fboundp 'yas/expand) (defun yas/org-very-safe-expand () (let ((yas/fallback-behavior 'return-nil)) (yas/expand))) (add-hook 'org-mode-hook (lambda () (set (make-local-variable 'yas/trigger-key) (kbd "tab")) ;;= needed? (add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand) (define-key yas/keymap (kbd "tab") 'yas/next-field)))) ;; n= eeded? #+end_src Best regards, Seb --=20 Sebastien Vauban