From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73286: [PATCH] Add foldout command for widening to current fold Date: Sat, 28 Sep 2024 12:01:53 +0300 Message-ID: <86frpk6tj2.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14046"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73286@debbugs.gnu.org To: Paul Nelson , Stefan Kangas , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 28 11:03:01 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 1suTLw-0003V1-Qu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Sep 2024 11:03:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suTLZ-0004db-TA; Sat, 28 Sep 2024 05:02:38 -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 1suTLV-0004C5-Aj for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 05:02:34 -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 1suTLV-000344-27 for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 05:02:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=35BMgr+rQHu2VZTGF770GbIJuSNSTrUhUk60FE/KACg=; b=ovedKPI7EG1kLAfGm8MF8+aJb68wXUCV4BP+K8c6wBGnh9xR+3l8J2skoeWMlVQVEEsp22157oApVGXrbP3t40bOu9aZsJlmoQRxLXTWlNndHUt7gr9s/94FHFukRescz/HFcwPi9yiHr8OvfqST6TOOCmYqey+Cw1nZKgXvUZIz2DUP/HcSgJXEydQNHAvswQ+d9vJFFWi7ZkklszAiXsJJwfES+niUpen6gR3AMmTKraJo4hbmkmlB4LQ5lQO6v3NHckpdcUHv1vwuPNaDoSvG/wRv+NbNqA8oKwwRlyyMcg/8vWWETgunDsLLpSjlXqvTHuwcJvpPsohwIRt3MA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suTLy-0005zH-J1 for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2024 05:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Sep 2024 09:03: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.172751415622969 (code B ref 73286); Sat, 28 Sep 2024 09:03:02 +0000 Original-Received: (at 73286) by debbugs.gnu.org; 28 Sep 2024 09:02:36 +0000 Original-Received: from localhost ([127.0.0.1]:51798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suTLY-0005yO-0y for submit@debbugs.gnu.org; Sat, 28 Sep 2024 05:02:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suTLV-0005y7-Qx for 73286@debbugs.gnu.org; Sat, 28 Sep 2024 05:02:34 -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 1suTKw-0002uz-Jy; Sat, 28 Sep 2024 05:01:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=35BMgr+rQHu2VZTGF770GbIJuSNSTrUhUk60FE/KACg=; b=cNz4neCElJ4k FTggMT9wGJ1Ceok4/nt971diZDfdqpEIqwGThRWot6iMo46vYxFIVor7irrbuRixqDdyb7PoXED8K rtsw7q6m1NriIGG3LdcEn2rCp+UQLWF4158VAYI+9icRRPQuZ8aT1d8x/vwKmPXv28U8lAq1s+j7k /Z5v0x88qykLEk7BVJZg5kIqIqlIxUyG0SVjZCHgw6xOtSscGzXFH9xcNRrZqrRcYnbZUYvXD9MXu YSo8WXJNMyDFsV2uDwHhVmteUkvtS83VSx2UUXLvjdqCejhS1Km+cQ5FiW7vUL4yUTwUksVr+tgpv 15aSkGGeTxR7d81CECxN7A==; In-Reply-To: (message from Paul Nelson on Mon, 16 Sep 2024 01:38:35 +0200) 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:292558 Archived-At: > 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?