From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "N. Raghavendra" Newsgroups: gmane.emacs.devel Subject: Re: nXML mode maintenance and enhancement Date: Wed, 23 May 2018 23:04:48 +0530 Message-ID: <87po1mb7if.fsf@gmail.com> References: <87603e4lhz.fsf@gmail.com> Reply-To: "N. Raghavendra" NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527096783 27866 195.159.176.226 (23 May 2018 17:33:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 May 2018 17:33:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 23 19:32:58 2018 Return-path: 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 ) id 1fLXdC-00076W-Ib for ged-emacs-devel@m.gmane.org; Wed, 23 May 2018 19:32:58 +0200 Original-Received: from localhost ([::1]:34752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLXfI-0007h8-1D for ged-emacs-devel@m.gmane.org; Wed, 23 May 2018 13:35:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLXf7-0007gj-K7 for emacs-devel@gnu.org; Wed, 23 May 2018 13:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLXf3-0005uY-Nf for emacs-devel@gnu.org; Wed, 23 May 2018 13:34:57 -0400 Original-Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]:36879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLXf3-0005uL-Hf for emacs-devel@gnu.org; Wed, 23 May 2018 13:34:53 -0400 Original-Received: by mail-pg0-x236.google.com with SMTP id a13-v6so9728186pgu.4 for ; Wed, 23 May 2018 10:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:user-agent:reply-to :mail-followup-to:date:message-id:mime-version; bh=f1IM7NY2+GHCyHzprwwI5y5IGfSp/Z5W2vZ33PiJx+g=; b=u9gpPx4Z4Pccfbiu0hUvEJMcbx6OsXeTkJVwuvMrh74hRTqFVfPU/nIXd/I2AUA7sV 6b/4RVWDRWqm67HG72pCfhLTFqEdX5Q3jjS8WraAedm2LkQS0HgkCOuM1NfEFJ0G0XOS jGwZw+wXLMzFMmFmGXOmCrJDXBchghq5Nb2/0mdecgBiJ2WFvFKJtOF8TR3YWH27vhkQ mPiFWckgovQvKlC7fVn7vHX9rOEitMV57HTOvqs3a64302+LmhNtqnCa8bZvGR4oL++k /ZePdC/Cs5CQ4V+ePfZUmadjiEBdrV9qHObedFcuNa7hD6lNDlEQhoBd9QN3aFD/s9Ze OgHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:reply-to:mail-followup-to:date:message-id:mime-version; bh=f1IM7NY2+GHCyHzprwwI5y5IGfSp/Z5W2vZ33PiJx+g=; b=dI+E+xdCgA5yh/NJxG1n9IYk4zrHIuNL7T3gawv/spfepgcFCBdHl/XKDI8xNF4rUG YVpL/Q2IslnNAXz45gGu/dfqY+ZSpMrvC5b1CL16ZZhadyqIL/WVsoRnt5PosbSvxsj1 LNVl0lZ4T29ioEd88oBcYaXrRFK8Rh2ovs4pCCVc0wLTZIrx/i3QcFcLsZ+JFrCWFlDu 198/rVweOIAdCuh3hAGbaM8i34a5CSGj/WUGFWuCyFoxQmtd3oelPTaKUHWpMNZhfpLk E+22rdzaGq/HJJVFx9XHsMi4H1oLDW79EcUw+Uf7k0cc8Wftrm/3yFHuyJ9rIuXwHVv5 1bJQ== X-Gm-Message-State: ALKqPwcGH3aNJDsmJ1AvRCwn0KO+seQI9pOJctWzuW/Jm/z7EW4GeWj2 nkUmuQiLgsY6qCWP5Ipbpun2dw== X-Google-Smtp-Source: AB8JxZr9/EeoHwzdQl/3QLeH+Cqm+hf6xDZS8IE6y7wktBqbT6H3PIJlDQkvxkXUbPkQMY6jfJH1JA== X-Received: by 2002:a63:7d47:: with SMTP id m7-v6mr3045701pgn.443.1527096892360; Wed, 23 May 2018 10:34:52 -0700 (PDT) Original-Received: from ailuros ([14.139.59.140]) by smtp.gmail.com with ESMTPSA id q64-v6sm33020777pfg.180.2018.05.23.10.34.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 10:34:51 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 23 May 2018 12:12:50 -0400") Mail-Followup-To: emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225618 Archived-At: At 2018-05-23T12:12:50-04:00, Stefan Monnier wrote: >> 1. Make indentation in nXML mode compatible with that in the official >> SGML mode, and in the unofficial PSGML mode; the latter indentation >> styles are arguably more natural, and followed by projects like the >> FreeBSD Documentation Project. I had stumbled across this problem >> recently, as in >> https://lists.gnu.org/archive/html/help-gnu-emacs/2018-05/msg00009.html > > Yes, in general sharing more code between those modes would be great. > nXML's indentation algorithm is indeed one of its main weaknesses in > my experience. > >> 2. Addition of features in PSGML mode, e.g, >> 3. Support for XInclude. >> 4. Provision of a facility similar to RefTeX for manipulating >> cross-references in a modular document. > > Yes, please! Okay. So I hope people will help if I come back here for help as I attempt to implement some of the above things :-) >> 5. Analogues of `LaTeX-fill-region' and friends from AUCTeX. > > Not sure what this would do which the default fill-region wouldn't do > (once the indentation is improved)? I don't know, but I use `LaTeX-fill-buffer' often, and it is a pleasure to see it chugging along, saying "57% ..." and such things, and eventually providing a buffer with the contents filled and indented exactly as I would have done manually. I don't have much experience with `fill-region' in other modes; perhaps they work equally well. > If I may add a personal wish: make it a bit more permissive with > respect to details of the header (or better help the user fix those > headers) so it's easier to use it for HTML5. HTML5 is not an XML application, so I don't think nXML is the right mode for it. (It is not an SGML application, so (P)SGML is also inappropriate for it.) One possibility is to use the XHTML5 RELAX NG schema from the Nu Validator, https://github.com/validator/validator/blob/master/schema/html5/xhtml5.rnc There is also an `html5.rnc' there, and I don't know what the difference is. I almost never write HTML manually, and have not used either of them. Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/