From: Fabian Braennstroem <f.braennstroem@gmx.de>
To: emacs-orgmode@gnu.org
Subject: Re: export all linked images with a certain property or tag
Date: Wed, 03 Oct 2007 18:11:45 +0000 [thread overview]
Message-ID: <fe0etu$3h5$1@sea.gmane.org> (raw)
In-Reply-To: <fe0ar0$j88$1@sea.gmane.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 <f.braennstroem@gmx.de> 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
>
next prev parent reply other threads:[~2007-10-03 16:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-30 18:36 export all linked images with a certain property or tag Fabian Braennstroem
2007-10-01 17:05 ` Bastien
2007-10-01 20:34 ` Fabian Braennstroem
2007-10-01 23:50 ` Bastien
2007-10-02 21:19 ` Fabian Braennstroem
2007-10-02 22:47 ` Bastien
2007-10-03 10:30 ` Fabian Braennstroem
2007-10-03 12:24 ` Bastien
2007-10-03 17:01 ` Fabian Braennstroem
2007-10-03 18:11 ` Fabian Braennstroem [this message]
2007-10-03 16:29 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='fe0etu$3h5$1@sea.gmane.org' \
--to=f.braennstroem@gmx.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).