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#56837: 28.1.90; `current-indentation' sometimes returns zero inside invisible text Date: Sat, 30 Jul 2022 15:56:39 +0800 Message-ID: <875yjfrq2w.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="22691"; mail-complaints-to="usenet@ciao.gmane.io" To: 56837@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 1oHhLU-0005hM-OD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 09:57:12 +0200 Original-Received: from localhost ([::1]:57032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHhLT-00026H-LZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jul 2022 03:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHhLK-00025l-3v for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHhLJ-00057h-Rl for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHhLJ-0004g8-NR for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:57: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: Sat, 30 Jul 2022 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56837 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.165916777917913 (code B ref -1); Sat, 30 Jul 2022 07:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2022 07:56:19 +0000 Original-Received: from localhost ([127.0.0.1]:33953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHhKc-0004eq-PW for submit@debbugs.gnu.org; Sat, 30 Jul 2022 03:56:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHhKZ-0004eg-To for submit@debbugs.gnu.org; Sat, 30 Jul 2022 03:56:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHhKU-0001cB-T0 for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:56:15 -0400 Original-Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:39485) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHhKG-0004xj-6l for bug-gnu-emacs@gnu.org; Sat, 30 Jul 2022 03:56:10 -0400 Original-Received: by mail-pj1-x102c.google.com with SMTP id h21-20020a17090aa89500b001f31a61b91dso7534766pjq.4 for ; Sat, 30 Jul 2022 00:55:52 -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=MBl6bVqqKdSVJJk/ehv+tIMZzbibAYKN6hiHjAPVUuqzj56ULuV/rpWVXxVCq1Rpks rv7sG20N+ktJ2NcZXdOphZ1/5VXWDhXSWsiXzKWpoAoVTPVBxxBkbKNeAqfjERfMGcI2 NbKWkzCfeZT4CtYZ5MxmA6XoV8eRxIVINPCx0sZyh/LH7GMq0L2M7sg55w5daNV8Jx0X v19zeyhEGP2wrlqJExvb+S7CtJ3cyfaK/BNAFXAJGOY6ig9yspcqaF+SRz+7wCu9tETr RMHDF6gI2M+XfFbLrY0A/mv1hsmK+dSuiR8emgmNfUTd8IJNdUmsQ7GnMdhXelx5/kCL fPNQ== 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=vmVQCc3tFUdKM+VW/xKu2OcZaYlCQuH2uz+MfL/0pRUNV9zwMNpCwJwQUd0ealCr9b 07SA2bvL6iuIemE8Y6ccZmzUVEVXj4Fb6Kp6WK+xW8lEFlmjIa/LE7lYu+pET+cK6Yik z3GiJvzS1+kxny56R+nKktWUO0HoWri4nmmyb4iH234gwDGxELzbjv876rEX6PuIw+yG k5twZbpkMWv0VxofRje+atlsRtHtCxwSBDlfu6DLfrUVE/nidS5iDo9YTw8d10jy62DU OUzszjaqA2nUPVQcbkF1eVKar2WM3n+orxCi2CeBIAH2gikHXgDvQ+jA0TdoPBMubPJm q3Zg== X-Gm-Message-State: ACgBeo0QSOVLAx7Zh3YiaK2qpcdM8zaY6QjaJYthkh0U3Mfx8hqrFd2I A/Cnt5FKKFARB/mJoUD4SzEmXY8ecaTVvA== X-Google-Smtp-Source: AA6agR76ZQPhf76SezS8Ez+6mr7i4xOB5u+x5E4wRfaUTH3SBxSjQtCfgUcf3p6QLuJtVenoQJ/DAQ== X-Received: by 2002:a17:90a:94c2:b0:1f3:2590:8693 with SMTP id j2-20020a17090a94c200b001f325908693mr8722141pjw.153.1659167750890; Sat, 30 Jul 2022 00:55:50 -0700 (PDT) Original-Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id t128-20020a625f86000000b0052ad49292f0sm4168524pfb.48.2022.07.30.00.55.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jul 2022 00:55:50 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.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:238238 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