From: chad <yandros@gmail.com>
To: Max Nikulin <manikulin@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: How to get DISPLAY of emacsclient?
Date: Tue, 29 Nov 2022 19:41:11 -0500 [thread overview]
Message-ID: <CAO2hHWbHuUXv1ZV4gHnp7gg08qdceURpWwvbQQx8W53hGNK0vQ@mail.gmail.com> (raw)
In-Reply-To: <tm5bmn$17ia$1@ciao.gmane.io>
[-- Attachment #1: Type: text/plain, Size: 1963 bytes --]
On Tue, Nov 29, 2022 at 1:11 PM Max Nikulin <manikulin@gmail.com> wrote:
> [...]
> Add to user notes content of X selection when emacs is started as
> daemong with no frames and the user prefers to avoid distraction due to
> creation of a new frame.
>
In general, you seem to assume that there's no way for emacs to create a
new X11 frame object without it being immediately visible to the user. In
my experience, that's only true in the limited subset of cases where the
user has chosen a window manager that enforces that choice. Further, that
wasn't the default when I last looked -- but that was quite some time ago,
and I don't know about the current options/defaults for common X11-based
display systems of today. Can anyone shed some light on this?
On Tue, Nov 29, 2022 at 1:11 PM Max Nikulin <manikulin@gmail.com> wrote:
> [...]
User connected to another machine through ssh (e.g. from a laptop to a
> desktop). In this case DISPLAY is different for the client and for the
> server process. (gui-get-selection) should be executed for client's
> DISPLAY.
>
In the past, I have regularly seen both varieties of this: where the user
was logged into two machines, with an emacs server running on one, X
displays on both, and wanted a new emacs frame on either one, depending on
circumstances. As near as I can tell, there is no "right" choice here; the
user needs to (be able to) provide input on which display to use.
This is a fundamentally different case from "the user wants to use a
non-graphical X11-based mechanism that emacs normally doesn't enable until
emacs actually connects to a working X11 display", and I think it should be
possible to get emacs to make that connection without necessarily popping
up a window that the user doesn't want.
I hope that helps,
~Chad
P.S. Now that I've said it "out loud", I expect to learn that either the
Wayland people now consider that a security hole and will disallow it, or
that they already did so.
[-- Attachment #2: Type: text/html, Size: 2859 bytes --]
next prev parent reply other threads:[~2022-11-30 0:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-25 15:17 How to get DISPLAY of emacsclient? Max Nikulin
2022-11-25 16:57 ` Stefan Monnier
2022-11-26 3:36 ` Max Nikulin
2022-11-26 21:33 ` chad
2022-11-27 11:34 ` Max Nikulin
2022-11-27 13:42 ` Gregory Heytings
2022-11-27 14:23 ` Max Nikulin
2022-11-27 14:38 ` Gregory Heytings
2022-11-27 15:26 ` Max Nikulin
2022-11-27 16:12 ` Gregory Heytings
2022-11-28 1:19 ` Po Lu
2022-11-27 20:36 ` Jim Porter
2022-11-28 15:33 ` Max Nikulin
2022-11-28 17:15 ` Gregory Heytings
2022-11-28 18:19 ` Stefan Monnier
2022-11-29 16:23 ` Max Nikulin
2022-11-30 0:41 ` chad [this message]
2022-11-30 2:44 ` Stefan Monnier
2022-11-30 12:47 ` Max Nikulin
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=CAO2hHWbHuUXv1ZV4gHnp7gg08qdceURpWwvbQQx8W53hGNK0vQ@mail.gmail.com \
--to=yandros@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=manikulin@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.