From: Andreas Gerler Date: Thu, 30 Apr 2015 10:04:10 +0000 (+0200) Subject: fix magit-log-edit-mode-hook. X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=3d8fb830065b81c1d805f18e76c229ad99f75ded;p=emacsconfig.git fix magit-log-edit-mode-hook. Signed-off-by: Andreas Gerler --- diff --git a/bba.org b/bba.org index 54db9fd1..2ac7fd59 100644 --- a/bba.org +++ b/bba.org @@ -127,7 +127,9 @@ For annotated tags prepare message with commit messages since last tag. (add-hook 'magit-log-edit-mode-hook (lambda () (when (magit-log-edit-get-field 'tag-name) - (insert (shell-command-to-string "git log --pretty=format:\"* %s\" `git rev-list --tags --max-count=1`..HEAD" )) + (progn + (end-of-buffer) + (insert (shell-command-to-string "git log --pretty=format:\"* %s\" `git rev-list --tags --max-count=1`..HEAD" ))) ) ) )