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 15:52:19 +0200 Message-ID: <42D27993.70408@student.lu.se> References: <42CF8E15.7010900@student.lu.se> <87y88dlb2h.fsf-monnier+emacs@gnu.org> 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 1121091459 8251 80.91.229.2 (11 Jul 2005 14:17:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2005 14:17:39 +0000 (UTC) Cc: Michael Kifer , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 16:17:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Drz5W-00079T-8Q for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2005 16:16:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drz75-0001DQ-OM for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2005 10:18:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Drz1W-0006ao-PK for emacs-devel@gnu.org; Mon, 11 Jul 2005 10:12:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Drz1R-0006Wp-Hk for emacs-devel@gnu.org; Mon, 11 Jul 2005 10:12:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drz1P-0006IM-9a for emacs-devel@gnu.org; Mon, 11 Jul 2005 10:12:35 -0400 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DrypK-0002P5-T0 for emacs-devel@gnu.org; Mon, 11 Jul 2005 10:00:07 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 42B94E2900352749; Mon, 11 Jul 2005 15:52:24 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Stefan Monnier In-Reply-To: <87y88dlb2h.fsf-monnier+emacs@gnu.org> 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:40775 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40775 Stefan Monnier wrote: >>In viper-mode nothing should be inserted if you are in vi mode. It works for >>all keys that are assigned commands (like i, o, a etc), but it does not work >>for national characters. Those are not assigned to anything in >>viper. I suggested to the maintainer that this should be fixed by advising >>self-insert'. Those national characters are bound to self-insert according >>to help (C-h c). Michael was very helpful and added this. >> >> > > (define-key the-viper-map-for-vi-mode [remap self-insert-command] 'undefined) > > Thanks! I hope it is solved. The actual code is (define-key viper-vi-basic-map [remap self-insert-command] 'undefined) Wonder where and when it should be called? Can you try to add that Michael?