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 22:45:04 +0530 Message-ID: <87y3gab8fb.fsf@gmail.com> References: <87603e4lhz.fsf@gmail.com> <87d0xmctsk.fsf@gmail.com> Reply-To: "N. Raghavendra" 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 1527095604 5529 195.159.176.226 (23 May 2018 17:13:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 23 May 2018 17:13:24 +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:13:20 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 1fLXKA-0001D2-Mk for ged-emacs-devel@m.gmane.org; Wed, 23 May 2018 19:13:18 +0200 Original-Received: from localhost ([::1]:34672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLXMC-0000NV-EU for ged-emacs-devel@m.gmane.org; Wed, 23 May 2018 13:15:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLXM2-0000N5-Or for emacs-devel@gnu.org; Wed, 23 May 2018 13:15:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLXLy-00071U-3r for emacs-devel@gnu.org; Wed, 23 May 2018 13:15:14 -0400 Original-Received: from mail-pl0-x232.google.com ([2607:f8b0:400e:c01::232]:34146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLXLx-00070z-Sj for emacs-devel@gnu.org; Wed, 23 May 2018 13:15:10 -0400 Original-Received: by mail-pl0-x232.google.com with SMTP id ay10-v6so13427463plb.1 for ; Wed, 23 May 2018 10:15:09 -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 :content-transfer-encoding; bh=rJTaCR9As5kT5gqYqkv2WVSZxt7CfWuH1kQy1YCmMEs=; b=cNn9uuyRh5+TwitQ0jtU1q/dHVJy0qmT1+rro4xxbUaByXfxPi60Bc4FZG9lL5C37u Gy8s5glmzQ3W4g0NAtkfox0bxDY3uIUjl6o9QHkvAPzvmyE+ThSXQUxxCMo4jpS6r8Iv oo22lSdLLCfta2OR/cbBMXBrjUWLNjRSRAL4BDHr8F1NXaJpgAXPuIjbfESzwvwrZDvF axqVkUvyAMe/Ugoq5ZtDNhR63NM8NULMuKG5hq0HENIFgKQcUufuikT5CvuhqQc60Sur /Tqjtm+XQ7cj1a+Doz7Ev3XFlhOuROIESoNMbodVet+s1hspuzchTfnU455Me98e4CIF kqBQ== 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 :content-transfer-encoding; bh=rJTaCR9As5kT5gqYqkv2WVSZxt7CfWuH1kQy1YCmMEs=; b=EryjvKP26fQA7Gaq6xKNzUS6JbZZfQLnpeevD5sPYYIRjPxsgBD4qJ5PuHKa57fVmv lD0QoTrWvW5XV5WfE1jDo3TD0tWqQnn07JbqG8tH8xZXEUxFFyFiZXXQyAsoL9WzWYXX otoKgwdlCHI0L6Ulrd9ePBAaX7RShxZKKr7utMOimff6h8zTgBGTQgAxhLcPAYUjwhZs rh1LSvIhLdKxkrQaExNeE10jQV0BrAyk8LaqMC7U5aZyykTH4bCW70gjZYp11XYJb3tS n/1r5jvsJW8aBhzZtq1z/g3/SoOLzZck87Je35O6snuGGLfHl2x2lYnjpb9zSN3MxHaA Znaw== X-Gm-Message-State: ALKqPwcBuPl9a683nZvMCqHVjYXrnCH4Gw0IVCMEwqzpNNjNgEGp1M2J ex1g9XV1KRvwyCqrzrwOxbj1pg== X-Google-Smtp-Source: AB8JxZoRsGtUJpfnUaghubqluTrqLOO+U2hGPMYp8VdyVljZa9KOOznLh3QAQHN+nB/F7Adi0TW6cg== X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr3688675plb.299.1527095708820; Wed, 23 May 2018 10:15:08 -0700 (PDT) Original-Received: from ailuros ([14.139.59.140]) by smtp.gmail.com with ESMTPSA id x84-v6sm46048670pfi.160.2018.05.23.10.15.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 10:15:08 -0700 (PDT) In-Reply-To: (Yuri Khan's message of "Wed, 23 May 2018 22:15:05 +0700") 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:c01::232 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:225614 Archived-At: At 2018-05-23T22:15:05+07:00, Yuri Khan wrote: > And I=E2=80=99m suggesting that text markup languages constitute a small = portion of > all XML-based formats, Perhaps, but even SGML was mostly used in industry, and data was a key form of content in that usage. So, the SGML mode indentation cannot be assumed to be specifically friendly to textual content, and unfriendly to data-centric content. Secondly, SGML and XML files with data content are typically generated by a program, and processed by another, so indentation doesn't matter for them; the whole document could be in one long line. In summary, the current indentation scheme of nXML is probably irrelevant to data-centric usage, but is unfriendly to textual usage. The (P)SGML type of indentation also is irrelevant to data-centric usage; it is, however, friendly to textual usage, as it conforms with the indentation schemes of other Emacs modes for structured markup, as in AUCTeX: \begin{theorem}Let us suppose that the noumena have nothing to do with necessity, since knowledge of the Categories is a posteriori. Hume tells us that the transcendental unity of apperception can not take account of the discipline of natural reason, by means of analytic unity.\end{theorem} \begin{corollary} It remains a mystery why the Ideal stands in need of reason. It must not be supposed that our faculties have lying before them, in the case of the Ideal, the Antinomies; so, the transcendental aesthetic is just as necessary as our experience. \end{corollary} The above indentation is exactly the one (P)SGML mode gives in the same situation. In any case, I have been told recently that I am not the first person who has complained about nXML indentation! > and thus the default rules might be good enough for the majority of > the formats. Just as I am suggesting that the (P)SGML indentation rules are also good enough for most types of usage. They have the added advantage of being similar to the default indentation styles of other similar modes. > Why not. Thanks for sharing that. I haven't looked at it closely yet, but it looks like one can mimic it to define variables whose values are alists in which the car of every element is a schema, and cdr a list of elements in that schema which need a certain kind of indentation. I'll try to cook up something, and report here. Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/