emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cycling first N heading levels in outline


From: Christopher Dimech
Subject: Cycling first N heading levels in outline
Date: Mon, 24 May 2021 19:43:06 +0200

> Sent: Tuesday, May 25, 2021 at 4:27 AM
> From: "Stefan Monnier" <monnier@iro.umontreal.ca>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Jean Louis" <bugs@gnu.support>, "Ihor Radchenko" <yantar92@gmail.com>, 
> emacs-devel@gnu.org
> Subject: Re: Cycling first N heading levels in outline
>
> > I have looked at how functions are folded.  But if you call elisp code 
> > (which
> > always involves using parentheses) they also get to be interpreted as 
> > headings.
> > Can this be fixed please, so that only elisp structure constructs are 
> > interpreted
> > as headlines [e.g. "(defun" "(defvar"].
>
> This is not a bug but a feature.  If you want to group several ELisp
> code entries together, you can wrap them in a `progn` (or something
> else like Setup's `setup` macro, or `use-package`, ...).
>
> In ELisp packages (as opposed to user config files), there pretty much
> shouldn't be any function calls at top-level, since loading such a file
> should have virtually no user-visible effect.

It is more of an assumption then.  User Config Files should then not be too
extensive, or otherwise organised into a number ofspecific functions.

What can one use to unfold and fold a specific function?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]