From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tolugboji Newsgroups: gmane.emacs.help Subject: Code folding in Emacs. Date: Sun, 10 Oct 2021 13:49:30 +0000 Message-ID: References: <74ZiFVBMtcJQPpNimEwakA_TcGNYwo1-d06PlsqK9PwzAgiqkTEV1uNjcnofSFWhUgQLC1Gxj0YpXqO7ndyY_sjDHQGz6tCIpiNncGCaGTU=@protonmail.com> Reply-To: tolugboji 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="39122"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 10 15:50:04 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1mZZDH-0009v9-5P for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 Oct 2021 15:50:03 +0200 Original-Received: from localhost ([::1]:41610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZZDF-0006P4-85 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 10 Oct 2021 09:50:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZZCq-0006Oh-2b for help-gnu-emacs@gnu.org; Sun, 10 Oct 2021 09:49:36 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]:23101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZZCo-00040T-Dk for help-gnu-emacs@gnu.org; Sun, 10 Oct 2021 09:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633873771; bh=yeJ0oZq7YP/ZReFYCWW0UfrhnsSE2axd626zZOBiK1M=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ivz0oykHnq5PdUZvUTLgoWnKFfLdIYwaqJ6g7vTL4vxNK6OPE0hnaeU+KEZtWuCwM z/exprdkkWIuVSenZA5zLillUxxYQWxUCDX2vnKWkjd+PNGPnkxbP/egfWME/qIggi jlnem7lOu4UNQFU1LhCEGsfjc/DzjJzUR3iYTHa8= In-Reply-To: Received-SPF: pass client-ip=185.70.43.25; envelope-from=tolugboji@protonmail.com; helo=mail-4325.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133672 Archived-At: -=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Message = =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Sunday, October 10th, 2021 at 1:16 PM, Hongyi Zhao wrote: > On Sun, Oct 10, 2021 at 8:42 PM tolugboji tolugboji@protonmail.com wrote: > > > Because it is such a basic operation many would like to use, emacs shou= ld provide it > > > > from itself. Currently outline-minor-mode in too complicated and incons= istent to be > > > > used regularly. Using a long string of *** is difficult to understand, = whereas a > > > > hierarchy based on numeric values is better. An additional problem is t= hat Headings > > > > Folding and Code Folding are dealt as they are the same. Very bad idea. > > If someone is willing to fix those flaws, that would be a great job. > > I'm not sure if these are easy to solve with a small amount of Elsip > > code. > > HZ The functionality is there but needs cleaning up. The major thing is to se= parate the folding of headings from the folding of code structures. Headings shou= ld be at a higher hierarchical level than code folding. People tend to add thing= s but when everything becomes somewhat convoluted and complicated, tho code is no= t looked upon again with a more robust design. This step is important becaus= e it eases the way far further development.