all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: 48724@debbugs.gnu.org
Subject: bug#48724: Code collapsing and outline headings for elisp
Date: Fri, 28 May 2021 22:59:17 +0200	[thread overview]
Message-ID: <trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01> (raw)

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.

Regards
Christopher







             reply	other threads:[~2021-05-28 20:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <trinity-a2e798f1-1257-407e-8dfc-4ad92004a227-1622516668807@3c-app-mailcom-bs01>
     [not found] ` <877djegtaq.fsf@protesilaos.com>
     [not found]   ` <trinity-53de0a34-f881-4ec9-b2e8-901b97d0d76f-1622519072162@3c-app-mailcom-bs01>
     [not found]     ` <8735u2grnc.fsf@protesilaos.com>
     [not found]       ` <trinity-fd06ae24-9c88-47ec-8fd1-e93789f670bf-1622551360761@3c-app-mailcom-bs01>
     [not found]         ` <87bl8pwvdb.fsf@protesilaos.com>
2021-05-28 20:59           ` Christopher Dimech [this message]
2021-05-29 21:57             ` bug#48724: Code collapsing and outline headings for elisp Juri Linkov
2021-05-29 23:55               ` Christopher Dimech
2021-05-30  1:38                 ` Christopher Dimech
2021-05-30 22:15                 ` Juri Linkov
2021-05-30 23:58                   ` Christopher Dimech
2021-06-01 11:24                   ` Christopher Dimech
2021-06-01 20:44                     ` Juri Linkov
2021-06-02  0:07             ` Christopher Dimech
2021-06-02 20:54               ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-0f96debc-de1b-417f-affe-7cdf6966329e-1622235557342@3c-app-mailcom-bs01 \
    --to=dimech@gmx.com \
    --cc=48724@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.