From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "N. Raghavendra" Newsgroups: gmane.emacs.help Subject: Re: nXML mode indentation Date: Tue, 08 May 2018 10:03:33 +0530 Message-ID: <8736z2ydeq.fsf@gmail.com> References: <87a7tedxyb.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 1525753949 25973 195.159.176.226 (8 May 2018 04:32:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 May 2018 04:32:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 08 06:32:25 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1fFuIb-0006aG-1G for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2018 06:32:25 +0200 Original-Received: from localhost ([::1]:49282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFuKc-0006MX-VU for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2018 00:34:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFuJq-0006ME-Ng for help-gnu-emacs@gnu.org; Tue, 08 May 2018 00:33:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFuJn-0007pN-EF for help-gnu-emacs@gnu.org; Tue, 08 May 2018 00:33:42 -0400 Original-Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]:41925) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fFuJn-0007pA-7Q for help-gnu-emacs@gnu.org; Tue, 08 May 2018 00:33:39 -0400 Original-Received: by mail-pg0-x229.google.com with SMTP id m21-v6so20609076pgv.8 for ; Mon, 07 May 2018 21:33:38 -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=JjERKXVUKOMeGOspQVP7Q5g2Ytiw0C3Kvwj5VZXDVvw=; b=LuMZydF3/AbEmtij1vTBl9hQpppVliW9GsUfzzMH0WLxNVF4JUxKES+YUkCFE9CU6u kXQcV6g542puyC/PCT/Tl8/jY6Z3st5AQAd6lvo8IwEYtRXxdXW5IJaXORbz8kC9Mvkr NxHbil3okCSGd6duzlyOWy1ZkwOOhDpACcbWuAn/nH25xZ9l7Xfm5LCwVzG0JdTEPIqY WSvQDNoU5eck22X0KrLQDQZ8O4/U/SgcVrqo8VCQlhRDJy1NOh555RcRcbVnmOO6OzoK QnKW0Rkygm9F13lpvu0jP1xTjSdIYUQc3OSGLwtSEgs5B4CPFtcAhiFLFVyua76tSefZ oe9w== 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=JjERKXVUKOMeGOspQVP7Q5g2Ytiw0C3Kvwj5VZXDVvw=; b=GcMamnQ/IGLFi9fLa67uNxvvGWf7I5wjuRuRiFMpqYflmuueDiq0NY5tcAURaE07ff h0XY5E2rhMuGq3fOSS5VUGKvBEAqqQ6S7qyy70qJYGWWcm2LGs8SGRX0+WuG7t1QnJRB +mDlVKgedFJYL36bRG9GoReA82dWYU1+6SM1wyiuWRtr12ekNGNMJWCfzQIw2CNA1gwX paDFq7xRgar6r+UTBs4Gevni3nPhyweLyO3ZFelFZPk8gPcOJ5PrEVd7lbgRkkko3AlE L/Qrc4XVcfIdiYjldDYYkr6w1R4ji+9drqVTKTekgW8e+qJOQ0rTA6/vFOgQLGFtsg9w mPQw== X-Gm-Message-State: ALQs6tAttUL41D3r3wOIBOb9uPD441l843o2JfDjeQXYPefXh0UcaxgN kIL47KzSGgpRGNl2OgMYhBUDkw== X-Google-Smtp-Source: AB8JxZr9BwOtDe2ekicUbMei+q6v8x14Q5e2GHyrMYJxMnE3XfCzmPSdIOQrvLFSPm69+1clU7wq1A== X-Received: by 2002:a63:69c3:: with SMTP id e186-v6mr31460986pgc.353.1525754017680; Mon, 07 May 2018 21:33:37 -0700 (PDT) Original-Received: from ailuros ([14.139.59.140]) by smtp.gmail.com with ESMTPSA id 131sm17737136pfa.128.2018.05.07.21.33.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 21:33:36 -0700 (PDT) In-Reply-To: <87a7tedxyb.fsf@gmail.com> (N. Raghavendra's message of "Sat, 05 May 2018 19:08:36 +0530") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116685 Archived-At: At 2018-05-05T19:08:36+05:30, N. Raghavendra wrote: > I request help regarding indentation of text that is directly inside > elements in nXML mode. Here is an example of the default indentation > provided by the mode: > > ---------- > 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. > ---------- > > All the lines in the element are indented to the same column. I would > like to indent the above text as > > ---------- > 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. > ---------- > > Here, every line in the element after the first is indented two columns > more than the first line. (This is in fact the default indentation of > sgml mode, and psgml mode.) > > Is there a way to achieve the second style of indentation in nXML > mode? I am bumping this in case it went unnoticed. I am trying to follow the XML style guidelines of the FreeBSD Documentation Project, https://www.freebsd.org/doc/en_US.ISO8859-1/books/fdp-primer/writing-style-guide.html#writing-style-indentation and I would indeed like to use nXML mode. It looks like `nxml-compute-indent-from-previous-line' in nxml-mode.el is relevant, but I can't see how to modify or advise it. Thanks, Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/