unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jonas Bernoulli <jonas@bernoul.li>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Regarding outline headings in emacs-lisp libraries
Date: Sun, 19 Jul 2020 01:26:01 +0200	[thread overview]
Message-ID: <87v9ikmmly.fsf@bernoul.li> (raw)
In-Reply-To: <jwvv9iljyk8.fsf-monnier+emacs@gnu.org>

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> 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).

I definitely prefer the Code:-sibling approach, but if Emacs continues
to use and advertise the Code:-children approach, then I can live with
that.

What I care about more is that as many of Emacs' libraries as possible
use are split into sections.  I am happy to help with that task and if
I have to compromise on the nesting, so be it.

(For my own libraries will continue to use the sibling approach and if
Emacs sticks with the children approach, then I will probably have to
add a buffer-local variable to teach `bicycle-cycle-global' to skip the
overview state.)

> The annoyance you mention doesn't affect me, because I use

I think we will have to wait for more feedback then.  We would probably
want to hear from more than one person (me) that uses this in a way that
is even affected by whether we nest more or less.

> [ sorry, I somehow missed the end of your message on first reading.  ]

Ah... spaced out somewhere along the way. ;)

>> B) The OVERVIEW shown above isn't just not useful, for more complex
>>    libraries (which are split into more (sub*)sections) having a useful
>>    OVERVIEW is quite important.
>>
>>    For such libraries the TOC just isn't a suitable substitute for
>>    OVERVIEW.  It could be deeply nested and if one only wants a list
>>    of the "major sections of a program", then a deeply nested tree of
>>    sub*sections just isn't the same.
>
> I guess what I was saying in my previous message is that I haven't found
> a case of a file where the TOC is so large that it warrants the OVERVIEW.
> And I'd even claim that such a file would be just too large and should
> likely benefit from splitting it into a few files.

Okay, let's assume the benefit is tiny in almost all non-pathological
cases.  It's still a tiny benefit at least to have both the overview
and toc views.

Let's look at it from another perspective: what are the *benefits* of
making the "major code parts" children of "Code:"?  The only one that
I can think of is that the name of that section "Code" implies that it
contains all the code.  I would argue that is a just a tiny benefit as
well.  Also it might be that when the name of that section was chosen
little thought was given to the issue we are discussing now, so maybe
that name should not hold too much weight when deciding on this issue.

I think it comes down to: when it doubt, then do *not* add additional
hierarchies.  Only do that when there is some clear benefit.




  parent reply	other threads:[~2020-07-18 23:26 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87v9ikmmly.fsf@bernoul.li \
    --to=jonas@bernoul.li \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).