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

[PATCH 1/4] git-blame.el: Fix buffer local declaration

From
Michal Sojka <sojkam1@fel.cvut.cz>
Date
Jul 2, 2013, 17:34 UTC
Message-ID
<1372786477-13122-2-git-send-email-sojkam1@fel.cvut.cz>
In-Reply-To
<1372786477-13122-1-git-send-email-sojkam1@fel.cvut.cz>

git-blame-cache was declared buffer-local two times and git-blame-idle-timer is global. The intended meaning was probably to make git-blame-idle-timer buffer-local.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
---
 contrib/emacs/git-blame.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/emacs/git-blame.el b/contrib/emacs/git-blame.el
index e671f6c..18ce241 100644
--- a/contrib/emacs/git-blame.el
+++ b/contrib/emacs/git-blame.el
@@ -200,7 +200,7 @@ minor mode.")
 
 (defvar git-blame-idle-timer nil
   "An idle timer that updates the blame")
-(make-variable-buffer-local 'git-blame-cache)
+(make-variable-buffer-local 'git-blame-idle-timer)
 
 (defvar git-blame-update-queue nil
   "A queue of update requests")
-- 
1.8.3.1
Previous: Michal SojkaNext: Michal Sojka
Message 2 of 5 in “Emacs: git-blame.el fixes and enhancements”
  1. 0/4 Emacs: git-blame.el fixes and enhancementsMichal Sojka, Jul 2, 2013
  2. 1/4 git-blame.el: Fix buffer local declarationMichal Sojka, Jul 2, 2013
  3. 2/4 git-blame.el: Make all line prefixes to have the same lengthMichal Sojka, Jul 2, 2013
  4. 3/4 git-blame.el: Allow displaying author/commit timesMichal Sojka, Jul 2, 2013
  5. 4/4 git-blame.el: Change the default prefix formatMichal Sojka, Jul 2, 2013

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.