1 [README for APEL (English Version)]
2 by MORIOKA Tomohiko <morioka@jaist.ac.jp>
3 $Id: README.en,v 1.1 1997-03-20 06:03:51 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-e20.el --- for Emacs/mule (Emacs 20, MULE 3)
18 emu-x20.el --- for XEmacs/mule
20 emu-18.el --- for Emacs 18
21 emu-19.el --- for Emacs 19 or later
22 emu-xemacs.el --- for XEmacs
23 env.el --- env.el for Emacs 18
24 richtext.el --- text/richtext module
25 for Emacs 19.29 or later,
27 tinyrich.el --- text/richtext module for old emacsen
29 alist.el: utility for Association-list
31 atype.el: utility for atype
33 file-detect.el: load-path or file-detection
35 filename.el: utility to make file-name
37 install.el: utility to install emacs-lisp package
43 (a) run in expanded place
45 If you don't want to install other directories, please do only
50 You can specify the emacs command name, for example
52 % make install EMACS=xemacs
54 If `EMACS=...' is omitted, EMACS=emacs is used.
58 If you want to install other directories, please do following:
62 You can specify the emacs command name, for example
64 % make install EMACS=xemacs
66 If `EMACS=...' is omitted, EMACS=emacs is used.
68 You can specify the prefix of the directory tree for Emacs Lisp
69 programs and shell scripts, for example:
71 % make install PREFIX=~/
73 If `PREFIX=...' is omitted, the prefix of the directory tree of the
74 specified emacs command is used (perhaps /usr/local).
76 For example, if PREFIX=/usr/local and EMACS 19.34 is specified, it
77 will create the following directory tree:
79 /usr/local/share/emacs/19.34/site-lisp/ --- emu
80 /usr/local/share/emacs/site-lisp/apel/ --- APEL
82 You can specify other optional settings by editing the file
83 APEL-CFG. Please read comments in it.
86 load-path (for Emacs or MULE)
87 =============================
89 If you are using Emacs or Mule, please add directory of apel to
90 load-path. If you install by default setting, you can write
91 subdirs.el for example:
93 --------------------------------------------------------------------
94 (normal-top-level-add-to-load-path '("apel"))
95 --------------------------------------------------------------------
97 If you are using XEmacs, there are no need of setting about
107 Function put-alist (ITEM VALUE ALIST)
109 Modify ALIST to set VALUE to ITEM. If there is a pair whose car is
110 ITEM, replace its cdr by VALUE. If there is not such pair, create
111 new pair (ITEM . VALUE) and return new alist whose car is the new
112 pair and cdr is ALIST.
114 Function del-alist (ITEM ALIST)
116 If there is a pair whose key is ITEM, delete it from ALIST.
118 Function set-alist (SYMBOL ITEM VALUE)
120 Modify a alist indicated by SYMBOL to set VALUE to ITEM.
122 Ex. (set-alist 'auto-mode-alist "\\.pln$" 'text-mode)
124 Function modify-alist (MODIFIER DEFAULT)
126 Modify alist DEFAULT into alist MODIFIER.
128 Function set-modified-alist (SYMBOL MODIFIER)
130 Modify a value of a SYMBOL into alist MODIFIER. The SYMBOL should
131 be alist. If it is not bound, its value regard as nil.
136 Function add-path (PATH &rest OPTIONS)
138 Add PATH to `load-path' if it exists under `default-load-path'
139 directories and it does not exist in `load-path'.
141 You can use following PATH styles:
143 load-path relative: "PATH" (it is searched from
146 home directory relative: "~/PATH" "~USER/PATH"
148 absolute path: "/FOO/BAR/BAZ"
150 You can specify following OPTIONS:
152 'all-paths --- search from `load-path' instead of
155 'append --- add PATH to the last of `load-path'
157 Function add-latest-path (PATTERN &optional ALL-PATHS)
159 Add latest path matched by regexp PATTERN to `load-path' if it
160 exists under `default-load-path' directories and it does not exist
163 For example, if there is bbdb-1.50 and bbdb-1.51 under site-lisp,
164 and if bbdb-1.51 is newer than bbdb-1.50, and site-lisp is
165 /usr/local/share/emacs/site-lisp,
169 it adds "/usr/local/share/emacs/site-lisp/bbdb-1.51" to top of
172 If optional argument ALL-PATHS is specified, it is searched from all
173 of `load-path' instead of `default-load-path'.
175 Function get-latest-path (PATTERN &optional ALL-PATHS)
177 Return latest directory in default-load-path which is matched to
178 regexp PATTERN. If optional argument ALL-PATHS is specified, it is
179 searched from all of load-path instead of default-load-path.
181 Ex. (let ((gnus-path (get-latest-path "gnus")))
182 (add-path (expand-file-name "lisp" gnus-path))
183 (add-to-list 'Info-default-directory-list
184 (expand-file-name "texi" gnus-path))
187 Function file-installed-p (FILE &optional PATHS)
189 Return absolute-path of FILE if FILE exists in PATHS. If PATHS is
190 omitted, `load-path' is used.
192 Function exec-installed-p (FILE &optional PATHS SUFFIXES)
194 Return absolute-path of FILE if FILE exists in PATHS. If PATHS is
195 omitted, `exec-path' is used. If suffixes is omitted,
196 `exec-suffix-list' is used.
198 Function module-installed-p (MODULE &optional PATHS)
200 Return non-nil if module is provided or exists in PATHS. If PATHS
201 is omitted, `load-path' is used.
206 Function replace-as-filename (string)
208 Return safety file-name from STRING.
210 It refers variable `filename-filters'. It is list of functions for
211 file-name filter. Default filter refers following variables:
213 Variable filename-limit-length
215 Limit size of file-name.
217 Variable filename-replacement-alist
219 Alist list of characters vs. string as replacement. List of
220 characters represents characters not allowed as file-name.
226 If you write bug-reports and/or suggestions for improvement, please
227 send them to the tm Mailing List:
229 bug-tm-en@chamonix.jaist.ac.jp (English)
230 bug-tm-ja@chamonix.jaist.ac.jp (Japanese)
232 Via the tm ML, you can report tm bugs, obtain the latest release of
233 tm, and discuss future enhancements to tm. To join the tm ML, send
236 tm-ja-admin@chamonix.jaist.ac.jp (Japanese)
237 tm-en-admin@chamonix.jaist.ac.jp (English)
239 Since the user registration is done manually, please write the mail
240 body in human-recognizable language (^_^).