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:46:37 +0530 Message-ID: <87vabywwui.fsf@gmail.com> References: <87a7tedxyb.fsf@gmail.com> <8736z2ydeq.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 1525756523 15518 195.159.176.226 (8 May 2018 05:15:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 May 2018 05:15:23 +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 07:15:18 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 1fFuy6-0003uL-9Y for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2018 07:15:18 +0200 Original-Received: from localhost ([::1]:49389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFv0D-0004ed-EK for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2018 01:17:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFuzY-0004eX-Ns for help-gnu-emacs@gnu.org; Tue, 08 May 2018 01:16:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFuzT-0001E0-Uy for help-gnu-emacs@gnu.org; Tue, 08 May 2018 01:16:48 -0400 Original-Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:42539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fFuzT-0001Dq-PB for help-gnu-emacs@gnu.org; Tue, 08 May 2018 01:16:43 -0400 Original-Received: by mail-pg0-x22b.google.com with SMTP id p9-v6so17741015pgc.9 for ; Mon, 07 May 2018 22:16:43 -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=AbG/94VgCXPR1rWh+vR8P0i21EBCjnEk6xDUA4e9dfI=; b=LRJAp2BOopatNzGMHneLh5ykdjKwDaYMZYQux57ORrSltN4wrOp2Tfb+FrX6/ZqUE0 M2WXrucnVYV+GtSuuq6JNwrl62R8g52hgtiqshEC3s2v4DgVaEC4u/rcDc42X8/FFzuW 89pPR4+q9duhaGmL2p+Tk5FJRKnqKqJVmgmwknGlz3FRBkSJZvvyrhrDzvvu/A+JnsqQ trPAf5BuNsgsXDGcwQw+bTfnXYNBRnKaH22c1MODcxkScJoEXaDLOlFM/nwpWVtL6unO gF6zGwDIxFyQ6dFf1q2kcnkq3xCOXHjYMS58GFJwHr5JaU9ZaTUSUHwfhEjsluRYnDqj FEcQ== 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=AbG/94VgCXPR1rWh+vR8P0i21EBCjnEk6xDUA4e9dfI=; b=OifOR9Mih24Ja7tPz+vjneNqNlHPaZQoeIXDBGh+5h7rj4p3WHZGnVZMjbpSlI77qc UfD7A2QZvlzd3tSst5ToI/zwk8U6tGAL82EGr8jGIK6rRlOk3BAJ58C+RIwryYMONnCc jjLeSlHp12DofJfN8CXnSfdNMp8Do0Feigo40xzjyp28J2kwiUBFZ6VrgB9TevZZ6lGz VckbSzey0g+tGT9bk23IEJ5qHyUcWRvSFWGqpagcsJL9/rQ+8au8aCpk9x9274ppiYlf XeA0KO4jwhu4jMyD8c/1sTScq9qRuOBlGXriQMAoBjjR/g5ybxlQR/4czoC7urGtFd8f tn5A== X-Gm-Message-State: ALQs6tD2aPRcsfvLiUTCbi6R0VTr5cZL9+j4oaQIhuKKnB6oqpE2AlAB 7YMpzBMMoKN4T5M0hqwFILkFkg== X-Google-Smtp-Source: AB8JxZowTxSMLrY5FKm+lHrztz7UsRSxIfE8q4WU5ueCZ29trMSxYcBjNIDuC4K50HJ+EHVSNdykcQ== X-Received: by 2002:a63:bf05:: with SMTP id v5-v6mr16536933pgf.320.1525756602333; Mon, 07 May 2018 22:16:42 -0700 (PDT) Original-Received: from ailuros ([14.139.59.140]) by smtp.gmail.com with ESMTPSA id f29sm48131559pff.169.2018.05.07.22.16.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 22:16:41 -0700 (PDT) In-Reply-To: (Yuri Khan's message of "Tue, 08 May 2018 04:55:35 +0000") 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::22b 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:116687 Archived-At: At 2018-05-08T04:55:35Z, Yuri Khan wrote: > I have customized indentation in nXML for XHTML documents. The exact > indentation rules I use are not relevant to your case but here=E2=80=99s = how I > activate it. > > See the documentation on =E2=80=98indent-line-function=E2=80=99 and the s= ource of > =E2=80=98nxml-indent-line=E2=80=99 for implementation details. > > (defun yk-xhtml-indent-line () > "Indent the current line suitably for XHTML." > ) Thank you for your reply. Yes, I had thought of defining my own function which can then be used as the value of `indent-line-function' in nXML mode. However, I don't know how to define `', so that they apply only to text children of elements. Do you have any suggestions on that? Best regards, Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/