emacs-devel
[Top][All Lists]
Advanced

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

Re: nxml-mode: Derive from prog-mode instead of text-mode


From: Johan Bockgård
Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode
Date: Wed, 17 May 2017 20:52:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> Since Emacs 24, Dired already essentially inherits from
>> `special-mode', without doing so explicitly.
>
> Indeed, that's because the `dired-mode` function currently can't just
> use define-derived-mode (because it takes a `dir` argument), and
> I kept the needed refactoring as a todo-item (one of those "todo after
> I retire from retirement").

One disadvantage (currently) of deriving from special-mode is that
define-derived-mode makes `foo-mode' an interactive command. This is
practically never appropriate for "special" modes.




reply via email to

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