From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#64696: 30.0.50; indent-to inherits preceding text properties, including 'invisible Date: Wed, 19 Jul 2023 08:30:28 +0000 Message-ID: <874jm0mhgb.fsf@localhost> References: <87fs5l3b3g.fsf@localhost> <83ilah79aq.fsf@gnu.org> <87jzux2zg8.fsf@localhost> <83351l74ci.fsf@gnu.org> <87a5vt2vx8.fsf@localhost> <831qh56vvz.fsf@gnu.org> <871qh52nlw.fsf@localhost> <83pm4p5er8.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="28628"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 64696@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 19 10:31:26 2023 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 1qM2aj-0007FW-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jul 2023 10:31:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qM2aP-0002HP-5N; Wed, 19 Jul 2023 04:31:05 -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 1qM2aM-0002Gu-Gd for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2023 04:31:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qM2aM-00045c-8c for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2023 04:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qM2aL-0006OA-TO for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2023 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jul 2023 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64696 X-GNU-PR-Package: emacs Original-Received: via spool by 64696-submit@debbugs.gnu.org id=B64696.168975542924510 (code B ref 64696); Wed, 19 Jul 2023 08:31:01 +0000 Original-Received: (at 64696) by debbugs.gnu.org; 19 Jul 2023 08:30:29 +0000 Original-Received: from localhost ([127.0.0.1]:54923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qM2Zo-0006NF-Sp for submit@debbugs.gnu.org; Wed, 19 Jul 2023 04:30:29 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:60149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qM2Zk-0006Ms-Ta for 64696@debbugs.gnu.org; Wed, 19 Jul 2023 04:30:27 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F210B240101 for <64696@debbugs.gnu.org>; Wed, 19 Jul 2023 10:30:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689755419; bh=KmjwgLvEkO5h1GnWEMBDJ0DgXRG1Rfg3KqrYTbitobs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Nw//aSxdVx/0ALE8l59AMJk/bHkLhh28j2CeHhLaGBnh6ZNmVpKukSqTKGLpdJr6k 63Pme81/GX1vejNf5XaCWCJkqZ//j5O6MGGaQ3qJ7KvUU5jlc5TbzE2eYHiDQoDkGU De5avGtSCigr9M88nkbHSgunlPmDiVhKsdNTLJA3OsC+otu56GuPEIsuMoz+VtzMbD WuN14wadSsxhKs6QVO1VBQVLaMCWc/CXPajLrRukr3C+saLNgRKLbFHkHbDjGb4JUL YrVKLwHylxJxViMdLcn0NSBcptFlYfXbXPOrWMzwR2Gu0y3gq73IVjJ8SU+qPpVd3M Vhu3/ecjvQsvQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R5TXT6S0Cz9rxY; Wed, 19 Jul 2023 10:30:17 +0200 (CEST) In-Reply-To: <83pm4p5er8.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265518 Archived-At: Eli Zaretskii writes: >> However, I do not fully understand what happens if we try to indent >> fully hidden text (like inside Org's folds). See my previous bug >> reports: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56837 and >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58791 > > Invisible text is skipped by current-column. I am not sure if I understand what you mean by "skipped". Consider the following file in outline-mode: ----- * This word word ----- I tried the following command with M-: (progn (visible-mode -1) (search-forward "word") (message "1:: current-column = %d" (current-column)) (redisplay) (message "2:: current-column = %d" (current-column)) (indent-to 50) (message "3:: current-column = %d" (current-column)) (redisplay) (message "4:: current-column = %d" (current-column)) (visible-mode +1) (message "5:: current-column = %d" (current-column)) (redisplay) (message "6:: current-column = %d" (current-column)) (visible-mode -1)) First, I left the heading unfolded: 1:: current-column = 4 2:: current-column = 4 3:: current-column = 50 4:: current-column = 50 5:: current-column = 50 6:: current-column = 50 Then, I undid the indent, folded the heading, and repeated 1:: current-column = 4 <==== same despite text being invisible via overlay 2:: current-column = 4 3:: current-column = 50 4:: current-column = 50 5:: current-column = 50 6:: current-column = 50 Then, I undid the indent again, and applied 'invisible text property to the heading text 1:: current-column = 0 <==== now, `current-column' ignores the invisible text 2:: current-column = 0 3:: current-column = 50 <=== This presumably inserts more tabs/spaces, but not! 4:: current-column = 0 <=== redisplay changed `current-column' ?? 5:: current-column = 50 <=== indeed, the number of spaces is the same as visible text 6:: current-column = 50 Then, I repeated again, but applied 'rear-nonsticky (invisible) text property as well 1:: current-column = 0 2:: current-column = 0 3:: current-column = 50 4:: current-column = 50 5:: current-column = 50 6:: current-column = 50 I cannot make much sense of the above results. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at