From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mats Lidell Newsgroups: gmane.emacs.devel Subject: Re: Odd behavior when moving point over invisible text Date: Wed, 07 Jun 2023 00:45:53 +0200 Message-ID: <87edmo9plq.fsf@gnu.org> References: <87cz2ac390.fsf@gnu.org> <83ilc23w0p.fsf@gnu.org> <87a5xdqyfv.fsf@gnu.org> <83v8g03j6z.fsf@gnu.org> <87zg5cpzf8.fsf@gnu.org> <83legw3hlp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17338"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 07 00:46:46 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 1q6fRs-0004G1-0m for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Jun 2023 00:46:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6fR9-00054T-KV; Tue, 06 Jun 2023 18:45:59 -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 1q6fR7-000546-LR for emacs-devel@gnu.org; Tue, 06 Jun 2023 18:45:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6fR7-00018X-4w for emacs-devel@gnu.org; Tue, 06 Jun 2023 18:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=n42pZT7hyDlid5Yn5I9q6If3V59vEiC4m5Zxc+Fee7U=; b=nSgoH7AgXj9Y/Fve+W5h gYOhSD/5pupkPhNN3vum+CqEoGBzT1s4aBzGnCG29tZ9BSCW9xkUSWiR3n+Tm2s919ZPkzz2bDS2z wOoyo/iiqsGx7kvxDZpkTtwaZJZacefAFlbOSwndAQBmyFs7nNsy4Z21GvE6Er0ylrOGx3zLnTbLG z6RQEIh3itFTLPkCTcmH5Eeu6o0EpyYREGLI30tnZGrbFqor92AVKDSj18eHekwLIM6iNhNjlhRL9 QK40XhTLfUNuEInc59Xps46jrhB7zNXPn90WfzDFImgiNvXwwwvxvU1H/b2KFb7j0BLzSPe8p0v79 tZ/K9+SuR0F+vQ==; Original-Received: from c80-217-132-174.bredband.tele2.se ([80.217.132.174] helo=zerblatt) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6fR6-0005di-LR; Tue, 06 Jun 2023 18:45:56 -0400 In-Reply-To: <83legw3hlp.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Jun 2023 15:22:58 +0300") 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:306674 Archived-At: > Eli Zaretskii writes: > Why? In the first case, Emacs knows you stopped between the two > moves, in the second one you didn't. A user might not be aware of the heuristics in place, view C-u as a repeat count and be surprised by the outcome. > If you are writing tests, you are better off disabling point adjustments > altogether. See global-disable-point-adjustment. I understand. I will try to refactor how to write those tests. %% Mats