diff options
| author | Glenn Morris | 2013-11-26 22:15:06 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-11-26 22:15:06 -0800 |
| commit | cb6c95a394d9a9d2f068bf8ee240f2d2297867d1 (patch) | |
| tree | 6da24e3ad26db4ab42d800dd78feea2eee3d79d9 /src/lread.c | |
| parent | 4cbac8e94b68297189524f2db456c776bda4ed69 (diff) | |
| download | emacs-cb6c95a394d9a9d2f068bf8ee240f2d2297867d1.tar.gz emacs-cb6c95a394d9a9d2f068bf8ee240f2d2297867d1.zip | |
Move runtime leim lisp files to lisp/leim directory
This allows us to reuse much of the lisp build and installation machinery,
rather than duplicating it.
* Makefile.in (abs_builddir, leimdir): Remove.
(buildlisppath, SUBDIR, COPYDIR, COPYDESTS): No more leim directory.
(epaths-force-w32): No longer set BLD.
(leim): Remove.
(install-arch-indep): No longer run or install leim.
(mostlyclean, clean): No longer run leim rule.
(bootstrap-clean): Change leim target.
(maintainer-clean): Add leim.
(check-declare): Remove leim.
* README: Update for leim changes.
* configure.ac (leimdir): Remove.
(standardlisppath): No more leimdir.
* make-dist: Update for files from leim/ now being in lisp/leim/.
* doc/lispref/loading.texi (Library Search):
* doc/lispref/os.texi (Startup Summary): No more leim directory.
* leim/Makefile.in (leimdir): New variable.
(TIT_GB, TIT_BIG5, MISC, changed.tit, changed.misc)
(${leimdir}/leim-list.el, ${leimdir}/ja-dic/ja-dic.el):
Generate in $leimdir.
(all): Remove compilation, add ja-dic.
(leim-list.el): Now PHONY.
(setwins, compile-targets, compile-main, clean, mostlyclean)
(extraclean): Remove.
(bootstrap-clean): Delete all generated files.
* leim/README: Update for moved leim/ directory.
* leim/leim-ext.el (ucs-input-activate, hangul-input-method-activate):
Remove manual autoloads; now in loaddefs.el.
Disable byte-compile, version-control, autoloads in the output.
* lisp/Makefile.in (setwins_for_subdirs): Skip leim/ directory.
(compile-main): Depend on lisp/leim rule.
(leim): New rule.
* lisp/loadup.el: Move leim-list.el to leim/ subdirectory.
* lisp/startup.el (normal-top-level): No more leim directory.
* lisp/international/ja-dic-cnv.el (skkdic-convert):
Disable version-control and autoloads in output files.
* lisp/international/titdic-cnv.el (titdic-convert, miscdic-convert):
Disable version-control and autoloads in output files.
* lisp/leim/quail: Move here from ../leim.
* lisp/leim/quail/hangul.el (hangul-input-method-activate):
Add autoload cookie.
(generated-autoload-load-name): Set file-local value.
* lisp/leim/quail/uni-input.el (ucs-input-activate): Add autoload cookie.
(generated-autoload-load-name): Set file-local value.
* nt/README.W32:
* nt/addpm.c (env_vars):
* nt/epaths.nt (PATH_LOADSEARCH, PATH_DUMPLOADSEARCH):
* nt/paths.h (PATH_LOADSEARCH): No more leim directory.
* src/Makefile.in (leimdir): Now in lisp source directory.
($(leimdir)/leim-list.el): Just use ../leim .
* src/epaths.in (PATH_DUMPLOADSEARCH):
* src/lread.c (load_path_default):
* src/nsterm.m (ns_load_path): No more leim directory.
* .bzrignore: Update for relocated leim files.
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/lread.c b/src/lread.c index 3063cf248f5..679cbb78375 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -4157,14 +4157,12 @@ static Lisp_Object dump_path; | |||
| 4157 | are not yet installed, we should not use them, even if they exist.) | 4157 | are not yet installed, we should not use them, even if they exist.) |
| 4158 | If installation-dir/lisp does not exist, just add dump_path at the | 4158 | If installation-dir/lisp does not exist, just add dump_path at the |
| 4159 | end instead. | 4159 | end instead. |
| 4160 | Add installation-dir/leim (if exists and not already a member) at the front. | ||
| 4161 | Add installation-dir/site-lisp (if !no_site_lisp, and exists | 4160 | Add installation-dir/site-lisp (if !no_site_lisp, and exists |
| 4162 | and not already a member) at the front. | 4161 | and not already a member) at the front. |
| 4163 | If installation-dir != source-dir (ie running an uninstalled, | 4162 | If installation-dir != source-dir (ie running an uninstalled, |
| 4164 | out-of-tree build) AND install-dir/src/Makefile exists BUT | 4163 | out-of-tree build) AND install-dir/src/Makefile exists BUT |
| 4165 | install-dir/src/Makefile.in does NOT exist (this is a sanity | 4164 | install-dir/src/Makefile.in does NOT exist (this is a sanity |
| 4166 | check), then repeat the above steps for source-dir/lisp, | 4165 | check), then repeat the above steps for source-dir/lisp, site-lisp. */ |
| 4167 | leim and site-lisp. */ | ||
| 4168 | 4166 | ||
| 4169 | static Lisp_Object | 4167 | static Lisp_Object |
| 4170 | load_path_default (bool changed) | 4168 | load_path_default (bool changed) |
| @@ -4233,9 +4231,9 @@ load_path_default (bool changed) | |||
| 4233 | if (NILP (Fmember (tem, lpath))) | 4231 | if (NILP (Fmember (tem, lpath))) |
| 4234 | { | 4232 | { |
| 4235 | /* We are running uninstalled. The default load-path | 4233 | /* We are running uninstalled. The default load-path |
| 4236 | points to the eventual installed lisp, leim | 4234 | points to the eventual installed lisp directories. |
| 4237 | directories. We should not use those now, even | 4235 | We should not use those now, even if they exist, |
| 4238 | if they exist, so start over from a clean slate. */ | 4236 | so start over from a clean slate. */ |
| 4239 | lpath = list1 (tem); | 4237 | lpath = list1 (tem); |
| 4240 | } | 4238 | } |
| 4241 | } | 4239 | } |
| @@ -4244,16 +4242,6 @@ load_path_default (bool changed) | |||
| 4244 | Lisp dirs instead. */ | 4242 | Lisp dirs instead. */ |
| 4245 | lpath = nconc2 (lpath, dump_path); | 4243 | lpath = nconc2 (lpath, dump_path); |
| 4246 | 4244 | ||
| 4247 | /* Add leim under the installation dir, if it is accessible. */ | ||
| 4248 | tem = Fexpand_file_name (build_string ("leim"), | ||
| 4249 | Vinstallation_directory); | ||
| 4250 | tem1 = Ffile_accessible_directory_p (tem); | ||
| 4251 | if (!NILP (tem1)) | ||
| 4252 | { | ||
| 4253 | if (NILP (Fmember (tem, lpath))) | ||
| 4254 | lpath = Fcons (tem, lpath); | ||
| 4255 | } | ||
| 4256 | |||
| 4257 | /* Add site-lisp under the installation dir, if it exists. */ | 4245 | /* Add site-lisp under the installation dir, if it exists. */ |
| 4258 | if (!no_site_lisp) | 4246 | if (!no_site_lisp) |
| 4259 | { | 4247 | { |
| @@ -4269,7 +4257,7 @@ load_path_default (bool changed) | |||
| 4269 | 4257 | ||
| 4270 | /* If Emacs was not built in the source directory, | 4258 | /* If Emacs was not built in the source directory, |
| 4271 | and it is run from where it was built, add to load-path | 4259 | and it is run from where it was built, add to load-path |
| 4272 | the lisp, leim and site-lisp dirs under that directory. */ | 4260 | the lisp and site-lisp dirs under that directory. */ |
| 4273 | 4261 | ||
| 4274 | if (NILP (Fequal (Vinstallation_directory, Vsource_directory))) | 4262 | if (NILP (Fequal (Vinstallation_directory, Vsource_directory))) |
| 4275 | { | 4263 | { |
| @@ -4294,12 +4282,6 @@ load_path_default (bool changed) | |||
| 4294 | if (NILP (Fmember (tem, lpath))) | 4282 | if (NILP (Fmember (tem, lpath))) |
| 4295 | lpath = Fcons (tem, lpath); | 4283 | lpath = Fcons (tem, lpath); |
| 4296 | 4284 | ||
| 4297 | tem = Fexpand_file_name (build_string ("leim"), | ||
| 4298 | Vsource_directory); | ||
| 4299 | |||
| 4300 | if (NILP (Fmember (tem, lpath))) | ||
| 4301 | lpath = Fcons (tem, lpath); | ||
| 4302 | |||
| 4303 | if (!no_site_lisp) | 4285 | if (!no_site_lisp) |
| 4304 | { | 4286 | { |
| 4305 | tem = Fexpand_file_name (build_string ("site-lisp"), | 4287 | tem = Fexpand_file_name (build_string ("site-lisp"), |