From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kro Ly Newsgroups: gmane.emacs.help Subject: Re: How to copy and paste from unity to emacs in the terminal version ? Date: Mon, 18 Aug 2014 13:12:25 -0700 (PDT) Message-ID: References: <8af43eeb-8822-4b82-88f3-a31c29276bcf@googlegroups.com> <7zmwb4vggo.fsf@example.com> <8de23d3b-1f0d-4fc4-b205-ab72946ab276@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1408392929 4210 80.91.229.3 (18 Aug 2014 20:15:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2014 20:15:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 18 22:15:23 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XJTKq-0002J6-6c for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Aug 2014 22:15:20 +0200 Original-Received: from localhost ([::1]:45578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJTKp-0004Vl-MH for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Aug 2014 16:15:19 -0400 X-Received: by 10.66.196.70 with SMTP id ik6mr1424780pac.44.1408392745284; Mon, 18 Aug 2014 13:12:25 -0700 (PDT) X-Received: by 10.140.92.226 with SMTP id b89mr32288qge.33.1408392745219; Mon, 18 Aug 2014 13:12:25 -0700 (PDT) Original-Path: usenet.stanford.edu!r2no2431450igi.0!news-out.google.com!j6ni3084qas.0!nntp.google.com!i13no952842qae.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.239.50.17; posting-account=foa0ngoAAACmeYpgVC6WKSmQ7GLmOE7K Original-NNTP-Posting-Host: 82.239.50.17 User-Agent: G2/1.0 Injection-Date: Mon, 18 Aug 2014 20:12:25 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207001 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99278 Archived-At: Le lundi 18 ao=FBt 2014 17:37:50 UTC+2, Yuri Khan a =E9crit=A0: > On Mon, Aug 18, 2014 at 10:22 PM, Kro Ly wrote: >=20 > > Thanks everyone but xsel doesn't seem to work and I have found no solut= ion. It say "xsel: can't open display: (null): success. I'm on ubuntu 12.04= using the first console (ctrl + alt + f1). >=20 >=20 >=20 > Before running xclip or xsel, you might want to set the DISPLAY >=20 > environment to indicate the X display whose selection or clipboard you >=20 > want to access, e.g.: >=20 >=20 >=20 > $ DISPLAY=3D:0 xsel -o this worked perfectly : $ export DISPLAY=3D:0 $ xsel -b ;; return what I copied in the GUI. the quanyang's script works fine on emacs now, I'm happy :) thanks to everyone for having tried to help me. for those who are curious about why I'm using emacs in the terminal, it jus= t reminds me my childhood :)