threads / patch / 6002

patch, 2 partsTwo minor fixes for vc-git

Subject: [PATCH 0/2] Two minor fixes for vc-git

## tl;dr

3 messages between Oct 22, 2006 and Oct 22, 2006. Diffs are folded; open one to read it.

replies: 2people: 1as markdown or json

Karl Hasselström· Oct 22, 2006, 18:41 UTC · lore

I'm a total newbie when it comes to elisp, so you may want to take these with a pinch of salt. But vc-git was quite broken for me without this fix, so I guess _something_ has to be done about it ...

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Karl Hasselström· Oct 22, 2006, 18:46 UTC · re: Karl Hasselström · lore

[PATCH 1/2] ignore-errors requires cl

From: Karl Hasselström <kha@yoghurt.hemma.treskal.com>

vc-git complains that it can't find the definition of ignore-errors unless I (require 'cl). So I guess the correct place to do that is in the file itself.

Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 contrib/emacs/vc-git.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Show changes to contrib/emacs/vc-git.el +2 −0
diff --git a/contrib/emacs/vc-git.el b/contrib/emacs/vc-git.el
index 4189c4c..1ec228f 100644
--- a/contrib/emacs/vc-git.el
+++ b/contrib/emacs/vc-git.el
@@ -30,6 +30,8 @@
 ;;  - working with revisions other than HEAD
 ;;
 
+(require 'cl)
+
 (defvar git-commits-coding-system 'utf-8
   "Default coding system for git commits.")
 
Karl Hasselström· Oct 22, 2006, 18:46 UTC · re: Karl Hasselström · lore

[PATCH 2/2] Better installation instructions

From: Karl Hasselström <kha@yoghurt.hemma.treskal.com>

Provide some more detailed installation instructions, for the elisp-challenged among us.

Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 contrib/emacs/vc-git.el |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Show changes to contrib/emacs/vc-git.el +4 −1
diff --git a/contrib/emacs/vc-git.el b/contrib/emacs/vc-git.el
index 1ec228f..535ce97 100644
--- a/contrib/emacs/vc-git.el
+++ b/contrib/emacs/vc-git.el
@@ -23,7 +23,10 @@
 ;; system.
 ;;
 ;; To install: put this file on the load-path and add GIT to the list
-;; of supported backends in `vc-handled-backends'.
+;; of supported backends in `vc-handled-backends'; the following line,
+;; placed in your ~/.emacs, will accomplish this:
+;;
+;;     (add-to-list 'vc-handled-backends 'GIT)
 ;;
 ;; TODO
 ;;  - changelog generation

← back to recent threads