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: Yuri Khan
Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode
Date: Wed, 17 May 2017 12:13:25 +0700

On Wed, May 17, 2017 at 1:19 AM, Drew Adams <address@hidden> wrote:

> it makes no
> sense to derive from special mode just to get the mundane bindings
> for `q', `g', and `h' - providing just `quit-window', `revert-buffer',
> and `describe-mode' hardly makes for a "special" mode.

Derivation is not only a mechanism to get functionality. It is
primarily a mechanism to express facts and relationships.

What makes special-mode special is that ordinary character keys are
divorced from their usual self-insert meaning, instead, they are all
available for commands. And that gives me an idea… does
key-translation-map work if made buffer-local?



reply via email to

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