C-x C-p 和 C-x h 的区别

新人求教!

在看 Emacs 官方手册的时候我发现两个命令对我有同样的效果。

C-x h runs the command mark-whole-buffer (found in global-map), which
is an interactive native-comp-function in ‘simple.el’.

以及

C-x C-p runs the command mark-page (found in global-map), which is an
interactive native-comp-function in ‘page.el’.

都是选中缓冲区里的所有内容。而在我的理解中,mark-page 应该选中当前窗格里显示的内容才对。

是我理解不对吗?还是真的有两个命令做同样的事? :face_with_spiral_eyes:

page 不是窗口里显示的内容,而是用分页符号分开的内容。分页符号一般是 ^L ,但是也可以自己定义 page-delimiter 变量

4 个赞

补充个链接:Pages (GNU Emacs Manual)