X-Loop: help-debbugs@HIDDEN
Subject: bug#48724: Code collapsing and outline headings for elisp
Resent-From: Christopher Dimech <dimech@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 28 May 2021 21:00:01 +0000
Resent-Message-ID: <handler.48724.B.162223556913995 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 48724
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: 48724 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.162223556913995
(code B ref -1); Fri, 28 May 2021 21:00:01 +0000
Received: (at submit) by debbugs.gnu.org; 28 May 2021 20:59:29 +0000
Received: from localhost ([127.0.0.1]:55463 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1lmjZp-0003df-4I
for submit <at> debbugs.gnu.org; Fri, 28 May 2021 16:59:29 -0400
Received: from lists.gnu.org ([209.51.188.17]:35236)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <dimech@HIDDEN>) id 1lmjZm-0003dW-JG
for submit <at> debbugs.gnu.org; Fri, 28 May 2021 16:59:28 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48034)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <dimech@HIDDEN>) id 1lmjZm-0006wf-6x
for bug-gnu-emacs@HIDDEN; Fri, 28 May 2021 16:59:26 -0400
Received: from mout.gmx.net ([212.227.15.15]:50581)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <dimech@HIDDEN>) id 1lmjZk-0003bK-9F
for bug-gnu-emacs@HIDDEN; Fri, 28 May 2021 16:59:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1622235557;
bh=iQNpbLCVL42SvhYoQx+xuuU2+NC9T36fFrqf7irNWys=;
h=X-UI-Sender-Class:From:To:Subject:Date;
b=gx5H2km72UwYd2Cqm06wcfJivKJDZK9WhIl/5+MEPOUdvLsZmWxQMx+S9P8CNiaVX
x5gFixJNyu9RuoWAJXLL2IkGfPKAoHFmSQUGkt0hJnzvahkhcDZ2cFHXlgIiDzBcrO
RGOJgHoEsrLdpDCNv0C8H6/9WWXK0OEAUkAK/X9U=
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-bs01.server.lan [172.19.170.58]) (via HTTP); Fri, 28 May
2021 22:59:17 +0200
MIME-Version: 1.0
Message-ID: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
From: Christopher Dimech <dimech@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Date: Fri, 28 May 2021 22:59:17 +0200
Importance: normal
Sensitivity: Normal
X-Priority: 3
X-Provags-ID: V03:K1:1Xq9odLzQRccSiwYrSbperdIzlp1HTNn00o5s+lyTRq00cdNr9N8wr2pyZ0U/NnROA1gX
S7ovd/mhYewssX4OPdwnM+alRCc2FJwgiXTS/sJyE40Te9c254JPO5iLtLYzDcGAGkl4JWTmSp3t
PE8s77jxymatMnSGV/u7ehzsWPolWa5O0lyOxWErr/SBw8X5RH6BFCn6AH49gKcOJd3XAHTLSaYz
XibdT/5cj4NZvnxxmFS6mY6WskZ6QXicaS/fO8B2i3YILGRfIcdn7Q3o+cYmOwiHTA8yuc6r4ekd
T0=
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:INY1KYutnKw=:rCm+D8pSUU/HNrdkzpG0QZ
HqS5/5Y8VuEe2cxaNuU1d8PtfV3fMa7LeOsSbq6q6Pw0Mq+Qyo+xL23cYuYkRd+7ZjKl1BJRx
F4XBK9cOuU33fsmyTdVxH3uZnvkJ3Xx7ZaC8Rr+ngPLPH42IBIsomf9ylxm9vSW7cTLA91F/M
goSmpBsorZ/nWiGDsLUC23JyQA2CrfPw014zDB093oNDc/V5SS++e6zc5CkAMD5HBBhjFCFCO
nFGGWuYbZPeNGe6csHRSCrNwhBEfz+GGSArATpCCAKDcscJ+F1ElkADrTKV+QGUCjCdPpb0yh
Pt8J/aJzJ8f1j658kb5+yomm5xG0RwYwrycUkd+XAepdU+Mm7hVRYmNtD/1JD4JHDTVfMfqqA
LmrsCUjkwWkaA4mV8wRsr4Oy4FoxNucoLfSMoaKzN4yGjrdzb3OHMe6bHgmA6st7eYj1nDppt
EdKioJikMJ20JJbRKvDABY+ZmwE90uZebqE8i6URjsmz93kLyNbWPxiWOymmOJ48C6an4ILnZ
EMbkqU21J4ibDq7kuoL0atJxQBKaHnlvFKh19vAu4tgm1fLzw6shvGUsTvuufONJl4O7GJQvQ
qg5mOMPxfI4yjt7JmF7tx+R4jPhbZUCSXmn7BzCCq/rzGSVvf/yM93PWM4m2nrjG4JqrBuFQL
bTVoFenJUPKJDQ8Js4hrVeuwqcPfAZTFsHbcdaJkWo1lhOY9pCoYoI71U70fTNYxDLysmmR21
y7+yjUO0OnEk5RyjJQ9/ckkTrLvTeiUGTk0MBrLTvKuuryvcykeu7FFbqXpUMBoSsuE01oW04
/vZqi8Tw77YTXvnvn5sJo+aAcVaFXZuC0QGM9RM0TcU+du3mPnhoGd66TieV9twEJ00EJVrSK
4otGEOt1swQC/QtD5W2XEALW4iWe2dPTEN5IpME9kJkLzV/YvmZTOW2/Yz+JRe
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@HIDDEN;
helo=mout.gmx.net
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001,
RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.4 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)
Currently, outline-minor-mode has the capability to treat "defun" construc=
ts
as heading, allowing one to choose to hide some code from view by collapsi=
ng
the region of code. It would be beneficial for the actual major mode itse=
lf
(i.e. emacs-lisp-mode) to handle the code collapsing, leaving the code hig=
hlighting
intact. Code collapsing could also be extended beyond not only collapsing
functions and variables ((defun, defvar), but also to additional construct=
s that could
be indented (e.g. lists '(...), let, let*, pcase) and other constructs use=
rs could
find useful (e.g. if, when, ).
And for outline-minor-mode, the mode could then be used to further enhance=
the structuring
of larger chunks of code (e.g. a collection of functions) using outline he=
adings. Outlining
would then be a separate capability different from code collapsing.
Regards
Christopher
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Christopher Dimech <dimech@HIDDEN> Subject: bug#48724: Acknowledgement (Code collapsing and outline headings for elisp) Message-ID: <handler.48724.B.162223556913995.ack <at> debbugs.gnu.org> References: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01> X-Gnu-PR-Message: ack 48724 X-Gnu-PR-Package: emacs Reply-To: 48724 <at> debbugs.gnu.org Date: Fri, 28 May 2021 21:00:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 48724 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 48724: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48724 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#48724: Code collapsing and outline headings for elisp
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 29 May 2021 22:16:02 +0000
Resent-Message-ID: <handler.48724.B48724.162232652819582 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48724
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Christopher Dimech <dimech@HIDDEN>
Cc: 48724 <at> debbugs.gnu.org
Received: via spool by 48724-submit <at> debbugs.gnu.org id=B48724.162232652819582
(code B ref 48724); Sat, 29 May 2021 22:16:02 +0000
Received: (at 48724) by debbugs.gnu.org; 29 May 2021 22:15:28 +0000
Received: from localhost ([127.0.0.1]:57910 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ln7Eu-00055m-Cd
for submit <at> debbugs.gnu.org; Sat, 29 May 2021 18:15:28 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42715)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <juri@HIDDEN>) id 1ln7Ed-00054N-BS
for 48724 <at> debbugs.gnu.org; Sat, 29 May 2021 18:15:11 -0400
Received: (Authenticated sender: juri@HIDDEN)
by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 756DC20003;
Sat, 29 May 2021 22:15:03 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
References: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
Date: Sun, 30 May 2021 00:57:31 +0300
In-Reply-To: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
(Christopher Dimech's message of "Fri, 28 May 2021 22:59:17 +0200")
Message-ID: <877djh42jg.fsf@HIDDEN>
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; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
> Currently, outline-minor-mode has the capability to treat "defun" constructs
> as heading, allowing one to choose to hide some code from view by collapsing
> the region of code. It would be beneficial for the actual major mode itself
> (i.e. emacs-lisp-mode) to handle the code collapsing, leaving the code highlighting
> intact. Code collapsing could also be extended beyond not only collapsing
> functions and variables ((defun, defvar), but also to additional constructs that could
> be indented (e.g. lists '(...), let, let*, pcase) and other constructs users could
> find useful (e.g. if, when, ).
>
> And for outline-minor-mode, the mode could then be used to further enhance the structuring
> of larger chunks of code (e.g. a collection of functions) using outline headings. Outlining
> would then be a separate capability different from code collapsing.
Currently everything is customizable in outline-minor-mode by just
two variables: outline-regexp and outline-level. So when necessary,
emacs-lisp-mode could provide an option that will set different values
of these variables, one of which could set outline-regexp to a regexp
that matches: lists, '(...), let, let*, pcase, if, when, etc…
X-Loop: help-debbugs@HIDDEN
Subject: bug#48724: Code collapsing and outline headings for elisp
Resent-From: Christopher Dimech <dimech@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 29 May 2021 23:56:01 +0000
Resent-Message-ID: <handler.48724.B48724.16223325465112 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48724
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Juri Linkov <juri@HIDDEN>
Cc: 48724 <at> debbugs.gnu.org
Received: via spool by 48724-submit <at> debbugs.gnu.org id=B48724.16223325465112
(code B ref 48724); Sat, 29 May 2021 23:56:01 +0000
Received: (at 48724) by debbugs.gnu.org; 29 May 2021 23:55:46 +0000
Received: from localhost ([127.0.0.1]:57968 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ln8nx-0001KN-Qr
for submit <at> debbugs.gnu.org; Sat, 29 May 2021 19:55:46 -0400
Received: from mout.gmx.net ([212.227.15.15]:57387)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <dimech@HIDDEN>) id 1ln8ns-0001K6-7X
for 48724 <at> debbugs.gnu.org; Sat, 29 May 2021 19:55:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1622332533;
bh=VHW/FO1xYCaUeQHsL0bPgP8ReCIuwzK6AYBCCzarnl4=;
h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References;
b=W2HN93mElxWYMZ/WKH8BqCKlS/bvIxNKs2ImR4qBAgUsgsi/eXvjaPJcDX9bT/y99
jrVApo+ZOZSVklf16lVwxW0oImGJlVdFxoJHFL3qlmCVZdS/W+fxiQVR14GncznvLQ
juPSPEr+/mPz3/rkaz7TEQ8UHGJX0Ckqb4bJpZsI=
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-bs16.server.lan [172.19.170.184]) (via HTTP); Sun, 30 May
2021 01:55:33 +0200
MIME-Version: 1.0
Message-ID: <trinity-4d4ea447-e74e-4b3c-ad0d-7c371743b75f-1622332533520@3c-app-mailcom-bs16>
From: Christopher Dimech <dimech@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Date: Sun, 30 May 2021 01:55:33 +0200
Importance: normal
Sensitivity: Normal
In-Reply-To: <877djh42jg.fsf@HIDDEN>
References: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
<877djh42jg.fsf@HIDDEN>
Content-Transfer-Encoding: quoted-printable
X-UI-Message-Type: mail
X-Priority: 3
X-Provags-ID: V03:K1:wXHTAy5HkpsJFs/1F0NF/bJqvzF5Km8PTWnW5k4HvlFNbCpYiLvDxWzdH/w2wXQpjdYr3
1KExLODr/rnaaRVHH0p5MYVqLsds55AGriTjgzBFUJ/cwOqgk823PWj4dseYB4eNQWU6amnfzus0
H81g2PRlo138raMXJLg1uJrtVycUk+1C1aMRAEWDTrtGccKkmJ4tywJy/wPRHsrG6ubaBhVFJYYM
lpGwTIy8iiOCaai0+cSOyHQ1p0+RPj9BJjcLGgnF7H0lyoeGqZAwQ0OxFiBk4AwWr9OBQ59qoa9I
MY=
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:oW/n7KwtIpE=:FtSIkWEkTrrmCKhQa5N05v
3nY9KfIAdvCuSZNfFGjHxjK6F651va1x+ismQPspJr9VUrpiMA9kt617F7nbpmVNTkGtQn0E6
OWnx+2knzCRfv62k+DXq8ZRTGYg3pU9AC8BtJDaS6VIEw/jnWh6tJ+I9hWVikWVFAIp/S4gmF
xo/uknJ5O7kjrkSw7zacLbCPFiwlfqRLR7PlHc06XOzVsYmFSFR/0nbr2kGYVzcL7tXzUdt9m
Knk68+clCcgvOMYZA0Q8nOT7YXs3zYJi7KAwHOnIKmv8upInr+elodrbbmVJBYeRsb09G6Ia7
gwjEukG8ldFG8BLo5DUhOGg7GiWKZBUseBa/iBXnt+O4CPU1DZmhuffdz23SunfTQzZz2Cy4N
pTxZ9M4XK7sKX+ILR8FZrFOQ/MS3qcgKB0IUUOhoUEIPepVSUEJ0K1Xo7nRO0gVu6PWyFfDFv
w2BmChaQpqxeyfqD0Wscgo28OJoOrFeY5jgG3ln4vMSVd3lghW8K4F86kFGTiGSLIWyv9IysW
MiuIrfGma8RRnJHrbO1XEWqMWeKUto27GqU7OAbpqjeKruxN0Mm3miKqWFQ5fjgWPe/SIPoU0
v1ylc1U344Pz3MLOxapTX1L1x/f62xO5li9Yhb3VEVzAz/Ko4yMkbbcK0EWuOoF7T8fggbU4e
3Ie1mYa/q0CbLaQjraAYrvZYuEosf6qNqOQB8oiztrcCQsfIIMONbEUjMZWTVRaDTjRlGlnPZ
KFZUcDbkn7WyMuGi1At2NXLw6Y8akzue9BKJFys4jq7mYEp4/btv73irClRP3u8blIwQxw7pD
CFPqNLVyHIUtdjQD8Wv9thSSHwAin5AgBCd/+KykO7rbIEETNl5N5G+O8ca/KVJh+I2Qnjw34
NahZmQcUS3c8GG3Y7x1zNVm6MzXLIpJVCBii7qkC/gIlFTpiJyl6WKRTqGibfY
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
> Sent: Sunday, May 30, 2021 at 9:57 AM
> From: "Juri Linkov" <juri@linkov=2Enet>
> To: "Christopher Dimech" <dimech@gmx=2Ecom>
> Cc: 48724@debbugs=2Egnu=2Eorg
> Subject: Re: bug#48724: Code collapsing and outline headings for elisp
>
> > Currently, outline-minor-mode has the capability to treat "defun" cons=
tructs
> > as heading, allowing one to choose to hide some code from view by coll=
apsing
> > the region of code=2E It would be beneficial for the actual major mod=
e itself
> > (i=2Ee=2E emacs-lisp-mode) to handle the code collapsing, leaving the =
code highlighting
> > intact=2E Code collapsing could also be extended beyond not only coll=
apsing
> > functions and variables ((defun, defvar), but also to additional const=
ructs that could
> > be indented (e=2Eg=2E lists '(=2E=2E=2E), let, let*, pcase) and other =
constructs users could
> > find useful (e=2Eg=2E if, when, )=2E
> >
> > And for outline-minor-mode, the mode could then be used to further enh=
ance the structuring
> > of larger chunks of code (e=2Eg=2E a collection of functions) using ou=
tline headings=2E Outlining
> > would then be a separate capability different from code collapsing=2E
>=20
> Currently everything is customizable in outline-minor-mode by just
> two variables: outline-regexp and outline-level=2E So when necessary,
> emacs-lisp-mode could provide an option that will set different values
> of these variables, one of which could set outline-regexp to a regexp
> that matches: lists, '(=2E=2E=2E), let, let*, pcase, if, when, etc=E2=80=
=A6
The general impression is that outline-minor-mode is a general mode
for customisable headings that are then handled by the respective
major mode=2E
General settings could be better, because some variables are not customiza=
ble=2E
Serious problem is that the two important variables: `outline-regexp' and
`outline-heading-alist' are not customizable by using "M-x customize-group=
"=2E
Additionally both of them should be customizable per mode=2E Don't you th=
ink so?
There has been a discussion today about outline-minor-mode settings for fo=
rtran
(both fixed and free form)=2E Have had a go at using "!" and "!!", but "H=
ide Body"
did not hide the body=2E
There could be some default headings for fortran when outline-minor-mode i=
s enabled=2E
One could follow the current setup for emacs-lisp-mode, for fortran=2E
!! for heading level 1
!!! for subheading level 2
!!!! for subsubheading level 3
Together with "Hide Body" for lines beginning with "subroutine" and "funct=
ion"=2E
X-Loop: help-debbugs@HIDDEN
Subject: bug#48724: Code collapsing and outline headings for elisp
Resent-From: Christopher Dimech <dimech@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 30 May 2021 01:39:02 +0000
Resent-Message-ID: <handler.48724.B48724.162233873214875 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48724
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Juri Linkov <juri@HIDDEN>, 48724 <at> debbugs.gnu.org
Received: via spool by 48724-submit <at> debbugs.gnu.org id=B48724.162233873214875
(code B ref 48724); Sun, 30 May 2021 01:39:02 +0000
Received: (at 48724) by debbugs.gnu.org; 30 May 2021 01:38:52 +0000
Received: from localhost ([127.0.0.1]:57994 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1lnAPj-0003rr-Et
for submit <at> debbugs.gnu.org; Sat, 29 May 2021 21:38:52 -0400
Received: from mout.gmx.net ([212.227.17.22]:36257)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <dimech@HIDDEN>) id 1lnAPe-0003rX-K0
for 48724 <at> debbugs.gnu.org; Sat, 29 May 2021 21:38:50 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1622338719;
bh=VYRF0U/ceR5oM/gXYyjZvRUsJk5HPC+qgrQvEp7/p+w=;
h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References;
b=NVdNh8LVpkGkt7oiO/ChQdP0YrfixpP0QqU4Ar4T7zFs9JEEBYEsm+hASXoeaI4f2
iRt/w/01cIKtRicfyJ+qq8g4JCcJqJyXgVW1eaOpVPYAjNLeWbAy7yp6gxXNjckbCF
Z4LYVAGKDW7lTrbgo4+Gn2MFMKprdcJfWE0wafl8=
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-bs16.server.lan [172.19.170.184]) (via HTTP); Sun, 30 May
2021 03:38:39 +0200
MIME-Version: 1.0
Message-ID: <trinity-c1dae5bd-b6fd-45ea-81d2-4aebbbe63d82-1622338719281@3c-app-mailcom-bs16>
From: Christopher Dimech <dimech@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Date: Sun, 30 May 2021 03:38:39 +0200
Importance: normal
Sensitivity: Normal
In-Reply-To: <trinity-4d4ea447-e74e-4b3c-ad0d-7c371743b75f-1622332533520@3c-app-mailcom-bs16>
References: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
<877djh42jg.fsf@HIDDEN>
<trinity-4d4ea447-e74e-4b3c-ad0d-7c371743b75f-1622332533520@3c-app-mailcom-bs16>
Content-Transfer-Encoding: quoted-printable
X-UI-Message-Type: mail
X-Priority: 3
X-Provags-ID: V03:K1:eTBj8M5uvHLtMot5Vfalva31sVoUTAJkPjEZsiNlD7GpNLVvY8C6i+nBuuZQeX4uIxjfZ
VjFySS+h3YJSqewdKKS/H0IxOj30jD/rSSg15w307HZqsXYOJGW5jkIo7fPZ+kNgrJ9X8ZA6vZsY
9BQEqWOpsSrwT8QPx0+hPJ6Z7/rEZaN5YflMgCOUykUpaGqahMS9kZCFl4OCsVMBrcRxLIF3RxjV
LogzmEqi+I6khTdOgapvNk8cGNq/uJbT/G651t3MusNI8tC6HD/OD66DIpbs4fA8NlIm6gAowjBV
00=
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:wiEfQM1PONk=:DiwDtl7PJ1llP1rDbcT07h
0ThSY2qTcKM03L5T2dDSMsnp85Jdom1eMIKtUbpePcjZQkkHk96WrHNULzIhRd/7y+3tTn2qh
T9QfkY/mfIl0VvMcM20LM8fvP/hiPSnkxmAtC8ZiLm9nqUhharVaCcil/NGzFwqzo/1/YWoAi
7yqbkwZQrMcMp3+h2lAd6KyDqiSIuGlS9Ggcnrfe7QHHKHOq0PKyhJ/nEXEt3JgGrBKQfKZ6U
8xaYTQVoEWwfbMKA7bk5In+A/lB0tHI5wr3RZXlX0yMi9Z8tNKRH53c76Jh55qFWDprZTS5LI
+kfY8jN9TIgIad8xjjLNnDmcppjRd3IVwVpk+cBw/nYI1/rIZzICvFhRMDi4HPQkMd0vWDBQK
aHEbBBimFRtI0Htay1kjet1LY2YUhMeFTpcK2Bhp6ZK3a6IQ/lv7mNw3UxRicIaC5GVsUl6tJ
xxsqqvFKI+FerZTaqqp7AT6fqix1JqRETkNCkfK0NNZUSBFHYzHcjfw4REFA2AQhDyHvMEyMy
LkZCLNbtBkDtEuviC/onvcRtIhbh9zeCf65NtsH6gDdQbhWIS2xsF5DaFULSL3MOO9QP5pKz4
HvdtU/8Q/uGd8t6eIycbQqIm2M5mV66EZlAZZoAYXkctxvG5B8UGRx+a41Imdi9/dAZfm4VEx
mpNwQD3ShOrGNZcq10z+3WwA0zVPph1U2DeErYpG7REJK4rwOrSIQVJSaDGNgWeVn/6zQ7ooe
cT4+/7HmsiYruQ+WnPk//OGAw9PWSf7IL68w+jujOgqXptbaxG3tcPpnLAzM8dhSb5pnOdkYU
BjhD5NWBR0wek2T02/WILVG2vqvSJRDQzBtToehAh0mgClyviIheaRgsa9Xe/vXIwe24L96ls
pE4T1JetOAd2g/Sr5kqCidXr0/A1AYa6kgAqH2+OEyVVq0fjN3VxC/iuCYH51D
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
> Sent: Sunday, May 30, 2021 at 11:55 AM
> From: "Christopher Dimech" <dimech@gmx=2Ecom>
> To: "Juri Linkov" <juri@linkov=2Enet>
> Cc: 48724@debbugs=2Egnu=2Eorg
> Subject: bug#48724: Code collapsing and outline headings for elisp
>
> > Sent: Sunday, May 30, 2021 at 9:57 AM
> > From: "Juri Linkov" <juri@linkov=2Enet>
> > To: "Christopher Dimech" <dimech@gmx=2Ecom>
> > Cc: 48724@debbugs=2Egnu=2Eorg
> > Subject: Re: bug#48724: Code collapsing and outline headings for elisp
> >
> > > Currently, outline-minor-mode has the capability to treat "defun" co=
nstructs
> > > as heading, allowing one to choose to hide some code from view by co=
llapsing
> > > the region of code=2E It would be beneficial for the actual major m=
ode itself
> > > (i=2Ee=2E emacs-lisp-mode) to handle the code collapsing, leaving th=
e code highlighting
> > > intact=2E Code collapsing could also be extended beyond not only co=
llapsing
> > > functions and variables ((defun, defvar), but also to additional con=
structs that could
> > > be indented (e=2Eg=2E lists '(=2E=2E=2E), let, let*, pcase) and othe=
r constructs users could
> > > find useful (e=2Eg=2E if, when, )=2E
> > >
> > > And for outline-minor-mode, the mode could then be used to further e=
nhance the structuring
> > > of larger chunks of code (e=2Eg=2E a collection of functions) using =
outline headings=2E Outlining
> > > would then be a separate capability different from code collapsing=
=2E
> >=20
> > Currently everything is customizable in outline-minor-mode by just
> > two variables: outline-regexp and outline-level=2E So when necessary,
> > emacs-lisp-mode could provide an option that will set different values
> > of these variables, one of which could set outline-regexp to a regexp
> > that matches: lists, '(=2E=2E=2E), let, let*, pcase, if, when, etc=E2=
=80=A6
>=20
> The general impression is that outline-minor-mode is a general mode
> for customisable headings that are then handled by the respective
> major mode=2E
>=20
> General settings could be better, because some variables are not customi=
zable=2E
>=20
> Serious problem is that the two important variables: `outline-regexp' an=
d
> `outline-heading-alist' are not customizable by using "M-x customize-gro=
up"=2E
>=20
> Additionally both of them should be customizable per mode=2E Don't you =
think so?
>=20
> There has been a discussion today about outline-minor-mode settings for =
fortran
> (both fixed and free form)=2E Have had a go at using "!" and "!!", but =
"Hide Body"
> did not hide the body=2E
>=20
> There could be some default headings for fortran when outline-minor-mode=
is enabled=2E
> One could follow the current setup for emacs-lisp-mode, for fortran=2E
>=20
> !! for heading level 1
> !!! for subheading level 2
> !!!! for subsubheading level 3
>=20
> Together with "Hide Body" for lines beginning with "subroutine" and "fun=
ction"=2E
=20
Looking at emacs-lisp again, the levels should be as follows
!!! for heading level 1 (starting as !!! as in emacs-lisp-mode)
!!!! for subheading level 2
!!!!! for subsubheading level 3 etc
I wonder if there exists the capabibily in outline-minor-mode to hide
code structures inside another code structure=2E
For instance for "do", "if" and "else" statements=2E
do in1 =3D 1, nr(1)
do in2 =3D 1, nr(1)
ind =3D in1 - in2
if (ind < 0) then
res(in1, in2) =3D conjg(fc(abs(ind)+1))
else
res(in1, in2) =3D fc(ind+1)
endif
enddo
enddo
hiding would then give the following
do in1 =3D 1, nr(1)
do in2 =3D 1, nr(1)
ind =3D in1 - in2
if (ind < 0) then =2E=2E=2E
else =2E=2E=2E
end if
end do
end do
do in1 =3D 1, nr(1)
do in2 =3D 1, nr(1) =2E=2E=2E
end do
end do
do in1 =3D 1, nr(1) =2E=2E=2E
end do
X-Loop: help-debbugs@HIDDEN
Subject: bug#48724: Code collapsing and outline headings for elisp
In-Reply-To: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 30 May 2021 22:39:03 +0000
Resent-Message-ID: <handler.48724.B48724.162241431230102 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48724
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Christopher Dimech <dimech@HIDDEN>
Cc: 48724 <at> debbugs.gnu.org
Received: via spool by 48724-submit <at> debbugs.gnu.org id=B48724.162241431230102
(code B ref 48724); Sun, 30 May 2021 22:39:03 +0000
Received: (at 48724) by debbugs.gnu.org; 30 May 2021 22:38:32 +0000
Received: from localhost ([127.0.0.1]:60560 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1lnU4m-0007pM-AB
for submit <at> debbugs.gnu.org; Sun, 30 May 2021 18:38:32 -0400
Received: from relay12.mail.gandi.net ([217.70.178.232]:37261)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <juri@HIDDEN>) id 1lnU4e-0007oc-4O
for 48724 <at> debbugs.gnu.org; Sun, 30 May 2021 18:38:28 -0400
Received: (Authenticated sender: juri@HIDDEN)
by relay12.mail.gandi.net (Postfix) with ESMTPSA id 2054F200005;
Sun, 30 May 2021 22:38:16 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
References: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
<877djh42jg.fsf@HIDDEN>
<trinity-4d4ea447-e74e-4b3c-ad0d-7c371743b75f-1622332533520@3c-app-mailcom-bs16>
Date: Mon, 31 May 2021 01:15:59 +0300
Message-ID: <87a6obzxao.fsf@HIDDEN>
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-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
> Serious problem is that the two important variables: `outline-regexp' and
> `outline-heading-alist' are not customizable by using "M-x customize-group".
>
> Additionally both of them should be customizable per mode. Don't you think so?
I think that modes should set `outline-regexp' and `outline-heading-alist'
according to the constructs of their programming language. Then users
don't need to customize these variables.
> There has been a discussion today about outline-minor-mode settings for fortran
> (both fixed and free form). Have had a go at using "!" and "!!", but "Hide Body"
> did not hide the body.
>
> There could be some default headings for fortran when outline-minor-mode is enabled.
> One could follow the current setup for emacs-lisp-mode, for fortran.
>
> !! for heading level 1
> !!! for subheading level 2
> !!!! for subsubheading level 3
I agree it would be nice to set an appropriate value of `outline-regexp'
and `outline-heading-alist' for fortran-mode in lisp/progmodes/fortran.el.
But the last time I used Fortran was when Fortran had the "C" character
for comments at the first fixed column on a punched card, and now
your example uses some new syntax "!" for comments, so sorry, can't help here.
This task would be a nice assignment for the group of students.
X-Loop: help-debbugs@HIDDEN
Subject: bug#48724: Code collapsing and outline headings for elisp
Resent-From: Christopher Dimech <dimech@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 30 May 2021 23:59:01 +0000
Resent-Message-ID: <handler.48724.B48724.16224191174867 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48724
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Juri Linkov <juri@HIDDEN>
Cc: 48724 <at> debbugs.gnu.org
Received: via spool by 48724-submit <at> debbugs.gnu.org id=B48724.16224191174867
(code B ref 48724); Sun, 30 May 2021 23:59:01 +0000
Received: (at 48724) by debbugs.gnu.org; 30 May 2021 23:58:37 +0000
Received: from localhost ([127.0.0.1]:60585 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1lnVKG-0001GP-Om
for submit <at> debbugs.gnu.org; Sun, 30 May 2021 19:58:37 -0400
Received: from mout.gmx.net ([212.227.15.15]:40117)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <dimech@HIDDEN>) id 1lnVKE-0001GC-Bj
for 48724 <at> debbugs.gnu.org; Sun, 30 May 2021 19:58:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1622419107;
bh=2ImA1LDGYqc6i4wqs/UEyFLUY6cscIRXL7aSjnbVKF8=;
h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References;
b=HaIT0QkYVgbm6ZoFH2DGCBaJpVaKimGYLUEe1JME939cU0B5MnzNucQknVZt4BLbh
y9KGfuCOsnsH53upbUhODL1SFP6AuFF8PWrCnglvrlb8SlZrUF+HTei5qJC8euHNap
tIzkx2cqBIyQBTySHt8LvtT2uItchrvstEebPCIk=
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-bs10.server.lan [172.19.170.178]) (via HTTP); Mon, 31 May
2021 01:58:27 +0200
MIME-Version: 1.0
Message-ID: <trinity-d01259eb-0d99-4bc0-a454-678057c372e4-1622419107463@3c-app-mailcom-bs10>
From: Christopher Dimech <dimech@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Date: Mon, 31 May 2021 01:58:27 +0200
Importance: normal
Sensitivity: Normal
In-Reply-To: <87a6obzxao.fsf@HIDDEN>
References: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
<877djh42jg.fsf@HIDDEN>
<trinity-4d4ea447-e74e-4b3c-ad0d-7c371743b75f-1622332533520@3c-app-mailcom-bs16>
<87a6obzxao.fsf@HIDDEN>
X-UI-Message-Type: mail
X-Priority: 3
X-Provags-ID: V03:K1:W/7abSVQsnOn2YjLRiibMHjkO4eEwhquWMHGO0SyFHrPKy62D+OvBS+tXuhzRXR372csU
hztAvR85r/Dx1DVH48ncR7K/c9rLSEoVXcNjbL3LYfw7GzDUijJwjtqEY0saXoXytMAx/GBmQSAH
0NsYy9txhcBVUTkoMmJYoIm8Vy7AEzTnO9Xw6VI3VtoqxQlGo0cD6rN9pgHcRUIwSemAAQLLSuJI
eOsvZOnifxmsVRmRoT05+wv7rTUjLO3IFhevNVsQ9vfZBTG8w7c70T1hiRtmjsFQXSI+OVt0mCnK
38=
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:81Y+4052IeE=:64IBHH6MgMjsYega7r+uO4
DYKc3shUrxExAxa8KAkoys5lBNyxkbNRJOS+GDu2dK8/Vik1xVCHPF52oeK8dsdqJ7LrWuWrD
ty7vKDqrGkTBx3th/TPP0yPy2UWzbcOGXILugghe4E51B2scBgYEaEcofaDMxz0C6lXHSPnXh
sYaDrY3oV6lMFRwycs5raHWiuxvO7dzmd2bmHxjLU8FuAJ6AkWfX5tDQL1bfEnpTBywrcuJ8y
ilo2osVGF2n0X1j1C3rHKxGQx/Sdcs+rr3nJWxYLFbc78mlTjEIIv9NWv6Bb9ZbwEUN/EBi++
wl2FSHFiruF919V2H8AoJJnbR6FAMsyi4eff564Zq435THfmoVL/QmapDRC7HdBfibvachLtC
HdagZJ0UV+yHYq/lXDnpGtn1kCsT+nml4LCUtDVbbtEvgLHAh8eWDDrCETT+mO3ZsjrGjiDum
rzKmnDO3nSNs5rFhOBWpJt/wZeQLvOk00if/tYGxdcqB/OfEsHcx6mXhBurEajgBRJT3iiPRy
d51zam0JwbQn1+5+p3O+qCjovM7Gm/gdzGjf92THipWmy4s8wlLGvuAYOlcrMq/d4KC4YdaLt
xmTZkxxTsqsaXZM7luu/puLf1ZFPi78YkZ27y0EM38NPqxtisOs9ngXg7Hd2tvOuOE8s+Slp4
ivPhwNkuSk3xNuhnbWLrq3DFaWmDBOMzNMVlnFZLOHyirS/GvtnBt64sF6zH7Z4jNK9xI7waT
cI5N4D03kkEa1xHuBT/arVR6Yd5l725plTHkHumx4S++mUQeZ7+x27FUCDeT5oDfTBqd4bInY
JGddeerFsOL+wKMQMyi/cUFtezSuD1+e5VWoy4aaR3vAfsC+YcIBOgPvGz5Od1zJm3fAp5rSI
+v0OZJFHtPDanL88XWWs3CnYGQmo0Qk3VheMc4TjUAoEgodno4wFJbsWX7Ygg5
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
> Sent: Monday, May 31, 2021 at 10:15 AM
> From: "Juri Linkov" <juri@HIDDEN>
> To: "Christopher Dimech" <dimech@HIDDEN>
> Cc: 48724 <at> debbugs.gnu.org
> Subject: Re: bug#48724: Code collapsing and outline headings for elisp
>
> > Serious problem is that the two important variables: `outline-regexp' =
and
> > `outline-heading-alist' are not customizable by using "M-x customize-g=
roup".
> >
> > Additionally both of them should be customizable per mode. Don't you =
think so?
>
> I think that modes should set `outline-regexp' and `outline-heading-alis=
t'
> according to the constructs of their programming language. Then users
> don't need to customize these variables.
Quite Right.
> > There has been a discussion today about outline-minor-mode settings fo=
r fortran
> > (both fixed and free form). Have had a go at using "!" and "!!", but =
"Hide Body"
> > did not hide the body.
> >
> > There could be some default headings for fortran when outline-minor-mo=
de is enabled.
> > One could follow the current setup for emacs-lisp-mode, for fortran.
> >
> > !! for heading level 1
> > !!! for subheading level 2
> > !!!! for subsubheading level 3
>
> I agree it would be nice to set an appropriate value of `outline-regexp'
> and `outline-heading-alist' for fortran-mode in lisp/progmodes/fortran.e=
l.
>
> But the last time I used Fortran was when Fortran had the "C" character
> for comments at the first fixed column on a punched card, and now
> your example uses some new syntax "!" for comments, so sorry, can't help=
here.
>
> This task would be a nice assignment for the group of students.
There are currently two modes (1) the fixed format fortran (fortran-made) =
you
describe with "C" character for comments, and (2) the newer free format fo=
rtran
with "!" character for comments (f90-mode).
Could use for fortran-mode starting from three CCC as in elisp
CCC Heading
CCCC Subheading
CCCCC SubSubHeading etc
And for f90-mode use the following, starting from three !!! as in elisp
!!! for heading level 1
!!!! for subheading level 2
!!!!! for subsubheading level 3
X-Loop: help-debbugs@HIDDEN
Subject: bug#48724: Code collapsing and outline headings for elisp
Resent-From: Christopher Dimech <dimech@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 01 Jun 2021 11:25:02 +0000
Resent-Message-ID: <handler.48724.B48724.162254669110190 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48724
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Juri Linkov <juri@HIDDEN>
Cc: 48724 <at> debbugs.gnu.org
Received: via spool by 48724-submit <at> debbugs.gnu.org id=B48724.162254669110190
(code B ref 48724); Tue, 01 Jun 2021 11:25:02 +0000
Received: (at 48724) by debbugs.gnu.org; 1 Jun 2021 11:24:51 +0000
Received: from localhost ([127.0.0.1]:35848 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1lo2Vv-0002eI-DY
for submit <at> debbugs.gnu.org; Tue, 01 Jun 2021 07:24:51 -0400
Received: from mout.gmx.net ([212.227.17.21]:38807)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <dimech@HIDDEN>) id 1lo2Vt-0002e4-1X
for 48724 <at> debbugs.gnu.org; Tue, 01 Jun 2021 07:24:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1622546682;
bh=PITN4pSlXBeTSV6TldCwZ9rbOkZ+i5lfrTL3q40n3Xo=;
h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References;
b=H4/FRPnLcG1b+ckpJkyLy3KV91epPlVdcTBNbKTMTWLuTVtV1u+4RegF5ylZZQLxa
cReVyaYNUg7QbSPAluYtmsU2yooo5c530HxbbnwKQMbTkbyyvk6ED4OCiOhFGM1VPg
MZVsrb4FOXLyuzsfIaanl0eHf34Bri+DbAge2O0w=
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-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun
2021 13:24:42 +0200
MIME-Version: 1.0
Message-ID: <trinity-e5a3f933-0d03-4e46-968d-54931397c9ad-1622546682659@3c-app-mailcom-bs01>
From: Christopher Dimech <dimech@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Date: Tue, 1 Jun 2021 13:24:42 +0200
Importance: normal
Sensitivity: Normal
In-Reply-To: <87a6obzxao.fsf@HIDDEN>
References: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
<877djh42jg.fsf@HIDDEN>
<trinity-4d4ea447-e74e-4b3c-ad0d-7c371743b75f-1622332533520@3c-app-mailcom-bs16>
<87a6obzxao.fsf@HIDDEN>
X-UI-Message-Type: mail
X-Priority: 3
X-Provags-ID: V03:K1:6u0U7yzo7A2z6VEXcBZdLtUIB6f3wSR1IWzRsmF9JRXySiPWEh59jPuNsnI0uAAJg3+qx
lTrpLLWXyiUakoqrFzFX2auFIAKZL2YUrXErhZJASpYAAFP2bAqs1JYxjDgpfuCIZejYwKEKjs8r
EC7J8+FYaCY9HKTXHhE1Mt76ioA4xI+QWtnEI5QlWPu2v6YcWPQyJkJ1L5Yg1G8CF6+9ZSwoLEPV
Q6Vyh56yiNJeWhcAVoG26FclQkC8NmQAUmNd9XvQZxdLqBvDk15eHUcH2ugRCaEfcQOYJ7jvi81e
sk=
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:KDFsCKMEyyw=:EzC41cJBF/r00Rr40Mvd4t
UjxYfQERO30rqI45QU/ecDgaPLQIsanKrqFb3YqASPzI67kBCTsabriy5m30ZiRc0UEr9G6H8
P9r1woYcHaHy1VXG76GEdr5QGp8E/queHCectHq+MCtiAYqgRbGfhaeUMkuzFsc1VhqmhKU7N
T4Y2dUcPv3XyPB7B9ffDklCulNXSFIoXLlpezxenaWt0iMowINoHBnO+m6iNKFM2Tt1BvFDZE
gqz0OvoVNALNIFEmiVpVUZ8ocsKCUD+6NZ/yi0ad7ZbC/ZB82GF9IaGLeadwP8mfF6OgPB0hL
7HGkIzYe+e4ImlD8I6TmgfynQxlX/4Ce4ajrBffGs/WVIbHziOGjhDPdRW2WbyH/ayVxFQ3XU
xX377i5pmb0wX9xS/ye/RV1dBmUUYa0lUiEyTgZ0PO6h0hBaOQ75m72dso0RuY19fAB/PWyTB
DcWj82kcdcq7sCniQTbCyJB+OhZpNiMwLIb3zRcZPB2GjXEMeRnvP3WebPm1lxBf2MoRmEGOY
r9IRyceU/qSg8pWEFXPLeQeNvA3vThRSZiwwSnBrM39Qxe3cSCnnf+pxEO3X3rsyIHedWZ1Y1
Qv4/si8hvEChiw9tvuuYSIlcHg84SFkWprihObHgFLL0znywY+IAtHyihTnJ/LCH6c+2SwE2u
thRVI7LzCOjLsJk4Nu/wzP7Jm0yekI+SDOf9hhwOG856W/5UrkepSQZm06RxnwzQ1JrkAAm4O
2ky1O0cV1qYQjVfz2bd3ItReerta9lgqfCNI3rbfpbCLr7u3qf0chTUSCbGMEZ78EVnYmaGYV
9pZNXzLmM4+QJ3mC99qC6NYQ4Y0sg==
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
> Sent: Monday, May 31, 2021 at 10:15 AM
> From: "Juri Linkov" <juri@HIDDEN>
> To: "Christopher Dimech" <dimech@HIDDEN>
> Cc: 48724 <at> debbugs.gnu.org
> Subject: Re: bug#48724: Code collapsing and outline headings for elisp
>
> > Serious problem is that the two important variables: `outline-regexp' =
and
> > `outline-heading-alist' are not customizable by using "M-x customize-g=
roup".
> >
> > Additionally both of them should be customizable per mode. Don't you =
think so?
>
> I think that modes should set `outline-regexp' and `outline-heading-alis=
t'
> according to the constructs of their programming language. Then users
> don't need to customize these variables.
>
> > There has been a discussion today about outline-minor-mode settings fo=
r fortran
> > (both fixed and free form). Have had a go at using "!" and "!!", but =
"Hide Body"
> > did not hide the body.
> >
> > There could be some default headings for fortran when outline-minor-mo=
de is enabled.
> > One could follow the current setup for emacs-lisp-mode, for fortran.
> >
> > !! for heading level 1
> > !!! for subheading level 2
> > !!!! for subsubheading level 3
>
> I agree it would be nice to set an appropriate value of `outline-regexp'
> and `outline-heading-alist' for fortran-mode in lisp/progmodes/fortran.e=
l.
I suggest that emacs-lisp-mode does code collapse (show/hide) by default.
Then outline-minor-mode does additional headings in the form
;;; Heading 1
;;;; SubHeading
;;;;; SubSubHeading
;;; Heading 2
outline-minor-mode would then be made to collapse sections of code between
headlines.
This means that a headline hide could hide a number of variable and functi=
on
definitions that belong together.
> But the last time I used Fortran was when Fortran had the "C" character
> for comments at the first fixed column on a punched card, and now
> your example uses some new syntax "!" for comments, so sorry, can't help=
here.
>
> This task would be a nice assignment for the group of students.
Which major modes could be done straight away?
X-Loop: help-debbugs@HIDDEN
Subject: bug#48724: Code collapsing and outline headings for elisp
Resent-From: Juri Linkov <juri@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 01 Jun 2021 20:59:03 +0000
Resent-Message-ID: <handler.48724.B48724.162258112130467 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 48724
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Christopher Dimech <dimech@HIDDEN>
Cc: 48724 <at> debbugs.gnu.org
Received: via spool by 48724-submit <at> debbugs.gnu.org id=B48724.162258112130467
(code B ref 48724); Tue, 01 Jun 2021 20:59:03 +0000
Received: (at 48724) by debbugs.gnu.org; 1 Jun 2021 20:58:41 +0000
Received: from localhost ([127.0.0.1]:38012 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1loBTF-0007vK-A9
for submit <at> debbugs.gnu.org; Tue, 01 Jun 2021 16:58:41 -0400
Received: from relay12.mail.gandi.net ([217.70.178.232]:48633)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <juri@HIDDEN>) id 1loBTD-0007un-CT
for 48724 <at> debbugs.gnu.org; Tue, 01 Jun 2021 16:58:40 -0400
Received: (Authenticated sender: juri@HIDDEN)
by relay12.mail.gandi.net (Postfix) with ESMTPSA id EA65F200003;
Tue, 1 Jun 2021 20:58:31 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
Organization: LINKOV.NET
References: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01>
<877djh42jg.fsf@HIDDEN>
<trinity-4d4ea447-e74e-4b3c-ad0d-7c371743b75f-1622332533520@3c-app-mailcom-bs16>
<87a6obzxao.fsf@HIDDEN>
<trinity-e5a3f933-0d03-4e46-968d-54931397c9ad-1622546682659@3c-app-mailcom-bs01>
Date: Tue, 01 Jun 2021 23:44:07 +0300
In-Reply-To: <trinity-e5a3f933-0d03-4e46-968d-54931397c9ad-1622546682659@3c-app-mailcom-bs01>
(Christopher Dimech's message of "Tue, 1 Jun 2021 13:24:42 +0200")
Message-ID: <87sg21cqe8.fsf@HIDDEN>
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-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
> I suggest that emacs-lisp-mode does code collapse (show/hide) by default.
> Then outline-minor-mode does additional headings in the form
>
> ;;; Heading 1
> ;;;; SubHeading
> ;;;;; SubSubHeading
>
> ;;; Heading 2
>
> outline-minor-mode would then be made to collapse sections of code between
> headlines.
>
> This means that a headline hide could hide a number of variable and function
> definitions that belong together.
Recently we changed the outlines of emacs-lisp-mode in https://debbugs.gnu.org/46878
So this is already fixed.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.