Read-only src buffers
commitcab9fefbf97f37bac5f59e9980584b22dd8fb219
authorDan Davison <davison@stats.ox.ac.uk>
Sat, 5 Jun 2010 11:39:48 +0000 (5 12:39 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sat, 5 Jun 2010 12:31:35 +0000 (5 14:31 +0200)
tree0c9d4a771f9a527e6e73eed6a137b17996fc4a4a
parentf70956ff5ac3ea4059273fc0a9a42b3032dff5aa
Read-only src buffers

Carsten Dominik <dominik@uva.nl> writes:

> Hi Dan,
>
> after a long time, I tried to edit a fixed width region today.
> So I entered
>
>  : a
>  : b
>  : c
>
> and pressed "C-c '" in there.  The edit buffer came up in
> read-only mode, which should not be so.
>
> Also, when I do "C-c '" in an empty line, it used to be the case
> that I get an empty artist buffer which I can then edit.  Also this
> buffer comes up as read-only.
>
> I suspect that this has to do with the changes you made for read-only
> view buffers.  Before I dive into this issue myself, maybe it will be
> much
> easier if you do this?

Hi Carsten,

You're right that it dates from then. Here's the fix I suggest. I've
tested that this results in writable fixed-width edit buffers, writable
src edit buffers, and non-writable babel preview buffers.

Dan

--8<---------------cut here---------------start------------->8---
commit ed4eb9d1502cfdb51b5255e7f5ffcf74b4ffc7e3
Author: Dan Davison <davison@stats.ox.ac.uk>
Date:   Sat Jun 5 12:35:19 2010 +0100

    * lisp/org-src.el: Prevent fixed-width region edit buffers
    being created as read-only.

Modified lisp/org-src.el
lisp/org-src.el