From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#46878: 27.1; lisp-outline-level returns imprecise level number Date: Mon, 08 Mar 2021 19:23:58 +0200 Organization: LINKOV.NET Message-ID: <87zgzdd7td.fsf@mail.linkov.net> References: <871rcxuz4h.fsf@mail.linkov.net> <54FD8677-43E1-4806-9F8D-86850CBC3B29@gmail.com> <87mtvkcfr1.fsf@mail.linkov.net> <44DA0D54-D744-41A3-A7A1-D6A45B9536A4@gmail.com> <874khmkgcl.fsf@mail.linkov.net> <6A310565-0A96-416B-B476-EE5D26D72615@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32176"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 46878@debbugs.gnu.org To: Howard Melman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 08 19:25:01 2021 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 1lJKYi-0007j4-EY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 19:24:48 +0100 Original-Received: from localhost ([::1]:40484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJKYh-0008AI-Be for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 13:24:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJJoX-0003cv-NQ for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 12:37:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJJoU-0000L5-RR for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 12:37:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJJoU-00025w-PC for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 12:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Mar 2021 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46878 X-GNU-PR-Package: emacs Original-Received: via spool by 46878-submit@debbugs.gnu.org id=B46878.16152249657965 (code B ref 46878); Mon, 08 Mar 2021 17:37:02 +0000 Original-Received: (at 46878) by debbugs.gnu.org; 8 Mar 2021 17:36:05 +0000 Original-Received: from localhost ([127.0.0.1]:44690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJJnY-00024O-W7 for submit@debbugs.gnu.org; Mon, 08 Mar 2021 12:36:05 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:35529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJJnX-00023h-Dm for 46878@debbugs.gnu.org; Mon, 08 Mar 2021 12:36:03 -0500 X-Originating-IP: 91.129.108.46 Original-Received: from mail.gandi.net (m91-129-108-46.cust.tele2.ee [91.129.108.46]) (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 1D36A1BF212; Mon, 8 Mar 2021 17:35:55 +0000 (UTC) In-Reply-To: <6A310565-0A96-416B-B476-EE5D26D72615@gmail.com> (Howard Melman's message of "Sun, 7 Mar 2021 13:57:32 -0500") 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:201857 Archived-At: >> I tried to use your new definition, but noticed that >> it adds a new cycling state: while using outline-cycle-buffer >> previously it used to cycle between only two states >> (thus it was convenient to collapse/expand all headings >> with only one keypress S-TAB). >> >> But with your change, it requires typing S-TAB twice >> to get the state where all headings are shown and >> their bodies are collapsed, because it cycles >> between three states. > > Hmmm. Yes I have that, but I always had that in emacs-lisp-mode > even before this change. The cycle commands cycle between > three states (top level, all headings and everything) and as I > understand it, it's just a function of how many levels are defined, > not what numbers they are called. This is strange. When trying this in emacs -Q and visiting a Emacs-Lisp file from the emacs repository and typing: M-x outline-minor-mode RET Then using repeatedly: M-x outline-cycle-buffer RET It consistently alternates between only two states: Show all All headings But after evaluating your version of lisp-outline-level, it alternates between three states: Show all Top level headings All headings