From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Clearning a keymap completely Date: Mon, 5 Sep 2016 09:54:16 +0600 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473082547 25204 195.159.176.226 (5 Sep 2016 13:35:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Sep 2016 13:35:47 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Narendra Joshi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 05 15:35:43 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 1bgu3i-0005CF-ES for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 15:35:34 +0200 Original-Received: from localhost ([::1]:54692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgu3f-0002cn-W5 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Sep 2016 09:35:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgkzo-0004Vf-6N for help-gnu-emacs@gnu.org; Sun, 04 Sep 2016 23:54:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgkzm-0007VN-8b for help-gnu-emacs@gnu.org; Sun, 04 Sep 2016 23:54:55 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:34175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgkzX-0007Sc-88 for help-gnu-emacs@gnu.org; Sun, 04 Sep 2016 23:54:54 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id p41so99971338lfi.1 for ; Sun, 04 Sep 2016 20:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=bjKwoqrEyiD8Eu381zSwhuWYlMc6V+riydG8Z8kGONc=; b=uPC9h3YW+geE4it0I0Snw7IQbD0VtqFEYVZDNJdH4LNX8YyUXJ8QpK7Ej0z0F6L789 Xl0s6LXXNa8+kBFbjiH08wfzNDfXI0Mp0GDqk1SSvJrnZkzrHq5gp+3snDZNX39QE2e/ 6OSI82RRLb37uMPiTQsVljp/RJd70FqU4UyeG7Eh4IVFimseO4xSfPHvZFI4752sFegK mvhrjxaMfwtd5guvOhl7O3iUr3nA9Hb+SwmOPvWpr7PJ8t4/e6Q+W9sspBYhUeFwqF3O +1rhZNDmEP4k1BJW/OvCrtn0OwI//7Mwt1civHm1rERcxzY6SYZOC4IDZo4W6mbveCE+ mdnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=bjKwoqrEyiD8Eu381zSwhuWYlMc6V+riydG8Z8kGONc=; b=U6BptCaIi9w2IW6V94hqT69DywWiuKtPJRELZcm56H3PjDq9RGKKmF4c+QouyoQJdA E5INqLne+k/p2parFx1RUjxwChIGEQSHz1fSzSvqrY1vp1W/fvLcZgz9WMXtvVBRTV+l 8iCfCE6ygsG0rakjeeoHm7rfzaKndXWZ3dX6PMw/m4wQ3OEDhWWlPI29ILSgkXshCvxN DI8YNZQTw2SsYoA9warUCWix6pCyoJXgmpA4I/yYhrk5uYZ0RZ8waVCSvExjVPReJMXW Mi+FUzCVXHQs2z/BL+2WvIzhovXote4kllKVn4wTgp6zSPgT0nyjqztwink3oP68prJ4 RGbQ== X-Gm-Message-State: AE9vXwP5DN2/8rrn0NYds7xaAFb8BV/Ht9PKwy/+qrRpB5eSB1SJ2meOQKtPWF7WicKn271xzw2kNpUD+6qLzQ== X-Received: by 10.25.159.205 with SMTP id i196mr10076100lfe.45.1473047677004; Sun, 04 Sep 2016 20:54:37 -0700 (PDT) Original-Received: by 10.114.80.163 with HTTP; Sun, 4 Sep 2016 20:54:16 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 8izHFQ2erO4dUv4FQulDP-hbYsE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::230 X-Mailman-Approved-At: Mon, 05 Sep 2016 09:34:37 -0400 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:111262 Archived-At: On Mon, Sep 5, 2016 at 4:40 AM, Narendra Joshi 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? Easiest is to set (read-only-mode 1). (insert "foo") still works but self-insert-command tells the user =E2=80=9CBuffer is read-only=E2=80=9D.