From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: emacs-27 60c84ad: ; * etc/TODO: Fix last change. Date: Mon, 02 Mar 2020 16:06:17 +0100 Message-ID: References: <20200229173124.11831.98476@vcs0.savannah.gnu.org> <20200229173125.E2D3A21167@vcs0.savannah.gnu.org> <83zhczxa2t.fsf@gnu.org> <83wo82ygv5.fsf@gnu.org> <83sgiqygbo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="88608"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 02 16:06:54 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 1j8mej-000Mvz-Kc for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Mar 2020 16:06:53 +0100 Original-Received: from localhost ([::1]:33796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8mei-0003Gr-MY for ged-emacs-devel@m.gmane-mx.org; Mon, 02 Mar 2020 10:06:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37026) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8meE-0002r9-6o for emacs-devel@gnu.org; Mon, 02 Mar 2020 10:06:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8meD-0002BI-7C for emacs-devel@gnu.org; Mon, 02 Mar 2020 10:06:22 -0500 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:42150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8meD-00029M-1X; Mon, 02 Mar 2020 10:06:21 -0500 Original-Received: by mail-wr1-x436.google.com with SMTP id z11so37675wro.9; Mon, 02 Mar 2020 07:06:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=dTsr8/2wcFJtdi5M3y+wX0WHYhcWKWKEZc60zUS8dNw=; b=uDKcCCo7b7fdD3c26jr3B8t9UU/L8JC9nf3Nz2G6H3rPLp001ve8YBV+i9RoYZKAnc QlrS6WgFSW0N9/09xIMEEKd7ix5oFVczBhb3fUPg6dG6NeH/bOvNdZQ/eM2a9Y98GK21 MjP8UjcvFvg141iYvFfBXWFcrzNg4QW7c6RijqChp1mxfI6a6htTS45ErkEEeoZbGhOG BcZZH8Xd/xwP9cnlzBizfd+2NMzIpBCyRNl3hL4Lh6ta81awZaeu4Que+Fd4+scN2P8U ERXoOhaykQUfrPXTdaoICm2hZ8EOe5rc79XlqoVNF9xGs/hz0aZJIphMo/VmMbVU97fw bJWA== 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:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=dTsr8/2wcFJtdi5M3y+wX0WHYhcWKWKEZc60zUS8dNw=; b=bH0DfJk/c8sojnSoXmy3Hbhqe+QGJFgmpB9+D78j6Cd4PD6yfUEyXCKlEayjub6jZk pCDTwUNQCX+cMPOyggz5l3VX1Np81ZvwZwW/xEyZ7QPYlYC5JiWU/jdToA3yQkWU6aOC 9yizBPvGEjBHCYlep9ctsAL5v7by7EsWYXRR8RsOkGBF6/9VIcAPq5nnB7+qrK3nm6KZ IfnSjD7EDI8ZMRR+5hTi0WmNxfshlq0QwP0IK8HhvFHFRyFp2RAMMhTDbvZQcOXwkKTt 0wUK5alWhGQzaZQmYEiBfEKhTw4FBkoABNmUpCBmL1cGuD0O5lRJfDVkV+HnbqXlrYXa MYHw== X-Gm-Message-State: ANhLgQ3EgyUqMZR9jWMhh7jyE8MLTbGfs2GPAu5N5sGE8zAaoVpSrRw1 ILYk6gRa1ibndIFaVehS6tPlsfo7 X-Google-Smtp-Source: ADFU+vvlVM+0kGT1AlUWPwIctx6bAmMEw7tCLGlHJXO2OElgelT4OLDkYhc8OskLANCNI9CfNSumjQ== X-Received: by 2002:a5d:61c8:: with SMTP id q8mr13767wrv.415.1583161579221; Mon, 02 Mar 2020 07:06:19 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id u25sm8082341wml.17.2020.03.02.07.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 07:06:18 -0800 (PST) In-Reply-To: <83sgiqygbo.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 02 Mar 2020 16:36:11 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::436 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:245162 Archived-At: >>>>> On Mon, 02 Mar 2020 16:36:11 +0200, Eli Zaretskii said: >> Date: Mon, 02 Mar 2020 16:24:30 +0200 >> From: Eli Zaretskii >> Cc: emacs-devel@gnu.org >>=20 >> You could run regexp-opt in a separate emacs invocation, then write >> the results to a file, and load that, I guess. Eli> On second thought: why do you need regexp-opt in this case? None = of Eli> the other composition rules we have (search lisp/language/*.el for Eli> composition-function-table) use that, so why is Emoji different? The ones in lisp/language/*.el were presumably written by hand, unlike the Emoji ones. Here=CA=BCs an example of the patterns we want to match for U+1F3C3 (there are longer ones): "\N{U+1F3C3}\N{U+200D}\N{U+2640}\N{U+FE0F}" "\N{U+1F3C3}\N{U+200D}\N{U+2642}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FB}\N{U+200D}\N{U+2640}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FB}\N{U+200D}\N{U+2642}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FC}\N{U+200D}\N{U+2640}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FC}\N{U+200D}\N{U+2642}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FD}\N{U+200D}\N{U+2640}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FD}\N{U+200D}\N{U+2642}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FE}\N{U+200D}\N{U+2640}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FE}\N{U+200D}\N{U+2642}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FF}\N{U+200D}\N{U+2640}\N{U+FE0F}" "\N{U+1F3C3}\N{U+1F3FF}\N{U+200D}\N{U+2642}\N{U+FE0F}" Now we could add 12 rules here, one for each pattern, or 1 rule with all the patterns as alternatives, or we could run regexp-opt and add one optimized pattern. Or we could take a leaf out of FE0F's book, and just do: "\N{U+1F3C3}...?\N{U+FE0F}" but I thought that since this runs inside redisplay, we should strive to make the patterns as specific as possible. Robert