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.devel Subject: Re: Control help- and Info-mode buffers from other buffers Date: Fri, 02 Jun 2023 18:16:47 +0300 Message-ID: <83ttvpao80.fsf@gnu.org> References: <87h6ruf09e.fsf@ledu-giraud.fr> <861qixbum2.fsf@mail.linkov.net> <86wn0opgpi.fsf@mail.linkov.net> <86ilc78zc2.fsf@mail.linkov.net> <834jnrek7w.fsf@gnu.org> <86v8g77iof.fsf@mail.linkov.net> <83o7lzcxm8.fsf@gnu.org> <837csncfz1.fsf@gnu.org> <83o7lybaph.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4159"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, manuel@ledu-giraud.fr, emacs-devel@gnu.org To: Arthur Miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 02 17:17:04 2023 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 1q56WU-0000mR-0V for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Jun 2023 17:17:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q56Vd-0006Ph-Hd; Fri, 02 Jun 2023 11:16:09 -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 1q56Vc-0006PY-1u for emacs-devel@gnu.org; Fri, 02 Jun 2023 11:16:08 -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 1q56VZ-0002nu-EE; Fri, 02 Jun 2023 11:16:05 -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=7WpIrD6tX+IYOAhrLPqTRr73XGwMdmwd2zg8+jOlgGE=; b=iWWPolfpHYB4 vWl/T9rxNU7A8c9xasltlMnnXN4BLnVumDoUlgZpUuaQsT2Pn+GqmfjhKXFeup0IYfwuuGG2uPer/ nbyCQt70/AQ7+2wz67ytz8XszmrkEagUvbGRegX0vp/F28bpmDcV8bSP6BKqIReXZU1Z9bbga38lk amUNK/LSCPHMz1V6a7IXeA2PW64m/U9nA0p8K9qIU8jj2nIiFtxzEZvf7/GFqsT3qbsren41ehUKu mSZlKL0fYBD4JrsRLGn4MmJECgqDdz7TxC3i4HW4v+4xAcGlvpwN83lxqAPxrDpumO5Pe0WGuMlhC tGY+6BMsJvL/6RA2CdO00w==; Original-Received: from [87.69.77.57] (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 1q56VT-0002wg-N1; Fri, 02 Jun 2023 11:16:05 -0400 In-Reply-To: (message from Arthur Miller on Fri, 02 Jun 2023 17:09:36 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306557 Archived-At: > From: Arthur Miller > Cc: juri@linkov.net, manuel@ledu-giraud.fr, emacs-devel@gnu.org > Date: Fri, 02 Jun 2023 17:09:36 +0200 > > Eli Zaretskii writes: > > >> > (with-selected-window (get-buffer-window "*info*") > >> > BODY... > >> No you need a bit more than that sometimes. In case that interactive is doing > >> some prompting and buffer dependent setup, you will have to wrap interactive > >> body for itself, and function body for itself. See Info-mode or Info-find (I > >> think) in patch, but conceptually, yes that is about it. If you can live with > >> wrapping commands in with-selected-window. Due to fact that interactive form > >> must be the first form in a function body. > > > > You also have call-interactively, which can work around this minor > > obstacle. > > Can it? I am talking about interactive "marker" when in defun impelementation; not > calling interactive functions. Maybe I don't understand the problem you have in mind. In any case, whatever the problem is, I'm sure we already have a solution for it in gazillion other similar cases.