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#51883: 29.0.50; Command to get accidentally deleted frames back Date: Fri, 19 Nov 2021 14:17:24 +0200 Message-ID: <83v90ouyp7.fsf@gnu.org> References: <87czn1gfb1.fsf@web.de> <838rxo0zk7.fsf@gnu.org> <83tugbyliv.fsf@gnu.org> <1adc044f473776dc3748@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25449"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, 51883@debbugs.gnu.org, juri@linkov.net To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 19 13:18:24 2021 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 1mo2qW-0006Vc-35 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 13:18:24 +0100 Original-Received: from localhost ([::1]:44500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mo2qU-00016F-Pa for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Nov 2021 07:18:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo2qB-00015y-7K for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 07:18:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mo2qA-0008El-P5 for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 07:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mo2qA-0001AH-GT for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2021 07:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Nov 2021 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51883 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51883-submit@debbugs.gnu.org id=B51883.16373242534434 (code B ref 51883); Fri, 19 Nov 2021 12:18:02 +0000 Original-Received: (at 51883) by debbugs.gnu.org; 19 Nov 2021 12:17:33 +0000 Original-Received: from localhost ([127.0.0.1]:38270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mo2ph-00019S-CW for submit@debbugs.gnu.org; Fri, 19 Nov 2021 07:17:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mo2pf-00019B-2b for 51883@debbugs.gnu.org; Fri, 19 Nov 2021 07:17:32 -0500 Original-Received: from [2001:470:142:3::e] (port=47408 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo2pZ-00089u-MV; Fri, 19 Nov 2021 07:17:25 -0500 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=nr0yMel+XYLsi+yXEf7JVp/ulXW4R4bAQRHjDRxJDsU=; b=PByG33dOL3Hr xqJcrrwReCnXgei/RTNUxnDo+q0jvMLPmAtoH+9h8Ag6iM5BdQMhsgaIjSbZnDltqmchlXsSLoQ2P 6qKB6nXw3mKua8z6N1xmbD3FqR5lDZpc8ARdYnbDsq+hkC82RYtJ42RACnNS787UhQUfk+NLrD7rR JY1qLL54U3K3VQy5xNPw0aO0fJTxXyyKk9kuruvc7Nn95+uTLeQYEX9jxrzfTuoHtzlUv3GdG1kJc 3CPJU7F1+pYVtvfeTrZlEdcgb1WQ/YiB/JiH8/0D75kZNwraaOAc56F9Qy/yHgfdLHUShOyPiXqHX G03RfqlfvW8gqnoRX+Wn3Q==; Original-Received: from [87.69.77.57] (port=4217 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mo2pZ-0007S4-BJ; Fri, 19 Nov 2021 07:17:25 -0500 In-Reply-To: <1adc044f473776dc3748@heytings.org> (message from Gregory Heytings on Fri, 19 Nov 2021 09:00:39 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:220409 Archived-At: > Date: Fri, 19 Nov 2021 09:00:39 +0000 > From: Gregory Heytings > cc: 51883@debbugs.gnu.org, juri@linkov.net, michael_heerdegen@web.de > > > Usually, commands that use both numeric and raw prefix arg do something > > very different with the raw argument, which is not the case here. > > The last version of the patch now does that, too: no argument and a raw > argument means "most recent", a numeric argument means "Nth". That's not "very different" in my book. So I think only numeric arguments should do that, with 1 being the default and meaning the most-recently deleted one. Yes, we will lose one frame this way, but I don't think it's important enough to justify such strange usage of the prefix arg. > > I'd prefer to make it opt-in. I see no reason to force on everyone a > > new feature that doesn't sound like it's urgent or important enough to > > justify the behavior change. Even though the memory it uses is not > > large, it's still memory, and it still increases consing each time a > > frame is deleted. For example, some people turn on all kinds of > > optional features that pop up new frames in many situations, and who > > knows what this will cause in those usage patterns. Why risk such > > unintended consequences on behalf of a minor feature? > > I hear your arguments, but IMO that would be like making "undo" opt-in. > I also wouldn't call that a "minor" feature, it's worth an entry in the > File menu. Indeed we don't know what this could cause with exotic usage > patterns, so I suggest, given that the release of Emacs 29 is far away in > the future, to make it opt-out on the trunk, and if someone protests > because it breaks their usage pattern before Emacs 29 is released, to make > it opt-in instead. No, please make it opt-in from the get-go, which will also remove the need for some of the code which messes with the initial frame. If many users will request it be on by default, we will then reconsider.