unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Andreas Röhler" <andreas.roehler@online.de>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: derived-mode should provide default abbrev-table
Date: Fri, 01 Jul 2011 12:42:52 -0400	[thread overview]
Message-ID: <jwvsjqqge94.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4E0D8168.80704@online.de> ("Andreas Röhler"'s message of "Fri, 01 Jul 2011 10:12:24 +0200")

> `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



  reply	other threads:[~2011-07-01 16:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-01  8:12 derived-mode should provide default abbrev-table Andreas Röhler
2011-07-01 16:42 ` Stefan Monnier [this message]
2011-07-01 17:48   ` Andreas Röhler
2011-07-04 15:23     ` Stefan Monnier
2011-07-02  7:59   ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvsjqqge94.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).