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.bugs Subject: bug#56237: 29.0.50; delete-forward-char fails to delete character Date: Sun, 26 Jun 2022 20:26:56 +0300 Message-ID: <83tu878hen.fsf@gnu.org> References: <87v8sn9zo4.fsf@gmail.com> <83zghz8kk3.fsf@gnu.org> <87mtdz9ysx.fsf@gmail.com> <83y1xj8jqb.fsf@gnu.org> <87fsjr9xs6.fsf@gmail.com> <83v8sn8ir9.fsf@gnu.org> <87bkuf9wx4.fsf@gmail.com> 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="20830"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56237@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 26 19:28:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1o5W3P-00058o-Pw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jun 2022 19:28:12 +0200 Original-Received: from localhost ([::1]:57096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5W3O-0002x8-RK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Jun 2022 13:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5W3G-0002wk-GQ for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 13:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55035) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5W3G-0002y5-8G for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 13:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5W3G-0000BT-3D for bug-gnu-emacs@gnu.org; Sun, 26 Jun 2022 13:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jun 2022 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56237 X-GNU-PR-Package: emacs Original-Received: via spool by 56237-submit@debbugs.gnu.org id=B56237.1656264426637 (code B ref 56237); Sun, 26 Jun 2022 17:28:02 +0000 Original-Received: (at 56237) by debbugs.gnu.org; 26 Jun 2022 17:27:06 +0000 Original-Received: from localhost ([127.0.0.1]:48932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5W2M-0000A4-GJ for submit@debbugs.gnu.org; Sun, 26 Jun 2022 13:27:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5W2I-00009W-1M for 56237@debbugs.gnu.org; Sun, 26 Jun 2022 13:27:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5W2C-0002tH-OQ; Sun, 26 Jun 2022 13:26:56 -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=6BP8DNQt1QF4ugRqTnVDkZ5vl2isqjnYpgnZY3BOeLs=; b=Fztx5cgXA3ZePephS9U/ kDRgbfaZOeGIZ2KCsbFQXr4Cahg1lEBy1vxGOLRLH1aXpkxsOhjTQOQ2+ZEOfDDKY9xq+i5QVcCzd 19IpQDTQsJvrf9a73R7tnw70BLtIQmYwskCqKPff5BZfMNaMUadYNM72qo46BuuENBL5SawUAOERU gjhUQD3INOBZ/9KhDgPvwXdV1k/6ZGUpwrTJSkFRvOKFCUSL5KPR1b60uFg8/O6odXppmVW0yQvzH 3a48ZHm0lSZxDBrCd/7ChykPuq8vmdPaIYwWAqDAPvKz7t59trijpzU9urj32Bg5KFTcIAPvxcO+q LcvfjwWxYimsbg==; Original-Received: from [87.69.77.57] (port=1633 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 1o5W2C-0008UE-4I; Sun, 26 Jun 2022 13:26:56 -0400 In-Reply-To: <87bkuf9wx4.fsf@gmail.com> (message from Visuwesh on Sun, 26 Jun 2022 22:36:31 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:235384 Archived-At: > From: Visuwesh > Cc: 56237@debbugs.gnu.org > Date: Sun, 26 Jun 2022 22:36:31 +0530 > > > Invoke find-composition, and you will see that it returns a single > > composition there. > > If find-composition is indeed right, then the return value is very > unintuvitive as a native speaker: ப் and போ are two separate characters > and combining them into a single cluster is weird... Maybe you are right, but then Someone(TM) will have to either modify find-composition or explain how to interpret its return value differently from what we do now. What is now in delete-forward-char expresses my level of knowledge in this area, which admittedly is limited. > Am I right in thinking that a grapheme cluster is made up of characters > that can be grouped together to produce a single "letter" on screen? The fact that you quote "letter" already means that we have terminology problem, because I don't think you will be able to define it rigorously enough for this purpose. I don't think we have a definition of a grapheme cluster in Emacs terms that is always correct, given that these decisions are in many cases delegated to the shaping engine. > If so, the behaviour of find-composition is still confusing since I > need to say C-f twice to move over ப்போ. Could be. If it confuses too much, you are free to use delete-char to delete one codepoint at a time. What delete-forward-char codes is a convenience feature, so if it is sub-optimal in some rare cases, that's not a catastrophe, I think.