(change-log-next-error): Run an extra `find-file' to
authorTeodor Zlatanov <tzz@lifelogs.com>
Wed, 27 Aug 2008 18:29:44 +0000 (18:29 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Wed, 27 Aug 2008 18:29:44 +0000 (18:29 +0000)
go to the position of interest.

lisp/ChangeLog
lisp/add-log.el

index 9f3d0e2..d4ba7d3 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-27  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * add-log.el (change-log-next-error): Run an extra `find-file' to
+       go to the position of interest.
+
 2008-08-27  Tomas Abrahamsson  <tab@lysator.liu.se>
 
        * textmodes/artist.el (artist-mode-init): Added comment on the
index b7d855b..5e7fe57 100644 (file)
@@ -543,7 +543,10 @@ Compatibility function for \\[next-error] invocations."
   (beginning-of-line)
   ;; if we found a place to visit...
   (when (looking-at change-log-file-names-re)
-    (change-log-goto-source)))
+    (change-log-goto-source)
+    ;; go to the file itself
+    (let ((file (nth 2 change-log-find-head)))
+      (when file (find-file file)))))
 
 (defvar change-log-mode-map
   (let ((map (make-sparse-keymap)))