changeset 86426:e02473c24e45

(top-level): Move provide statement to the end of the file. Use require with NOERROR for pcomplete. Don't mess with load-path.
author Glenn Morris <rgm@gnu.org>
date Sun, 25 Nov 2007 01:16:56 +0000
parents 5eea1f0b4077
children ddf97db37266
files lisp/eshell/esh-maint.el
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/eshell/esh-maint.el	Sun Nov 25 01:05:00 2007 +0000
+++ b/lisp/eshell/esh-maint.el	Sun Nov 25 01:16:56 2007 +0000
@@ -26,8 +26,6 @@
 
 ;;; Code:
 
-(provide 'esh-maint)
-
 (and (fboundp 'font-lock-add-keywords)
      (font-lock-add-keywords
       'emacs-lisp-mode
@@ -35,11 +33,7 @@
 	("(eshell-deftest\\>"        . font-lock-keyword-face)
 	("(eshell-condition-case\\>" . font-lock-keyword-face))))
 
-(if (file-directory-p "../pcomplete")
-    (add-to-list 'load-path "../pcomplete"))
-
-(if (locate-library "pcomplete")
-    (require 'pcomplete))
+(require 'pcomplete nil t)              ; why?
 
 (eval-when-compile
   (require 'cl)
@@ -142,5 +136,7 @@
 ;;   (delete-file "README.texi")
 ;;   (kill-buffer "README.texi"))
 
+(provide 'esh-maint)
+
 ;;; arch-tag: 662089b6-78ec-48c5-b94f-d212279e8902
 ;;; esh-maint.el ends here