From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nathan Eagleson Newsgroups: gmane.emacs.bugs Subject: bug#16820: 24.3; nxml comment block indentation issue Date: Mon, 5 Oct 2020 23:09:01 -0400 Message-ID: References: <3518A4CF-32D9-4C35-8D13-DF77C770FAFD@nateeag.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000586f2905b0f7ec19" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3238"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 16820@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 06 05:10:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPdMh-0000jB-UT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Oct 2020 05:10:12 +0200 Original-Received: from localhost ([::1]:52972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPdMg-0003QE-LD for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 23:10:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPdMY-0003Q2-LI for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 23:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPdMY-0005JY-BS for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 23:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPdMY-0007xB-6H for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 23:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nathan Eagleson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 03:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16820 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 16820-submit@debbugs.gnu.org id=B16820.160195375930517 (code B ref 16820); Tue, 06 Oct 2020 03:10:02 +0000 Original-Received: (at 16820) by debbugs.gnu.org; 6 Oct 2020 03:09:19 +0000 Original-Received: from localhost ([127.0.0.1]:50976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPdLr-0007w9-Hs for submit@debbugs.gnu.org; Mon, 05 Oct 2020 23:09:19 -0400 Original-Received: from mail-ot1-f42.google.com ([209.85.210.42]:42439) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPdLp-0007vs-Ne for 16820@debbugs.gnu.org; Mon, 05 Oct 2020 23:09:19 -0400 Original-Received: by mail-ot1-f42.google.com with SMTP id m13so10910253otl.9 for <16820@debbugs.gnu.org>; Mon, 05 Oct 2020 20:09:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AeVK2HrW6Gf3G0U2DJOChwVzBph3KXSA8jlRP8uxeYQ=; b=lkvke8ZBXwEV7D4bQz38GlktGnXNm+q4GFCCLsG3A5jzDRgXt4aO1Z9hBciqqcKWYE NSvPCnsLoJX0ZXvlpw6o8Zt53Gysh39sot58YtcB9OOKavNs8LIkWknkBWaVAVigNPO4 4ySjW17yylCuR2pAnNSBtQ9jdD267XFbq1doSFh7Kha5ZaC2ES7AKmFTnROu30Ne4l8r B1wRLj8jR7hl2l1zztpRTnogpQCYo4etP/8vy0cQm5H8sFIveHYNFu+mFToIsjspR2rA 4HqIkHCabgj7N7nfdgRkiM8TR90USQl6Ffck9P35sjYtyQOGzpQk4amBdzpqNL3qSvNh ZZyQ== X-Gm-Message-State: AOAM533bqCSm38LiHBaM4M/d53jwe2RiBY6V682KN61MLdBQkD6K3uu/ bXg5HVjN6HACgmrykNHrKvY247YkV1rnzigcFW9FY2uk X-Google-Smtp-Source: ABdhPJxBuVKKF76sE5a4ho+6ucWWerVEvRPlGsfO392bY3lclBTCTq4ssJodasSGP0H54xDBUo7RoWFFItPowFZxczM= X-Received: by 2002:a05:6830:134c:: with SMTP id r12mr1538629otq.240.1601953752181; Mon, 05 Oct 2020 20:09:12 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189864 Archived-At: --000000000000586f2905b0f7ec19 Content-Type: text/plain; charset="UTF-8" Sorry, I missed your original request. This seems like a bug to me because multi-paragraph comment bodies are usually indented to align with the comment start token. If you strip trailing whitespace on save, this behavior results in bad comment indentation, something like: This is all from distant memory, so apologies if I'm describing it incorrectly. -Nate On Thu, Oct 1, 2020 at 8:12 AM Stefan Kangas wrote: > tags 16820 + wontfix notabug > close 16820 > thanks > > Stefan Kangas writes: > > > Nate Eagleson writes: > > > >> nxml-mode indents multiple lines in a comment block to match the > >> preceding line's indentation, even for blank lines. It should ignore > >> blank lines when determining indent level. > > [...] > >> > >> To reproduce: > >> > >> Start emacs with -Q. > >> > >> Create a new buffer. > >> > >> Start XML mode: M-x xml-mode > >> > >> Enter the following text: > >> > >> > >> > >> > >> > >> Put the cursor before '-->' and press Tab. It will indent to the same > >> level as '