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: Sun, 8 Sep 2002 21:35:37 -0500 (CDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200209090235.VAA07886@eel.dms.auburn.edu> References: <200209020237.VAA26080@eel.dms.auburn.edu> <200209021629.g82GTY707192@rum.cs.yale.edu> <200209022302.SAA26633@eel.dms.auburn.edu> <200209031506.g83F6Yh12528@rum.cs.yale.edu> <200209031536.KAA27166@eel.dms.auburn.edu> <200209032123.QAA28184@eel.dms.auburn.edu> <200209040001.TAA28292@eel.dms.auburn.edu> <200209050437.XAA01465@eel.dms.auburn.edu> <200209090014.TAA07777@eel.dms.auburn.edu> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031539024 31289 127.0.0.1 (9 Sep 2002 02:37:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 9 Sep 2002 02:37:04 +0000 (UTC) Cc: rms@gnu.org, monnier+gnu/emacs@rum.cs.yale.edu, Kai.Grossjohann@CS.Uni-Dortmund.DE, 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 17oEQ9-00088A-00 for ; Mon, 09 Sep 2002 04:37:01 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17oEzs-00049D-00 for ; Mon, 09 Sep 2002 05:13:56 +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 17oEQA-0004Xl-00; Sun, 08 Sep 2002 22:37:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17oEOp-0004PO-00 for emacs-devel@gnu.org; Sun, 08 Sep 2002 22:35:39 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17oEOn-0004PA-00 for emacs-devel@gnu.org; Sun, 08 Sep 2002 22:35:38 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17oEOn-0004P4-00; Sun, 08 Sep 2002 22:35:37 -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 VAA17022; Sun, 8 Sep 2002 21:35:35 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id VAA07886; Sun, 8 Sep 2002 21:35:37 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: teirllm@dms.auburn.edu In-reply-to: <200209090014.TAA07777@eel.dms.auburn.edu> (message from Luc Teirlinck on Sun, 8 Sep 2002 19:14:11 -0500 (CDT)) 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:7732 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7732 >From my previous message: However, the variable local-abbrev-table would be complemented with a variable local-abbrev-table-list. `expand-abbrev' would check whether this variable is non-nil and, if so, use it instead of local-abbrev-table. (This could be implemented in C, or in Lisp, using pre-abbrev-expand-hook.) Actually, implementing this in Lisp using pre-abbrev-expand-hook might be tricky, since one would have to make completely sure that other functions wanting to change or override abbrev-expansion get a chance to run before the function implementing this variable. One can put it at the end of pre-abbrev-expand-hook using the APPEND argument of add-hook, but one then better hope that something else is not going to override this. I do not know how easy or difficult the implementation in C is. I know C, but am not very familiar with Emacs' C internals. Some other problems may need to be looked into. Anyway, the first question to decide is: Is it is actually worth trying to implement multiple local abbrev tables, as a customization feature, or not? Sincerely, Luc.