! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Clipman and LyX mouse text selection problem
Status:
CLOSED: FIXED
Product:
Xfce4-clipman-plugin
Component:
General

Comments

Description Iain MacDonald 2009-01-16 13:26:30 CET
Specifically, not checking the option "Ignore selections" in Clipman renders mouse text selections in-operable in LyX.

To reproduce:

Have Clipman running in the panel without the option "Ignore selections". Start LyX and highlight text using the left mouse button. The moment the left mouse button is released the text selection is lost. The expected behaviour is that the text would remain highlighted so that CTRL-C etc. could be used.

Checking the "Ignore selections" option restores the expected behaviour in LyX. However, I use the selections to grab text from xterms which is one of my major reasons for using Clipman.

A bug report for this (initially reported with Glipper) has been filed with the LyX people too
http://bugzilla.lyx.org/show_bug.cgi?id=5675

The similar Glipper bug report
http://sourceforge.net/tracker/index.php?func=detail&aid=2499469&group_id=167085&atid=841538
Comment 1 Iain MacDonald 2009-01-16 13:33:35 CET
Clipman version 0.8.1-1 from Debian Lenny
Comment 2 Mike Massonnet editbugs 2009-01-16 14:24:40 CET
That's bad to here.  However, if you ignore the selections, you should be able to paste with the middle-click as long as xterm stays open.

Thanks for reporting.
Comment 3 Mike Massonnet editbugs 2009-01-18 23:42:38 CET
Can you test with version 0.9.0?
Comment 4 Iain MacDonald 2009-01-19 14:01:43 CET
(In reply to comment #3)
> Can you test with version 0.9.0?


With the option "Add selections to the history" checked:

- selections from most applications (xterm, Claws Mail, browser or LyX are copied to Clipman in un-boldened text and therefore not pasteable instantly. To paste, the particular selection has to be selected in Clipman and then pasted. 

- in GUI applications (Claws Mail, browser and LyX) selecting the text and using CTRL-C results in the text being included in Clipman in bold (and therefore pasteable into another GUI application instantly)

- one exception is gedit the GNOME editor where selections are registered in Clipman (un-boldened) but CTRL-C doesn't result in the text shown in bold. Copy paste still works within gedit and between gedit and other applications (e.g. gVIM).

With the option "Add selections to the history" UN-checked:

- selections from applications are disabled as expected

- CTRL-C still doesn't register between Clipman and gedit 

Hope this helps.
Comment 5 Mike Massonnet editbugs 2009-01-19 14:18:55 CET
(In reply to comment #4)
> (In reply to comment #3)
> > Can you test with version 0.9.0?
> 
> 
> With the option "Add selections to the history" checked:
> 
> - selections from most applications (xterm, Claws Mail, browser or LyX are
> copied to Clipman in un-boldened text and therefore not pasteable instantly. To
> paste, the particular selection has to be selected in Clipman and then pasted. 

The behavior is to copy the selections to the primary clipboard, it should work to use middle click to paste.  The entry should normally appear in italic in the menu in these cases.

Here is a more indepth explanation: the plugin 0.9 keeps the contents from where they originated from, just like if you wouldn't use the plugin, you have the default clipboard (ctrl+c, etc) and the primary clipboard (selections).  I wanted to change this a few days before releasing the 0.9 version, to copy the selections directly to the default clipboard, but it needed more changes than I thought.

> - in GUI applications (Claws Mail, browser and LyX) selecting the text and
> using CTRL-C results in the text being included in Clipman in bold (and
> therefore pasteable into another GUI application instantly)
> 
> - one exception is gedit the GNOME editor where selections are registered in
> Clipman (un-boldened) but CTRL-C doesn't result in the text shown in bold. Copy
> paste still works within gedit and between gedit and other applications (e.g.
> gVIM).
> 
> With the option "Add selections to the history" UN-checked:
> 
> - selections from applications are disabled as expected
> 
> - CTRL-C still doesn't register between Clipman and gedit 

Ok, I will install Gedit to test.  FWIW, I'm not sure to fix this for 0.9 except if it would be a crasher of course, instead I consider working on the 1.0 target.

However does it mean that the selection remains correct inside LyX?

> Hope this helps.

Thanks for testing so quickly!
Comment 6 Iain MacDonald 2009-01-19 15:24:51 CET
(In reply to comment #5) 
> 
> The behavior is to copy the selections to the primary clipboard, it should 
> 

I understand that and I am familiar with the behaviour from previous versions of Clipman. However, I explained it partly for the sake of completeness and partly because the gedit behaviour now seems to depart from that description.


> Ok, I will install Gedit to test.  FWIW, I'm not sure to fix this for 0.9
> except if it would be a crasher of course, instead I consider working on the
> 1.0 target.
> 

I have also tested in Gnumeric where everything works as expected and in Openoffice2.4 (writer and calc) where it doesn't. Openoffice displays the same behaviour as gedit. No crashing anywhere.

> However does it mean that the selection remains correct inside LyX?
> 

Yup! Everything between Clipman and LyX is working great.
Comment 7 Mike Massonnet editbugs 2009-01-19 16:56:31 CET
(In reply to comment #6)
> (In reply to comment #5) 
> > 
> > The behavior is to copy the selections to the primary clipboard, it should 
> > 
> 
> I understand that and I am familiar with the behaviour from previous versions
> of Clipman. However, I explained it partly for the sake of completeness and
> partly because the gedit behaviour now seems to depart from that description.

As said the behavior is unlikely to change, except if someone else than me puts some of his spare time in it.  The behavior you are looking for, and which is more natural, is already the case within the 1.0 version.

> > Ok, I will install Gedit to test.  FWIW, I'm not sure to fix this for 0.9
> > except if it would be a crasher of course, instead I consider working on the
> > 1.0 target.
> > 
> 
> I have also tested in Gnumeric where everything works as expected and in
> Openoffice2.4 (writer and calc) where it doesn't. Openoffice displays the same
> behaviour as gedit. No crashing anywhere.
> 
> > However does it mean that the selection remains correct inside LyX?
> > 
> 
> Yup! Everything between Clipman and LyX is working great.

Ok, I'm adding GEdit to bug #4153 and closing this one.
Comment 8 Yves-Alexis Perez editbugs 2009-04-25 21:06:38 CEST
I just want the selection not to replace the currently available item in the clipboard (when I paste with Control+V). I don't know the technical stuff, I'm just speaking usability, so I'm not sure I'm really clear :)
Comment 9 Yves-Alexis Perez editbugs 2009-04-25 21:08:11 CEST
Wow, sorry, I don't know how this made it to here.

Bug #4815

Reported by:
Iain MacDonald
Reported on: 2009-01-16
Last modified on: 2012-04-09

People

Assignee:
Mike Massonnet
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information