How to properly create a Srecode template

Tu Do <[email protected]>
Newsgroups gmane.emacs.cedet
Message-ID <CAOEd9jk6gjOwkf9ELnhN8Otyq5nTAfQ8+BFns0JW3JXH6uucUg@mail.gmail.com>
Hi Eric,

I tried to create a template in Common Lisp like this:

set mode "lisp-mode"
>
> context file
>
> template read-file
> ----
> (defun read-data ()
>   (with-open-file (stream "hello")
>     (let ((tmp (loop for line = (read-line stream nil :eof)
>                      until (eq line :eof)
>                      collect (map 'list #'parse-integer
> (split-sequence:split-sequence #\space line)))))
>       (close stream)
>       tmp)))
> ----
>

And put it in ~/.emacs.d/srt/cl.srt

I added the path ~/.emacs.d/srt to srecode-map-load-path variable to load
the template. However, when I ran the command sre-insert in lisp-mode (was
writing Common Lisp), my template didn't show up. But if I put it in one of
the SRE templates that come with CEDET, then I can retrieve my template.

Thanks.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds

_______________________________________________
Cedet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.