all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: Juri Linkov <juri@jurta.org>,
	Sebastian Rose <sebastian_rose@gmx.de>,
	Miles Bader <miles@gnu.org>, Tom <levelhalom@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: Clipboard interactions
Date: Tue, 13 Jul 2010 09:53:33 +0200	[thread overview]
Message-ID: <4C3C1B7D.6060702@swipnet.se> (raw)
In-Reply-To: <87fwzoi18c.fsf@uwakimon.sk.tsukuba.ac.jp>



Stephen J. Turnbull skrev 2010-07-13 04.06:
> Jan Djärv writes:
>
>   >  If we are talking about copy/paste of text from Emacs, Xt would not enter in
>   >  to it.  AFAIK, the only place where Motif may be involved in Emacs is
>   >  copy/paste in the file dialog.  All selection code in Emacs is plain X.
>
> Don't take the toolkit name too seriously.  What I mean is that there
> is a clipboard protocol in the ICCCM, and which does involve some
> overhead.  Doesn't Emacs conform to that protocol when copying to/
> pasting from the clipboard?  If so, it should suffer from similar
> overhead.  Our experience is that the overhead is perceptible in 1
> Mbit network environments in some conditions we don't really
> understand.  Not frequent, but frequent enough that having the option
> to turn off clipboard is useful for users who only need "drag button1
> to select, click button2 to copy".

Maybe you are thinking of the section that talks about a special clipboard 
client that always take a copy of the clipboard and retains it even if the 
program it got it from died, like the KDE Klipper.

The presence of such a client has no impact on the protocol itself, it just 
leads to a lot of transfers of data from Emacs to, for example, Klipper (I use 
Klipper below as an example, but the issues are generic).

We have seen problems with this when copying a whole buffer, i.e. lots of 
data. Klipper may also do a lot of polling to see if the clipboard changed, 
but most X servers now implement XFixes, so polling should be reduced, 
hopefully to 0.

But Klipper and its kind are totally optional (I always turn these IMHO stupid 
things off), and ICCCM says:

"A special CLIPBOARD client is not necessary. The protocol used by the cutting 
client and the pasting client is the same whether the CLIPBOARD client is 
running or not."

and

"The reasons not to run the clipboard client include:

     * Performance - Data is only transferred if it is actually required (that 
is, when some client actually wants the data).
     * Flexibility - The clipboard data may be available as more than one target."

Klipper can also be configured to collect PRIMARY, so restricting clipboard 
may be of no use.

So it should not be up to Emacs to limit itself because some of its users want 
to run a clipboard client.

	Jan D.



  reply	other threads:[~2010-07-13  7:53 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-09 19:12 Emacs learning curve Noah Lavine
2010-07-10  6:55 ` Eli Zaretskii
2010-07-10 10:36   ` Tom
2010-07-10 11:17     ` Eli Zaretskii
2010-07-10 11:41       ` Lennart Borgman
2010-07-10 15:07         ` Tom
2010-07-10 16:23           ` Alfred M. Szmidt
2010-07-10 16:39             ` Deniz Dogan
2010-07-10 16:44             ` Lennart Borgman
2010-07-11  1:22               ` Sean Sieger
2010-07-11  8:33               ` Alfred M. Szmidt
2010-07-11 11:10                 ` Lennart Borgman
2010-07-12 16:54                   ` Alfred M. Szmidt
2010-07-12 17:08                     ` Lennart Borgman
2010-07-12 17:45                       ` joakim
2010-07-12 17:59                         ` Lennart Borgman
2010-07-13  6:41                         ` David Kastrup
2010-07-12 17:53                       ` Alfred M. Szmidt
2010-07-12 17:48                     ` Drew Adams
2010-07-12 18:05                       ` Lennart Borgman
2010-07-10 17:57             ` Tom
2010-07-10 18:32               ` Bernardo Barros
2010-07-10 21:03               ` David Kastrup
2010-07-11  8:34                 ` Tom
2010-07-11 10:51                   ` Sebastian Rose
2010-07-11 16:05                     ` Juri Linkov
2010-07-11 16:55                       ` Miles Bader
2010-07-11 17:14                         ` Chong Yidong
2010-07-11 17:59                           ` David De La Harpe Golden
2010-07-11 18:01                             ` David De La Harpe Golden
2010-07-11 19:00                             ` Jan Djärv
2010-07-11 19:08                               ` David De La Harpe Golden
2010-07-11 22:49                             ` Chong Yidong
2010-07-12  7:25                               ` Eli Zaretskii
2010-07-12  9:00                                 ` David De La Harpe Golden
2010-07-12  9:30                                   ` Eli Zaretskii
2010-07-12 20:56                                     ` David De La Harpe Golden
2010-07-11 18:00                           ` Drew Adams
2010-07-11 22:49                             ` Chong Yidong
2010-07-11 23:18                               ` Drew Adams
2010-07-11 18:05                           ` Sebastian Rose
2010-07-11 18:15                             ` Clipboard interactions [was: Re: Emacs learning curve] David De La Harpe Golden
2010-07-11 18:45                               ` David De La Harpe Golden
2010-07-11 23:14                         ` Clipboard interactions [was: " Juri Linkov
2010-07-12  9:00                           ` Clipboard interactions Miles Bader
2010-07-12 15:57                             ` Stephen J. Turnbull
2010-07-12 16:59                               ` Jan Djärv
2010-07-13  2:06                                 ` Stephen J. Turnbull
2010-07-13  7:53                                   ` Jan Djärv [this message]
2010-07-13  8:41                                     ` Stephen J. Turnbull
2010-07-11 15:08                   ` Emacs learning curve Drew Adams
2010-08-04 20:54           ` Walter Alejandro Iglesias
2010-08-05 17:39             ` Barry Fishman
2010-08-06  2:48               ` Stephen J. Turnbull
2010-08-06  2:59               ` Lennart Borgman
2010-08-06  3:10                 ` Miles Bader
2010-08-06  5:18                 ` Stephen J. Turnbull
2010-08-06 11:43                 ` Walter Alejandro Iglesias
2010-07-10 23:22         ` Juri Linkov
2010-07-11  1:00         ` Sean Sieger
2010-07-11  1:44           ` Óscar Fuentes
2010-07-11  2:14           ` Lennart Borgman
2010-07-11  2:23             ` Sean Sieger
2010-07-11  2:47               ` Lennart Borgman
2010-07-18 19:33         ` Giorgos Keramidas
2010-08-02  9:19       ` Stefan Monnier
2010-08-02 13:26         ` Juanma Barranquero
2010-08-02 14:57           ` Tassilo Horn
2010-08-02 15:00             ` Juanma Barranquero
2010-08-02 15:50             ` Lennart Borgman
2010-08-02 18:19               ` Tassilo Horn
2010-08-02 20:31             ` Stefan Monnier
2010-08-02 21:42               ` Johan Bockgård
2010-08-04 17:49                 ` Stefan Monnier
2010-08-02 14:16         ` Drew Adams
2010-08-02 15:07           ` Sean Sieger
2010-08-02 15:55           ` Lennart Borgman
2010-08-02 20:35           ` Stefan Monnier
2010-08-02 21:11             ` Drew Adams
2010-08-02 18:13         ` Eli Zaretskii
2010-08-02 18:37           ` Lennart Borgman
2010-08-02 19:10             ` Eli Zaretskii
2010-08-02 20:02               ` Lennart Borgman
2010-08-03  5:57                 ` David Kastrup
2010-08-02 18:39           ` Tom
2010-08-02 18:43             ` Lennart Borgman
2010-08-02 19:53               ` joakim
2010-08-03 22:07                 ` Eric M. Ludlam
2010-08-04  9:13                   ` David Kastrup
2010-08-04  9:42                     ` Alex Ott
2010-08-03  3:33           ` Stephen J. Turnbull
2010-08-03 18:45         ` Andy Wingo
2010-08-04 12:36           ` Stefan Monnier
2010-07-10 15:01   ` Noah Lavine

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=4C3C1B7D.6060702@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=levelhalom@gmail.com \
    --cc=miles@gnu.org \
    --cc=sebastian_rose@gmx.de \
    --cc=stephen@xemacs.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.