I'VE FOUND A SOLUTION:
It turns out that only the right control key deletes the selection. The left control key doesn't delete it.
So my problem is solved now. I'll just have to train myself to use the left key.
(Just for the record: have you two ever tried the right control key? There's a slim chance you always hit the left one and therefore never witnessed the problem.)
====
BTW, there's one thing I now notice that might be helpful:
The right-control deletes the selected text only in the so-called "levels" (this includes the spreadsheet widget and the "program" textarea). It does NOT delete the selected text in the File/Open and File/Save dialogs, nor in the Help/Index dialog, nor in the "Cfg/General configuration" dialog (or the two other configuration dialogs).
====
FWIW, here are the answers to your questions:
(I wrote this before I discovered the solution. So I don't expect you to read it or reply to it. But perhaps it could help to track the problem down, in case other users encounter it.)
Window managers I've tried it on:
- xmonad
- jwm
- Unity (I've tried this just now, the first time in my life.)
- No window manager.
In all of them I have this problem: the right control deletes the selected text.
I've also created a new user account, to make sure I don't have some residual config somewhere (neither of X11 nor of xcas itself), and logged through it, but this didn't solve the problem.
I'm using Ubuntu 13.10, i386.
The "giac" package I have now installed is 1.1.0-44 (stable). The output line apt-get printed today:
Code : Tout sélectionner
http://www-fourier.ujf-grenoble.fr/~parisse/debian/ stable/main giac i386 1.1.0-44 [48.5 MB]
(But the problem exists in older versions as well.)
You were asking for my "lang". It's "en_US.UTF-8". I've also tried launching xcas via "LC_ALL=C xcas", but this changes nothing.
BTW, pressing ALT or SHIFT doesn't delete the selection. It's only the right control that does.
When I press the left control key, 'xev' tells me:
Code : Tout sélectionner
KeyPress event, serial 33, synthetic NO, window 0x2800001,
root 0x6c, subw 0x0, time 162730952, (52,271), root:(748,448),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
When I press the right control key:
Code : Tout sélectionner
KeyPress event, serial 33, synthetic NO, window 0x2800001,
root 0x6c, subw 0x0, time 162771767, (52,271), root:(748,448),
state 0x0, keycode 105 (keysym 0xffe4, Control_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
My keyboard is conventional. Nothing special in it.