From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment after `end-of-visual-line' moves to the next line Resent-From: Dmitry Kurochkin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jul 2011 13:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9034@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131021666227208 (code B ref -1); Sat, 09 Jul 2011 13:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jul 2011 13:04:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfXCn-00074m-Qh for submit@debbugs.gnu.org; Sat, 09 Jul 2011 09:04:22 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfXCl-00074a-V4 for submit@debbugs.gnu.org; Sat, 09 Jul 2011 09:04:21 -0400 Received: by bwb17 with SMTP id 17so2304225bwb.3 for ; Sat, 09 Jul 2011 06:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=qiKDE8kVQu6di3MsN3/ee2uMfypHlMpbH3ANEi9vezs=; b=EATau4EpmngpMEKqF6lDO97a9dcuDFSNifHRN7mPxnSjYcJF4Xaz/DDL2K4GV69wV2 T1Ws8xxNju28EvE4QNOQNoiHFj7/9SJtBO5Q4gw+ZusgE4P9JANfcbrjP3ZMZcYzldOY 7Jz/gBPsldgUj/FD6V4poyyP8oewIi0kG6uxA= Received: by 10.205.65.9 with SMTP id xk9mr761756bkb.388.1310216652258; Sat, 09 Jul 2011 06:04:12 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id c8sm522806bkc.15.2011.07.09.06.04.10 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jul 2011 06:04:11 -0700 (PDT) From: Dmitry Kurochkin User-Agent: Notmuch/0.5-321-g41686e2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sat, 09 Jul 2011 17:04:05 +0400 Message-ID: <87iprb38sa.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Package: emacs Version: 24.0.50 If a line ends with invisible text, point adjustment moves to the next line after `end-of-visual-line'. To reproduce run: (progn (switch-to-buffer "test") (insert "aline1\nbline2\ncline3\n") (put-text-property 7 14 'invisible t) ; region [\nbline2] (goto-char (point-min))) After that in the test buffer do M-: (progn (end-of-visual-line) (point)). `end-of-visual-line' moves point to position 14 as expected. But after that the point is adjusted to position 15, as can be checked by C-x =. Sometimes the point is not adjusted to position 15 the first time you run `end-of-visual-line'. But it is if you run it more than once. Perhaps it is related to the last point position. It is definitely happens because of point adjustment, setting global-disable-point-adjustment to non-nil fixes the problem. Also, `move-end-of-line` always behaves correctly, so it it something specific to `end-of-visual-line' or `vertical-motion'. The issue was originally reported on the emacs-devel ML [1]. Regards, Dmitry [1] http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00255.html From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment after `end-of-visual-line' moves to the next line Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2011 04:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Kurochkin Cc: 9034@debbugs.gnu.org Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.1310357802967 (code B ref 9034); Mon, 11 Jul 2011 04:17:02 +0000 Received: (at 9034) by debbugs.gnu.org; 11 Jul 2011 04:16:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg7vF-0000FY-6H for submit@debbugs.gnu.org; Mon, 11 Jul 2011 00:16:41 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg7vD-0000FM-DS for 9034@debbugs.gnu.org; Mon, 11 Jul 2011 00:16:40 -0400 Received: from cpe-66-108-39-217.nyc.res.rr.com ([66.108.39.217]:44660 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Qg7v7-00012Y-NW; Mon, 11 Jul 2011 00:16:33 -0400 Received: by ceviche.home (Postfix, from userid 20848) id AC647660D5; Mon, 11 Jul 2011 00:16:31 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87iprb38sa.fsf@gmail.com> Date: Mon, 11 Jul 2011 00:16:31 -0400 In-Reply-To: <87iprb38sa.fsf@gmail.com> (Dmitry Kurochkin's message of "Sat, 09 Jul 2011 17:04:05 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) > If a line ends with invisible text, point adjustment moves to the next > line after `end-of-visual-line'. To reproduce run: > (progn (switch-to-buffer "test") > (insert "aline1\nbline2\ncline3\n") > (put-text-property 7 14 'invisible t) ; region [\nbline2] > (goto-char (point-min))) > After that in the test buffer do M-: (progn (end-of-visual-line) > (point)). `end-of-visual-line' moves point to position 14 as expected. > But after that the point is adjusted to position 15, as can be checked > by C-x =. > Sometimes the point is not adjusted to position 15 the first time you > run `end-of-visual-line'. But it is if you run it more than once. > Perhaps it is related to the last point position. I can reproduce it with M-: (progn (goto-char 14) > (point)) > Also, `move-end-of-line` always behaves correctly, so it it something > specific to `end-of-visual-line' or `vertical-motion'. Apparently not since I can reproduce the problem with just goto-char. Maybe it has to do with the use of M-: instead. Stefan From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment after `end-of-visual-line' moves to the next line Resent-From: Dmitry Kurochkin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2011 08:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 9034@debbugs.gnu.org Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.131037285522445 (code B ref 9034); Mon, 11 Jul 2011 08:28:02 +0000 Received: (at 9034) by debbugs.gnu.org; 11 Jul 2011 08:27:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgBq1-0005py-ST for submit@debbugs.gnu.org; Mon, 11 Jul 2011 04:27:34 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgBpy-0005pm-P8 for 9034@debbugs.gnu.org; Mon, 11 Jul 2011 04:27:31 -0400 Received: by bwb17 with SMTP id 17so3059263bwb.3 for <9034@debbugs.gnu.org>; Mon, 11 Jul 2011 01:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=XIh+0wjpPP2iuQQBMUWabwulD0FdBv6fyYS5K9McV2w=; b=U1lVXTtsBqBJjPsugcDHkwPAcRlDcqIWItUxGzAP+vkCorw5FRuElMh5zOq86jCX0v wBDKHwETB8+CkM5KB9VsQq4U5e4FtatZjdZJatX0AB75cwEzYOw6ox9wVkrhZCqt/yy0 oqfZl2sSaQTXfFZVBfUhVMNjcru06a19RGmyM= Received: by 10.204.154.215 with SMTP id p23mr2521896bkw.113.1310372844809; Mon, 11 Jul 2011 01:27:24 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id k5sm9849638bka.5.2011.07.11.01.27.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jul 2011 01:27:23 -0700 (PDT) From: Dmitry Kurochkin In-Reply-To: References: <87iprb38sa.fsf@gmail.com> User-Agent: Notmuch/0.5-321-g41686e2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Mon, 11 Jul 2011 12:27:18 +0400 Message-ID: <87tyat1au1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Mon, 11 Jul 2011 00:16:31 -0400, Stefan Monnier wrote: > > If a line ends with invisible text, point adjustment moves to the next > > line after `end-of-visual-line'. To reproduce run: > > > (progn (switch-to-buffer "test") > > (insert "aline1\nbline2\ncline3\n") > > (put-text-property 7 14 'invisible t) ; region [\nbline2] > > (goto-char (point-min))) > > > After that in the test buffer do M-: (progn (end-of-visual-line) > > (point)). `end-of-visual-line' moves point to position 14 as expected. > > But after that the point is adjusted to position 15, as can be checked > > by C-x =. > > > Sometimes the point is not adjusted to position 15 the first time you > > run `end-of-visual-line'. But it is if you run it more than once. > > Perhaps it is related to the last point position. > > I can reproduce it with M-: (progn (goto-char 14) > (point)) > indeed > > Also, `move-end-of-line` always behaves correctly, so it it something > > specific to `end-of-visual-line' or `vertical-motion'. > > Apparently not since I can reproduce the problem with just goto-char. If visual-line-mode is enabled (so that C-e is mapped to `end-of-visual-line' instead of `move-end-of-line'), `end-of-visual-line' works correctly when run with C-e. > Maybe it has to do with the use of M-: instead. > Seems plausible. Regards, Dmitry > > Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 24 21:35:39 2017 Received: (at control) by debbugs.gnu.org; 25 Mar 2017 01:35:39 +0000 Received: from localhost ([127.0.0.1]:42972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cracE-0004b5-VH for submit@debbugs.gnu.org; Fri, 24 Mar 2017 21:35:39 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:37039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cracD-0004as-Bl for control@debbugs.gnu.org; Fri, 24 Mar 2017 21:35:37 -0400 Received: by mail-it0-f48.google.com with SMTP id 190so6738038itm.0 for ; Fri, 24 Mar 2017 18:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=5tIZd37HGyHuyYbBcfqL4P5pukf4oxWijzLM+YKdzZ8=; b=soI1tYcnFHgGDqeANutqgG37CGeP8uAva2lFSrZbS9uDI2eSj9Q+d7RXwUNcohR1XD utam4NKTK0+bxCHYUPGTqbWyq8zLi+1UE8HcRvL26CGHfJR3zmYCW2apGFz2zfI+HBpx 3BMwJFjKEI4ozMzOlAHeyn7iSE8bDooyKAFzYTV4q7H1nkpAwdQOztoZIu6d+1aHLPHW +IxQ/uEqdtS9RH2LbJAtUtfgskPE6O9CX4cAAI8q3mtcc3EseQat6QsWJSjPbpRbzKHQ VrIb5u1d+2fahX1/R9PsF9rf7+5F/sxSuALrcKL8j96Z48QgHjUv8TFGYgKMVye+jDC3 EjHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=5tIZd37HGyHuyYbBcfqL4P5pukf4oxWijzLM+YKdzZ8=; b=hPVpWpPwf9taj3zznTtM2Rl60i7IW8/OgfVErJLgpGGiNywPCEkkGNbRUWzuPFgNwd P57wmLvuHW26b5Y3twJIj3iAW2kZXlj9XJTEBlfHY7fdJ9GrGAueS51q6WgXS5jflBNV 7xB9Lx+Sk5bJYEIA+A7Lp8MkquG1fbbe3jK2tAtwzgXeGmaIcZyRB9u07n5QWM0H0Xif Pt2IFlyx98CqiIW2tDxpUN6vNRDlA1FHigwNhPbL+C9tPlH5yfnKM+8kOJXcNaLjbZ55 /Oyqn7ccsvOvVb+X61wWItT6S9/WLzbBoh/QoefL7gSFR5PJDgOhCB2A5mTohf4taFBj ElgA== X-Gm-Message-State: AFeK/H1+t8wuEfnfQ0Z1T9BhP3LD4jXZKQ7liiBYu452Yar+iZwJdF9X6+othzt6t9bLqg== X-Received: by 10.107.58.131 with SMTP id h125mr12229526ioa.37.1490405731593; Fri, 24 Mar 2017 18:35:31 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id h11sm2060450ioa.43.2017.03.24.18.35.30 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Mar 2017 18:35:30 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #9034 Date: Fri, 24 Mar 2017 21:36:54 -0400 Message-ID: <878tnu2l3d.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) tags 9034 confirmed found 9034 25.2 retitle 9034 point adjustment (with invisible text) moves to the next line quit From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment (with invisible text) moves to the next line Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Aug 2021 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Dmitry Kurochkin Cc: 9034@debbugs.gnu.org Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.162990915125916 (code B ref 9034); Wed, 25 Aug 2021 16:33:02 +0000 Received: (at 9034) by debbugs.gnu.org; 25 Aug 2021 16:32:31 +0000 Received: from localhost ([127.0.0.1]:47486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIvpH-0006jv-J4 for submit@debbugs.gnu.org; Wed, 25 Aug 2021 12:32:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIvpD-0006je-2F for 9034@debbugs.gnu.org; Wed, 25 Aug 2021 12:32:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qqFxARSoy/1Q6Q4hHH8CDOy0rbPpTNzNlnFy9SppzO0=; b=Qh1CjosBiMa7BN+6gvN9AWvmQ6 6l00YdVQylB/dMAJpJfCnwEvAOSmtqMpAyY4hoLyAFBPsn96uAVEIss99Sa/dp8pFAhIUmlux/Kws wPLBDsIVYD5zsk0mgf3DLe9AOa5BrWoqj3k1PThqhR4emZAlWP8x0jPQX3/5VXtqF19s=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIvp2-0006YQ-HW; Wed, 25 Aug 2021 18:32:20 +0200 From: Lars Ingebrigtsen References: <87iprb38sa.fsf@gmail.com> Date: Wed, 25 Aug 2021 18:32:15 +0200 In-Reply-To: <87iprb38sa.fsf@gmail.com> (Dmitry Kurochkin's message of "Sat, 09 Jul 2011 17:04:05 +0400") Message-ID: <87tujd32pc.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Kurochkin writes: > (progn (switch-to-buffer "test") > (insert "aline1\nbline2\ncline3\n") > (put-text-property 7 14 'invisible t) ; region [\nbline2] > (goto-char (point-min))) > > After that in the test buffer do M-: [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dmitry Kurochkin writes: > (progn (switch-to-buffer "test") > (insert "aline1\nbline2\ncline3\n") > (put-text-property 7 14 'invisible t) ; region [\nbline2] > (goto-char (point-min))) > > After that in the test buffer do M-: (progn (end-of-visual-line) > (point)). `end-of-visual-line' moves point to position 14 as expected. > But after that the point is adjusted to position 15, as can be checked > by C-x =. (I'm going through old bug reports that unfortunately got weren't resolved at the time.) This problem is still present in Emacs 28, and as previously noted, any command you do (with `M-:') makes point advance to the next line. (It's not 100% reproducible -- sometimes nothing happens, and sometimes it advances.) So `C-e' and then, for instance `M-: 4 RET' will advance point here. Also as previously noted, if Vglobal_disable_point_adjustment is on, then this doesn't happen, so the problem almost has to be here: command_loop_1 ... if (current_buffer == prev_buffer && XBUFFER (XWINDOW (selected_window)->contents) == current_buffer && last_point_position != PT && NILP (Vdisable_point_adjustment) && NILP (Vglobal_disable_point_adjustment)) { if (last_point_position > BEGV && last_point_position < ZV && (composition_adjust_point (last_point_position, last_point_position) != last_point_position)) /* The last point was temporarily set within a grapheme cluster to prevent automatic composition. To recover the automatic composition, we must update the display. */ windows_or_buffers_changed = 21; if (!already_adjusted) adjust_point_for_property (last_point_position, MODIFF != prev_modiff); } I haven't tried to debug any further -- is it obvious to anybody what's failing here, by any chance? :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 25 12:32:36 2021 Received: (at control) by debbugs.gnu.org; 25 Aug 2021 16:32:36 +0000 Received: from localhost ([127.0.0.1]:47489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIvpL-0006kC-RV for submit@debbugs.gnu.org; Wed, 25 Aug 2021 12:32:36 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIvpK-0006jm-F2 for control@debbugs.gnu.org; Wed, 25 Aug 2021 12:32:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=P+KuOjEGpH1Hn7/OkZ/MUIfdeyEbnw2m9AwMSkV0nG8=; b=j9YOvGFSvsxXzMrdV+m1B1lW7S Ue0Dkq26YMFnpy1w1nKPRyMBkbk8Lc0hNkKKsnZmd60sbc+USbZ6tCJCSCSUhtkJ+KLq6iPHNFPxL dwFSRmkv7HDodBzht8YTG1IddlUJKq3UT92I5HwKrw3kLdzUeVM1knnkiFlst5opm2BU=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIvpC-0006Yc-D3 for control@debbugs.gnu.org; Wed, 25 Aug 2021 18:32:28 +0200 Date: Wed, 25 Aug 2021 18:32:24 +0200 Message-Id: <87sfyx32p3.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #9034 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 9034 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 9034 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 25 12:32:40 2021 Received: (at control) by debbugs.gnu.org; 25 Aug 2021 16:32:40 +0000 Received: from localhost ([127.0.0.1]:47492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIvpQ-0006kT-1Y for submit@debbugs.gnu.org; Wed, 25 Aug 2021 12:32:40 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIvpO-0006k4-Kd for control@debbugs.gnu.org; Wed, 25 Aug 2021 12:32:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gGdilEuK5oN11ReEVhEtZ+UitXoNuh8OJSICfvBzYuE=; b=TOOEojolNsM9Pfj8orHggaeQyl CvnKDi0hOunTm1DYJJhc9whPYxbbyEO+LKXnKcoi0qd3ZhOOZKpFpuTmreNIltR5LycncB/aJ7/b7 5s+afXqbFmFc7zCKHl6AwLzpMr3t2XKgfMBga67DmYv/vAgfV76Dq0lICrBAZ+6Qjego=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIvpG-0006Yl-Hg for control@debbugs.gnu.org; Wed, 25 Aug 2021 18:32:32 +0200 Date: Wed, 25 Aug 2021 18:32:30 +0200 Message-Id: <87r1eh32ox.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #9034 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 9034 - moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 9034 - moreinfo quit From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment (with invisible text) moves to the next line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Aug 2021 16:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Lars Ingebrigtsen Cc: 9034@debbugs.gnu.org, dmitry.kurochkin@gmail.com Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.162990982727068 (code B ref 9034); Wed, 25 Aug 2021 16:44:01 +0000 Received: (at 9034) by debbugs.gnu.org; 25 Aug 2021 16:43:47 +0000 Received: from localhost ([127.0.0.1]:47515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIw0B-00072W-II for submit@debbugs.gnu.org; Wed, 25 Aug 2021 12:43:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mIw07-00072I-Qq for 9034@debbugs.gnu.org; Wed, 25 Aug 2021 12:43:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53388) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIw02-0006zy-Hd; Wed, 25 Aug 2021 12:43:38 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1283 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 1mIw02-0004nq-4h; Wed, 25 Aug 2021 12:43:38 -0400 Date: Wed, 25 Aug 2021 19:43:34 +0300 Message-Id: <834kbdv5jd.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87tujd32pc.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 25 Aug 2021 18:32:15 +0200) References: <87iprb38sa.fsf@gmail.com> <87tujd32pc.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Wed, 25 Aug 2021 18:32:15 +0200 > Cc: 9034@debbugs.gnu.org > > Also as previously noted, if Vglobal_disable_point_adjustment is on, > then this doesn't happen, so the problem almost has to be here: > > command_loop_1 > ... > if (current_buffer == prev_buffer > && XBUFFER (XWINDOW (selected_window)->contents) == current_buffer > && last_point_position != PT > && NILP (Vdisable_point_adjustment) > && NILP (Vglobal_disable_point_adjustment)) > { > if (last_point_position > BEGV > && last_point_position < ZV > && (composition_adjust_point (last_point_position, > last_point_position) > != last_point_position)) > /* The last point was temporarily set within a grapheme > cluster to prevent automatic composition. To recover > the automatic composition, we must update the > display. */ > windows_or_buffers_changed = 21; > if (!already_adjusted) > adjust_point_for_property (last_point_position, > MODIFF != prev_modiff); > } > > I haven't tried to debug any further -- is it obvious to anybody what's > failing here, by any chance? :-) This code is chock-full of questionable heuristics, and in particular tries to guess in which direction to move point out of the invisible text. The results are sometimes surprising. The upside is that it "mostly works". But if someone can come up with a better heuristics, I'm all ears. From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment (with invisible text) moves to the next line Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 13:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Eli Zaretskii Cc: 9034@debbugs.gnu.org, dmitry.kurochkin@gmail.com Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.16299857393595 (code B ref 9034); Thu, 26 Aug 2021 13:49:02 +0000 Received: (at 9034) by debbugs.gnu.org; 26 Aug 2021 13:48:59 +0000 Received: from localhost ([127.0.0.1]:48594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJFkZ-0000vu-8N for submit@debbugs.gnu.org; Thu, 26 Aug 2021 09:48:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJFkN-0000vX-JA for 9034@debbugs.gnu.org; Thu, 26 Aug 2021 09:48:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=mKJww2KgCTytDu7JmhaFfkgt4wuvydB9ldSzL2H47oA=; b=BoQnlxk178JORLjov6wZhnqL9x yTJ+8i6CNE0V6JUZWF/xoNDMcFVhn99IOxGGro0QILF1kcR0ZyYTh762SaR1gynzYL5wMXcOpV3NW ZQYJwxR0QX7ZYpcRAUkDNV7mExlvda9Ug81xpwxXTJkEuBa4R45fQ/evEiG3U4xZlz00=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJFkC-0001NU-M5; Thu, 26 Aug 2021 15:48:40 +0200 From: Lars Ingebrigtsen References: <87iprb38sa.fsf@gmail.com> <87tujd32pc.fsf@gnus.org> <834kbdv5jd.fsf@gnu.org> Date: Thu, 26 Aug 2021 15:48:32 +0200 In-Reply-To: <834kbdv5jd.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Aug 2021 19:43:34 +0300") Message-ID: <877dg82u6n.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > This code is chock-full of questionable heuristics, and in particular > tries to guess in which direction to move point out of the invisible > text. The results are sometimes surprising. The upside [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > This code is chock-full of questionable heuristics, and in particular > tries to guess in which direction to move point out of the invisible > text. The results are sometimes surprising. The upside is that it > "mostly works". But if someone can come up with a better heuristics, > I'm all ears. Ah, right. But... the super-confusing thing about this is that we're not moving point in the buffer at all. Just doing `M-: 4 RET' will result in this code adjusting point in the buffer. Doing, for instance, `M-x foo RET' (where `foo' does nothing) does not result in this point movement. So is `M-:' doing some weird thing in the original buffer to trigger this oddity? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment (with invisible text) moves to the next line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 15:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Lars Ingebrigtsen Cc: 9034@debbugs.gnu.org, dmitry.kurochkin@gmail.com Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.16299928259202 (code B ref 9034); Thu, 26 Aug 2021 15:48:01 +0000 Received: (at 9034) by debbugs.gnu.org; 26 Aug 2021 15:47:05 +0000 Received: from localhost ([127.0.0.1]:50189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJHar-0002OM-BI for submit@debbugs.gnu.org; Thu, 26 Aug 2021 11:47:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJHap-0002No-E0 for 9034@debbugs.gnu.org; Thu, 26 Aug 2021 11:47:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40172) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJHaj-0006Ga-Qh; Thu, 26 Aug 2021 11:46:57 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2618 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 1mJHaj-0000iV-E0; Thu, 26 Aug 2021 11:46:57 -0400 Date: Thu, 26 Aug 2021 18:46:37 +0300 Message-Id: <8335qwtdia.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <877dg82u6n.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 26 Aug 2021 15:48:32 +0200) References: <87iprb38sa.fsf@gmail.com> <87tujd32pc.fsf@gnus.org> <834kbdv5jd.fsf@gnu.org> <877dg82u6n.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: dmitry.kurochkin@gmail.com, 9034@debbugs.gnu.org > Date: Thu, 26 Aug 2021 15:48:32 +0200 > > Eli Zaretskii writes: > > > This code is chock-full of questionable heuristics, and in particular > > tries to guess in which direction to move point out of the invisible > > text. The results are sometimes surprising. The upside is that it > > "mostly works". But if someone can come up with a better heuristics, > > I'm all ears. > > Ah, right. But... the super-confusing thing about this is that we're > not moving point in the buffer at all. The original recipe moved from point-min to an end of a line. > Just doing `M-: 4 RET' will result in this code adjusting point in > the buffer. Doing, for instance, `M-x foo RET' (where `foo' does > nothing) does not result in this point movement. > > So is `M-:' doing some weird thing in the original buffer to trigger > this oddity? Doing M-: in what part of the recipe? From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment (with invisible text) moves to the next line Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 16:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Eli Zaretskii Cc: 9034@debbugs.gnu.org, dmitry.kurochkin@gmail.com Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.162999562222156 (code B ref 9034); Thu, 26 Aug 2021 16:34:01 +0000 Received: (at 9034) by debbugs.gnu.org; 26 Aug 2021 16:33:42 +0000 Received: from localhost ([127.0.0.1]:50248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJIJy-0005lI-8f for submit@debbugs.gnu.org; Thu, 26 Aug 2021 12:33:42 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJIJw-0005l3-7T for 9034@debbugs.gnu.org; Thu, 26 Aug 2021 12:33:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Am+A3thQv1YbGRlt4KL3THodK9O06D7AawfsRgkbJlQ=; b=CbRxNFoTGGsPfd86O9O3v/jknE y5Fvawem3tzLi1K2YOU4TAd6sz/bHlW8ls5Yeg06wztWIpjivYn0L6aGP9W3qTKND5tfIvxMEMOua QKBUrKu11FsjWSanK2xjWiFylD/BOzvypfzhyMASww5jlf5U+2Mk+zPcyJ3niOBABDTA=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJIJl-0002xW-Nq; Thu, 26 Aug 2021 18:33:33 +0200 From: Lars Ingebrigtsen References: <87iprb38sa.fsf@gmail.com> <87tujd32pc.fsf@gnus.org> <834kbdv5jd.fsf@gnu.org> <877dg82u6n.fsf@gnus.org> <8335qwtdia.fsf@gnu.org> Date: Thu, 26 Aug 2021 18:33:29 +0200 In-Reply-To: <8335qwtdia.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 26 Aug 2021 18:46:37 +0300") Message-ID: <871r6gyxly.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> Just doing `M-: 4 RET' will result in this code adjusting point in >> the buffer. Doing, for instance, `M-x foo RET' (where `foo' does >> nothing) does not result in this point movement. >> >> So i [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> Just doing `M-: 4 RET' will result in this code adjusting point in >> the buffer. Doing, for instance, `M-x foo RET' (where `foo' does >> nothing) does not result in this point movement. >> >> So is `M-:' doing some weird thing in the original buffer to trigger >> this oddity? > > Doing M-: in what part of the recipe? Eval this: (progn (switch-to-buffer "test") (insert "aline1\nbline2\ncline3\n") (put-text-property 7 14 'invisible t) ; region [\nbline2] (goto-char (point-min))) Then C-e M-: 4 RET This will move point to the start of the next line about half the time. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment (with invisible text) moves to the next line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 16:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Lars Ingebrigtsen Cc: 9034@debbugs.gnu.org, dmitry.kurochkin@gmail.com Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.162999654432041 (code B ref 9034); Thu, 26 Aug 2021 16:50:01 +0000 Received: (at 9034) by debbugs.gnu.org; 26 Aug 2021 16:49:04 +0000 Received: from localhost ([127.0.0.1]:50273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJIYq-0008Ki-GP for submit@debbugs.gnu.org; Thu, 26 Aug 2021 12:49:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJIYo-0008KD-Nu for 9034@debbugs.gnu.org; Thu, 26 Aug 2021 12:49:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43020) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJIYj-0006t4-FR; Thu, 26 Aug 2021 12:48:57 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2431 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 1mJIYi-00081J-Ul; Thu, 26 Aug 2021 12:48:57 -0400 Date: Thu, 26 Aug 2021 19:48:38 +0300 Message-Id: <83r1egrw2h.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <871r6gyxly.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 26 Aug 2021 18:33:29 +0200) References: <87iprb38sa.fsf@gmail.com> <87tujd32pc.fsf@gnus.org> <834kbdv5jd.fsf@gnu.org> <877dg82u6n.fsf@gnus.org> <8335qwtdia.fsf@gnu.org> <871r6gyxly.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: dmitry.kurochkin@gmail.com, 9034@debbugs.gnu.org > Date: Thu, 26 Aug 2021 18:33:29 +0200 > > Eval this: > > (progn (switch-to-buffer "test") > (insert "aline1\nbline2\ncline3\n") > (put-text-property 7 14 'invisible t) ; region [\nbline2] > (goto-char (point-min))) > > Then > > C-e > M-: 4 RET > > This will move point to the start of the next line about half the time. I cannot reproduce this: no matter how many times I do the "C-e M-:" dance, point stays put. From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment (with invisible text) moves to the next line Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 17:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Eli Zaretskii Cc: 9034@debbugs.gnu.org, dmitry.kurochkin@gmail.com Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.16299975281369 (code B ref 9034); Thu, 26 Aug 2021 17:06:02 +0000 Received: (at 9034) by debbugs.gnu.org; 26 Aug 2021 17:05:28 +0000 Received: from localhost ([127.0.0.1]:50309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJIoi-0000M1-4S for submit@debbugs.gnu.org; Thu, 26 Aug 2021 13:05:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJIog-0000Lj-60 for 9034@debbugs.gnu.org; Thu, 26 Aug 2021 13:05:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LbkHbdlB/Oh1d+BGk5xwaJOjHiKc5RGO55pv0sYwJz8=; b=kygOai5M1whubsCvnT3t7s5X8Z RPNLK96Taym0zmILig0vLghAu+E9ZO4dzRPrp0FCPrYuukViB+ouhBaQ180TN4/J4z2mJWhYYZtye xt6TF9rE8oZGghdIi0LyA/Gmj0xhKTJ/Yp16rqM//SGXoNc2u3VGN+ASlE1dUXTxlB10=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJIoV-0003GL-NS; Thu, 26 Aug 2021 19:05:19 +0200 From: Lars Ingebrigtsen References: <87iprb38sa.fsf@gmail.com> <87tujd32pc.fsf@gnus.org> <834kbdv5jd.fsf@gnu.org> <877dg82u6n.fsf@gnus.org> <8335qwtdia.fsf@gnu.org> <871r6gyxly.fsf@gnus.org> <83r1egrw2h.fsf@gnu.org> Date: Thu, 26 Aug 2021 19:05:15 +0200 In-Reply-To: <83r1egrw2h.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 26 Aug 2021 19:48:38 +0300") Message-ID: <87k0k8xhkk.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > I cannot reproduce this: no matter how many times I do the "C-e M-:" > dance, point stays put. Does it help if you only do the `C-e' once? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > I cannot reproduce this: no matter how many times I do the "C-e M-:" > dance, point stays put. Does it help if you only do the `C-e' once? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Jun 13 10:16:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9034: point adjustment (with invisible text) moves to the next line Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 17:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed To: Lars Ingebrigtsen Cc: 9034@debbugs.gnu.org, dmitry.kurochkin@gmail.com Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.16299980132301 (code B ref 9034); Thu, 26 Aug 2021 17:14:02 +0000 Received: (at 9034) by debbugs.gnu.org; 26 Aug 2021 17:13:33 +0000 Received: from localhost ([127.0.0.1]:50321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJIwW-0000b3-Sy for submit@debbugs.gnu.org; Thu, 26 Aug 2021 13:13:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJIwV-0000ap-DQ for 9034@debbugs.gnu.org; Thu, 26 Aug 2021 13:13:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43792) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJIwQ-0006i3-7Y; Thu, 26 Aug 2021 13:13:26 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3963 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 1mJIwO-0001JB-TJ; Thu, 26 Aug 2021 13:13:25 -0400 Date: Thu, 26 Aug 2021 20:13:06 +0300 Message-Id: <83lf4oruxp.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87k0k8xhkk.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 26 Aug 2021 19:05:15 +0200) References: <87iprb38sa.fsf@gmail.com> <87tujd32pc.fsf@gnus.org> <834kbdv5jd.fsf@gnu.org> <877dg82u6n.fsf@gnus.org> <8335qwtdia.fsf@gnu.org> <871r6gyxly.fsf@gnus.org> <83r1egrw2h.fsf@gnu.org> <87k0k8xhkk.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: dmitry.kurochkin@gmail.com, 9034@debbugs.gnu.org > Date: Thu, 26 Aug 2021 19:05:15 +0200 > > Eli Zaretskii writes: > > > I cannot reproduce this: no matter how many times I do the "C-e M-:" > > dance, point stays put. > > Does it help if you only do the `C-e' once? I tried that as well, to no avail. I think a more efficient way of understanding what's going on with M-: is to step through the code in keyboard.c with a debugger.