From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Org-publish - too many index.org files Date: Sun, 02 Nov 2008 06:50:21 -0600 Message-ID: References: <877i7qceeh.fsf@fastmail.fm> <6F4A1881-83B7-4216-90A9-E3C81020D358@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwcPX-0004z7-Q4 for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 07:50:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwcPV-0004yU-7A for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 07:50:30 -0500 Received: from [199.232.76.173] (port=34690 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwcPU-0004yC-VU for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 07:50:29 -0500 Received: from out5.smtp.messagingengine.com ([66.111.4.29]:43845) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KwcPU-0004W0-NG for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 07:50:28 -0500 In-Reply-To: <6F4A1881-83B7-4216-90A9-E3C81020D358@uva.nl> (Carsten Dominik's message of "Sat\, 1 Nov 2008 14\:15\:08 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Hi Carsten, Carsten Dominik writes: > Hi Matthew, > > what org version are you using? > > Because I believe that in the current version, those buffers will be > killed, if they have been visited to get published. Only buffers > which are already present then starting the publishing will not be > killed. > > At least this is how it should work. I am using Org-mode 6.10c. I just did a test. I started up emacs with no file buffers loaded. I then ran M-x org-publish RET project-name. After the project was published, my buffer menu contained all the org files in the project. Here is my org-publish-project-alist configuration: (setq org-publish-project-alist '( ("org-notes" :base-directory "~/mystuff/website/" :base-extension "org" :publishing-directory "[ssh to my site here]" :section-numbers nil :email "[my email address here]" :publishing-function org-publish-org-to-html :recursive t :auto-index t :style "" :preamble "" :index-filename "pagelist.org" :index-title "Page List" :link-validation-function org-publish-validate-link ) ("org-static" :base-directory "~/mystuff/website/" :publishing-directory "[ssh to my site here]" :recursive t :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-function org-publish-attachment ) ("org" :components ("org-notes" "org-static")) )) My apologies in advance if I goofed something up in the configuration. Thanks, Matt > On Oct 30, 2008, at 4:04 PM, Matthew Lundin wrote: > >> >> I am setting up my website with multiple subdirectories, each, of >> course, with its own index.org (index.html) file. >> >> A problem arises when I invoke org-publish (or org-agenda). All of the >> org files in the project are loaded into buffers resulting in too many >> index.org files in my buffer list. >> >> 1) Is there any way to have org-publish close buffers after publishing >> the files? >> >> 2) Alternatively, is there an easy way to rename the buffers to the >> title of the page designated with #+TITLE so that they can be told >> apart in the buffer list. >> >> ---- >> >> Finally, on a related question. Does someone know an easy way to have >> all the org-files of subdirectories of a website added to the agenda >> files recursively? >> >> For my agenda files I currently use: >> >> (setq org-agenda-files (file-expand-wildcards "~/org/*org")) >> >> That, however, only works for a single directory, not recursively. >> >> Thanks! >> >> Matt Lundin >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Remember: use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode