From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Org-publish - too many index.org files Date: Sun, 2 Nov 2008 17:15:33 +0100 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 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kwfcb-0008VO-Ps for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 11:16:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwfcZ-0008US-PZ for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 11:16:13 -0500 Received: from [199.232.76.173] (port=44102 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwfcZ-0008UK-EX for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 11:16:11 -0500 Received: from ug-out-1314.google.com ([66.249.92.168]:59290) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KwfcY-0003qa-NX for emacs-orgmode@gnu.org; Sun, 02 Nov 2008 11:16:11 -0500 Received: by ug-out-1314.google.com with SMTP id 36so1830708uga.17 for ; Sun, 02 Nov 2008 08:16:08 -0800 (PST) In-Reply-To: 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: Matthew Lundin Cc: emacs-orgmode@gnu.org Hi Matthew, I hope this is fixed now. Let me know what you find. Best wishes. - Carsten On Nov 2, 2008, at 4:54 PM, Matthew Lundin wrote: > > 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