[Top][All Lists]

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

Re: [O] Buffer is read-only: #<buffer *SUMO*>

From: Moritz Ulrich
Subject: Re: [O] Buffer is read-only: #<buffer *SUMO*>
Date: Mon, 17 Sep 2012 09:02:05 +0200
User-agent: mu4e 0.9.9-dev6; emacs 24.2.1

Aaron Ecay writes:

> OK, I’ve tracked this down.  I added a function to
> ‘org-agenda-finalize-hook’ which makes modifications to the agenda
> buffer (viz. removing the 'mouse-highlight text properties).  At line
> 3441 of org-agenda.el, in the ‘org-agenda-finalize’ function, this hook
> is run outside of any (let ((inhibit-read-only t)) ...).  This gives the
> error.

I use the same hook.

> Only some types of agenda buffers are set to be read-only –
> e.g. ‘org-todo-list’ sets read-only at l. 4418 of org-agenda.el.  I
> think ‘org-agenda-finalize-hook’ should be run with inhibit-read-only
> bound to t, to let the hook modify the agenda buffer in any case.  But
> otherwise, it should be added to the hook’s documentation that any
> changes to the agenda buffer could be turned into an error by a
> read-only setting.

Yup, I agree. For me, it looks like a documentation issue. For my part,
I'll just modify the function in the hook to check if the buffer is

Moritz Ulrich

Moritz Ulrich

Attachment: pgpy6GmuJTNqX.pgp
Description: PGP signature

reply via email to

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