all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: Felix Dietrich <felix.dietrich@sperrhaken.name>,
	help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Can Emacs started with `-nw' option view pdf with pdf-tools?
Date: Wed, 21 Jul 2021 15:09:36 +0800	[thread overview]
Message-ID: <CAGP6POK160tcyMrGtRPo9p7Y+4cRWBbNHdHiHDgZ4TH1X-M41Q@mail.gmail.com> (raw)
In-Reply-To: <CAP_d_8Wkzyjq6ScUVTqYOixcossjipP0Pz9Hv5G8YScVvSOftg@mail.gmail.com>

On Wed, Jul 21, 2021 at 2:41 PM Yuri Khan <yuri.v.khan@gmail.com> wrote:
>
> On Wed, 21 Jul 2021 at 08:57, Hongyi Zhao <hongyi.zhao@gmail.com> 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’s 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
> ‘list-buffers’ 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



  parent reply	other threads:[~2021-07-21  7:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-17  4:50 Can Emacs started with `-nw' option view pdf with pdf-tools? Hongyi Zhao
2021-07-17  7:00 ` Arthur Miller
2021-07-17 10:37   ` Hongyi Zhao
2021-07-17 11:47     ` Thibaut Verron
2021-07-20 22:35       ` Felix Dietrich
2021-07-20 22:59         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-21  1:38           ` Hongyi Zhao
2021-07-21  2:24             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-21  1:56         ` Hongyi Zhao
2021-07-21  6:41           ` Yuri Khan
2021-07-21  6:51             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-21  7:15               ` Yuri Khan
2021-07-21  8:51                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-21  7:09             ` Hongyi Zhao [this message]
2021-07-21 18:53         ` Leo Butler
2021-07-17 11:52     ` Eli Zaretskii
2021-07-17 12:51       ` Hongyi Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGP6POK160tcyMrGtRPo9p7Y+4cRWBbNHdHiHDgZ4TH1X-M41Q@mail.gmail.com \
    --to=hongyi.zhao@gmail.com \
    --cc=felix.dietrich@sperrhaken.name \
    --cc=help-gnu-emacs@gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.