[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: export all linked images with a certain property or tag
From: |
Fabian Braennstroem |
Subject: |
[Orgmode] Re: export all linked images with a certain property or tag |
Date: |
Wed, 03 Oct 2007 18:11:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 |
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 <address@hidden> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
- Re: [Orgmode] export all linked images with a certain property or tag, Bastien, 2007/10/01
- [Orgmode] Re: export all linked images with a certain property or tag, Fabian Braennstroem, 2007/10/01
- Re: [Orgmode] Re: export all linked images with a certain property or tag, Bastien, 2007/10/01
- [Orgmode] Re: export all linked images with a certain property or tag, Fabian Braennstroem, 2007/10/02
- Re: [Orgmode] Re: export all linked images with a certain property or tag, Bastien, 2007/10/02
- [Orgmode] Re: export all linked images with a certain property or tag, Fabian Braennstroem, 2007/10/03
- Re: [Orgmode] Re: export all linked images with a certain property or tag, Bastien, 2007/10/03
- [Orgmode] Re: export all linked images with a certain property or tag, Fabian Braennstroem, 2007/10/03
- [Orgmode] Re: export all linked images with a certain property or tag,
Fabian Braennstroem <=
- Re: [Orgmode] Re: export all linked images with a certain property or tag, Bastien, 2007/10/03