From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Bugs caused by recent use of define-derived-mode Date: Mon, 2 Sep 2002 20:21:37 -0500 (CDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200209030121.UAA26723@eel.dms.auburn.edu> References: <200209020237.VAA26080@eel.dms.auburn.edu> <200209021629.g82GTY707192@rum.cs.yale.edu> <200209022302.SAA26633@eel.dms.auburn.edu> <200209022320.g82NKZ308707@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031016106 19395 127.0.0.1 (3 Sep 2002 01:21:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Sep 2002 01:21:46 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17m2O1-00052i-00 for ; Tue, 03 Sep 2002 03:21:45 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17m2wV-00073L-00 for ; Tue, 03 Sep 2002 03:57:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17m2PY-00026Z-00; Mon, 02 Sep 2002 21:23:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17m2Nv-00026C-00 for emacs-devel@gnu.org; Mon, 02 Sep 2002 21:21:39 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17m2Nt-00025z-00 for emacs-devel@gnu.org; Mon, 02 Sep 2002 21:21:38 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17m2Ns-00025t-00 for emacs-devel@gnu.org; Mon, 02 Sep 2002 21:21:36 -0400 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) by manatee.dms.auburn.edu (8.9.1a/8.9.1) with ESMTP id UAA25177; Mon, 2 Sep 2002 20:21:35 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id UAA26723; Mon, 2 Sep 2002 20:21:37 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-Reply-To: <200209022320.g82NKZ308707@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7360 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7360 > The fact is though that currently we do not have inheritance of > abbrevs. I believe that the current "poor man's inheritance" is an > unacceptable alternative. It makes a lottery out of abbrev expansion. Again, please show us examples. C-x b text M-x text-mode Type: William C-x a l bob Type: Robert C-x a l bob Redefine? y C-x b pidtext M-x paragraph-indent-text-mode Type: bob C-x ' Expansion: Robert. Wonderful. Start the exercise over, say with a new emacs. C-x b text M-x text-mode Type: William C-x a l bob C-x b pidtext1 M-x paragraph-indent-text-mode C-x k (Back in buffer text) Type: Robert C-x a l bob Redefine? y C-x b pidtext2 M-x paragraph-indent-text-mode Type: bob C-x ' Expansion: William Less wonderful There are several variations on this. The "real" example of this is, of course, in a long editing session where you do not remember which files or buffers you visited when and in which mode. Then it becomes a lottery. I could tell you what causes this bug, but I believe you will have no difficulty figuring that out yourself. The really difficult thing is to fix this bug, without introducing others to replace it. I believe this is essentially equivalent with defining true inheritance. Sincerely, Luc.