unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* yasnippet doesn't work after switching to github version
@ 2011-11-17  7:51 Tassilo Horn
  2011-11-17 17:18 ` Memnon Anon
  0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2011-11-17  7:51 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I've used yasnippet from code.google.com's svn for a long time.  Now
I've seen that they've moved over to github.  So I cloned

  git://github.com/capitaomorte/yasnippet.git

and am now using that.  But unfortunately, my snippets don't trigger,
although C-h k TAB says its bound to `yas/expand'.

My configuration is this:

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/repos/el/yasnippet/")
(require 'yasnippet)
(yas/initialize)
(setq yas/snippet-dirs "~/repos/el/yasnippets/")
(yas/reload-all)
--8<---------------cut here---------------end--------------->8---

In ~/repos/el/yasnippets/, there are my custom snippets that used to
work.  For example, there are snippets for message-mode.

--8<---------------cut here---------------start------------->8---
  /home/horn/repos/el/yasnippets:
  total used in directory 16K available 192855692
  drwxr-xr-x  4 horn horn 4,0K 23. Jul 22:41 .
  drwxr-xr-x 18 horn horn 4,0K 16. Nov 08:17 ..
  drwxr-xr-x  2 horn horn 4,0K 23. Jul 22:41 message-mode

  /home/horn/repos/el/yasnippets/message-mode:
  total used in directory 40K available 192855692
  drwxr-xr-x 2 horn horn 4,0K 23. Jul 22:41 .
  drwxr-xr-x 4 horn horn 4,0K 23. Jul 22:41 ..
  -rw-r--r-- 1 horn horn   91 23. Jul 22:41 b
  -rw-r--r-- 1 horn horn  109 23. Jul 22:41 br
  -rw-r--r-- 1 horn horn  109 23. Jul 22:41 bw
  -rw-r--r-- 1 horn horn   95 23. Jul 22:41 g
  -rw-r--r-- 1 horn horn   83 23. Jul 22:41 h
  -rw-r--r-- 1 horn horn   89 23. Jul 22:41 ha
  -rw-r--r-- 1 horn horn   89 23. Jul 22:41 he
  -rw-r--r-- 1 horn horn  111 23. Jul 22:41 vg
--8<---------------cut here---------------end--------------->8---

That's the `b' file for example:

--8<---------------cut here---------------start------------->8---
#contributor : Tassilo Horn <tassilo@member.fsf.org>
#name : Bye, Tassilo
# --
Bye,
Tassilo
--8<---------------cut here---------------end--------------->8---

Comparing that to the snippets that ship with yasnippet, the syntax and
structure of the snippet dir seems correct.

Any idea what's wrong or where I should start debugging.

Bye,
Tassilo (typed completely, not expanded :-()
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: yasnippet doesn't work after switching to github version
  2011-11-17  7:51 yasnippet doesn't work after switching to github version Tassilo Horn
@ 2011-11-17 17:18 ` Memnon Anon
  2011-11-17 18:51   ` Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Memnon Anon @ 2011-11-17 17:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Tassilo,

Tassilo Horn <tassilo@member.fsf.org> writes:
> That's the `b' file for example:
>
> #contributor : Tassilo Horn <tassilo@member.fsf.org>
> #name : Bye, Tassilo
> # --
> Bye,
> Tassilo
>
> Comparing that to the snippets that ship with yasnippet, the syntax and
> structure of the snippet dir seems correct.
>
> Any idea what's wrong or where I should start debugging.

I did the same switch a few days ago.
Seems like the "Filename=Abbrev Key" format is about to be obsolete.

When my snipppets wouldn't expand, I added the `# key: ' directive,
to all my snippets... now it works.

hth
Memnon




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: yasnippet doesn't work after switching to github version
  2011-11-17 17:18 ` Memnon Anon
@ 2011-11-17 18:51   ` Tassilo Horn
  0 siblings, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2011-11-17 18:51 UTC (permalink / raw)
  To: help-gnu-emacs

Memnon Anon <gegendosenfleisch@googlemail.com> writes:

Hi Memnon!

>> That's the `b' file for example:
>>
>> #contributor : Tassilo Horn <tassilo@member.fsf.org>
>> #name : Bye, Tassilo
>> # --
>> Bye,
>> Tassilo
>>
>> Comparing that to the snippets that ship with yasnippet, the syntax
>> and structure of the snippet dir seems correct.
>>
>> Any idea what's wrong or where I should start debugging.
>
> I did the same switch a few days ago.
> Seems like the "Filename=Abbrev Key" format is about to be obsolete.
>
> When my snipppets wouldn't expand, I added the `# key: ' directive,
> to all my snippets... now it works.

Ah, indeed!  I've added a key in all files, now everything works fine.
Thanks a ton.

Bye,
Tassilo
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-17 18:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17  7:51 yasnippet doesn't work after switching to github version Tassilo Horn
2011-11-17 17:18 ` Memnon Anon
2011-11-17 18:51   ` Tassilo Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).