From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.bugs Subject: bug#48724: Code collapsing and outline headings for elisp Date: Fri, 28 May 2021 22:59:17 +0200 Message-ID: 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="7286"; mail-complaints-to="usenet@ciao.gmane.io" To: 48724@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 28 23:00:40 2021 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 1lmjay-0001oe-Hj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 23:00:40 +0200 Original-Received: from localhost ([::1]:47816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmjat-00072q-Eq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 17:00:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmjaM-00071P-UU for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 17:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmjaM-0003wp-1X for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 17:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lmjaL-0003f8-Vf for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 17:00:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Dimech Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 May 2021 21:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48724 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.162223556913995 (code B ref -1); Fri, 28 May 2021 21:00:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 May 2021 20:59:29 +0000 Original-Received: from localhost ([127.0.0.1]:55463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmjZp-0003df-4I for submit@debbugs.gnu.org; Fri, 28 May 2021 16:59:29 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmjZm-0003dW-JG for submit@debbugs.gnu.org; Fri, 28 May 2021 16:59:28 -0400 Original-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 ) id 1lmjZm-0006wf-6x for bug-gnu-emacs@gnu.org; Fri, 28 May 2021 16:59:26 -0400 Original-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 ) id 1lmjZk-0003bK-9F for bug-gnu-emacs@gnu.org; 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 Original-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 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-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/ckkTrLvTeiUGTk0MBrLTvKuuryvcykeu7FFbqXpUMBoSsuE01oW0 Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; 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-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" Xref: news.gmane.io gmane.emacs.bugs:207479 Archived-At: 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