GNU bug report logs - #56838
28.1.90; `current-indentation' sometimes returns zero inside invisible text

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ihor Radchenko <yantar92@HIDDEN>; merged with #56837; dated Sat, 30 Jul 2022 07:57:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 56837 56838. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Jul 2022 07:56:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 30 03:56:28 2022
Received: from localhost ([127.0.0.1]:33956 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHhKm-0004fD-2D
	for submit <at> debbugs.gnu.org; Sat, 30 Jul 2022 03:56:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:43986)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yantar92@HIDDEN>) id 1oHhKk-0004f4-1c
 for submit <at> debbugs.gnu.org; Sat, 30 Jul 2022 03:56:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54166)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@HIDDEN>)
 id 1oHhKj-0001od-Si
 for bug-gnu-emacs@HIDDEN; Sat, 30 Jul 2022 03:56:25 -0400
Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:53016)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <yantar92@HIDDEN>)
 id 1oHhKi-000508-9e
 for bug-gnu-emacs@HIDDEN; Sat, 30 Jul 2022 03:56:25 -0400
Received: by mail-pj1-x102d.google.com with SMTP id ha11so6616456pjb.2
 for <bug-gnu-emacs@HIDDEN>; Sat, 30 Jul 2022 00:56:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:subject:date:message-id:mime-version;
 bh=rHfBm4Q78IaSS+zFBC7kCLSKbA6+EzZ+lc4xdZZzgAw=;
 b=oV0o2G0wJeAWBmqaU9U0G7J33k7MjJiednQnqwM7egp/q515Nm+QPEhrpyupB8VhyN
 9UMH+PNZx1Z/hYjJxlFzz4HjfYXQTSH1zeRkysafUN/u9Yc8iegluU7lbmlzdcO82lS/
 luMwbQgA1iV8plV4JhdlKPoSbtL1sVJycSl09X/wCDFBezoZviapAVa1g7gSoHt8oNJh
 y50pY+CSj1oZklU8snh7q5/XYrVLoL+c+pKd/jpA0onj4Z26I+L1YCfACXgm6ar1rUuZ
 Xt0XL/7et4ptpUFCXM26ZTE8WxtoM5nQs8jFsbHK29pg8z4Xwmkvlpsp1rnuQdoRxIjk
 h91Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=rHfBm4Q78IaSS+zFBC7kCLSKbA6+EzZ+lc4xdZZzgAw=;
 b=ikKU4haiXogofg3kcHBfqtRAQ59Oq1AXtl7+bhD8nWdu2D5hxN6Ac5y9qd+VMctC7Z
 N5t0aHVmSQnHEDC9WkJqODuOVZvZwVsDB4w5h0ZU3QlkQiaVFEN/717SflqYRCV56xzH
 ZUXtDHrj9QjZO98Y+G9PJfwfPl/xB9Pdrks356eNwf/VivpFQU2hUY8zs74HoZpOVuSs
 w2v4GZvj+gijqEttVM25viJw14jlc7ZJYeMO0xe+yvJIEMtLGfzqvPu/p4lhD4VuPg9I
 wg2pkgIgCYj0ZftU1AK6d+0RaVRe/W+notCK9RCpMBr1ZI2HrBz+KAflnFLAX96yI89g
 arkA==
X-Gm-Message-State: ACgBeo1kK7aL9gGK7xC+RgTLwPGYb5Hq3hhI4DBpCBzTdOP/dIzpsiLv
 CiT4mu6eN3t2PGRZYc03R3zVwzmrzIW/GQ==
X-Google-Smtp-Source: AA6agR77UZ99WbeZMSe4cy7neqClRQiVlKXE6ZXoi1QmzPe5/RUiDQ9zcN5Rz+Ua7g77DFvPcDCAxA==
X-Received: by 2002:a17:90b:1807:b0:1ef:8aa5:1158 with SMTP id
 lw7-20020a17090b180700b001ef8aa51158mr8757559pjb.163.1659167782684; 
 Sat, 30 Jul 2022 00:56:22 -0700 (PDT)
Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id
 n9-20020a056a00212900b0052844157f09sm4176853pfj.51.2022.07.30.00.56.21
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 30 Jul 2022 00:56:22 -0700 (PDT)
From: Ihor Radchenko <yantar92@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.1.90; `current-indentation' sometimes returns zero inside
 invisible text
Date: Sat, 30 Jul 2022 15:57:09 +0800
Message-ID: <874jyzrq22.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::102d;
 envelope-from=yantar92@HIDDEN; helo=mail-pj1-x102d.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

Hi,

Try to do the following:
1. emacs -Q
2. M-x outline-mode
3. Insert

* something
  a
* else

4. Move point to "* <point>something"
5. <TAB> to fold the outline
6. M-: (save-excursion (search-forward " a") (current-indentation))
   ;; => 2
7. M-: (remove-from-invisibility-spec '(outline . t))
8. M-: (add-to-invisibility-spec '(outline))
9. M-: (save-excursion (search-forward " a") (current-indentation))
   ;; => 0; expected: => 2

First reported in https://orgmode.org/list/87k0h49s7z.fsf@localhost   

Best,
Ihor





Acknowledgement sent to Ihor Radchenko <yantar92@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#56838; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 30 Jul 2022 08:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.