emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to log changes to orgmode files?
@ 2017-11-29 18:05 Mirko Vukovic
  2017-11-29 19:01 ` Colin Baxter
  2017-11-29 19:10 ` Kyle Meyer
  0 siblings, 2 replies; 3+ messages in thread
From: Mirko Vukovic @ 2017-11-29 18:05 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

Hello,

I am writing a report in org-mode (with pdf export).  The file is under git
version control.  I would like to log changes I make to the document.

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?

Thanks,

Mirko

[-- Attachment #2: Type: text/html, Size: 612 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to log changes to orgmode files?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Colin Baxter @ 2017-11-29 19:01 UTC (permalink / raw)
  To: Mirko Vukovic; +Cc: emacs-orgmode@gnu.org

Hello Mirko,
>>>>> Mirko Vukovic <mirko.vukovic@gmail.com> writes:

    > Hello, I am writing a report in org-mode (with pdf export). The
    > file is under git version control. I would like to log changes I
    > make to the document.

    > 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?

    > Thanks,

The LaTeX packages "gitinfo2" and "mVersion" might be what you want. Beware
that gitinfo2 sometimes conflicts with the options "usenames" and
"dvipsnames" for packages "color" and "xcolor". 

Best wishes.

-- 
Colin Baxter
m43cap@yandex.com
---------------------------------------------------------------------
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8
---------------------------------------------------------------------
The sole cause of all human misery is the inability of people to sit
quietly in their rooms.  Blaise Pascal, 1670

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to log changes to orgmode files?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2017-11-29 19:10 UTC (permalink / raw)
  To: Mirko Vukovic, emacs-orgmode@gnu.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-29 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).