From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64696: 30.0.50; indent-to inherits preceding text properties, including 'invisible Date: Sat, 22 Jul 2023 09:32:22 -0400 Message-ID: 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> <874jm0mhgb.fsf@localhost> <831qh459sy.fsf@gnu.org> <87jzuvq785.fsf@localhost> <835y6ca1ah.fsf@gnu.org> <87zg3o8m2a.fsf@localhost> Reply-To: Stefan Monnier 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="24317"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 64696@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 22 15:33:27 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 1qNCje-00063w-3O for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 15:33:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNCjH-0004Yi-0s; Sat, 22 Jul 2023 09:33:03 -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 1qNCjG-0004YH-43 for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:33: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 1qNCjF-00064j-Rw for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNCjF-0006gH-Mx for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 09:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jul 2023 13:33: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.169003275125643 (code B ref 64696); Sat, 22 Jul 2023 13:33:01 +0000 Original-Received: (at 64696) by debbugs.gnu.org; 22 Jul 2023 13:32:31 +0000 Original-Received: from localhost ([127.0.0.1]:35693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNCil-0006fV-8o for submit@debbugs.gnu.org; Sat, 22 Jul 2023 09:32:31 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:13283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNCij-0006fH-Fq for 64696@debbugs.gnu.org; Sat, 22 Jul 2023 09:32:29 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id F2D201000C4; Sat, 22 Jul 2023 09:32:23 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id D747810001F; Sat, 22 Jul 2023 09:32:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1690032742; bh=gxM7qcaEChKTqMnKTBSBKHEqq4l68Z+Os51gBZbv8uU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cF6SvX9KDa4Xx59ixVfPFuNpZ70tF857FrwJaHR3zhT++Qs39TtQ8DMQocLFHKwzC z2b80B/7EYZHndhYqSddEIEjlp4OrGbZOGV2p23C9KZ1xmhAvbkImkGknYlkz/Rzot IgLPhVqzFu5Dd/12XhmgrXv9MpvZueTP1sbBfQP5z6T9BUBM8EG2Qrp9H0QB+dEdGt 6edJ839Yk+bhv2d4hHqds67gfrLmJhngSpB0FnIPIgifNktPdHJIh8nhwsmQEtCRHn iX9BNv24LTI7UUxzBb/sblRSxtruTjdO1Z6cIfbTUxRSNxCL6mG6ZWELZw9Iief/qu ptIi2BFhHTw7A== Original-Received: from pastel (unknown [104.247.231.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id AE6821201FF; Sat, 22 Jul 2023 09:32:22 -0400 (EDT) In-Reply-To: <87zg3o8m2a.fsf@localhost> (Ihor Radchenko's message of "Sat, 22 Jul 2023 07:03:41 +0000") 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:265812 Archived-At: > =E2=9B=94 Warning (emacs): Test #2:: =E2=80=99word=E2=80=99 is inside fol= ded heading (hidden using overlays). > =E2=9B=94 Warning (emacs): Moved point after first =E2=80=99word=E2=80=99 > =E2=9B=94 Warning (emacs): 1:: current-column =3D 4 > > Test #2 is unexpected - we are inside invisible region, but > current-column reports as if everything were visible. Side note: `current-column` treats invisible text differently depending on whether it's replaced by ellipses or not. This was done so that reindenting a region or a sexp doesn't go haywire when part of the region is currently hidden by code folding. I now think that relying on "ellipses or not" was not a great idea (there are ellipses which `current-column` should count as the width of the ellipsis rather than the width of the hidden text, e.g. when ellipses are used to truncate cells in a table). Stefan