GNU Emacs源代码是如何组织的?


Answers:


44

作为GNU官方项目,它严格遵守GNU编码标准和目录布局。就是说,如果您正在探索源代码树,则与大多数项目一样,我将从根目录中的README文件开始。

从该文件开始,有几个子目录:

`src'       holds the C code for Emacs (the Emacs Lisp interpreter and
            its primitives, the redisplay code, and some basic editing
            functions).
`lisp'      holds the Emacs Lisp code for Emacs (almost everything else).
`leim'      holds the library of Emacs input methods, Lisp code and
            auxiliary data files required to type international characters
            which can't be directly produced by your keyboard.
`lib-src'   holds the source code for some utility programs for use by or
            with Emacs, like movemail and etags.
`etc'       holds miscellaneous architecture-independent data files
            Emacs uses, like the tutorial text and the Zippy, the Pinhead
            quote database. The contents of the `lisp', `leim', `info',
            `man', `lispref', and `lispintro' subdirectories are
            architecture-independent too.
`info'      holds the Info documentation tree for Emacs.
`doc/emacs' holds the source code for the Emacs Manual.  If you modify the
            manual sources, you will need the `makeinfo' program to produce
            an updated manual. `makeinfo' is part of the GNU Texinfo
            package; you need version 4.6 or later of Texinfo.
`doc/lispref'   holds the source code for the Emacs Lisp reference manual.
`doc/lispintro' holds the source code for the Introduction to Programming
                in Emacs Lisp manual.
`msdos'     holds configuration files for compiling Emacs under MS-DOS.
`nt'        holds various command files and documentation files that pertain
            to building and running Emacs on Windows 9X/ME/NT/2000/XP.
`test'      holds tests for various aspects of Emacs's functionality.

7
另外,请参阅Wiki emacswiki.org/emacs/HackerGuide
knarf 2014年

1
@knarf:至少可以解释一下我每次看C代码时都会看到的
令人讨厌的

1
谢谢,是否存在指向我们可以包含在此答案中的自述文件的最新版本(可能是master分支的HEAD ref或与最新稳定版本相关的提示)的链接?
阿梅利奥·瓦兹奎兹·雷纳

2
@ user815423426:现在git迁移已完成,我已经链接到该页面了。
stsquad 2014年

1
Emacs仍然可以编译用户MSDOS !?
Edgar Aroutiounian 2014年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.