From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#46878: 27.1; lisp-outline-level returns imprecise level number Date: Tue, 2 Mar 2021 12:48:37 -0500 Message-ID: <36425FB3-9EAE-4050-A6B0-AA4AAE57C10A@gmail.com> References: <83sg5d5vw5.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30927"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46878@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 02 18:49:09 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 1lH98v-0007tH-8t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Mar 2021 18:49:09 +0100 Original-Received: from localhost ([::1]:43322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH98u-0005nf-B8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Mar 2021 12:49:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lH98o-0005nX-7v for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 12:49:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lH98o-0006Cn-0L for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 12:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lH98n-0006uR-Tk for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2021 12:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Mar 2021 17:49:01 +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.161470732926541 (code B ref 46878); Tue, 02 Mar 2021 17:49:01 +0000 Original-Received: (at 46878) by debbugs.gnu.org; 2 Mar 2021 17:48:49 +0000 Original-Received: from localhost ([127.0.0.1]:54116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lH98b-0006u1-FW for submit@debbugs.gnu.org; Tue, 02 Mar 2021 12:48:49 -0500 Original-Received: from mail-qt1-f181.google.com ([209.85.160.181]:46841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lH98W-0006tk-Ta for 46878@debbugs.gnu.org; Tue, 02 Mar 2021 12:48:48 -0500 Original-Received: by mail-qt1-f181.google.com with SMTP id o1so10970523qta.13 for <46878@debbugs.gnu.org>; Tue, 02 Mar 2021 09:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7G7hjItVtRorIxTd61zgcZFaxEAUsIAmTTm4dW9nj6I=; b=kvawsG+jFw7DxXHFo91MCCevIh2xhHI3aW3S7szFteE+rW7vj3B0Xm+O3kmOytnfG8 UdZrmo1wGKEi5XwQX38EXYKJEEmJhPYoyZgxzMyKdMI5sHBBLwPmZKlSuJMLVT57NIZw W5Sf+VTXDknTDIXArZyjYSLrDlbpo4HmZN49JppaB0bjn4FUiqFLsxJKgKxEgNEMVK+A QsVbc8ZAmMG0/STSzzWNjhQjguGeY3OEdnblD40fv6UNKzvyl4dxiIe/Lu21MBdllcTG LaUbYisEdBhiFKgzVcdoYCbwcNbNF7+U3czSkgkPlExjv0Q5YSUpUM4pO8Jy+dFBpQ4v V2SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7G7hjItVtRorIxTd61zgcZFaxEAUsIAmTTm4dW9nj6I=; b=BKw5TujZz9AM98PhG+9BYK31xhZgfXBF2AraxCWQ3d720ap6V7WqJn+Esnnd9gcB7L qpQiir54wb4k74JE0UrAh61EY1gmzPhhR6HDHblPNQEkKkywrlTqFizykx+B7ARsYRYL SrJp3ZlkRSaYc5UYFRuUUF0XeQQI4eoNjF7HuWYmvjDZZTJ3L/8bM8mDZEia1AhQ3kea OEZvJXXnjXDlUVLK1nLCW6yQIY/G4yDjA6w361d+MAMfnWYpcNYabKrfk7PovIW6s12U zsHSQKa16Y99iiiEgIJs9o6yYvRvcgjpJRcE1j6YNJBfiB9dhOE8Wl8qTI9h1vR24TZx 8AJA== X-Gm-Message-State: AOAM530fePjiacTLFEkwvJ4t7vO4Cj0DsYK6Lx24grzFgsH/lNqUSnOe 8kbRgSRxL3JNZzyzQNOzruM= X-Google-Smtp-Source: ABdhPJxy3935AkMEKeRUFNPrgBgRqIEMUCJU+7ad85b/t3ROzlLIC4XPo0x0kkJd3KtOIqXdUT1Lxg== X-Received: by 2002:ac8:382e:: with SMTP id q43mr18958725qtb.119.1614707318875; Tue, 02 Mar 2021 09:48:38 -0800 (PST) Original-Received: from lumet2.home (pool-108-26-232-211.bstnma.fios.verizon.net. [108.26.232.211]) by smtp.gmail.com with ESMTPSA id z188sm14502006qkb.40.2021.03.02.09.48.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Mar 2021 09:48:38 -0800 (PST) In-Reply-To: <83sg5d5vw5.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.120.23.2.4) 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:201231 Archived-At: On Mar 2, 2021, at 12:05 PM, Eli Zaretskii wrote: > >> From: Howard Melman >> Date: Tue, 2 Mar 2021 11:35:01 -0500 >> >> lisp-outline-level returns a functional but incorrect level >> number. Comments beginning with ";;; " should be at level 1 >> but it returns 5 because they match ";;; [^ \t\n]" and the >> current code just returns that length. > > I believe these problems are fixed on the master branch (or at least > the behavior is very different), please try that. I don't build my own emacs and can't easily test on master. I had previously confirmed that lisp-outline-level in 27.1 is the same as in master as shown here: http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/emacs-lisp/lisp-mode.el You can quickly test the behavior by putting point at the beginning of a "heading" line in an emacs-lisp-mode file and running: (progn (looking-at outline-regexp) (funcall outline-level)) Howard