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

> 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


  parent reply	other threads:[~2016-09-05  4:03 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 [this message]
2016-09-05  6:27   ` Narendra Joshi
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=BA004109-F257-4CD0-9750-93A3E1679640@gmail.com \
    --to=john.b.mastro@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=narendraj9@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.