help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can Emacs started with `-nw' option view pdf with pdf-tools?


From: Leo Butler
Subject: Re: Can Emacs started with `-nw' option view pdf with pdf-tools?
Date: Wed, 21 Jul 2021 13:53:17 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Felix Dietrich <felix.dietrich@sperrhaken.name> writes:

> Emacs can handle (info "(elisp) Multiple Terminals") and can display
> text terminal and graphical terminal frames at the same time.
>
>> 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.
>
> For the X Display Server, use (make-frame-on-display (getenv "DISPLAY"))
> to create a graphical frame.  If Emacs was started with the “-nw”
> options, this will run the necessary initialisation steps (according to
> the manual).

Felix, thank you for pointing this out. I run emacs in server mode from
a terminal (emacs -nw --daemon) and had unsuccessfully tried to connect
a graphical client to the daemon, which failed and I gave up. But your
pointer corrected my misapprehension.

Leo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]