From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: minor mode for highlighting character classes such as non-ascii (bug 47455) Date: Tue, 01 Jun 2021 23:51:17 +0300 Organization: LINKOV.NET Message-ID: <87eedlcplm.fsf@mail.linkov.net> References: <23925.69978.953904.24758@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30326"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: "Roland Winkler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 01 22:59:52 2021 Return-path: Envelope-to: ged-emacs-devel@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 1loBUO-0007oy-E6 for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Jun 2021 22:59:52 +0200 Original-Received: from localhost ([::1]:52126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loBUN-0001Oi-GG for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Jun 2021 16:59:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loBTH-0007Cu-3L for emacs-devel@gnu.org; Tue, 01 Jun 2021 16:58:43 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:36799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loBTF-0005zH-9M; Tue, 01 Jun 2021 16:58:42 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id E767C100006; Tue, 1 Jun 2021 20:58:38 +0000 (UTC) In-Reply-To: <23925.69978.953904.24758@gargle.gargle.HOWL> (Roland Winkler's message of "Tue, 1 Jun 2021 11:16:53 -0500") Received-SPF: pass client-ip=217.70.178.231; envelope-from=juri@linkov.net; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270251 Archived-At: > In the context of bug 47455 the idea emerged that it can be useful > to have a minor mode that highlights non-ascii characters. I want > to ask hear for feedback: does such a mode already exist? Can it be > useful to have this minor mode more general such that the highlighted > character classes become configurable? Are there possible use cases > for this beyond non-ascii characters? The GNU ELPA package 'markchars' has options to highlight non-ASCII space chars, non-ASCII hyphen chars, and other customizable patterns, e.g. "[[:nonascii:]]+".