From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: Clearning a keymap completely Date: Sun, 4 Sep 2016 21:03:21 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473048249 25772 195.159.176.226 (5 Sep 2016 04:04:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Sep 2016 04:04:09 +0000 (UTC) Cc: Narendra Joshi To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 05 06:04:05 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgl8d-000652-Np for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 06:04:03 +0200 Original-Received: from localhost ([::1]:52149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgl8b-0005Af-J9 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 00:04:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgl84-00058f-Ax for help-gnu-emacs@gnu.org; Mon, 05 Sep 2016 00:03:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgl80-0001Ca-8F for help-gnu-emacs@gnu.org; Mon, 05 Sep 2016 00:03:27 -0400 Original-Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:34704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgl80-0001CO-1G for help-gnu-emacs@gnu.org; Mon, 05 Sep 2016 00:03:24 -0400 Original-Received: by mail-pa0-x22f.google.com with SMTP id to9so19610712pac.1 for ; Sun, 04 Sep 2016 21:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=uz/Pml3J1rcB8gTMoJJWtseewfuC2KPfwgoluXI92qg=; b=ndfSxh4vrYAru08Gb1j1cvknzORwDLjOmQE0hZiVx6vDjkMKPu7TtqPX+Wzj8SUAO5 be6i7EWAVF36fX0932N1VylawtyFj//ZI6O0OmqiLpbi/9fZGS8FLEDQQpCQ4Z8+1guV ZGLqsinKMBfbEZBRQgb/EsAXtsdXJytQ08bwCn1VkP9TsQ9GFKAaD+0t1s8U4Wh445I0 htL7S4vbKvPe1kbnAr+3NqX//tNcqCPrlxBtbXSltrKvvWnziGK7XTZILnSEs9+pTrL2 uRxT6XxtsoudvQvzI38/ftumE/k2tSO6OxVOTLaOJkNylZhJyllEUTRiiAAljQx6SEfu mmzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=uz/Pml3J1rcB8gTMoJJWtseewfuC2KPfwgoluXI92qg=; b=ez/XYeuqaFiJ4FXKnlSWbNOJ483dKVE9HVdhSf/6LJp3X+GMg8jmIw9PpBZ9PthpwK QeJHR9xRM6TuTn0th8KLfN1J4zF+KDB+tWb1El9n6+hBGGVYfYu89q3mIBImTR58EzXv SiXUNkyIWq+49We0GiQaZDEqFLucI1yNDWag7Djk7eHPwxCQPzqVcpcLPZMfT44TwX6k u5B10Njz5dahzkDa69vkcUbOH2jD24m0wGfuh1Gsy5DpxUT+byMbibP429JUKfNDWale yEVCAWD/v/zf55TvU1c7nwDUxOtlByqanvNLIKntMQ8L2CZANTm3cmdGWRKSIscUwIM1 Hqyw== X-Gm-Message-State: AE9vXwNALBBz1+JvFg4U1lpY+TJ0XOBF27/nL2HUvIOyUtt7q63DFBQEKeATMah8C5tFdw== X-Received: by 10.66.237.71 with SMTP id va7mr59827407pac.124.1473048203039; Sun, 04 Sep 2016 21:03:23 -0700 (PDT) Original-Received: from [10.0.1.27] (cpe-76-94-246-157.socal.res.rr.com. [76.94.246.157]) by smtp.gmail.com with ESMTPSA id d9sm30122123pan.7.2016.09.04.21.03.21 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Sep 2016 21:03:21 -0700 (PDT) X-Mailer: iPhone Mail (13G36) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::22f X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111257 Archived-At: > Narendra Joshi wrote: >=20 > 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.=20 https://www.gnu.org/software/emacs/manual/html_node/elisp/Read-Only-Buffers.= html Hope that helps John=