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: Narendra Joshi
Subject: Re: Clearning a keymap completely
Date: Mon, 5 Sep 2016 11:57:43 +0530

Thanks! Let binding inhibit-read-only worked.

On Mon, Sep 5, 2016 at 9:33 AM, John Mastro <address@hidden> wrote:
>> 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]