[Top][All Lists]

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

Re: Controling modifications and cuting invisible ?

From: Oliver Scholz
Subject: Re: Controling modifications and cuting invisible ?
Date: Fri, 23 May 2003 13:40:15 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt)

François Fleuret <address@hidden> writes:
> My problem is that I want to remove *all* keys which can alter the
> buffer, while keeping usual keys (of course) to switch buffer, move
> windows, etc.

I'd say the usual way to do this is to make the buffer read-only:

(setq buffer-read-only t)

Then commands or functions that are supposed to modify the content of
the buffer can do this by binding `inhibit-read-only' temporarily to

(let ((inhibit-read-only t))

4 Prairial an 211 de la Révolution
Liberté, Egalité, Fraternité!

reply via email to

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