From: Carsten Dominik <carsten.dominik@gmail.com>
To: Noufal Ibrahim <noufal@nibrahim.net.in>
Cc: emacs-orgmode@gnu.org
Subject: Re: Name of file being exported.
Date: Tue, 14 Apr 2009 12:32:10 +0200 [thread overview]
Message-ID: <5DBFB303-366D-4485-82B9-6CF0EFAC257C@gmail.com> (raw)
In-Reply-To: <49E3F37E.5090704@nibrahim.net.in>
Hi,
On Apr 14, 2009, at 4:22 AM, Noufal Ibrahim wrote:
> [apologies if this is a repost. I was not on the list]
>
> Hello everyone,
> I'm a recent org-mode convert (after hearing the talk) and without
> question, it's one of the best things I've ever used. Thank you for
> making such a wonderful program.
>
> However, org-mode and emacs being what they are, I'm tempted to
> try and customise it to do more. :)
>
> I'm trying a simple trick to insert the version control history of
> my current file formatted as a table when I export the org file into
> HTML or ascii. I need this to track changes to design documents etc.
>
> I'm using dynamic blocks to do this and have a function defined to
> insert the output of
>
> git log --pretty='format:|%ad|%s|' (buffer-file-name)
>
> into the block.
>
> This works fine if I run org-update-all-dblocks from the org
> buffer itself manually. If I export it however, (buffer-file-name)
> returns a null string so I get the entire log of my repository which
> is not what I want.
In what way are you calling the update of dblocks during export? Have
you added a function to this effect to a hook? Which function? To
which hook?
- Carsten
>
> Is there a way to get the buffer/file which is being exported so
> that I can use that in the command rather than buffer-file-name?
>
> Thanks in advance and for such an awesome mode.
>
> --
> ~noufal
> http://nibrahim.net.in/
>
>
> _______________________________________________
> 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:[~2009-04-14 10:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 2:22 Name of file being exported Noufal Ibrahim
2009-04-14 10:32 ` Carsten Dominik [this message]
2009-04-14 14:58 ` Noufal Ibrahim
2009-04-14 16:20 ` Nick Dokos
2009-04-14 16:39 ` Noufal Ibrahim
2009-04-14 18:26 ` Nick Dokos
2009-04-15 5:02 ` Carsten Dominik
-- strict thread matches above, loose matches on Subject: below --
2009-04-13 21:33 Noufal Ibrahim
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=5DBFB303-366D-4485-82B9-6CF0EFAC257C@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=noufal@nibrahim.net.in \
/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).