From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: describe-char-fold-equivalences Date: Mon, 09 Jan 2023 16:54:01 +0100 Message-ID: <87a62rhffq.fsf@gmail.com> References: <87ilhfhjxh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29240"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuri Khan , emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 09 16:54:33 2023 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 1pEuTp-0007WG-L1 for ged-emacs-devel@m.gmane-mx.org; Mon, 09 Jan 2023 16:54:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEuTQ-0002uF-7u; Mon, 09 Jan 2023 10:54:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEuTO-0002tk-D4 for emacs-devel@gnu.org; Mon, 09 Jan 2023 10:54:06 -0500 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEuTM-0003Yx-Vh for emacs-devel@gnu.org; Mon, 09 Jan 2023 10:54:06 -0500 Original-Received: by mail-wm1-x32a.google.com with SMTP id k22-20020a05600c1c9600b003d1ee3a6289so7245321wms.2 for ; Mon, 09 Jan 2023 07:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=bSrrq1E7z9h8DwfRUWdEV7NIJzWakOKO6tqJRvVGeus=; b=b8/pXB+KmFz0q7rwP5lICBO7opiHvsIFrs4FbFXTPak0SOxsQh2Rb/s95JHViTPcLG ANvspe6fGYKBjPVAmMfLoehaqsQwEiojXJ2FUhyhBVfVQFqYqiQdPEoKfzA2u3NnZu+e g55QMUdLR1JFrBXO12zYlPmNpVGVU6AzvTVrC2yfgQylm9S4CUmr6BLUsoh8wOFC/RXN J11EPjhgK6j5rHbCDHoXc0alUM+tI04Uaa0f9vWMjHnjb4M4RLyBBOj0nDnIUeXsyHBO b3KZcZjX6snY437Hw+s1qibAvmBL0xHjVYH/Q6j6qhH1ot1XS+hoG6qVQspUZRxvCxlB Lbpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bSrrq1E7z9h8DwfRUWdEV7NIJzWakOKO6tqJRvVGeus=; b=L8Kk5kcuNuYNcw3s0mXdgoonP0p3y58aUfuzmb1w3KjM4NlKAqf/dHX+lymImgZZZV md4ggsg8nxMEPLiskoYkb/YZDrO0JVEw+IVv48PFIynyS2MDwgRN12fYJJQpfsruqCOY 9YzfViUamXojhkPOoqzsr/eE+axKr/gy06IH5BegMHUWtoMOmVCDd8oeVrv2KiYf4TQM pg5fkd7Gcb8ClRzg/N4Dv70JaMH7licKEgHkfzhW6b+iEntlWgU/0a13yohw/0kMdHzj 5Xy7RRxIhEP2tcytKbibvmDlxodVwlwjfVM6amxgnUzInVkyz6NSR5dGy/rsA+SejXGK CciA== X-Gm-Message-State: AFqh2kplVhtC5BjQ9lf/YI+t9IEen1tahTfJe5lyat/ACw+SjBXdQjZW 2/SwxFsMchEY5neXqsg7eyeEoC26pkQ= X-Google-Smtp-Source: AMrXdXth3st1HGuZUVFrnLOqmSl6URXABnm5Yg1Kbp6gZhF3BcRaAcJP+qO8lA/eGeRtY01yj/ASUQ== X-Received: by 2002:a05:600c:3209:b0:3cf:5fd2:87a0 with SMTP id r9-20020a05600c320900b003cf5fd287a0mr46132098wmp.40.1673279642501; Mon, 09 Jan 2023 07:54:02 -0800 (PST) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id he5-20020a05600c540500b003d9ed40a512sm6442758wmb.45.2023.01.09.07.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 07:54:01 -0800 (PST) In-Reply-To: (T. V. Raman's message of "Mon, 09 Jan 2023 07:31:17 -0800") Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32a.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302300 Archived-At: >>>>> On Mon, 09 Jan 2023 07:31:17 -0800, "T.V Raman" sa= id: T> thanks for the explanation. T> Perhaps we could make that more discoverable when reading the output= of T> that function ie the doc string I complained about? Yes. Something like this for emacs-29? diff --git a/lisp/char-fold.el b/lisp/char-fold.el index eff2f5558b3..f1da7997407 100644 --- a/lisp/char-fold.el +++ b/lisp/char-fold.el @@ -436,7 +436,24 @@ describe-char-fold-equivalences describe all available character equivalences of `char-fold-to-regexp'. Optional argument LAX (interactively, the prefix argument), if non-nil, means also include partially matching ligatures and -non-canonical equivalences." +non-canonical equivalences. + +Each line of the display shows the equivalences in two different +ways separated by a colon: + + - as the literal character or sequence + - using an ASCII-only escape syntax + +For example, for the letter 'r', the first line is + + r: ?\N{LATIN SMALL LETTER R} + +which is for the requested character itself, and a later line has + + r=CC=B1: ?\N{LATIN SMALL LETTER R}?\N{COMBINING MACRON BELOW} + +which clearly shows what the constituent characters are." (interactive (list (ignore-errors (read-char-by-name (format-prompt "Unicode name, single char, or hex"