From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56837: 28.1.90; `current-indentation' sometimes returns zero inside invisible text Date: Sat, 30 Jul 2022 16:25:47 +0300 Message-ID: <83edy268bo.fsf@gnu.org> References: <875yjfrq2w.fsf@localhost> <83r12356fy.fsf@gnu.org> <87v8rfq877.fsf@localhost> <83o7x66hgt.fsf@gnu.org> <87lesargc2.fsf@localhost> <83ilne6da0.fsf@gnu.org> <87ilnerfa9.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5083"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 56837@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 30 15:27:10 2022 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 1oHmUn-0001AX-LW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 15:27:09 +0200 Original-Received: from localhost ([::1]:45430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHmUm-0006m8-8x for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 09:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHmUg-0006lj-AX for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 09:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHmUg-0003ds-25 for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 09:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHmUf-0001bT-SO for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 09:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jul 2022 13:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56837 X-GNU-PR-Package: emacs Original-Received: via spool by 56837-submit@debbugs.gnu.org id=B56837.16591875646091 (code B ref 56837); Sat, 30 Jul 2022 13:27:01 +0000 Original-Received: (at 56837) by debbugs.gnu.org; 30 Jul 2022 13:26:04 +0000 Original-Received: from localhost ([127.0.0.1]:34353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHmTj-0001aA-WF for submit@debbugs.gnu.org; Sat, 30 Jul 2022 09:26:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHmTi-0001Zf-5d for 56837@debbugs.gnu.org; Sat, 30 Jul 2022 09:26:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHmTc-0003Yl-Pg; Sat, 30 Jul 2022 09:25:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bZElVLo3pczHdLkzhMqMtUIu6hDONWLks5Zx/izRYpw=; b=j+Kb9YiWPWM9 K0CHC/5r6JYvbXfIEp3SO87OyBpzG0V8kS70p31MIpsqS6Vatmq6Qgpfmm/j1fawPtO7a6RCFKe+3 dnwKi0cSCIX6s3zgzx7r4FaZOQbjp7U4w6tjee6jfKHk/bcOVeioKzm68Lt9rRpXrYtefryhaqicU pau60w8uO6w0OkHzHP2/4Nd/ykjINZtROLxNFvch3CsRphC1zW8mBoV7g8wqeG4V5wjTzWcOp33aI b1sttzXqJTzXnNAXkeReFm+Cyi5ibQY20qjG/jQ5liuFSZmpY3r6IGjg9rZHoUYOsnU1XP1LPksxH ngS2EL+4qShz+62I/JqIqQ==; Original-Received: from [87.69.77.57] (port=1182 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 1oHmTb-0002SP-Ne; Sat, 30 Jul 2022 09:25:56 -0400 In-Reply-To: <87ilnerfa9.fsf@localhost> (message from Ihor Radchenko on Sat, 30 Jul 2022 19:49:50 +0800) 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:238278 Archived-At: > From: Ihor Radchenko > Cc: Lars Ingebrigtsen , 56837@debbugs.gnu.org > Date: Sat, 30 Jul 2022 19:49:50 +0800 > > Eli Zaretskii writes: > > >> A simpler version would be let-binding buffer-invisibility-spec. > > > > Really? > > Could you please elaborate? Do I miss something? Just that I know very well what let-binding does. The snippet I sent was copy/pasted from the experiments I performed, it wasn't supposed to be the peak of elegance. > > These are all display-related, in that their results are supposed to > > closely reflect what will be shown on display. > > I understand. current-column even express it clearly in the docstring > (unlike, current-indentation). However, as I tried to explain, > display-independent versions can be useful during parsing. And not only > in Org mode. > > If you think otherwise, we will simply implement the required versions > in Org. Let's see what Lars thinks about this.