From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: derived-mode should provide default abbrev-table Date: Fri, 01 Jul 2011 12:42:52 -0400 Message-ID: References: <4E0D8168.80704@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309539552 3172 80.91.229.12 (1 Jul 2011 16:59:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2011 16:59:12 +0000 (UTC) Cc: Emacs developers To: Andreas =?iso-8859-1?Q?R=F6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 01 18:59:09 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qch3c-0007fS-1i for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2011 18:59:08 +0200 Original-Received: from localhost ([::1]:39700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qch3a-0006rI-FM for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2011 12:59:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qcgnx-0002Wv-Oy for emacs-devel@gnu.org; Fri, 01 Jul 2011 12:42:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qcgnw-0000NV-5x for emacs-devel@gnu.org; Fri, 01 Jul 2011 12:42:57 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:60472 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qcgnv-0000N7-DT for emacs-devel@gnu.org; Fri, 01 Jul 2011 12:42:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAMv4DU5MCqDH/2dsb2JhbABSp2J4iHnAG4YyBJ5ThCw X-IronPort-AV: E=Sophos;i="4.65,459,1304308800"; d="scan'208";a="118306367" Original-Received: from 76-10-160-199.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.199]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 01 Jul 2011 12:42:53 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CE0F95912D; Fri, 1 Jul 2011 12:42:52 -0400 (EDT) In-Reply-To: <4E0D8168.80704@online.de> ("Andreas =?iso-8859-1?Q?R=F6hler?= =?iso-8859-1?Q?=22's?= message of "Fri, 01 Jul 2011 10:12:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141386 Archived-At: > `define-derived-mode' says: > :abbrev-table TABLE > Use TABLE instead of the default. > A nil value means to simply use the same abbrev-table as the parent. > Two issues: > - If the slot isn't served, no abbrev-table exists AFAIS. As the doc says, it just uses the same as the parent (if the parent doesn't use any, then the child won't use any either). > A bug IMHO: Specification should be required only for non-defaults. Ie > ":abbrev-table nil" should be the default. I agree. And yes, I'm guilty of making this design choice back then. It was an unfortunate decision but I'm not sure it's worth changing now. > - If a name is given which doesn't represent a valid table, the mode hook > should make an empty one from it silently. No, that's not how it works: we do not want to encourage the use of non-standard abbrev-table names. Stefan