summaryrefslogtreecommitdiff
path: root/lisp/eshell/esh-module.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2004-06-11 03:52:53 +0000
committerMiles Bader <miles@gnu.org>2004-06-11 03:52:53 +0000
commit0c2222fafbe829e01a9bb54cb693d6d329644c37 (patch)
tree3eca897f93e13b9e14f1bae482ba6494af989cd6 /lisp/eshell/esh-module.el
parent48d67035ea6651694878200f2284d329dfb2f3ad (diff)
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-397
Work around vc-arch problems when building eshell 2004-06-10 Miles Bader <miles@gnu.ai.mit.edu> * lisp/eshell/esh-module.el (eshell-load-defgroups): Bind `vc-handled-backends' to nil when opening files.
Diffstat (limited to 'lisp/eshell/esh-module.el')
-rw-r--r--lisp/eshell/esh-module.el53
1 files changed, 27 insertions, 26 deletions
diff --git a/lisp/eshell/esh-module.el b/lisp/eshell/esh-module.el
index 4c8ffceef78..dcbf77364f4 100644
--- a/lisp/eshell/esh-module.el
+++ b/lisp/eshell/esh-module.el
@@ -1,6 +1,6 @@
;;; esh-module.el --- Eshell modules
-;; Copyright (C) 1999, 2000 Free Software Foundation
+;; Copyright (C) 1999, 2000, 2004 Free Software Foundation
;; Author: John Wiegley <johnw@gnu.org>
;; Keywords: processes
@@ -41,32 +41,33 @@ customizing the variable `eshell-modules-list'."
(defun eshell-load-defgroups (&optional directory)
"Load `defgroup' statements from Eshell's module files."
- (with-current-buffer
- (find-file-noselect (expand-file-name "esh-groups.el" directory))
- (erase-buffer)
- (insert ";;; do not modify this file; it is auto-generated -*- no-byte-compile: t -*-\n\n")
- (let ((files (directory-files (or directory
- (car command-line-args-left))
- nil "\\`em-.*\\.el\\'")))
- (while files
- (message "Loading defgroup from `%s'" (car files))
- (let (defgroup)
- (catch 'handled
- (with-current-buffer (find-file-noselect (car files))
- (goto-char (point-min))
- (while t
- (forward-sexp)
- (if (eobp) (throw 'handled t))
- (backward-sexp)
- (let ((begin (point))
- (defg (looking-at "(defgroup")))
+ (let ((vc-handled-backends nil)) ; avoid VC fucking things up
+ (with-current-buffer
+ (find-file-noselect (expand-file-name "esh-groups.el" directory))
+ (erase-buffer)
+ (insert ";;; do not modify this file; it is auto-generated -*- no-byte-compile: t -*-\n\n")
+ (let ((files (directory-files (or directory
+ (car command-line-args-left))
+ nil "\\`em-.*\\.el\\'")))
+ (while files
+ (message "Loading defgroup from `%s'" (car files))
+ (let (defgroup)
+ (catch 'handled
+ (with-current-buffer (find-file-noselect (car files))
+ (goto-char (point-min))
+ (while t
(forward-sexp)
- (if defg
- (setq defgroup (buffer-substring begin (point))))))))
- (if defgroup
- (insert defgroup "\n\n")))
- (setq files (cdr files))))
- (save-buffer)))
+ (if (eobp) (throw 'handled t))
+ (backward-sexp)
+ (let ((begin (point))
+ (defg (looking-at "(defgroup")))
+ (forward-sexp)
+ (if defg
+ (setq defgroup (buffer-substring begin (point))))))))
+ (if defgroup
+ (insert defgroup "\n\n")))
+ (setq files (cdr files))))
+ (save-buffer))))
;; load the defgroup's for the standard extension modules, so that
;; documentation can be provided when the user customize's