Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-27-2012, 03:48 PM   #1
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Emacs: dump buffer to external clipboard?

Is there an Emacs command or bit of Emacs lisp code that will dump the contents of the current buffer (or perhaps marked region) into the external (Linux) clipboard? (That is, not the Emacs internal clipboard.) This would be rather convenient. Highlighting the text in the terminal doesn't work because a bunch of extra spaces get included, so usually I have to switch to a different terminal, cat the file, and then copy the part I want, which is a bit of a bother.
Old 08-27-2012, 10:05 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,665

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
Yes. But anything you copy has to be shared with everyone (j/k).

Like everything else with emacs, it is more complicated then one would at first believe possible. Here is a page devoted to it:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
emacs + auctex - opening output PDF inside emacs buffer coenvh Linux - Newbie 1 04-29-2010 06:52 AM
Emacs Clipboard Question bleedingturnips Linux - Software 1 08-31-2005 02:10 AM
Lisp/Emacs: How to do a macro on a buffer-name with another extension LuisG Linux - Software 3 10-25-2004 10:26 PM
emacs buffer ! black Linux - Software 3 07-21-2004 10:57 PM
clipboard/buffer memory synaptical Linux - General 0 04-20-2004 06:47 PM

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration