unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Juri Linkov <juri@jurta.org>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Saving the selection before killing
Date: Fri, 20 Jul 2007 08:27:23 +0200	[thread overview]
Message-ID: <46A055CB.6060003@swipnet.se> (raw)
In-Reply-To: <jwvzm1s2ueg.fsf-monnier+emacs@gnu.org>



Stefan Monnier skrev:
>>>> Search for klipper in etc/PROBLEMS.  Now this proposal will make Emacs
>>>> behave like a buggy klipper.
>>> Not at all.  The bug in the klipper was that it requested the selection
>>> over and over.  My code only causes the selection to be requested when it
>>> shifts from being owned by some other app to being owned by Emacs.
>>> I.e. there's no looping involved.
> 
>> Looping was only part of the problem.  Large selection was also a factor.
> 
> I see no evidence that someone would have noticed something if it
> weren't looping.
> 

You obviously haven't run Emacs over a slow (well say less than 1 Mbit/s) ssh 
forward X connection.

>> If Emacs will request large selections from other programs, they can
>> become sluggish too.
> 
> They'll be temporarily busy replying to Emacs just at those moments when you
> do a kill in Emacs (not all kills, of course).  That is a far cry from
> "become sluggish".

Selections over slow links are painful right now.  Emacs 22 is so much slower 
in this regard than 21.x.  For example, single click with mouse-1 sometimes 
makes Emacs loop forever (C-g works though), redisplay for small changes can 
take 10:s of seconds, popup of tool tip also takes several seconds.  Your 
proposal should be customizable, and preferrably default off, as it is a new 
behaviour.

> 
>>>> I'd be annoyed to see that in my kill ring.
>>> Please try it before jumping to conclusions.
> 
>> I did try it.  Open up an OO document with some pages, select all text in
>> the document.  Move to Emacs, kill some text, C-y, M-y.  I get the OO
>> document pasted as a big chunk of text.
> 
> Yes, that's the expected behavior.  Which part is *annoying*?

That when that amount of text gets drawn over a slow link it takes time.  And 
that when Emacs redisplays, it takes time.  We are talking 10:s of seconds here.

> Another M-y will get you to the next kill-ring element.

Yes, but I have to wait several seconds before Emacs is responsive again.

> The same thing could have happened without my patch if you happened to have
> killed a big chunk of text in the past.

But then I would know it was in the kill ring.

	Jan D.

  reply	other threads:[~2007-07-20  6:27 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5fmk5pF3bo3fbU1@mid.individual.net>
     [not found] ` <mailman.3386.1184244752.32220.help-gnu-emacs@gnu.org>
2007-07-12 20:31   ` Saving the selection before killing (was: Selection not to be copied into kill-ring) Stefan Monnier
2007-07-12 20:45     ` Saving the selection before killing David Kastrup
2007-07-13 18:38     ` Saving the selection before killing (was: Selection not to be copied into kill-ring) Richard Stallman
2007-07-13 19:11       ` Saving the selection before killing Stefan Monnier
2007-07-14 18:00         ` Richard Stallman
2007-07-15 22:54           ` Juri Linkov
2007-07-17  3:34             ` Richard Stallman
2007-07-17  8:21               ` David Kastrup
2007-07-18  4:41                 ` Richard Stallman
2007-07-18  5:44                   ` David Kastrup
2007-07-18  9:28                     ` Jan Djärv
2007-07-18 20:53                     ` Richard Stallman
2007-07-18 21:05                       ` David Kastrup
2007-07-18  9:24                   ` Jan Djärv
2007-07-18  9:21                 ` Jan Djärv
2007-07-18 18:34                   ` Stefan Monnier
2007-07-19  7:35                     ` Jan Djärv
2007-07-19 17:15                       ` Stefan Monnier
2007-07-20  6:27                         ` Jan Djärv [this message]
2007-07-20 15:59                           ` Stefan Monnier
2007-07-20 16:50                             ` Jan Djärv
2007-07-21 16:54                               ` Richard Stallman
2007-07-21 16:54                             ` Richard Stallman
2007-07-21  4:51                           ` Richard Stallman
2007-07-21  9:22                             ` Jan Djärv
2007-07-19  4:25                   ` Richard Stallman
2007-07-19  7:44                     ` Jan Djärv
2007-07-19 21:21                       ` Richard Stallman
2007-07-20  6:33                         ` Jan Djärv
2007-07-21  4:51                           ` Richard Stallman
2007-07-21  9:28                             ` Jan Djärv
2007-07-22  1:49                               ` Richard Stallman
2007-07-22  7:55                                 ` Jan Djärv
2007-07-22 18:37                                   ` Richard Stallman
2007-07-22 20:32                                     ` Jan Djärv

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=46A055CB.6060003@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@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 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).