From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Moving point after character when clicking latter half of it Date: Thu, 13 Jul 2023 16:25:02 -0700 Message-ID: <0ADC97E7-FFC7-41D3-9A27-69A6B802DBD3@gmail.com> References: <2255158.iZASKD2KPV@silef> <21946289.EfDdHjke4D@anduin> <87mt02ar4e.fsf@yahoo.com> <3242369.aeNJFYEL58@anduin> <76D3E9B6-C3BE-4E41-B228-AA252AAD4A11@gmail.com> <83h6q85qkf.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) 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="10254"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Moritz Maxeiner , Po Lu , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 14 01:26:12 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 1qK5hK-0002Oo-UP for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jul 2023 01:26:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qK5gb-0002zm-Bs; Thu, 13 Jul 2023 19:25:25 -0400 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 1qK5gT-0002zL-9G for emacs-devel@gnu.org; Thu, 13 Jul 2023 19:25:18 -0400 Original-Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qK5gR-0006r9-Rq; Thu, 13 Jul 2023 19:25:17 -0400 Original-Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-668709767b1so961852b3a.2; Thu, 13 Jul 2023 16:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689290714; x=1691882714; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=W2l1po1NBTbNp/bdHD54htkfe6uk2AxPNSSnNICZ2XA=; b=KMjZ8ABBV+safZPcjtQYYkdRCYSn4+NrGFVUMnjFbKwG2BEjZ6jXArKuAu2P3W5Vf7 k5ml9blnc5iNNe3IfZ+KMHs4ka98BnVbG7ORtDmGVyncmRQe0eTr+zMVWYK04JxjQYvO AinMS44OQlyNW3Qc7cxvf5fC0VmXzZKnRyoZO+93IadWwVTY+IMsoAopVTL7PxZieHZC hRh2JnJ3D4DYnTHk37dPvpPP1KZJrhw4CBnd3R22BeZDW7lgXffD7nBm5D//flVpglnC V4+D1vJRFIF/2FYsVzMp3cEE+rLJNtjraQfnLTUflq+dJlhIPJppAtmCzsBwrHk7rwmg LNmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689290714; x=1691882714; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W2l1po1NBTbNp/bdHD54htkfe6uk2AxPNSSnNICZ2XA=; b=NYO6jOQ5wL8O6plmbW87dbaNmj+wPZiletKBaThaJQneFIEUQgbXG/BrF7UYjskC1/ QRnpsQUOlQldVLGINbxVZ0RPwxkN/IXRjoFM0DBl7bPaU93KbINYAFEY6V2MbsGAYTCH GjqLflqaOtSX4deRX5iS+hjJMtccsEfM2SJ3aKpxqk/bm9rhkpHJKGdpDBY4RYi5TOul oAwRmOhP6Gp9K4qiXXvV6X4zoSngXEZ3pTwRWTbjzLUWcoLTgLFnKiCiW0+1ceNnArKl Ves6ow8QTqHprO4JEznutfmtLb7mBxXokQFufgwmOs7XpXzUvkFJ6q7gC6japjUJYS9w DIsw== X-Gm-Message-State: ABy/qLa4vXKzr4CSvB7N3EVKGex9nP/3E3gXeEdDzaB5DTHSvJwirq2l D/UFDoYraUMfhKR8oUnZaPvD0vuhI6I= X-Google-Smtp-Source: APBJJlFa18mcACQa8T17CgwYUKQHzdHa1HAVmjFULGMqXW4g4mUMC7g9OgDAVVIgpT+/83aQk2wfjQ== X-Received: by 2002:a05:6a20:13d3:b0:126:a771:b792 with SMTP id ho19-20020a056a2013d300b00126a771b792mr2086942pzc.14.1689290713766; Thu, 13 Jul 2023 16:25:13 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id u5-20020a62ed05000000b00668821499c3sm5894829pfh.156.2023.07.13.16.25.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2023 16:25:13 -0700 (PDT) In-Reply-To: <83h6q85qkf.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.600.7) Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=casouri@gmail.com; helo=mail-pf1-x430.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, T_SCC_BODY_TEXT_LINE=-0.01 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:307835 Archived-At: > On Jul 12, 2023, at 10:27 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Wed, 12 Jul 2023 14:17:41 -0700 >> Cc: Po Lu , >> Eli Zaretskii , >> emacs-devel@gnu.org >>=20 >> Sorry for joining late into the discussion. But I wonder if a Elisp = solution would suffice? Someone had requested this feature to me in the = past and this is my solution at the time. >=20 > Thanks. >=20 > I like this solution less, since it advises primitives, something that > should be the last resort. Also, handling layout in Lisp is always > tricky; for example, posn-* functions are not very reliable in some > obscure/rare use cases. The solution in the display code is simple > and very local, so I think it should be preferred. That=E2=80=99s good to hear! Yuan=