From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: How to have a frame dedicated to buffers of a certain kind? (was: use pdf-tools in Emacs.) Date: Sun, 30 Apr 2023 09:05:44 +0800 Message-ID: References: <87r0s5efab.fsf@frege.mail-host-address-is-not-set> <87edo5bc61.fsf@gnu.org> <87edo52mtg.fsf@gnu.org> <87o7n8jwzw.fsf@gnu.org> <87jzxwjghd.fsf@gnu.org> <87fs8kjedb.fsf@gnu.org> <87ildfdqwu.fsf@gnu.org> <87fs8jauv0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9983"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan-husmann@t-online.de, help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 30 03:06:35 2023 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 1psvWN-0002Qb-Le for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 Apr 2023 03:06:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psvVp-0001bQ-LL; Sat, 29 Apr 2023 21:06:01 -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 1psvVo-0001bH-7U for help-gnu-emacs@gnu.org; Sat, 29 Apr 2023 21:06:00 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psvVm-0006Ik-DX; Sat, 29 Apr 2023 21:05:59 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-50bc3088b7aso265349a12.3; Sat, 29 Apr 2023 18:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682816756; x=1685408756; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=P5T4GodAZtgCVHpK5GXQho73lg1wVbWFnwu9sfN3oTo=; b=A6i3YopopY61u0ybvQibSXtU/vjuPoZMjoNFI8mDDS9T/3UXgJ4rD4pJzko0pQenwR VSaENrAWPiOZoT7PBceCDs+j0srZa3IDObPAB8gZGp7B25oD8nZmU9SNJMlU7QUg2uxF ANW+HLYovF/qwjbNPYE/HxAdorSiGb2lFEwLjCWZZOECUC02X9fHtCKXnKna1gKPvWOv 4WmExkdIbxRzxAkwtxuuR/CaiOfF7pXtujloGx0tdzWZPJQVBzSC+Yq7o0B1tgoglsg0 zp9Btn8ZGQO1GPms5IHHrjEnSnMLefe8WYm2fQBwL3KvEyYt/hrn0yQWoj+AN9QuJsPc P/pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682816756; x=1685408756; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P5T4GodAZtgCVHpK5GXQho73lg1wVbWFnwu9sfN3oTo=; b=EPWg4nljTqcf+eQvrJg8F6KU18HDDy6pX2vo426do7eJoNlaerFQue+Ak2TpuMoWEW rrHhtjMjS7ZYtXWng1LsSNNTYgELMncBrzG/o9rZPdyC7bkkb2uiTB0sfSP6ixG+KtV2 m4f0uVPTuImpzO0NJRdQnzCaWnT8Wrn+RcCnGeb86By+yxgOS8HcVJWtTTBloJiZjT+w jyxm3qJ8UkxSkZnHomDp7W23cbMLZHJVMXzNVJec1V0EaTwhDMcw+Gbh7f12L8kvdJyy BHjiFXKbCAcI0AiRhE82sAi0CmCCfAl3S7fCfq9k0oqofDNOX184+/5eMT9K6GikDRAM 0o4Q== X-Gm-Message-State: AC+VfDyZmpqxdFI3PMuZ7g+qwUV2NK0l5bCzi93iTiz4oy9wsBtPu6Et 6Uk0duArR/PDFNvUo+kz5oggMsuaNJcry4BA4IaB8Dso59ULV/ES X-Google-Smtp-Source: ACHHUZ6WeTYFKkPobOQd5PohFM5IKJjc14KmYWnZ5kz+bbcqgaiVdvcyAEv0sw3X2vVLWPS7Y44YI1rJr1UTW6zA9Ic= X-Received: by 2002:a05:6402:47:b0:504:a2e5:d951 with SMTP id f7-20020a056402004700b00504a2e5d951mr2534844edu.13.1682816756248; Sat, 29 Apr 2023 18:05:56 -0700 (PDT) In-Reply-To: <87fs8jauv0.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=hongyi.zhao@gmail.com; helo=mail-ed1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:143461 Archived-At: On Sat, Apr 29, 2023 at 5:41=E2=80=AFPM Tassilo Horn wrote: > > Hongyi Zhao writes: > > > I tried with the following configuration, but it still creates 3 > > frames, as shown in the attchment: > > There are only two frames in the screenshot, what you have numbered are > emacs windows. But yes, the 2nd pdf buffer should have been displayed > in the other frame where a pdf is already displayed. You might have to > edebug the function and check M-: (frame-parameter nil 'th/pdf-frame) > RET in both frames. Only the one spawned by the first "show this pdf > buffer" should have this parameter set. > > BTW, I wouldn't put the function and display-buffer-alist setting in the > :config section of (use-package pdf-tools ...) but top-level. It might > have been loaded too late. Maybe try that and restart emacs. > > > Which Martin? I checked as follows and there are many: > > > > werner@X10DAi:~/Public/repo/git.savannah.gnu.org/git/emacs.git$ git > > log --format=3D'%an <%ae>' | grep -i martin | awk '!a[$0]++' > > Martin Rudalics > > martin rudalics > > These two Martins. :-) Nice. OpenAI's GPT-4 gives me the following explanations: You: martin rudalics emacs Chatbot: Martin Rudalics is an Emacs developer and contributor. He is known for his work on Emacs Lisp and his contributions to various Emacs packages, including Dired, Calendar, and Eshell. He has been involved in the development of Emacs for over two decades and has contributed numerous patches and improvements to the codebase. Martin is also a member of the Emacs development team and has been a key figure in the Emacs community for many years. > Bye, > Tassilo Best, Zhao