]> code.delx.au - gnu-emacs/commitdiff
(top-level): Move provide statement to the end of the file. Use
authorGlenn Morris <rgm@gnu.org>
Sun, 25 Nov 2007 01:17:06 +0000 (01:17 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 25 Nov 2007 01:17:06 +0000 (01:17 +0000)
require with NOERROR for pcomplete.  Don't mess with load-path.

lisp/ChangeLog
lisp/eshell/esh-maint.el

index 702e434452eee67f645f7b2eb66abaf20914fe1e..60301eae59754810e47429984e26f528bb07acea 100644 (file)
@@ -1,5 +1,9 @@
 2007-11-25  Glenn Morris  <rgm@gnu.org>
 
+       * eshell/esh-maint.el (top-level): Move provide statement to the
+       end of the file.  Use require with NOERROR for pcomplete.  Don't
+       mess with load-path.
+
        * eshell/eshell.el (eshell-report-bug-address): Remove.
        (eshell-report-bug): Redefine as an alias for report-emacs-bug.
 
index 61a4ef9510d94aab623c31c862c0d3b1a2feaf4c..c74ec4d25f270bbad22aec0805ed4fb57addc64b 100644 (file)
@@ -26,8 +26,6 @@
 
 ;;; Code:
 
-(provide 'esh-maint)
-
 (and (fboundp 'font-lock-add-keywords)
      (font-lock-add-keywords
       'emacs-lisp-mode
        ("(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)
 ;;   (delete-file "README.texi")
 ;;   (kill-buffer "README.texi"))
 
+(provide 'esh-maint)
+
 ;;; arch-tag: 662089b6-78ec-48c5-b94f-d212279e8902
 ;;; esh-maint.el ends here