【问题标题】:How to include / copy over the `src` directory when building Emacs构建 Emacs 时如何包含/复制“src”目录
【发布时间】:2014-01-20 18:58:18
【问题描述】:

我希望能够将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

【问题讨论】:

    标签: emacs


    【解决方案1】:

    这是手动操作的方法:

    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"))
    

    【讨论】:

      猜你喜欢
      • 2016-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-07
      • 1970-01-01
      • 2021-11-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多