From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: Can Emacs started with `-nw' option view pdf with pdf-tools? Date: Sat, 17 Jul 2021 13:47:19 +0200 Message-ID: References: Reply-To: thibaut.verron@gmail.com 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="8271"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Arthur Miller To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 17 13:48:09 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 1m4inh-0001yW-Cd for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Jul 2021 13:48:09 +0200 Original-Received: from localhost ([::1]:48386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4inf-0005Fk-VA for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Jul 2021 07:48:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4in6-0005Fc-Gy for help-gnu-emacs@gnu.org; Sat, 17 Jul 2021 07:47:32 -0400 Original-Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]:39515) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4in5-0005vK-3G for help-gnu-emacs@gnu.org; Sat, 17 Jul 2021 07:47:32 -0400 Original-Received: by mail-yb1-xb2b.google.com with SMTP id x192so19245604ybe.6 for ; Sat, 17 Jul 2021 04:47: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:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=9n6gETUTvzbfnnt3sd++xZHVbxHcJbSeM6SBcAHuo+w=; b=ZEObMhyKgaSzUyithoCC0n+jFQz1meC1QKulLEcvBJEsIGg0HQo6gl1TCCVCCHcVek ++Ykpm6lxDMnq/HXqv5WT9eaZykDVX2Cs2nTZQ65HfW7TTOxe5lInWZe8CgaRXexsFNH 781JLn/rY80FWnx8tCUx+xFx/tf8HZyIQaItnmw3mjOnI8Gz70y7rqJbrN5FCmH+4NAB 65vlCVHlI7NGcaopxD7M3PsvrZ/8UkH3qlKMJBMr8AFNjxkVV7WcZUJynymhsup9iqsa hTK86mSpx2rHqes/hBmK73LyZBi/Yz5jSeeE6SRYBv9/XU8uoDcyRGPpbH932t1faAjn 17Qw== 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:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=9n6gETUTvzbfnnt3sd++xZHVbxHcJbSeM6SBcAHuo+w=; b=CPf0BoVlvxpiqIg1f4V/8y5WHkgNsogb5wnSpHolYdLZw2v4Q68OysumjdvV51A2Nn qL3u1/5qko+Prr0ZCQMHvNSTw8M/SxzEHFDOqfvM68Yaz6QbDXiltwkAMMoEPz4aEOvP aHpe7oxpalR51h8MFbGyfrgs2lOKK8sDfh7bsUqOS9cv/du5hTh85bHlNcHSdpIYA+ua L7Ct/5f3uDhwLjFuFaSCowvJZt+A15cgAgnJPZovJ2t3o1NMY0qWx4OX9jKRhD7fHxrq +9P3jVZG79wOQOComz+lg4aWd5JLSjh69EPLV0IZHnjofWuFikIbz4aOb8F+LWiW4v1R IsNw== X-Gm-Message-State: AOAM533b7b0R0ragfyXPRvXChCEZFd2yUX05M6sobjpCn8fSB1RCDiZI LzCHq4al/aovD7JY8Hf1BtQ/JFPb46S9tuzHrHE= X-Google-Smtp-Source: ABdhPJwpfZw+5TMbrzCT7cNv4wMBi3iz4slmSj4CFG6xbOdzCafrxlTVA//2mz0g824bqJ/tUStMLxvrqwSmQn4bD6Q= X-Received: by 2002:a25:a4a5:: with SMTP id g34mr18519365ybi.473.1626522450007; Sat, 17 Jul 2021 04:47:30 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b2b; envelope-from=thibaut.verron@gmail.com; helo=mail-yb1-xb2b.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:131788 Archived-At: Le sam. 17 juil. 2021 =C3=A0 12:38, Hongyi Zhao a = =C3=A9crit : > > On Sat, Jul 17, 2021 at 3:00 PM Arthur Miller wr= ote: > > > > Hongyi Zhao writes: > > > > > I'm using auctex and pdf-tools with Emacs, and find that if I start > > > Emacs with `emacs -nw`, the pdf-tools won't let me preview pdf. > > > > > > Any hints? > > > > > > Regards > > > > Yes you need a GUI window to display images (which is what pdf-tools > > does). > > Basically, if I start emacs without `-nw' option, the `C-c C-v' will > do the job described here automatically. But how to let `C-c C-v' open > a GUI window for this case? Emacs with -nw has no concept of "GUI window", so I don't think that it is possible. If you use emacs as a daemon and start a terminal client with emacsclient -t, there might be a way to have C-c C-v open a gui client with pdf-view, but that would be tricky. Otherwise, I guess you could always define your own viewer command, which would start another emacs and open the pdf with pdf-view. But you'd probably be better off spawning a pdf viewer if it comes to that. Thibaut