comparison lisp/eshell/em-term.el @ 87075:e8d46c0f12e6

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:51 +0000
parents a1e8300d3c55
children 107ccd98fa12 53108e6cea98
comparison
equal deleted inserted replaced
87074:dff2dab8707b 87075:e8d46c0f12e6
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 24
25 (provide 'em-term) 25 ;;; Commentary:
26 26
27 (eval-when-compile (require 'esh-maint)) 27 ;; At the moment, eshell is stream-based in its interactive input and
28 ;; output. This means that full-screen commands, such as "vi" or
29 ;; "lynx", will not display correctly. These are therefore thought of
30 ;; as "visual" programs. In order to run these progrem under Emacs,
31 ;; Eshell uses the term.el package, and invokes them in a separate
32 ;; buffer, giving the illusion that Eshell itself is allowing these
33 ;; visual processes to execute.
34
35 ;;; Code:
36
37 (eval-when-compile (require 'eshell))
38 (require 'term)
28 39
29 (defgroup eshell-term nil 40 (defgroup eshell-term nil
30 "This module causes visual commands (e.g., 'vi') to be executed by 41 "This module causes visual commands (e.g., 'vi') to be executed by
31 the `term' package, which comes with Emacs. This package handles most 42 the `term' package, which comes with Emacs. This package handles most
32 of the ANSI control codes, allowing curses-based applications to run 43 of the ANSI control codes, allowing curses-based applications to run
33 within an Emacs window. The variable `eshell-visual-commands' defines 44 within an Emacs window. The variable `eshell-visual-commands' defines
34 which commands are considered visual in nature." 45 which commands are considered visual in nature."
35 :tag "Running visual commands" 46 :tag "Running visual commands"
36 :group 'eshell-module) 47 :group 'eshell-module)
37
38 ;;; Commentary:
39
40 ;; At the moment, eshell is stream-based in its interactive input and
41 ;; output. This means that full-screen commands, such as "vi" or
42 ;; "lynx", will not display correctly. These are therefore thought of
43 ;; as "visual" programs. In order to run these progrem under Emacs,
44 ;; Eshell uses the term.el package, and invokes them in a separate
45 ;; buffer, giving the illusion that Eshell itself is allowing these
46 ;; visual processes to execute.
47
48 (require 'term)
49 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)
53 "*A list of functions to call when loading `eshell-term'." 52 "*A list of functions to call when loading `eshell-term'."
262 261
263 ; (defun eshell-term-line-mode () 262 ; (defun eshell-term-line-mode ()
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