[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 <john.b.mastro@gmail.com> wrote:
>> Narendra Joshi <narendraj9@gmail.com> 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
- Clearning a keymap completely, Narendra Joshi, 2016/09/04
- Re: Clearning a keymap completely, John Mastro, 2016/09/05
- Re: Clearning a keymap completely,
Narendra Joshi <=
- Re: Clearning a keymap completely, Marcin Borkowski, 2016/09/05
- Re: Clearning a keymap completely, Yuri Khan, 2016/09/05
- Re: Clearning a keymap completely, Søren Pilgård, 2016/09/05
- Re: Clearning a keymap completely, Stefan Monnier, 2016/09/06