抄送 Ocaml 顶层并在 Emacs 下设置区域
我在某处看到过 Cc Cr 的描述是“评估整个选定区域”或 tuareg-eval-region。但是当我在 Emacs
下尝试它时,似乎在设置区域后,并将光标放在该区域末尾后的几个命令中,按 Cc Cr
计算直到位置光标的。
那么谁能告诉我 Cc Cr
是否评估“直到光标”或我们之前设置的区域?
顺便说一句,我不确定我是否正确设置了区域。一种方法是使用SHIFT +方向箭头
;另一种方法是使用CTRL + space
,但我不知道标记设置
,标记激活
和标记清除<之间的区别/代码>。谁能告诉我选择地区的正确方法?
I have seen somewhere the description of C-c C-r
is "evaluate the whole selected region" or tuareg-eval-region
. But when I try it under Emacs
, it seems that after setting a region, and placing the cursor several commands after the end of the region, pressing C-c C-r
evaluates until the position of the cursor.
So could anyone tell me if C-c C-r
evaluates "until the cursor" or a region that we set before?
By the way, I am not sure I have set the region correctly. One way is to use SHIFT + direction arrow
; another way is to use CTRL + space
, but i do not know the difference between Mark set
, Mark activated
and Mark cleared
. Could anyone tell me the right way to select a region?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用 Emacs 的说法,区域是标记和点(即光标)之间的区域。因此,当您移动光标时,您会移动区域的一个边界,而另一边界则保留在当前标记所在的位置。
C-SPC
是设置标记的传统方式。如今,Shift + 光标键也应该可以使用。请参阅Emacs 手册的相关部分有关区域如何运作的详细信息。In Emacs parlance, the region is the area between the mark and point (i.e., the cursor). Thus, when you move the cursor, you move one boundary of the region while the other remains wherever the current mark is.
C-SPC
is the traditional way of setting the mark. Nowadays, Shift + cursor keys should work as well. See the relevant section of the Emacs manual for details on how regions work.