[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/arc-mode.el,v
From: |
John Paul Wallington |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/arc-mode.el,v |
Date: |
Thu, 15 May 2008 01:16:55 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: John Paul Wallington <jpw> 08/05/15 01:16:53
Index: arc-mode.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/arc-mode.el,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -b -r1.90 -r1.91
--- arc-mode.el 6 May 2008 07:57:26 -0000 1.90
+++ arc-mode.el 15 May 2008 01:16:52 -0000 1.91
@@ -1059,7 +1059,7 @@
nil
nil
(append (cdr command) (list archive name))))
- (cond ((and (numberp exit-status) (= exit-status 0))
+ (cond ((and (numberp exit-status) (zerop exit-status))
(if (not (file-exists-p tmpfile))
(ding (message "`%s': no such file or directory" tmpfile))
(insert-file-contents tmpfile)
@@ -1117,7 +1117,7 @@
(file-name-nondirectory buffer-file-name)
""))))
(with-current-buffer arcbuf
- (or (eq major-mode 'archive-mode)
+ (or (derived-mode-p 'archive-mode)
(error "Buffer is not an archive buffer"))
(if archive-read-only
(error "Archive is read-only")))
@@ -1190,8 +1190,7 @@
nil
(append (cdr command)
(list archive ename)))))
- (if (equal exitcode 0)
- nil
+ (or (zerop exitcode)
(error "Updating was unsuccessful (%S)" exitcode))))
(archive-delete-local tmpfile))))