From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: andrea Newsgroups: gmane.emacs.help Subject: Re: yasnippet losing default snippets Date: Sat, 23 Jan 2010 11:57:40 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264244330 25013 80.91.229.12 (23 Jan 2010 10:58:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2010 10:58:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 23 11:58:43 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYdhS-0008IM-VB for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jan 2010 11:58:43 +0100 Original-Received: from localhost ([127.0.0.1]:47828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYdhT-0007Xz-V0 for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jan 2010 05:58:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYdgw-0007X4-Pp for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 05:58:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYdgs-0007VM-Q9 for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 05:58:10 -0500 Original-Received: from [199.232.76.173] (port=37790 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYdgs-0007VI-Kn for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 05:58:06 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:34222) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NYdgs-0004Bc-6J for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 05:58:06 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NYdgo-00089M-El for help-gnu-emacs@gnu.org; Sat, 23 Jan 2010 11:58:02 +0100 Original-Received: from ip116-027.hgracht.rwth-aachen.de ([134.130.116.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Jan 2010 11:58:02 +0100 Original-Received: from andrea.crotti.0 by ip116-027.hgracht.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Jan 2010 11:58:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip116-027.hgracht.rwth-aachen.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin) Cancel-Lock: sha1:VesKfucByp7fxU73TffAWaH2bxQ= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71396 Archived-At: andrea writes: > A strange thing happened, now yasnippet is only loading my personal > snippets and not anymore the defaults one. > My configuration is pretty simple > > (require 'yasnippet) > > (setq yas/root-directory > '("~/.emacs.d/my-snippets/text-mode/" > "~/.emacs.d/yasnippet/snippets/")) > > ;; Maybe needed to set to fixed for some modes > (setq yas/indent-line 'auto) > > (yas/initialize) > > (setq yas/ignore-filenames-as-triggers t) > > (mapc 'yas/load-directory yas/root-directory) > > ;; don't make backups in the snippet folder, they mess up yasnippet > ;; Should this really go here? > (add-to-list 'backup-directory-alist '("/my-snippets/" . "/tmp/")) > > and it always worked. > I can see the snippets loaded from the menu and if I click on them they > work, but if I try to expand the right keys it doesn't find any > completion. > > I also tried to load only subdirectories for modes (maybe I modified > something) but it's the same, and I don't get any error message. > What could that be? Strange, also updating yasnippet or just loading the default configuration doesn't make any difference, very wierd, only my own snippets are working...