3 Dec 2009 18:30
Re: Expanding with hippie-expand
Le 03 décembre 2009, João Távora écrivit : > I can't reproduce this. First, try reproducing with a clean emacs run > (emacs -Q -l yasnippet.el , for example). I've used this simplified startup version but yasnippet no longer work correctly8<------8<------8<------8<------8<------8<------8<------8<------8<------ (setq max-lisp-eval-depth 9999 max-specpdl-size max-lisp-eval-depth) (setq user-init-file (expand-file-name "~/emacs.d/init.el")) (defvar user-init-dir (file-name-directory user-init-file) "") (defun cuid (FILENAME) "" (concat user-init-dir FILENAME)) (setq load-path (append load-path (list (cuid "etc") (cuid "site-lisp")))) ;; http://code.google.com/p/yasnippet/ (when (file-exists-p (cuid "site-lisp/yasnippet")) (add-to-list 'load-path (cuid "site-lisp/yasnippet")) (setq yas/root-directory (cuid "site-lisp/pi-snippets")) (require 'yasnippet) (yas/load-directory yas/root-directory)) (when (locate-library (cuid "site-lisp/php-mode/php-mode.el")) (add-to-list 'load-path (cuid "site-lisp/php-mode/")) (require 'php-mode) (autoload 'php-mode "php-mode" "Major mode for editing PHP code." t) (add-to-list 'auto-mode-alist '("\\.php[345]\\'\\|\\.php\\'\\|\\.phtml\\'" . php-mode))) 8<------8<------8<------8<------8<------8<------8<------8<------8<------ > The enable debug output with > "M-x toggle-debug-on-error" Done ! > and post the backtrace here. Also post the > contents of your "foo" snippet and indicate what mode it applies to. In php-mode: sess<TAB> 8<------8<------8<------8<------8<------8<------8<------8<------8<------ Debug on Error enabled globally Entering debugger... debugger-setup-buffer: Buffer exceeds maximum size 8<------8<------8<------8<------8<------8<------8<------8<------8<------ Nothing else. Retrying after M-x toggle-debug-on-error 8<------8<------8<------8<------8<------8<------8<------8<------8<------ Debug on Error disabled globally cl-safe-expr-p: Lisp nesting exceeds `max-lisp-eval-depth' 8<------8<------8<------8<------8<------8<------8<------8<------8<------ The snippets in php-mode are those found here: http://hg.apgwoz.com/yasnippet-php-mode/ With the directory php-mode make empty, the problem persists ! I don't understand now why Yasnippet does no longer work in php-mode! I don't speak about hippie-expand... Notes: * Yasnippet works in html-mode... * I use the php-mode http://php-mode.sourceforge.net/ Thank for your help, -- -- Philippe Ivaldi. http://www.piprime.fr/ -- You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group. To post to this group, send email to smart-snippet@... To unsubscribe from this group, send email to smart-snippet+unsubscribe <at> googlegroups.com. For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

8<------8<------8<------8<------8<------8<------8<------8<------8<------
(setq max-lisp-eval-depth 9999
max-specpdl-size max-lisp-eval-depth)
(setq user-init-file (expand-file-name "~/emacs.d/init.el"))
(defvar user-init-dir (file-name-directory user-init-file) "")
(defun cuid (FILENAME)
""
(concat user-init-dir FILENAME))
(setq load-path (append load-path (list (cuid "etc")
(cuid "site-lisp"))))
;;
RSS Feed