git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git.el: Support for incremental status updates.

From
AJAlexandre Julliard <julliard@winehq.org>
Date
Jul 31, 2007, 18:48 UTC
Message-ID
<874pjktnoe.fsf@wine.dyndns.org>
In-Reply-To
<20070731111438.GA17903@diana.vm.bytemark.co.uk>
Karl Hasselström <kha@treskal.com> writes:
Show 6 quoted lines
> git.el already requires ewoc. And it uses a number of ewoc functions
> (and has done so since its creation); this newly introduced call is
> the only one that fails.
>
> Also, I've just discovered that with Emacs 22.1, I don't see this
> problem. So my guess is that ewoc-set-data is newer than Emacs 21.4.
Yes, it's a new function. Something like this should work:
From 8da6b3257fe785484c5683fc97edccf75ac5588d Mon Sep 17 00:00:00 2001
From: Alexandre Julliard <julliard@winehq.org>
Date: Tue, 31 Jul 2007 20:45:53 +0200
Subject: [PATCH] git.el: Avoid using ewoc-set-data for compatibility with Emacs 21.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
 contrib/emacs/git.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index 9bcd7c4..f6102fc 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -530,7 +530,7 @@ and returns the process output as a string."
     (setf (git-fileinfo->needs-refresh info) t)
     (when node   ;preserve the marked flag
       (setf (git-fileinfo->marked info) (git-fileinfo->marked (ewoc-data node))))
-    (if node (ewoc-set-data node info) (ewoc-enter-last status info))))
+    (if node (setf (ewoc-data node) info) (ewoc-enter-last status info))))
 
 (defun git-run-diff-index (status files)
   "Run git-diff-index on FILES and parse the results into STATUS.
-- 
1.5.3.rc3.97.gcb90c

-- 
Alexandre Julliard
julliard@winehq.org
Previous: Karl HasselströmNext: Karl Hasselström
Message 5 of 6 in “git.el: Support for incremental status updates.”
  1. git.el: Support for incremental status updates.Alexandre Julliard, Jul 24, 2007
  2. Karl HasselströmJul 30, 2007
  3. David KågedalJul 31, 2007
  4. Karl HasselströmJul 31, 2007
  5. Alexandre JulliardJul 31, 2007
  6. Karl HasselströmJul 31, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.