Mercurial > emacs
annotate lisp/eshell/esh-maint.el @ 73520:4ae58f29b6a2
(Top): Rename old node "LaTeX Calendar" to "Writing Calendar Files."
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 28 Oct 2006 21:59:38 +0000 |
parents | 067115a6e738 |
children | f7702c5f335d c5406394f567 |
rev | line source |
---|---|
47726
33d53d287ee4
Add "no-byte-compile: t" in first line.
Juanma Barranquero <lekktu@gmail.com>
parents:
38414
diff
changeset
|
1 ;;; esh-maint.el --- init code for building eshell -*- no-byte-compile: t -*- |
29876 | 2 |
64701
34bd8e434dd7
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
3 ;; Copyright (C) 1999, 2000, 2002, 2003, 2004, |
68648
067115a6e738
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64701
diff
changeset
|
4 ;; 2005, 2006 Free Software Foundation, Inc. |
29876 | 5 |
32526 | 6 ;; Author: John Wiegley <johnw@gnu.org> |
7 | |
29876 | 8 ;; This file is part of GNU Emacs. |
9 | |
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 2, or (at your option) | |
13 ;; any later version. | |
14 | |
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. | |
19 | |
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 | |
64085 | 22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 ;; Boston, MA 02110-1301, USA. | |
29876 | 24 |
25 ;;; Commentary: | |
26 | |
27 ;;; Code: | |
28 | |
29 (provide 'esh-maint) | |
30 | |
31 (and (fboundp 'font-lock-add-keywords) | |
32 (font-lock-add-keywords | |
33 'emacs-lisp-mode | |
34 '(("(eshell-for\\>" . font-lock-keyword-face) | |
35 ("(eshell-deftest\\>" . font-lock-keyword-face) | |
36 ("(eshell-condition-case\\>" . font-lock-keyword-face)))) | |
37 | |
38 (if (file-directory-p "../pcomplete") | |
39 (add-to-list 'load-path "../pcomplete")) | |
40 | |
41 (if (locate-library "pcomplete") | |
42 (require 'pcomplete)) | |
43 | |
44 (eval-when-compile | |
45 (require 'cl) | |
46 (setq cl-optimize-speed 9)) | |
47 | |
48 ;; (defun eshell-generate-autoloads () | |
49 ;; (interactive) | |
50 ;; (require 'autoload) | |
51 ;; (setq generated-autoload-file | |
33020 | 52 ;; (expand-file-name (car command-line-args-left))) |
29876 | 53 ;; (setq command-line-args-left (cdr command-line-args-left)) |
54 ;; (batch-update-autoloads)) | |
55 | |
56 (require 'eshell) | |
57 (require 'esh-mode) ; brings in eshell-util | |
58 (require 'esh-opt) | |
59 (require 'esh-test) | |
60 | |
61 ;; (defun eshell-generate-main-menu () | |
62 ;; "Create the main menu for the eshell documentation." | |
63 ;; (insert "@menu | |
64 ;; * The Emacs shell:: eshell. | |
65 | |
66 ;; Core Functionality\n") | |
67 ;; (eshell-for module | |
68 ;; (sort (eshell-subgroups 'eshell) | |
33020 | 69 ;; (function |
70 ;; (lambda (a b) | |
71 ;; (string-lessp (symbol-name a) | |
72 ;; (symbol-name b))))) | |
29876 | 73 ;; (insert (format "* %-34s" |
33020 | 74 ;; (concat (get module 'custom-tag) "::")) |
75 ;; (symbol-name module) ".\n")) | |
29876 | 76 ;; (insert "\nOptional Functionality\n") |
77 ;; (eshell-for module | |
78 ;; (sort (eshell-subgroups 'eshell-module) | |
33020 | 79 ;; (function |
80 ;; (lambda (a b) | |
81 ;; (string-lessp (symbol-name a) | |
82 ;; (symbol-name b))))) | |
29876 | 83 ;; (insert (format "* %-34s" |
33020 | 84 ;; (concat (get module 'custom-tag) "::")) |
85 ;; (symbol-name module) ".\n")) | |
29876 | 86 ;; (insert "@end menu\n")) |
87 | |
88 ;; (defun eshell-make-texi () | |
89 ;; "Make the eshell.texi file." | |
90 ;; (interactive) | |
91 ;; (require 'eshell-auto) | |
92 ;; (require 'texidoc) | |
93 ;; (require 'pcomplete) | |
94 ;; (apply 'texidoc-files 'eshell-generate-main-menu "eshell.doci" | |
33020 | 95 ;; (append |
96 ;; (list "eshell.el") | |
97 ;; (sort (mapcar | |
98 ;; (function | |
99 ;; (lambda (sym) | |
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)) | |
105 ;; 'string-lessp) | |
106 ;; (sort (mapcar | |
107 ;; (function | |
108 ;; (lambda (sym) | |
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)) | |
114 ;; 'string-lessp) | |
115 ;; (list "eshell.texi")))) | |
29876 | 116 |
117 ;; (defun eshell-make-readme () | |
118 ;; "Make the README file from eshell.el." | |
119 ;; (interactive) | |
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) | |
128 ;; (forward-line -1) | |
129 ;; (kill-line 2) | |
130 ;; (re-search-forward "^@section User Options") | |
131 ;; (beginning-of-line) | |
132 ;; (delete-region (point) (point-max)) | |
133 ;; (insert "@bye\n") | |
134 ;; (save-buffer) | |
135 ;; (with-temp-buffer | |
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")) | |
144 | |
52401 | 145 ;;; arch-tag: 662089b6-78ec-48c5-b94f-d212279e8902 |
29876 | 146 ;;; esh-maint.el ends here |