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: Can Emacs started with `-nw' option view pdf with pdf-tools? Date: Wed, 21 Jul 2021 15:09:36 +0800 Message-ID: References: <87fsw8ehqb.fsf@sperrhaken.name> 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="17605"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Felix Dietrich , help-gnu-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 21 09:10:38 2021 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 1m66NJ-0004NG-IH for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 09:10:37 +0200 Original-Received: from localhost ([::1]:51740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m66NI-0006kv-Ho for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 03:10:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m66MZ-0006LR-FS for help-gnu-emacs@gnu.org; Wed, 21 Jul 2021 03:09:51 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:42683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m66MX-0002cZ-Iq for help-gnu-emacs@gnu.org; Wed, 21 Jul 2021 03:09:51 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id b16so428924ljq.9 for ; Wed, 21 Jul 2021 00:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=5PRzEclaqKewUqDW4uGkGv19Aye26wA5HYEIBdwp1M4=; b=pzUQ0kZ8lbxztN5kv0z8oqkAsH7NlrlAY067z35It1oOub0TStuqo5xu+FPm8zJmnN 4n8T3EX2oKlmXJcj7/0+OTb9Z4bkuZnTmg+cVELcSSvTpIiBQggxiJRmGtj/vB+5h0Yb sPxFDuULMvZjcaxaXrmzf/OVfhsNWf6wqvYd2tuX7V4Cy3umfz9J+Bffd/pAe0lPkiDA 15bfD+8lBzz9Bm5JnuBnm6mhye2Yzd3ItwsxNGl97m3GdwtmAdfyeQN+u644KZXss7rt QLdBMsM48ec7qV/OQzN2XDVb0TwNgFiFEMxIpKCId6ySaIy51+kV2DAyfHn65LSxrnPE Wjaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=5PRzEclaqKewUqDW4uGkGv19Aye26wA5HYEIBdwp1M4=; b=r25Ao2iO9CDFkwYs8/9y8gIdyyCP9ZQm702C82IDkc8lTz3Qwk23+o4GsE9M3cheuy k6LQMcxbMjJhrfcTEdCsWlt8oOaSjczKPHTRgU+BUcjIVur9B+gEOLDS4GpkA+Q4V1Rs KNrWNKFQzVtqq6Or5DV+QW3fYUQPoW5PFyoBnuZ3cZelAZP4aPzK2NDYSn94jYfCNxqf 2TO+pPhG6qjlwYLGkLl7V741YwgB8iE7ybIGXO0FeNYzMIsVc7Z1ejXdEYQonYe4ANGr O3izq2Fi+2GNqf8m0fXcX/YSlTXXHNJzAFekR5EJy1UV7WjJmJphlPm4/9aXOwkk5ebG pMFw== X-Gm-Message-State: AOAM531kYL3rvvYS4c1ExgEkUkxUcbAKWg0psoZFL/WLgMyWFVbN5ODi 6woclHOub+chebtL0yAUau6VCbW1vnjAyk+VYt8= X-Google-Smtp-Source: ABdhPJzEFuY6y/8od7jibzRx9K7b2jFmA6VKfHTTMznxylDOtjhPhYsO6CdFiseuoGdlPrYuFWFrv15q8azFcH6c/qM= X-Received: by 2002:a2e:bd0c:: with SMTP id n12mr29365406ljq.447.1626851387667; Wed, 21 Jul 2021 00:09:47 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x236.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:131920 Archived-At: On Wed, Jul 21, 2021 at 2:41 PM Yuri Khan wrote: > > On Wed, 21 Jul 2021 at 08:57, Hongyi Zhao wrote: > > > Then I run `M-x view-pdf-in-graphical-frame', but this will open a > > second Emacs GUI instance instead of create a new GUI frame in the > > original one. See the attachment fore more detailed info. > > You are confused about frames, windows and instances. Which is > understandable, given Emacs=E2=80=99s peculiar terminology and its rare > ability to have frames of different kinds in a single instance. > > You cannot have graphics in a terminal emulator (unless you happen to > be using a terminal emulator that implements graphics display[1], and > unless somebody actually writes some Elisp code to utilize this > terminal capability). > > [1]: https://sw.kovidgoyal.net/kitty/graphics-protocol/ > > So you have to create a graphical frame. A frame in Emacs is what is > called a window in the rest of the desktop applications. What you got > is a new GUI frame. Both this new frame and what you have in the > terminal emulator belong to the same Emacs instance; if you do a > =E2=80=98list-buffers=E2=80=99 in both, you will see they operate on the = same internal > state. Thank you for explaining and clearing up my conceptual confusion. > To reiterate: Your original window is a terminal emulator. You > *cannot* have graphics appear right *in* it. Best, HY