From: David De La Harpe Golden <david@harpegolden.net>
To: Kevin Rodgers <kevin.d.rodgers@gmail.com>
Cc: bug-gnu-emacs@gnu.org
Subject: bug#6635: mouse-yank-primary/secondary and unicode from other apps.
Date: Sun, 18 Jul 2010 17:39:41 +0100 [thread overview]
Message-ID: <4C432E4D.7090600@harpegolden.net> (raw)
In-Reply-To: <i1m6b9$gvt$1@dough.gmane.org>
On 15/07/10 06:29, Kevin Rodgers wrote:
> Can someone explain why the result of x-get-selection/x-selection-value
> is bound to a variable, but instead of referencing the variable in the
> insert function call the expression is evaluated again? I.e. why not
> change it to:
>
I don't know anyway; you're likely quite right - in fact wouldn't there
be a race the other way? I think the selection could (at least in
principle) vanish in between the two calls if another app owns it...
> (let ((primary (x-selection-value 'PRIMARY)))
> (if primary
> (insert primary)
> (error "No primary selection"))))
> ...
> (let ((secondary (x-selection-value 'SECONDARY)))
> (if secondary
> (insert secondary)
> (error "No secondary selection"))))
>
> Thanks,
>
next prev parent reply other threads:[~2010-07-18 16:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-15 0:38 bug#6635: mouse-yank-primary/secondary and unicode from other apps David De La Harpe Golden
2010-07-15 5:29 ` Kevin Rodgers
2010-07-18 16:39 ` David De La Harpe Golden [this message]
2011-10-06 21:42 ` Glenn Morris
2011-10-06 23:17 ` David De La Harpe Golden
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C432E4D.7090600@harpegolden.net \
--to=david@harpegolden.net \
--cc=bug-gnu-emacs@gnu.org \
--cc=kevin.d.rodgers@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).