aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2007-12-05 07:06:02 +0000
committerGlenn Morris2007-12-05 07:06:02 +0000
commit5153ac72282fd1a32f8e4a8af75b4b3fd46d5f0b (patch)
treef5c42b30df4e805d2fb1ff30b7f4085e3d5db614 /lisp
parent56590d2f240be9c7eea448e3369ce7a5bc9a15c0 (diff)
downloademacs-5153ac72282fd1a32f8e4a8af75b4b3fd46d5f0b.tar.gz
emacs-5153ac72282fd1a32f8e4a8af75b4b3fd46d5f0b.zip
Require individual files if needed when compiling, rather than
esh-maint. Collect any require statements. Leave provide at start. Move any commentary to start. (eshell-print): Move definition before use.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/eshell/esh-io.el30
1 files changed, 15 insertions, 15 deletions
diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el
index 897f9942d47..15a4af86346 100644
--- a/lisp/eshell/esh-io.el
+++ b/lisp/eshell/esh-io.el
@@ -22,17 +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 'esh-io)
26
27(eval-when-compile (require 'esh-maint))
28
29(defgroup eshell-io nil
30 "Eshell's I/O management code provides a scheme for treating many
31different kinds of objects -- symbols, files, buffers, etc. -- as
32though they were files."
33 :tag "I/O management"
34 :group 'eshell)
35
36;;; Commentary: 25;;; Commentary:
37 26
38;; At the moment, only output redirection is supported in Eshell. To 27;; At the moment, only output redirection is supported in Eshell. To
@@ -68,6 +57,17 @@ though they were files."
68;; (+ 1 2) > a > b > c ; prints number to all three files 57;; (+ 1 2) > a > b > c ; prints number to all three files
69;; (+ 1 2) > a | wc ; prints to 'a', and pipes to 'wc' 58;; (+ 1 2) > a | wc ; prints to 'a', and pipes to 'wc'
70 59
60(provide 'esh-io)
61
62(eval-when-compile (require 'eshell))
63
64(defgroup eshell-io nil
65 "Eshell's I/O management code provides a scheme for treating many
66different kinds of objects -- symbols, files, buffers, etc. -- as
67though they were files."
68 :tag "I/O management"
69 :group 'eshell)
70
71;;; User Variables: 71;;; User Variables:
72 72
73(defcustom eshell-io-load-hook '(eshell-io-initialize) 73(defcustom eshell-io-load-hook '(eshell-io-initialize)
@@ -417,6 +417,10 @@ it defaults to `insert'."
417(defvar eshell-print-queue nil) 417(defvar eshell-print-queue nil)
418(defvar eshell-print-queue-count -1) 418(defvar eshell-print-queue-count -1)
419 419
420(defsubst eshell-print (object)
421 "Output OBJECT to the standard output handle."
422 (eshell-output-object object eshell-output-handle))
423
420(defun eshell-flush (&optional reset-p) 424(defun eshell-flush (&optional reset-p)
421 "Flush out any lines that have been queued for printing. 425 "Flush out any lines that have been queued for printing.
422Must be called before printing begins with -1 as its argument, and 426Must be called before printing begins with -1 as its argument, and
@@ -445,10 +449,6 @@ after all printing is over with no argument."
445 (concat eshell-print-queue (apply 'concat strings)) 449 (concat eshell-print-queue (apply 'concat strings))
446 eshell-print-queue-count (1+ eshell-print-queue-count)))) 450 eshell-print-queue-count (1+ eshell-print-queue-count))))
447 451
448(defsubst eshell-print (object)
449 "Output OBJECT to the standard output handle."
450 (eshell-output-object object eshell-output-handle))
451
452(defsubst eshell-error (object) 452(defsubst eshell-error (object)
453 "Output OBJECT to the standard error handle." 453 "Output OBJECT to the standard error handle."
454 (eshell-output-object object eshell-error-handle)) 454 (eshell-output-object object eshell-error-handle))