From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Copy Paste in no-x11 mode (emacs -nw) Date: Fri, 26 Sep 2008 11:29:32 -0400 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222443801 6876 80.91.229.12 (26 Sep 2008 15:43:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Sep 2008 15:43:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 26 17:44:19 2008 connect(): Connection refused 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.50) id 1KjFU7-0007ie-Hb for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 17:43:59 +0200 Original-Received: from localhost ([127.0.0.1]:46209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KjFT5-0006A7-2V for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Sep 2008 11:42:55 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 81 Original-NNTP-Posting-Host: 4AE4AuUNcHSN/2S3W1b6lg.user.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:nZ+y2qVsbTFXW9SHxASKJmux7qM= User-Agent: Gnus/5.090015 (Oort Gnus v0.15) XEmacs/21.4 (Educational Television, i686-pc-linux) Original-Xref: news.stanford.edu gnu.emacs.help:162774 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:58116 Archived-At: "Simeon Nifos" writes: >> Message: 9 >> Date: Thu, 25 Sep 2008 13:43:51 -0400 >> From: Dan Espen >> Subject: Re: Copy Paste in no-x11 mode (emacs -nw) >> To: help-gnu-emacs@gnu.org >> Message-ID: >> Content-Type: text/plain; charset=us-ascii >> >> "Simeon Nifos" writes: >> >>> Dear list, >>> I like using emacs in nox11 mode. The Eterm terminal provides a great >>> font by default I really enjoy. It is smaller and I can work on more >>> source code than I do with the misc-fixed font of Xterm. So I usually >>> run emacs with -nw. Unfortunately there is no way to copy paste >>> something from one emacs window to a terminal or from a terminal to >>> the emacs window I am editing. This is a real headache, since one of >>> the most foundamental stuff an editor is supposed to do, is to support >>> copy and paste of text from whatsoever source to the window where >>> editing takes place. >> >> No. > > Really? Why not? Why so fundamental things which is common sense > are so easilly thrown into trash from Unixers? I love Unix myself. But ... > it could have been made much better and much popular if it allowed > what a person expects to have out of the box ... And I am not talking > about fancy (or should I call them stupid) KDE stuff. What are you going on about? I said "No" to get your attention. This is not an Emacs issue. As other have told you, Emacs has no idea about the X clipboard when you run "-nw". >> Copy/Paste is a function of the terminal, not Emacs, when you run >> Emacs in a terminal. > > Hmmm, it seems however that VIM does it. I am working on the same > Eterm, terminal with VIM and the same thing works like a charm. Why > shouldn't it work with the famous EMACS as well? There are more > things in EMACS than there are in VIM, like debug, like autoformating > of text and C++ comments, and LaTeX documents which are enabled > by default in EMACS and not in VIM. If only the copy paste worked. > I would not need to abandon EMACS at all. Now I do. > >>> Is there anyway I could activate this "underestimated" feature in the >>> mode I am using emacs? I apologize if this email sounds aggressive but >>> there are some things an editor is supposed to do by default and I >>> cannot understand why they are turned off in emacs. >> >> I don't know why you are having problems doing copy/paste in a terminal. >> You need to supply more information. What OS are you using, what did you >> do, what happened. What did you expect to happen. > > Can you? I am using Linux. But the same holds for FreeBSD, Solaris. > Look what I get when I try to paste something on the terminal where > EMACS runs; I mean paste something outside emacs from another > emacs window or vim window or the browser. This is what is reported > down in the command-buffer: "Kill ring is empty" > > I do have enabled the following in my .emacs: > ==================== > (xterm-mouse-mode t) > (mouse-wheel-mode t) > (setq x-select-enable-clipboard t) > ===================== > > Anything else to try? Can you copy paste in terminal? And it makes no > difference if I use XTerm or Eterm. In both the Kill ring is empty. You still didn't tell us what you did that didn't work. I have to guess you stroked text with the mouse then tried to paste. If you used menubar copy, try to use menubar paste in the terminal. Remember, your issue is with the terminal, not emacs. Try copy paste in the terminal without Emacs running.