help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Clearning a keymap completely


From: Yuri Khan
Subject: Re: Clearning a keymap completely
Date: Mon, 5 Sep 2016 09:54:16 +0600

On Mon, Sep 5, 2016 at 4:40 AM, Narendra Joshi <address@hidden> wrote:

> I need to remove all the self-insert commands in a buffer. I want to
> be able to insert text into the buffer through emacs lisp but don't
> want the user to be able to insert text. How can this be done?

Easiest is to set (read-only-mode 1). (insert "foo") still works but
self-insert-command tells the user “Buffer is read-only”.



reply via email to

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