From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: How to speed up cutting & pasting from/to emacs? Date: Sun, 12 Jul 2015 19:13:22 +0200 Message-ID: <87wpy58fkd.fsf@nl106-137-147.student.uu.se> References: <87zj31605c.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436721316 21198 80.91.229.3 (12 Jul 2015 17:15:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2015 17:15:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 12 19:15:09 2015 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 1ZEKqK-0005A2-9g for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2015 19:15:08 +0200 Original-Received: from localhost ([::1]:51395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEKqJ-0004t0-Cv for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Jul 2015 13:15:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEKq7-0004sd-DU for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 13:14:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEKq4-0001je-1y for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 13:14:55 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEKq3-0001iv-Rh for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 13:14:51 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZEKq0-00050x-V2 for help-gnu-emacs@gnu.org; Sun, 12 Jul 2015 19:14:48 +0200 Original-Received: from nl106-137-156.student.uu.se ([130.243.137.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jul 2015 19:14:48 +0200 Original-Received: from embe8573 by nl106-137-156.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jul 2015 19:14:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 67 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-156.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:u9Dvuy/jIcJbkIVYKfLrsfdxGz4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:105641 Archived-At: Sharon Kimble writes: > I'm involved in a project which involves a lot of > pasting into emacs From the clipboard, which is > taking a long time. The best answer/method is: don't do it! What other program(s) are you using, to/from which you copy/paste? Have you examined if Emacs can do what these programs do, in what case you don't have that problem anymore but can rely on kill/yank instead, which is much more powerful and fast. Examples, instead of - use: Thunderbird -> Gnus (what I remember you already use that), Irssi -> ERC, man pages with man/less in the shell -> M-x man RET, Iceweasel/Firefox -> Emacs-w3m. And so on. > How can I speed up the cutting and pasting please? What do you mean "speed up", exactly? Do you use the GUI Emacs in X? And in another window, you have another program with text? Again, the best thing is if what that program does can be done in Emacs, which is very likely, and Emacs probably does it better as well. If this can't be done for whatever reason, you need a window manager in X with a shortcut to iterate windows. I use Openbox with which it is possible to select window with M-TAB (in Emacs' notation). So in the other program you cut the text. Then hit M-TAB to go to Emacs. Then hit whatever key you have assigned to paste it, if it isn't integrated with the kill ring already, in what case C-y is fine (it doesn't matter in terms of speed if the "paste from clipboard" shortcut is as short and close as C-y). If this is the situation you already have, elaborate further what you mean by making it faster. In general, 1) Use Emacs for everything. 2) Don't use the mouse. 3) Use shortcuts that are short and close. 4) Integrate Emacs with external programs by setting up (keyboard) shortcuts to go to and from them. For example, if the M-TAB window iteration method isn't fast enough (if you have tons of windows), setup a shortcut in X (with xbindkeys) to go directly to the Emacs window, and then setup another shortcut to go directly to the program from which you copy text. This isn't difficult to do: use 'wmctrl'. Keep on asking until you get it if you get stuck. Things like this are very important and they are what makes the difference between fun and productive and miserable and somewhat less productive, and you don't want to make that trade. -- underground experts united http://user.it.uu.se/~embe8573