unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* mouse-yank-primary and bug #7699
@ 2010-12-21 19:29 Eli Zaretskii
  2010-12-22  1:05 ` David De La Harpe Golden
  2010-12-22  6:47 ` Jan Djärv
  0 siblings, 2 replies; 23+ messages in thread
From: Eli Zaretskii @ 2010-12-21 19:29 UTC (permalink / raw)
  To: emacs-devel

I have a question for experts on X selections.

I think I can fix bug#7699 if I switch the order of calling
x-get-selection-value and x-get-selection in this snippet from
mouse-yank-primary:

  (let ((primary
	 (cond
	  ((fboundp 'x-get-selection-value) ; MS-DOS, MS-Windows and X.
	   (or (x-get-selection-value)
	       (x-get-selection 'PRIMARY)))

My question is: could switching the order do the wrong thing on X?  I
looked into x-get-selection-value and x-get-selection as they are
implemented on X, and they seem to do very similar things, but I don't
know enough to understand the semantics of the subtle differences.

If switching the order is not TRT on X, I could do that only for w32.

TIA



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2010-12-23 16:38 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 19:29 mouse-yank-primary and bug #7699 Eli Zaretskii
2010-12-22  1:05 ` David De La Harpe Golden
2010-12-22  1:38   ` Drew Adams
2010-12-22  3:16     ` David De La Harpe Golden
2010-12-22  4:18       ` Drew Adams
2010-12-22 11:13         ` Eli Zaretskii
2010-12-22 15:11           ` Drew Adams
2010-12-22 19:04             ` Eli Zaretskii
2010-12-22 19:09               ` Drew Adams
2010-12-22 11:09   ` Eli Zaretskii
2010-12-22 15:16     ` David De La Harpe Golden
2010-12-22 15:38       ` David De La Harpe Golden
2010-12-22 19:23         ` Eli Zaretskii
2010-12-22 21:37           ` David De La Harpe Golden
2010-12-23  4:01             ` Eli Zaretskii
2010-12-22 19:17       ` Eli Zaretskii
2010-12-22 22:10         ` David De La Harpe Golden
2010-12-23  4:03           ` Eli Zaretskii
2010-12-23  7:32             ` Jan D.
2010-12-23  9:08               ` Eli Zaretskii
2010-12-23 14:28                 ` Stefan Monnier
2010-12-23 16:38                 ` David De La Harpe Golden
2010-12-22  6:47 ` Jan Djärv

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).