#71 middle mouse button does not paste selected text

closed
nobody
None
5
2004-12-01
2004-09-02
Anonymous
No

The middle button does not paste selected text, when
the selection is from an Nedit buffer. Pasting
selected text from other applications
(like xterm) seems to work though.

I am using version 5.5RC2 on a Redhat 9 system.

Discussion

1 2 > >> (Page 1 of 2)
  • Eddy De Greef
    Eddy De Greef
    2004-09-03

    • labels: --> 355502
     
  • Eddy De Greef
    Eddy De Greef
    2004-09-03

    Logged In: YES
    user_id=73597

    Please be more specific: is it the official binary or did
    you compile it yourself?
    Please also show us the output of nedit -V.

     
  • Scott Tringali
    Scott Tringali
    2004-09-03

    • status: open --> closed
     
  • Scott Tringali
    Scott Tringali
    2004-09-03

    Logged In: YES
    user_id=11321

    Works fine for me on RedHat 9, with the official binary.
    Can you give more detail, exact steps to reproduce?

     
  • Logged In: NO

    Yes. Here are the details:

    I installed the RPM, from the download site.

    nedit -V output:
    NEdit: Converting .nedit file to 5.5 version.
    To keep, use Preferences -> Save Defaults
    NEdit 5.5RC2
    Aug 25, 2004

    Built on: Linux, 386, GNU C
    Built at: Aug 27 2004, 15:26:36
    With Motif: 2.1.30 [@(#)Motif Version 2.1.30]
    Running Motif: 2.1 [unknown]
    Server: The XFree86 Project, Inc 40300000
    Visual: 24-bit TrueColor (ID 0x23, Default)
    Locale: en_US

    To reproduce, I just highlight text with the left mouse
    button, and then
    move the the cursor to another place in the file, and then
    click the
    middle mouse button. When I click the middle mouse button,
    nothing
    happens.

    Thanks!

     
  • Eddy De Greef
    Eddy De Greef
    2004-09-06

    Logged In: YES
    user_id=73597

    You say that you move the cursor to another place. Then the
    selection disappears, right?
    NEdit will only copy the selected text when the selection
    still exists, ie., it doesn't remember what the selection
    was. This has been like this for ages. You don't need to
    move the cursor to copy something; just paste it at the
    right location using the middle mouse button.

    This is not a bug, but intended behaviour.

    Other applications seem to behave differently, though, so
    perhaps we should consider changing the behaviour too. But
    then I'd recategorize this as a feature request iso. a bug.

     
  • Tor Klingberg
    Tor Klingberg
    2004-11-30

    Logged In: YES
    user_id=490820

    Yes, please change this behavour. Most other programs
    remembers what was selected after it was unselected.

    Apart from not supporting Japanese characters, this is the
    only reason I don't use nedit for all my editing.

     
  • Scott Tringali
    Scott Tringali
    2004-11-30

    Logged In: YES
    user_id=11321

    We have to be careful here. We could change the behavior
    for the main editing text widget, but not all the other
    Motif text widgets. This will introduce an inconsistency in
    the application.

    So, if that inconsitency is less important than the
    confusion caused by inconsistency, we may be able to fix it.

    Other apps are Qt or GTK and they define different selection
    behavior for text widgets. As noted, they will quick-paste
    the last-selected text if there is no selection.

     
  • Thorsten Haude
    Thorsten Haude
    2004-11-30

    Logged In: YES
    user_id=119143

    I have to disagree. MB2 (middle-click) pastes the primary
    selection, nothing more, nothing less. You cannot paste the
    selection if there is no selection.

    You have two options: Either keep the selection and press
    MB2 without first setting the cursor; or copy the selection
    to the clipboard and paste it from there.

    The only thing that might be changed in NEdit is the fact
    that the selection might be kept even if the caret is moved.

    The fact that PRIMARY and CLIPBOARD are two distinct
    functions make X11's inter-client communication much more
    powerful than eg. Windows'. I use the two alternating all
    the time. We should try to keep it that way.

     
  • Thorsten Haude
    Thorsten Haude
    2004-12-01

    • labels: 355502 -->
     
1 2 > >> (Page 1 of 2)