From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: How to avoid insert anything without switching to read only Date: Mon, 11 Jul 2005 00:30:41 +0200 Message-ID: <42D1A191.6050509@student.lu.se> References: <42CF8E15.7010900@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121036060 14978 80.91.229.2 (10 Jul 2005 22:54:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2005 22:54:20 +0000 (UTC) Cc: rms@gnu.org, kifer@cs.sunysb.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 00:54:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Drkgb-0007M8-FK for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2005 00:54:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drki8-0006Dg-SA for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2005 18:55:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DrkgM-0005vs-HQ for emacs-devel@gnu.org; Sun, 10 Jul 2005 18:53:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Drkg8-0005nV-IG for emacs-devel@gnu.org; Sun, 10 Jul 2005 18:53:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drkg5-0005lW-4h for emacs-devel@gnu.org; Sun, 10 Jul 2005 18:53:37 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrkRL-00073S-SC; Sun, 10 Jul 2005 18:38:24 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout2-sn1.fre.skanova.net (7.2.060.1) id 42B937170033887A; Mon, 11 Jul 2005 00:30:49 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: "Kim F. Storm" In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40740 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40740 Kim F. Storm wrote: >"Richard M. Stallman" writes: > > > >>When you put advice on primitive functions, >>it only works when they are called from Lisp code. >>The command loop calls self-insert directly in >>a special way, so your advice is not called. >> >>What you should do is rebind those characters to run >>another command, one that does your special thing >>and calls self-insert. >> >> > >Or use the command remap feature. > > Thanks, but I am not able to understand how to apply any of your suggestions in a case like this. The problem is that the keyboard keys to change are all those that are outside a set of those defined to useful things (say a-z for simplicity). All other keys should be defined to do nothing. There are plenty of potential keys (65K). It does not seem to be possible to handle them all separately. Can you please explain a little bit more in detail how you think this could be done? Could the actual available keyboard keys in a specific situation in some way be listed?