From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#73206: 28.2; xml comment with blank lines to do not indent correctly, nxml-mode.el Date: Sun, 29 Sep 2024 13:47:44 -0700 Message-ID: References: <87h6akknhu.fsf@gmail.com> <86v7yg6u9x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2006"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73206@debbugs.gnu.org, rpluim@gmail.com To: Eli Zaretskii , John Ciolfi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 29 22:49:44 2024 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 1sv0rQ-0000RF-3B for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Sep 2024 22:49:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sv0rH-00074e-2K; Sun, 29 Sep 2024 16:49:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sv0rD-00074H-2U for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 16:49:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sv0rC-0003kD-Ou for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 16:49:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=63fLT4IpWytENbA8fY81OjRE3xWNYfGMyeH8X4kXfR0=; b=NynHX+hk4C/Gzsf4GXmTx9WswRsKEwdpGGAuk8XrfEf1eFTwNUr19d2BTMFWb3AaoIE1JSD/zv/8fCecYswbDfzANBVNGYXwaFfpEyrhn2xDA9koo0TuCALn2MKxFfjRnaUFrG22xEtGNPhGSzh05e0tAAFb7hn6EoTZf6lNFJUyKp+ZpJEXKB2SIkpGo3HFo4EhWWNz1cwW268+3qwvqSI6+02fyOiX3QQvRcFNAorG+Zw8uMQHytOJmiUYKaLQj9KLAFTklzy3XM/BqzYsorlzs2z7mLWE7M0vNsaGSs6/ZVRUBPLP9M0XWbJ7zkM2x7l2Stvpuv2x/6FBjazfog==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sv0ri-0006b7-Fv for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2024 16:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2024 20:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73206 X-GNU-PR-Package: emacs Original-Received: via spool by 73206-submit@debbugs.gnu.org id=B73206.172764296625181 (code B ref 73206); Sun, 29 Sep 2024 20:50:02 +0000 Original-Received: (at 73206) by debbugs.gnu.org; 29 Sep 2024 20:49:26 +0000 Original-Received: from localhost ([127.0.0.1]:42266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sv0r7-0006Y0-Bb for submit@debbugs.gnu.org; Sun, 29 Sep 2024 16:49:25 -0400 Original-Received: from mail-ed1-f48.google.com ([209.85.208.48]:57790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sv0r5-0006X6-3P for 73206@debbugs.gnu.org; Sun, 29 Sep 2024 16:49:23 -0400 Original-Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5c88e6926e5so1076272a12.3 for <73206@debbugs.gnu.org>; Sun, 29 Sep 2024 13:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727642865; x=1728247665; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=63fLT4IpWytENbA8fY81OjRE3xWNYfGMyeH8X4kXfR0=; b=HhQRNqOS2GitOTMwPyYOlfpvE8+xvv8qAzScL2azeUzoTjpTM3UNOd/K3NsD1H4PWr BDMOoJsh198jGCqSidLEv382Jg4jGFtsUxufVxh5ktdxyKmONgW6FjxlQ9e8ZG7mAmww w+QDk/iQuJyEbPjKvz6jBhTBolf8oibrZSVdQXA93NFX4joo3eR3oq7mURQrcfmnSRED JoUoLNRDN+uaaWHj3D+Xz/xZgFCqeL8Onol+Zb4FQ/tdXiDVTpJI1ti8Sz+1eISjJRAz 6kzzW4iU0UpuLNzO8CZra78EvxlXJ3efhehv7i97jculyRfj7SUtdFvMe6Hg7zEP1QrO sFgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727642865; x=1728247665; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=63fLT4IpWytENbA8fY81OjRE3xWNYfGMyeH8X4kXfR0=; b=GzExDYs92FeYxU/QZDDHL1qOXMipNbhsTkSP4YOS2NfhVP/4TmDwbPPuu7eWw59FEO Rd9mntvkQP0dU25orKeRw+1E0VqT0AraxDpirp2rFnrtptUrrN1yI2tXw5FeUmXhP0Lq v8QMdijFHgzmLFcOVEV9iBmGGp/91tQA+anNND1ynHFTI3g+G7eFjOwmhH2yS291MugY z7uf8FGeoJliQQmNcUjRX+V5pTiw+LTRYhbrADljRY0+vg5mWJnzU0AgtRunR+rQPmU9 SyjNzMKL6CmDsVFOJ9JBW2Sfkj8en3OezIWjaqFAV9W8O+9uMYSOsA/0GDtC8w/oWXGq R7Aw== X-Forwarded-Encrypted: i=1; AJvYcCWo6/PtBF0qST4IeFk4mfa+rW5ypSmcy2ejniXeRbOvPuB1wocjYyp+I4MB8hFp5OOYN1IgOw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YygKOxYyKa8SbNE1IbDiFNGxW2B5cec3IqaPyPlLRNxA1FQP8sp GQBnnVlGpBoHD6etUz4G+lzhr1iexvVnkmWfuV8Odh5UC/mGDwP4wKhmqWkRUPlTTyo9ku0M32D cQKmCm2vegpFnGLeX56a9e1pRll0= X-Google-Smtp-Source: AGHT+IHSVMObhq3PRtO440bXpmUE+t6x+HHgDkIo9w2t4ZJ2iNthsC4ppIM8s1XFZ4gGLzKCQsg1K2PCcnHhu3OgEw0= X-Received: by 2002:a05:6402:26c8:b0:5c5:b9bb:c250 with SMTP id 4fb4d7f45d1cf-5c88248ee09mr9349057a12.0.1727642865338; Sun, 29 Sep 2024 13:47:45 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 29 Sep 2024 13:47:45 -0700 In-Reply-To: <86v7yg6u9x.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292669 Archived-At: Eli Zaretskii writes: > Stefan, does the patch with the regexp fix look correct to you? If we want to "keep going back until we see a non-blank line", surely the fragment should read: (while (looking-at "^$") (forward-line -1)) Since (looking-at "^[[:blank:]]*$") will match both blank lines, and lines containing only blank space. Which of the two do we want here? I think it would also be good to add one or more tests here.