hns - 日記自動生成システム - Version 2.19.9

先月 2012年04月 来月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2012年04月13日(金) 旧暦 [n年日記] [更新:"2012/04/14 00:52:00"]

#1 [pkgsrc] automake-1.11/elisp-comp を読む

/usr/pkg/share/automake-1.11/elisp-comp の中に次のような部分がある
 74 mkdir $tempdir
 75 cp "$@" $tempdir
 76 
 77 (
 78   cd $tempdir
 79   echo "(setq load-path (cons nil load-path))" > script
 80   $EMACS -batch -q -l script -f batch-byte-compile *.el || exit $?
 81   mv *.elc ..
 82 ) || exit $?
この中の、 79 行目 の次の部分が、script という名前の譜に書かれて
(setq load-path (cons nil load-path))
80 行目の -l script で、 この一行 だけを読んで、 batch-byte-compile 関数が呼ばれる。 さて、この
nil の意味は ? (「load-path の先頭に nil を追加する」意味は )
と思って、分らない。時々、この nil の代りに "../" と書く必要がある場合があって、(と言っても、それは僕の何かの勘違いだとは思うが)
何かな、と思っている。 ... と思ったら nil の件は、
M-x describe-variable RET load-path RET
に一応答えが書いてあった。
Documentation:
*List of directories to search for files to load. Each element is a string (directory name) or nil (try default directory). Initialized based on EMACSLOADPATH environment variable, if any, otherwise to default specified by file `epaths.h' when Emacs was built.
一応というのは default とは何か分らないので。
さて、 "../" と書く必要がある時とは、上で
 78   cd $tempdir
しているが、その cd する前の一つ上にある他の *.el も読みたい時である。
もし一つ上にある *.el を読む必要がある時でも、既に同じものが設置済の場合には、 site-lisp にも同じ *.el があるので、そちらが利用されて、見かけ上 nil だけでも問題がない。
とここまで書いて、本来は "../" を加えるべきだと思う。 (それだけでは足りない場合もあると思うけれど)
仮に bug report を出すとして、どこに出すのかなぁ。 少なくとも、git repository はここで見られること分った。

きょうの patch (wip/tc-svn はこの patch が必要、というのが今日の感触)
同じことを書いている人がいた。 (2003 年ですよ)修正が入っている が僕がここに書いている部分は消えている気がする。
何か間違えているかなぁ。何故他では問題が起きないのだろう。 .. automake を走らせるのは少数派だからかな。


Comments related this article

Re: automake-1.11/elisp-comp を読む by Makoto Fujiwara    2012/04/14 09:16
The same thing is here http://osdir.com/ml/sysutils.automake.patches/2003-01/msg...


最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)