From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: describe-char on emoji sequences Date: Wed, 27 Oct 2021 16:57:46 +0300 Message-ID: <83a6iuwox1.fsf@gnu.org> References: <87cznths5j.fsf@gnus.org> <878rygj4gt.fsf@gnus.org> <83wnm0zz0q.fsf@gnu.org> <874k94j3rn.fsf@gnus.org> <83v91kzydh.fsf@gnu.org> <87tuh4holf.fsf@gnus.org> <822aec9d01909cecfc6c@heytings.org> <87a6iwhltf.fsf@gnus.org> <83tuh4zfg5.fsf@gnu.org> <87y26gfobr.fsf@gnus.org> <87tuh4f1ie.fsf@gnus.org> <87lf2fg44h.fsf@gnus.org> <87h7d3g2uu.fsf@gnus.org> <83bl3bybm3.fsf@gnu.org> <878ryfr9w0.fsf@gmail.com> <878ryfg07k.fsf@gnus.org> <874k93r869.fsf@gmail.com> <87r1c7d28k.fsf_-_@gnus.org> <83zgqvwpq2.fsf@gnu.org> <87mtmvd13h.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16869"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 27 16:48:45 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 1mfkEO-0004A4-H0 for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Oct 2021 16:48:44 +0200 Original-Received: from localhost ([::1]:49548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfkEM-0006eo-Sh for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Oct 2021 10:48:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfjR8-00038J-Pc for emacs-devel@gnu.org; Wed, 27 Oct 2021 09:57:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37810) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfjR7-0004Oc-B8; Wed, 27 Oct 2021 09:57:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=t0zVTh7w/0DZO1D7MFbsCBcIBW/R0a8PLNvyFUof00c=; b=eID2Pgck/+UDHJnlCT6q 1/rhcy8nE3f3Eo34DryDT1ikDlC30NvCgiTojtdj+coeIbxBvEoT894s3F8HcmqnHIDhEM3cCx8EE J5I1Oi7GW6/0F+qWIDsj1jmdzv+rExYGf5bwJh2mqYqcb4atv/yz/OWEes4Hqg2HA0r3hreuQJ2qk K63XSwExhx9lht0miEEd+bQZNdt8hXXoJSVisW/3bENZhWQPQLJG+DaQkNpQY2X3iDsb5Oq62MLQf RtrF3WB2PmZzRPekavDcZt/pYq7F+6huMFtcb1eL+z/w5LnHgGrzZKCsBWwE0McZah7bZltr6TTI2 CR4kSof6QPuzQw==; Original-Received: from [87.69.77.57] (port=2278 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfjR4-0004Om-Qb; Wed, 27 Oct 2021 09:57:48 -0400 In-Reply-To: <87mtmvd13h.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 26 Oct 2021 21:42:42 +0200) 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:277968 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Tue, 26 Oct 2021 21:42:42 +0200 > > Eli Zaretskii writes: > > >> 💂🏾‍♂️ > > [...] > > > Yes, it is correct: it reports on the character at a certain buffer > > position (you elided that part). > > No, the glyph in question is the one at the start of the email: 💂🏾‍♂️. The command is describe-char, and it reports on the character at point: (describe-char POS &optional BUFFER) Describe position POS (interactively, point) and the char after POS. > > If you want a command that could show how to input a sequence of > > characters that were composed, it should be a different command, and > > the way to type such a sequence cannot be automatically generated, > > because how would Emacs know that there's a particular command that > > would produce such a sequence? > > It's just a sequence of Unicode code points, surely? (And the help > buffer lists them, but not in the format needed to enter them.) How can Emacs know that there is a special command that can be used to insert this entire sequence of codepoints in one go? > >> And the name is "man guard: medium-light skin tone", which we should > >> probably output somewhere. > > > > That's not a character, while this command describes a character. > > Well... it's a glyph, and the command describes the glyph perfectly > (i.e., all the elements that are part of it), but it doesn't output the > resulting name for the glyph. Because it doesn't necessarily have a name. This is a general-purpose command, it is capable of describing any result of any character composition, including those which yield more than one glyph and glyphs that have no name. (Technically, the correct terminology is "grapheme cluster", not "glyph".) We could, of course, program describe-char to give special treatment to glyphs produced from the Emoji sequences, but that has to be coded explicitly and specially for Emoji, because I don't see how you can do that for an arbitrary composition.