unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Fix vc-svn.el 1.27 when using with GNU Emacs 21.4
@ 2006-04-01 13:09 Henning Schmiedehausen
  2006-04-01 13:10 ` Henning Schmiedehausen
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Schmiedehausen @ 2006-04-01 13:09 UTC (permalink / raw)


Please apply the attached patch. Its function is obvious. As
vc-do-command only returns 'nil' or 'error', the status is never 0. As a
result, vc-svn.el has been broken for a while when using with emacs
21.4.

	Best regards
		Henning


-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

      RedHat Certified Engineer -- Jakarta Turbine Development
   Linux, Java, perl, Solaris -- Consulting, Training, Engineering

Social behaviour: Bavarians can be extremely egalitarian and folksy.
                                    -- http://en.wikipedia.org/wiki/Bavaria
Most Franconians do not like to be called Bavarians.
                                    -- http://en.wikipedia.org/wiki/Franconia

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Fix vc-svn.el 1.27 when using with GNU Emacs 21.4
@ 2006-04-04 17:49 Andre Spiegel
  0 siblings, 0 replies; 5+ messages in thread
From: Andre Spiegel @ 2006-04-04 17:49 UTC (permalink / raw)
  Cc: emacs-devel

On Sat, 2006-04-01 at 15:09 +0200, Henning Schmiedehausen wrote:

> Please apply the attached patch. Its function is obvious. As
> vc-do-command only returns 'nil' or 'error', the status is never 0. As a
> result, vc-svn.el has been broken for a while when using with emacs
> 21.4.

No, vc-do-command is supposed to return the execution status, and does
indeed do it, even in Emacs 21.4.  I think you may be having another
problem, and because vc-svn.el 1.27 ignores all errors in the call to
vc-svn-command, you may not be able to see what's actually happening.

In vc-svn-registered, where it says:

      (let ((status
             (condition-case nil
                 ;; Ignore all errors.
                 (vc-svn-command t t file "status" "-v")
               ;; Some problem happened.  E.g. We can't find an `svn'
               ;; executable.  We used to only catch `file-error' but when
               ;; the process is run on a remote host via Tramp, the error
               ;; is only reported via the exit status which is turned into
               ;; an `error' by vc-do-command.
               (error nil))))
        (when (eq 0 status)
          (vc-svn-parse-status t)
          (eq 'SVN (vc-file-getprop file 'vc-backend)))))))

try replacing (error nil) with (file-error nil) and see what kind of
error message you get.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-04 17:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-01 13:09 Fix vc-svn.el 1.27 when using with GNU Emacs 21.4 Henning Schmiedehausen
2006-04-01 13:10 ` Henning Schmiedehausen
2006-04-01 20:15   ` Bill Wohler
2006-04-03 18:12   ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2006-04-04 17:49 Andre Spiegel

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).