all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Davis Herring <herring@lanl.gov>
Cc: emacs-devel@gnu.org
Subject: Re: Issues with X selection handling
Date: Mon, 23 Aug 2004 19:38:54 -0600 (MDT)	[thread overview]
Message-ID: <Pine.LNX.4.44.0408231924200.31548-100000@x-mail.lanl.gov> (raw)
In-Reply-To: <Pine.LNX.4.44.0408231835260.31548-200000@x-mail.lanl.gov>

...Ok, an update; after sending the previous mail, the Emacs sessions
responded to my C-g, albeit rather fitfully.  They eventually decided that
they each owned one selection (the one where I manually grabbed the
clipboard did think it owned CLIPBOARD, and the other thought it (still)
owned PRIMARY)  and that -no one- owned the other.

Checking with an external program revealed that there was no selection of 
either type active.

Both Emacsen recovered with the message "condition-case: Quit", but who
knows which `condition-case' that was.  So I set `debug-on-quit' and
managed to repeat the lock, this time getting a traceback that showed
`x-get-selection-internal' calling `x-sent-selection-hooks'; this caused
an infinite recursion because my selection-reporting code (which obviously
calls `x-get-selection-internal') was on that hook.  The arguments to the
hook function alternated between "CLIPBOARD COMPOUND_TEXT t" and
"CLIPBOARD STRING t".

I don't see how `x-get-selection-internal' could ever call that hook; 
perhaps the traceback merely means that `x-get-selection-internal' was 
blocked and something -else- called the hook?  That would make sense if 
the two Emacs were deadlocked, each waiting for the other's answer before 
giving its own...  Disowning the selections seems to wake up a frozen 
Emacs, which makes sense with the deadlock-ish idea.

Davis Herring

-- 
This product is sold by volume, not by mass.  If it seems too dense or too 
sparse, it means mass-energy conversion has occurred during shipping.

  reply	other threads:[~2004-08-24  1:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-17 18:52 Issues with X selection handling Davis Herring
2004-08-19 18:07 ` Jan D.
2004-08-24  1:18   ` Davis Herring
2004-08-24  1:38     ` Davis Herring [this message]
2004-08-24 11:44     ` Jan D.
2004-08-25 16:05       ` Mouse-drags wait to call post-command-hook Davis Herring

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=Pine.LNX.4.44.0408231924200.31548-100000@x-mail.lanl.gov \
    --to=herring@lanl.gov \
    --cc=emacs-devel@gnu.org \
    /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.