From: Matthew Huggett <mhuggett@zam.att.ne.jp>
Subject: Re: generate some html from directory content
Date: Fri, 21 Jan 2005 19:44:52 +0900 (JST) [thread overview]
Message-ID: <20050121104452.20ACB197BBD@smtp2.att.ne.jp> (raw)
In-Reply-To: <m2brbjks3m.fsf@seki.fr> (message from Sébastien Kirche on Fri, 21 Jan 2005 11:13:17 +0100)
> From: sebastien.kirche@free.fr
> Newsgroups: gnu.emacs.help
> Date: Fri, 21 Jan 2005 11:13:17 +0100
>
> i am looking for an elisp package or routine that could help me to
> generate a list or a table of <a> tags in a html file corresponding
> to the content of a directory.
>
> The directory consist mainly of elisp files with few binaries and
> pics.
>
> I would use such a helper to generate a index file of files and
> then to document that list.
The function 'directory-files' might be useful. It takes the name of
a directory and returns a list of file names.
This needs cleaning up (html header etc.), but just as an example:
(defun html-dir-list (dir)
(interactive "DDirectory name: ")
(set-buffer (get-buffer-create "html directory listing"))
(dolist (x (directory-files dir t))
(insert (concat "<a>" x "</a>"))
(newline)))
Regards,
Matthew
next prev parent reply other threads:[~2005-01-21 10:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-21 10:13 generate some html from directory content Sébastien Kirche
2005-01-21 10:44 ` Matthew Huggett [this message]
2005-01-21 15:20 ` Drew Adams
[not found] <mailman.14439.1106321685.27204.help-gnu-emacs@gnu.org>
2005-01-21 16:19 ` Sébastien Kirche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050121104452.20ACB197BBD@smtp2.att.ne.jp \
--to=mhuggett@zam.att.ne.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).