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

Previous Next

Package: emacs;

Reported by: Corwin Brust <corwin <at> bru.st>

Date: Wed, 7 Oct 2020 11:35:02 UTC

Severity: minor

Tags: notabug

Found in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 43844 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Corwin Brust <corwin <at> bru.st>
Cc: 43844 <at> debbugs.gnu.org
Subject: Re: bug#43844: 27.1; Mouse-3 avoid "Buffer is read-only" *patch*
Date: Wed, 07 Oct 2020 11:14:39 -0400
Corwin Brust <corwin <at> 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.




This bug report was last modified 4 years and 109 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.