From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jonas Bernoulli <jonas@bernoul.li>
Cc: emacs-devel@gnu.org
Subject: Re: Regarding outline headings in emacs-lisp libraries
Date: Fri, 17 Jul 2020 18:27:13 -0400 [thread overview]
Message-ID: <jwv7dv1lrdq.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <875zalolt7.fsf@bernoul.li> (Jonas Bernoulli's message of "Fri, 17 Jul 2020 23:48:04 +0200")
Hi Jonas,
> Now, I agree that it makes sense to do it that way but the problem is
> that it only does so in theory, in practice this approach comes with
> several annoyances.
[ Note: I use `outline-minor-mode` systematically in all my Elisp files. ]
I don't have a strong opinion on this, but FWIW, I have a slight
preference for the ";;;;" version over the ";;;" version (but it's very
slight; I'm really OK either way. In most cases I don't even notice
the difference).
The annoyance you mention doesn't affect me, because I use
(hide-sublevels (if (eq outline-level 'lisp-outline-level) 1000 1))
to fold most of the actual code when opening the file but none of the
headings. More specifically, I get something that might look like:
;;; foo.el --- Blabla
;;; Commentary:
;;; Code:
(require 'cl-lib)
;;;; Custom vars:
(defcustom foo-var nil...
;;;; Aux functions
(defun foo-fun1 (arg)...
(defun foo-fun2 (arg)...
;;; foo.el ends here
[ And I (almost) never toggle the folding or fiddle with it by hand,
I only use `reveal-mode` to auto-unfold/refold as I move about the buffer. ]
Stefan
next prev parent reply other threads:[~2020-07-17 22:27 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 21:48 Regarding outline headings in emacs-lisp libraries Jonas Bernoulli
2020-07-17 22:27 ` Stefan Monnier [this message]
2020-07-18 1:41 ` T.V Raman
2020-07-18 3:22 ` Stefan Monnier
2020-07-18 14:16 ` T.V Raman
2020-07-18 16:12 ` Stefan Monnier
2020-07-18 16:49 ` T.V Raman
2020-07-18 22:54 ` Jonas Bernoulli
2020-07-18 3:29 ` Stefan Monnier
2020-07-18 16:15 ` Drew Adams
2020-07-18 22:46 ` Jonas Bernoulli
2020-07-18 23:56 ` Drew Adams
2020-07-19 9:03 ` Jonas Bernoulli
2020-07-19 15:36 ` Drew Adams
2020-07-18 23:26 ` Jonas Bernoulli
2020-07-19 3:36 ` Stefan Monnier
2020-07-19 14:54 ` Eli Zaretskii
2020-07-26 13:49 ` Jonas Bernoulli
2020-07-26 14:11 ` Eli Zaretskii
2020-07-26 15:43 ` Jonas Bernoulli
2020-07-26 16:23 ` Eli Zaretskii
2020-07-26 18:25 ` Jonas Bernoulli
2020-07-26 14:40 ` Stefan Monnier
2020-07-26 15:32 ` Jonas Bernoulli
2020-07-26 17:00 ` Yuan Fu
2020-07-26 18:23 ` Stefan Monnier
2020-07-26 18:59 ` Eli Zaretskii
2020-07-26 19:45 ` Stefan Monnier
2020-07-28 13:41 ` Jonas Bernoulli
2020-07-28 14:30 ` Eli Zaretskii
2020-07-28 14:42 ` Jonas Bernoulli
2020-07-28 15:52 ` Eli Zaretskii
2020-07-28 14:48 ` Stefan Monnier
2020-07-26 21:11 ` Jonas Bernoulli
2020-07-26 18:34 ` Jonas Bernoulli
2020-07-26 18:55 ` [SPAM UNSURE] " Stephen Leake
2020-07-18 6:40 ` Eli Zaretskii
2020-07-28 19:18 ` Jonas Bernoulli
2020-07-29 14:34 ` Eli Zaretskii
2020-07-29 18:34 ` Jonas Bernoulli
2020-07-29 18:56 ` Eli Zaretskii
2020-08-01 2:53 ` Richard Stallman
2020-08-01 5:48 ` Eli Zaretskii
2020-08-01 21:13 ` Jonas Bernoulli
2020-08-01 23:10 ` T.V Raman
2020-08-02 1:01 ` Drew Adams
2020-08-02 16:15 ` Eli Zaretskii
2020-08-03 3:22 ` Stefan Monnier
2020-08-03 14:24 ` Eli Zaretskii
2020-08-03 14:36 ` Stefan Monnier
2020-08-08 18:13 ` Jonas Bernoulli
2020-08-08 21:59 ` Stefan Monnier
2020-08-09 8:37 ` Jonas Bernoulli
2020-08-03 3:16 ` Richard Stallman
2020-08-02 2:26 ` Richard Stallman
2020-08-08 12:02 ` Jonas Bernoulli
2020-08-08 18:37 ` Jonas Bernoulli
2020-08-08 18:58 ` Eli Zaretskii
2020-08-09 8:35 ` Jonas Bernoulli
2020-08-12 16:53 ` Thorsten Jolitz
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=jwv7dv1lrdq.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=jonas@bernoul.li \
/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.