From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#73286: [PATCH] Add foldout command for widening to current fold Date: Tue, 01 Oct 2024 14:50:24 -0400 Message-ID: References: <86frpk6tj2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38315"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73286@debbugs.gnu.org, Stefan Kangas , Paul Nelson To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 01 20:51:17 2024 Return-path: Envelope-to: geb-bug-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 1svhxs-0009lK-Nq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Oct 2024 20:51:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svhxi-0006DE-Ix; Tue, 01 Oct 2024 14:51:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1svhxf-0006Cl-P2 for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2024 14:51:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1svhxf-0004NX-4S for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2024 14:51:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=D0dOCPEZ7FT5I+oNF7Lm9dNVyzK7+hmyrBY2FjHeCTo=; b=dULAfslVzYPBs3afZ7NPV/AX9LEgp5CI4HLkUTeKhXZtMRrF8CI20N5F+nqrK3lAcxw/i78xxUV4nBp57/1Nye64Lm53yNw6b9Zsfb0LaojabMOZ1zinvvfaHIeOzhn2PgH/ydJMTFRk1MsbaL9Itbbot0YwqQCIvp0+JVdLTv+uE07k0P+ANeGjkST2k3ZhjcRiBaq9FFJsHGZ+TXuZhpwWqYxS01j7fGDx6O5LQ7AslzHuyqnCRz26N0lOakJmT5Sz8SkpJtSMh7oRsMX35vUlbHT096+7RZTRwcC0Ky6LasOdOlFf27cm0RgWpwG31RQjwRK8Uvi0sIZ/KtNQ7Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1svhxe-00054M-FO for bug-gnu-emacs@gnu.org; Tue, 01 Oct 2024 14:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Oct 2024 18:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73286 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73286-submit@debbugs.gnu.org id=B73286.172780865019473 (code B ref 73286); Tue, 01 Oct 2024 18:51:02 +0000 Original-Received: (at 73286) by debbugs.gnu.org; 1 Oct 2024 18:50:50 +0000 Original-Received: from localhost ([127.0.0.1]:53016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svhxS-000541-AR for submit@debbugs.gnu.org; Tue, 01 Oct 2024 14:50:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svhxR-00053r-Dq for 73286@debbugs.gnu.org; Tue, 01 Oct 2024 14:50:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1svhxM-0004Lz-Nf; Tue, 01 Oct 2024 14:50:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=D0dOCPEZ7FT5I+oNF7Lm9dNVyzK7+hmyrBY2FjHeCTo=; b=Cyk1iBA1+AJ0TwXIzIaC iITVKtF1jGXQBlk2tXvSYvzfKOAnhD8bl3LbEkjo3LKETj5sn8rbAP7iaS7cVRCTFnadvrMcI/B+t 1FRFIVoqWZqdAuG7uGZ9JTfi1HpX7DpgxZoi8eSay8EjN13Q85iuGzjabPDnl6U3VsYLYQPEftYsy ZZudM/xFNQ1sfDoBw/bfbrvDF9jpuQXCxldD1arBnNa2E+V33esHewhugVK09TVDVYT8XP6V6x14H twtkvjyK2zwVQBYpwGfRAJmCBRLQ7u/JUABAdps/oXZArSyAiesTvWKOD7+ha0LT6pLv+ToN1aqwg KzNqrNpE5rRm5A==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1svhx3-00039O-1x; Tue, 01 Oct 2024 14:50:43 -0400 In-Reply-To: <86frpk6tj2.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 28 Sep 2024 12:01:53 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292784 Archived-At: Eli Zaretskii writes: >> From: Paul Nelson >> Date: Mon, 16 Sep 2024 01:38:35 +0200 >> >> The foldout package, which "zooms in" on document sections by >> narrowing the buffer, doesn't play well with Emacs's other narrowing >> features: after narrowing further within a fold, there's no easy way >> to widen back to the fold's boundaries. >> >> This patch introduces foldout-widen-to-current-fold, a command that >> widens to the current fold level (or to the whole buffer if not in a >> fold). >> >> Example usage: >> - Use foldout-zoom-subtree to zoom in on some section. >> - Use narrow-to-defun to edit some function. >> - Use foldout-widen-to-current-fold to return to the scope of the >> zoomed-in section. >> >> Any feedback welcome. > > Thanks. This new feature LGTM, but I'm not convinced we should have a > separate key binding for this new command by default. If we want to > have a default key binding at all, maybe we should make "C-c C-x" > invoke this command when given a negative argument. > > Stefan and Andrea, WDYT? I'm happy to have the feature in. I guess we can introduce the keybinding later in case it's requested. Andrea