jed-users mailing list

[2011 Date Index] [2011 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[Jed-users-l] copy, cut, and paste from X programs


This post is to provide some functions I find useful and to ask others 
how they handle jed cutting and pasting to and from X: this post is 
linux-specific I suppose.

For years I gnashed my teeth because neither jed nor xjed would cut and 
paste with X.  Then I found some functions in the library directory that 
supposed would do it but they did not work for me.  They used something 
(What?  I can't remember nor can I find them in the current lib 
directory) that did not work, and I substituted "xsel" for whatever it 
was.  This version works fine for me, but I had to install xsel from the 
ubuntu repository.

Do others have this problem?  Are there other solutions that I missed?

Thanks, Henry Harpending

    public define cb_copy_region_to_clipboard()
          { () = pipe_region("xsel -b"); }
    public define cb_insert_clipboard()
          { () = run_shell_cmd("xsel -b  -o ");}
    public define cb_kill_region()
          {  ()=dupmark();
             () = pipe_region("xsel -b");
              yp_kill_region();
          }


         setkey("cb_copy_region_to_clipboard",         "^C^C"  );
         setkey("cb_insert_clipboard",                       "^C^Y");
         setkey("cb_kill_region",          "^C^W"        );


_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2011 date index] [2011 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]