Latest LQ Deal: Linux Power User 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, 02: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, 09:05 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,798

Rep: Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749
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 05:52 AM
Emacs Clipboard Question bleedingturnips Linux - Software 1 08-31-2005 01:10 AM
Lisp/Emacs: How to do a macro on a buffer-name with another extension LuisG Linux - Software 3 10-25-2004 09:26 PM
emacs buffer ! black Linux - Software 3 07-21-2004 09:57 PM
clipboard/buffer memory synaptical Linux - General 0 04-20-2004 05:47 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:53 AM.

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