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: Entering emojis Date: Sat, 30 Oct 2021 09:22:29 +0300 Message-ID: <83lf2bowuy.fsf@gnu.org> References: <87cznths5j.fsf@gnus.org> <87ilxi7531.fsf@gnus.org> <875yth7bjr.fsf@gnus.org> <8335oltgyd.fsf@gnu.org> <837ddws6p5.fsf@gnu.org> <87zgqrsdwg.fsf@gnus.org> <87v91fschk.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="40398"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, stefankangas@gmail.com, mardani29@yahoo.es To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 30 08:23:49 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 1mghmN-000AGm-Lm for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Oct 2021 08:23:47 +0200 Original-Received: from localhost ([::1]:53006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mghmM-00018Z-Lp for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Oct 2021 02:23:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mghlK-0007co-Bc for emacs-devel@gnu.org; Sat, 30 Oct 2021 02:22:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mghlK-0003nH-1l; Sat, 30 Oct 2021 02:22:42 -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=wyOeYD6Rjuj5n7tjI4jQLQXvZuQMY5tqbo81G+dIxU8=; b=dNOntVum2pCf49Udcton CQ5phhpsT1wJqClpKeXpCSZPVjYC+UjS2FupQ9OPuD7ALbVPlnm76hT+oxcy1XB4LM+xDK5wG6HwJ F9+ePIvKr2dMYwu7IuwWJc+BHhzrB0yMxISU4UtMSTiVwBg0OfwFYQW+xPTI3i0v8KyKcDHeRQ+m9 M28z4/UJieoyKq77Meb83QgFFG3e3Trl1NyxBCJx5PE9OJrmaMJ3+wdtOeedQ4I0M0Mt1aQXbFPAg 39Kt9rcXC2l5VHJNFuRDQpdgIX0/1/vc8SQzO5DooQoWuWGnNaDnOF81eJnVRFsPdSPFVDhSNC2c1 MRNrhIJm+nhaUw==; Original-Received: from [87.69.77.57] (port=4936 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 1mghlJ-00050M-HL; Sat, 30 Oct 2021 02:22:41 -0400 In-Reply-To: <87v91fschk.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 30 Oct 2021 00:16:39 +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:278259 Archived-At: > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , Stefan Kangas , > emacs-devel@gnu.org > Date: Sat, 30 Oct 2021 00:16:39 +0200 > > (string-limit "Hello, 👨🏽‍❤️‍💋‍👨🏾" 8) > => "Hello, 👨" string-limit cannot be used with strings that have wide characters and characters that are composed on display, if the result is supposed to be correct on display. string-limit assumes each character occupies 1 column on display, which is not true in those two cases. It's the same problem as with using 'length' when you want to know how many columns will a string occupy on display.