Skip to content

Commit 61988f1

Browse files
julliardgitster
authored andcommitted
git.el: Avoid using ewoc-set-data for compatibility with Emacs 21.
Signed-off-by: Alexandre Julliard <[email protected]> Acked-by: Karl Hasselström <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent be52a41 commit 61988f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/emacs/git.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ and returns the process output as a string."
530530
(setf (git-fileinfo->needs-refresh info) t)
531531
(when node ;preserve the marked flag
532532
(setf (git-fileinfo->marked info) (git-fileinfo->marked (ewoc-data node))))
533-
(if node (ewoc-set-data node info) (ewoc-enter-last status info))))
533+
(if node (setf (ewoc-data node) info) (ewoc-enter-last status info))))
534534

535535
(defun git-run-diff-index (status files)
536536
"Run git-diff-index on FILES and parse the results into STATUS.

0 commit comments

Comments
 (0)