comparison lisp/eshell/em-smart.el @ 87074:dff2dab8707b

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.
author Glenn Morris <rgm@gnu.org>
date Wed, 05 Dec 2007 07:02:32 +0000
parents a1e8300d3c55
children 107ccd98fa12 53108e6cea98
comparison
equal deleted inserted replaced
87073:1577bd98c621 87074:dff2dab8707b
19 19
20 ;; You should have received a copy of the GNU General Public License 20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
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
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 24
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
43 ;; using it. Basically, the philosophy represents a blend between the 28 ;; using it. Basically, the philosophy represents a blend between the
81 ;; 66 ;;
82 ;; One disadvantage of this module is that it increases Eshell's 67 ;; One disadvantage of this module is that it increases Eshell's
83 ;; memory consumption by a factor of two or more. With small commands 68 ;; memory consumption by a factor of two or more. With small commands
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.
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 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)
90 "*A list of functions to call when loading `eshell-smart'." 90 "*A list of functions to call when loading `eshell-smart'."
320 (setq clear t) 320 (setq clear t)
321 (goto-char (point-max))))) 321 (goto-char (point-max)))))
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