1 一个屏幕的组织

在图形显示屏上,例如在使用 X 窗口系统的 GNU/Linux 上,Emacs 会占用图形窗口。 系统上,Emacs 占用一个图形窗口。 在文本终端上、 Emacs 占用整个终端屏幕。 我们将使用 我们将使用 窗口(frame) 来表示图形窗口或终端屏幕被 Emacs 占用的图形窗口或终端屏幕。 Emacs 在这两种窗口上的行为非常相似。 它 开始时通常只有一个窗口,但您可以根据需要创建额外的 窗口 (see Frames and Graphical Displays).

每个窗口由几个不同的区域组成。 在 窗口顶部有一个 菜单栏,可以通过一系列菜单访问命令。 一系列菜单来访问命令。 在图形显示屏上,菜单栏的正下方 是 工具栏,这是一排图标,点击后可执行编辑命令。 点击这些图标即可执行编辑命令。窗口的最下方是 回显区,这里显示信息,当 Emacs 要求输入信息时,你可以在这里输入信息。

窗口的主要区域在工具栏(如果有的话)的下方和回声区域的 回显区的上方,称为 窗格。 因此在本手册中 本手册中,我们将在此意义上使用 "窗格 "一词。 图形 窗口 "一词的含义不同。 但如上所述,我们将这些图形窗格称为 称为 "窗口"。

Emacs 窗格是 缓冲区–即您正在编辑或查看的文本或其他图像–显示的地方。显示的地方。 在图形 窗格的一侧有一个 滚动条,可以用来滚动缓冲区。可用于滚动缓冲区。 窗格的最后一行 是 状态栏。 它显示缓冲区中的各种信息 缓冲区中正在进行的操作,例如是否有未保存的更改、正在使用的编辑模式、是否有已保存的更改。正在使用的编辑状态栏、当前行号等。

When you start Emacs, there is normally only one window in the frame. However, you can subdivide this window horizontally or vertically to create multiple windows, each of which can independently display a buffer (see Multiple Windows).

At any time, one window is the selected window. On a graphical display, the selected window shows a more prominent cursor (usually solid and blinking); other windows show a less prominent cursor (usually a hollow box). On a text terminal, there is only one cursor, which is shown in the selected window. The buffer displayed in the selected window is called the current buffer, and it is where editing happens. Most Emacs commands implicitly apply to the current buffer; the text displayed in unselected windows is mostly visible for reference. If you use multiple frames on a graphical display, selecting a particular frame selects a window in that frame.