From: Yuri Khan <yuri.v.khan@gmail.com>
To: Hongyi Zhao <hongyi.zhao@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 13:41:17 +0700 [thread overview]
Message-ID: <CAP_d_8Wkzyjq6ScUVTqYOixcossjipP0Pz9Hv5G8YScVvSOftg@mail.gmail.com> (raw)
In-Reply-To: <CAGP6PO+HEfs3s6hDgsbn2exY+nmc+j1Lq1kBybQUWHaVdpa+jw@mail.gmail.com>
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.
To reiterate: Your original window is a terminal emulator. You
*cannot* have graphics appear right *in* it.
next prev parent reply other threads:[~2021-07-21 6:41 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 [this message]
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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAP_d_8Wkzyjq6ScUVTqYOixcossjipP0Pz9Hv5G8YScVvSOftg@mail.gmail.com \
--to=yuri.v.khan@gmail.com \
--cc=felix.dietrich@sperrhaken.name \
--cc=help-gnu-emacs@gnu.org \
--cc=hongyi.zhao@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).