From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: peterson Newsgroups: gmane.emacs.help Subject: common abbrev table for major modes Date: Wed, 15 Dec 2010 10:35:33 -0800 (PST) Organization: http://groups.google.com Message-ID: <6d0d824c-9aae-47f7-b7dd-5615a755b032@z19g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1292464336 27767 80.91.229.12 (16 Dec 2010 01:52:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 01:52:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 16 02:52:12 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PT30u-00070U-FY for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 02:52:12 +0100 Original-Received: from localhost ([127.0.0.1]:53621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PT30t-00028U-S3 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Dec 2010 20:52:11 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!z19g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 81.183.69.81 Original-X-Trace: posting.google.com 1292438134 15424 127.0.0.1 (15 Dec 2010 18:35:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 15 Dec 2010 18:35:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z19g2000yqb.googlegroups.com; posting-host=81.183.69.81; posting-account=8bM1BQoAAAAEONadE9VoPMWs1DzIftaN User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.2.15 Version/10.10,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:183323 X-Mailman-Approved-At: Wed, 15 Dec 2010 20:50:09 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77576 Archived-At: Hi, how can I use one set of abbrev definitions in more than one major mode? I want to use the same abbrevs in all text modes, for example text-mode, erc-mode, muse-mode. What I found so far is the :parents option of define-abbrev-table, which contains a list of abbrev tables from which this table inherits abbreviations. Seems like the thing I'm after, but I have no idea how to define the parent. I tried: (define-abbrev-table 'muse-mode-abbrev-table '( ) nil :parents '(text-mode-abbrev-table)) And had all definitions in the text-mode abbrev table, but I get the following error in a muse buffer: abbrev-table-get: Wrong type argument: vectorp, text-mode-abbrev-table Thanks in advance.