Addition to clipboard handling (bug?)

Andras Mantia amantia at virtualartisans.com
Mon Nov 4 14:33:37 GMT 2002


On 2002. November 04., Monday 15:45, David Faure wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Monday 04 November 2002 13:41, Andras Mantia wrote:
> > Hi,
> >
> >  Now I'm really wondering that without any Klipper running, if I select a
> > part of a message in KMail (when reading mails, not composing)  _with_
> > the mouse and try to paste it somewhere (eg KDevelop) with MMB then it
> > pastes some old text from the clipboard and not the current selected from
> > PRIMARY (as I expected). Of course, pressing CTRL-C after I select the
> > text works. Bug or feature? I think it's a bug and it shouldn't behave
> > this way.
>
> Klipper running or not doesn't matter - its configuration affects
> KClipboard, used by all apps; so make sure it's set to "separate selection
> and clipboard".

Really? I misunderstood and though when Klipper is not running, the "separate 
selection and clipboard" is valid. But, I have just checked my settings (by 
starting Klipper) and yes, it was set to "separate selection and 
clipboard"...

> What you describe sounds like a bug in KHTML I fixed recently, where
> the text selection code would sometimes fail - and therefore didn't copy
> the selection. How uptodate is your khtml? Does updating it help?
Ok, I will try to update (now I have stuff from oct. 29th) but I'm wondering 
how could a khtml update help here when I saw the problem with KMail (with a 
plain text mail)... Or does KMail uses the html rendering even in this cases?

>
> I also have a further patch to improve text selection, but it got no review
> yet, except "it looks messy" by Dirk :). It does, but not that much. The
> point is to detect when the mouse is "above everything" (in the top margin)
> or "below everything" (in the unused area below the HTML). See attachment.
> I doubt it helps for your specific problem though, unless it's about
> selecting the very beginning or very end of the message.
Ok, I will update and apply your patch and test. 

BTW, here is another annoying bug: when pasting a code part from a mail into 
KDevelop a source file, the first space (0x20) are replaced with 0xA0 (or 
0x20A0?) and the compilation fails with "parse error before character 0240". 
Eg. paste this line:
  int i = 0;

in that way that also the space (or spaces) before "int" is selected. 
Oh, and it does not happen with Kate, so it may be a KDevelop bug.

Andras


>
> - --
> David FAURE, david at mandrakesoft.com, faure at kde.org
> http://people.mandrakesoft.com/~david/
> Contributing to: http://www.konqueror.org/, http://www.koffice.org/
> Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9xnn772KcVAmwbhARAmigAJ9pknAF9dyqPHsrguYGDlRRbhF4zgCghb30
> pfIQ1asw1Rz0w2rV52eVInA=
> =pc+M
> -----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list