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#56838: 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22711"; mail-complaints-to="usenet@ciao.gmane.io" To: 56838@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 30 09:57:14 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 1oHhLV-0005hx-5H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 09:57:13 +0200 Original-Received: from localhost ([::1]:57048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHhLU-00026s-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 03:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHhLK-00025t-SA for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44209) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHhLK-00058F-JU for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHhLK-0004gN-FA for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jul 2022 07:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56838 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165916778817935 (code B ref -1); Sat, 30 Jul 2022 07:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2022 07:56:28 +0000 Original-Received: from localhost ([127.0.0.1]:33956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHhKm-0004fD-2D for submit@debbugs.gnu.org; Sat, 30 Jul 2022 03:56:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHhKk-0004f4-1c for submit@debbugs.gnu.org; Sat, 30 Jul 2022 03:56:26 -0400 Original-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 ) id 1oHhKj-0001od-Si for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:56:25 -0400 Original-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 ) id 1oHhKi-000508-9e for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:56:25 -0400 Original-Received: by mail-pj1-x102d.google.com with SMTP id ha11so6616456pjb.2 for ; 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) Original-Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id n9-20020a056a00212900b0052844157f09sm4176853pfj.51.2022.07.30.00.56.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jul 2022 00:56:22 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=yantar92@gmail.com; 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-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:238239 Archived-At: Hi, Try to do the following: 1. emacs -Q 2. M-x outline-mode 3. Insert * something a * else 4. Move point to "* something" 5. 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