From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 12:19:33 2023 Received: (at submit) by debbugs.gnu.org; 22 Jun 2023 16:19:34 +0000 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 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 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 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 Date: Thu, 22 Jun 2023 16:18:59 +0000 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== To: "bug-gnu-emacs@gnu.org" From: uzibalqa Subject: Setting of outline levels for custom headings Message-ID: Feedback-ID: 52887082:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 14:58:17 2023 Received: (at 64227) by debbugs.gnu.org; 22 Jun 2023 18:58:17 +0000 Received: from localhost ([127.0.0.1]:36746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCPVZ-00007F-3w for submit@debbugs.gnu.org; Thu, 22 Jun 2023 14:58:17 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:54817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCPVW-00006u-At; Thu, 22 Jun 2023 14:58:16 -0400 X-GND-Sasl: juri@linkov.net X-GND-Sasl: juri@linkov.net X-GND-Sasl: juri@linkov.net Received: by mail.gandi.net (Postfix) with ESMTPSA id EB3FB1BF204; Thu, 22 Jun 2023 18:58:06 +0000 (UTC) From: Juri Linkov To: uzibalqa Subject: Re: bug#64227: Setting of outline levels for custom headings In-Reply-To: (uzibalqa via's message of "Thu, 22 Jun 2023 16:18:59 +0000") Organization: LINKOV.NET References: Date: Thu, 22 Jun 2023 21:56:41 +0300 Message-ID: <86zg4ruxzq.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 64227 Cc: 64227@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) forcemerge 64177 64227 stop > I am using outline-minor-mode and have changed outline-regexp, outline-heading-alist. > > Have seen that for some major modes (e.g. emacs-lisp-mode), with outline-minor-mode-highlight > set to 'override nil), one has to call (setq-local outline-level 'outline-level) for the > 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 headings setup operational. > > Furthermore, although a call to (setq-local outline-level 'outline-level) solved the problem, > a better approach would be for outline-minor-mode to automatically detect whether 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 only needed for certain > major modes only. Why are you creating a new bug report instead of replying to the existing? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 15:31:14 2023 Received: (at 64227) by debbugs.gnu.org; 22 Jun 2023 19:31:14 +0000 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 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 Date: Thu, 22 Jun 2023 19:30:57 +0000 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== To: Juri Linkov From: uzibalqa Subject: Re: bug#64227: Setting of outline levels for custom headings Message-ID: In-Reply-To: <86zg4ruxzq.fsf@mail.linkov.net> References: <86zg4ruxzq.fsf@mail.linkov.net> Feedback-ID: 52887082:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64227 Cc: 64227@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------- 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 From unknown Mon Jun 23 00:36:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 24 Jul 2023 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator