bongo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bongo-devel] Need bongo cron job help


From: Daniel Brockman
Subject: Re: [bongo-devel] Need bongo cron job help
Date: Mon, 01 Jan 2007 02:23:32 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Hi Dieter,

> Being an elisp newbie I need some help.

You've come to the right place.  Welcome to the list.

> I was trying to keep my bongo library up-to-date by
> running the following cron job:
>
> emacs -batch -l make-bongo-library.el

That's a cool idea.

> where make-bongo-library.el contains:
>
> ; Make bongo library
>
> (load-file (expand-file-name "~/elisp/bongo-darcs/bongo.el"))
>
> (defun make-bongo-library ()
>   (with-bongo-library-buffer
>     (setq buffer-file-name (expand-file-name "~/bongo.bongo-library"))
>     (setq buffer-file-coding-system 'windows-1252)
>
>     (bongo-insert-directory-tree "c:/Cassettes/")
>   ; (bongo-insert-directory-tree "m:/MP3s/")
>   ; (bongo-insert-directory-tree "n:/")
>
>     (save-buffer)))
>
> (make-bongo-library)
> (kill-emacs)
>
> but all I get is an empty library buffer on the disk.
> What step am I missing?

Your code works for me.  I'm using the following sligthly
modified version:

Attachment: binbfSVhbEQdE.bin
Description: application/emacs-lisp

The only things I changed are (1) the file name of `bongo.el',
and (2) the file name of the directory tree to insert.

This is the output I get:

   wigwam:~$ emacs -Q -batch -l make-bongo-library.el
   Loading /home/daniel/src/bongo/bongo.el (source)...
   Inserting directory tree...
   Inserting directory tree...0%
   Inserting directory tree...12%
   Inserting directory tree...24%
   Inserting directory tree...36%
   Inserting directory tree...48%
   Inserting directory tree...60%
   Inserting directory tree...72%
   Inserting directory tree...84%
   Inserting directory tree...96%
   Inserting directory tree...done
   Wrote /home/daniel/bongo.bongo-library

Are you sure that `bongo-insert-directory-tree' with that
argument ("c:/Cassettes/") works correctly?

What happens if you insert the directory tree manually from
the keyboard (by using `i t' in the library buffer)?

-- 
Daniel Brockman <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]