1 [README for APEL (English Version)]
2 by MORIOKA Tomohiko <morioka@jaist.ac.jp>
3 $Id: README.en,v 1.10 1998-04-13 14:14:39 morioka Exp $
8 APEL stands for "A Portable Emacs Library". It consists of
11 emu: A package to fill incompatibilities of emacsen
12 emu.el --- main module
14 emu-nemacs.el --- for NEmacs
15 emu-e19.el --- for Emacs 19 or XEmacs without mule
16 emu-mule.el --- for MULE 2.3
17 emu-20.el --- for Emacs 20 and XEmacs/mule
18 emu-e20.el --- for Emacs 20 and MULE 3
19 emu-x20.el --- for XEmacs/mule
21 emu-18.el --- for Emacs 18
22 emu-19.el --- for Emacs 19 or later
23 emu-xemacs.el --- for XEmacs
24 env.el --- env.el for Emacs 18
25 richtext.el --- text/richtext module
26 for Emacs 19.29 or later,
28 tinyrich.el --- text/richtext module for old emacsen
30 alist.el: utility for Association-list
32 atype.el: utility for atype
34 path-util.el: utility for path management or file detection
36 filename.el: utility to make file-name
38 install.el: utility to install emacs-lisp package
40 mule-caesar.el: ROT 13-47-48 Caesar rotation utility
46 (a) run in expanded place
48 If you don't want to install other directories, please do only
53 You can specify the emacs command name, for example
55 % make install EMACS=xemacs
57 If `EMACS=...' is omitted, EMACS=emacs is used.
61 If you want to install other directories, please do following:
65 You can specify the emacs command name, for example
67 % make install EMACS=xemacs
69 If `EMACS=...' is omitted, EMACS=emacs is used.
71 You can specify the prefix of the directory tree for Emacs Lisp
72 programs and shell scripts, for example:
74 % make install PREFIX=~/
76 If `PREFIX=...' is omitted, the prefix of the directory tree of the
77 specified emacs command is used (perhaps /usr/local).
79 For example, if PREFIX=/usr/local and Emacs 20.2 is specified, it
80 will create the following directory tree:
82 /usr/local/share/emacs/20.2/site-lisp/ --- emu
83 /usr/local/share/emacs/site-lisp/apel/ --- APEL
85 You can specify other optional settings by editing the file
86 APEL-CFG. Please read comments in it.
89 load-path (for Emacs or MULE)
90 =============================
92 If you are using Emacs or Mule, please add directory of apel to
93 load-path. If you install by default setting, you can write
94 subdirs.el for example:
96 --------------------------------------------------------------------
97 (normal-top-level-add-to-load-path '("apel"))
98 --------------------------------------------------------------------
100 If you are using XEmacs, there are no need of setting about
110 Function put-alist (ITEM VALUE ALIST)
112 Modify ALIST to set VALUE to ITEM. If there is a pair whose car is
113 ITEM, replace its cdr by VALUE. If there is not such pair, create
114 new pair (ITEM . VALUE) and return new alist whose car is the new
115 pair and cdr is ALIST.
117 Function del-alist (ITEM ALIST)
119 If there is a pair whose key is ITEM, delete it from ALIST.
121 Function set-alist (SYMBOL ITEM VALUE)
123 Modify a alist indicated by SYMBOL to set VALUE to ITEM.
125 Ex. (set-alist 'auto-mode-alist "\\.pln$" 'text-mode)
127 Function modify-alist (MODIFIER DEFAULT)
129 Modify alist DEFAULT into alist MODIFIER.
131 Function set-modified-alist (SYMBOL MODIFIER)
133 Modify a value of a SYMBOL into alist MODIFIER. The SYMBOL should
134 be alist. If it is not bound, its value regard as nil.
139 Function add-path (PATH &rest OPTIONS)
141 Add PATH to `load-path' if it exists under `default-load-path'
142 directories and it does not exist in `load-path'.
144 You can use following PATH styles:
146 load-path relative: "PATH" (it is searched from
149 home directory relative: "~/PATH" "~USER/PATH"
151 absolute path: "/FOO/BAR/BAZ"
153 You can specify following OPTIONS:
155 'all-paths --- search from `load-path' instead of
158 'append --- add PATH to the last of `load-path'
160 Function add-latest-path (PATTERN &optional ALL-PATHS)
162 Add latest path matched by regexp PATTERN to `load-path' if it
163 exists under `default-load-path' directories and it does not exist
166 For example, if there is bbdb-1.50 and bbdb-1.51 under site-lisp,
167 and if bbdb-1.51 is newer than bbdb-1.50, and site-lisp is
168 /usr/local/share/emacs/site-lisp,
172 it adds "/usr/local/share/emacs/site-lisp/bbdb-1.51" to top of
175 If optional argument ALL-PATHS is specified, it is searched from all
176 of `load-path' instead of `default-load-path'.
178 Function get-latest-path (PATTERN &optional ALL-PATHS)
180 Return latest directory in default-load-path which is matched to
181 regexp PATTERN. If optional argument ALL-PATHS is specified, it is
182 searched from all of load-path instead of default-load-path.
184 Ex. (let ((gnus-path (get-latest-path "gnus")))
185 (add-path (expand-file-name "lisp" gnus-path))
186 (add-to-list 'Info-default-directory-list
187 (expand-file-name "texi" gnus-path))
190 Function file-installed-p (FILE &optional PATHS)
192 Return absolute-path of FILE if FILE exists in PATHS. If PATHS is
193 omitted, `load-path' is used.
195 Function exec-installed-p (FILE &optional PATHS SUFFIXES)
197 Return absolute-path of FILE if FILE exists in PATHS. If PATHS is
198 omitted, `exec-path' is used. If suffixes is omitted,
199 `exec-suffix-list' is used.
201 Function module-installed-p (MODULE &optional PATHS)
203 Return non-nil if module is provided or exists in PATHS. If PATHS
204 is omitted, `load-path' is used.
209 Function replace-as-filename (string)
211 Return safety file-name from STRING.
213 It refers variable `filename-filters'. It is list of functions for
214 file-name filter. Default filter refers following variables:
216 Variable filename-limit-length
218 Limit size of file-name.
220 Variable filename-replacement-alist
222 Alist list of characters vs. string as replacement. List of
223 characters represents characters not allowed as file-name.
229 If you write bug-reports and/or suggestions for improvement, please
230 send them to the tm Mailing List:
232 bug-tm-en@chamonix.jaist.ac.jp (English)
233 bug-tm-ja@chamonix.jaist.ac.jp (Japanese)
235 Via the tm ML, you can report APEL bugs, obtain the latest release
236 of APEL, and discuss future enhancements to APEL. To join the tm
237 ML, send an empty e-mail to
239 tm-en-help@chamonix.jaist.ac.jp (English)
240 tm-ja-help@chamonix.jaist.ac.jp (Japanese)