From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Can Emacs started with `-nw' option view pdf with pdf-tools? Date: Wed, 21 Jul 2021 13:41:17 +0700 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="34672"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Felix Dietrich , help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 21 08:48:05 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 1m661U-0008qR-Ba for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 08:48:04 +0200 Original-Received: from localhost ([::1]:56882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m661T-0004P0-95 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Jul 2021 02:48:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m65vA-0004Y0-7q for help-gnu-emacs@gnu.org; Wed, 21 Jul 2021 02:41:32 -0400 Original-Received: from mail-ua1-x92b.google.com ([2607:f8b0:4864:20::92b]:42932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m65v8-0004n9-EL for help-gnu-emacs@gnu.org; Wed, 21 Jul 2021 02:41:31 -0400 Original-Received: by mail-ua1-x92b.google.com with SMTP id z3so490631uao.9 for ; Tue, 20 Jul 2021 23:41:30 -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=NiSux/OnuC9t4UNICe1OajdtuZpzBgoGsqEE8l5mWDk=; b=AJDlTnzYJittoLwYivKGUmiehJSoEzc4xtRjHcverirY/6r4+m9oU2CWGM2m31J+pH kmTWEPiDGJxs5qcY5G0hJDT8r2MvlscPNI4fj04GAlbGa883YTRfnSs/hwPHFxuYZTnY dSOAebiqHbbnfOmxg26ETm4kWOAY5tRtbC/8fXc67+8CdRPSv/nsH0do1h50fB2TybFj rGxU9cIZzUVwPBiKk4JzfXXKNf3iSVy0xrQ5rslPEtAa4ex89tXAav1Ix7UAnfnd56fo LrCa8CcT804MX7/FTqcaFKhIc3rcqYBgUij7n3bCS7YU/Q0zot3ihocuJfEX5Cy7rfAe z01g== 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=NiSux/OnuC9t4UNICe1OajdtuZpzBgoGsqEE8l5mWDk=; b=OK6Rd8XDFLsMLdjRO9nXZFeBlRvrK1AA0/1GsOd5PMzMl7lv5b0icqjPqqgYi18Dgu gWe3YJxsstnQOiEySfnXFKEZiFBB97K2PdeeQeyeYVfyoi4OAoFM7aw8iO62ZSQFfWTw 5QZgrOZcZB+6JQOhHeMu4LklAdLf+Bz2j961wDkuCCLaAcRSvIz3KCVBEUwJUxKCrZZX mtXTBaHXw2//e3WXVuJI7yqUtDRy5JEFGTUTxL0KZVhjS10/sCAa3VQy7lZbL3/1qxkt R8ZniChjLqDyvOrxN5PM2gMsMaLsI4E7/5vrJlwwpQ2b8qH/GVlh2VeNXSUGqLM+0kFV N+IA== X-Gm-Message-State: AOAM532Qo4jG3VhR+n6ghYJzVXjTQoBR9/pj0iJh0DpSYazhhywTa188 eb+cxR0c1z8VSUEr4T+U8yKOYmLL8nYYzlES7vY= X-Google-Smtp-Source: ABdhPJwtYlFxIUjUlEoQDge5dr+Wt7ElTPfFtoy8cww/4JbgyF5p2nwffzQtr2jHwh44QS2s8hE+IaIlG1mOg4DAScA= X-Received: by 2002:ab0:60d9:: with SMTP id g25mr34524668uam.102.1626849689446; Tue, 20 Jul 2021 23:41:29 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::92b; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x92b.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:131917 Archived-At: 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 sa= me internal state. To reiterate: Your original window is a terminal emulator. You *cannot* have graphics appear right *in* it.