From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= Newsgroups: gmane.emacs.bugs Subject: bug#53539: Feature request/suggestion: option to highlight sequences of newlines in whitespace mode Date: Tue, 25 Jan 2022 22:06:45 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000efe18505d671d204" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32144"; mail-complaints-to="usenet@ciao.gmane.io" To: 53539@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 26 02:17:32 2022 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 1nCWwF-0008EG-Jg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 02:17:31 +0100 Original-Received: from localhost ([::1]:44840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCWwE-00088j-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jan 2022 20:17:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCWvn-00088a-Ny for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 20:17:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCWvm-0007td-5h for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 20:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCWvm-0000Wd-0e for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 20:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jos=C3=A9_?= =?UTF-8?Q?J=C3=BAnior?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jan 2022 01:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53539 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16431598131995 (code B ref -1); Wed, 26 Jan 2022 01:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jan 2022 01:16:53 +0000 Original-Received: from localhost ([127.0.0.1]:50575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCWvb-0000W5-QE for submit@debbugs.gnu.org; Tue, 25 Jan 2022 20:16:53 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCWmU-0000HW-Sr for submit@debbugs.gnu.org; Tue, 25 Jan 2022 20:07:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCWmU-0005iW-Op for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 20:07:26 -0500 Original-Received: from [2607:f8b0:4864:20::932] (port=40607 helo=mail-ua1-x932.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCWmS-0006f5-Tn for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 20:07:26 -0500 Original-Received: by mail-ua1-x932.google.com with SMTP id w21so40597619uan.7 for ; Tue, 25 Jan 2022 17:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=BmCcInI4CLwLxHRhDG7ih8Um95bOZtDDP5/mJ79711s=; b=kyWjfvSyk7rFCezXpWBN+yZ6ldqAkTfcrdmgMLKJhmuDG6K3bnkRc380NXd84H7gBW E9xcB6Aef9CGQW6vddlH+mDZwIaZqHCbx28R0zsuuv9PbGDrgVzppJVXCjJwsq2yRQhC pq1gVbjjBSNI4daWRhbiYloWUXwrelFoyC0FhK/bGtCg66CqIjhJYQEtShLJaEQRsjNi amXHi+SMhlCyR4bMY/yB3YfwhOLbJ14wPU0xMNeeudRhARlaNlpCdLduy+xt6WkRdZfb V+Qj2iHLWTl0kvBcv9b+ZmI3mg4JBkHFywl6FpW95icquBuHupb3ZVA3z/5ortyBqEGk 53RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BmCcInI4CLwLxHRhDG7ih8Um95bOZtDDP5/mJ79711s=; b=ZpC+oRKWjam4COAMIBRM05LkBNWLPSI82sr3jmJBb1zDzCfTWJC77qRQINV7ll9IS1 0uX/3OzA+VP8TvZwsXeF5fudC6JUH3tOoIh9WkPZchUMutjqr5/O1TWlMN+2NkbvFE8z 4+JigaOdUCaODWXBvZr5zk4rliegkjEddA1T6E49zH/agSkauBgxX6+7+n/wUod1LuVl Y78zX7OyxvOxab6FLtGutNEdhEfpU9xg71uwDgq41zNyiknzONZbz9E9VULzSaL8jeye co4CLzxaGxb/1PQuu7B4r+VAEerf6IxjpCuFEvFAC3BBz8XuGTvLN3OP8n4G0qygQ9xw 0m5g== X-Gm-Message-State: AOAM532agoVvIirLoOgEqgboBeJYHqIhN1k8jrzXZocxI4slK4YsAKKO VvQ16SHasN8M5G7cwQyfb8abjwCBlovqKAM9gLH6PCL9 X-Google-Smtp-Source: ABdhPJzOpWP4slF01IDT6YCkMY59i+X8qb/jFADTs+H9fEtP/RzkezcUxOYOV52mBnm3h4Y+r9cHZqRrVirDiTjmqy0= X-Received: by 2002:a05:6102:11f4:: with SMTP id e20mr3667907vsg.21.1643159242136; Tue, 25 Jan 2022 17:07:22 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::932 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::932; envelope-from=jjnilton@gmail.com; helo=mail-ua1-x932.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 25 Jan 2022 20:16:50 -0500 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:225232 Archived-At: --000000000000efe18505d671d204 Content-Type: text/plain; charset="UTF-8" Hi, Would be good to have an option to highlight sequences of whitespaces in the whitespace-mode options. Something like the "Whitespace Trailing" but for newlines. For example: a \n <--- would highlight this \n <--- would highlight this b \n <--- this wouldn't be highlighted I made a workaround by editing the "Whitespace Trailing Regexp" variable to also match sequences of newlines, but it would be good to have it separated in another variable, and available by default, as one may need to highlight newlines but not whitespaces, or vice versa. Thanks. --000000000000efe18505d671d204 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Would be good to have an= option to highlight sequences of whitespaces in the whitespace-mode option= s. Something like the "Whitespace Trailing" but for newlines.

For example:

a
\n = <--- would highlight this
\n <--- would highlight this<= /div>
b
\n <--- this wouldn't be highlighted
=

I made a workaround by editing the "Whitespace Tra= iling Regexp" variable to also match sequences of newlines, but it wou= ld be good to have it separated in another variable, and available by defau= lt, as one may need to highlight newlines but not whitespaces, or vice vers= a.

Thanks.
--000000000000efe18505d671d204--