From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabian Braennstroem Subject: Re: export all linked images with a certain property or tag Date: Wed, 03 Oct 2007 18:11:45 +0000 Message-ID: References: <87sl4ug3z3.fsf@bzg.ath.cx> <878x6mpf78.fsf@bzg.ath.cx> <87fy0tyvz4.fsf@bzg.ath.cx> <874ph8l71s.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id6ow-00070p-J5 for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 12:11:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id6ou-0006wm-SO for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 12:11:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id6ou-0006wX-PX for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 12:11:32 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Id6ou-0002N9-4n for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 12:11:32 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Id6ob-0001Pp-2T for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 16:11:13 +0000 Received: from pd9e492be.dip0.t-ipconnect.de ([217.228.146.190]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Oct 2007 16:11:13 +0000 Received: from f.braennstroem by pd9e492be.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Oct 2007 16:11:13 +0000 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: emacs-orgmode@gnu.org It kind of works... (defun org-agenda-collect-indirect-trees () (interactive) (delete-file "~/org/agenda-indirect-buffer.org") ; LOOP (org-agenda-tree-to-indirect-buffer) (other-window 1) (mark-page) (write-region (point-min) (point-max) "~/org/agenda-indirect-buffer.org" t) (write-region "\n\n" 0 "~/org/agenda-indirect-buffer.org" t) (other-window 1) (next-line) (org-agenda-tree-to-indirect-buffer) (other-window 1) (mark-page) (write-region (point-min) (point-max) "~/org/agenda-indirect-buffer.org" t) (write-region "\n\n" 0 "~/org/agenda-indirect-buffer.org" t) (other-window 1) (next-line) (org-agenda-tree-to-indirect-buffer) (other-window 1) (mark-page) (write-region (point-min) (point-max) "~/org/agenda-indirect-buffer.org" t) (write-region "\n\n" 0 "~/org/agenda-indirect-buffer.org" t) (other-window 1) (next-line) (org-agenda-tree-to-indirect-buffer) (other-window 1) (mark-page) (write-region (point-min) (point-max) "~/org/agenda-indirect-buffer.org" t) (write-region "\n\n" 0 "~/org/agenda-indirect-buffer.org" t) (other-window 1) (next-line) (org-agenda-tree-to-indirect-buffer) (other-window 1) (mark-page) (write-region (point-min) (point-max) "~/org/agenda-indirect-buffer.org" t) (write-region "\n\n" 0 "~/org/agenda-indirect-buffer.org" t) (other-window 1) (next-line) (other-window 1) (find-file "~/org/agenda-indirect-buffer.org") (org-export-as-html 2 t nil "~/org/agenda-indirect-buffer.html") ) but it needs some cosmetic like the looping over all existing agenda entries... Fabian Braennstroem schrieb am 10/03/2007 05:01 PM: > > Bastien schrieb am 10/03/2007 12:24 PM: >> Fabian Braennstroem writes: >> >>> Sorry, I was not really clear... not the agenda view should be >>> exported, but every visible tree should be included in one indirect >>> buffer. Right now, 'b' shows the current-headline in an indirect >>> buffer, which I can export to html like usual. For this purpose there >>> has to be one global indirect agenda-buffer, which gets all those >>> visible trees!? >> I don't think this will be easy to do since showing the current headline >> relies on narrowing the indirect buffer to a subtree, and narrowing more >> than one region is not possible in a single buffer. >> >> It would require to build another buffer with all headlines and subtrees >> that are part of the agenda view. Interesting! >> > > I gave it a small try, very simple and does not really work: > > (defun org-agenda-collect-indirect-trees () > (interactive) > (org-agenda-tree-to-indirect-buffer) > (other-window 1) > (mark-page) > ; (write-file "dummy") > (write-region nil 0 "~/org/agenda-indirect-buffer.org" t) > (other-window 1) > (next-line) > ; Loop over all agenda headlines... > ) > > not working means, that it appends the whole buffer content > and not just the viewable tree. The next problem would be to > run some kine of loop over all agenda headlines; now I would > just copy the command about 10 times ... > Do you think it is a working approach and maybe you got an > idea about the 'whole-buffer' problem? > Fabian > > > > _______________________________________________ > 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 >