[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: customize eshell-alias loading
From: |
Kevin Ryde |
Subject: |
Re: customize eshell-alias loading |
Date: |
Tue, 06 Apr 2004 08:33:50 +1000 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) |
Richard Stallman <address@hidden> writes:
>
> Another would be to make em-alias require the other files it needs in
> order to load properly.
I went through the cus-load lists with a bit of a script and came up
with the following. reftex was another I'd noticed before, but it
seems to have got better on its own (or maybe I was on the 21.3 code).
* eshell/em-alias.el, eshell/em-dirs.el, eshell/em-hist.el,
eshell/em-unix.el: Add "(require 'eshell)", to get necessary features
when M-x customize-group loads modules before the main eshell.el.
I guess this makes some circular require's, but with the provide's are
at the top of each file it seems to work.
The esh-groups.el scheme confused me a bit. (esh-module.el greps the
em-*.el modules for defgroups and generates esh-groups.el, to make the
group definitions available before the modules are loaded.) I
wondered if cus-load made that redundant. It seems to be harmless at
least.
*** em-alias.el.~1.10.~ Sun Mar 28 07:45:10 2004
--- em-alias.el Tue Apr 6 08:20:10 2004
***************
*** 1,6 ****
;;; em-alias.el --- creation and management of command aliases
! ;; Copyright (C) 1999, 2000 Free Software Foundation
;; Author: John Wiegley <address@hidden>
--- 1,6 ----
;;; em-alias.el --- creation and management of command aliases
! ;; Copyright (C) 1999, 2000, 2004 Free Software Foundation
;; Author: John Wiegley <address@hidden>
***************
*** 24,29 ****
--- 24,30 ----
(provide 'em-alias)
(eval-when-compile (require 'esh-maint))
+ (require 'eshell)
(defgroup eshell-alias nil
"Command aliases allow for easy definition of alternate commands."
*** em-dirs.el.~1.13.~ Sat Sep 6 08:15:45 2003
--- em-dirs.el Tue Apr 6 08:20:47 2004
***************
*** 1,6 ****
;;; em-dirs.el --- directory navigation commands
! ;; Copyright (C) 1999, 2000 Free Software Foundation
;; Author: John Wiegley <address@hidden>
--- 1,6 ----
;;; em-dirs.el --- directory navigation commands
! ;; Copyright (C) 1999, 2000, 2004 Free Software Foundation
;; Author: John Wiegley <address@hidden>
***************
*** 24,29 ****
--- 24,30 ----
(provide 'em-dirs)
(eval-when-compile (require 'esh-maint))
+ (require 'eshell)
(defgroup eshell-dirs nil
"Directory navigation involves changing directories, examining the
*** em-hist.el.~1.14.~ Sun Feb 15 10:17:50 2004
--- em-hist.el Wed Mar 31 15:29:53 2004
***************
*** 24,29 ****
--- 24,30 ----
(provide 'em-hist)
(eval-when-compile (require 'esh-maint))
+ (require 'eshell)
(defgroup eshell-hist nil
"This module provides command history management."
*** em-unix.el.~1.21.~ Sat Sep 6 08:15:46 2003
--- em-unix.el Tue Apr 6 08:21:33 2004
***************
*** 1,6 ****
;;; em-unix.el --- UNIX command aliases
! ;; Copyright (C) 1999, 2000, 2001 Free Software Foundation
;; Author: John Wiegley <address@hidden>
--- 1,6 ----
;;; em-unix.el --- UNIX command aliases
! ;; Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation
;; Author: John Wiegley <address@hidden>
***************
*** 24,29 ****
--- 24,30 ----
(provide 'em-unix)
(eval-when-compile (require 'esh-maint))
+ (require 'eshell)
(defgroup eshell-unix nil
"This module defines many of the more common UNIX utilities as
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: customize eshell-alias loading,
Kevin Ryde <=