1 ;;; esh-maint.el --- init code for building eshell -*- no-byte-compile: t -*-
3 ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
4 ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6 ;; Author: John Wiegley <johnw@gnu.org>
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 3, or (at your option)
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
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
22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 ;; Boston, MA 02110-1301, USA.
31 (and (fboundp 'font-lock-add-keywords
)
32 (font-lock-add-keywords
34 '(("(eshell-for\\>" . font-lock-keyword-face
)
35 ("(eshell-deftest\\>" . font-lock-keyword-face
)
36 ("(eshell-condition-case\\>" . font-lock-keyword-face
))))
38 (if (file-directory-p "../pcomplete")
39 (add-to-list 'load-path
"../pcomplete"))
41 (if (locate-library "pcomplete")
46 (setq cl-optimize-speed
9))
48 ;; (defun eshell-generate-autoloads ()
50 ;; (require 'autoload)
51 ;; (setq generated-autoload-file
52 ;; (expand-file-name (car command-line-args-left)))
53 ;; (setq command-line-args-left (cdr command-line-args-left))
54 ;; (batch-update-autoloads))
57 (require 'esh-mode
) ; brings in eshell-util
61 ;; (defun eshell-generate-main-menu ()
62 ;; "Create the main menu for the eshell documentation."
64 ;; * The Emacs shell:: eshell.
66 ;; Core Functionality\n")
68 ;; (sort (eshell-subgroups 'eshell)
71 ;; (string-lessp (symbol-name a)
72 ;; (symbol-name b)))))
73 ;; (insert (format "* %-34s"
74 ;; (concat (get module 'custom-tag) "::"))
75 ;; (symbol-name module) ".\n"))
76 ;; (insert "\nOptional Functionality\n")
78 ;; (sort (eshell-subgroups 'eshell-module)
81 ;; (string-lessp (symbol-name a)
82 ;; (symbol-name b)))))
83 ;; (insert (format "* %-34s"
84 ;; (concat (get module 'custom-tag) "::"))
85 ;; (symbol-name module) ".\n"))
86 ;; (insert "@end menu\n"))
88 ;; (defun eshell-make-texi ()
89 ;; "Make the eshell.texi file."
91 ;; (require 'eshell-auto)
93 ;; (require 'pcomplete)
94 ;; (apply 'texidoc-files 'eshell-generate-main-menu "eshell.doci"
100 ;; (let ((name (symbol-name sym)))
101 ;; (if (string-match "\\`eshell-\\(.*\\)" name)
102 ;; (setq name (concat "esh-" (match-string 1 name))))
103 ;; (concat name ".el"))))
104 ;; (eshell-subgroups 'eshell))
109 ;; (let ((name (symbol-name sym)))
110 ;; (if (string-match "\\`eshell-\\(.*\\)" name)
111 ;; (setq name (concat "em-" (match-string 1 name))))
112 ;; (concat name ".el"))))
113 ;; (eshell-subgroups 'eshell-module))
115 ;; (list "eshell.texi"))))
117 ;; (defun eshell-make-readme ()
118 ;; "Make the README file from eshell.el."
120 ;; (require 'eshell-auto)
121 ;; (require 'texidoc)
122 ;; (require 'pcomplete)
123 ;; (texidoc-files nil "eshell.doci" "eshell.el" "README.texi")
124 ;; (set-buffer (get-buffer "README.texi"))
125 ;; (goto-char (point-min))
126 ;; (search-forward "@chapter")
127 ;; (beginning-of-line)
130 ;; (re-search-forward "^@section User Options")
131 ;; (beginning-of-line)
132 ;; (delete-region (point) (point-max))
136 ;; (call-process "makeinfo" nil t nil "--no-headers" "README.texi")
137 ;; (goto-char (point-min))
138 ;; (search-forward "The Emacs Shell")
139 ;; (beginning-of-line)
140 ;; (delete-region (point-min) (point))
141 ;; (write-file "README"))
142 ;; (delete-file "README.texi")
143 ;; (kill-buffer "README.texi"))
145 ;;; arch-tag: 662089b6-78ec-48c5-b94f-d212279e8902
146 ;;; esh-maint.el ends here