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.devel Subject: Cycling first N heading levels in outline Date: Mon, 24 May 2021 19:43:06 +0200 Message-ID: References: <87wnrqt5re.fsf@localhost> <875yz9bjrf.fsf@localhost> 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="14060"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ihor Radchenko , Jean Louis , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 24 19:45:22 2021 Return-path: Envelope-to: ged-emacs-devel@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 1llEdl-0003Mi-4r for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 19:45:21 +0200 Original-Received: from localhost ([::1]:41242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llEdk-0002pP-6X for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 13:45:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llEcC-0008CR-GL for emacs-devel@gnu.org; Mon, 24 May 2021 13:43:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:55969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llEcA-0006lN-HF for emacs-devel@gnu.org; Mon, 24 May 2021 13:43:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621878186; bh=pFNDaTXI4J/AXR50gtY5/qtY71s1+4UrffKJjWMkuoo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hWBC5/XfHnB1e90EGnZIn2+y8a12YcM/09yoNe+G2CTXLUjIbE1J1pAcFEVUAzdrS q7q/bIcyZlnhUEbMdqsk3UHAaiP4VPbf3RO0BqOANKUREGWXYhiGvIGWg0WV2yDULy JRHn0XFaI9+v+LpE4Lh1fxotlEYJM7gSzAZ63Hoo= 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); Mon, 24 May 2021 19:43:06 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Tny451vBdfTOTXkEUh4QoYUIs3jTJoTCVvCoLJnU7pSGa3YzMEFwWuWheqKjnliM9g6Wk q6etrgrNuezQnc2WNx9b7eVUdDztCD1s1u1fUX9tssoSUGmmhKv4G3uI/X7yhAhTZLF6IkInU3qx VuqqyuErUIBXR3lQOM2eeE/ehdMHNgI0LGO01LZcrDk7YUbD6kV0mj0ORNP60cA5Y+WseRY0Ls7V 5Wo7oENa4SOZosz2Ap9+Wpjy/kBWU/sougskJXRuCwDbBqAklU98wkph3868UBt/hB+d2LBO7yZn To= X-UI-Out-Filterresults: notjunk:1;V03:K0:dLR4vV1KzE4=:QfoeARCRk0JslQUQ5/qdM1 Z/Z4MPymMWNhb8ZwQHC2569UYQtfCaNpEBQFbj1wFunvXNMxS01umSANttfHIkQiedRMJPqaL CwpOeneIu2b1WOp8zJDXttu/yPm6dsgrRQZ8mglgKAX5uTiIJky/XCF3x+6CRwPUuUBAHt/Xd 2kZLxKnaqbUCF8hvvACHpnut941BDsBYOf275ZKei9qgZibZXaYqo5zC5RNbt+qVHc1JezgsW JuTv1YP+u4QCcWJU5iZ+tHdYxjlbJpbMoiHjf0y3diPGs7wmydpx6mYleNzrGRcLWEr4CHXWX QCZnvTOr6gZU830r4jwJUF6yiQI49N10iOHkrp7grgJPTNsnzmQy6PQywk7t/h1Br7QIIfe8V K/Az4yYbMgWCvv7V8eBHlUYLJRsjJjzss+DXx9W78IODTk0x0x2TcuX9LNj+xypOzVHiik8vc 46b4rrwc43qxo63lONKfiukXQ5XI1ZSfEHsbH1j7nVZ6L0JMwkiAifh2n8T/cXVAhNhjcDdYE CpjVnwvVSoXIcJFBg6+uoRyqf+XCwiszEGKIu1dtpmxgwhGMbrVgRtvJ1EQuxdYWGTc1gdAT+ WHhinxGBrahCg/SG9uEdQqBlamWD4xEoJvqBBdR90NT0uzQmJKZkosCO00LhN691Ud8KoiZ4z /CzO0LiQM1gEonLsNuicnROWhNh9QvYmpXCTZHGUhHmow9gY7FqY9wpHdiH7ouoip07B0ToKr 52YuvqKwHzSjOA2gT9Vfpnnp532cs4bzzC9t9iLv2X2XAdu1BZHUjMKuSPrAJiXb7RtI0tvj Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269783 Archived-At: > Sent: Tuesday, May 25, 2021 at 4:27 AM > From: "Stefan Monnier" > To: "Christopher Dimech" > Cc: "Jean Louis" , "Ihor Radchenko" , 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 to= o extensive, or otherwise organised into a number ofspecific functions. What can one use to unfold and fold a specific function?