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

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

bug#6635: mouse-yank-primary/secondary and unicode from other apps.


From: David De La Harpe Golden
Subject: bug#6635: mouse-yank-primary/secondary and unicode from other apps.
Date: Sun, 18 Jul 2010 17:39:41 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5

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,







reply via email to

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