所以我在 emacs 中工作,突然, slime-repl sbcl 说文本是只读的。嗯,这很好,因为现在我无法在其中输入任何内容。我该如何修复?
“缓冲区是只读的”可以通过以下方式解决C-x C-q
但正如德鲁和菲尔斯所说,
“文本是只读的”是非常不同的——它的意思是
缓冲区的某些部分具有只读属性。
尝试从只读部分移开,例如移至缓冲区的末尾。
Emacs Lisp 手册 > elisp.info > 文本 > 文本属性 > 特殊属性
Since changing properties counts as modifying the buffer, it is not
possible to remove a `read-only' property unless you know the
special trick: bind `inhibit-read-only' to a non-`nil' value and
then remove the property. *Note Read Only Buffers::.
因此要擦除整个缓冲区,无论:
M-: (let ((inhibit-read-only t)) (erase-buffer)) RET
或删除所有属性:
(let ((inhibit-read-only t)) (set-text-properties (point-min) (point-max) ()))
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)