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 16:18:59 +0000 Message-ID: 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="27989"; mail-complaints-to="usenet@ciao.gmane.io" To: 64227@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 18:21:13 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 1qCN3Y-0006ya-2u for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 18:21:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCN39-0007XW-WF; Thu, 22 Jun 2023 12:20:52 -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 1qCN2h-00075Y-Te for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:20:24 -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 1qCN2Q-0000HU-Gi for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:20:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCN2P-00046f-V9 for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:20:01 -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 16:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64227 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.168745077415726 (code B ref -1); Thu, 22 Jun 2023 16:20:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jun 2023 16:19:34 +0000 Original-Received: from localhost ([127.0.0.1]:36556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCN1x-00045a-LP for submit@debbugs.gnu.org; Thu, 22 Jun 2023 12:19:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCN1v-00045P-Lj for submit@debbugs.gnu.org; Thu, 22 Jun 2023 12:19:32 -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 1qCN1k-0005VT-58 for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:19:26 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCN1f-0006te-DL for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:19:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1687450752; x=1687709952; bh=5AtKxicuDK6UpmySydTeEBlscHIu30YBeBs+a871nv0=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=Hy81yJBsFy0JaNakouyBMY0FtwzSy+/WawJTiMsKchaNp4ucxbS2QzG68x1o6WT5u w2n6lKvpB2V9lF+ZJ8yalPHGuUAoUadrSGa+ujgvxLwaXUD/60UB7hPUNarBhPfPos aTHdR1L7EuFWCYOSHj5cRcx6FAz2EHoxcSHpEEPoTN/zhyOG/A2VW9+G1dojPaq+3T Ef8FAk9ka1GWWES4XKFx4noT3K/dtgxA8RNmScIzcM9+TJK5uEupuv/2/IdrKGByJ3 n/6UcO4plvhiLk/yUJdHYLAr0Tpcv6sHi8D4xl+3mfuPDbF6vwOlFNzYFcpYKYkBv/ trDji+QbUudrA== Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.43.25; envelope-from=uzibalqa@proton.me; helo=mail-4325.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263890 Archived-At: I am using outline-minor-mode and have changed outline-regexp, outline-head= ing-alist. Have seen that for some major modes (e.g. emacs-lisp-mode), with outline-mi= nor-mode-highlight set to 'override nil), one has to call (setq-local outline-level 'outline-= level) for the=20 heading faces to take effect. But without the call to outline-minor-mode-highlight, the headings defined = by outline-regexp still get recognised, but not the outline levels. It is not evident at this point, which major modes require a call to (setq-= local outline-level 'outline-level). There is not enough information in the documentation to get a custom headin= gs setup operational. Furthermore, although a call to (setq-local outline-level 'outline-level) s= olved the problem, a better approach would be for outline-minor-mode to automatically detect w= hether a custom heading was specified, and thus act accordingly. It would be quite a struggle for = people to perceive the need to call (setq-local outline-level 'outline-level), as the change is on= ly needed for certain major modes only. =20