From: Chong Yidong <cyd@stupidchicken.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: X selections and multi tty
Date: Thu, 26 May 2011 22:47:55 -0400 [thread overview]
Message-ID: <87hb8guaec.fsf@stupidchicken.com> (raw)
In-Reply-To: <jwv4o4has7x.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 26 May 2011 21:47:05 -0300")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> I think it only checks to see if it owns the selection *on the same
> "display"*, just via some other "terminal" (since several terminals can
> share the same display).
>
> This distinction between terminals and displays is pretty subtle and I'm
> sure we have bugs around it in the keyboard code. So-called
> terminal-local variables are actually keyboard-local (aka
> "display"-local), but terminal-parameter is really per-terminal rather
> than per-keyboard. And we have somewhat explicit visibility of
> terminals but OTOH keyboards are hidden pretty deep from Elisp.
I see.
The way Vselection_alist is used (i.e. it's looked up when Emacs
receives X events, and we know which X window got the event), we should
be safe making it a terminal parameter. The main thing is not to have a
global variable that can get clobbered by events coming in to windows on
different displays. I'll give that a shot.
next prev parent reply other threads:[~2011-05-27 2:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-26 22:49 X selections and multi tty Chong Yidong
2011-05-27 0:47 ` Stefan Monnier
2011-05-27 2:47 ` Chong Yidong [this message]
2011-05-27 3:43 ` Chong Yidong
2011-05-27 12:33 ` Stefan Monnier
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=87hb8guaec.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.