在构建Emacs时,如何包含/复制`src`目录 [英] How to include / copy over the `src` directory when building Emacs
本文介绍了在构建Emacs时,如何包含/复制`src`目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望能够使用 find-function
和 find-variable
code> src 目录,我想知道是否有可能在构建时将其打包到应用程序中,而不是在Emacs构建已经发生之后手动处理。我正在使用 OSX
建立以下命令行条目:
I would like to be able to use find-function
and find-variable
for definitions found within the src
directory and am wondering whether it is possible to have this packaged into the application when building, rather than coping this over manually after the Emacs build has already occurred. I'm building on OSX
with the following command-line entries:
/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
推荐答案
这是如何手动进行的:
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"))
这篇关于在构建Emacs时,如何包含/复制`src`目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文