Visit Jeremy's Blog.
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 10-11-2012, 02:15 PM   #1
Registered: Jan 2012
Posts: 111
Blog Entries: 1

Rep: Reputation: Disabled
Emacs KDE clipboard interaction

I am using Emacs 23.3.1 and KDE 4.5.5 on Linux Slackware. When I select and copy some text in Emacs into the clipboard, using the hotkeys: C-c & Shift-<Ins> this text doesn't appear immidiately in KDE clipboard. But exists at the top of Klipper buffer. So I have to manually select this text and then it's available.

When I copy from the menu, everything works fine. How to learn, which functions called, when copying from the menu, so I could bind it to the hotkeys?
Old 10-12-2012, 10:22 AM   #2
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,165

Rep: Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371Reputation: 1371
You can use describe-key (<f1> k) or describe-key-briefly (<f1> c) for any keybindings. Clicking a menu item also counts as a keystroke.

For example, describe-key-briefly on the copy menu item gives me:
<menu-bar> <edit> <copy> runs the command clipboard-kill-ring-save
Also, the x-select-enable-clipboard variable may be of interest to you:

x-select-enable-clipboard is a variable defined in `x-win.el'.
Its value is t

Non-nil means cutting and pasting uses the clipboard.
This is in addition to, but in preference to, the primary selection.

On MS-Windows, this is non-nil by default, since Windows does not
support other types of selections.  (The primary selection that is
set by Emacs is not accessible to other programs on Windows.)

You can customize this variable.
To be honest, I find X Window's system of multiple cut buffers/selections confusing; my current settings work most of the time, except when they don't...


clipboard, emacs, kde

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: dump buffer to external clipboard? hydraMax Linux - Software 1 08-27-2012 09:05 PM
LXer: KDE 4 Set to Make Device Interaction Solid LXer Syndicated Linux News 0 01-04-2006 03:16 PM
Emacs Clipboard Question bleedingturnips Linux - Software 1 08-31-2005 01:10 AM
Read KDE clipboard content neranjana Linux - General 3 05-10-2005 12:12 PM
KDE clipboard problem 286 Linux - Newbie 0 01-17-2004 01:33 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:28 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