From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Cycling first N heading levels in outline Date: Wed, 26 May 2021 21:57:22 +0800 Message-ID: <87o8cxy4vx.fsf@localhost> References: <87wnrqt5re.fsf@localhost> <875yz9bjrf.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24158"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Christopher Dimech , emacs-devel@gnu.org To: Jean Louis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 26 15:53:21 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 1lltyJ-00062i-AN for ged-emacs-devel@m.gmane-mx.org; Wed, 26 May 2021 15:53:19 +0200 Original-Received: from localhost ([::1]:53538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lltyI-0003TO-3H for ged-emacs-devel@m.gmane-mx.org; Wed, 26 May 2021 09:53:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lltxf-0002KG-47 for emacs-devel@gnu.org; Wed, 26 May 2021 09:52:39 -0400 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:38734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lltxd-0003Mj-G0 for emacs-devel@gnu.org; Wed, 26 May 2021 09:52:38 -0400 Original-Received: by mail-lf1-x132.google.com with SMTP id r5so2659600lfr.5 for ; Wed, 26 May 2021 06:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=n2IKMxkdJGBd9Gsvggbq7ZQHQsQ43cTS6dOswH1XQRE=; b=Iu48dRSrXmuaBZjZd/7s1IQn1ZroQdZ275MFa9akA5AyGL30OG7XcNlpbzDFgdXfGs HYWkpH0HcuRhjGgpRBRMja/OpYnCL/ZdjmS4ZuRq2OG9045EEwB8rD+k8zNw6NfF7sWh odMrH6qjzTe6kWrumyJK5mBMXLdx3iZRwhaxgoh4Arfo6gHBbkU7z6TrGOb8zvAVKwcN 8RG5ISovlHFg8pvG9Z761Qy+JDfaaGyPUdyxZXek+LOZCi8FvXFRBFRpB3LGfyYBd6DJ 8U7rqyJEiSsGWY0KvHsW8IX3Qtdb8jefyu0P4KQYDxs/IHsN9gSDswNjtPOJmq6+/P6i iVfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=n2IKMxkdJGBd9Gsvggbq7ZQHQsQ43cTS6dOswH1XQRE=; b=dyp8lpWgVd43iX7/PPX8JB16uFbQ+OsDvvjNqMX/nN/z4k/k96vrfmTOmLRIVWSTah sksSLJuyyu46k4z66ynvmsTF17bNVeaKhGdiSNwEWj2K3oNnEVCI7/5JSsm0VWhRQvgi pKuDrFvt9bTn5/5xtOu/S8EsDUYUVYgwq9FaI51r5rOW8vmZrHVeJa7MTmWScVHtEJn9 CEm4vBlsLIMgjuBS8YivJRrypCiq3EmfTVnGoPCzfcqTBY3ghJ5cHWPgSyC0meBO/I2D Ef7Ub5GASPweJJ7f8wfNcd5OSimm3xRLI5MQFhBAzsNqcO8OAV2xxk4n85klRUwehKa8 0zAQ== X-Gm-Message-State: AOAM532x5QWUT4G5djSVYVuIhY3burGfqfT+40mgAGCd8WPC1ihX3c1f xURlUG/oDKilwX84uK6ZvOw= X-Google-Smtp-Source: ABdhPJxuH4tyV1Zl1M7Qd7Y8dVogdj4rwPP9tSrmbvjqh9GDrINA/3pVw9XgDhYmPv5Arp9WtnGcZg== X-Received: by 2002:ac2:4316:: with SMTP id l22mr2112540lfh.625.1622037154794; Wed, 26 May 2021 06:52:34 -0700 (PDT) Original-Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id d16sm2039347lfm.202.2021.05.26.06.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 06:52:34 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=yantar92@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:269917 Archived-At: Jean Louis writes: > Especially for Org users the outline-minor-mode is universal and gives > similar concepts of outline in various other modes: Thanks for pointing this out. A long time ago, before I knew about outline-minor-mode, I started using hideshow package with similar functionality. Now, comparing the two, I can see how outline-minor-mode can be sometimes better (not always though). > - editing Emacs Lisp? Fold levels, sections, functions and open it. It > gives visual index of functions, it becomes very easy to move them > from place to place; outline-minor-mode is definitely very nice when handling Elisp file sections. Yet, it unfortunately cannot fold sexps inside functions independently, unlike hideshow (correct me if I am wrong). I ended up using both outline-minor-mode and hs-minor-mode for the time being. The former for folding top-level defuns and comments and the latter for folding sexps inside defuns. Best, Ihor