From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ted Zlatanov 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 20:32:11 +0000 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos 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="60933"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 22 22:33:22 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 1jnT86-000FjT-B1 for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Jun 2020 22:33:22 +0200 Original-Received: from localhost ([::1]:41318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnT85-00080u-Au for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Jun 2020 16:33:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnT72-0006a0-Ha for emacs-devel@gnu.org; Mon, 22 Jun 2020 16:32:16 -0400 Original-Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:35575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnT70-00029b-PF for emacs-devel@gnu.org; Mon, 22 Jun 2020 16:32:16 -0400 Original-Received: by mail-qt1-x82e.google.com with SMTP id z1so13737276qtn.2 for ; Mon, 22 Jun 2020 13:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to:date :in-reply-to:message-id:user-agent:mime-version; bh=MLE9dTLnzaVUAuTuvxIz5g9xZD4KMqGOP9vKzINxbzw=; b=HIJNI0xHTwDb7AD2BhO7IQcLy39NN+ynbuPoZNzApmkRithz8DDW7MxPCriLVqxjcm s+phlh3cdiTOHW8uh+qEodj2RKH+tv1kq7yU3k+O+IIsXjn/v+agywbOAwpx6LqfdSMJ C13551y8TNqI8TeWC8hGv3+UYXcjBV+xpA2FY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:date:in-reply-to:message-id:user-agent:mime-version; bh=MLE9dTLnzaVUAuTuvxIz5g9xZD4KMqGOP9vKzINxbzw=; b=RM77G6y+GI7Ze/S7/gz58p7Adj5LNvzhYmKY5GjVQVZBf/nTHQDgpiDJuxVLl7SmQK kS/aQLe3MJy2xbO56N+T9C6tp1inJyY6jxVDScSSoV6jXog91ziLfZukauI5UQmwBLUJ NDAynziMg9VF5IZAVncA2i6n/acbMXrAWVl43/88ywh16wVpwOZDkYi5d7uJm6KgJUux 4Cu2d38tuaCqEcpVXYwi2TblGPj+yZLNVZK9ivt/2LTAFomCR64RDrL5KvxIIQn/7fhZ 8PIIGyd4TMYT7FtQjdLFX0pG2bk+FH0UVgT4/PLsaz2qKEBAs7ai1Cy3vUPz/gpOI2Pd k2oA== X-Gm-Message-State: AOAM531v3R2IBvGG917lUpGyDjjwiyVvRzuM9WTSYwoNVTDCXZbXsEWb XKm5XvKI9glU5IQ4V7cWB2ShbBeBo0QSiA== X-Google-Smtp-Source: ABdhPJzNIdLUKx2H6tn4TzYtTooIGtA8gIl6QstM++mCoaoQRG7Bg7OwWJ0Z761mWYpOMqw8BtkdOQ== X-Received: by 2002:ac8:7a90:: with SMTP id x16mr18265065qtr.233.1592857932953; Mon, 22 Jun 2020 13:32:12 -0700 (PDT) Original-Received: from flea (c-76-28-41-155.hsd1.ma.comcast.net. [76.28.41.155]) by smtp.gmail.com with ESMTPSA id o15sm876870qko.67.2020.06.22.13.32.12 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Jun 2020 13:32:12 -0700 (PDT) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never In-Reply-To: (Stefan Monnier's message of "Mon, 22 Jun 2020 16:00:35 -0400") Received-SPF: none client-ip=2607:f8b0:4864:20::82e; envelope-from=tzz@lifelogs.com; helo=mail-qt1-x82e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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:252518 Archived-At: On Mon, 22 Jun 2020 16:00:35 -0400 Stefan Monnier wrote: >> +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) SM> I think using ?\U0001f5fa might be "natural" for a unicode char. Got it, fixed. SM> More importantly, I think we should accommodate cases where the regexp SM> needs to match some of the context, i.e. where only some submatch needs SM> to be prettified. SM> E.g. we could say that the text affected is either submatch 1 or SM> submatch 0 (where submatch 0 is used if there's (match-end 1) is nil). Got it, adjusted docs and code. Both of the above are in a single commit on my branch now. Ted