LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-11-2012, 03:15 PM   #1
usr345
Member
 
Registered: Jan 2012
Posts: 80
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, 11:22 AM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,526

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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:
Code:
<menu-bar> <edit> <copy> runs the command clipboard-kill-ring-save
Also, the x-select-enable-clipboard variable may be of interest to you:

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

Documentation:
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...
 
  


Reply

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


All times are GMT -5. The time now is 03:23 AM.

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