用于对缓冲区中的文件进行写(取消)保护的 Emacs 快捷键
有谁知道对缓冲区中的文件进行写保护和取消保护的 Emacs 快捷键是什么?
Does anyone know what are the Emacs shortcut keys to write-protect the file in the buffer, and unprotect it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Cx Cq
调用toggle-read-only
(记录在此处)。此状态可防止对缓冲区进行修改,并且缓冲区无法写入与其关联的文件(如果有),但它不会更改操作系统级别的可写性(例如,其他进程仍然能够写入底层文件。C-x C-q
callstoggle-read-only
(documented here). This state prevents that modifications are made to the buffer and the buffer cannot be written to the file it is associated with (if any), but it will not change the writability on the OS level (e.g. other processes will still be able to write to the underlying file.