bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43844: 27.1; Mouse-3 avoid "Buffer is read-only" *patch*


From: Noam Postavsky
Subject: bug#43844: 27.1; Mouse-3 avoid "Buffer is read-only" *patch*
Date: Wed, 07 Oct 2020 11:14:39 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt)

Corwin Brust <corwin@bru.st> writes:

> In Dired, ERC, and, I assume, any read-only buffer the default behavior of
> mouse-3 causes errors (E.g. "kill-region: Buffer is read-only: #<buffer
> *Messages*>").

I think you just need to set the kill-read-only-ok option.

    kill-read-only-ok is a variable defined in ‘simple.el’.
    Its value is nil

    Documentation:
    Non-nil means don’t signal an error for killing read-only text.

> Unfortunately, it seems that ERC has some other means of causing its
> buffers to be rendered read-only that doesn't affect this var, thus
> the special-case logic.

I'm guessing ERC marks only some of text as read-only via text
properties.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]