From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: cplum984@gmail.com Newsgroups: gmane.emacs.help Subject: Need help with emacs clipboard. Date: Mon, 12 Jan 2015 18:47:01 -0800 (PST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421122082 30359 80.91.229.3 (13 Jan 2015 04:08:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 04:08:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 13 05:07:53 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 1YAslk-0002Hn-Bk for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Jan 2015 05:07:52 +0100 Original-Received: from localhost ([::1]:37309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAslj-0001vA-83 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Jan 2015 23:07:51 -0500 X-Received: by 10.66.236.105 with SMTP id ut9mr25815084pac.38.1421117222173; Mon, 12 Jan 2015 18:47:02 -0800 (PST) X-Received: by 10.182.216.202 with SMTP id os10mr69224obc.8.1421117222064; Mon, 12 Jan 2015 18:47:02 -0800 (PST) Original-Path: usenet.stanford.edu!h15no4228956igd.0!news-out.google.com!h6ni2146igv.0!nntp.google.com!h15no2771813igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=148.87.19.206; posting-account=7FlF8AoAAAAqyjb-_1DQpw7ixeu-h6O2 Original-NNTP-Posting-Host: 148.87.19.206 User-Agent: G2/1.0 Injection-Date: Tue, 13 Jan 2015 02:47:02 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:209759 X-Mailman-Approved-At: Mon, 12 Jan 2015 23:07:36 -0500 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:102039 Archived-At: I've switched from xemacs to emacs, and I'm trying to get undo/cut/copy/pas= te all working again. In my xemacs setup, I used the following: (define-key global-map [(f1)] 'undo) (define-key global-map [(f2)] 'x-kill-primary-selection) (define-key global-map [(f3)] 'x-copy-primary-selection) (define-key global-map [(f4)] 'x-yank-clipboard-selection) I may have done other things also, but this lets me use f1, f2, f3, and f4 = for these functions. Also, the clipboard is properly imported and exported = with other X apps. I'm also using Chicken VNC on Mac OS X, and it also prop= erly imports/exports the clipboard with MacOS X, although Chicken requires = that you do an explicit manual import of the MacOS X clipboard each time it= changes, but at least it's all working. Now on to the clipboard and emacs. I've tried. I've googled a lot. I've exp= erimented a lot. But I still have a lot of problems. I modified the above k= ey mapping used in xemacs to the following in emacs: (define-key global-map [(f1)] 'undo) (define-key global-map [(f2)] 'delete-region) (define-key global-map [(f3)] 'kill-ring-save) (define-key global-map [(f4)] 'yank) These work within emacs, but will not import or export the clipboard. I've = also try using the following: (global-set-key [\C-z] 'undo) (global-set-key [\C-x] 'clipboard-kill-region) (global-set-key [\C-c] 'clipboard-kill-ring-save) (global-set-key [\C-v] 'clipboard-yank) They seem to end up functioning the same as the f key equivalents. Still no= import or export of the clipboards. Also added the following to no avail: (setq x-select-enable-clipboard t) The only way I seem to be able to import the clipboard is if I first paste = into an xemacs buffer, and then use the xemacs Copy menu item (not f4, whic= h won't work), and then switch to emacs and use the emacs Paste menu item (= not f4 or C-v, which won't work). f4 and C-v work after using the Paste men= u item however. For exporting the clipboard from emacs, I'm forced to paste= into a clipboard file that I save and open from xemacs so I can then copy = the contents to the clipboard. So this is getting very frustrating since I interact with emacs sessions us= ing the clipboard a lot, and the above workaround just isn't going to cut i= t. There's got to be a better solution. I'm hoping someone here can help. thanks.