From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.help Subject: Re: Controling modifications and cuting invisible ? Date: Thu, 22 May 2003 01:12:51 +0200 Organization: CWI, Amsterdam Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87d6icj5kk.fsf@noos.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1053569740 30080 80.91.224.249 (22 May 2003 02:15:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 02:15:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 04:15:37 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19IfcG-0007os-00 for ; Thu, 22 May 2003 04:15:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19IcoQ-0003bm-0p for gnu-help-gnu-emacs@m.gmane.org; Wed, 21 May 2003 19:15:58 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!canoe.uoregon.edu!hammer.uoregon.edu!news.wind.surfnet.nl!surfnet.nl!news.surfnet.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: occarina.pna.cwi.nl Original-X-Trace: news.surfnet.nl 1053558772 26635 192.16.184.200 (21 May 2003 23:12:52 GMT) Original-X-Complaints-To: usenet@news.surfnet.nl Original-NNTP-Posting-Date: Wed, 21 May 2003 23:12:52 +0000 (UTC) In-Reply-To: <87d6icj5kk.fsf@noos.fr> =?iso-8859-1?q?(Fran=E7ois?= Fleuret's message of "22 May 2003 00:30:35 +0200") User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:vQii06Nrg1ajtS3O6ch3rZKkOow= Original-Xref: shelby.stanford.edu gnu.emacs.help:113491 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9996 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9996 François Fleuret writes: [...] > The first one is: how to control precisely how the buffer can be > modified ? So far, the only way I found was to clear the keymap with > make-sparse-keymap, and redefine any single key remaining that can > change something (i.e. ^j ^d etc.). This seems pretty dumb to me. What > would be the "stylish" way ? Make the buffer read only? (setq buffer-read-only t) Lute. -- (spook) => "smuggle anarchy NATO" (insert-file-contents "~/.signature") => (error "`~/.signature' too rude")