]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/vc/log-view.el (log-view-modify-change-comment): Add FIXME.
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 20 Oct 2024 08:40:41 +0000 (16:40 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 19:01:11 +0000 (21:01 +0200)
(cherry picked from commit 6c928e490d3347cc309eda51cefbc46fba955650)

lisp/vc/log-view.el

index 360f522272b5abaf9822a5547caa40f66b08db6d..783f58575dccec4755f5661c453314385c1016d0 100644 (file)
@@ -556,6 +556,15 @@ If called interactively, visit the version at point."
          ;; to be more robust than the approach taken by
          ;; `log-view-extract-comment'.  Then we can delete the latter.
          ;; See discussion in bug#64055.  --spwhitton
+         ;;
+         ;; FIXME: We should implement backend actions
+         ;; `get-change-comment' and `modify-change-comment' for Git,
+         ;; bzr and Hg, so that this command works for those backends.
+         ;; As discussed in bug#64055, get-change-comment is required,
+         ;; and parsing the old comment out of the Log View buffer will
+         ;; not do.  This is because for these backends there are
+         ;; `vc-*-log-switches' variables which can change what gets put
+         ;; in the Log View buffers and break any Lisp parsing attempt.
          (comment (condition-case _
                       (vc-call-backend log-view-vc-backend
                                        'get-change-comment files rev)