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#51766: 29.0.50; Return value of buffer-chars-modified-tick changes when buffer text is not yet changed before inserting a character for non-latin input methods Date: Fri, 17 Jun 2022 13:50:04 +0300 Message-ID: <838rpvpns3.fsf@gnu.org> References: <87mtmalrs1.fsf@localhost> <837dde200c.fsf@gnu.org> <87k0helmig.fsf@localhost> <831r3m1tpk.fsf@gnu.org> <8735o1r31q.fsf@localhost> <834k8hzi10.fsf@gnu.org> <87zgq9pmb6.fsf@localhost> <831r3lzfk4.fsf@gnu.org> <87wnldpk5x.fsf@localhost> <83zgq9xv1y.fsf@gnu.org> <87r1bkpgjw.fsf@localhost> <87y1xv7ggf.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51766@debbugs.gnu.org, monnier@iro.umontreal.ca To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 17 12:51:56 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 1o29Zz-0009Jx-B4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Jun 2022 12:51:55 +0200 Original-Received: from localhost ([::1]:54452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o29Zx-0001Cm-9K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Jun 2022 06:51:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o29Z8-0001CY-1y for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2022 06:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o29Z7-0000Uy-Op for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2022 06:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o29Z7-0004ZO-NQ for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2022 06:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jun 2022 10:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51766 X-GNU-PR-Package: emacs Original-Received: via spool by 51766-submit@debbugs.gnu.org id=B51766.165546301717511 (code B ref 51766); Fri, 17 Jun 2022 10:51:01 +0000 Original-Received: (at 51766) by debbugs.gnu.org; 17 Jun 2022 10:50:17 +0000 Original-Received: from localhost ([127.0.0.1]:43860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o29YO-0004YI-CF for submit@debbugs.gnu.org; Fri, 17 Jun 2022 06:50:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o29YM-0004Xx-Nt for 51766@debbugs.gnu.org; Fri, 17 Jun 2022 06:50:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o29YH-0000EC-DU; Fri, 17 Jun 2022 06:50:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9OlnoOg214spvTJdrJzzHFl2FyY/XqpIDI102T8sse4=; b=WPAXM80gIsGm yodlEvwb2w2sz9QPm2m8RhFWGeCkH4/k8H8f2R/9zt+HUZ1OADZ2DMl85eFFD0001uJr0eN6Iq3T2 1LSP2EAbpWSxmTr7ybrTm3o58/ajy7chy1pZ/KpWzM+yd6aWKXuPH7AaDt44lz1/2VK2Yf7QmVie3 uDDuc8Ix13mDj4WsKA9PUbN5YHPMChKh0tOvVbmwqtbTFD+2GyWjcaCIfQCu5IjoGkiGhEnXhOO8A FU1mzSuqjq/tt6JR43Z0fOSGLm/hFw0/995T6ErcRIiXtvjz4eumS+afq5ivKIhJOIlC4iu155bQp RSPWr5TicRjNttwG8VqP+w==; Original-Received: from [87.69.77.57] (port=4126 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 1o29YG-0001AO-Qp; Fri, 17 Jun 2022 06:50:09 -0400 In-Reply-To: <87y1xv7ggf.fsf@localhost> (message from Ihor Radchenko on Fri, 17 Jun 2022 18:05:36 +0800) 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:234673 Archived-At: > From: Ihor Radchenko > Cc: Eli Zaretskii , 51766@debbugs.gnu.org > Date: Fri, 17 Jun 2022 18:05:36 +0800 > > Combined with the issue revealed in this bug report, I am left with no > Emacs tools to handle the problematic buffer modifications. You aren't supposed to try to do that in Lisp. I suggest to describe a generalization of the use cases you are aware of which you think need this, and then we could think about implementing some or all of it in C. > valign relies on disabling modification hooks because it is otherwise > difficult to figure out pixel width of a string in current buffer: > https://github.com/casouri/valign/issues/30 That discussion is very short and lacking in detail, but up front, why doesn't valign use the primitives we provide for determining the pixel width of a string?