From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#46552: 27.1; image-mode should not move current point Date: Tue, 16 Feb 2021 17:40:52 +0100 Message-ID: <87y2foufsb.fsf@gnus.org> References: <86v9astljs.fsf@gmail.com> <87blckxk8t.fsf@gnus.org> <83y2fo7z39.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="11414"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46552@debbugs.gnu.org, ynyaaa@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 16 18:08:34 2021 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 1lC3px-0002qt-LA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Feb 2021 18:08:33 +0100 Original-Received: from localhost ([::1]:44416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lC3pw-0005nM-HD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Feb 2021 12:08:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lC3QJ-0002g6-Vi for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 11:42:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58056) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lC3QI-0006OK-KD for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 11:42:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lC3QI-00043F-GP for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2021 11:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Feb 2021 16:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46552 X-GNU-PR-Package: emacs Original-Received: via spool by 46552-submit@debbugs.gnu.org id=B46552.161349367215465 (code B ref 46552); Tue, 16 Feb 2021 16:42:02 +0000 Original-Received: (at 46552) by debbugs.gnu.org; 16 Feb 2021 16:41:12 +0000 Original-Received: from localhost ([127.0.0.1]:41369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC3PU-00041N-FP for submit@debbugs.gnu.org; Tue, 16 Feb 2021 11:41:12 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC3PS-000411-LH for 46552@debbugs.gnu.org; Tue, 16 Feb 2021 11:41:11 -0500 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=eIgnUjJuCendSh0wQO7vv+hHIKIRn1IFWo0vVTV3PyU=; b=hfCDafYenS54By9PNmIESowc9O HZ4GPg21tkig43iNerdUG3Tr7HynD1SNH3SZY540I7va00reaj9ILVhtYXK0RtUJ6sOO7t8OetSPC aV572ECQ00xZZ/8VIchlSNmF0AN0mLM6Sauti7oHHWuqvIW/khO7xlrNIBqNgS2CM4Cg=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lC3PC-0006aA-Et; Tue, 16 Feb 2021 17:41:04 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEVYAQFZExRIAQE4 AQEkAAAcAAALAAFiAAA9DxAuEBH////9nmypAAAAAWJLR0QKaND0VgAAAAd0SU1FB+UCEBAUGm9u qTEAAAF4SURBVDjLnZNNjoMwDIWtFIntHAGFqWZb8bOYXUWdC4DdG5Q1ahc5w9x6nEBI2sJixkgg 8vFs5zkAfGgfZT2HLgCU1jUY3owbjOMmGIGvW+u0B3APGAF/q5ECqquyrkwEIVVnc2ttlihoUfQA cGhC9ZCKtG7FjBabVbEkgjzrIDtb2/rvrgFo7iaDlDeXR9j5nMkQn1omxVy5jWMEl6qU56lsyDCl YChcp/3UCsAIGAvICE0PCp8VxQSHEyhp7sBB4Vw428kN1M3VfsrKqjjrIj/Kc5hyeyfGtV3k/o5y FJovpUtKihvus04pOPQPVxrXCSINmbhEQ/3w63hbgCjU0Xv5BgaNTtmVM1hT+UsULhYwklfIu3cP OSjGORXOgCJYagQF8UtxDAB3AP4DXFKADhDGiCY6kBDaUOym8uAnBXJWVsCLJQt46mrc23mi8MDg W3E3jwBebafgbgT0mgr9ulPQc1dyhiWBibML4LtC9Aff/6Nzs+7+C5goU5g2IF0EAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIxLTAyLTE2VDE2OjIwOjI2KzAwOjAw/0QTSQAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMS0wMi0xNlQxNjoyMDoyNiswMDowMI4Zq/UAAAAASUVORK5CYII= X-Now-Playing: Afrodeutsche's _Break Before Make_: "Now What" In-Reply-To: <83y2fo7z39.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Feb 2021 18:32:26 +0200") 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:200135 Archived-At: Eli Zaretskii writes: > It's the "point-adjustment" feature, which moves point out of > invisible/intangible/display-property/etc text, where we don't want > the user to see point, ever. Try setting > global-disable-point-adjustment non-nil, and you will see what happens > when this is disabled. Ah! Thanks; that fixes the problem. I've now made `image-mode' set `disable-point-adjustment' buffer-locally. >> Anybody got any ideas here? > > The point adjustment needs to decide whether to move point before or > after the display property. Its logic is based on heuristics that can > break/change behavior depending on how the command was invoked, > because it's based on the previous value of point (if point moved > forward, the logic prefers to adjust point in the forward direction, > and vice versa). Right. It is pretty odd that `M-: (call-interactively 'image-toggle-display)' works differently here than `C-c C-c', but that what happens with heuristics, I guess. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no