From: Kyle Meyer <kyle@kyleam.com>
To: Mirko Vukovic <mirko.vukovic@gmail.com>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: How to log changes to orgmode files?
Date: Wed, 29 Nov 2017 14:10:48 -0500 [thread overview]
Message-ID: <87d140rjd3.fsf@kyleam.com> (raw)
In-Reply-To: <CAO73BAA0-YzQL7bAY-hCth9G=3_jxmu-tZc7wMAkoH0+xce+CA@mail.gmail.com>
Mirko Vukovic <mirko.vukovic@gmail.com> writes:
> When I invoke ChangeLog, it is pre-populated with the file name only.
> There is no finer information about the location of the modification. For
> instance, I would like to use the tree heading name or ID.
>
> Is there a standard way of logging changes?
If I understand correctly what you want, I think you can get it by
setting add-log-current-defun-function. For example,
(add-hook 'org-mode-hook
(lambda ()
(setq-local add-log-current-defun-function
(lambda () (ignore-errors (org-get-heading t))))))
Untested, and you probably don't want to add an anonymous function to
org-mode-hook, but hopefully it helps.
--
Kyle
prev parent reply other threads:[~2017-11-29 19:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 18:05 How to log changes to orgmode files? Mirko Vukovic
2017-11-29 19:01 ` Colin Baxter
2017-11-29 19:10 ` Kyle Meyer [this message]
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=87d140rjd3.fsf@kyleam.com \
--to=kyle@kyleam.com \
--cc=emacs-orgmode@gnu.org \
--cc=mirko.vukovic@gmail.com \
/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).