From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Konrad Podczeck Newsgroups: gmane.emacs.bugs Subject: bug#37840: Missing in the Emacs manuals: Date: Wed, 30 Oct 2019 21:37:07 +0100 Message-ID: <554177EF-4600-4F68-89F1-3AF67A551F65@univie.ac.at> References: <5440997d-8f3f-12f9-ae9e-c0caadde4a01@gmx.at> <81790531-20E9-4919-A485-0D8FE6F60CE1@univie.ac.at> <38fdbe2c-5f1a-3b37-da5f-e2fa6411d8e1@gmx.at> <4ee75419-6f22-4928-3ddb-1add957fb9e4@gmx.at> <568AD058-07B1-4C58-81C5-32E2492C1EC5@univie.ac.at> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="19701"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37840@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 23:27:03 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPwQh-0004yz-Au for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 23:27:03 +0100 Original-Received: from localhost ([::1]:44900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPwQf-000171-LL for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 18:27:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52932) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPujE-0003gV-Hx for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 16:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPujD-00077x-As for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 16:38:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPujC-00077I-KO for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 16:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPujC-0006uG-G2 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 16:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konrad Podczeck Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2019 20:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37840 X-GNU-PR-Package: emacs Original-Received: via spool by 37840-submit@debbugs.gnu.org id=B37840.157246783426485 (code B ref 37840); Wed, 30 Oct 2019 20:38:02 +0000 Original-Received: (at 37840) by debbugs.gnu.org; 30 Oct 2019 20:37:14 +0000 Original-Received: from localhost ([127.0.0.1]:51617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPuiP-0006t0-UP for submit@debbugs.gnu.org; Wed, 30 Oct 2019 16:37:14 -0400 Original-Received: from grace.univie.ac.at ([131.130.3.115]:54610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPuiM-0006sp-Uk for 37840@debbugs.gnu.org; Wed, 30 Oct 2019 16:37:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev2; h=To:References:Message-Id:Content-Transfer-Encoding: Cc:Date:In-Reply-To:From:Subject:Mime-Version:Content-Type:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=P/+2RyueoKUx7HNM9v7q1EKMI7bxmmQBAusRn+LGh18=; b=UyenonXThbS3awUNIFpK/6uzwq 4gEBBQACkP3Gh/QAcAtsYXC5IxF5V1u8ueMIjo/HtGNjTjO5grVJiy/77yXvEjkpt2p/4R1WW5brU kVaeo8P8JjC57HgaLyQ0iKLkIsmXgCksyQg1QdlYWDPDOSL5fl1ZIxhDrUAgK6QeBjzY=; Original-Received: from jarvis.univie.ac.at ([131.130.3.112] helo=jarvis.univie.ac.at) by grace.univie.ac.at with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.2) (envelope-from ) id 1iPuiK-0006Ba-HH; Wed, 30 Oct 2019 21:37:08 +0100 Original-Received: from 80-109-8-38.cable.dynamic.surfer.at ([80.109.8.38] helo=[192.168.0.234]) by jarvis.univie.ac.at with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) (envelope-from ) id 1iPuiK-0002XP-98; Wed, 30 Oct 2019 21:37:08 +0100 In-Reply-To: X-Mailer: Apple Mail (2.3601.0.10) X-Univie-Virus-Scan: scanned by ClamAV on jarvis.univie.ac.at X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170470 Archived-At: Thanks for your response. I have another question, on the following = customization: (setq display-buffer-base-action (quote ( (display-buffer-reuse-window display-buffer-pop-up-frame) (reusable-frames . t) ))) (setq display-buffer-alist (quote ( ("\\*[^s][^s]" (display-buffer-reuse-window = display-buffer-pop-up-frame) (pop-up-frame-parameters (width . 92) (height . 48) (left . 1150) (unsplittable) (tool-bar-lines . 0) (left-fringe . 0) (right-fringe . 0) (line-spacing . 0) (font . "Monaco-12") (top . 180) )) ))) Suppose I have buffer A open in frame A. Issuing occur->some word, the = occur buffer pops up in its own frame, say frame B, as intended with the = above customization. Moreover, frame B has input focus. Returning to = frame A, without closing frame B, and issuing another time occur-> some = word, frame B now shows the new occur buffer, as intended, but this time = frame B lacks input focus. What goes wrong the second time? Let me mention that if, in window.el, I add=20 (x-focus-frame (window-frame window)) at the very end of the defun "display-buffer-reuse-window", the problem = goes away, i.e., in the above example, frame B gets input focus after = every invocation of occur in frame A. How can I get this with a suitable = customization on the "display-buffer-alist" level? Thanks Konrad =20 > Am 30.10.2019 um 09:14 schrieb martin rudalics : >=20 > > The entry (dedicated . t) did the job. (BTW, where is this = possibility documented?) >=20 > In section 28.15 Dedicated Windows of the Elisp manual. But as I said > in my first answer in this thread, indiscriminately applying a non-nil > 'dedicated' entry is not generally advisable since it might affect > windows that pop up on the same frame too, with the consequence that > you can no longer switch buffers in such windows. And it won't handle > the case where the buffer is shown in the selected window either. >=20 > As explained in section 28.16 Quitting Windows of the Elisp manual, > 'quit-restore-window' could automatically DTRT for windows like that > used for composing mail, so there would be no need for a 'dedicated' > entry. But 'message-send-and-exit' calls 'message-bury' and that uses > a slightly weird strategy to possibly get rid of the window with the > consequence that 'quit-restore-window' won't even get called here. >=20 > A zache Gschicht, so to say. >=20 > martin