用于对缓冲区中的文件进行写(取消)保护的 Emacs 快捷键

发布于 2024-12-27 14:58:19 字数 44 浏览 5 评论 0原文

有谁知道对缓冲区中的文件进行写保护和取消保护的 Emacs 快捷键是什么?

Does anyone know what are the Emacs shortcut keys to write-protect the file in the buffer, and unprotect it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥有 2025-01-03 14:58:19

Cx Cq 调用 toggle-read-only (记录在此处)。此状态可防止对缓冲区进行修改,并且缓冲区无法写入与其关联的文件(如果有),但它不会更改操作系统级别的可写性(例如,其他进程仍然能够写入底层文件。

C-x C-q calls toggle-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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文