From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: pasting text from other program in emacs Date: Wed, 5 Jan 2011 06:31:36 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <86k4iksrcy.fsf@aiuole.stru.polimi.it> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1294209854 23197 80.91.229.12 (5 Jan 2011 06:44:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2011 06:44:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 05 07:44:10 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PaN6P-0003sv-D4 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jan 2011 07:44:09 +0100 Original-Received: from localhost ([127.0.0.1]:42477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaN6O-00013Y-SH for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jan 2011 01:44:08 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: UV/L4r3sKKYMC0Sn/PWjEw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-686 (i686)) X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:184003 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78203 Archived-At: Many thanks for all this info. I have found another way of solving the behaviour of emacs in console: run it through gnu/screen; that way the effect of the mouse buttons is processed by gnu/screen, not by emacs. Jonathan Groll wrote: > On Tue, 04 Jan 2011 15:27:38 +0100, Richard Riley wrote: > >> Giacomo Boffi writes: >> >> > Javier writes: >> > >> >> Does anybody know how to do to paste text from external programs >> >> into an emacs window? I am using emacs 23.2.1 and debian Squeeze. >> > >> > $ apt-get remove emacs23-gtk >> > $ apt-get install emacs23-lucid >> >> This seems very strange advice. How does this solve the problem better >> than the documented emacs clipboard variables? > > This has been a very long thread and I may have forgotten now, but I > think the original poster had problems only with copy/paste in `emacs > -nw`. > > Hence, emacs22-nox which may be optimised for terminal copy/paste. > Like most of us here I use graphical Emacs though. > > In any case, I've been doing some reading tonight and found this > interesting link: > > http://shreevatsa.wordpress.com/2006/10/22/emacs-copypaste-and-x/ > > Which leads to this: > http://hugoheden.wordpress.com/2009/03/08/copypaste-with-emacs-in-terminal/ > > The provided code makes use of xsel to set the X selection for > terminal based Emacs. > > And, this seems to have been covered here before as the code in the > last article has a credit "to Nikolaj Schumacher and Miles Bader on > the help-gnu-emacs mailing list". > > Cheers, > Jonathan > -- > jjg: Jonathan J. Groll : groll co za > has_one { :blog => "http://bloggroll.com" } >