From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: How to avoid insert anything without switching to read only Date: Mon, 11 Jul 2005 00:09:12 +0200 Message-ID: References: <42CF8E15.7010900@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1121034473 11572 80.91.229.2 (10 Jul 2005 22:27:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2005 22:27:53 +0000 (UTC) Cc: Lennart Borgman , 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:27:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DrkGl-0004nq-Al for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2005 00:27:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrkII-0007gO-H3 for ged-emacs-devel@m.gmane.org; Sun, 10 Jul 2005 18:29:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DrkHr-0007ZN-D7 for emacs-devel@gnu.org; Sun, 10 Jul 2005 18:28:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DrkH2-0007GU-1z for emacs-devel@gnu.org; Sun, 10 Jul 2005 18:27:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrkDo-0006Nl-BD for emacs-devel@gnu.org; Sun, 10 Jul 2005 18:24:24 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Drk6i-0005sE-7v; Sun, 10 Jul 2005 18:17:04 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 00D7F262830; Mon, 11 Jul 2005 00:09:33 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sun, 10 Jul 2005 01:19:13 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:40739 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40739 "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. -- Kim F. Storm http://www.cua.dk