如何在构建Emacs时包含/复制`src`目录

时间:2014-01-20 18:58:19

标签: emacs

我希望能够将find-functionfind-variable用于src目录中的定义,并且想知道是否可以在构建时将其打包到应用程序中,而不是在Emacs构建已经发生之后手动复制它。我正在使用以下命令行条目构建OSX

/macports/bin/bzr branch --stacked bzr://bzr.savannah.gnu.org/emacs/trunk emacs-trunk

;; cd over to the new emacs-trunk directory that was just downloaded.

/macports/bin/bzr pull

./autogen.sh

./configure --with-ns

make bootstrap

make && make install

;; the new Emacs build is waiting for you in .../emacs-trunk/nextstep

1 个答案:

答案 0 :(得分:0)

以下是手动操作方法:

M-x eshell

/macports/bin/bzr branch --stacked bzr://bzr.savannah.gnu.org/emacs/trunk emacs-trunk

;; cd over to the newly downloaded '.../emacs-trunk' main directory

/macports/bin/bzr pull

./autogen.sh

./configure --with-ns

make bootstrap

make && make install

cp -r /Users/HOME/Desktop/emacs-trunk/src /Users/HOME/Desktop/emacs-trunk/nextstep/Emacs.app/Contents/Resources/

;; create:  '.../lisp/site-start.el' with the following contents:

(load-file "/Users/HOME/.0.data/.0.emacs/init.el")

;; adjust the following c-source variable as needed:

(setq find-function-C-source-directory (concat root.d "Emacs_01_19_2014.app/Contents/Resources/src"))