diff options
| author | Glenn Morris | 2007-12-05 07:03:18 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-05 07:03:18 +0000 |
| commit | dbba8a04c9c73ad7a8b74e716a9126ee3333fc08 (patch) | |
| tree | 1f93769ecc38b19d6598d8f2225f3c67937abd57 /lisp/eshell | |
| parent | 20d7538ee8ef3991d3b4d4684d332d4efa1f6f1c (diff) | |
| download | emacs-dbba8a04c9c73ad7a8b74e716a9126ee3333fc08.tar.gz emacs-dbba8a04c9c73ad7a8b74e716a9126ee3333fc08.zip | |
Require individual files if needed when compiling, rather than
esh-maint. Collect any require statements. Move provide statement to
end. Move any commentary to start.
Diffstat (limited to 'lisp/eshell')
| -rw-r--r-- | lisp/eshell/em-cmpl.el | 27 | ||||
| -rw-r--r-- | lisp/eshell/em-dirs.el | 28 | ||||
| -rw-r--r-- | lisp/eshell/em-glob.el | 26 | ||||
| -rw-r--r-- | lisp/eshell/em-hist.el | 18 | ||||
| -rw-r--r-- | lisp/eshell/em-ls.el | 21 | ||||
| -rw-r--r-- | lisp/eshell/em-pred.el | 24 | ||||
| -rw-r--r-- | lisp/eshell/em-prompt.el | 16 | ||||
| -rw-r--r-- | lisp/eshell/em-rebind.el | 10 | ||||
| -rw-r--r-- | lisp/eshell/em-script.el | 8 | ||||
| -rw-r--r-- | lisp/eshell/em-smart.el | 32 | ||||
| -rw-r--r-- | lisp/eshell/em-term.el | 27 | ||||
| -rw-r--r-- | lisp/eshell/em-unix.el | 35 | ||||
| -rw-r--r-- | lisp/eshell/em-xtra.el | 15 |
13 files changed, 139 insertions, 148 deletions
diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el index 8672885cc60..b5f666a6bf6 100644 --- a/lisp/eshell/em-cmpl.el +++ b/lisp/eshell/em-cmpl.el | |||
| @@ -22,18 +22,6 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-cmpl) | ||
| 26 | |||
| 27 | (eval-when-compile (require 'esh-maint)) | ||
| 28 | (require 'esh-util) | ||
| 29 | |||
| 30 | (defgroup eshell-cmpl nil | ||
| 31 | "This module provides a programmable completion function bound to | ||
| 32 | the TAB key, which allows for completing command names, file names, | ||
| 33 | variable names, arguments, etc." | ||
| 34 | :tag "Argument completion" | ||
| 35 | :group 'eshell-module) | ||
| 36 | |||
| 37 | ;;; Commentary: | 25 | ;;; Commentary: |
| 38 | 26 | ||
| 39 | ;; Eshell, by using the pcomplete package, provides a full | 27 | ;; Eshell, by using the pcomplete package, provides a full |
| @@ -82,6 +70,19 @@ variable names, arguments, etc." | |||
| 82 | ;; This only works well if the completion function has provided Eshell | 70 | ;; This only works well if the completion function has provided Eshell |
| 83 | ;; with sufficient pointers to locate the relevant help text. | 71 | ;; with sufficient pointers to locate the relevant help text. |
| 84 | 72 | ||
| 73 | ;;; Code: | ||
| 74 | |||
| 75 | (eval-when-compile | ||
| 76 | (require 'eshell)) | ||
| 77 | (require 'esh-util) | ||
| 78 | |||
| 79 | (defgroup eshell-cmpl nil | ||
| 80 | "This module provides a programmable completion function bound to | ||
| 81 | the TAB key, which allows for completing command names, file names, | ||
| 82 | variable names, arguments, etc." | ||
| 83 | :tag "Argument completion" | ||
| 84 | :group 'eshell-module) | ||
| 85 | |||
| 85 | ;;; User Variables: | 86 | ;;; User Variables: |
| 86 | 87 | ||
| 87 | (defcustom eshell-cmpl-load-hook '(eshell-cmpl-initialize) | 88 | (defcustom eshell-cmpl-load-hook '(eshell-cmpl-initialize) |
| @@ -448,7 +449,7 @@ to writing a completion function." | |||
| 448 | (all-completions filename obarray 'functionp)) | 449 | (all-completions filename obarray 'functionp)) |
| 449 | completions))))))) | 450 | completions))))))) |
| 450 | 451 | ||
| 451 | ;;; Code: | 452 | (provide 'em-cmpl) |
| 452 | 453 | ||
| 453 | ;;; arch-tag: 0e914699-673a-45f8-8cbf-82e1dbc571bc | 454 | ;;; arch-tag: 0e914699-673a-45f8-8cbf-82e1dbc571bc |
| 454 | ;;; em-cmpl.el ends here | 455 | ;;; em-cmpl.el ends here |
diff --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el index 02556661b1b..8a1e81621bc 100644 --- a/lisp/eshell/em-dirs.el +++ b/lisp/eshell/em-dirs.el | |||
| @@ -22,20 +22,6 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-dirs) | ||
| 26 | |||
| 27 | (eval-when-compile (require 'esh-maint)) | ||
| 28 | (require 'eshell) | ||
| 29 | |||
| 30 | (defgroup eshell-dirs nil | ||
| 31 | "Directory navigation involves changing directories, examining the | ||
| 32 | current directory, maintaining a directory stack, and also keeping | ||
| 33 | track of a history of the last directory locations the user was in. | ||
| 34 | Emacs does provide standard Lisp definitions of `pwd' and `cd', but | ||
| 35 | they lack somewhat in feel from the typical shell equivalents." | ||
| 36 | :tag "Directory navigation" | ||
| 37 | :group 'eshell-module) | ||
| 38 | |||
| 39 | ;;; Commentary: | 25 | ;;; Commentary: |
| 40 | 26 | ||
| 41 | ;; The only special feature that Eshell offers in the last-dir-ring. | 27 | ;; The only special feature that Eshell offers in the last-dir-ring. |
| @@ -57,9 +43,21 @@ they lack somewhat in feel from the typical shell equivalents." | |||
| 57 | ;; Eshell sessions. It is a separate mechanism from `pushd' and | 43 | ;; Eshell sessions. It is a separate mechanism from `pushd' and |
| 58 | ;; `popd', and the two may be used at the same time. | 44 | ;; `popd', and the two may be used at the same time. |
| 59 | 45 | ||
| 46 | ;;; Code: | ||
| 47 | |||
| 48 | (require 'eshell) | ||
| 60 | (require 'ring) | 49 | (require 'ring) |
| 61 | (require 'esh-opt) | 50 | (require 'esh-opt) |
| 62 | 51 | ||
| 52 | (defgroup eshell-dirs nil | ||
| 53 | "Directory navigation involves changing directories, examining the | ||
| 54 | current directory, maintaining a directory stack, and also keeping | ||
| 55 | track of a history of the last directory locations the user was in. | ||
| 56 | Emacs does provide standard Lisp definitions of `pwd' and `cd', but | ||
| 57 | they lack somewhat in feel from the typical shell equivalents." | ||
| 58 | :tag "Directory navigation" | ||
| 59 | :group 'eshell-module) | ||
| 60 | |||
| 63 | ;;; User Variables: | 61 | ;;; User Variables: |
| 64 | 62 | ||
| 65 | (defcustom eshell-dirs-load-hook '(eshell-dirs-initialize) | 63 | (defcustom eshell-dirs-load-hook '(eshell-dirs-initialize) |
| @@ -566,7 +564,7 @@ in the minibuffer: | |||
| 566 | (write-region (point-min) (point-max) file nil | 564 | (write-region (point-min) (point-max) file nil |
| 567 | 'no-message)))))))) | 565 | 'no-message)))))))) |
| 568 | 566 | ||
| 569 | ;;; Code: | 567 | (provide 'em-dirs) |
| 570 | 568 | ||
| 571 | ;;; arch-tag: 1e9c5a95-f1bd-45f8-ad36-55aac706e787 | 569 | ;;; arch-tag: 1e9c5a95-f1bd-45f8-ad36-55aac706e787 |
| 572 | ;;; em-dirs.el ends here | 570 | ;;; em-dirs.el ends here |
diff --git a/lisp/eshell/em-glob.el b/lisp/eshell/em-glob.el index 2e95aaefae0..b08ddd77e19 100644 --- a/lisp/eshell/em-glob.el +++ b/lisp/eshell/em-glob.el | |||
| @@ -22,19 +22,6 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | ;;; Code: | ||
| 26 | |||
| 27 | (provide 'em-glob) | ||
| 28 | |||
| 29 | (eval-when-compile (require 'esh-maint)) | ||
| 30 | (require 'esh-util) | ||
| 31 | |||
| 32 | (defgroup eshell-glob nil | ||
| 33 | "This module provides extended globbing syntax, similar what is used | ||
| 34 | by zsh for filename generation." | ||
| 35 | :tag "Extended filename globbing" | ||
| 36 | :group 'eshell-module) | ||
| 37 | |||
| 38 | ;;; Commentary: | 25 | ;;; Commentary: |
| 39 | 26 | ||
| 40 | ;; The globbing code used by Eshell closely follows the syntax used by | 27 | ;; The globbing code used by Eshell closely follows the syntax used by |
| @@ -63,6 +50,17 @@ by zsh for filename generation." | |||
| 63 | ;; owned by the user 'johnw'. See [Value modifiers and predicates], | 50 | ;; owned by the user 'johnw'. See [Value modifiers and predicates], |
| 64 | ;; for more information about argument predication. | 51 | ;; for more information about argument predication. |
| 65 | 52 | ||
| 53 | ;;; Code: | ||
| 54 | |||
| 55 | (eval-when-compile (require 'eshell)) | ||
| 56 | (require 'esh-util) | ||
| 57 | |||
| 58 | (defgroup eshell-glob nil | ||
| 59 | "This module provides extended globbing syntax, similar what is used | ||
| 60 | by zsh for filename generation." | ||
| 61 | :tag "Extended filename globbing" | ||
| 62 | :group 'eshell-module) | ||
| 63 | |||
| 66 | ;;; User Variables: | 64 | ;;; User Variables: |
| 67 | 65 | ||
| 68 | (defcustom eshell-glob-load-hook '(eshell-glob-initialize) | 66 | (defcustom eshell-glob-load-hook '(eshell-glob-initialize) |
| @@ -356,5 +354,7 @@ the form: | |||
| 356 | (eshell-glob-entries (car rdirs) globs recurse-p) | 354 | (eshell-glob-entries (car rdirs) globs recurse-p) |
| 357 | (setq rdirs (cdr rdirs))))) | 355 | (setq rdirs (cdr rdirs))))) |
| 358 | 356 | ||
| 357 | (provide 'em-glob) | ||
| 358 | |||
| 359 | ;;; arch-tag: d0548f54-fb7c-4978-a88e-f7c26f7f68ca | 359 | ;;; arch-tag: d0548f54-fb7c-4978-a88e-f7c26f7f68ca |
| 360 | ;;; em-glob.el ends here | 360 | ;;; em-glob.el ends here |
diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 88e15423956..2dd2b31d34a 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el | |||
| @@ -22,16 +22,6 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-hist) | ||
| 26 | |||
| 27 | (eval-when-compile (require 'esh-maint)) | ||
| 28 | (require 'eshell) | ||
| 29 | |||
| 30 | (defgroup eshell-hist nil | ||
| 31 | "This module provides command history management." | ||
| 32 | :tag "History list management" | ||
| 33 | :group 'eshell-module) | ||
| 34 | |||
| 35 | ;;; Commentary: | 25 | ;;; Commentary: |
| 36 | 26 | ||
| 37 | ;; Eshell's history facility imitates the syntax used by bash | 27 | ;; Eshell's history facility imitates the syntax used by bash |
| @@ -70,6 +60,12 @@ | |||
| 70 | (require 'ring) | 60 | (require 'ring) |
| 71 | (require 'esh-opt) | 61 | (require 'esh-opt) |
| 72 | (require 'em-pred) | 62 | (require 'em-pred) |
| 63 | (require 'eshell) | ||
| 64 | |||
| 65 | (defgroup eshell-hist nil | ||
| 66 | "This module provides command history management." | ||
| 67 | :tag "History list management" | ||
| 68 | :group 'eshell-module) | ||
| 73 | 69 | ||
| 74 | ;;; User Variables: | 70 | ;;; User Variables: |
| 75 | 71 | ||
| @@ -988,5 +984,7 @@ If N is negative, search backwards for the -Nth previous match." | |||
| 988 | (isearch-done) | 984 | (isearch-done) |
| 989 | (eshell-send-input)) | 985 | (eshell-send-input)) |
| 990 | 986 | ||
| 987 | (provide 'em-hist) | ||
| 988 | |||
| 991 | ;;; arch-tag: 1a847333-f864-4b96-9acd-b549d620b6c6 | 989 | ;;; arch-tag: 1a847333-f864-4b96-9acd-b549d620b6c6 |
| 992 | ;;; em-hist.el ends here | 990 | ;;; em-hist.el ends here |
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el index d6b4f3aed29..01a6bb87a1f 100644 --- a/lisp/eshell/em-ls.el +++ b/lisp/eshell/em-ls.el | |||
| @@ -22,9 +22,16 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-ls) | 25 | ;;; Commentary: |
| 26 | |||
| 27 | ;; Most of the command switches recognized by GNU's ls utility are | ||
| 28 | ;; supported ([(fileutils)ls invocation]). | ||
| 26 | 29 | ||
| 27 | (eval-when-compile (require 'esh-maint)) | 30 | ;;; Code: |
| 31 | |||
| 32 | (eval-when-compile (require 'eshell)) | ||
| 33 | (require 'esh-util) | ||
| 34 | (require 'esh-opt) | ||
| 28 | 35 | ||
| 29 | (defgroup eshell-ls nil | 36 | (defgroup eshell-ls nil |
| 30 | "This module implements the \"ls\" utility fully in Lisp. If it is | 37 | "This module implements the \"ls\" utility fully in Lisp. If it is |
| @@ -35,14 +42,6 @@ properties to colorize its output based on the setting of | |||
| 35 | :tag "Implementation of `ls' in Lisp" | 42 | :tag "Implementation of `ls' in Lisp" |
| 36 | :group 'eshell-module) | 43 | :group 'eshell-module) |
| 37 | 44 | ||
| 38 | ;;; Commentary: | ||
| 39 | |||
| 40 | ;; Most of the command switches recognized by GNU's ls utility are | ||
| 41 | ;; supported ([(fileutils)ls invocation]). | ||
| 42 | |||
| 43 | (require 'esh-util) | ||
| 44 | (require 'esh-opt) | ||
| 45 | |||
| 46 | ;;; User Variables: | 45 | ;;; User Variables: |
| 47 | 46 | ||
| 48 | (defvar eshell-ls-orig-insert-directory | 47 | (defvar eshell-ls-orig-insert-directory |
| @@ -922,7 +921,7 @@ to use, and each member of which is the width of that column | |||
| 922 | (car file))))) | 921 | (car file))))) |
| 923 | (car file)) | 922 | (car file)) |
| 924 | 923 | ||
| 925 | ;;; Code: | 924 | (provide 'em-ls) |
| 926 | 925 | ||
| 927 | ;;; arch-tag: 9295181c-0cb2-499c-999b-89f5359842cb | 926 | ;;; arch-tag: 9295181c-0cb2-499c-999b-89f5359842cb |
| 928 | ;;; em-ls.el ends here | 927 | ;;; em-ls.el ends here |
diff --git a/lisp/eshell/em-pred.el b/lisp/eshell/em-pred.el index a7f68e4e222..628b8b61143 100644 --- a/lisp/eshell/em-pred.el +++ b/lisp/eshell/em-pred.el | |||
| @@ -22,18 +22,6 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-pred) | ||
| 26 | |||
| 27 | (eval-when-compile (require 'esh-maint)) | ||
| 28 | |||
| 29 | (defgroup eshell-pred nil | ||
| 30 | "This module allows for predicates to be applied to globbing | ||
| 31 | patterns (similar to zsh), in addition to string modifiers which can | ||
| 32 | be applied either to globbing results, variable references, or just | ||
| 33 | ordinary strings." | ||
| 34 | :tag "Value modifiers and predicates" | ||
| 35 | :group 'eshell-module) | ||
| 36 | |||
| 37 | ;;; Commentary: | 25 | ;;; Commentary: |
| 38 | 26 | ||
| 39 | ;; Argument predication is used to affect which members of a list are | 27 | ;; Argument predication is used to affect which members of a list are |
| @@ -61,6 +49,16 @@ ordinary strings." | |||
| 61 | 49 | ||
| 62 | ;;; Code: | 50 | ;;; Code: |
| 63 | 51 | ||
| 52 | (eval-when-compile (require 'eshell)) | ||
| 53 | |||
| 54 | (defgroup eshell-pred nil | ||
| 55 | "This module allows for predicates to be applied to globbing | ||
| 56 | patterns (similar to zsh), in addition to string modifiers which can | ||
| 57 | be applied either to globbing results, variable references, or just | ||
| 58 | ordinary strings." | ||
| 59 | :tag "Value modifiers and predicates" | ||
| 60 | :group 'eshell-module) | ||
| 61 | |||
| 64 | ;;; User Variables: | 62 | ;;; User Variables: |
| 65 | 63 | ||
| 66 | (defcustom eshell-pred-load-hook '(eshell-pred-initialize) | 64 | (defcustom eshell-pred-load-hook '(eshell-pred-initialize) |
| @@ -602,5 +600,7 @@ that 'ls -l' will show in the first column of its display. " | |||
| 602 | (lambda (str) | 600 | (lambda (str) |
| 603 | (split-string str ,sep))) lst)))) | 601 | (split-string str ,sep))) lst)))) |
| 604 | 602 | ||
| 603 | (provide 'em-pred) | ||
| 604 | |||
| 605 | ;;; arch-tag: 8b5ce022-17f3-4c40-93c7-5faafaa63f31 | 605 | ;;; arch-tag: 8b5ce022-17f3-4c40-93c7-5faafaa63f31 |
| 606 | ;;; em-pred.el ends here | 606 | ;;; em-pred.el ends here |
diff --git a/lisp/eshell/em-prompt.el b/lisp/eshell/em-prompt.el index ddbf74f5c42..57a1da74177 100644 --- a/lisp/eshell/em-prompt.el +++ b/lisp/eshell/em-prompt.el | |||
| @@ -22,9 +22,14 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-prompt) | 25 | ;;; Commentary: |
| 26 | |||
| 27 | ;; Most of the prompt navigation commands of `comint-mode' are | ||
| 28 | ;; supported, such as C-c C-n, C-c C-p, etc. | ||
| 29 | |||
| 30 | ;;; Code: | ||
| 26 | 31 | ||
| 27 | (eval-when-compile (require 'esh-maint)) | 32 | (eval-when-compile (require 'eshell)) |
| 28 | 33 | ||
| 29 | (defgroup eshell-prompt nil | 34 | (defgroup eshell-prompt nil |
| 30 | "This module provides command prompts, and navigation between them, | 35 | "This module provides command prompts, and navigation between them, |
| @@ -32,11 +37,6 @@ as is common with most shells." | |||
| 32 | :tag "Command prompts" | 37 | :tag "Command prompts" |
| 33 | :group 'eshell-module) | 38 | :group 'eshell-module) |
| 34 | 39 | ||
| 35 | ;;; Commentary: | ||
| 36 | |||
| 37 | ;; Most of the prompt navigation commands of `comint-mode' are | ||
| 38 | ;; supported, such as C-c C-n, C-c C-p, etc. | ||
| 39 | |||
| 40 | ;;; User Variables: | 40 | ;;; User Variables: |
| 41 | 41 | ||
| 42 | (defcustom eshell-prompt-load-hook '(eshell-prompt-initialize) | 42 | (defcustom eshell-prompt-load-hook '(eshell-prompt-initialize) |
| @@ -173,7 +173,7 @@ If this takes us past the end of the current line, don't skip at all." | |||
| 173 | (<= (match-end 0) eol)) | 173 | (<= (match-end 0) eol)) |
| 174 | (goto-char (match-end 0))))) | 174 | (goto-char (match-end 0))))) |
| 175 | 175 | ||
| 176 | ;;; Code: | 176 | (provide 'em-prompt) |
| 177 | 177 | ||
| 178 | ;;; arch-tag: 01c1574b-ce70-4e89-bc38-e6619f61e208 | 178 | ;;; arch-tag: 01c1574b-ce70-4e89-bc38-e6619f61e208 |
| 179 | ;;; em-prompt.el ends here | 179 | ;;; em-prompt.el ends here |
diff --git a/lisp/eshell/em-rebind.el b/lisp/eshell/em-rebind.el index 898f0b9d301..b550016fbe1 100644 --- a/lisp/eshell/em-rebind.el +++ b/lisp/eshell/em-rebind.el | |||
| @@ -22,9 +22,11 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-rebind) | 25 | ;;; Commentary: |
| 26 | |||
| 27 | ;;; Code: | ||
| 26 | 28 | ||
| 27 | (eval-when-compile (require 'esh-maint)) | 29 | (eval-when-compile (require 'eshell)) |
| 28 | 30 | ||
| 29 | (defgroup eshell-rebind nil | 31 | (defgroup eshell-rebind nil |
| 30 | "This module allows for special keybindings that only take effect | 32 | "This module allows for special keybindings that only take effect |
| @@ -39,8 +41,6 @@ the behavior of normal shells while the user editing new input text." | |||
| 39 | :tag "Rebind keys at input" | 41 | :tag "Rebind keys at input" |
| 40 | :group 'eshell-module) | 42 | :group 'eshell-module) |
| 41 | 43 | ||
| 42 | ;;; Commentary: | ||
| 43 | |||
| 44 | ;;; User Variables: | 44 | ;;; User Variables: |
| 45 | 45 | ||
| 46 | (defcustom eshell-rebind-load-hook '(eshell-rebind-initialize) | 46 | (defcustom eshell-rebind-load-hook '(eshell-rebind-initialize) |
| @@ -242,7 +242,7 @@ input." | |||
| 242 | (eshell-life-is-too-much))) | 242 | (eshell-life-is-too-much))) |
| 243 | (eshell-delete-backward-char (- arg))))) | 243 | (eshell-delete-backward-char (- arg))))) |
| 244 | 244 | ||
| 245 | ;;; Code: | 245 | (provide 'em-rebind) |
| 246 | 246 | ||
| 247 | ;;; arch-tag: 76d84f12-cc56-4d67-9b7d-c6b44ad20530 | 247 | ;;; arch-tag: 76d84f12-cc56-4d67-9b7d-c6b44ad20530 |
| 248 | ;;; em-rebind.el ends here | 248 | ;;; em-rebind.el ends here |
diff --git a/lisp/eshell/em-script.el b/lisp/eshell/em-script.el index 50fdc3ccccc..0a83881c03f 100644 --- a/lisp/eshell/em-script.el +++ b/lisp/eshell/em-script.el | |||
| @@ -22,9 +22,9 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-script) | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | (eval-when-compile (require 'esh-maint)) | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | (require 'eshell) | 29 | (require 'eshell) |
| 30 | 30 | ||
| @@ -34,8 +34,6 @@ commands, as a script file." | |||
| 34 | :tag "Running script files." | 34 | :tag "Running script files." |
| 35 | :group 'eshell-module) | 35 | :group 'eshell-module) |
| 36 | 36 | ||
| 37 | ;;; Commentary: | ||
| 38 | |||
| 39 | ;;; User Variables: | 37 | ;;; User Variables: |
| 40 | 38 | ||
| 41 | (defcustom eshell-script-load-hook '(eshell-script-initialize) | 39 | (defcustom eshell-script-load-hook '(eshell-script-initialize) |
| @@ -137,7 +135,7 @@ environment, binding ARGS to $1, $2, etc.") | |||
| 137 | 135 | ||
| 138 | (put 'eshell/. 'eshell-no-numeric-conversions t) | 136 | (put 'eshell/. 'eshell-no-numeric-conversions t) |
| 139 | 137 | ||
| 140 | ;;; Code: | 138 | (provide 'em-script) |
| 141 | 139 | ||
| 142 | ;;; arch-tag: a346439d-5ba8-4faf-ac2b-3aacfeaa4647 | 140 | ;;; arch-tag: a346439d-5ba8-4faf-ac2b-3aacfeaa4647 |
| 143 | ;;; em-script.el ends here | 141 | ;;; em-script.el ends here |
diff --git a/lisp/eshell/em-smart.el b/lisp/eshell/em-smart.el index f99a64bd17d..ffb1b4a4d92 100644 --- a/lisp/eshell/em-smart.el +++ b/lisp/eshell/em-smart.el | |||
| @@ -22,21 +22,6 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-smart) | ||
| 26 | |||
| 27 | (eval-when-compile (require 'esh-maint)) | ||
| 28 | |||
| 29 | (defgroup eshell-smart nil | ||
| 30 | "This module combines the facility of normal, modern shells with | ||
| 31 | some of the edit/review concepts inherent in the design of Plan 9's | ||
| 32 | 9term. See the docs for more details. | ||
| 33 | |||
| 34 | Most likely you will have to turn this option on and play around with | ||
| 35 | it to get a real sense of how it works." | ||
| 36 | :tag "Smart display of output" | ||
| 37 | ;; :link '(info-link "(eshell)Smart display of output") | ||
| 38 | :group 'eshell-module) | ||
| 39 | |||
| 40 | ;;; Commentary: | 25 | ;;; Commentary: |
| 41 | 26 | ||
| 42 | ;; The best way to get a sense of what this code is trying to do is by | 27 | ;; The best way to get a sense of what this code is trying to do is by |
| @@ -84,6 +69,21 @@ it to get a real sense of how it works." | |||
| 84 | ;; (such as pwd), where the screen is mostly full, consumption can | 69 | ;; (such as pwd), where the screen is mostly full, consumption can |
| 85 | ;; increase by orders of magnitude. | 70 | ;; increase by orders of magnitude. |
| 86 | 71 | ||
| 72 | ;;; Code: | ||
| 73 | |||
| 74 | (eval-when-compile (require 'eshell)) | ||
| 75 | |||
| 76 | (defgroup eshell-smart nil | ||
| 77 | "This module combines the facility of normal, modern shells with | ||
| 78 | some of the edit/review concepts inherent in the design of Plan 9's | ||
| 79 | 9term. See the docs for more details. | ||
| 80 | |||
| 81 | Most likely you will have to turn this option on and play around with | ||
| 82 | it to get a real sense of how it works." | ||
| 83 | :tag "Smart display of output" | ||
| 84 | ;; :link '(info-link "(eshell)Smart display of output") | ||
| 85 | :group 'eshell-module) | ||
| 86 | |||
| 87 | ;;; User Variables: | 87 | ;;; User Variables: |
| 88 | 88 | ||
| 89 | (defcustom eshell-smart-load-hook '(eshell-smart-initialize) | 89 | (defcustom eshell-smart-load-hook '(eshell-smart-initialize) |
| @@ -322,7 +322,7 @@ and the end of the buffer are still visible." | |||
| 322 | (if clear | 322 | (if clear |
| 323 | (remove-hook 'pre-command-hook 'eshell-smart-display-move t)))) | 323 | (remove-hook 'pre-command-hook 'eshell-smart-display-move t)))) |
| 324 | 324 | ||
| 325 | ;;; Code: | 325 | (provide 'em-smart) |
| 326 | 326 | ||
| 327 | ;;; arch-tag: 8c0112c7-379c-4d54-9a1c-204d68786a4b | 327 | ;;; arch-tag: 8c0112c7-379c-4d54-9a1c-204d68786a4b |
| 328 | ;;; em-smart.el ends here | 328 | ;;; em-smart.el ends here |
diff --git a/lisp/eshell/em-term.el b/lisp/eshell/em-term.el index 541773a4b5b..6ee698148da 100644 --- a/lisp/eshell/em-term.el +++ b/lisp/eshell/em-term.el | |||
| @@ -22,19 +22,6 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-term) | ||
| 26 | |||
| 27 | (eval-when-compile (require 'esh-maint)) | ||
| 28 | |||
| 29 | (defgroup eshell-term nil | ||
| 30 | "This module causes visual commands (e.g., 'vi') to be executed by | ||
| 31 | the `term' package, which comes with Emacs. This package handles most | ||
| 32 | of the ANSI control codes, allowing curses-based applications to run | ||
| 33 | within an Emacs window. The variable `eshell-visual-commands' defines | ||
| 34 | which commands are considered visual in nature." | ||
| 35 | :tag "Running visual commands" | ||
| 36 | :group 'eshell-module) | ||
| 37 | |||
| 38 | ;;; Commentary: | 25 | ;;; Commentary: |
| 39 | 26 | ||
| 40 | ;; At the moment, eshell is stream-based in its interactive input and | 27 | ;; At the moment, eshell is stream-based in its interactive input and |
| @@ -45,8 +32,20 @@ which commands are considered visual in nature." | |||
| 45 | ;; buffer, giving the illusion that Eshell itself is allowing these | 32 | ;; buffer, giving the illusion that Eshell itself is allowing these |
| 46 | ;; visual processes to execute. | 33 | ;; visual processes to execute. |
| 47 | 34 | ||
| 35 | ;;; Code: | ||
| 36 | |||
| 37 | (eval-when-compile (require 'eshell)) | ||
| 48 | (require 'term) | 38 | (require 'term) |
| 49 | 39 | ||
| 40 | (defgroup eshell-term nil | ||
| 41 | "This module causes visual commands (e.g., 'vi') to be executed by | ||
| 42 | the `term' package, which comes with Emacs. This package handles most | ||
| 43 | of the ANSI control codes, allowing curses-based applications to run | ||
| 44 | within an Emacs window. The variable `eshell-visual-commands' defines | ||
| 45 | which commands are considered visual in nature." | ||
| 46 | :tag "Running visual commands" | ||
| 47 | :group 'eshell-module) | ||
| 48 | |||
| 50 | ;;; User Variables: | 49 | ;;; User Variables: |
| 51 | 50 | ||
| 52 | (defcustom eshell-term-load-hook '(eshell-term-initialize) | 51 | (defcustom eshell-term-load-hook '(eshell-term-initialize) |
| @@ -264,7 +263,7 @@ allowed." | |||
| 264 | ; "Switch to line (\"cooked\") sub-mode of eshell-term mode." | 263 | ; "Switch to line (\"cooked\") sub-mode of eshell-term mode." |
| 265 | ; (use-local-map term-old-mode-map)) | 264 | ; (use-local-map term-old-mode-map)) |
| 266 | 265 | ||
| 267 | ;;; Code: | 266 | (provide 'em-term) |
| 268 | 267 | ||
| 269 | ;;; arch-tag: ab7c8fe4-3101-4257-925b-1354c6b2fe9d | 268 | ;;; arch-tag: ab7c8fe4-3101-4257-925b-1354c6b2fe9d |
| 270 | ;;; em-term.el ends here | 269 | ;;; em-term.el ends here |
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el index dc5ef908e56..e970c87f501 100644 --- a/lisp/eshell/em-unix.el +++ b/lisp/eshell/em-unix.el | |||
| @@ -22,9 +22,22 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-unix) | 25 | ;;; Commentary: |
| 26 | |||
| 27 | ;; This file contains implementations of several UNIX command in Emacs | ||
| 28 | ;; Lisp, for several reasons: | ||
| 29 | ;; | ||
| 30 | ;; 1) it makes them available on all platforms where the Lisp | ||
| 31 | ;; functions used are available | ||
| 32 | ;; | ||
| 33 | ;; 2) it makes their functionality accessible and modified by the | ||
| 34 | ;; Lisp programmer. | ||
| 35 | ;; | ||
| 36 | ;; 3) it allows Eshell to refrain from having to invoke external | ||
| 37 | ;; processes for common operations. | ||
| 38 | |||
| 39 | ;;; Code: | ||
| 26 | 40 | ||
| 27 | (eval-when-compile (require 'esh-maint)) | ||
| 28 | (require 'eshell) | 41 | (require 'eshell) |
| 29 | 42 | ||
| 30 | (defgroup eshell-unix nil | 43 | (defgroup eshell-unix nil |
| @@ -40,20 +53,6 @@ by name)." | |||
| 40 | :tag "UNIX commands in Lisp" | 53 | :tag "UNIX commands in Lisp" |
| 41 | :group 'eshell-module) | 54 | :group 'eshell-module) |
| 42 | 55 | ||
| 43 | ;;; Commentary: | ||
| 44 | |||
| 45 | ;; This file contains implementations of several UNIX command in Emacs | ||
| 46 | ;; Lisp, for several reasons: | ||
| 47 | ;; | ||
| 48 | ;; 1) it makes them available on all platforms where the Lisp | ||
| 49 | ;; functions used are available | ||
| 50 | ;; | ||
| 51 | ;; 2) it makes their functionality accessible and modified by the | ||
| 52 | ;; Lisp programmer. | ||
| 53 | ;; | ||
| 54 | ;; 3) it allows Eshell to refrain from having to invoke external | ||
| 55 | ;; processes for common operations. | ||
| 56 | |||
| 57 | (defcustom eshell-unix-load-hook '(eshell-unix-initialize) | 56 | (defcustom eshell-unix-load-hook '(eshell-unix-initialize) |
| 58 | "*A list of functions to run when `eshell-unix' is loaded." | 57 | "*A list of functions to run when `eshell-unix' is loaded." |
| 59 | :type 'hook | 58 | :type 'hook |
| @@ -137,8 +136,6 @@ Otherwise, Emacs will attempt to use rsh to invoke du on the remote machine." | |||
| 137 | :type 'boolean | 136 | :type 'boolean |
| 138 | :group 'eshell-unix) | 137 | :group 'eshell-unix) |
| 139 | 138 | ||
| 140 | (require 'esh-opt) | ||
| 141 | |||
| 142 | ;;; Functions: | 139 | ;;; Functions: |
| 143 | 140 | ||
| 144 | (defun eshell-unix-initialize () | 141 | (defun eshell-unix-initialize () |
| @@ -1050,7 +1047,7 @@ Show wall-clock time elapsed during execution of COMMAND.") | |||
| 1050 | 1047 | ||
| 1051 | (put 'eshell/occur 'eshell-no-numeric-conversions t) | 1048 | (put 'eshell/occur 'eshell-no-numeric-conversions t) |
| 1052 | 1049 | ||
| 1053 | ;;; Code: | 1050 | (provide 'em-unix) |
| 1054 | 1051 | ||
| 1055 | ;;; arch-tag: 2462edd2-a76a-4cf2-897d-92e9a82ac1c9 | 1052 | ;;; arch-tag: 2462edd2-a76a-4cf2-897d-92e9a82ac1c9 |
| 1056 | ;;; em-unix.el ends here | 1053 | ;;; em-unix.el ends here |
diff --git a/lisp/eshell/em-xtra.el b/lisp/eshell/em-xtra.el index bd48afb6bd6..f0a92eb0c60 100644 --- a/lisp/eshell/em-xtra.el +++ b/lisp/eshell/em-xtra.el | |||
| @@ -22,9 +22,14 @@ | |||
| 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 | ;; Boston, MA 02110-1301, USA. | 23 | ;; Boston, MA 02110-1301, USA. |
| 24 | 24 | ||
| 25 | (provide 'em-xtra) | 25 | ;;; Commentary: |
| 26 | |||
| 27 | ;;; Code: | ||
| 26 | 28 | ||
| 27 | (eval-when-compile (require 'esh-maint)) | 29 | (eval-when-compile |
| 30 | (require 'eshell) | ||
| 31 | (require 'pcomplete)) | ||
| 32 | (require 'compile) | ||
| 28 | 33 | ||
| 29 | (defgroup eshell-xtra nil | 34 | (defgroup eshell-xtra nil |
| 30 | "This module defines some extra alias functions which are entirely | 35 | "This module defines some extra alias functions which are entirely |
| @@ -34,10 +39,6 @@ naturally accessible within Emacs." | |||
| 34 | :tag "Extra alias functions" | 39 | :tag "Extra alias functions" |
| 35 | :group 'eshell-module) | 40 | :group 'eshell-module) |
| 36 | 41 | ||
| 37 | ;;; Commentary: | ||
| 38 | |||
| 39 | (require 'compile) | ||
| 40 | |||
| 41 | ;;; Functions: | 42 | ;;; Functions: |
| 42 | 43 | ||
| 43 | (defun eshell/expr (&rest args) | 44 | (defun eshell/expr (&rest args) |
| @@ -117,7 +118,7 @@ naturally accessible within Emacs." | |||
| 117 | 118 | ||
| 118 | (defalias 'pcomplete/bcc 'pcomplete/bcc32) | 119 | (defalias 'pcomplete/bcc 'pcomplete/bcc32) |
| 119 | 120 | ||
| 120 | ;;; Code: | 121 | (provide 'em-xtra) |
| 121 | 122 | ||
| 122 | ;;; arch-tag: f944cfda-a118-470c-a0d6-b41a3a5c99c7 | 123 | ;;; arch-tag: f944cfda-a118-470c-a0d6-b41a3a5c99c7 |
| 123 | ;;; em-xtra.el ends here | 124 | ;;; em-xtra.el ends here |