From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Must prevent switching from recursive edit buffers Date: Sat, 21 Dec 2024 13:08:31 -0500 Message-ID: References: <2756a07624cab7ceb1c68dd24e671ef7.support1@rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38322"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 21 19:09:16 2024 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 1tP3ud-0009q0-O3 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Dec 2024 19:09:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tP3u8-0006dN-Ba; Sat, 21 Dec 2024 13:08:44 -0500 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 1tP3u6-0006dD-Sl for help-gnu-emacs@gnu.org; Sat, 21 Dec 2024 13:08:43 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tP3u5-0007Ud-7B for help-gnu-emacs@gnu.org; Sat, 21 Dec 2024 13:08:42 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7D952441C07; Sat, 21 Dec 2024 13:08:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1734804517; bh=je9jpZKPQcMeup2ldME8TM0FYK5J/tK9ivwbLsEb7aI=; h=From:To:Subject:In-Reply-To:References:Date:From; b=Pqlls3BlKg5pJQiA7bl85/1m1RSPpWtQPA8k23WqOivY34gupizXgyghIN6OharPy TKPBLIeJFODkkQB0nAG7MqPQxKsENqjLqOfLZk/BkgmEGkjz+QFWJ0WKHObi13CPMq GdFfxkLkd9s8fPXkTacInAoe4Q2Y1sxHTc0sTOA/CZU+IYrU+O9FhBxyCSCtbpWQgz F9K2BlkOtlDCFhYM7RADgeaGH4RZ4ikhhYYdlmEXFPx9DaXR7nBbEzMeL15fIb+3n6 TA7tP6muDHvbvjrWdjsM2EMrd7OCHgpgE1Ele+uAFO8iF0L6gN2iDamNwNBRC+Sux/ yPTYVi4Ycj+tA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1E77F441B2A; Sat, 21 Dec 2024 13:08:37 -0500 (EST) Original-Received: from asado (unknown [199.119.74.1]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E702112037A; Sat, 21 Dec 2024 13:08:36 -0500 (EST) In-Reply-To: (Jean Louis's message of "Sat, 21 Dec 2024 20:38:20 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=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.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148909 Archived-At: >> Kinds would be things like `minibuffer`, `debugger`, `edebug`, >> `query-replace`, ... > > But in my work they have always names. My recursive buffer opens full > screen like any other. That's a completely different problem since it's not about recursive-edit in general but about those specific recursive-edits introduced by your specific function, so you have complete freedom to solve the problem on your side. E.g. your function could add those buffers to a list of `my-read-from-buffers` which you can then display via an ad-hoc command you could implement, or you could display them in your modeline, or ... > - sometimes I have deleted it and [[[[]]]] still remain on the > modeline; and I have no idea why; Deleting a buffer won't get you out of the recursive edit (you didn't tell Emacs about the link between the buffer and the recursive-edit; you need a `kill-buffer-hook` for that). Also, you can only get out of the most recent recursive-edit. So, you can't eliminate the Nth recursive edit without also eliminating all the >Nth recursive-edits. Stefan