#563 copy paste in dialog

open
nobody
None
5
2006-10-31
2006-10-31
Anonymous
No

In a dialog such as "Find" or "Save as", I cannot do
any copy/paste. Copy/paste works fine in the main
window. Entering text by hand in the dialog boxes also
works fine.

My system is

debian/etch amd64,
uname -a gives
Linux hyd9 2.6.17-2-amd64 #1 SMP Wed Sep 13 17:49:33
CEST 2006 x86_64 GNU/Linux

and I'm using the binary given on the website
(nedit-5.5-Linux-x86).

I installed the motifnls.deb package as well.

I do get an error message when starting nedit:
locale not supported by Xlib, locale set to C
X locale modifiers not supported, using default

but I think this refers to some other problem (I'm
using a german keyboard and in nedit my umlaut-keys
don't work)

Thanks for and hints.

Christian

Discussion

  • Thorsten Haude

    Thorsten Haude - 2006-10-31

    Logged In: YES
    user_id=119143

    Does the primary selection work (selecting some part of the
    text and pasting it with middle-click)?

    (For the record, German keys work fine on my Sarge.)

     
  • Nobody/Anonymous

    Logged In: NO

    Hi yooden!

    Thanks for the reply but this does not work either (neither
    middle-click nor Ctrl-V)

     
  • Scott Tringali

    Scott Tringali - 2006-10-31

    Logged In: YES
    user_id=11321

    Works fine here. A couple things come to mind:

    We need the output of nedit -V as certain versions of
    LessTif are very broken with cut and paste.

    Try turning off NumLock, ScrollLock, CapsLock as sometimes
    these inhibit aceelerators for cut and paste.

    As for middle-click paste, it usually works. When you paste
    via middle mouse click, you must NOT precede it with a left
    click. That left click erases the selection, and so when
    you middle mouse click, you are pasting in the selection
    which is nothing.

    You should almost never need to paste anything into Find
    anyway, use "Find Selection" (^H).

     
  • Scott Tringali

    Scott Tringali - 2006-10-31
    • summary: copy past in dialog --> copy paste in dialog
     
  • Nobody/Anonymous

    Logged In: NO

    Thanks a lot for your comments! The output of nedit -V is
    locale not supported by Xlib, locale set to C
    X locale modifiers not supported, using default
    NEdit 5.5
    Sep 30, 2004

    Built on: Linux, 386, GNU C
    Built at: Oct 1 2004, 15:55:40
    With Motif: 2.1.30 [@(#)Motif Version 2.1.30]
    Running Motif: 2.1 [unknown]
    Server: The X.Org Foundation 70101000
    Visual: 24-bit TrueColor (ID 0x22, Default)
    Locale: de_DE.ISO8859-1

    I tried turning of NumLock, CapsLock, Scroll Lock but still
    copy/paste doesn't work. Also middle-click paste doesn't
    work without preceding it with a left click. Does there
    exist anything like "Find Selection" for replace, i.e.
    replacing the selection by something?

     
  • John Garner

    John Garner - 2007-04-25

    Logged In: YES
    user_id=897323
    Originator: NO

    Just suffered the same problem on nedit5.5, using a .deb package for ubuntu dapper drake. It doesn't break when I middle-mouse click to copy the currently selected text from any other X app, just when I use the copy/paste function - whether the copy comes from an nedit window (even the same one), or another app.

    Version info:

    Sep 30, 2004

    Built on: Linux, 486, GNU C
    Built at: Oct 8 2005, 20:13:19
    With Motif: 2.1.0 [@(#)GNU/LessTif Version 2.1 Release 0.93.94] (UNTESTED)
    Running Motif: 2.1 [unknown]
    Server: The X.Org Foundation 70000000
    Visual: 24-bit TrueColor (ID 0x23, Default)
    Locale: en_GB.UTF-8

    Pasting something into the process just made it hang, the dialog box hadn't got as far as including the pasted text into the field and an attached strace just busy-looped over the following:

    read(3, 0xbfce3530, 32) = -1 EAGAIN (Resource temporarily unavailable)
    poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
    read(3, "\1\36Aj\0\0\0\0\226\1\200\3\1\0\0\0\0\0\0\0\10\0\0\0\10"..., 32) = 32
    write(3, "\27\0\2\0\215\1\0\0", 8) = 8
    read(3, 0xbfce3530, 32) = -1 EAGAIN (Resource temporarily unavailable)
    poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
    read(3, "\1\36Bj\0\0\0\0\226\1\200\3\1\0\0\0\0\0\0\0\10\0\0\0\10"..., 32) = 32
    write(3, "\27\0\2\0\215\1\0\0", 8) = 8
    read(3, 0xbfce3530, 32) = -1 EAGAIN (Resource temporarily unavailable)
    poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
    read(3, "\1\36Cj\0\0\0\0\226\1\200\3\1\0\0\0\0\0\0\0\10\0\0\0\10"..., 32) = 32
    write(3, "\27\0\2\0\215\1\0\0", 8) = 8
    read(3, 0xbfce3530, 32) = -1 EAGAIN (Resource temporarily unavailable)

    etc....

    Hope that's helpful.

    I don't get any errors when I start nedit.

     
  • Nobody/Anonymous

    Logged In: NO

    Might it simply be that the motif XmText or XmTextField widgets don't use Ctrl+C/V/X by default? I believe their combinations are
    Copy: Ctrl+Insert
    Paste: Shift+Insert
    Cut: Shift+Delete
    Try those to see if they work.

    NEdit does have built-in fallback resources that specify that modifiers Alt and Meta must be inactive when Ctrl+C/V/X are used for copy/paste/cut in these widgets (see nedit.c). I wonder if you find yourself in a context where one of these is asserted without you knowing? Or have they been overridden by an app-defaults file somewhere on your system that overrides the settings?

     
  • John Garner

    John Garner - 2007-04-25

    Logged In: YES
    user_id=897323
    Originator: NO

    The old regular default cut/copy/paste keys as mentioned (Shift+Insert etc) don't work as cut/copy/paste, they work as the normal operation (ie. Ctrl+Insert changes the mode from overwrite to insert) in the dialog box.

    I discovered this while trying to paste in a TAB character in the "replace with" field, what with tab bound to go-to-next-field (and \t won't work I'm sure).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks