all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <jmbarranquero@wke.es>
Subject: Re: "Symbol's value as variable is void" on vc-diff
Date: Tue, 20 Apr 2004 11:08:02 +0200	[thread overview]
Message-ID: <20040420110607.E009.JMBARRANQUERO@wke.es> (raw)
In-Reply-To: <1082418799.1142.8.camel@localhost>


On Mon, 19 Apr 2004 19:53:19 -0400
Andre Spiegel <spiegel@gnu.org> wrote:

> Sorry, the problem should be fixed by
> the patch below.

Yeah, it works. Thanks.

BTW, shouldn't something like the patch below be installed to vc-svn.el?

                                                                Juanma



--- vc-svn.el.orig	2004-04-16 15:38:21.000000000 +0200
+++ vc-svn.el	2004-04-20 11:00:58.000000000 +0200
@@ -335,8 +335,8 @@
 ;;;
 
-(defun vc-svn-print-log (file)
+(defun vc-svn-print-log (file &optional buffer)
   "Get change log associated with FILE."
   (save-current-buffer
-    (vc-setup-buffer nil)
+    (vc-setup-buffer buffer)
     (let ((inhibit-read-only t))
       (goto-char (point-min))
@@ -344,10 +344,11 @@
       (insert "Working file: " (file-relative-name file) "\n"))
     (vc-svn-command
-     t
+     buffer
      (if (and (vc-stay-local-p file) (fboundp 'start-process)) 'async 0)
      file "log")))
 
-(defun vc-svn-diff (file &optional oldvers newvers)
+(defun vc-svn-diff (file &optional oldvers newvers buffer)
   "Get a difference report using SVN between two versions of FILE."
+  (unless buffer (setq buffer "*vc-diff*"))
   (if (string= (vc-workfile-version file) "0")
       ;; This file is added but not yet committed; there is no master file.
@@ -357,5 +358,5 @@
 	;; Diff it against /dev/null.
 	;; Note: this is NOT a "svn diff".
-	(apply 'vc-do-command "*vc-diff*"
+	(apply 'vc-do-command buffer
 	       1 "diff" file
 	       (append (vc-switches nil 'diff) '("/dev/null")))
@@ -366,5 +367,5 @@
 		       (or oldvers newvers) ; Svn diffs those locally.
 		       (fboundp 'start-process))))
-      (apply 'vc-svn-command "*vc-diff*"
+      (apply 'vc-svn-command buffer
 	     (if async 'async 0)
 	     file "diff"
@@ -378,5 +379,5 @@
 	;; For some reason `svn diff' does not return a useful
 	;; status w.r.t whether the diff was empty or not.
-	(buffer-size (get-buffer "*vc-diff*"))))))
+	(buffer-size (get-buffer buffer))))))
 
 (defun vc-svn-diff-tree (dir &optional rev1 rev2)

  reply	other threads:[~2004-04-20  9:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-16 10:07 "Symbol's value as variable is void" on vc-diff Juanma Barranquero
2004-04-16 10:27 ` Andre Spiegel
2004-04-16 13:41   ` Juanma Barranquero
2004-04-19 23:53     ` Andre Spiegel
2004-04-20  9:08       ` Juanma Barranquero [this message]
2004-04-20 10:55         ` Andre Spiegel
2004-04-20 11:14           ` Juanma Barranquero
2004-04-20 14:18             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040420110607.E009.JMBARRANQUERO@wke.es \
    --to=jmbarranquero@wke.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.