all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Narendra Joshi <narendraj9@gmail.com>
To: John Mastro <john.b.mastro@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Clearning a keymap completely
Date: Mon, 5 Sep 2016 11:57:43 +0530	[thread overview]
Message-ID: <CAHCj4z6goaLrVpNH4H3vXDadEbfv01V-8kwGmtE+ahkfDHt_sA@mail.gmail.com> (raw)
In-Reply-To: <BA004109-F257-4CD0-9750-93A3E1679640@gmail.com>

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



  reply	other threads:[~2016-09-05  6:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-04 21:40 Clearning a keymap completely Narendra Joshi
2016-09-04 22:27 ` Søren Pilgård
2016-09-05  3:54 ` Yuri Khan
2016-09-05  4:03 ` John Mastro
2016-09-05  6:27   ` Narendra Joshi [this message]
2016-09-05  7:27 ` Marcin Borkowski
2016-09-06 12:53 ` Stefan Monnier
     [not found] <mailman.1893.1473362103.22741.help-gnu-emacs@gnu.org>
2016-09-09  8:41 ` Ralf Fassel
2016-09-09  9:04 ` Joost Kremers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHCj4z6goaLrVpNH4H3vXDadEbfv01V-8kwGmtE+ahkfDHt_sA@mail.gmail.com \
    --to=narendraj9@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=john.b.mastro@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.