From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64227: Setting of outline levels for custom headings Date: Thu, 22 Jun 2023 19:30:57 +0000 Message-ID: References: <86zg4ruxzq.fsf@mail.linkov.net> Reply-To: uzibalqa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20728"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64227@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 21:32:23 2023 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 1qCQ2Y-00055E-RB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 21:32:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCQ2O-0005XW-LM; Thu, 22 Jun 2023 15:32:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCQ2E-0005Wt-Gy for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 15:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCQ2E-0002gD-7W for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 15:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCQ2E-00060Y-43 for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 15:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: uzibalqa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jun 2023 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64227 X-GNU-PR-Package: emacs Original-Received: via spool by 64227-submit@debbugs.gnu.org id=B64227.168746227423035 (code B ref 64227); Thu, 22 Jun 2023 19:32:02 +0000 Original-Received: (at 64227) by debbugs.gnu.org; 22 Jun 2023 19:31:14 +0000 Original-Received: from localhost ([127.0.0.1]:36800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCQ1S-0005zS-0U for submit@debbugs.gnu.org; Thu, 22 Jun 2023 15:31:14 -0400 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]:11455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCQ1O-0005zD-CY for 64227@debbugs.gnu.org; Thu, 22 Jun 2023 15:31:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1687462263; x=1687721463; bh=HXVwUtwPQKB5TXCV6PJ8IQ4pC3pMCnKh8UihvS7KB/A=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Ae974C0y99TRJt4YW4KVjGlCCCZjFLMV54h+GEpAOUVIXDWSXulU3r9f2pXauxKgt 9xxt7oMlukCONYils2ud3sOe49pcfBca5Ed1kG1rl/xQe9XIeATt5WSTJ1kTcotXaq 8wR/QH54kcuYPzdCE8ZfptHHQbwNTUACdK25yjzzmBNlZWWTmSOLoWpM1o8Q5AAZgv xmCagaYEBKPGbBxM0FIwz04W7B3UklVDi/M1MBkqYqowZrbPBjdQGlAyA3Q0LN0jW2 YijVUKqWksqFFpPD+sAwzh7iOFitoACCEMd/B9LswLWW4Plkp57D6NKszVo9s6UfGR dSBrwLtMPHWMg== In-Reply-To: <86zg4ruxzq.fsf@mail.linkov.net> Feedback-ID: 52887082:user:proton 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263918 Archived-At: ------- Original Message ------- On Friday, June 23rd, 2023 at 6:56 AM, Juri Linkov wrote: > forcemerge 64177 64227 > stop >=20 > > I am using outline-minor-mode and have changed outline-regexp, outline-= heading-alist. > >=20 > > Have seen that for some major modes (e.g. emacs-lisp-mode), with outlin= e-minor-mode-highlight > > set to 'override nil), one has to call (setq-local outline-level 'outli= ne-level) for the > > heading faces to take effect. > >=20 > > But without the call to outline-minor-mode-highlight, the headings defi= ned by outline-regexp > > still get recognised, but not the outline levels. > >=20 > > It is not evident at this point, which major modes require a call to (s= etq-local outline-level 'outline-level). > > There is not enough information in the documentation to get a custom he= adings setup operational. > >=20 > > Furthermore, although a call to (setq-local outline-level 'outline-leve= l) solved the problem, > > a better approach would be for outline-minor-mode to automatically dete= ct whether a custom heading > > was specified, and thus act accordingly. It would be quite a struggle f= or people to perceive the > > need to call (setq-local outline-level 'outline-level), as the change i= s only needed for certain > > major modes only. >=20 >=20 > Why are you creating a new bug report instead of replying to the existing= ? You provided a solution for my bug report with (setq-local outline-level 'outline-level) This is about a request to handle custom headings better, otherwise improvi= ng documentation on how to set up custom headings and a simpler way to figure = out which major modes would require the additional outline-level call.=20