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 09:54:52 -0600 Message-ID: References: <877i7qceeh.fsf@fastmail.fm> <6F4A1881-83B7-4216-90A9-E3C81020D358@uva.nl> <6A48BDB2-B055-471B-B9DC-6B4DB63FCC63@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 1KwfI7-0001Hg-Dc for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 10:55:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwfI6-0001HQ-7T for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 10:55:03 -0500 Received: from [199.232.76.173] (port=58424 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwfI6-0001HN-2N for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 10:55:02 -0500 Received: from out5.smtp.messagingengine.com ([66.111.4.29]:55497) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KwfI5-0001Qn-2B for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 10:55:01 -0500 In-Reply-To: <6A48BDB2-B055-471B-B9DC-6B4DB63FCC63@uva.nl> (Carsten Dominik's message of "Sun\, 2 Nov 2008 15\:25\:47 +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, Yes, I can confirm that turning off auto index resulted in the buffers being closed after publishing. Thanks, Matt Carsten Dominik writes: > Hi Matthew, > > if you turn off the auto-index, do the buffers then disappear? > > Thanks for checking this out. > > - Carsten > > On Nov 2, 2008, at 1:50 PM, Matthew Lundin wrote: > >> >> 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 "> href=\"css/ myorg.css\" />" >> :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