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: problemi with simple ya-snippets Date: Fri, 28 Feb 2014 08:42:17 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1393573344 20901 80.91.229.3 (28 Feb 2014 07:42:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Feb 2014 07:42:24 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 28 08:42:33 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 1WJI5Y-0007Yv-6q for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Feb 2014 08:42:32 +0100 Original-Received: from localhost ([::1]:49646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJI5X-0007VL-P8 for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Feb 2014 02:42:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJI5M-0007VG-J2 for help-gnu-emacs@gnu.org; Fri, 28 Feb 2014 02:42:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJI5L-00056S-L5 for help-gnu-emacs@gnu.org; Fri, 28 Feb 2014 02:42:20 -0500 Original-Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:38386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJI5L-000569-By for help-gnu-emacs@gnu.org; Fri, 28 Feb 2014 02:42:19 -0500 Original-Received: by mail-we0-f172.google.com with SMTP id u56so241268wes.3 for ; Thu, 27 Feb 2014 23:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=Fl02g0CUGT9zrSROd0n6X0iYHhx+SHUIC8SZNrKCX0s=; b=Ki7mjpxl6VzuDdbTOkmmpUx/AL1OuW79DXzkxE275nhlPRaolfgu0SlOwjLJPYQNQZ HWRvKt1Q3/FuZINpwHfg22QXmDFJTAqkzn9DexaBQxLneDbagq5/jnGTRyaPYMFfvNAK 6COo3MNutYw6AEFwpAloI4DnE0G6QRWH4RDXSRTC+c2DeULCme+krU1NuvJ9PbA6wYt5 6Ox/ezw/Wo8g5LuhO48C3LH0t3MxLHgdZTQuHiCIKmW5a99feRK9uz1mk144n+b7eCt0 Br5VPVwdq3DbsLHQaX9BLOS67af/jvptqqpPVcHSf5oQommaJhE6kMJGGFXMqgOQTR5c dbcQ== X-Received: by 10.180.219.66 with SMTP id pm2mr1843674wic.60.1393573337879; Thu, 27 Feb 2014 23:42:17 -0800 (PST) Original-Received: by 10.194.249.40 with HTTP; Thu, 27 Feb 2014 23:42:17 -0800 (PST) X-Google-Sender-Auth: H7LGUafyBcBjrRYZGZglzXDEHdk X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22c 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:96219 Archived-At: 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