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

DORMANTno replies

3 messages, 1 author, 2016-06-15 · open the first message on its own page

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

From: Karl Hasselström <hidden>
Date: 2016-06-15 22:42:45

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

[PATCH 1/2] ignore-errors requires cl

From: Karl Hasselström <hidden>
Date: 2016-06-15 22:42:45

From: Karl Hasselström <redacted>

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 <redacted>
---

 contrib/emacs/vc-git.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
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.")
 

[PATCH 2/2] Better installation instructions

From: Karl Hasselström <hidden>
Date: 2016-06-15 22:42:45

From: Karl Hasselström <redacted>

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

Signed-off-by: Karl Hasselström <redacted>
---

 contrib/emacs/vc-git.el |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help