aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-11-26 22:15:06 -0800
committerGlenn Morris2013-11-26 22:15:06 -0800
commitcb6c95a394d9a9d2f068bf8ee240f2d2297867d1 (patch)
tree6da24e3ad26db4ab42d800dd78feea2eee3d79d9
parent4cbac8e94b68297189524f2db456c776bda4ed69 (diff)
downloademacs-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.
-rw-r--r--ChangeLog17
-rw-r--r--Makefile.in56
-rw-r--r--README7
-rw-r--r--configure.ac5
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/loading.texi11
-rw-r--r--doc/lispref/os.texi8
-rw-r--r--leim/ChangeLog16
-rw-r--r--leim/Makefile.in142
-rw-r--r--leim/README24
-rw-r--r--leim/leim-ext.el25
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/Makefile.in17
-rw-r--r--lisp/international/ja-dic-cnv.el15
-rw-r--r--lisp/international/titdic-cnv.el25
-rw-r--r--lisp/leim/quail/.gitignore (renamed from leim/quail/.gitignore)0
-rw-r--r--lisp/leim/quail/arabic.el (renamed from leim/quail/arabic.el)0
-rw-r--r--lisp/leim/quail/croatian.el (renamed from leim/quail/croatian.el)0
-rw-r--r--lisp/leim/quail/cyril-jis.el (renamed from leim/quail/cyril-jis.el)0
-rw-r--r--lisp/leim/quail/cyrillic.el (renamed from leim/quail/cyrillic.el)0
-rw-r--r--lisp/leim/quail/czech.el (renamed from leim/quail/czech.el)0
-rw-r--r--lisp/leim/quail/ethiopic.el (renamed from leim/quail/ethiopic.el)0
-rw-r--r--lisp/leim/quail/georgian.el (renamed from leim/quail/georgian.el)0
-rw-r--r--lisp/leim/quail/greek.el (renamed from leim/quail/greek.el)0
-rw-r--r--lisp/leim/quail/hangul.el (renamed from leim/quail/hangul.el)5
-rw-r--r--lisp/leim/quail/hanja-jis.el (renamed from leim/quail/hanja-jis.el)0
-rw-r--r--lisp/leim/quail/hanja.el (renamed from leim/quail/hanja.el)0
-rw-r--r--lisp/leim/quail/hanja3.el (renamed from leim/quail/hanja3.el)0
-rw-r--r--lisp/leim/quail/hebrew.el (renamed from leim/quail/hebrew.el)0
-rw-r--r--lisp/leim/quail/indian.el (renamed from leim/quail/indian.el)0
-rw-r--r--lisp/leim/quail/ipa-praat.el (renamed from leim/quail/ipa-praat.el)0
-rw-r--r--lisp/leim/quail/ipa.el (renamed from leim/quail/ipa.el)0
-rw-r--r--lisp/leim/quail/japanese.el (renamed from leim/quail/japanese.el)0
-rw-r--r--lisp/leim/quail/lao.el (renamed from leim/quail/lao.el)0
-rw-r--r--lisp/leim/quail/latin-alt.el (renamed from leim/quail/latin-alt.el)0
-rw-r--r--lisp/leim/quail/latin-ltx.el (renamed from leim/quail/latin-ltx.el)0
-rw-r--r--lisp/leim/quail/latin-post.el (renamed from leim/quail/latin-post.el)0
-rw-r--r--lisp/leim/quail/latin-pre.el (renamed from leim/quail/latin-pre.el)0
-rw-r--r--lisp/leim/quail/lrt.el (renamed from leim/quail/lrt.el)0
-rw-r--r--lisp/leim/quail/persian.el (renamed from leim/quail/persian.el)0
-rw-r--r--lisp/leim/quail/py-punct.el (renamed from leim/quail/py-punct.el)0
-rw-r--r--lisp/leim/quail/pypunct-b5.el (renamed from leim/quail/pypunct-b5.el)0
-rw-r--r--lisp/leim/quail/rfc1345.el (renamed from leim/quail/rfc1345.el)0
-rw-r--r--lisp/leim/quail/sgml-input.el (renamed from leim/quail/sgml-input.el)0
-rw-r--r--lisp/leim/quail/sisheng.el (renamed from leim/quail/sisheng.el)0
-rw-r--r--lisp/leim/quail/slovak.el (renamed from leim/quail/slovak.el)0
-rw-r--r--lisp/leim/quail/symbol-ksc.el (renamed from leim/quail/symbol-ksc.el)0
-rw-r--r--lisp/leim/quail/thai.el (renamed from leim/quail/thai.el)0
-rw-r--r--lisp/leim/quail/tibetan.el (renamed from leim/quail/tibetan.el)0
-rw-r--r--lisp/leim/quail/uni-input.el (renamed from leim/quail/uni-input.el)7
-rw-r--r--lisp/leim/quail/viqr.el (renamed from leim/quail/viqr.el)0
-rw-r--r--lisp/leim/quail/vntelex.el (renamed from leim/quail/vntelex.el)0
-rw-r--r--lisp/leim/quail/vnvni.el (renamed from leim/quail/vnvni.el)0
-rw-r--r--lisp/leim/quail/welsh.el (renamed from leim/quail/welsh.el)0
-rw-r--r--lisp/loadup.el2
-rw-r--r--lisp/startup.el8
-rwxr-xr-xmake-dist21
-rw-r--r--nt/ChangeLog7
-rw-r--r--nt/README.W324
-rw-r--r--nt/addpm.c2
-rw-r--r--nt/epaths.nt10
-rw-r--r--nt/paths.h5
-rw-r--r--src/ChangeLog8
-rw-r--r--src/Makefile.in4
-rw-r--r--src/epaths.in8
-rw-r--r--src/lread.c28
-rw-r--r--src/nsterm.m10
67 files changed, 260 insertions, 260 deletions
diff --git a/ChangeLog b/ChangeLog
index 9285cc1b376..8ea40002e18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
12013-11-27 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (abs_builddir, leimdir): Remove.
4 (buildlisppath, SUBDIR, COPYDIR, COPYDESTS): No more leim directory.
5 (epaths-force-w32): No longer set BLD.
6 (leim): Remove.
7 (install-arch-indep): No longer run or install leim.
8 (mostlyclean, clean): No longer run leim rule.
9 (bootstrap-clean): Change leim target.
10 (maintainer-clean): Add leim.
11 (check-declare): Remove leim.
12 * README: Update for leim changes.
13 * configure.ac (leimdir): Remove.
14 (standardlisppath): No more leimdir.
15
16 * make-dist: Update for files from leim/ now being in lisp/leim/.
17
12013-11-26 Glenn Morris <rgm@gnu.org> 182013-11-26 Glenn Morris <rgm@gnu.org>
2 19
3 Preload leim-list.el. 20 Preload leim-list.el.
diff --git a/Makefile.in b/Makefile.in
index 969a22419a0..c55d39fbe5e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -164,7 +164,6 @@ bitmapdir=@bitmapdir@
164# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. 164# We use $(srcdir) explicitly in dependencies so as not to depend on VPATH.
165srcdir=@srcdir@ 165srcdir=@srcdir@
166abs_srcdir=@abs_srcdir@ 166abs_srcdir=@abs_srcdir@
167abs_builddir=@abs_builddir@
168# MinGW CPPFLAGS may use this. 167# MinGW CPPFLAGS may use this.
169abs_top_srcdir=@abs_top_srcdir@ 168abs_top_srcdir=@abs_top_srcdir@
170 169
@@ -191,15 +190,13 @@ iconsrcdir=$(srcdir)/etc/images/icons
191# These variables hold the values Emacs will actually use. They are 190# These variables hold the values Emacs will actually use. They are
192# based on the values of the standard Make variables above. 191# based on the values of the standard Make variables above.
193 192
194# Where to install the lisp, leim files distributed with 193# Where to install the lisp files distributed with Emacs.
195# Emacs. This includes the Emacs version, so that the 194# This includes the Emacs version, so that the lisp files for different
196# lisp files for different versions of Emacs will install 195# versions of Emacs will install themselves in separate directories.
197# themselves in separate directories.
198lispdir=@lispdir@ 196lispdir=@lispdir@
199leimdir=@leimdir@
200 197
201# Directories Emacs should search for standard lisp files. 198# Directories Emacs should search for standard lisp files.
202# The default is ${lispdir}:${leimdir}. 199# The default is ${lispdir}.
203standardlisppath=@standardlisppath@ 200standardlisppath=@standardlisppath@
204 201
205# Directories Emacs should search for lisp files specific to this 202# Directories Emacs should search for lisp files specific to this
@@ -219,11 +216,9 @@ lisppath=@lisppath@
219# to help Emacs find its lisp files before they've been installed 216# to help Emacs find its lisp files before they've been installed
220# in their final location. 217# in their final location.
221# This should be a colon-separated list of directories. 218# This should be a colon-separated list of directories.
222# Normally it points to the lisp/ directory in the sources and 219# Normally it points to the lisp/ directory in the sources.
223# the leim/ directory in the build tree.
224# NB lread.c relies on lisp/ being first here. 220# NB lread.c relies on lisp/ being first here.
225# TODO generate leim in srcdir also, prebuild in tarfiles. 221buildlisppath=${abs_srcdir}/lisp
226buildlisppath=${abs_srcdir}/lisp:${abs_builddir}/leim
227 222
228# Where to install the other architecture-independent 223# Where to install the other architecture-independent
229# data files distributed with Emacs (like the tutorial, 224# data files distributed with Emacs (like the tutorial,
@@ -278,7 +273,7 @@ EMACS = ${EMACS_NAME}${EXEEXT}
278EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'`${EXEEXT} 273EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'`${EXEEXT}
279 274
280# Subdirectories to make recursively. 275# Subdirectories to make recursively.
281SUBDIR = $(NTDIR) lib lib-src src lisp leim 276SUBDIR = $(NTDIR) lib lib-src src lisp
282 277
283# The subdir makefiles created by config.status. 278# The subdir makefiles created by config.status.
284SUBDIR_MAKEFILES_IN = @SUBDIR_MAKEFILES_IN@ 279SUBDIR_MAKEFILES_IN = @SUBDIR_MAKEFILES_IN@
@@ -287,10 +282,9 @@ SUBDIR_MAKEFILES = `echo $(SUBDIR_MAKEFILES_IN:.in=) | sed 's|$(srcdir)/||g'`
287# Subdirectories to install, and where they'll go. lib-src's and nt's 282# Subdirectories to install, and where they'll go. lib-src's and nt's
288# makefiles know how to install them, so we don't do that here. 283# makefiles know how to install them, so we don't do that here.
289# Directories that cannot simply be copied, eg info, are treated 284# Directories that cannot simply be copied, eg info, are treated
290# separately. quail appears twice because in out-of-tree builds, it 285# separately.
291# exists twice. 286COPYDIR = ${srcdir}/etc ${srcdir}/lisp
292COPYDIR = ${srcdir}/etc ${srcdir}/lisp ${srcdir}/leim/ja-dic ${srcdir}/leim/quail leim/quail 287COPYDESTS = "$(DESTDIR)${etcdir}" "$(DESTDIR)${lispdir}"
293COPYDESTS = "$(DESTDIR)${etcdir}" "$(DESTDIR)${lispdir}" "$(DESTDIR)${leimdir}/ja-dic" "$(DESTDIR)${leimdir}/quail" "$(DESTDIR)${leimdir}/quail"
294 288
295all: ${SUBDIR} 289all: ${SUBDIR}
296 290
@@ -341,7 +335,6 @@ msys_sed_sh_escape=sed -e 's/[];$$*.^[]/\\\\&/g'
341# '/foo/bar'). 335# '/foo/bar').
342epaths-force-w32: FRC 336epaths-force-w32: FRC
343 @(w32srcdir=`${srcdir}/build-aux/msys-to-w32 "${srcdir}"`; \ 337 @(w32srcdir=`${srcdir}/build-aux/msys-to-w32 "${srcdir}"`; \
344 w32blddir=`${srcdir}/build-aux/msys-to-w32 .`; \
345 w32prefix=`${srcdir}/build-aux/msys-to-w32 "${prefix}" N`; \ 338 w32prefix=`${srcdir}/build-aux/msys-to-w32 "${prefix}" N`; \
346 w32prefixpattern=`echo "${w32prefix}" | ${msys_sed_sh_escape}` ; \ 339 w32prefixpattern=`echo "${w32prefix}" | ${msys_sed_sh_escape}` ; \
347 w32locallisppath=`${srcdir}/build-aux/msys-to-w32 "${locallisppath}" N ":" "\\;" | ${msys_w32prefix_subst}` ; \ 340 w32locallisppath=`${srcdir}/build-aux/msys-to-w32 "${locallisppath}" N ":" "\\;" | ${msys_w32prefix_subst}` ; \
@@ -349,7 +342,6 @@ epaths-force-w32: FRC
349 -e 's;\(#.*PATH_SITELOADSEARCH\).*$$;\1 "'"$${w32locallisppath}"'";' \ 342 -e 's;\(#.*PATH_SITELOADSEARCH\).*$$;\1 "'"$${w32locallisppath}"'";' \
350 -e '/^.*#/s/@VER@/${version}/g' \ 343 -e '/^.*#/s/@VER@/${version}/g' \
351 -e '/^.*#/s/@CFG@/${configuration}/g' \ 344 -e '/^.*#/s/@CFG@/${configuration}/g' \
352 -e '/^.*#/s|@BLD@|$${w32blddir}|g' \
353 -e "/^.*#/s|@SRC@|$${w32srcdir}|g") && \ 345 -e "/^.*#/s|@SRC@|$${w32srcdir}|g") && \
354 ${srcdir}/build-aux/move-if-change epaths.h.$$$$ src/epaths.h 346 ${srcdir}/build-aux/move-if-change epaths.h.$$$$ src/epaths.h
355 347
@@ -361,12 +353,11 @@ lib-src src: $(NTDIR) lib
361 353
362src: lib-src 354src: lib-src
363 355
364# We need to build `emacs' in `src' to compile the *.elc files in `lisp' 356# We need to build `emacs' in `src' to compile the *.elc files in `lisp'.
365# and `leim'. 357lisp: src
366lisp leim: src
367 358
368# These targets should be "${SUBDIR} without `src'". 359# These targets should be "${SUBDIR} without `src'".
369lib lib-src lisp leim nt: Makefile FRC 360lib lib-src lisp nt: Makefile FRC
370 cd $@ && $(MAKE) all $(MFLAGS) \ 361 cd $@ && $(MAKE) all $(MFLAGS) \
371 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ 362 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
372 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' 363 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
@@ -567,7 +558,7 @@ set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \
567## work correctly, and therefore no idea when tar can be replaced. 558## work correctly, and therefore no idea when tar can be replaced.
568## See also these comments from 2004 about cp -r working fine: 559## See also these comments from 2004 about cp -r working fine:
569## http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00005.html 560## http://lists.gnu.org/archive/html/autoconf-patches/2004-11/msg00005.html
570install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTRA} 561install-arch-indep: lisp install-info install-man ${INSTALL_ARCH_INDEP_EXTRA}
571 -set ${COPYDESTS} ; \ 562 -set ${COPYDESTS} ; \
572 unset CDPATH; \ 563 unset CDPATH; \
573 $(set_installuser); \ 564 $(set_installuser); \
@@ -579,13 +570,8 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR
579 [ "$$exp_dest" = "`cd $${dir} && /bin/pwd`" ] && continue ; \ 570 [ "$$exp_dest" = "`cd $${dir} && /bin/pwd`" ] && continue ; \
580 else true; \ 571 else true; \
581 fi; \ 572 fi; \
582 if [ "$${dir}" = "leim/quail" ]; then \ 573 rm -rf "$${dest}" ; \
583 [ "`cd $${dir} && /bin/pwd`" = "`cd ${srcdir}/leim/quail && /bin/pwd`" ] && \ 574 umask 022; ${MKDIR_P} "$${dest}" ; \
584 continue ; \
585 else \
586 rm -rf "$${dest}" ; \
587 umask 022; ${MKDIR_P} "$${dest}" ; \
588 fi ; \
589 echo "Copying $${dir} to $${dest}..." ; \ 575 echo "Copying $${dir} to $${dest}..." ; \
590 (cd $${dir}; tar -chf - . ) \ 576 (cd $${dir}; tar -chf - . ) \
591 | (cd "$${dest}"; umask 022; \ 577 | (cd "$${dest}"; umask 022; \
@@ -612,8 +598,6 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR
612 done ); \ 598 done ); \
613 find "$${dest}" -exec chown $${installuser} {} ';' ;\ 599 find "$${dest}" -exec chown $${installuser} {} ';' ;\
614 done 600 done
615 -rm -f "$(DESTDIR)${leimdir}/leim-list.el"
616 ${INSTALL_DATA} leim/leim-list.el "$(DESTDIR)${leimdir}/leim-list.el"
617 -rm -f "$(DESTDIR)${lispdir}/subdirs.el" 601 -rm -f "$(DESTDIR)${lispdir}/subdirs.el"
618 umask 022; $(srcdir)/build-aux/update-subdirs "$(DESTDIR)${lispdir}" 602 umask 022; $(srcdir)/build-aux/update-subdirs "$(DESTDIR)${lispdir}"
619 subdir="$(DESTDIR)${datadir}/emacs/${version}/site-lisp" ; \ 603 subdir="$(DESTDIR)${datadir}/emacs/${version}/site-lisp" ; \
@@ -624,7 +608,7 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR
624 ( echo "Compressing *.el ..." ; \ 608 ( echo "Compressing *.el ..." ; \
625 unset CDPATH; \ 609 unset CDPATH; \
626 thisdir=`/bin/pwd`; \ 610 thisdir=`/bin/pwd`; \
627 for dir in "$(DESTDIR)${lispdir}" "$(DESTDIR)${leimdir}"; do \ 611 for dir in "$(DESTDIR)${lispdir}"; do \
628 cd "$${thisdir}" ; \ 612 cd "$${thisdir}" ; \
629 cd "$${dir}" || exit 1 ; \ 613 cd "$${dir}" || exit 1 ; \
630 for f in `find . -name "*.elc" -print`; do \ 614 for f in `find . -name "*.elc" -print`; do \
@@ -821,7 +805,6 @@ mostlyclean: FRC
821 -cd doc/misc && $(MAKE) $(MFLAGS) mostlyclean 805 -cd doc/misc && $(MAKE) $(MFLAGS) mostlyclean
822 -cd doc/lispref && $(MAKE) $(MFLAGS) mostlyclean 806 -cd doc/lispref && $(MAKE) $(MFLAGS) mostlyclean
823 -cd doc/lispintro && $(MAKE) $(MFLAGS) mostlyclean 807 -cd doc/lispintro && $(MAKE) $(MFLAGS) mostlyclean
824 cd leim && $(MAKE) $(MFLAGS) mostlyclean
825 808
826### `clean' 809### `clean'
827### Delete all files from the current directory that are normally 810### Delete all files from the current directory that are normally
@@ -843,7 +826,6 @@ clean: FRC
843 -cd doc/misc && $(MAKE) $(MFLAGS) clean 826 -cd doc/misc && $(MAKE) $(MFLAGS) clean
844 -cd doc/lispref && $(MAKE) $(MFLAGS) clean 827 -cd doc/lispref && $(MAKE) $(MFLAGS) clean
845 -cd doc/lispintro && $(MAKE) $(MFLAGS) clean 828 -cd doc/lispintro && $(MAKE) $(MFLAGS) clean
846 cd leim && $(MAKE) $(MFLAGS) clean
847 cd nextstep && $(MAKE) $(MFLAGS) clean 829 cd nextstep && $(MAKE) $(MFLAGS) clean
848 830
849### `bootclean' 831### `bootclean'
@@ -892,7 +874,7 @@ bootstrap-clean: FRC
892 -cd doc/misc && $(MAKE) $(MFLAGS) maintainer-clean 874 -cd doc/misc && $(MAKE) $(MFLAGS) maintainer-clean
893 -cd doc/lispref && $(MAKE) $(MFLAGS) maintainer-clean 875 -cd doc/lispref && $(MAKE) $(MFLAGS) maintainer-clean
894 -cd doc/lispintro && $(MAKE) $(MFLAGS) maintainer-clean 876 -cd doc/lispintro && $(MAKE) $(MFLAGS) maintainer-clean
895 cd leim && $(MAKE) $(MFLAGS) maintainer-clean 877 cd leim && $(MAKE) $(MFLAGS) bootstrap-clean
896 cd lisp && $(MAKE) $(MFLAGS) bootstrap-clean 878 cd lisp && $(MAKE) $(MFLAGS) bootstrap-clean
897 cd nextstep && $(MAKE) $(MFLAGS) maintainer-clean 879 cd nextstep && $(MAKE) $(MFLAGS) maintainer-clean
898 for dir in test/automated admin/unidata; do \ 880 for dir in test/automated admin/unidata; do \
@@ -917,6 +899,7 @@ top_maintainer_clean=\
917 rm -fr autom4te.cache 899 rm -fr autom4te.cache
918maintainer-clean: bootstrap-clean FRC 900maintainer-clean: bootstrap-clean FRC
919 cd src && $(MAKE) $(MFLAGS) maintainer-clean 901 cd src && $(MAKE) $(MFLAGS) maintainer-clean
902 cd leim && $(MAKE) $(MFLAGS) maintainer-clean
920 cd lisp && $(MAKE) $(MFLAGS) maintainer-clean 903 cd lisp && $(MAKE) $(MFLAGS) maintainer-clean
921 for dir in test/automated admin/unidata; do \ 904 for dir in test/automated admin/unidata; do \
922 [ ! -d $$dir ] || (cd $$dir && $(MAKE) $(MFLAGS) maintainer-clean); \ 905 [ ! -d $$dir ] || (cd $$dir && $(MAKE) $(MFLAGS) maintainer-clean); \
@@ -1083,5 +1066,4 @@ check-declare:
1083 echo "You must build Emacs to use this command"; \ 1066 echo "You must build Emacs to use this command"; \
1084 exit 1; \ 1067 exit 1; \
1085 fi 1068 fi
1086 cd leim && $(MAKE) $(MFLAGS) $@
1087 cd lisp && $(MAKE) $(MFLAGS) $@ 1069 cd lisp && $(MAKE) $(MFLAGS) $@
diff --git a/README b/README
index ebd07eaaa3d..d909962237c 100644
--- a/README
+++ b/README
@@ -64,9 +64,10 @@ There are several subdirectories:
64 its primitives, the redisplay code, and some basic editing 64 its primitives, the redisplay code, and some basic editing
65 functions). 65 functions).
66`lisp' holds the Emacs Lisp code for Emacs (most everything else). 66`lisp' holds the Emacs Lisp code for Emacs (most everything else).
67`leim' holds the library of Emacs input methods, Lisp code and 67`leim' holds the original source files for the generated files
68 auxiliary data files required to type international characters 68 in lisp/leim. These form the library of Emacs input methods,
69 which can't be directly produced by your keyboard. 69 required to type international characters that can't be
70 directly produced by your keyboard.
70`lib' holds source code for libraries used by Emacs and its utilities 71`lib' holds source code for libraries used by Emacs and its utilities
71`lib-src' holds the source code for some utility programs for use by or 72`lib-src' holds the source code for some utility programs for use by or
72 with Emacs, like movemail and etags. 73 with Emacs, like movemail and etags.
diff --git a/configure.ac b/configure.ac
index 3e4e17e9d50..48343eb0433 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,8 +80,7 @@ dnl hence the single quotes. This is per the GNU coding standards, see
80dnl (autoconf) Installation Directory Variables 80dnl (autoconf) Installation Directory Variables
81dnl See also epaths.h below. 81dnl See also epaths.h below.
82lispdir='${datadir}/emacs/${version}/lisp' 82lispdir='${datadir}/emacs/${version}/lisp'
83leimdir='${datadir}/emacs/${version}/leim' 83standardlisppath='${lispdir}'
84standardlisppath='${lispdir}:${leimdir}'
85locallisppath='${datadir}/emacs/${version}/site-lisp:'\ 84locallisppath='${datadir}/emacs/${version}/site-lisp:'\
86'${datadir}/emacs/site-lisp' 85'${datadir}/emacs/site-lisp'
87lisppath='${locallisppath}:${standardlisppath}' 86lisppath='${locallisppath}:${standardlisppath}'
@@ -1683,7 +1682,6 @@ if test "${HAVE_NS}" = yes; then
1683 infodir="\${ns_appresdir}/info" 1682 infodir="\${ns_appresdir}/info"
1684 mandir="\${ns_appresdir}/man" 1683 mandir="\${ns_appresdir}/man"
1685 lispdir="\${ns_appresdir}/lisp" 1684 lispdir="\${ns_appresdir}/lisp"
1686 leimdir="\${ns_appresdir}/leim"
1687 INSTALL_ARCH_INDEP_EXTRA= 1685 INSTALL_ARCH_INDEP_EXTRA=
1688 fi 1686 fi
1689 1687
@@ -4490,7 +4488,6 @@ AC_SUBST(libexecdir)
4490AC_SUBST(mandir) 4488AC_SUBST(mandir)
4491AC_SUBST(infodir) 4489AC_SUBST(infodir)
4492AC_SUBST(lispdir) 4490AC_SUBST(lispdir)
4493AC_SUBST(leimdir)
4494AC_SUBST(standardlisppath) 4491AC_SUBST(standardlisppath)
4495AC_SUBST(locallisppath) 4492AC_SUBST(locallisppath)
4496AC_SUBST(lisppath) 4493AC_SUBST(lisppath)
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 778e952697f..ba7fe63a1b5 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12013-11-27 Glenn Morris <rgm@gnu.org>
2
3 * loading.texi (Library Search):
4 * os.texi (Startup Summary): No more leim directory.
5
12013-11-26 Glenn Morris <rgm@gnu.org> 62013-11-26 Glenn Morris <rgm@gnu.org>
2 7
3 * os.texi (Startup Summary): Update for leim-list being preloaded. 8 * os.texi (Startup Summary): Update for leim-list being preloaded.
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index aae92de99cb..0505b67961d 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -270,7 +270,6 @@ is a directory something like
270"/usr/local/share/emacs/@var{version}/lisp" 270"/usr/local/share/emacs/@var{version}/lisp"
271@end example 271@end example
272 272
273followed by a similarly named @file{leim} directory.
274(In this and the following examples, replace @file{/usr/local} with 273(In this and the following examples, replace @file{/usr/local} with
275the installation prefix appropriate for your Emacs.) 274the installation prefix appropriate for your Emacs.)
276These directories contain the standard Lisp files that come with 275These directories contain the standard Lisp files that come with
@@ -278,10 +277,12 @@ Emacs. If Emacs cannot find them, it will not start correctly.
278 277
279If you run Emacs from the directory where it was built---that is, an 278If you run Emacs from the directory where it was built---that is, an
280executable that has not been formally installed---Emacs instead 279executable that has not been formally installed---Emacs instead
281initializes @code{load-path} using the @file{lisp} and @file{leim} 280initializes @code{load-path} using the @file{lisp}
282directories in the directory containing the sources from which it 281directory in the directory containing the sources from which it
283was built. If you built Emacs in a separate directory from the 282was built.
284sources, it also adds those directories from the build directory. 283@c Though there should be no *.el files in builddir/lisp, so it's pointless.
284If you built Emacs in a separate directory from the
285sources, it also adds the lisp directories from the build directory.
285(In all cases, elements are represented as absolute file names.) 286(In all cases, elements are represented as absolute file names.)
286 287
287@cindex site-lisp directories 288@cindex site-lisp directories
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index c5949fd5f15..38ebcccb688 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -74,11 +74,9 @@ automatically when Emacs is installed.
74It loads any @file{leim-list.el} that it finds in the @code{load-path} 74It loads any @file{leim-list.el} that it finds in the @code{load-path}
75directories. This file is intended for registering input methods. 75directories. This file is intended for registering input methods.
76The search is only for any personal @file{leim-list.el} files that you 76The search is only for any personal @file{leim-list.el} files that you
77may have created; so it skips the directories containing the standard Emacs 77may have created; it skips the directories containing the standard Emacs
78libraries (for efficiency, since @file{leim-list.el} should not exist 78libraries (these should contain only a single @file{leim-list.el} file,
79in those directories), as well as the @file{leim} directory that is 79which is compiled into the Emacs executable).
80part of the distribution (since the @file{leim-list.el} file in this
81directory is compiled into the Emacs executable).
82 80
83@vindex before-init-time 81@vindex before-init-time
84@item 82@item
diff --git a/leim/ChangeLog b/leim/ChangeLog
index ec5d9958151..165f569697b 100644
--- a/leim/ChangeLog
+++ b/leim/ChangeLog
@@ -1,3 +1,19 @@
12013-11-27 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (leimdir): New variable.
4 (TIT_GB, TIT_BIG5, MISC, changed.tit, changed.misc)
5 (${leimdir}/leim-list.el, ${leimdir}/ja-dic/ja-dic.el):
6 Generate in $leimdir.
7 (all): Remove compilation, add ja-dic.
8 (leim-list.el): Now PHONY.
9 (setwins, compile-targets, compile-main, clean, mostlyclean)
10 (extraclean): Remove.
11 (bootstrap-clean): Delete all generated files.
12 * README: Update for moved leim/ directory.
13 * leim-ext.el (ucs-input-activate, hangul-input-method-activate):
14 Remove manual autoloads; now in loaddefs.el.
15 Disable byte-compile, version-control, autoloads in the output.
16
12013-11-23 Glenn Morris <rgm@gnu.org> 172013-11-23 Glenn Morris <rgm@gnu.org>
2 18
3 * Makefile.in (RUN_EMACS): Empty EMACSLOADPATH rather than unsetting. 19 * Makefile.in (RUN_EMACS): Empty EMACSLOADPATH rather than unsetting.
diff --git a/leim/Makefile.in b/leim/Makefile.in
index 5a6f2ff4795..21bea3ca2eb 100644
--- a/leim/Makefile.in
+++ b/leim/Makefile.in
@@ -26,8 +26,11 @@ SHELL = @SHELL@
26# Here are the things that we expect ../configure to edit. 26# Here are the things that we expect ../configure to edit.
27srcdir=@srcdir@ 27srcdir=@srcdir@
28 28
29# Where the generated files go.
30leimdir = ${srcdir}/../lisp/leim
31
29# Which Emacs to use to convert TIT files to Emacs Lisp files, 32# Which Emacs to use to convert TIT files to Emacs Lisp files,
30# byte-compile Emacs Lisp files, and generate the file leim-list.el. 33# and generate the file leim-list.el.
31EMACS = ../src/emacs 34EMACS = ../src/emacs
32 35
33# How to run Emacs. 36# How to run Emacs.
@@ -38,45 +41,39 @@ MKDIR_P = @MKDIR_P@
38 41
39# Files generated from TIT dictionaries for Chinese GB character set. 42# Files generated from TIT dictionaries for Chinese GB character set.
40TIT_GB=\ 43TIT_GB=\
41 quail/CCDOSPY.el \ 44 ${leimdir}/quail/CCDOSPY.el \
42 quail/Punct.el \ 45 ${leimdir}/quail/Punct.el \
43 quail/QJ.el \ 46 ${leimdir}/quail/QJ.el \
44 quail/SW.el \ 47 ${leimdir}/quail/SW.el \
45 quail/TONEPY.el 48 ${leimdir}/quail/TONEPY.el
46 49
47# Files generated from TIT dictionaries for Chinese BIG5 character set. 50# Files generated from TIT dictionaries for Chinese BIG5 character set.
48TIT_BIG5=\ 51TIT_BIG5=\
49 quail/4Corner.el \ 52 ${leimdir}/quail/4Corner.el \
50 quail/ARRAY30.el \ 53 ${leimdir}/quail/ARRAY30.el \
51 quail/ECDICT.el \ 54 ${leimdir}/quail/ECDICT.el \
52 quail/ETZY.el \ 55 ${leimdir}/quail/ETZY.el \
53 quail/Punct-b5.el \ 56 ${leimdir}/quail/Punct-b5.el \
54 quail/PY-b5.el \ 57 ${leimdir}/quail/PY-b5.el \
55 quail/QJ-b5.el \ 58 ${leimdir}/quail/QJ-b5.el \
56 quail/ZOZY.el 59 ${leimdir}/quail/ZOZY.el
57 60
58CHINESE_TIT=${TIT_GB} ${TIT_BIG5} 61CHINESE_TIT=${TIT_GB} ${TIT_BIG5}
59 62
60MISC= \ 63MISC= \
61 quail/tsang-b5.el \ 64 ${leimdir}/quail/tsang-b5.el \
62 quail/quick-b5.el \ 65 ${leimdir}/quail/quick-b5.el \
63 quail/tsang-cns.el \ 66 ${leimdir}/quail/tsang-cns.el \
64 quail/quick-cns.el \ 67 ${leimdir}/quail/quick-cns.el \
65 quail/PY.el \ 68 ${leimdir}/quail/PY.el \
66 quail/ZIRANMA.el \ 69 ${leimdir}/quail/ZIRANMA.el \
67 quail/CTLau.el \ 70 ${leimdir}/quail/CTLau.el \
68 quail/CTLau-b5.el 71 ${leimdir}/quail/CTLau-b5.el
69 72
70## The generated .el files. 73## The generated .el files.
71TIT_MISC=${CHINESE_TIT} ${MISC} 74TIT_MISC=${CHINESE_TIT} ${MISC}
72 75
73.SUFFIXES: .elc .el 76all: ${leimdir}/leim-list.el ${leimdir}/ja-dic/ja-dic.el
74
75.el.elc:
76 @echo Compiling $<
77 @${RUN_EMACS} -l international/quail -f batch-byte-compile $<
78
79all: leim-list.el compile-main
80.PHONY: all 77.PHONY: all
81 78
82TIT_SOURCES= \ 79TIT_SOURCES= \
@@ -106,10 +103,10 @@ ${CHINESE_TIT}: changed.tit
106## quail/%.el: CXTERM-DIC/%.tit 103## quail/%.el: CXTERM-DIC/%.tit
107## It doesn't seem possible to do this with VPATH and suffix rules. 104## It doesn't seem possible to do this with VPATH and suffix rules.
108changed.tit: ${TIT_SOURCES} 105changed.tit: ${TIT_SOURCES}
109 @${MKDIR_P} quail 106 @${MKDIR_P} ${leimdir}/quail
110 ${RUN_EMACS} -l titdic-cnv \ 107 ${RUN_EMACS} -l titdic-cnv \
111 -f batch-titdic-convert -dir quail ${srcdir}/CXTERM-DIC; \ 108 -f batch-titdic-convert -dir ${leimdir}/quail ${srcdir}/CXTERM-DIC
112 echo "changed" > $@ 109 echo "changed" > $@
113 110
114MISC_SOURCES= \ 111MISC_SOURCES= \
115 ${srcdir}/MISC-DIC/CTLau-b5.html \ 112 ${srcdir}/MISC-DIC/CTLau-b5.html \
@@ -123,75 +120,36 @@ ${MISC}: changed.misc
123 @true 120 @true
124 121
125changed.misc: ${MISC_SOURCES} 122changed.misc: ${MISC_SOURCES}
126 @${MKDIR_P} quail 123 @${MKDIR_P} ${leimdir}/quail
127 ${RUN_EMACS} -l titdic-cnv \ 124 ${RUN_EMACS} -l titdic-cnv \
128 -f batch-miscdic-convert -dir quail ${srcdir}/MISC-DIC; \ 125 -f batch-miscdic-convert -dir ${leimdir}/quail ${srcdir}/MISC-DIC
129 echo "changed" > $@ 126 echo "changed" > $@
130 127
131leim-list.el: ${TIT_MISC} ${srcdir}/leim-ext.el 128.PHONY: leim-list.el
132 rm -f leim-list.el 129leim-list.el: ${leimdir}/leim-list.el
133 if [ "`cd ${srcdir} && /bin/pwd`" = "`/bin/pwd`" ] ; then \ 130
134 ${RUN_EMACS} -l international/quail \ 131${leimdir}/leim-list.el: ${TIT_MISC} ${srcdir}/leim-ext.el
135 --eval "(update-leim-list-file \".\")" ; \ 132 rm -f $@
136 else \ 133 ${RUN_EMACS} -l international/quail \
137 ${RUN_EMACS} -l international/quail \ 134 --eval "(update-leim-list-file (unmsys--file-name \"${leimdir}\"))"
138 --eval "(update-leim-list-file \".\" (unmsys--file-name \"${srcdir}\"))" ; \
139 fi
140 sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@ 135 sed -n '/^[^;]/ p' < ${srcdir}/leim-ext.el >> $@
141 136
142$(srcdir)/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L 137${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
143 @$(MKDIR_P) $(srcdir)/ja-dic 138 @$(MKDIR_P) $(leimdir)/ja-dic
144 $(RUN_EMACS) -batch -l ja-dic-cnv \ 139 $(RUN_EMACS) -batch -l ja-dic-cnv \
145 -f batch-skkdic-convert -dir "$(srcdir)/ja-dic" \ 140 -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" \
146 "$(srcdir)/SKK-DIC/SKK-JISYO.L" 141 "$(srcdir)/SKK-DIC/SKK-JISYO.L"
147 142
148## Following adapted from lisp/Makefile.in. 143.PHONY: bootstrap-clean distclean maintainer-clean
149setwins=wins="${srcdir}/ja-dic quail"; \
150 [ "`cd ${srcdir} && /bin/pwd`" != "`/bin/pwd`" ] && \
151 wins="$$wins ${srcdir}/quail"
152
153.PHONY: compile-targets
154# TARGETS is set dynamically in the recursive call from `compile-main'.
155compile-targets: $(TARGETS)
156
157# Compile all the Elisp files that need it. Beware: it approximates
158# `no-byte-compile', so watch out for false-positives!
159.PHONY: compile-main
160compile-main: ${TIT_MISC} $(srcdir)/ja-dic/ja-dic.el
161 @($(setwins); \
162 els=`echo "$$wins " | sed -e 's| |/*.el |g'`; \
163 for el in $$els; do \
164 test -f $$el || continue; \
165 test ! -f $${el}c && GREP_OPTIONS= grep '^;.*no-byte-compile: t' $$el > /dev/null && continue; \
166 echo "$${el}c"; \
167 done | xargs echo) | \
168 while read chunk; do \
169 $(MAKE) $(MFLAGS) compile-targets EMACS="$(EMACS)" TARGETS="$$chunk"; \
170 done
171
172.PHONY: clean mostlyclean bootstrap-clean distclean maintainer-clean extraclean
173
174clean mostlyclean:
175 rm -f ${TIT_MISC} ${TIT_MISC:.el=.elc} \
176 leim-list.el changed.tit changed.misc
177 144
178# The following target is needed because the `clean' target only removes 145bootstrap-clean:
179# TIT-generated files and doesn't touch compiled Quail packages. But 146 rm -f ${TIT_MISC} ${TIT_MISC:.el=.elc} \
180# bootstrapping should not leave non-fresh .elc files behind. 147 ${leimdir}/leim-list.el changed.tit changed.misc
181bootstrap-clean: clean 148 rm -rf ${leimdir}/ja-dic
182 $(setwins); for w in $$wins; do rm -f $$w/*.elc; done
183 149
184distclean: clean 150distclean:
185 -[ "`cd ${srcdir} && /bin/pwd`" != "`/bin/pwd`" ] && rm -rf quail
186 rm -f Makefile 151 rm -f Makefile
187 152
188maintainer-clean: distclean bootstrap-clean 153maintainer-clean: distclean bootstrap-clean
189 154
190extraclean: maintainer-clean 155### Makefile.in ends here
191 -rm -f *~ \#* */*~ */\#*
192
193.PHONY: check-declare
194
195check-declare:
196 $(RUN_EMACS) -l check-declare \
197 --eval '(check-declare-directory (unmsys--file-name "$(srcdir)"))'
diff --git a/leim/README b/leim/README
index f1075872f77..c9c5447bd64 100644
--- a/leim/README
+++ b/leim/README
@@ -20,24 +20,22 @@ This directory contains various dictionaries for Chinese input
20methods. These dictionaries are automatically converted to Quail 20methods. These dictionaries are automatically converted to Quail
21packages (Emacs Lisp source files) by `make'. 21packages (Emacs Lisp source files) by `make'.
22 22
23quail:
24
25This directory contains Emacs Lisp source files for Quail packages.
26
27SKK-DIC: 23SKK-DIC:
28 24
29This directory contains source dictionary for Japanese input method 25This directory contains source dictionary for Japanese input method
30distributed with SKK (Japanese input method run with Mule). But, you 26distributed with SKK (Japanese input method run with Mule).
31don't need this file because we distribute an Emacs Lisp source file 27
32ja-dic/ja-dic.el which has already been converted from the source 28
33dictionary (See below). 29The above source files are used to generate the following outputs:
30
31../lisp/leim/quail:
32
33This directory contains Emacs Lisp source files for Quail packages.
34 34
35ja-dic: 35../lisp/leim/ja-dic:
36 36
37This directory contains Emacs Lisp source file ja-dic.el which is 37This directory contains Emacs Lisp source file ja-dic.el,
38generated from a source dictionary in SKK-DIC directory. The 38generated from a source dictionary in SKK-DIC directory.
39inclusion of this file is for users convenience because it takes
40rather long time to generate it.
41 39
42 40
43This file is part of GNU Emacs. 41This file is part of GNU Emacs.
diff --git a/leim/leim-ext.el b/leim/leim-ext.el
index 8209026ddbd..b5fc3118862 100644
--- a/leim/leim-ext.el
+++ b/leim/leim-ext.el
@@ -37,21 +37,9 @@
37(eval-after-load "quail/Punct-b5" 37(eval-after-load "quail/Punct-b5"
38 '(quail-defrule " " ?  nil t)) 38 '(quail-defrule " " ?  nil t))
39 39
40(autoload 'ucs-input-activate "quail/uni-input"
41 "Activate UCS input method.
42With arg, activate UCS input method if and only if arg is positive.
43
44While this input method is active, the variable
45`input-method-function' is bound to the function `ucs-input-method'.")
46
47(register-input-method "ucs" "UTF-8" 'ucs-input-activate "U+" 40(register-input-method "ucs" "UTF-8" 'ucs-input-activate "U+"
48 "Unicode input as hex in the form Uxxxx.") 41 "Unicode input as hex in the form Uxxxx.")
49 42
50(autoload 'hangul-input-method-activate "quail/hangul"
51 "Activate Hangul input method INPUT-METHOD.
52FUNC is a function to handle input key.
53HELP-TEXT is a text set in `hangul-input-method-help-text'.")
54
55(register-input-method 43(register-input-method
56 "korean-hangul" 44 "korean-hangul"
57 "UTF-8" 45 "UTF-8"
@@ -88,3 +76,16 @@ HELP-TEXT is a text set in `hangul-input-method-help-text'.")
88 'hangul390-input-method 76 'hangul390-input-method
89 "Input method: korean-hangul390 (mode line indicator:한390)\n\nHangul 3-Bulsik 390 input method.") 77 "Input method: korean-hangul390 (mode line indicator:한390)\n\nHangul 3-Bulsik 390 input method.")
90 78
79;; Following lines are indented so that Makefile adds them to output.
80;; leim-list-header adds "coding: utf-8"; we could move that here,
81;; unless others are using that stuff to generate their own leim files.
82
83 ;; Local Variables:
84 ;; no-byte-compile: t
85 ;; version-control: never
86 ;; no-update-autoloads: t
87 ;; End:
88
89 ;;; leim-list.el ends here
90
91;;; leim-ext.el ends here
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 44048d841f8..25fc7476cfc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12013-11-27 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (setwins_for_subdirs): Skip leim/ directory.
4 (compile-main): Depend on leim rule.
5 (leim): New rule.
6 * loadup.el: Move leim-list.el to leim/ subdirectory.
7 * startup.el (normal-top-level): No more leim directory.
8 * international/ja-dic-cnv.el (skkdic-convert):
9 Disable version-control and autoloads in output files.
10 * international/titdic-cnv.el (titdic-convert, miscdic-convert):
11 Disable version-control and autoloads in output files.
12 * leim/quail: Move here from ../leim.
13 * leim/quail/hangul.el (hangul-input-method-activate):
14 Add autoload cookie.
15 (generated-autoload-load-name): Set file-local value.
16 * leim/quail/uni-input.el (ucs-input-activate): Add autoload cookie.
17 (generated-autoload-load-name): Set file-local value.
18
12013-11-26 Kenjiro NAKAYAMA <knakayam@redhat.com> (tiny change) 192013-11-26 Kenjiro NAKAYAMA <knakayam@redhat.com> (tiny change)
2 20
3 * net/eww.el (eww-bookmark-browse): Use 'eww-browse-url'. 21 * net/eww.el (eww-bookmark-browse): Use 'eww-browse-url'.
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index eb52b317e7b..391e50c8b7d 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -118,14 +118,15 @@ setwins=for file in `find . -type d -print`; do \
118# Find all subdirectories except `obsolete' and `term'. 118# Find all subdirectories except `obsolete' and `term'.
119setwins_almost=for file in `find ${srcdir} -type d -print`; do \ 119setwins_almost=for file in `find ${srcdir} -type d -print`; do \
120 case $$file in ${srcdir}*/obsolete | ${srcdir}*/term ) ;; \ 120 case $$file in ${srcdir}*/obsolete | ${srcdir}*/term ) ;; \
121 *) wins="$$wins$${wins:+ }$$file" ;; \ 121 *) wins="$$wins$${wins:+ }$$file" ;; \
122 esac; \ 122 esac; \
123 done 123 done
124 124
125# Find all subdirectories in which we might want to create subdirs.el. 125# Find all subdirectories in which we might want to create subdirs.el.
126setwins_for_subdirs=for file in `find ${srcdir} -type d -print`; do \ 126setwins_for_subdirs=for file in `find ${srcdir} -type d -print`; do \
127 case $$file in ${srcdir}*/cedet* ) ;; \ 127 case $$file in \
128 *) wins="$$wins$${wins:+ }$$file" ;; \ 128 ${srcdir}*/cedet* | ${srcdir}*/leim* ) ;; \
129 *) wins="$$wins$${wins:+ }$$file" ;; \
129 esac; \ 130 esac; \
130 done 131 done
131 132
@@ -172,6 +173,10 @@ finder-data: doit
172# The chmod +w is to handle env var CVSREAD=1. 173# The chmod +w is to handle env var CVSREAD=1.
173# Use expand-file-name rather than $abs_scrdir so that Emacs does not 174# Use expand-file-name rather than $abs_scrdir so that Emacs does not
174# get confused when it compares file-names for equality. 175# get confused when it compares file-names for equality.
176#
177# Note that we set no-update-autoloads in _generated_ leim files.
178# If you want to allow autoloads in such files, remove that,
179# and make this depend on leim.
175autoloads: $(LOADDEFS) doit 180autoloads: $(LOADDEFS) doit
176 cd $(lisp) && chmod +w $(AUTOGEN_VCS) 181 cd $(lisp) && chmod +w $(AUTOGEN_VCS)
177 $(setwins_almost); \ 182 $(setwins_almost); \
@@ -291,7 +296,7 @@ compile-targets: $(TARGETS)
291 296
292# Compile all the Elisp files that need it. Beware: it approximates 297# Compile all the Elisp files that need it. Beware: it approximates
293# `no-byte-compile', so watch out for false-positives! 298# `no-byte-compile', so watch out for false-positives!
294compile-main: compile-clean 299compile-main: leim compile-clean
295 @(cd $(lisp) && $(setwins); \ 300 @(cd $(lisp) && $(setwins); \
296 els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \ 301 els=`echo "$$wins " | sed -e 's|/\./|/|g' -e 's|/\. | |g' -e 's| |/*.el |g'`; \
297 for el in $$els; do \ 302 for el in $$els; do \
@@ -315,6 +320,10 @@ compile-clean:
315 fi \ 320 fi \
316 done 321 done
317 322
323.PHONY: leim
324leim:
325 cd ../leim && $(MAKE) $(MFLAGS) all EMACS="$(EMACS)"
326
318# Compile all Lisp files, but don't recompile those that are up to 327# Compile all Lisp files, but don't recompile those that are up to
319# date. Some .el files don't get compiled because they set the 328# date. Some .el files don't get compiled because they set the
320# local variable no-byte-compile. 329# local variable no-byte-compile.
diff --git a/lisp/international/ja-dic-cnv.el b/lisp/international/ja-dic-cnv.el
index 41a31004194..8fa8b6d8056 100644
--- a/lisp/international/ja-dic-cnv.el
+++ b/lisp/international/ja-dic-cnv.el
@@ -1,5 +1,7 @@
1;;; ja-dic-cnv.el --- convert a Japanese dictionary (SKK-JISYO.L) to Emacs Lisp 1;;; ja-dic-cnv.el --- convert a Japanese dictionary (SKK-JISYO.L) to Emacs Lisp
2 2
3;; Copyright (C) 2001-2013 Free Software Foundation, Inc.
4
3;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 5;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005, 2006, 2007, 2008, 2009, 2010, 2011 6;; 2005, 2006, 2007, 2008, 2009, 2010, 2011
5;; National Institute of Advanced Industrial Science and Technology (AIST) 7;; National Institute of Advanced Industrial Science and Technology (AIST)
@@ -342,15 +344,12 @@ The name of generated file is specified by the variable `ja-dic-filename'."
342 (with-current-buffer buf 344 (with-current-buffer buf
343 (erase-buffer) 345 (erase-buffer)
344 (buffer-disable-undo) 346 (buffer-disable-undo)
345 (insert ";;; ja-dic.el --- dictionary for Japanese input method" 347 (insert ";;; ja-dic.el --- dictionary for Japanese input method\n"
346 " -*-coding: utf-8; -*-\n"
347 ";;\tGenerated by the command `skkdic-convert'\n" 348 ";;\tGenerated by the command `skkdic-convert'\n"
348 ";;\tOriginal SKK dictionary file: " 349 ";;\tOriginal SKK dictionary file: "
349 (file-relative-name (expand-file-name filename) dirname) 350 (file-relative-name (expand-file-name filename) dirname)
350 "\n\n" 351 "\n\n"
351 ";; This file is part of GNU Emacs.\n\n" 352 ";; This file is part of GNU Emacs.\n\n"
352 ";;; Commentary:\n\n"
353 ";; Do byte-compile this file again after any modification.\n\n"
354 ";;; Start of the header of the original SKK dictionary.\n\n") 353 ";;; Start of the header of the original SKK dictionary.\n\n")
355 (set-buffer skkbuf) 354 (set-buffer skkbuf)
356 (goto-char 1) 355 (goto-char 1)
@@ -398,7 +397,13 @@ The name of generated file is specified by the variable `ja-dic-filename'."
398 ;; Postfix 397 ;; Postfix
399 (with-current-buffer buf 398 (with-current-buffer buf
400 (goto-char (point-max)) 399 (goto-char (point-max))
401 (insert ";;\n(provide 'ja-dic)\n\n;;; ja-dic.el ends here\n"))) 400 (insert ";;\n(provide 'ja-dic)\n\n"
401 ";; Local Variables:\n"
402 ";; version-control: never\n"
403 ";; no-update-autoloads: t\n"
404 ";; coding: utf-8\n"
405 ";; End:\n\n"
406 ";;; ja-dic.el ends here\n")))
402 407
403 ;; Save the working buffer. 408 ;; Save the working buffer.
404 (set-buffer buf) 409 (set-buffer buf)
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el
index bcad78d8ce0..a1ee69de12b 100644
--- a/lisp/international/titdic-cnv.el
+++ b/lisp/international/titdic-cnv.el
@@ -272,13 +272,11 @@ SPC, 6, 3, 4, or 7 specifying a tone (SPC:$(0?v(N(B, 6:$(0Dm(N(B, 3:$(0&9Vy
272 272
273 (princ ";; Quail package `") 273 (princ ";; Quail package `")
274 (princ package) 274 (princ package)
275 (princ (format "' -*- coding:%s -*-\n" coding-system-for-write)) 275 (princ "\n")
276 (princ ";; Generated by the command `titdic-convert'\n") 276 (princ ";; Generated by the command `titdic-convert'\n")
277 (princ ";;\tOriginal TIT dictionary file: ") 277 (princ ";;\tOriginal TIT dictionary file: ")
278 (princ (file-name-nondirectory filename)) 278 (princ (file-name-nondirectory filename))
279 (princ "\n\n;;; Comment:\n\n") 279 (princ "\n\n")
280 (princ ";; Byte-compile this file again after any modification.\n\n")
281 (princ ";;; Start of the header of original TIT dictionary.\n\n")
282 280
283 (while (not (eobp)) 281 (while (not (eobp))
284 (let ((ch (following-char)) 282 (let ((ch (following-char))
@@ -518,7 +516,13 @@ the generated Quail package is saved."
518 (widen) 516 (widen)
519 517
520 ;; Process the body part 518 ;; Process the body part
521 (tit-process-body)))))) 519 (tit-process-body)
520
521 (princ ";; Local Variables:\n")
522 (princ ";; version-control: never\n")
523 (princ ";; no-update-autoloads: t\n")
524 (princ (format ";; coding: %s\n" coding-system-for-write))
525 (princ ";; End:\n"))))))
522 526
523;;;###autoload 527;;;###autoload
524(defun batch-titdic-convert (&optional force) 528(defun batch-titdic-convert (&optional force)
@@ -1148,8 +1152,7 @@ the generated Quail package is saved."
1148 (setq coding-system-for-write 1152 (setq coding-system-for-write
1149 (coding-system-change-eol-conversion coding 'unix)) 1153 (coding-system-change-eol-conversion coding 'unix))
1150 (with-temp-file (expand-file-name quailfile dirname) 1154 (with-temp-file (expand-file-name quailfile dirname)
1151 (insert (format ";; Quail package `%s' -*- coding:%s -*-\n" 1155 (insert (format ";; Quail package `%s'\n" name))
1152 name coding))
1153 (insert ";; Generated by the command `miscdic-convert'\n") 1156 (insert ";; Generated by the command `miscdic-convert'\n")
1154 (insert ";; Source dictionary file: " dicfile "\n") 1157 (insert ";; Source dictionary file: " dicfile "\n")
1155 (insert ";; Copyright notice of the source file\n") 1158 (insert ";; Copyright notice of the source file\n")
@@ -1168,7 +1171,13 @@ the generated Quail package is saved."
1168 (coding-system-change-eol-conversion coding 'unix)) 1171 (coding-system-change-eol-conversion coding 'unix))
1169 (dicbuf (find-file-noselect filename))) 1172 (dicbuf (find-file-noselect filename)))
1170 (funcall converter dicbuf name title) 1173 (funcall converter dicbuf name title)
1171 (kill-buffer dicbuf))) 1174 (kill-buffer dicbuf))
1175 (insert ";; Local Variables:\n"
1176 ";; version-control: never\n"
1177 ";; no-update-autoloads: t\n"
1178 (format ";; coding: %s\n" coding)
1179 ";; End:\n\n"
1180 ";;; " quailfile " ends here\n"))
1172 (message "Converting %s to %s...done" dicfile quailfile)) 1181 (message "Converting %s to %s...done" dicfile quailfile))
1173 (setq tail (cdr tail))))) 1182 (setq tail (cdr tail)))))
1174 1183
diff --git a/leim/quail/.gitignore b/lisp/leim/quail/.gitignore
index c3f9e36f0db..c3f9e36f0db 100644
--- a/leim/quail/.gitignore
+++ b/lisp/leim/quail/.gitignore
diff --git a/leim/quail/arabic.el b/lisp/leim/quail/arabic.el
index 6b6e5122690..6b6e5122690 100644
--- a/leim/quail/arabic.el
+++ b/lisp/leim/quail/arabic.el
diff --git a/leim/quail/croatian.el b/lisp/leim/quail/croatian.el
index 0ca998d284c..0ca998d284c 100644
--- a/leim/quail/croatian.el
+++ b/lisp/leim/quail/croatian.el
diff --git a/leim/quail/cyril-jis.el b/lisp/leim/quail/cyril-jis.el
index ab98f9f6dc6..ab98f9f6dc6 100644
--- a/leim/quail/cyril-jis.el
+++ b/lisp/leim/quail/cyril-jis.el
diff --git a/leim/quail/cyrillic.el b/lisp/leim/quail/cyrillic.el
index f98cd695b07..f98cd695b07 100644
--- a/leim/quail/cyrillic.el
+++ b/lisp/leim/quail/cyrillic.el
diff --git a/leim/quail/czech.el b/lisp/leim/quail/czech.el
index 56778927083..56778927083 100644
--- a/leim/quail/czech.el
+++ b/lisp/leim/quail/czech.el
diff --git a/leim/quail/ethiopic.el b/lisp/leim/quail/ethiopic.el
index d99f649e5e7..d99f649e5e7 100644
--- a/leim/quail/ethiopic.el
+++ b/lisp/leim/quail/ethiopic.el
diff --git a/leim/quail/georgian.el b/lisp/leim/quail/georgian.el
index 7aa00c54cd7..7aa00c54cd7 100644
--- a/leim/quail/georgian.el
+++ b/lisp/leim/quail/georgian.el
diff --git a/leim/quail/greek.el b/lisp/leim/quail/greek.el
index 291592e4736..291592e4736 100644
--- a/leim/quail/greek.el
+++ b/lisp/leim/quail/greek.el
diff --git a/leim/quail/hangul.el b/lisp/leim/quail/hangul.el
index b50917af335..ba20d42ed8b 100644
--- a/leim/quail/hangul.el
+++ b/lisp/leim/quail/hangul.el
@@ -508,6 +508,7 @@ When a Korean input method is off, convert the following hangul character."
508(defvar hangul-input-method-help-text nil) 508(defvar hangul-input-method-help-text nil)
509(make-variable-buffer-local 'hangul-input-method-help-text) 509(make-variable-buffer-local 'hangul-input-method-help-text)
510 510
511;;;###autoload
511(defun hangul-input-method-activate (input-method func help-text &rest args) 512(defun hangul-input-method-activate (input-method func help-text &rest args)
512 "Activate Hangul input method INPUT-METHOD. 513 "Activate Hangul input method INPUT-METHOD.
513FUNC is a function to handle input key. 514FUNC is a function to handle input key.
@@ -542,4 +543,8 @@ HELP-TEXT is a text set in `hangul-input-method-help-text'."
542 543
543(provide 'hangul) 544(provide 'hangul)
544 545
546;; Local Variables:
547;; generated-autoload-load-name: "quail/hangul"
548;; End:
549
545;;; hangul.el ends here 550;;; hangul.el ends here
diff --git a/leim/quail/hanja-jis.el b/lisp/leim/quail/hanja-jis.el
index 2c7eebb8345..2c7eebb8345 100644
--- a/leim/quail/hanja-jis.el
+++ b/lisp/leim/quail/hanja-jis.el
diff --git a/leim/quail/hanja.el b/lisp/leim/quail/hanja.el
index 7b98161ddb5..7b98161ddb5 100644
--- a/leim/quail/hanja.el
+++ b/lisp/leim/quail/hanja.el
diff --git a/leim/quail/hanja3.el b/lisp/leim/quail/hanja3.el
index 788683d6a73..788683d6a73 100644
--- a/leim/quail/hanja3.el
+++ b/lisp/leim/quail/hanja3.el
diff --git a/leim/quail/hebrew.el b/lisp/leim/quail/hebrew.el
index fe06b27a922..fe06b27a922 100644
--- a/leim/quail/hebrew.el
+++ b/lisp/leim/quail/hebrew.el
diff --git a/leim/quail/indian.el b/lisp/leim/quail/indian.el
index d953a219104..d953a219104 100644
--- a/leim/quail/indian.el
+++ b/lisp/leim/quail/indian.el
diff --git a/leim/quail/ipa-praat.el b/lisp/leim/quail/ipa-praat.el
index 40b58aacf97..40b58aacf97 100644
--- a/leim/quail/ipa-praat.el
+++ b/lisp/leim/quail/ipa-praat.el
diff --git a/leim/quail/ipa.el b/lisp/leim/quail/ipa.el
index 8b921faa1e2..8b921faa1e2 100644
--- a/leim/quail/ipa.el
+++ b/lisp/leim/quail/ipa.el
diff --git a/leim/quail/japanese.el b/lisp/leim/quail/japanese.el
index 6dd19e9c60a..6dd19e9c60a 100644
--- a/leim/quail/japanese.el
+++ b/lisp/leim/quail/japanese.el
diff --git a/leim/quail/lao.el b/lisp/leim/quail/lao.el
index 52357afd8dd..52357afd8dd 100644
--- a/leim/quail/lao.el
+++ b/lisp/leim/quail/lao.el
diff --git a/leim/quail/latin-alt.el b/lisp/leim/quail/latin-alt.el
index 6841947524f..6841947524f 100644
--- a/leim/quail/latin-alt.el
+++ b/lisp/leim/quail/latin-alt.el
diff --git a/leim/quail/latin-ltx.el b/lisp/leim/quail/latin-ltx.el
index d76f59ebbce..d76f59ebbce 100644
--- a/leim/quail/latin-ltx.el
+++ b/lisp/leim/quail/latin-ltx.el
diff --git a/leim/quail/latin-post.el b/lisp/leim/quail/latin-post.el
index 7fa3d88e8c6..7fa3d88e8c6 100644
--- a/leim/quail/latin-post.el
+++ b/lisp/leim/quail/latin-post.el
diff --git a/leim/quail/latin-pre.el b/lisp/leim/quail/latin-pre.el
index c6085f34290..c6085f34290 100644
--- a/leim/quail/latin-pre.el
+++ b/lisp/leim/quail/latin-pre.el
diff --git a/leim/quail/lrt.el b/lisp/leim/quail/lrt.el
index ec88020493c..ec88020493c 100644
--- a/leim/quail/lrt.el
+++ b/lisp/leim/quail/lrt.el
diff --git a/leim/quail/persian.el b/lisp/leim/quail/persian.el
index 5eeb0e3d208..5eeb0e3d208 100644
--- a/leim/quail/persian.el
+++ b/lisp/leim/quail/persian.el
diff --git a/leim/quail/py-punct.el b/lisp/leim/quail/py-punct.el
index 3e537c4f043..3e537c4f043 100644
--- a/leim/quail/py-punct.el
+++ b/lisp/leim/quail/py-punct.el
diff --git a/leim/quail/pypunct-b5.el b/lisp/leim/quail/pypunct-b5.el
index 37c12659cc3..37c12659cc3 100644
--- a/leim/quail/pypunct-b5.el
+++ b/lisp/leim/quail/pypunct-b5.el
diff --git a/leim/quail/rfc1345.el b/lisp/leim/quail/rfc1345.el
index 3981b76eda8..3981b76eda8 100644
--- a/leim/quail/rfc1345.el
+++ b/lisp/leim/quail/rfc1345.el
diff --git a/leim/quail/sgml-input.el b/lisp/leim/quail/sgml-input.el
index 9545bb8b1aa..9545bb8b1aa 100644
--- a/leim/quail/sgml-input.el
+++ b/lisp/leim/quail/sgml-input.el
diff --git a/leim/quail/sisheng.el b/lisp/leim/quail/sisheng.el
index 2717ce50768..2717ce50768 100644
--- a/leim/quail/sisheng.el
+++ b/lisp/leim/quail/sisheng.el
diff --git a/leim/quail/slovak.el b/lisp/leim/quail/slovak.el
index 10d111421cc..10d111421cc 100644
--- a/leim/quail/slovak.el
+++ b/lisp/leim/quail/slovak.el
diff --git a/leim/quail/symbol-ksc.el b/lisp/leim/quail/symbol-ksc.el
index 5556173a420..5556173a420 100644
--- a/leim/quail/symbol-ksc.el
+++ b/lisp/leim/quail/symbol-ksc.el
diff --git a/leim/quail/thai.el b/lisp/leim/quail/thai.el
index 37171042643..37171042643 100644
--- a/leim/quail/thai.el
+++ b/lisp/leim/quail/thai.el
diff --git a/leim/quail/tibetan.el b/lisp/leim/quail/tibetan.el
index 774b4ad0d6b..774b4ad0d6b 100644
--- a/leim/quail/tibetan.el
+++ b/lisp/leim/quail/tibetan.el
diff --git a/leim/quail/uni-input.el b/lisp/leim/quail/uni-input.el
index aacae3d979a..0ec4f8581ef 100644
--- a/leim/quail/uni-input.el
+++ b/lisp/leim/quail/uni-input.el
@@ -85,6 +85,7 @@
85 (set-buffer-modified-p modified-p) 85 (set-buffer-modified-p modified-p)
86 (run-hooks 'input-method-after-insert-chunk-hook))))) 86 (run-hooks 'input-method-after-insert-chunk-hook)))))
87 87
88;;;###autoload
88(defun ucs-input-activate (&optional arg) 89(defun ucs-input-activate (&optional arg)
89 "Activate UCS input method. 90 "Activate UCS input method.
90With ARG, activate UCS input method if and only if ARG is positive. 91With ARG, activate UCS input method if and only if ARG is positive.
@@ -124,10 +125,14 @@ Input method: ucs (mode line indicator:U+)
124 125
125Input as Unicode: U<hex> or u<hex>, where <hex> is a four-digit hex number."))) 126Input as Unicode: U<hex> or u<hex>, where <hex> is a four-digit hex number.")))
126 127
127;; The file ../leim-ext.el contains the following call. 128;; The file leim-list.el contains the following call.
128;; (register-input-method "ucs" "UTF-8" 'ucs-input-activate "U+" 129;; (register-input-method "ucs" "UTF-8" 'ucs-input-activate "U+"
129;; "Unicode input as hex in the form Uxxxx.") 130;; "Unicode input as hex in the form Uxxxx.")
130 131
131(provide 'uni-input) 132(provide 'uni-input)
132 133
134;; Local Variables:
135;; generated-autoload-load-name: "quail/uni-input"
136;; End:
137
133;;; uni-input.el ends here 138;;; uni-input.el ends here
diff --git a/leim/quail/viqr.el b/lisp/leim/quail/viqr.el
index c5c1c940181..c5c1c940181 100644
--- a/leim/quail/viqr.el
+++ b/lisp/leim/quail/viqr.el
diff --git a/leim/quail/vntelex.el b/lisp/leim/quail/vntelex.el
index 7b7b4925bbb..7b7b4925bbb 100644
--- a/leim/quail/vntelex.el
+++ b/lisp/leim/quail/vntelex.el
diff --git a/leim/quail/vnvni.el b/lisp/leim/quail/vnvni.el
index b130962f8f3..b130962f8f3 100644
--- a/leim/quail/vnvni.el
+++ b/lisp/leim/quail/vnvni.el
diff --git a/leim/quail/welsh.el b/lisp/leim/quail/welsh.el
index fa72dc5c27e..fa72dc5c27e 100644
--- a/leim/quail/welsh.el
+++ b/lisp/leim/quail/welsh.el
diff --git a/lisp/loadup.el b/lisp/loadup.el
index fe4fe1fe571..dc284803c57 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -282,7 +282,7 @@
282 282
283;; This file doesn't exist when building a development version of Emacs 283;; This file doesn't exist when building a development version of Emacs
284;; from the repository. It is generated just after temacs is built. 284;; from the repository. It is generated just after temacs is built.
285(load "leim-list.el" t) 285(load "leim/leim-list.el" t)
286 286
287;; If you want additional libraries to be preloaded and their 287;; If you want additional libraries to be preloaded and their
288;; doc strings kept in the DOC file rather than in core, 288;; doc strings kept in the DOC file rather than in core,
diff --git a/lisp/startup.el b/lisp/startup.el
index 0b1c55b36a0..c7b171055eb 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -499,8 +499,6 @@ It is the default value of the variable `top-level'."
499 ;; available input methods. 499 ;; available input methods.
500 (let ((tail load-path) 500 (let ((tail load-path)
501 (lispdir (expand-file-name "../lisp" data-directory)) 501 (lispdir (expand-file-name "../lisp" data-directory))
502 ;; For out-of-tree builds, leim-list is generated in the build dir.
503 (leimdir (expand-file-name "../leim" doc-directory))
504 dir) 502 dir)
505 (while tail 503 (while tail
506 (setq dir (car tail)) 504 (setq dir (car tail))
@@ -508,12 +506,8 @@ It is the default value of the variable `top-level'."
508 (load (expand-file-name "subdirs.el") t t t)) 506 (load (expand-file-name "subdirs.el") t t t))
509 ;; Do not scan standard directories that won't contain a leim-list.el. 507 ;; Do not scan standard directories that won't contain a leim-list.el.
510 ;; http://lists.gnu.org/archive/html/emacs-devel/2009-10/msg00502.html 508 ;; http://lists.gnu.org/archive/html/emacs-devel/2009-10/msg00502.html
511 ;; Also skip leim/leim-list.el, since we preloaded that one. 509 ;; (Except the preloaded one in lisp/leim.)
512 (or (string-prefix-p lispdir dir) 510 (or (string-prefix-p lispdir dir)
513 ;; Not supposed to be subdirs.el in leim, but someone
514 ;; might have added one and be keeping their own leim-list
515 ;; files in subdirs of leim.
516 (string-equal leimdir dir)
517 (let ((default-directory dir)) 511 (let ((default-directory dir))
518 (load (expand-file-name "leim-list.el") t t t))) 512 (load (expand-file-name "leim-list.el") t t t)))
519 ;; We don't use a dolist loop and we put this "setq-cdr" command at 513 ;; We don't use a dolist loop and we put this "setq-cdr" command at
diff --git a/make-dist b/make-dist
index 707b6e2abc0..fc87ea7ec63 100755
--- a/make-dist
+++ b/make-dist
@@ -201,13 +201,11 @@ fi
201if [ $check = yes ]; then 201if [ $check = yes ]; then
202 ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \ 202 ls -1 lisp/[a-zA-Z]*.el lisp/[a-z]*/[a-zA-Z0-9]*.el \
203 lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ 203 lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \
204 lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el \ 204 lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.el > /tmp/el
205 leim/[a-z]*/[a-z]*.el > /tmp/el
206 205
207 ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \ 206 ls -1 lisp/[a-zA-Z]*.elc lisp/[a-z]*/[a-zA-Z0-9]*.elc \
208 lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc \ 207 lisp/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc \
209 lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc \ 208 lisp/[a-z]*/[a-z]*/[a-z]*/[a-zA-Z0-9]*.elc > /tmp/elc
210 leim/[a-z]*/[a-z]*.elc > /tmp/elc
211 209
212 ## Check for .elc files with no corresponding .el file. 210 ## Check for .elc files with no corresponding .el file.
213 sed 's/\.el$/.elc/' /tmp/el > /tmp/elelc 211 sed 's/\.el$/.elc/' /tmp/el > /tmp/elelc
@@ -262,7 +260,7 @@ if [ $update = yes ]; then
262 (cd leim && make leim-list.el EMACS="$EMACS") 260 (cd leim && make leim-list.el EMACS="$EMACS")
263 261
264 echo "Recompiling Lisp files" 262 echo "Recompiling Lisp files"
265 $EMACS -batch -f batch-byte-recompile-directory lisp leim 263 $EMACS -batch -f batch-byte-recompile-directory lisp
266fi # $update = yes 264fi # $update = yes
267 265
268echo "Creating staging directory: \`${tempparent}'" 266echo "Creating staging directory: \`${tempparent}'"
@@ -291,8 +289,7 @@ ln aclocal.m4 ${tempdir}
291 289
292echo "Creating subdirectories" 290echo "Creating subdirectories"
293for subdir in site-lisp \ 291for subdir in site-lisp \
294 leim leim/CXTERM-DIC leim/MISC-DIC \ 292 leim leim/CXTERM-DIC leim/MISC-DIC leim/SKK-DIC \
295 leim/SKK-DIC leim/ja-dic leim/quail \
296 build-aux build-aux/snippet \ 293 build-aux build-aux/snippet \
297 src src/bitmaps lib lib-src oldXMenu lwlib \ 294 src src/bitmaps lib lib-src oldXMenu lwlib \
298 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ 295 nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
@@ -340,16 +337,8 @@ echo "Making links to \`leim' and its subdirectories"
340 ln CXTERM-DIC/README CXTERM-DIC/*.tit ../${tempdir}/leim/CXTERM-DIC 337 ln CXTERM-DIC/README CXTERM-DIC/*.tit ../${tempdir}/leim/CXTERM-DIC
341 ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/leim/SKK-DIC 338 ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/leim/SKK-DIC
342 ln MISC-DIC/README MISC-DIC/*.* ../${tempdir}/leim/MISC-DIC 339 ln MISC-DIC/README MISC-DIC/*.* ../${tempdir}/leim/MISC-DIC
343 ln ja-dic/*.el ja-dic/*.elc ../${tempdir}/leim/ja-dic
344 ln Makefile.in ../${tempdir}/leim/Makefile.in 340 ln Makefile.in ../${tempdir}/leim/Makefile.in
345 ln leim-ext.el ../${tempdir}/leim/leim-ext.el 341 ln leim-ext.el ../${tempdir}/leim/leim-ext.el)
346 ## Lisp files that start with a capital (also 4Corner.el) are
347 ## generated from TIT dictionaries so we don't distribute them.
348 ln quail/[a-z]*.el quail/[a-z]*.elc ../${tempdir}/leim/quail
349 rm -f ../${tempdir}/leim/quail/quick-b5.*
350 rm -f ../${tempdir}/leim/quail/quick-cns.*
351 rm -f ../${tempdir}/leim/quail/tsang-b5.*
352 rm -f ../${tempdir}/leim/quail/tsang-cns.*)
353 342
354echo "Making links to \`build-aux'" 343echo "Making links to \`build-aux'"
355(cd build-aux 344(cd build-aux
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 61a84995bc6..3e9f7683b63 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,10 @@
12013-11-27 Glenn Morris <rgm@gnu.org>
2
3 * README.W32:
4 * addpm.c (env_vars):
5 * epaths.nt (PATH_LOADSEARCH, PATH_DUMPLOADSEARCH):
6 * paths.h (PATH_LOADSEARCH): No more leim directory.
7
12013-11-26 Glenn Morris <rgm@gnu.org> 82013-11-26 Glenn Morris <rgm@gnu.org>
2 9
3 * epaths.nt (PATH_DUMPLOADSEARCH): Add leim/. 10 * epaths.nt (PATH_DUMPLOADSEARCH): Add leim/.
diff --git a/nt/README.W32 b/nt/README.W32
index d81a308ae05..2b546428c6b 100644
--- a/nt/README.W32
+++ b/nt/README.W32
@@ -20,8 +20,8 @@ See the end of the file for license conditions.
20 20
21* Preliminaries 21* Preliminaries
22 22
23 Along with this file should be six subdirectories (bin, etc, info, 23 Along with this file should be five subdirectories (bin, etc, info,
24 lisp, leim, site-lisp). If you have downloaded the barebin 24 lisp, site-lisp). If you have downloaded the barebin
25 distribution, then it will contain only the bin directory and the 25 distribution, then it will contain only the bin directory and the
26 built in documentation in etc/DOC, the rest of the subdirectories 26 built in documentation in etc/DOC, the rest of the subdirectories
27 are in the src distribution, which the barebin distribution is 27 are in the src distribution, which the barebin distribution is
diff --git a/nt/addpm.c b/nt/addpm.c
index 48c77821c8c..6669109de43 100644
--- a/nt/addpm.c
+++ b/nt/addpm.c
@@ -82,7 +82,7 @@ env_vars[] =
82{ 82{
83#ifdef OLD_PATHS 83#ifdef OLD_PATHS
84 {"emacs_dir", NULL}, 84 {"emacs_dir", NULL},
85 {"EMACSLOADPATH", "%emacs_dir%/site-lisp;%emacs_dir%/../site-lisp;%emacs_dir%/lisp;%emacs_dir%/leim"}, 85 {"EMACSLOADPATH", "%emacs_dir%/site-lisp;%emacs_dir%/../site-lisp;%emacs_dir%/lisp"},
86 {"SHELL", "%emacs_dir%/bin/cmdproxy.exe"}, 86 {"SHELL", "%emacs_dir%/bin/cmdproxy.exe"},
87 {"EMACSDATA", "%emacs_dir%/etc"}, 87 {"EMACSDATA", "%emacs_dir%/etc"},
88 {"EMACSPATH", "%emacs_dir%/bin"}, 88 {"EMACSPATH", "%emacs_dir%/bin"},
diff --git a/nt/epaths.nt b/nt/epaths.nt
index 553d80c2e5e..033ba889b95 100644
--- a/nt/epaths.nt
+++ b/nt/epaths.nt
@@ -34,10 +34,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
34 load-path, which is the search path for the Lisp function "load". 34 load-path, which is the search path for the Lisp function "load".
35 Configure (using "make epaths-force") sets this to 35 Configure (using "make epaths-force") sets this to
36 ${standardlisppath}, which typically has a value like: 36 ${standardlisppath}, which typically has a value like:
37 <datadir>/emacs/VERSION/lisp:<datadir>/emacs/VERSION/leim 37 <datadir>/emacs/VERSION/lisp where datadir is eg /usr/local/share.
38 where datadir is eg /usr/local/share.
39*/ 38*/
40#define PATH_LOADSEARCH "%emacs_dir%/share/emacs/@VER@/lisp;%emacs_dir%/share/emacs/@VER@/leim" 39#define PATH_LOADSEARCH "%emacs_dir%/share/emacs/@VER@/lisp"
41 40
42/* Like PATH_LOADSEARCH, but contains the non-standard pieces. 41/* Like PATH_LOADSEARCH, but contains the non-standard pieces.
43 These are the site-lisp directories. Configure sets this to 42 These are the site-lisp directories. Configure sets this to
@@ -51,10 +50,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
51 50
52/* Like PATH_LOADSEARCH, but used only during the build process 51/* Like PATH_LOADSEARCH, but used only during the build process
53 when Emacs is dumping. Configure (using "make epaths-force-w32") sets 52 when Emacs is dumping. Configure (using "make epaths-force-w32") sets
54 this to $buildlisppath, which normally has the value: 53 this to $buildlisppath, which normally has the value: <srcdir>/lisp.
55 <srcdir>/lisp;<builddir>/leim.
56*/ 54*/
57#define PATH_DUMPLOADSEARCH "@SRC@/lisp;@BLD@/leim" 55#define PATH_DUMPLOADSEARCH "@SRC@/lisp"
58 56
59/* The extra search path for programs to invoke. This is appended to 57/* The extra search path for programs to invoke. This is appended to
60 whatever the PATH environment variable says to set the Lisp 58 whatever the PATH environment variable says to set the Lisp
diff --git a/nt/paths.h b/nt/paths.h
index e3fc3f1e8ab..e701cdd41ee 100644
--- a/nt/paths.h
+++ b/nt/paths.h
@@ -1,7 +1,6 @@
1/* paths.h file for MS Windows 1/* paths.h file for MS Windows
2 2
3Copyright (C) 1993, 1995, 1997, 1999, 2001-2013 Free Software 3Copyright (C) 1993, 1995, 1997, 1999, 2001-2013 Free Software Foundation, Inc.
4Foundation, Inc.
5 4
6This file is part of GNU Emacs. 5This file is part of GNU Emacs.
7 6
@@ -26,7 +25,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26/* The default search path for Lisp function "load". 25/* The default search path for Lisp function "load".
27 Together with PATH_SITELOADSEARCH, this sets load-path. */ 26 Together with PATH_SITELOADSEARCH, this sets load-path. */
28/* #define PATH_LOADSEARCH "/usr/local/lib/emacs/lisp" */ 27/* #define PATH_LOADSEARCH "/usr/local/lib/emacs/lisp" */
29#define PATH_LOADSEARCH "%emacs_dir%/lisp;%emacs_dir%/leim" 28#define PATH_LOADSEARCH "%emacs_dir%/lisp"
30 29
31/* Like PATH_LOADSEARCH, but contains the non-standard pieces. */ 30/* Like PATH_LOADSEARCH, but contains the non-standard pieces. */
32#define PATH_SITELOADSEARCH "%emacs_dir%/site-lisp;%emacs_dir%/../site-lisp" 31#define PATH_SITELOADSEARCH "%emacs_dir%/site-lisp;%emacs_dir%/../site-lisp"
diff --git a/src/ChangeLog b/src/ChangeLog
index d2dbc187da9..35f0926415c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12013-11-27 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (leimdir): Now in lisp source directory.
4 ($(leimdir)/leim-list.el): Just use ../leim .
5 * epaths.in (PATH_DUMPLOADSEARCH):
6 * lread.c (load_path_default):
7 * nsterm.m (ns_load_path): No more leim directory.
8
12013-11-26 Andreas Schwab <schwab@suse.de> 92013-11-26 Andreas Schwab <schwab@suse.de>
2 10
3 * .gdbinit (xgettype): Add cast. 11 * .gdbinit (xgettype): Add cast.
diff --git a/src/Makefile.in b/src/Makefile.in
index dd641e0eb19..bdc79677c86 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -52,7 +52,7 @@ lispsource = $(srcdir)/../lisp
52lib = ../lib 52lib = ../lib
53libsrc = ../lib-src 53libsrc = ../lib-src
54etc = ../etc 54etc = ../etc
55leimdir = ../leim 55leimdir = ${lispsource}/leim
56oldXMenudir = ../oldXMenu 56oldXMenudir = ../oldXMenu
57lwlibdir = ../lwlib 57lwlibdir = ../lwlib
58 58
@@ -415,7 +415,7 @@ all: emacs$(EXEEXT) $(OTHER_FILES)
415.PHONY: all 415.PHONY: all
416 416
417$(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT) 417$(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT)
418 cd $(leimdir) && $(MAKE) $(MFLAGS) leim-list.el EMACS="$(bootstrap_exe)" 418 cd ../leim && $(MAKE) $(MFLAGS) leim-list.el EMACS="$(bootstrap_exe)"
419 419
420## The dumped Emacs is as functional and more efficient than 420## The dumped Emacs is as functional and more efficient than
421## bootstrap-emacs, so we replace the latter with the former. 421## bootstrap-emacs, so we replace the latter with the former.
diff --git a/src/epaths.in b/src/epaths.in
index 02e755935c4..5bfc7158316 100644
--- a/src/epaths.in
+++ b/src/epaths.in
@@ -22,8 +22,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 load-path, which is the search path for the Lisp function "load". 22 load-path, which is the search path for the Lisp function "load".
23 Configure (using "make epaths-force") sets this to 23 Configure (using "make epaths-force") sets this to
24 ${standardlisppath}, which typically has a value like: 24 ${standardlisppath}, which typically has a value like:
25 <datadir>/emacs/VERSION/lisp:<datadir>/emacs/VERSION/leim 25 <datadir>/emacs/VERSION/lisp where datadir is eg /usr/local/share.
26 where datadir is eg /usr/local/share.
27*/ 26*/
28#define PATH_LOADSEARCH "/usr/local/share/emacs/lisp" 27#define PATH_LOADSEARCH "/usr/local/share/emacs/lisp"
29 28
@@ -41,10 +40,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
41 40
42/* Like PATH_LOADSEARCH, but used only during the build process 41/* Like PATH_LOADSEARCH, but used only during the build process
43 when Emacs is dumping. Configure (using "make epaths-force") sets 42 when Emacs is dumping. Configure (using "make epaths-force") sets
44 this to $buildlisppath, which normally has the value: 43 this to $buildlisppath, which normally has the value: <srcdir>/lisp.
45 <srcdir>/lisp:<builddir>/leim.
46*/ 44*/
47#define PATH_DUMPLOADSEARCH "../lisp:../leim" 45#define PATH_DUMPLOADSEARCH "../lisp"
48 46
49/* The extra search path for programs to invoke. This is appended to 47/* The extra search path for programs to invoke. This is appended to
50 whatever the PATH environment variable says to set the Lisp 48 whatever the PATH environment variable says to set the Lisp
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
4169static Lisp_Object 4167static Lisp_Object
4170load_path_default (bool changed) 4168load_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"),
diff --git a/src/nsterm.m b/src/nsterm.m
index aa9f2af35d8..d995bfa835b 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1,7 +1,7 @@
1/* NeXT/Open/GNUstep / MacOSX communication module. 1/* NeXT/Open/GNUstep / MacOSX communication module.
2 2
3Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2013 Free Software 3Copyright (C) 1989, 1993-1994, 2005-2006, 2008-2013
4Foundation, Inc. 4 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
7 7
@@ -445,8 +445,8 @@ ns_exec_path (void)
445const char * 445const char *
446ns_load_path (void) 446ns_load_path (void)
447/* If running as a self-contained app bundle, return as a path string 447/* If running as a self-contained app bundle, return as a path string
448 the filenames of the site-lisp, lisp and leim directories. 448 the filenames of the site-lisp and lisp directories.
449 Ie, site-lisp:lisp:leim. Otherwise, return nil. */ 449 Ie, site-lisp:lisp. Otherwise, return nil. */
450{ 450{
451 NSBundle *bundle = [NSBundle mainBundle]; 451 NSBundle *bundle = [NSBundle mainBundle];
452 NSString *resourceDir = [bundle resourcePath]; 452 NSString *resourceDir = [bundle resourcePath];
@@ -456,7 +456,7 @@ ns_load_path (void)
456 BOOL isDir; 456 BOOL isDir;
457 NSArray *paths = [resourceDir stringsByAppendingPaths: 457 NSArray *paths = [resourceDir stringsByAppendingPaths:
458 [NSArray arrayWithObjects: 458 [NSArray arrayWithObjects:
459 @"site-lisp", @"lisp", @"leim", nil]]; 459 @"site-lisp", @"lisp", nil]];
460 NSEnumerator *pathEnum = [paths objectEnumerator]; 460 NSEnumerator *pathEnum = [paths objectEnumerator];
461 resourcePaths = @""; 461 resourcePaths = @"";
462 462