summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-06-27 00:08:06 -0700
committerGlenn Morris <rgm@gnu.org>2012-06-27 00:08:06 -0700
commit35ff222c16e3c0a6a0dfd95426f9453ac182a5ed (patch)
tree2a869e0e2cf24836296fe1b632cc52eaf9b758ab /lisp
parent7983050d181d2fd4020db5f3736ed94d104aea5d (diff)
downloademacs-35ff222c16e3c0a6a0dfd95426f9453ac182a5ed.tar.gz
Replace eshell-defgroup with plain defgroup
Borrowing a trick from vc-sccs.el, wrap the defgroup in a progn so that the whole thing ends up in the generated autoload file, esh-groups.el. * em-alias.el, em-banner.el, em-basic.el, em-cmpl.el, em-dirs.el: * em-glob.el, em-hist.el, em-ls.el, em-pred.el, em-prompt.el: * em-rebind.el, em-script.el, em-smart.el, em-term.el, em-unix.el: * em-xtra.el: Replace eshell-defgroup with (progn (defgroup. * eshell.el (eshell-defgroup): Remove alias.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/eshell/em-alias.el5
-rw-r--r--lisp/eshell/em-banner.el5
-rw-r--r--lisp/eshell/em-basic.el5
-rw-r--r--lisp/eshell/em-cmpl.el5
-rw-r--r--lisp/eshell/em-dirs.el5
-rw-r--r--lisp/eshell/em-glob.el5
-rw-r--r--lisp/eshell/em-hist.el5
-rw-r--r--lisp/eshell/em-ls.el5
-rw-r--r--lisp/eshell/em-pred.el5
-rw-r--r--lisp/eshell/em-prompt.el5
-rw-r--r--lisp/eshell/em-rebind.el5
-rw-r--r--lisp/eshell/em-script.el5
-rw-r--r--lisp/eshell/em-smart.el5
-rw-r--r--lisp/eshell/em-term.el5
-rw-r--r--lisp/eshell/em-unix.el5
-rw-r--r--lisp/eshell/em-xtra.el5
-rw-r--r--lisp/eshell/esh-module.el4
-rw-r--r--lisp/eshell/eshell.el4
19 files changed, 61 insertions, 37 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c52891af605..5ef714b6878 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
+2012-06-27 Glenn Morris <rgm@gnu.org>
+
+ * eshell/em-alias.el, eshell/em-banner.el, eshell/em-basic.el:
+ * eshell/em-cmpl.el, eshell/em-dirs.el, eshell/em-glob.el:
+ * eshell/em-hist.el, eshell/em-ls.el, eshell/em-pred.el:
+ * eshell/em-prompt.el, eshell/em-rebind.el, eshell/em-script.el:
+ * eshell/em-smart.el, eshell/em-term.el, eshell/em-unix.el:
+ * eshell/em-xtra.el: Replace eshell-defgroup with "(progn (defgroup".
+ * eshell/eshell.el (eshell-defgroup): Remove alias.
+
2012-06-27 Chong Yidong <cyd@gnu.org>
* help.el (help-enable-auto-load): New variable.
diff --git a/lisp/eshell/em-alias.el b/lisp/eshell/em-alias.el
index d45f918113d..4b62fec95e6 100644
--- a/lisp/eshell/em-alias.el
+++ b/lisp/eshell/em-alias.el
@@ -95,11 +95,12 @@
(require 'eshell)
;;;###autoload
-(eshell-defgroup eshell-alias nil
+(progn
+(defgroup eshell-alias nil
"Command aliases allow for easy definition of alternate commands."
:tag "Command aliases"
;; :link '(info-link "(eshell)Command aliases")
- :group 'eshell-module)
+ :group 'eshell-module))
(defcustom eshell-aliases-file (expand-file-name "alias" eshell-directory-name)
"The file in which aliases are kept.
diff --git a/lisp/eshell/em-banner.el b/lisp/eshell/em-banner.el
index a96a3dfe6af..82cb638a791 100644
--- a/lisp/eshell/em-banner.el
+++ b/lisp/eshell/em-banner.el
@@ -46,13 +46,14 @@
(require 'esh-util)
;;;###autoload
-(eshell-defgroup eshell-banner nil
+(progn
+(defgroup eshell-banner nil
"This sample module displays a welcome banner at login.
It exists so that others wishing to create their own Eshell extension
modules may have a simple template to begin with."
:tag "Login banner"
;; :link '(info-link "(eshell)Login banner")
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-basic.el b/lisp/eshell/em-basic.el
index ece029c39f2..e07bc75f89a 100644
--- a/lisp/eshell/em-basic.el
+++ b/lisp/eshell/em-basic.el
@@ -66,14 +66,15 @@
(require 'esh-opt)
;;;###autoload
-(eshell-defgroup eshell-basic nil
+(progn
+(defgroup eshell-basic nil
"The \"basic\" code provides a set of convenience functions which
are traditionally considered shell builtins. Since all of the
functionality provided by them is accessible through Lisp, they are
not really builtins at all, but offer a command-oriented way to do the
same thing."
:tag "Basic shell commands"
- :group 'eshell-module)
+ :group 'eshell-module))
(defcustom eshell-plain-echo-behavior nil
"If non-nil, `echo' tries to behave like an ordinary shell echo.
diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el
index a5e1b6194c7..25a70104c02 100644
--- a/lisp/eshell/em-cmpl.el
+++ b/lisp/eshell/em-cmpl.el
@@ -75,12 +75,13 @@
(require 'esh-util)
;;;###autoload
-(eshell-defgroup eshell-cmpl nil
+(progn
+(defgroup eshell-cmpl nil
"This module provides a programmable completion function bound to
the TAB key, which allows for completing command names, file names,
variable names, arguments, etc."
:tag "Argument completion"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el
index 992b5bdd77e..4a3fa54626b 100644
--- a/lisp/eshell/em-dirs.el
+++ b/lisp/eshell/em-dirs.el
@@ -47,14 +47,15 @@
(require 'esh-opt)
;;;###autoload
-(eshell-defgroup eshell-dirs nil
+(progn
+(defgroup eshell-dirs nil
"Directory navigation involves changing directories, examining the
current directory, maintaining a directory stack, and also keeping
track of a history of the last directory locations the user was in.
Emacs does provide standard Lisp definitions of `pwd' and `cd', but
they lack somewhat in feel from the typical shell equivalents."
:tag "Directory navigation"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-glob.el b/lisp/eshell/em-glob.el
index 623d2c8e193..288aa9b773b 100644
--- a/lisp/eshell/em-glob.el
+++ b/lisp/eshell/em-glob.el
@@ -53,11 +53,12 @@
(require 'esh-util)
;;;###autoload
-(eshell-defgroup eshell-glob nil
+(progn
+(defgroup eshell-glob nil
"This module provides extended globbing syntax, similar what is used
by zsh for filename generation."
:tag "Extended filename globbing"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el
index 05097a8deaf..62d0bd65e9d 100644
--- a/lisp/eshell/em-hist.el
+++ b/lisp/eshell/em-hist.el
@@ -63,10 +63,11 @@
(require 'eshell)
;;;###autoload
-(eshell-defgroup eshell-hist nil
+(progn
+(defgroup eshell-hist nil
"This module provides command history management."
:tag "History list management"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el
index 144b4dda8e2..5553207b626 100644
--- a/lisp/eshell/em-ls.el
+++ b/lisp/eshell/em-ls.el
@@ -33,14 +33,15 @@
(require 'esh-opt)
;;;###autoload
-(eshell-defgroup eshell-ls nil
+(progn
+(defgroup eshell-ls nil
"This module implements the \"ls\" utility fully in Lisp. If it is
passed any unrecognized command switches, it will revert to the
operating system's version. This version of \"ls\" uses text
properties to colorize its output based on the setting of
`eshell-ls-use-colors'."
:tag "Implementation of `ls' in Lisp"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-pred.el b/lisp/eshell/em-pred.el
index 56b0fdfc9a2..fc23c0099e8 100644
--- a/lisp/eshell/em-pred.el
+++ b/lisp/eshell/em-pred.el
@@ -49,13 +49,14 @@
(eval-when-compile (require 'eshell))
;;;###autoload
-(eshell-defgroup eshell-pred nil
+(progn
+(defgroup eshell-pred nil
"This module allows for predicates to be applied to globbing
patterns (similar to zsh), in addition to string modifiers which can
be applied either to globbing results, variable references, or just
ordinary strings."
:tag "Value modifiers and predicates"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el
index c13bb6d9630..f4701ec35ea 100644
--- a/lisp/eshell/em-prompt.el
+++ b/lisp/eshell/em-prompt.el
@@ -29,11 +29,12 @@
(eval-when-compile (require 'eshell))
;;;###autoload
-(eshell-defgroup eshell-prompt nil
+(progn
+(defgroup eshell-prompt nil
"This module provides command prompts, and navigation between them,
as is common with most shells."
:tag "Command prompts"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-rebind.el b/lisp/eshell/em-rebind.el
index 243e71d7533..929b74d789d 100644
--- a/lisp/eshell/em-rebind.el
+++ b/lisp/eshell/em-rebind.el
@@ -26,7 +26,8 @@
(eval-when-compile (require 'eshell))
;;;###autoload
-(eshell-defgroup eshell-rebind nil
+(progn
+(defgroup eshell-rebind nil
"This module allows for special keybindings that only take effect
while the point is in a region of input text. By default, it binds
C-a to move to the beginning of the input text (rather than just the
@@ -37,7 +38,7 @@ commands to cause the point to leave the input area, such as
`backward-word', `previous-line', etc. This module intends to mimic
the behavior of normal shells while the user editing new input text."
:tag "Rebind keys at input"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-script.el b/lisp/eshell/em-script.el
index 8acbc2644be..3b203b4856c 100644
--- a/lisp/eshell/em-script.el
+++ b/lisp/eshell/em-script.el
@@ -26,11 +26,12 @@
(require 'eshell)
;;;###autoload
-(eshell-defgroup eshell-script nil
+(progn
+(defgroup eshell-script nil
"This module allows for the execution of files containing Eshell
commands, as a script file."
:tag "Running script files."
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-smart.el b/lisp/eshell/em-smart.el
index cdaed9b717c..b427fe69ea4 100644
--- a/lisp/eshell/em-smart.el
+++ b/lisp/eshell/em-smart.el
@@ -71,7 +71,8 @@
(eval-when-compile (require 'eshell))
;;;###autoload
-(eshell-defgroup eshell-smart nil
+(progn
+(defgroup eshell-smart nil
"This module combines the facility of normal, modern shells with
some of the edit/review concepts inherent in the design of Plan 9's
9term. See the docs for more details.
@@ -80,7 +81,7 @@ Most likely you will have to turn this option on and play around with
it to get a real sense of how it works."
:tag "Smart display of output"
;; :link '(info-link "(eshell)Smart display of output")
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-term.el b/lisp/eshell/em-term.el
index 33c47d1c0ec..37fa939cc10 100644
--- a/lisp/eshell/em-term.el
+++ b/lisp/eshell/em-term.el
@@ -35,14 +35,15 @@
(require 'term)
;;;###autoload
-(eshell-defgroup eshell-term nil
+(progn
+(defgroup eshell-term nil
"This module causes visual commands (e.g., 'vi') to be executed by
the `term' package, which comes with Emacs. This package handles most
of the ANSI control codes, allowing curses-based applications to run
within an Emacs window. The variable `eshell-visual-commands' defines
which commands are considered visual in nature."
:tag "Running visual commands"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; User Variables:
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el
index 1875506fe9d..ddba5a6520a 100644
--- a/lisp/eshell/em-unix.el
+++ b/lisp/eshell/em-unix.el
@@ -40,7 +40,8 @@
(require 'pcomplete)
;;;###autoload
-(eshell-defgroup eshell-unix nil
+(progn
+(defgroup eshell-unix nil
"This module defines many of the more common UNIX utilities as
aliases implemented in Lisp. These include mv, ln, cp, rm, etc. If
the user passes arguments which are too complex, or are unrecognized
@@ -51,7 +52,7 @@ with Eshell makes them more versatile than their traditional cousins
\(such as being able to use `kill' to kill Eshell background processes
by name)."
:tag "UNIX commands in Lisp"
- :group 'eshell-module)
+ :group 'eshell-module))
(defcustom eshell-unix-load-hook nil
"A list of functions to run when `eshell-unix' is loaded."
diff --git a/lisp/eshell/em-xtra.el b/lisp/eshell/em-xtra.el
index 3dfb33d37e3..2e7a813cb75 100644
--- a/lisp/eshell/em-xtra.el
+++ b/lisp/eshell/em-xtra.el
@@ -29,13 +29,14 @@
(require 'compile)
;;;###autoload
-(eshell-defgroup eshell-xtra nil
+(progn
+(defgroup eshell-xtra nil
"This module defines some extra alias functions which are entirely
optional. They can be viewed as samples for how to write Eshell alias
functions, or as aliases which make some of Emacs's behavior more
naturally accessible within Emacs."
:tag "Extra alias functions"
- :group 'eshell-module)
+ :group 'eshell-module))
;;; Functions:
diff --git a/lisp/eshell/esh-module.el b/lisp/eshell/esh-module.el
index 8875395e1d1..2e3c6b8b7b5 100644
--- a/lisp/eshell/esh-module.el
+++ b/lisp/eshell/esh-module.el
@@ -36,7 +36,9 @@ customizing the variable `eshell-modules-list'."
;; load the defgroup's for the standard extension modules, so that
;; documentation can be provided when the user customize's
-;; `eshell-modules-list'.
+;; `eshell-modules-list'. We use "(progn (defgroup ..." in each file
+;; to force the autoloader into including the entire defgroup, rather
+;; than an abbreviated version.
(load "esh-groups" nil 'nomessage)
;;; User Variables:
diff --git a/lisp/eshell/eshell.el b/lisp/eshell/eshell.el
index f8c9788b24d..0a200deee46 100644
--- a/lisp/eshell/eshell.el
+++ b/lisp/eshell/eshell.el
@@ -236,10 +236,6 @@ shells such as bash, zsh, rc, 4dos."
:version "21.1"
:group 'applications)
-;; This is hack to force make-autoload to put the whole definition
-;; into the autoload file (see esh-module.el).
-(defalias 'eshell-defgroup 'defgroup)
-
;;;_* User Options
;;
;; The following user options modify the behavior of Eshell overall.