Rudi Gaelzer wrote:
Can I do that with lyx 1.4.3? How? When I enter "buffer-readonly-toggle"
on the minibuffer, I got an "Unknown action"...
In minibuffer tab is your friend. :-)
buffer-toggle-read-only
That works. The syntax is slightly different from what I used.
Thanks.
And how can I include a "Toggle Read Only" option in the Edit menu (or as an
icon on the toolbar)?
(Note: I have not tested the following.) I think you can edit
.../Resources/ui/stdmenus.ui and add a new Item to the edit menu,
something like
Item "Toggle read-only|Q" "buffer-toggle-read-only"
(perhaps changing Q to a more salubrious hot key, or omitting it). I
would save the hacked file in the ui subfolder under your home
directory, so that it would survive reinstallations and upgrades.
On the other hand, the path of least resistance might be simply to use
File->New from template... to open documents you don't want to modify.
The resulting file is writable, but it gets a default name (e.g.
newfile1.lyx), so inadvertently saving it will at worst clutter your
drive a bit.
/Paul