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: John Mastro
Subject: Re: Clearning a keymap completely
Date: Sun, 4 Sep 2016 21:03:21 -0700

> 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?

Just make the buffer read only, and then let-bind inhibit-read-only
to t where necessary in your Lisp. 

https://www.gnu.org/software/emacs/manual/html_node/elisp/Read-Only-Buffers.html

Hope that helps

        John


reply via email to

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