前已略述 info 的使用法,现在就更进一步详述之。在 EMACS 的线上辅助说明功能中,info 的内容可说是最为丰富的。因为, 任何线上辅助说明的文件都可在 info 模式中找到。因为,info 就是用来放置整个 EMACS 手册。 ncULinux联盟 info 对於 EMACS 文件的安排是采取树状的结构, 所以是以根部(root)为出发点。info 执行 info program, 使用 info program 的方法有二: info 对於档案的编排,是以 Hypertext 的方法来处理所有的 相关文件。当键入 ``Ctrl-h i'' 或 ``ESC-x info'' 後,会先进入 info 树状(tree)结构的最顶端。如下就是进入 info 时的第一个画面: -*- Text -*- This is the file .../info/dir, which contains the topmost node of the Info hierarchy. The first time you invoke Info you start off looking at that node, which is (dir)Top. ? File: dir Node: Top This is the top of the INFO tree This (the Directory node) gives a menu of major topics. Typing "d" returns here, "q" exits, "?" lists all INFO commands, "h" gives a primer for first-timers, "mTexinfo" visits Texinfo topic, etc. --- PLEASE ADD DOCUMENTATION TO THIS TREE. (See INFO topic first.) --- * Menu: The list of major topics begins on the next line. * Info: (info). Documentation browsing system. * Emacs: (emacs). The extensible self-documenting text editor. * VIP: (vip). A VI-emulation for Emacs. * Texinfo: (texi.info). With one source file, make either a printed manual (through TeX) or an Info file (through texinfo). Full documentation in this menu item. * Termcap: (termcap). The termcap library, which enables application programs to handle all types of character-display terminals. * Regex: (regex). The GNU regular expression library. * Cpp: (cpp.info). C pre-processor. * Gcc: (gcc.info). GNU C Compiler --- an ANSI C Compiler developed by FSF. * Gzip: (gzip.info). GNU zip program --- an compress package developed by FSF. * Ispell: (ispell.info). A spelling checker. * Libg++: (libg++.info). G++ libraries. * Gmake: (make.info). A make utility developed by FSF. * Bison: (bison.info). GNU Yacc. * Gawk: (gawk.info). GNU awk --- pattern scanning and processing language. * Gdb: (gdb.info). GNU debugger. * Info-stnd: (info-stnd.info). Stand along GNU info. * Makeinfo: (makeinfo.info). Program for producing *.info file from *.texi file. * Graphics: (graphics.info). A set programs for producing plot files and display them on Tektronix 4010, PostScript, and X window system compatible output devices. * m4: (m4.info). m4 is macro processor, in the sense that it copies its input to the output, expending macros as it goes. GNU m4 is mostly compatible with system V, Release 3 version. * Hyperbole: (hypb.info). GNU Emacs-based everyday information management system. Use {C-h h d d} for a demo. Include Smart Key context-sensitive mouse or keyboard key support, a powerful rolodex, and extensible hypertext facilities including hyper-links in mail and news messages. * Standards Coding Style:(standards.info). GNU Coding Style. 此时,出现在萤幕的第一列是标头(header),它包含此结点 (node)的基本讯息。表头所提供的讯息,最多可有五件事情: - 结点所在的档案(File)
- 结点的名称(node)
- 此结点的下一个结点(Next)
- 此结点的上一个结点(Prev)
- 此结点的上一层结点(up)
此时的画面,只显示了二件事情,是因为此画面为 info 树状结构 的最上层。 ncULinux联盟 在表头之下的资讯,是用来告知如何用 info 。它提供了五件事情,现一一说明。 ncULinux联盟 在这五个指令之下的是,此结点可以使用的 Menu Item。 使用者可以直接至所要参考的 Menu 之下,键入 ``RET''。此时, info 会将此 Menu 的相关文件显示在萤幕上。 使用 info 除了以上的指令之外,还有几个必需知道的指令。 现介绍如下: ncULinux联盟
|