From unknown Mon Jun 16 23:47:17 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48710 <48710@debbugs.gnu.org> To: bug#48710 <48710@debbugs.gnu.org> Subject: Status: Retaining code highlighting (for defun, defvar) in outline mode Reply-To: bug#48710 <48710@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:47:17 +0000 retitle 48710 Retaining code highlighting (for defun, defvar) in outline mo= de reassign 48710 emacs submitter 48710 pauline-galea@gmx.com severity 48710 minor tag 48710 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 27 21:17:41 2021 Received: (at submit) by debbugs.gnu.org; 28 May 2021 01:17:41 +0000 Received: from localhost ([127.0.0.1]:53229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmR89-0003YM-Di for submit@debbugs.gnu.org; Thu, 27 May 2021 21:17:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:34200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmR87-0003YE-Ud for submit@debbugs.gnu.org; Thu, 27 May 2021 21:17:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmR87-0004Oh-PL for bug-gnu-emacs@gnu.org; Thu, 27 May 2021 21:17:39 -0400 Received: from mout.gmx.net ([212.227.17.20]:48011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmR81-0001p9-Tb for bug-gnu-emacs@gnu.org; Thu, 27 May 2021 21:17:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622164651; bh=wKvmSfOPxud7famMWwy6DoRPr3Vj48X09hGrQJAWFAE=; h=X-UI-Sender-Class:From:To:Subject:Date; b=QYlLgRZz2Iu5EJ3bJOiCrfh08dCrmW4kpRiyVfVMeNoMinVyX4kFW/kB1dVCbUabb CJH4za1TQpN+M4OLMGUPXurygc18qetpnhMF0MHfMGmunwCCx7RtfeBDKmFxkmfaDS 2y3WTlfTw7pjdnTI6pSNqwIjtWco+HSy1Ccxdd+8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs04.server.lan [172.19.170.170]) (via HTTP); Fri, 28 May 2021 03:17:30 +0200 MIME-Version: 1.0 Message-ID: From: pauline-galea@gmx.com To: bug-gnu-emacs@gnu.org Subject: Retaining code highlighting (for defun, defvar) in outline mode Content-Type: text/plain; charset=UTF-8 Date: Fri, 28 May 2021 03:17:30 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:wZNQt2f08YnznjIbtlEVHlLDvNXWHHXQ/t4RVJLVMfjVO+vpsJk0q3k42SaR+tmBvuErs AagQjplR4qkZlTXeHziuDvrM+uOCTYKnwhGASm7qFM3H3PStYcGOfMFdyxF73J1Jlu2YAdDwzOgn mNwA5J6BFt9h1qVrsgnG/p0cI2jpfSIiPkLKauJPThEdn5OBt39JlRxq9aOFsG9jVgqbPSJ8H5mQ cE8sbyAtFCyw/9UQb7q8J3/r2RpOHF6i5JDZhXD3mLr4wNXdJQdFDZWH8Hw09RhYHnvdFziS5/f3 5s= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:l/T4Cii6hH0=:BvTs1IC/HHlcJpn/uxnCdN lRl1wJlIf6XBZiR+a/uNm3Vo6Re9eCS1ZY7XWTVEubptrvbSerZZUKZVHTl2mtMSgE5vitDMF 6WVurTRJuf4x1VInGdZ/6LrDd/uL1kdobYc7VE2hH6LX21vWAHxgf985kUto/WyHpXBgQCKW6 IxaAfU4CZBxoSISLqh/x0NsAfYByMIl+vxAgXnkVXwPftjoCIbv7XztSe67dlcLfhXSfYdMCY ukvvboNzdGQMTw0q11RLUAZnWNvBoE+PI3FNv9Ye13+BhqiwlSe6+3sh66FgbRbtOPY+3GaJb 1DBakCJBeZUYB3BoOwJ1PwiLZmhZynMzYCdot519Xv/Udv7ojR8Ar2wTDPcdhQzjjRsS6oRP5 Ei95j61anTkGK4EtXHLO3578ExZoYvf6yN3mSLUELpw7V2zXjhg99A2OH7DuZJQ8+uNarcugm J+Z16kZm2QMWwRd+ig//Q57yavsGFYhJuBBC6F+OVdGVYLAcaROEVOuBArNG2tgQExORYRQH/ KdhJ0Aoc9YQ76x3+sNI29++yXmn4tIUcmh+KGbpAVnEExt7eDsydQUwuOcfHDxdUZ5J3NOZNO qBKpPW44G88YKAVElbNavBQx7yIJ8iqXshzHoRNYmuiPHDHKYbqYEfYzb0lwqANfwkPBgq+eB aDmZnhfAMS6JOXfWzV/9hiUvvBXckBs7tasjoa8GykWB4IZAQ5Cv7KDjBKmLJFRN6YUmGPfn1 okCgnyLwmewSEaEwTUprSKcC6Jmj1H1CTcHbhZwG5nzsMNUV0HixA5/68vv0dO4jEsf4kT6eY 74FXhI7PO7TqDLNINDN5yX4/+YhKZbyMN4q6wiQkc+k3r/5UP4= Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.17.20; envelope-from=pauline-galea@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) 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.4 (--) Currently outline mode changes the colour of headings and subheadings. But I have noticed that elisp structures are also considered as headings. This results in some code highlighting problems for things like "defun" and "defvar" because the whole line gets a one colour highlighting in a way that is similar to a heading face. It would be better that elisp code structures retain the original code hig= hlighting, but keep the ... at the end of the line to show that the code body is hidd= en. The ... could be highligted instead instead. For more flexibility, it would be beneficial to have a separate keybinding= that toggles between showing the contents (body) of a code structure and hiding it, tha= t is independent of headings. From debbugs-submit-bounces@debbugs.gnu.org Sat May 29 18:15:13 2021 Received: (at 48710) by debbugs.gnu.org; 29 May 2021 22:15:13 +0000 Received: from localhost ([127.0.0.1]:57906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ln7Ee-00055B-Qd for submit@debbugs.gnu.org; Sat, 29 May 2021 18:15:13 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:35593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ln7EZ-000534-96; Sat, 29 May 2021 18:15:07 -0400 Received: (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id BEFF940003; Sat, 29 May 2021 22:15:00 +0000 (UTC) From: Juri Linkov To: pauline-galea@gmx.com Subject: Re: bug#48710: Retaining code highlighting (for defun, defvar) in outline mode Organization: LINKOV.NET References: Date: Sun, 30 May 2021 00:55:10 +0300 In-Reply-To: (pauline-galea@gmx.com's message of "Fri, 28 May 2021 03:17:30 +0200") Message-ID: <87zgwd42sd.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 48710 Cc: 48710@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 (-) tags 48710 notabug close 48710 28.0.50 thanks > Currently outline mode changes the colour of headings and subheadings. > > But I have noticed that elisp structures are also considered as headings. > This results in some code highlighting problems for things like "defun" > and "defvar" because the whole line gets a one colour highlighting in > a way that is similar to a heading face. > > It would be better that elisp code structures retain the original code highlighting, > but keep the ... at the end of the line to show that the code body is hidden. > The ... could be highligted instead instead. > > For more flexibility, it would be beneficial to have a separate keybinding that toggles > between showing the contents (body) of a code structure and hiding it, that is independent > of headings. It seems this is already implemented: when you customize outline-minor-mode-highlight to a value 't' or 'append' (but not 'override'), and also customize outline-minor-mode-cycle to t, then after enabling outline-minor-mode, and typing S-TAB S-TAB on a heading it keeps the ... at the end of lines, while retaining the original code highlighting. Please reopen this report, when you still see a problem and can't get it working. From unknown Mon Jun 16 23:47:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Jun 2021 11:24:05 +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