all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Marshall, Simon" <simon.marshall@misys.com>
Cc: "'emacs-devel@gnu.org'" <emacs-devel@gnu.org>
Subject: RE: [simon.marshall@misys.com: vc-diff uses unknown -L switch]
Date: Mon, 26 Jun 2006 10:35:43 +0100	[thread overview]
Message-ID: <81CCA6588E60BB42BE68BD029ED4826007B7709B@wimex2.wim.midas-kapiti.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

> I've just installed a patch to deal with this.  It uses the 
> same mechanism that VC already uses to find out if rcsdiff 
> understands the --brief option.  VC will first try to use -L, 
> and then remember whether it worked in the new variable 
> vc-diff-knows-L.
> 
> The patch assumes that a "diff" that does not understand -L 
> returns error code 2 when the option is used.  I have not 
> been able to verify this with Solaris 8 diff, but I'm pretty 
> sure that this is how it's reported.
> 
> If anybody sees a more elegant way to implement this, please 
> don't hesitate to change it.

Hi Andre, I just did a cvs update to try it out.  On C-x v =, I get:

diff: two filename arguments required

I think the attached patch fixes it.  Simon.



[-- Attachment #2: vc.el.diff --]
[-- Type: application/octet-stream, Size: 1955 bytes --]

Index: lisp/vc.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/vc.el,v
retrieving revision 1.420
diff -c -r1.420 vc.el
*** lisp/vc.el	23 Jun 2006 17:29:19 -0000	1.420
--- lisp/vc.el	26 Jun 2006 09:34:16 -0000
***************
*** 1846,1852 ****
      (if (and file-rev1 file-rev2)
          (let ((status
                 (if (eq vc-diff-knows-L 'no)
!                    (apply 'vc-do-command "*vc-diff*" 1 "diff"
                            (append (vc-switches nil 'diff)
                                    (list (file-relative-name file-rev1)
                                          (file-relative-name file-rev2))))
--- 1846,1852 ----
      (if (and file-rev1 file-rev2)
          (let ((status
                 (if (eq vc-diff-knows-L 'no)
!                    (apply 'vc-do-command "*vc-diff*" 1 "diff" nil
                            (append (vc-switches nil 'diff)
                                    (list (file-relative-name file-rev1)
                                          (file-relative-name file-rev2))))
***************
*** 1864,1870 ****
            (if (eq status 2)
                (if (not vc-diff-knows-L)
                    (setq vc-diff-knows-L 'no
!                         status (apply 'vc-do-command "*vc-diff*" 1 "diff"
                                        (append 
                                         (vc-switches nil 'diff)
                                         (list (file-relative-name file-rev1)
--- 1864,1870 ----
            (if (eq status 2)
                (if (not vc-diff-knows-L)
                    (setq vc-diff-knows-L 'no
!                         status (apply 'vc-do-command "*vc-diff*" 1 "diff" nil
                                        (append 
                                         (vc-switches nil 'diff)
                                         (list (file-relative-name file-rev1)

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2006-06-26  9:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26  9:35 Marshall, Simon [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-06-17 17:57 [simon.marshall@misys.com: vc-diff uses unknown -L switch] Richard Stallman
2006-06-18 11:35 ` Andre Spiegel
2006-06-21 18:12   ` Stefan Monnier
2006-06-22 22:14     ` Richard Stallman
2006-06-23 17:35       ` Andre Spiegel
2006-06-23 21:04         ` Kevin Rodgers
2006-06-24  8:31         ` Richard Stallman

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=81CCA6588E60BB42BE68BD029ED4826007B7709B@wimex2.wim.midas-kapiti.com \
    --to=simon.marshall@misys.com \
    --cc=emacs-devel@gnu.org \
    /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.