From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Huggett Newsgroups: gmane.emacs.help Subject: Re: generate some html from directory content Date: Fri, 21 Jan 2005 19:44:52 +0900 (JST) Message-ID: <20050121104452.20ACB197BBD@smtp2.att.ne.jp> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1106304653 4810 80.91.229.6 (21 Jan 2005 10:50:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Jan 2005 10:50:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 21 11:50:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CrwNG-0002oz-00 for ; Fri, 21 Jan 2005 11:50:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrwZJ-0007jD-A5 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Jan 2005 06:03:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CrwUa-0006nM-60 for help-gnu-emacs@gnu.org; Fri, 21 Jan 2005 05:58:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CrwUZ-0006nA-98 for help-gnu-emacs@gnu.org; Fri, 21 Jan 2005 05:58:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrwTm-0006VG-Fk for help-gnu-emacs@gnu.org; Fri, 21 Jan 2005 05:57:26 -0500 Original-Received: from [165.76.15.138] (helo=smtp2.att.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CrwHh-0008Od-NO for help-gnu-emacs@gnu.org; Fri, 21 Jan 2005 05:44:57 -0500 Original-Received: from MATT-DESKTOP (218.231.177.233.eo.eaccess.ne.jp [218.231.177.233]) by smtp2.att.ne.jp (Postfix) with ESMTP id 20ACB197BBD for ; Fri, 21 Jan 2005 19:44:52 +0900 (JST) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from =?iso-8859-1?q?S=E9bastien_Kirche?= on Fri, 21 Jan 2005 11:13:17 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23521 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23521 > 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 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 "" x "")) (newline))) Regards, Matthew