From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Making outline-minor-mode's outline-regexp more flexible Date: Tue, 01 Jan 2019 20:59:46 -0500 Message-ID: References: <87o9948aee.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1546394463 7090 195.159.176.226 (2 Jan 2019 02:01:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2019 02:01:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 02 03:00:58 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1geVq3-0001ep-2S for ged-emacs-devel@m.gmane.org; Wed, 02 Jan 2019 03:00:55 +0100 Original-Received: from localhost ([127.0.0.1]:41283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geVs9-0002QS-Qb for ged-emacs-devel@m.gmane.org; Tue, 01 Jan 2019 21:03:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1geVrW-0002Q7-Vi for emacs-devel@gnu.org; Tue, 01 Jan 2019 21:02:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1geVrP-0006Uk-FG for emacs-devel@gnu.org; Tue, 01 Jan 2019 21:02:25 -0500 Original-Received: from [195.159.176.226] (port=60567 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1geVrN-0006TK-Kz for emacs-devel@gnu.org; Tue, 01 Jan 2019 21:02:18 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1geVpD-0000kF-OZ for emacs-devel@gnu.org; Wed, 02 Jan 2019 03:00:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 11 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:ZX3Wt9TH5D3+z0nFA5uvnwd/QJw= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232075 Archived-At: >> I have been able to use the variable outline-level to do what you want >> by adding a group to outline-regexp and subtracting its matched beginning >> in outline-level. > Ok, that is a valid way to do it (maybe the only way?), but it > requires writing a custom function to perform the regexp matching and > subtract its size. I don't see why outline-level would need to do any matching. Stefan