unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org
Subject: Re: Bugs caused by recent use of define-derived-mode
Date: Tue, 03 Sep 2002 16:05:12 +0200	[thread overview]
Message-ID: <vafznuz419j.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <200209022302.SAA26633@eel.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 2 Sep 2002 18:02:21 -0500 (CDT)")

Luc Teirlinck <teirllm@dms.auburn.edu> writes:

> As long as inheritance of abbrevs would be defined in a bug-free way
> that does not inconvenience anybody who does not want to use it, it
> would of course be perfectly OK to do that.  Note however, that this
> would require additional changes, for instance in the way 
> M-x list-abbrevs lists abbrevs (otherwise, it would get hopelessly
> cluttered by countlessly repeated abbrev definitions).

Let A and B be abbrev tables such that B inherits from A.  Let a be
an abbrev defined in A (expanding to aaa), let b be an abbrev defined
in B (expanding to bbb).

Then it seems obvious that the desired behavior for M-x list-abbrevs
RET is to list abbrev a under table A and abbrev b under table B, and
that abbrev a should not be listed under table B (nor should abbrev b
be listed under table A).

It also seems useful for M-x list-abbrevs RET to make clear that B
inherits from A so that people who are looking for B abbrevs will know
to also look in the A table.  (Maybe with a hyperlink-like button that
jumps to the right spot.  But other user interfaces are possible.  If
no table inherits from more than one table, then the inheritance
hierarchy is a tree and a tree widget can be used for displaying
them.)

If there is an abbrev x in table A expanding to xxx, and x is also
defined in table B but expanding to something else, yyy, say, then it
seems that list-abbrevs should list x twice, with different
expansions, under the two tables.

I was under the assumption that all of these obvious things are clear
to Stefan, as well, and that, unless explicitly mentioned, he was
proposing to implement the desired behavior.  (I'd have expected
words like "kludge" or "workaround" in case he was speaking about
something that does not implement the desired behavior.)

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

  parent reply	other threads:[~2002-09-03 14:05 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-02  2:37 Bugs caused by recent use of define-derived-mode Luc Teirlinck
2002-09-02 16:29 ` Stefan Monnier
2002-09-02 23:02   ` Luc Teirlinck
2002-09-02 23:20     ` Stefan Monnier
2002-09-02 23:25       ` Luc Teirlinck
2002-09-02 23:29         ` Stefan Monnier
2002-09-02 23:46           ` Luc Teirlinck
2002-09-03  0:26             ` Stefan Monnier
2002-09-03  1:21       ` Luc Teirlinck
2002-09-03  2:08         ` Stefan Monnier
2002-09-03  2:04       ` Luc Teirlinck
2002-09-03  2:07         ` Stefan Monnier
2002-09-03 14:05     ` Kai Großjohann [this message]
2002-09-03 15:06       ` Stefan Monnier
2002-09-03 15:36         ` Luc Teirlinck
2002-09-03 21:23           ` Luc Teirlinck
2002-09-04  0:01             ` Luc Teirlinck
2002-09-04  3:28               ` Luc Teirlinck
2002-09-04  3:49                 ` Miles Bader
2002-09-04 12:31                   ` Luc Teirlinck
2002-09-05  2:46               ` Richard Stallman
2002-09-05  4:37                 ` Luc Teirlinck
2002-09-08 12:54                   ` Richard Stallman
2002-09-09  0:14                     ` Luc Teirlinck
2002-09-09  1:36                       ` Luc Teirlinck
2002-09-09 23:33                         ` Richard Stallman
2002-09-10  0:12                           ` Luc Teirlinck
2002-09-09  2:35                       ` Luc Teirlinck
2002-09-09 13:49                       ` Miles Bader
2002-09-09 15:25                         ` Kim F. Storm
2002-09-09 18:42                         ` Luc Teirlinck
2002-09-10 16:36                           ` Richard Stallman
2002-09-11  4:30                             ` Luc Teirlinck
2002-09-11 20:03                               ` Richard Stallman
2002-09-09 19:15                       ` Richard Stallman
2002-09-05 11:07                 ` Kai Großjohann
2002-09-06  1:26                   ` Miles Bader
2002-09-06  2:11                     ` Luc Teirlinck
2002-09-06  2:26                       ` Miles Bader
2002-09-06  2:31                         ` Luc Teirlinck
2002-09-06  2:31                       ` Miles Bader
2002-09-06 10:52                       ` Kai Großjohann
2002-09-07  3:16                         ` Richard Stallman
2002-09-06 20:03                     ` Richard Stallman
2002-09-06 15:11                   ` Richard Stallman
2002-09-04 14:13   ` Richard Stallman
2002-09-04 16:01     ` Stefan Monnier
2002-09-03 13:26 ` Richard Stallman
2002-09-03 14:57   ` Stefan Monnier
2002-09-05  2:46     ` Richard Stallman
2002-09-06 16:07       ` Stefan Monnier

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=vafznuz419j.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier+gnu/emacs@rum.cs.yale.edu \
    /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).