From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: problemi with simple ya-snippets Date: Mon, 3 Mar 2014 14:23:45 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1393853033 28951 80.91.229.3 (3 Mar 2014 13:23:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2014 13:23:53 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 03 14:24:02 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WKSqe-0004Y3-PF for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Mar 2014 14:24:00 +0100 Original-Received: from localhost ([::1]:39721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKSqe-0004pC-96 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Mar 2014 08:24:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKSqT-0004ow-GE for help-gnu-emacs@gnu.org; Mon, 03 Mar 2014 08:23:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKSqR-0003uM-9T for help-gnu-emacs@gnu.org; Mon, 03 Mar 2014 08:23:49 -0500 Original-Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:33263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKSqR-0003r0-1N for help-gnu-emacs@gnu.org; Mon, 03 Mar 2014 08:23:47 -0500 Original-Received: by mail-wg0-f51.google.com with SMTP id a1so3144825wgh.34 for ; Mon, 03 Mar 2014 05:23:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=DxZUunwOWyvw6yl2oGmNtd2lbuBHKLiclMD+Hw5RkPc=; b=X2nkkMnDjLpmbZIycgApF5rGV4HF/l1GYNsma9seDsOE1ElrWjkjGcxwh+Wct1XZp0 g25tklz/Re2pXfDoQTZpdjhmULWpRIf9WHVviV1Q6GrvnTAEbA7BaC6ue0X7TY8Ttad7 CcV7LFsvG8jb3uZq54ImaS9l5wyQL+GEjeoUXvZ0xAc/+Q4pbXfAyVI9p6vUhYiozqpb eV9L9xr8YKNEKmbjN3iqNjOx8b/KgDLVGMwY8yUZ1usjToK56TAZ17rTy4DarNXRbI/j 2Tz+Nrl+x7VIXZk6iifz4ILw/6ujQQkVW7NzCvBBupRl1QYaj2AZWRIY/jDFE3n2yWsU 99Vw== X-Received: by 10.194.108.41 with SMTP id hh9mr5890261wjb.89.1393853025162; Mon, 03 Mar 2014 05:23:45 -0800 (PST) Original-Received: by 10.194.249.40 with HTTP; Mon, 3 Mar 2014 05:23:45 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: 9jaOWDZStQ7OFEMXl9Q7AanroNk X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96244 Archived-At: I'm still fightining with this snippet problem. I've found that when I do execute yas/reload-all I got the following: [yas] Loaded /home/luca/.emacs.d/elpa/yasnippet-0.8.0/snippets [yas] Check your `yas-snippet-dirs': ~/.emacs.d/snippets is not a directory [yas] Reloaded everything... (some errors, check *Messages*). and my yasnippet installation is into ~/.emacs.d/elpa/yasnippet-0.8.0 (and "snippets" is under such directory). The yas-snippet-directories has the following value: ("~/.emacs.d/snippets" "/home/luca/.emacs.d/elpa/yasnippet-0.8.0/snippets") but this should not be the source of the error, I suppose. Any idea? Thanks, Luca On Fri, Feb 28, 2014 at 8:42 AM, Luca Ferrari wrote: > Hi all, > I'm trying to configure a couple of simple snippets for PHP, as follows: > > # name: foreach ... { ... } > # key: fore > # -- > foreach ( \$${1:array} as \$${2:current_element} ) { > $0 > } > > > # name: foreach ... { ... } > # key: kfor > # -- > foreach ( array_keys( \$${1:array} ) as \$${2:current_key} ) { > $0 > } > > > stored respectively into the snippets directory as php/fore and php/kfor. > After that I do yas/reload-all and try my new snippets. Pressing tab > has no effect, while calling M-x yas-expand works for the fore snippet > but not for the kfor. Any idea about what am I missing? > I'm running yasnippet 0.8 installed via elpa on emacs 24.3.1. > > Thanks, > Luca