help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: common abbrev table for major modes


From: Stefan Monnier
Subject: Re: common abbrev table for major modes
Date: Thu, 16 Dec 2010 17:08:51 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> (define-abbrev-table 'muse-mode-abbrev-table '(    ) nil :parents
> '(text-mode-abbrev-table))

The :parents should be (list text-mode-abbrev-table) (other you have
a list containing the symbol `text-mode-abbrev-table' rather than a list
containing an abbrev-table).

You may also want to use

  (abbrev-table-put foo-abbrev-table :parents (list text-mode-abbrev-table))

if foo-abbrev-table already exists (calling `define-abbrev-table' on
a table that already exists is not a good idea).


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]