# 2.5.3 窗口类型

窗口描述了 Emacs 终端是如何划分，以显示缓冲区的信息。每个窗口都关联一个缓冲区，而这个缓冲区的内容会在这个窗口中显示。从缓冲区的角度看，缓冲区可能和一个窗口相关联，也可以不和窗口关联，也可以和数个窗口相关联。

在某一时间可能会有多个窗口，但只会有一个被选择的窗口（selected window）。这个窗口通常是光标（cursor）所在的窗口。被选择的窗口通常都显示一个当前的缓冲区（current buffer），但并不总是这样。

屏幕里的窗口通常被框架分成一批一批；每个窗口都必须属于某个框架，而且只能属于一个框架。详情查阅框架类型。

窗口类型没读取语法。它们的打印表示采用哈希记号。其中指明了窗口的编号和被显示的缓冲区。窗口编号对于窗口而言是唯一的，以便区分。而缓冲区可能会经常在不同窗口间反复横跳。

```
(selected-window)
    => #<window 1 on objects.texi>
```

详情查阅窗口章节，以获取更多处理窗口的函数信息。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emacs-lisp.ivory.cafe/lisp-shu-ju-lei-xing/2.5-bian-ji-lei-xing/2.5.3-chuang-kou-lei-xing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
