* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] <7z38cuorvf.fsf@example.com> @ 2014-08-18 19:02 ` Robert Thorpe 2014-08-18 20:44 ` Dale Snell [not found] ` <mailman.7213.1408394749.1147.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 32+ messages in thread From: Robert Thorpe @ 2014-08-18 19:02 UTC (permalink / raw) To: David Hume; +Cc: help-gnu-emacs David Hume <David.Hume@example.com> writes: > Robert Thorpe <rt@robertthorpeconsulting.com> writes: ... > > emacs-gtk has a habit of hanging indefinately. I am suspicious of > emacs-x11 too. So I am using emacs in a terminal. I haven't seen either of those problems. That could be a bug in Emacs. If you can find a recipe to reproduce it then it's worth reporting. BR, Robert Thorpe ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-18 19:02 ` How to copy and paste from unity to emacs in the terminal version ? Robert Thorpe @ 2014-08-18 20:44 ` Dale Snell [not found] ` <mailman.7213.1408394749.1147.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 32+ messages in thread From: Dale Snell @ 2014-08-18 20:44 UTC (permalink / raw) To: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 732 bytes --] On Mon, 18 Aug 2014 20:02:31 +0100 Robert Thorpe <rt@robertthorpeconsulting.com> wrote: > David Hume <David.Hume@example.com> writes: > > > Robert Thorpe <rt@robertthorpeconsulting.com> writes: > ... > > > > emacs-gtk has a habit of hanging indefinately. I am suspicious of > > emacs-x11 too. So I am using emacs in a terminal. > > I haven't seen either of those problems. GTK2 had a bug which caused Emacs to hang if it was suspended (iconified) with C-z. I don't think this was ever fixed, but since Emacs has moved to GTK3, I doubt that it matters. I have never heard of a problem with X11 (though that doesn't mean there isn't one). --Dale -- "Come, muse, let us sing of rats." -- James Grainger [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <mailman.7213.1408394749.1147.help-gnu-emacs@gnu.org>]
[parent not found: <7zk364a4by.fsf_-_@example.com>]
* Re: Emacs hanging (Re: How to copy and paste...) [not found] ` <7zk364a4by.fsf_-_@example.com> @ 2014-08-19 17:08 ` Emanuel Berg 0 siblings, 0 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-19 17:08 UTC (permalink / raw) To: help-gnu-emacs David Hume <David.Hume@hushmail.com> writes: > Just now emacs was hanging in lxterminal. I killed it > off, but I noticed there was an emacs-gtk running > with no window associated with it. I am not sure how > that happened or what it was doing. I have now > uninstalled emacs-x11 and installed emacs-nox > instead, in the hope this problem goes away. > > I can't reported because I don't know the cause, > other than using emacs is the cause. Try to reproduce it. Or if it happens again, think what you might have done this time, that you did the first time as well. Otherwise you hang in the air unless someone immediately recognizes that situation... -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* How to copy and paste from unity to emacs in the terminal version ? @ 2014-08-16 8:57 Kro Ly [not found] ` <7zmwb4vggo.fsf@example.com> ` (3 more replies) 0 siblings, 4 replies; 32+ messages in thread From: Kro Ly @ 2014-08-16 8:57 UTC (permalink / raw) To: help-gnu-emacs Hi, i'm using emacs in the terminal and I'd like to know how to copy and paste something from firefox to emacs for instance ? Thanks. ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <7zmwb4vggo.fsf@example.com>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <7zmwb4vggo.fsf@example.com> @ 2014-08-16 11:29 ` Quanyang Liu 2014-08-16 12:51 ` Grant Rettke [not found] ` <mailman.7137.1408188625.1147.help-gnu-emacs@gnu.org> 1 sibling, 1 reply; 32+ messages in thread From: Quanyang Liu @ 2014-08-16 11:29 UTC (permalink / raw) To: help-gnu-emacs On Sat, Aug 16 2014 at 19:09:27 +0800, David Hume wrote: > Kro Ly <mnmnmnmna@gmail.com> writes: > >> Hi, i'm using emacs in the terminal and I'd like to know how to copy >> and paste something from firefox to emacs for instance ? >> Thanks. > > That depends on the terminal I think. If it is xterm you can press the > middle mouse button to paste. Maybe you can try to use xsel. The way I use is below: ;; use xsel to copy/paste in emacs-nox (unless window-system (when (getenv "DISPLAY") (defun xsel-cut-function (text &optional push) (with-temp-buffer (insert text) (call-process-region (point-min) (point-max) "xsel" nil 0 nil "--clipboard" "--input"))) (defun xsel-paste-function() (let ((xsel-output (shell-command-to-string "xsel --clipboard --output"))) (unless (string= (car kill-ring) xsel-output) xsel-output ))) (setq interprogram-cut-function 'xsel-cut-function) (setq interprogram-paste-function 'xsel-paste-function) )) -- Quanyang Liu (刘全阳) Undergraduate Department of Computer Science and Engineering Shanghai Jiao Tong University ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-16 11:29 ` Quanyang Liu @ 2014-08-16 12:51 ` Grant Rettke 0 siblings, 0 replies; 32+ messages in thread From: Grant Rettke @ 2014-08-16 12:51 UTC (permalink / raw) To: Quanyang Liu; +Cc: Emacs Help Untested: http://blog.binchen.org/posts/paste-string-from-clipboard-into-minibuffer-in-emacs.html Grant Rettke | ACM, ASA, FSF, IEEE, SIAM gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Sat, Aug 16, 2014 at 6:29 AM, Quanyang Liu <lqymgt@gmail.com> wrote: > On Sat, Aug 16 2014 at 19:09:27 +0800, David Hume wrote: >> Kro Ly <mnmnmnmna@gmail.com> writes: >> >>> Hi, i'm using emacs in the terminal and I'd like to know how to copy >>> and paste something from firefox to emacs for instance ? >>> Thanks. >> >> That depends on the terminal I think. If it is xterm you can press the >> middle mouse button to paste. > Maybe you can try to use xsel. The way I use is below: > > ;; use xsel to copy/paste in emacs-nox > (unless window-system > (when (getenv "DISPLAY") > (defun xsel-cut-function (text &optional push) > (with-temp-buffer > (insert text) > (call-process-region (point-min) (point-max) "xsel" nil 0 nil "--clipboard" "--input"))) > (defun xsel-paste-function() > (let ((xsel-output (shell-command-to-string "xsel --clipboard --output"))) > (unless (string= (car kill-ring) xsel-output) > xsel-output ))) > (setq interprogram-cut-function 'xsel-cut-function) > (setq interprogram-paste-function 'xsel-paste-function) > )) > > -- > Quanyang Liu (刘全阳) > Undergraduate > Department of Computer Science and Engineering > Shanghai Jiao Tong University > ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <mailman.7137.1408188625.1147.help-gnu-emacs@gnu.org>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <mailman.7137.1408188625.1147.help-gnu-emacs@gnu.org> @ 2014-08-16 21:45 ` Emanuel Berg 2014-08-17 1:16 ` Quanyang Liu [not found] ` <mailman.7148.1408238240.1147.help-gnu-emacs@gnu.org> 2014-08-18 15:22 ` Kro Ly 1 sibling, 2 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-16 21:45 UTC (permalink / raw) To: help-gnu-emacs Quanyang Liu <lqymgt@gmail.com> writes: > Maybe you can try to use xsel. The way I use is below: > > ;; use xsel to copy/paste in emacs-nox > (unless window-system > (when (getenv "DISPLAY") > (defun xsel-cut-function (text &optional push) > (with-temp-buffer > (insert text) > (call-process-region (point-min) (point-max) "xsel" nil 0 nil "--clipboar= > d" "--input"))) > (defun xsel-paste-function() > (let ((xsel-output (shell-command-to-string "xsel --clipboard --output")= > )) > (unless (string=3D (car kill-ring) xsel-output) > xsel-output ))) > (setq interprogram-cut-function 'xsel-cut-function) > (setq interprogram-paste-function 'xsel-paste-function) > )) Amazing! I have almost the same, also based on xsel. I made it into a package [1], but then I learned another guy had submitted a package to ELPA, only based on xclip (which I first used, but dropped for some reason in favor of xsel). So I never submitted it, but perhaps I still will. Both xsel and xclip are in the repositories for Debian and surely for Ubuntu as well (if you are using Unity, I mean). Also, if you are using tmux, I wrote some code [2] so that you can insert what you kill in tmux into an Emacs buffer. The Emacs kill-yank keys are at work by default in tmux, I think, but tmux requires a little love [3] to write the killed region to a file, which is then inserted from Emacs. Good luck! [1] http://user.it.uu.se/~embe8573/conf/emacs-init/xsel.el [2] http://user.it.uu.se/~embe8573/conf/emacs-init/linux-shell.el [3] http://user.it.uu.se/~embe8573/conf/.tmux.conf -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-16 21:45 ` Emanuel Berg @ 2014-08-17 1:16 ` Quanyang Liu [not found] ` <mailman.7148.1408238240.1147.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 32+ messages in thread From: Quanyang Liu @ 2014-08-17 1:16 UTC (permalink / raw) To: help-gnu-emacs On Sun, Aug 17 2014 at 05:45:31 +0800, Emanuel Berg wrote: > Amazing! I have almost the same, also based on xsel. I > made it into a package [1], but then I learned another > guy had submitted a package to ELPA, only based on > xclip (which I first used, but dropped for some reason > in favor of xsel). > Well... I got the solution from the Internet, in fact. -- Quanyang Liu (刘全阳) Undergraduate Department of Computer Science and Engineering Shanghai Jiao Tong University ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <mailman.7148.1408238240.1147.help-gnu-emacs@gnu.org>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <mailman.7148.1408238240.1147.help-gnu-emacs@gnu.org> @ 2014-08-17 2:26 ` Emanuel Berg 0 siblings, 0 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-17 2:26 UTC (permalink / raw) To: help-gnu-emacs Quanyang Liu <lqymgt@gmail.com> writes: >> Amazing! I have almost the same, also based on xsel. >> I made it into a package [1], but then I learned >> another guy had submitted a package to ELPA, only >> based on xclip (which I first used, but dropped for >> some reason in favor of xsel). > > Well... I got the solution from the Internet, in > fact. It doesn't matter. Code doesn't belong to the person who wrote it, but the person who needs it. -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <mailman.7137.1408188625.1147.help-gnu-emacs@gnu.org> 2014-08-16 21:45 ` Emanuel Berg @ 2014-08-18 15:22 ` Kro Ly 2014-08-18 15:37 ` Yuri Khan ` (2 more replies) 1 sibling, 3 replies; 32+ messages in thread From: Kro Ly @ 2014-08-18 15:22 UTC (permalink / raw) To: help-gnu-emacs Thanks everyone but xsel doesn't seem to work and I have found no solution. It say "xsel: can't open display: (null): success. I'm on ubuntu 12.04 using the first console (ctrl + alt + f1). ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-18 15:22 ` Kro Ly @ 2014-08-18 15:37 ` Yuri Khan [not found] ` <7zy4ulojs7.fsf@example.com> [not found] ` <mailman.7192.1408376274.1147.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 32+ messages in thread From: Yuri Khan @ 2014-08-18 15:37 UTC (permalink / raw) To: Kro Ly; +Cc: help-gnu-emacs@gnu.org On Mon, Aug 18, 2014 at 10:22 PM, Kro Ly <mnmnmnmna@gmail.com> wrote: > Thanks everyone but xsel doesn't seem to work and I have found no solution. It say "xsel: can't open display: (null): success. I'm on ubuntu 12.04 using the first console (ctrl + alt + f1). Before running xclip or xsel, you might want to set the DISPLAY environment to indicate the X display whose selection or clipboard you want to access, e.g.: $ DISPLAY=:0 xsel -o ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <7zy4ulojs7.fsf@example.com>]
* RE: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <7zy4ulojs7.fsf@example.com> @ 2014-08-18 17:45 ` Subhan Michael Tindall 2014-08-18 17:54 ` Bob Proulx 2014-08-18 21:41 ` Emanuel Berg 1 sibling, 1 reply; 32+ messages in thread From: Subhan Michael Tindall @ 2014-08-18 17:45 UTC (permalink / raw) To: 'David Hume', help-gnu-emacs@gnu.org I'm stuck in Windows-land these days, but when I was using terminal emacs a lot on my Ubuntu machine (gnome terminal I think, but I believe this is common: ) A) Highlight URL or whatever in firefox, chrome, etc. B) copy or kill using C-c or C-x C) paste into term at cursor: Shift-C-v Hope this helps! > -----Original Message----- > From: help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org > [mailto:help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org] On > Behalf Of David Hume > Sent: Monday, August 18, 2014 9:16 AM > To: help-gnu-emacs@gnu.org > Subject: Re: How to copy and paste from unity to emacs in the terminal > version ? > > Kro Ly <mnmnmnmna@gmail.com> writes: > > > Thanks everyone but xsel doesn't seem to work and I have found no > > solution. It say "xsel: can't open display: (null): success. I'm on > > ubuntu 12.04 using the first console (ctrl + alt + f1). > > aaaaaaaah, you are using the console! Well, you could perhaps run emacs in > xterm instead. :) > > emacs -nw This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you. ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-18 17:45 ` Subhan Michael Tindall @ 2014-08-18 17:54 ` Bob Proulx 2014-08-18 18:20 ` Stefan Monnier 0 siblings, 1 reply; 32+ messages in thread From: Bob Proulx @ 2014-08-18 17:54 UTC (permalink / raw) To: help-gnu-emacs Subhan Michael Tindall wrote: > I'm stuck in Windows-land these days, but when I was using terminal > emacs a lot on my Ubuntu machine (gnome terminal I think, but I > believe this is common: ) > A) Highlight URL or whatever in firefox, chrome, etc. > B) copy or kill using C-c or C-x > C) paste into term at cursor: Shift-C-v Or in xterm and other places it is Shift-Insert. The traditional X controls are to highlight using the left mouse button. Then paste using the middle mouse button. Shift-Insert is also available as a paste control. Unfortunately (for me anyway) the Microsoft C-c, C-x, C-v controls are permeating and the traditional methods are becoming broken. Therefore your experience may be different depending upon configuration. Bob ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-18 17:54 ` Bob Proulx @ 2014-08-18 18:20 ` Stefan Monnier 2014-08-19 0:17 ` Bob Proulx 0 siblings, 1 reply; 32+ messages in thread From: Stefan Monnier @ 2014-08-18 18:20 UTC (permalink / raw) To: help-gnu-emacs > The traditional X controls are to highlight using the left mouse > button. Then paste using the middle mouse button. Shift-Insert is > also available as a paste control. Indeed, this is the traditional bindings to control the PRIMARY selection. > Unfortunately (for me anyway) the Microsoft C-c, C-x, C-v controls are > permeating and the traditional methods are becoming broken. Therefore > your experience may be different depending upon configuration. I haven't seen much real breakage in that area. But these key bindings typically control the CLIPBOARD selection instead, so if you're not aware of the distinction between PRIMARY and CLIPBOARD selection (and/or if you don't know or aren't sure which is used by your program and/or by the key sequence you used), then indeed, sometimes it looks like it's just broken. Stefan ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-18 18:20 ` Stefan Monnier @ 2014-08-19 0:17 ` Bob Proulx 2014-08-19 1:41 ` Stefan Monnier 0 siblings, 1 reply; 32+ messages in thread From: Bob Proulx @ 2014-08-19 0:17 UTC (permalink / raw) To: help-gnu-emacs Stefan Monnier wrote: > Bob Proulx wrote: > > The traditional X controls are to highlight using the left mouse > > button. Then paste using the middle mouse button. Shift-Insert is > > also available as a paste control. > > Indeed, this is the traditional bindings to control the PRIMARY selection. > > > Unfortunately (for me anyway) the Microsoft C-c, C-x, C-v controls are > > permeating and the traditional methods are becoming broken. Therefore > > your experience may be different depending upon configuration. > > I haven't seen much real breakage in that area. But these key bindings > typically control the CLIPBOARD selection instead, so if you're not > aware of the distinction between PRIMARY and CLIPBOARD selection > (and/or if you don't know or aren't sure which is used by your program > and/or by the key sequence you used), then indeed, sometimes it looks > like it's just broken. I am familiar with the differences between the primary selection and the clipboard. However the resulting behavior of cutting text and pasting text shouldn't matter whether you are using one or the other. Except that it does. In the end anything that prevents being able to highlight text with a click and drag of the left mouse button and then being able to paste that text with the middle button appears as breakage whether it is actually the clipboard or the primary selection executing the details. Bob ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-19 0:17 ` Bob Proulx @ 2014-08-19 1:41 ` Stefan Monnier 0 siblings, 0 replies; 32+ messages in thread From: Stefan Monnier @ 2014-08-19 1:41 UTC (permalink / raw) To: help-gnu-emacs > I am familiar with the differences between the primary selection and > the clipboard. However the resulting behavior of cutting text and > pasting text shouldn't matter whether you are using one or the other. Of course it does: if you select text in an application which puts it in PRIMARY and then paste it in an application which looks for it in CLIPBOARD you won't get what you're asking for. > In the end anything that prevents being able to highlight text with a > click and drag of the left mouse button and then being able to paste > that text with the middle button appears as breakage whether it is > actually the clipboard or the primary selection executing the details. Right. The convention is not followed correctly by all applications, plus some applications are trying to be helpful (i.e. to try and accommodate the fact that other applications don't follow the convention correctly) and end up breaking the convention yet again. It's kind of messy because this convention was introduced "late" in the life of X11. Stefan ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <7zy4ulojs7.fsf@example.com> 2014-08-18 17:45 ` Subhan Michael Tindall @ 2014-08-18 21:41 ` Emanuel Berg 2014-08-18 22:11 ` Emanuel Berg [not found] ` <7z7g25za4u.fsf@example.com> 1 sibling, 2 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-18 21:41 UTC (permalink / raw) To: help-gnu-emacs David Hume <David.Hume@example.com> writes: > aaaaaaaah, you are using the console! Well, you could > perhaps run emacs in xterm instead. :) > > emacs -nw There are many differences between using Emacs with -nw in xterm and using it in a Linux VT/tty/"the console". For example, xterm requires you to use X. Most of the time that isn't a problem, but sometimes your system may be in a compromised state, and you don't have X access. Of coures, that never happens to me (cough) The biggest differences are how you configure the keys and the fonts and the colors. In the console, that is completely in the console. In X, some of it is in X (by way of xterm), some of it is Emacs. It is not really that one is better than the other. Rather, if you started with one, you probably have a better understanding and your mind is quicker to execute whatever you want to do. So at that point, probably you should stick to the one you like and know the best. Fonts, colors, and keys, mostly in the console but some X stuff as well: http://user.it.uu.se/~embe8573/cols/www/ http://user.it.uu.se/~embe8573/zsh.html -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-18 21:41 ` Emanuel Berg @ 2014-08-18 22:11 ` Emanuel Berg [not found] ` <7z7g25za4u.fsf@example.com> 1 sibling, 0 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-18 22:11 UTC (permalink / raw) To: help-gnu-emacs Emanuel Berg <embe8573@student.uu.se> writes: > Fonts, colors, and keys ... Clarification: With "keys" I mean not everyday keys but exotic keys and combinations that Emacs without workarounds won't make use of as you intended. For example, to rebind CAPS or to make C-m work. Those kind of things are dealt with differently in the console and in X. Regular keybindings to functions are just the same. Colors and fonts also behave somewhat like that. What can be setup in an Emacs init file should in 99% do for both the console and X. But sometimes what you setup like that relates to something you setup somewhere else, and sometimes the fix is entirely outside of Emacs. So bring a flashlight! -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <7z7g25za4u.fsf@example.com>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <7z7g25za4u.fsf@example.com> @ 2014-08-18 23:03 ` Emanuel Berg [not found] ` <7zsiksvpg9.fsf@example.com> 0 siblings, 1 reply; 32+ messages in thread From: Emanuel Berg @ 2014-08-18 23:03 UTC (permalink / raw) To: help-gnu-emacs David Hume <David.Hume@example.com> writes: >> may be in a compromised state, and you don't have X > > If he has firefox, he has X. (Misunderstanding: read again what I wrote.) >> execute whatever you want to do. So at that point, >> probably you should stick to the one you like and >> know the best. > > The strong point of human beings is adaptability. You > shouldn't stick with what you like and know the best, > you should adapt to something better if it is > available. Otherwise we would be wandering around > looking for woolly Mammoths and feeling rather > hungry. One of the strong points of human beings is adaptability. Another strong point is perfecting what is known to be good. In the streets of Karakorum a guy that has been fiddling with thousands of different weapons all his life is but a war-nerd. The other guy who spent his life perfecting archery will put an arrow through the war-nerds head, using exactly the same method he has employed all his fighting life. -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <7zsiksvpg9.fsf@example.com>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <7zsiksvpg9.fsf@example.com> @ 2014-08-19 16:49 ` Emanuel Berg 2014-08-19 22:59 ` Emanuel Berg 0 siblings, 1 reply; 32+ messages in thread From: Emanuel Berg @ 2014-08-19 16:49 UTC (permalink / raw) To: help-gnu-emacs David Hume <David.Hume@example.com> writes: > ... you seem to be talking about a hypothetical > situation. If X is broken, or if you have set up > colours. It doesn't have to be X that is broken just because you can't use it. Hypothetical and hypothetical... it is a fact that using Emacs in the console isn't in all aspects identical to using it in xterm with -nw. If those differences will ever matter to the OP at some level that is worth bringing up, I cant' say, of course. I always said the Delhi oracle was more talented than I... -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-19 16:49 ` Emanuel Berg @ 2014-08-19 22:59 ` Emanuel Berg 0 siblings, 0 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-19 22:59 UTC (permalink / raw) To: help-gnu-emacs Emanuel Berg <embe8573@student.uu.se> writes: > I always said the Delhi oracle was more talented than > I... *Delphi :) There is also the matter of speed, the "interactive feel" someone mentioned. When I started with Linux I used gnome-terminal which was (is?) very slow. I could sense this because I had used the terminal on SunOS 5.10, which was invoked from Gnome just under the black-screen icon named "Terminal", so I don't know what it was. Anyway, I looked around and found rxvt which was much faster (that acronym is really telling, if you don't know it). I then switched to urxvt (or "rxvt-unicode") probably for Unicode support, and that was as fast as rxvt. Then I switched to the console which I experienced as as fast, perhaps marginally faster still. But the best thing was that it was distraction-free or almost so without that much configuration, and the configuration that remained come easy... well, relatively speaking. Now I use xterm in X which I also consider fast. If you are very sensitive to distractions this can actually be a way of getting super-focus, but only if you get rid of the distractions. If you can't, it is very bad. The console can be a quick and easy way. It all depends what you want and how sensitive you are (or "perceptive" if you prefer a word that rings positively). -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <mailman.7192.1408376274.1147.help-gnu-emacs@gnu.org>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <mailman.7192.1408376274.1147.help-gnu-emacs@gnu.org> @ 2014-08-18 20:12 ` Kro Ly 2014-08-19 2:41 ` Yuri Khan 0 siblings, 1 reply; 32+ messages in thread From: Kro Ly @ 2014-08-18 20:12 UTC (permalink / raw) To: help-gnu-emacs Le lundi 18 août 2014 17:37:50 UTC+2, Yuri Khan a écrit : > On Mon, Aug 18, 2014 at 10:22 PM, Kro Ly <mnmnmnmna@gmail.com> wrote: > > > Thanks everyone but xsel doesn't seem to work and I have found no solution. It say "xsel: can't open display: (null): success. I'm on ubuntu 12.04 using the first console (ctrl + alt + f1). > > > > Before running xclip or xsel, you might want to set the DISPLAY > > environment to indicate the X display whose selection or clipboard you > > want to access, e.g.: > > > > $ DISPLAY=:0 xsel -o this worked perfectly : $ export DISPLAY=: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 just reminds me my childhood :) ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-18 20:12 ` Kro Ly @ 2014-08-19 2:41 ` Yuri Khan 2014-08-20 5:40 ` Bob Proulx [not found] ` <mailman.7266.1408513264.1147.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 32+ messages in thread From: Yuri Khan @ 2014-08-19 2:41 UTC (permalink / raw) To: Kro Ly; +Cc: help-gnu-emacs@gnu.org On Tue, Aug 19, 2014 at 3:12 AM, Kro Ly <mnmnmnmna@gmail.com> wrote: > thanks to everyone for having tried to help me. > for those who are curious about why I'm using emacs in the terminal, it just reminds me my childhood :) Have a look at the cool-old-term project. It works in X and might remind one’s childhood even more :) ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-19 2:41 ` Yuri Khan @ 2014-08-20 5:40 ` Bob Proulx [not found] ` <mailman.7266.1408513264.1147.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 32+ messages in thread From: Bob Proulx @ 2014-08-20 5:40 UTC (permalink / raw) To: help-gnu-emacs Yuri Khan wrote: > Have a look at the cool-old-term project. It works in X and might > remind one’s childhood even more :) https://github.com/Swordifish90/cool-old-term That is quite a nice retro look to the terminal. I like it! :-) However I see you using the unicode "’" (U+2019) in your reply instead of the traditional typewriter "'" (0x27). :-) How can you be a traditionalist with behavior like that? Ha ha! Bob ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <mailman.7266.1408513264.1147.help-gnu-emacs@gnu.org>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <mailman.7266.1408513264.1147.help-gnu-emacs@gnu.org> @ 2014-08-20 17:28 ` Emanuel Berg 2014-08-21 3:43 ` Yuri Khan [not found] ` <mailman.7303.1408592631.1147.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-20 17:28 UTC (permalink / raw) To: help-gnu-emacs Bob Proulx <bob@proulx.com> writes: > Yuri Khan wrote: > >> Have a look at the cool-old-term project. It works >> in X and might remind one’s childhood even more :) > > https://github.com/Swordifish90/cool-old-term > > That is quite a nice retro look to the terminal. I > like it! :-) Yeah, me too! But I suppose it is not "real" but rather they used high tech to make it look that way. Like the MAME and zsnes and all those emulators to play Neo-Geo and SNES. But actually those run the original ROMs. This is just a shell that looks that way. Also, they are "exposed" as running it in a GUI window. But I'm impressed by the effort and result. Though I prefer the real deal. Here, no fake records: http://user.it.uu.se/~embe8573/pics/console_cols.png This is the console with tmux and zsh. Showing Debian, Sun, colored prompt strings, colored output, color by extension, and some ASCII art from the BBS era. Speaking of the 90s, to quote SEGA: "Beat us. If you can." By the way, "Swordfish" is also the name of a hacker movie that really sucked, but at least included some nice looking wenches. Also, there is a very colorful shell being developed today, the fish shell. You can get such colors for zsh as well, which I tried, but I got stressed out by the words changing colors as I typed. > However I see you using the unicode "’" (U+2019) in > your reply instead of the traditional typewriter "'" > (0x27). :-) How can you be a traditionalist with > behavior like that? Ha ha! I and Mr. Khan already had a holy war on that which included some 10-20 posts, some of which were very long. Next time, I'll put him down that mercilessly as you just did and be done with it. :) -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-20 17:28 ` Emanuel Berg @ 2014-08-21 3:43 ` Yuri Khan [not found] ` <mailman.7303.1408592631.1147.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 32+ messages in thread From: Yuri Khan @ 2014-08-21 3:43 UTC (permalink / raw) To: Emanuel Berg; +Cc: help-gnu-emacs@gnu.org On Thu, Aug 21, 2014 at 12:28 AM, Emanuel Berg <embe8573@student.uu.se> wrote: > >> However I see you using the unicode "’" (U+2019) in >> your reply instead of the traditional typewriter "'" >> (0x27). :-) How can you be a traditionalist with >> behavior like that? Ha ha! > > I and Mr. Khan already had a holy war on that which > included some 10-20 posts, some of which were very > long. Next time, I'll put him down that mercilessly as > you just did and be done with it. Oh, now that you two have blown my cover, I have to confess. I am from an alternate reality where technical limitations and bad design decisions are recognized, deprecated and obsoleted at the earliest opportunity. So, Unicode everywhere (including FTP and ZIP), keyboard rows are not staggered, and HTML has been superseded with XHTML which has to be valid to at least 1.0 Strict before any existing browser displays even a bit of it. But even in that alternate reality, now and then, people still miss a bit of a technical limitation which was in effect at the time of their childhood. Some develop a CRT-like terminal emulator, some listen to music on vinyl discs. > :) ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <mailman.7303.1408592631.1147.help-gnu-emacs@gnu.org>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <mailman.7303.1408592631.1147.help-gnu-emacs@gnu.org> @ 2014-08-22 0:09 ` Emanuel Berg 0 siblings, 0 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-22 0:09 UTC (permalink / raw) To: help-gnu-emacs Yuri Khan <yuri.v.khan@gmail.com> writes: > Oh, now that you two have blown my cover, I have to > confess. I am from an alternate reality where > technical limitations and bad design decisions are > recognized, deprecated and obsoleted at the earliest > opportunity. So, Unicode everywhere (including FTP > and ZIP), keyboard rows are not staggered, and HTML > has been superseded with XHTML which has to be valid > to at least 1.0 Strict before any existing browser > displays even a bit of it. What? > But even in that alternate reality, now and then, > people still miss a bit of a technical limitation > which was in effect at the time of their childhood. > Some develop a CRT-like terminal emulator, some > listen to music on vinyl discs. Perhaps to you it is nostalgia. My first computer was a Mac Plus - well, of course it wasn't mine, it was the first I used, I mean. The OS - perhaps what we would now would call a desktop or window manager - was Finder. I remember upgrading (or switching) to 6.0.7. Finder was the smash hit of the GUIs. And there were some great games like Dark Castle, Beyond Dark Castle, Shadowgate and Prince of Persia. There were also some crossovers from the PC world (like King's Quest, Space Quest etc. from Sierra On-line) which were horrible. (On-line back then was the computer world, as opposed to the paper world.) But I didn't think about the UI at all back then, as a kid. Anyway, somewhere along the way I started using PCs, Windows 95 and XP are the OSs I remember. (I didn't do much DOS at all.) I did VB 5.0 and either C or C++, I don't remember. I did BASIC on the TI calculator and amazingly on the PlayStation 2 as well. I'm actually much more a newcomer to the CLI world than to programming. No, I discovered the CLI and all with the SunOS and later Debian. It took my quite some time to be GNOME-, X-, and mouse-free. So for me it is absolutely not about nostalgia. The moment I saw the terminal I realized it was 100 times better, and I wanted nothing else, but at that time I couldn't do everything I wanted so I had to use X for certain things. RMAIL, then Gnus, and Emacs-w3m were the last nails in the coffin for me. Now I'm not that angry at GUIs, the mouse, and all, anymore, because I don't use them. It is like the police. When you feel they might arrest you or ride into the street rally, you don't like them. But when you are safe and sound you don't think about them or waste any energy being negativistic and angry. -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-16 8:57 How to copy and paste from unity to emacs in the terminal version ? Kro Ly [not found] ` <7zmwb4vggo.fsf@example.com> @ 2014-08-16 23:18 ` Emanuel Berg 2014-08-17 1:22 ` Quanyang Liu [not found] ` <mailman.7149.1408238590.1147.help-gnu-emacs@gnu.org> 2014-08-18 12:57 ` Robert Thorpe 2014-08-18 15:46 ` Stefan Monnier 3 siblings, 2 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-16 23:18 UTC (permalink / raw) To: help-gnu-emacs Kro Ly <mnmnmnmna@gmail.com> writes: > Hi, i'm using emacs in the terminal and I'd like to > know how to copy and paste something from firefox to > emacs for instance ? Thanks. In addition to my other post on xsel, I'd like to mention that a copy-and-paste interface from Emacs to the outside world is, while useful, still a very limited interface - and one that isn't programmable. Emacs is all about automatization. Two things in sequence that you make into one. So the best answer is actually: Don't do it! Instead, use an Emacs based browser, for example w3m - hit the repositories for 'w3m-el-snapshot'. Not only will that in an instant solve the clipboard problem - it will actually solve it in a much better way, as the Emacs kill ring is much more advanced than the X clipboard - but the main advantage is that instead of a mere copy-and-paste interface, you will have a completely integrated browser. If you are fond of Lisp, the sky's the limit. [1] By the way, I just thought of one thing. Unity on Ubuntu is still on X, or did they switch to Mir yet? In that case, I don't know if xclip and xsel works. I've heard of XMir that would bridge the gap, but I've not seen any of this live. Perhaps you are even using Kubuntu that would stick with X and switch (?) to Wayland eventually. It would be nice if you could tell us a thing or two. [1] http://user.it.uu.se/~embe8573/conf/emacs-init/w3m/ -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-16 23:18 ` Emanuel Berg @ 2014-08-17 1:22 ` Quanyang Liu [not found] ` <mailman.7149.1408238590.1147.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 32+ messages in thread From: Quanyang Liu @ 2014-08-17 1:22 UTC (permalink / raw) To: help-gnu-emacs On Sun, Aug 17 2014 at 07:18:29 +0800, Emanuel Berg wrote: > So the best answer is actually: Don't do it! Instead, > use an Emacs based browser, for example w3m - hit the > repositories for 'w3m-el-snapshot'. I don't think a text-base browser can always satisfy requirements... By the way, since he uses firefox, why not directly use Emacs for GUI. -- Quanyang Liu (刘全阳) Undergraduate Department of Computer Science and Engineering Shanghai Jiao Tong University ^ permalink raw reply [flat|nested] 32+ messages in thread
[parent not found: <mailman.7149.1408238590.1147.help-gnu-emacs@gnu.org>]
* Re: How to copy and paste from unity to emacs in the terminal version ? [not found] ` <mailman.7149.1408238590.1147.help-gnu-emacs@gnu.org> @ 2014-08-17 2:34 ` Emanuel Berg 0 siblings, 0 replies; 32+ messages in thread From: Emanuel Berg @ 2014-08-17 2:34 UTC (permalink / raw) To: help-gnu-emacs Quanyang Liu <lqymgt@gmail.com> writes: >> So the best answer is actually: Don't do it! >> Instead, use an Emacs based browser, for example w3m >> - hit the repositories for 'w3m-el-snapshot'. > > I don't think a text-base browser can always satisfy > requirements... There is only one case where w3m fails me, and that is http://www.sj.se, to se when the trains come and go. Everything else I can do with text-only. I think it is JavaScript that is lacking, a technology I don't respect anyway. (Other people may have other needs, of course.) Even accursed YouTube I don't have to use that way. First w3m to get the URL, then youtube-dl to get the movie file. Browser GUI, YouTube GUI, dependence on the Internet, all bypassed. But, I think nowadays there actually are Emacs browsers that can show pictures. (If anyone passes the sj.se test, I'd give it a try.) > By the way, since he uses firefox, why not directly > use Emacs for GUI. One more time? -- underground experts united ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-16 8:57 How to copy and paste from unity to emacs in the terminal version ? Kro Ly [not found] ` <7zmwb4vggo.fsf@example.com> 2014-08-16 23:18 ` Emanuel Berg @ 2014-08-18 12:57 ` Robert Thorpe 2014-08-18 15:46 ` Stefan Monnier 3 siblings, 0 replies; 32+ messages in thread From: Robert Thorpe @ 2014-08-18 12:57 UTC (permalink / raw) To: Kro Ly; +Cc: help-gnu-emacs Kro Ly <mnmnmnmna@gmail.com> writes: > Hi, i'm using emacs in the terminal and I'd like to know how to copy and paste something from firefox to emacs for instance ? > Thanks. This question keeps being asked recently. Lots of people have posted code using xsel and xclip. Some of which doesn't work properly (http://lists.gnu.org/archive/html/help-gnu-emacs/2014-05/msg00100.html ), but I think the ones posted in this thread are ok. What's the point of running the terminal version of Emacs in X? If you want windowing then why not run the X version? If you don't want windowing, then why both run X at all? BR, Robert Thorpe ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: How to copy and paste from unity to emacs in the terminal version ? 2014-08-16 8:57 How to copy and paste from unity to emacs in the terminal version ? Kro Ly ` (2 preceding siblings ...) 2014-08-18 12:57 ` Robert Thorpe @ 2014-08-18 15:46 ` Stefan Monnier 3 siblings, 0 replies; 32+ messages in thread From: Stefan Monnier @ 2014-08-18 15:46 UTC (permalink / raw) To: help-gnu-emacs > Hi, i'm using emacs in the terminal and I'd like to know how to copy and > paste something from firefox to Emacs for instance ? Depends on the terminal you use, but other than that it should "just work". What have you tried and what result did you get? Stefan ^ permalink raw reply [flat|nested] 32+ messages in thread
end of thread, other threads:[~2014-08-22 0:09 UTC | newest] Thread overview: 32+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <7z38cuorvf.fsf@example.com> 2014-08-18 19:02 ` How to copy and paste from unity to emacs in the terminal version ? Robert Thorpe 2014-08-18 20:44 ` Dale Snell [not found] ` <mailman.7213.1408394749.1147.help-gnu-emacs@gnu.org> [not found] ` <7zk364a4by.fsf_-_@example.com> 2014-08-19 17:08 ` Emacs hanging (Re: How to copy and paste...) Emanuel Berg 2014-08-16 8:57 How to copy and paste from unity to emacs in the terminal version ? Kro Ly [not found] ` <7zmwb4vggo.fsf@example.com> 2014-08-16 11:29 ` Quanyang Liu 2014-08-16 12:51 ` Grant Rettke [not found] ` <mailman.7137.1408188625.1147.help-gnu-emacs@gnu.org> 2014-08-16 21:45 ` Emanuel Berg 2014-08-17 1:16 ` Quanyang Liu [not found] ` <mailman.7148.1408238240.1147.help-gnu-emacs@gnu.org> 2014-08-17 2:26 ` Emanuel Berg 2014-08-18 15:22 ` Kro Ly 2014-08-18 15:37 ` Yuri Khan [not found] ` <7zy4ulojs7.fsf@example.com> 2014-08-18 17:45 ` Subhan Michael Tindall 2014-08-18 17:54 ` Bob Proulx 2014-08-18 18:20 ` Stefan Monnier 2014-08-19 0:17 ` Bob Proulx 2014-08-19 1:41 ` Stefan Monnier 2014-08-18 21:41 ` Emanuel Berg 2014-08-18 22:11 ` Emanuel Berg [not found] ` <7z7g25za4u.fsf@example.com> 2014-08-18 23:03 ` Emanuel Berg [not found] ` <7zsiksvpg9.fsf@example.com> 2014-08-19 16:49 ` Emanuel Berg 2014-08-19 22:59 ` Emanuel Berg [not found] ` <mailman.7192.1408376274.1147.help-gnu-emacs@gnu.org> 2014-08-18 20:12 ` Kro Ly 2014-08-19 2:41 ` Yuri Khan 2014-08-20 5:40 ` Bob Proulx [not found] ` <mailman.7266.1408513264.1147.help-gnu-emacs@gnu.org> 2014-08-20 17:28 ` Emanuel Berg 2014-08-21 3:43 ` Yuri Khan [not found] ` <mailman.7303.1408592631.1147.help-gnu-emacs@gnu.org> 2014-08-22 0:09 ` Emanuel Berg 2014-08-16 23:18 ` Emanuel Berg 2014-08-17 1:22 ` Quanyang Liu [not found] ` <mailman.7149.1408238590.1147.help-gnu-emacs@gnu.org> 2014-08-17 2:34 ` Emanuel Berg 2014-08-18 12:57 ` Robert Thorpe 2014-08-18 15:46 ` Stefan Monnier
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.