From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: scratch/tzz/auth-source-reveal-mode f16a4c8 2/3: Support regular expressions and API for prettify-symbols-mode Date: Mon, 22 Jun 2020 16:00:35 -0400 Message-ID: References: <20200622191653.26453.39420@vcs0.savannah.gnu.org> <20200622191655.E1C4E20A26@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="51053"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Ted Zlatanov To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 22 22:02:04 2020 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 1jnSdn-000DBS-Sl for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Jun 2020 22:02:03 +0200 Original-Received: from localhost ([::1]:54296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnSdm-0003Wi-Q5 for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Jun 2020 16:02:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnScU-0002xd-C7 for emacs-devel@gnu.org; Mon, 22 Jun 2020 16:00:42 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:54317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnScS-0005BF-8E for emacs-devel@gnu.org; Mon, 22 Jun 2020 16:00:41 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BF90B80A5E; Mon, 22 Jun 2020 16:00:38 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B576C807F4; Mon, 22 Jun 2020 16:00:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1592856036; bh=LH24PNsVuLF26N5/eV+lF2LhnMYBN9nXVu9aiqJ8LPw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Kr2NepHdroXqQ5uTDWJmlFQL602PZhH5MwCBxxhx3Yhk3Z7TrZTm31j+Mmpry3f+8 RqcsGKge1/KANOmHTklsaBKb632Efcqu6vsZN9S7jdHaScyrXn9b+c1uoFLL7dBwNl aKGdtcRRK/hMkpaeIM+CUGoa0K+QV2xUYbh9mywhMEXvETJne0UjwQ9jTq9ZW5fj/n DzmrqGd/HojcXD1T/74CwyRlBWdlQf+5XNHPH2eazZFk1q39tHdFluum6o51aJ9nFU 9i02/MF7EK0Van6PSueLDLV7JG776M3hp6VauVk4mmuvjirzzCnaFQo1m7BjOHQVwY /E3GLUOX7EJKQ== Original-Received: from alfajor (unknown [108.175.228.207]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 89827120795; Mon, 22 Jun 2020 16:00:36 -0400 (EDT) In-Reply-To: <20200622191655.E1C4E20A26@vcs0.savannah.gnu.org> (Teodor Zlatanov's message of "Mon, 22 Jun 2020 15:16:55 -0400 (EDT)") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/22 14:56:43 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:252516 Archived-At: > +For example: \"abc[123]\" matching \"abc1\", \"abc2\", or > +\"abc3\" could be mapped to the Unicode WORLD MAP. Note again the > +IDENTIFIER is an arbitrary Lisp symbol. > + (my-worldmap \"abc[123]\" 128506) I think using ?\U0001f5fa might be "natural" for a unicode char. More importantly, I think we should accommodate cases where the regexp needs to match some of the context, i.e. where only some submatch needs to be prettified. E.g. we could say that the text affected is either submatch 1 or submatch 0 (where submatch 0 is used if there's (match-end 1) is nil). Stefan