]> code.delx.au - gnu-emacs/blob - lisp/eshell/esh-maint.el
*** empty log message ***
[gnu-emacs] / lisp / eshell / esh-maint.el
1 ;;; esh-maint --- init code for building eshell
2
3 ;; Copyright (C) 1999, 2000 Free Software Foundation
4
5 ;; This file is part of GNU Emacs.
6
7 ;; GNU Emacs is free software; you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation; either version 2, or (at your option)
10 ;; any later version.
11
12 ;; GNU Emacs is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;; GNU General Public License for more details.
16
17 ;; You should have received a copy of the GNU General Public License
18 ;; along with GNU Emacs; see the file COPYING. If not, write to the
19 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 ;; Boston, MA 02111-1307, USA.
21
22 ;;; Commentary:
23
24 ;;; Code:
25
26 (provide 'esh-maint)
27
28 (and (fboundp 'font-lock-add-keywords)
29 (font-lock-add-keywords
30 'emacs-lisp-mode
31 '(("(eshell-for\\>" . font-lock-keyword-face)
32 ("(eshell-deftest\\>" . font-lock-keyword-face)
33 ("(eshell-condition-case\\>" . font-lock-keyword-face))))
34
35 (if (file-directory-p "../pcomplete")
36 (add-to-list 'load-path "../pcomplete"))
37
38 (if (locate-library "pcomplete")
39 (require 'pcomplete))
40
41 (eval-when-compile
42 (require 'cl)
43 (setq cl-optimize-speed 9))
44
45 ;; (defun eshell-generate-autoloads ()
46 ;; (interactive)
47 ;; (require 'autoload)
48 ;; (setq generated-autoload-file
49 ;; (expand-file-name (car command-line-args-left)))
50 ;; (setq command-line-args-left (cdr command-line-args-left))
51 ;; (batch-update-autoloads))
52
53 (require 'eshell)
54 (require 'esh-mode) ; brings in eshell-util
55 (require 'esh-opt)
56 (require 'esh-test)
57
58 ;; (defun eshell-generate-main-menu ()
59 ;; "Create the main menu for the eshell documentation."
60 ;; (insert "@menu
61 ;; * The Emacs shell:: eshell.
62
63 ;; Core Functionality\n")
64 ;; (eshell-for module
65 ;; (sort (eshell-subgroups 'eshell)
66 ;; (function
67 ;; (lambda (a b)
68 ;; (string-lessp (symbol-name a)
69 ;; (symbol-name b)))))
70 ;; (insert (format "* %-34s"
71 ;; (concat (get module 'custom-tag) "::"))
72 ;; (symbol-name module) ".\n"))
73 ;; (insert "\nOptional Functionality\n")
74 ;; (eshell-for module
75 ;; (sort (eshell-subgroups 'eshell-module)
76 ;; (function
77 ;; (lambda (a b)
78 ;; (string-lessp (symbol-name a)
79 ;; (symbol-name b)))))
80 ;; (insert (format "* %-34s"
81 ;; (concat (get module 'custom-tag) "::"))
82 ;; (symbol-name module) ".\n"))
83 ;; (insert "@end menu\n"))
84
85 ;; (defun eshell-make-texi ()
86 ;; "Make the eshell.texi file."
87 ;; (interactive)
88 ;; (require 'eshell-auto)
89 ;; (require 'texidoc)
90 ;; (require 'pcomplete)
91 ;; (apply 'texidoc-files 'eshell-generate-main-menu "eshell.doci"
92 ;; (append
93 ;; (list "eshell.el")
94 ;; (sort (mapcar
95 ;; (function
96 ;; (lambda (sym)
97 ;; (let ((name (symbol-name sym)))
98 ;; (if (string-match "\\`eshell-\\(.*\\)" name)
99 ;; (setq name (concat "esh-" (match-string 1 name))))
100 ;; (concat name ".el"))))
101 ;; (eshell-subgroups 'eshell))
102 ;; 'string-lessp)
103 ;; (sort (mapcar
104 ;; (function
105 ;; (lambda (sym)
106 ;; (let ((name (symbol-name sym)))
107 ;; (if (string-match "\\`eshell-\\(.*\\)" name)
108 ;; (setq name (concat "em-" (match-string 1 name))))
109 ;; (concat name ".el"))))
110 ;; (eshell-subgroups 'eshell-module))
111 ;; 'string-lessp)
112 ;; (list "eshell.texi"))))
113
114 ;; (defun eshell-make-readme ()
115 ;; "Make the README file from eshell.el."
116 ;; (interactive)
117 ;; (require 'eshell-auto)
118 ;; (require 'texidoc)
119 ;; (require 'pcomplete)
120 ;; (texidoc-files nil "eshell.doci" "eshell.el" "README.texi")
121 ;; (set-buffer (get-buffer "README.texi"))
122 ;; (goto-char (point-min))
123 ;; (search-forward "@chapter")
124 ;; (beginning-of-line)
125 ;; (forward-line -1)
126 ;; (kill-line 2)
127 ;; (re-search-forward "^@section User Options")
128 ;; (beginning-of-line)
129 ;; (delete-region (point) (point-max))
130 ;; (insert "@bye\n")
131 ;; (save-buffer)
132 ;; (with-temp-buffer
133 ;; (call-process "makeinfo" nil t nil "--no-headers" "README.texi")
134 ;; (goto-char (point-min))
135 ;; (search-forward "The Emacs Shell")
136 ;; (beginning-of-line)
137 ;; (delete-region (point-min) (point))
138 ;; (write-file "README"))
139 ;; (delete-file "README.texi")
140 ;; (kill-buffer "README.texi"))
141
142 ;;; esh-maint.el ends here