[Top][All Lists]

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

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

From: Aaron Ecay
Subject: Re: [O] Buffer is read-only: #<buffer *SUMO*>
Date: Mon, 17 Sep 2012 00:36:09 -0400
User-agent: Notmuch/0.14+25~g0721c93 (http://notmuchmail.org) Emacs/ (x86_64-unknown-linux-gnu)

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

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.

Aaron Ecay

reply via email to

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