From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan <yuri.v.khan@gmail.com> Newsgroups: gmane.emacs.devel Subject: Re: nxml-mode: Derive from prog-mode instead of text-mode Date: Wed, 17 May 2017 12:13:25 +0700 Message-ID: <CAP_d_8UrYdc4x4Kq=YnvUDzEUnid+oO4sSmYX8nFEiu0gn2f0Q@mail.gmail.com> References: <1494412509.2069441.971865104.0646ACD6@webmail.messagingengine.com> <8337ccbrar.fsf@gnu.org> <1494439153.1311720.972341016.7C2EC66A@webmail.messagingengine.com> <83o9v0a66q.fsf@gnu.org> <1494487799.3240345.972964808.43DA610E@webmail.messagingengine.com> <CAArVCkR+jKEu49=H9CQ6jfhV890DQGfZgdVw9=R0KuDfEc_zVw@mail.gmail.com> <87r2zqvmy9.fsf@pokyo> <1494930855.4131543.978121176.7BB5246B@webmail.messagingengine.com> <CAP_d_8Wpgyp=3CHcQD36voYa7S-AqH6JAkN3ZXBFofitrQbuFA@mail.gmail.com> <jwvfug5dmri.fsf-monnier+gmane.emacs.devel@gnu.org> <4165ea59-dc7e-4112-95b8-10b766bf0d52@default> <877f1gx5b3.fsf@ericabrahamsen.net> <93458087-0860-4fcd-9628-dfcf2b231a69@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494998062 15716 195.159.176.226 (17 May 2017 05:14:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 May 2017 05:14:22 +0000 (UTC) Cc: Eric Abrahamsen <eric@ericabrahamsen.net>, Emacs developers <emacs-devel@gnu.org> To: Drew Adams <drew.adams@oracle.com> Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 17 07:14:18 2017 Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org> Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>) id 1dArHs-0003x5-Su for ged-emacs-devel@m.gmane.org; Wed, 17 May 2017 07:14:17 +0200 Original-Received: from localhost ([::1]:45523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>) id 1dArHy-0005rf-0C for ged-emacs-devel@m.gmane.org; Wed, 17 May 2017 01:14:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <yurivkhan@gmail.com>) id 1dArHQ-0005ra-Ep for emacs-devel@gnu.org; Wed, 17 May 2017 01:13:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <yurivkhan@gmail.com>) id 1dArHP-0004Ry-Kb for emacs-devel@gnu.org; Wed, 17 May 2017 01:13:48 -0400 Original-Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]:35539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <yurivkhan@gmail.com>) id 1dArHP-0004RN-FK for emacs-devel@gnu.org; Wed, 17 May 2017 01:13:47 -0400 Original-Received: by mail-wr0-x236.google.com with SMTP id z52so876662wrc.2 for <emacs-devel@gnu.org>; Tue, 16 May 2017 22:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=EJbZj53CbXueeIPNs0AwM4ts6oLkX+WO7XYA4YaAnNo=; b=TX+hr7wx77F86Or6KFj72AudGbuHmohPPJ4lTnitIPrgbFuRq6sXZ+HXYtcTV2veBF B3InEzodObLHQsrgGvKHwG+OYs3tfc25p6VBf3RpiGiqx0GT5QjVYzGpOorhZ+TJXyuK zQNZ7IteWys4iQFP1l2t3Ghp20uvClwGR+ApMcwhbZMnsvUnoOlQz0n4Khhc/wjrg1lF ymj0WeTT3HFhpE9oLhCVlgwbloseGL8JHFr8CIw4nnmFoTmPK3jAKToizW2TuUutx5Np aqxKx3qpF/tzPktlxwXlnKXpi5meYu6Rgcq9hhjMKfbKwR3wqM/qYSSSwue8E1v9Es2A b84A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=EJbZj53CbXueeIPNs0AwM4ts6oLkX+WO7XYA4YaAnNo=; b=ueXw2qK2/y9i8pm4L5XFom4cFivjIxUH0TnMykVArapjy2FBiXKm/tPlNbhGNnXuCt PLYcZdZuW9GhrMzZFumQHiKoRB6pGQSCBB2qWxlCo4gxU+26fge4Pqb2JEU3JllgYaRE /T1opyb2wyT0giSAZoAZmGG19W0YJ8q+7DCu6wxV5v9Vr+gGNJKivD27GSChIdtBHBgG oeIFk3sEKB+P/zKnA7Gf0gVWWSF4dlrqpRIB65ykqyZzg3JDvjggNffWO3aBRZQ8Ek9e D8j1u+AelanzpFJYWfKhLFaGeJVD13CZlKGp3Z209Wly7ialoMPjncusDB4nkvPq4EO3 7Esg== X-Gm-Message-State: AODbwcCg35P9q/LrNzYzr0S7aaE97RuNS/Yo7rFYf+6qYWJ3voEkz/Nx hnLo0ZD50v1cxAzBETBLZ/6UaKKBhQ== X-Received: by 10.223.150.18 with SMTP id b18mr810362wra.98.1494998026412; Tue, 16 May 2017 22:13:46 -0700 (PDT) Original-Received: by 10.223.163.196 with HTTP; Tue, 16 May 2017 22:13:25 -0700 (PDT) In-Reply-To: <93458087-0860-4fcd-9628-dfcf2b231a69@default> X-Google-Sender-Auth: TJhjx1NHcCs2x8pissmJuWD5unU X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." <emacs-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/emacs-devel/> List-Post: <mailto:emacs-devel@gnu.org> List-Help: <mailto:emacs-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=subscribe> Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org> Xref: news.gmane.org gmane.emacs.devel:214903 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/214903> On Wed, May 17, 2017 at 1:19 AM, Drew Adams <drew.adams@oracle.com> 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=E2=80=A6 does key-translation-map work if made buffer-local?