From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Moving point after character when clicking latter half of it Date: Sun, 9 Jul 2023 20:58:28 +0700 Message-ID: References: <2255158.iZASKD2KPV@silef> <83fs5xbni9.fsf@gnu.org> <2160764.irdbgypaU6@anduin> <83fs5x9q1v.fsf@gnu.org> Mime-Version: 1.0 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="20516"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Moritz Maxeiner , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 09 15:59:24 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 1qIUwe-00057R-DH for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jul 2023 15:59:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIUw4-0007a6-3i; Sun, 09 Jul 2023 09:58:48 -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 1qIUw2-0007Zn-HY for emacs-devel@gnu.org; Sun, 09 Jul 2023 09:58:46 -0400 Original-Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIUw1-00006m-7c; Sun, 09 Jul 2023 09:58:46 -0400 Original-Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-76571dae5feso338902385a.1; Sun, 09 Jul 2023 06:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688911120; x=1691503120; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BymuBq1prCW9k5RqDvB3ct20OBjDMNA5M2gr4r8p+us=; b=WEBpngSjb0GatHl12sRkWFWydQeaUSV6whHEvdId7nSRUzh1ypx2LBo6aiNIcx02nM evakAewJU2QzhFEjrpa7KRwVJmv3dgfAMdzS+FgmnVzWHEBshe3J9A8QErhOfJRq/NLd 7KvhywJBT57rvSY9QDj34y75KAr2RBZ6QDKp8B9Ti+e/i3J0JQt9v2phqGUvS37nIyS4 zh94nKxXf4LI1oUng4DwYwwYIMPcLsi/6vdQ7IJflyGx+npjhtHGGRX3NkDJMsQv7F8Z KCR7UURXOWqrRycADFVO+KjVlxn0WJK/WsQ6FSAinfkQK2KneueomBv15XQ509XwMbpd 1p8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688911120; x=1691503120; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BymuBq1prCW9k5RqDvB3ct20OBjDMNA5M2gr4r8p+us=; b=E4DAmew1CjcsLTFygbGN6WOg/NvgNVpcmTkCun9ld3NAc0wUybHJidRX2XqKfMOsjC 9cGMiWnBwvdPevTZT/QYZAg7TeQ+ga5qVUl/cIbOmq1I54EOsvk2t5oCrCyNLHQiR8Dj lKSWIL6DTT25EiKvOm63PT8xQzyD3b4mnkA4sm21B5b508LJ2LQXA1IXriThmxBHIZ+g aEp7H5i1uSc6FLmKaFCRkFdrij/vgyMTaB3xGirKFkjRgYeoc5aIjxIN1nOzfgvlVGk6 0MeGxVUoGa0eCcmUrsfX9AI2+bvem2SUNXo60IeHVRZfBKBY4waM9hBTPuP6jx0BoOdR LHjQ== X-Gm-Message-State: ABy/qLZ7WG+UxZ/U4F6nvFGsBgjbfrwS38rRC0DLXUZSLeqE01IKm24e o6gdgL2ltfgBqx7s3bYnPDpNYIWSBBn+5Wi2Q9+o8uYCdee2mw== X-Google-Smtp-Source: APBJJlGyO2W3iYj2Dm3/JOEvsfSU4lvyluYVbvFRazWBpnPrQfa1gr6LOXiEMT1D+X1I87Goq0Fd+7qF7xSjRtHdFsQ= X-Received: by 2002:a05:620a:4504:b0:765:aaa8:67ab with SMTP id t4-20020a05620a450400b00765aaa867abmr14328195qkp.26.1688911120471; Sun, 09 Jul 2023 06:58:40 -0700 (PDT) In-Reply-To: <83fs5x9q1v.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=yurivkhan@gmail.com; helo=mail-qk1-x732.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:307680 Archived-At: On Sun, 9 Jul 2023 at 20:24, Eli Zaretskii wrote: > I was more asking about user > expectations: those could be different when clicking to move point and > when dragging. In my head, it=E2=80=99s a matter of rounding pixel coordinates to integer boundaries between characters. It feels natural to round to the nearest boundary. That feeling does not change whether it is for the purpose of insertion or region selection; in both cases we target the boundary. One case which feels different is moving point for the purpose of overwriting (overwrite-mode). Ostensibly, in this case we target the character, rather than the boundary between characters. Since overwrite-mode overwrites the character after the point, this means rounding towards the beginning of the buffer.