From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jieyan Fan Newsgroups: gmane.emacs.help Subject: Need help with sharing clipboard between emacs and other applications Date: Wed, 24 Mar 2010 22:19:22 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="B_3352313969_5540782" X-Trace: dough.gmane.org 1269613569 540 80.91.229.12 (26 Mar 2010 14:26:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Mar 2010 14:26:09 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 26 15:26:05 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NvATs-0003Bs-It for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Mar 2010 15:26:05 +0100 Original-Received: from localhost ([127.0.0.1]:38632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvATp-0007Si-Fz for geh-help-gnu-emacs@m.gmane.org; Fri, 26 Mar 2010 10:25:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NufTl-0003IL-BM for help-gnu-emacs@gnu.org; Thu, 25 Mar 2010 01:19:37 -0400 Original-Received: from [140.186.70.92] (port=35699 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NufTi-0003ID-Fe for help-gnu-emacs@gnu.org; Thu, 25 Mar 2010 01:19:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NufTf-0007ZO-Gh for help-gnu-emacs@gnu.org; Thu, 25 Mar 2010 01:19:34 -0400 Original-Received: from mail-yw0-f191.google.com ([209.85.211.191]:59202) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NufTf-0007ZC-Dy for help-gnu-emacs@gnu.org; Thu, 25 Mar 2010 01:19:31 -0400 Original-Received: by mail-yw0-f191.google.com with SMTP id 29so6579363ywh.14 for ; Wed, 24 Mar 2010 22:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:user-agent:date:subject:from :to:message-id:thread-topic:thread-index:mime-version:content-type; bh=LGMGnSKv3n3GNhOvvbWd0yuyb8f9Sg+ItS5aZrAmTgk=; b=dGlvibmHLnWNscXEf2rbg+4M//9giovOCndMdQxNGIYBgZaTpuHwNCr5l9DxgLo7+7 OIrIPilpiTn6rSQvCUqeZumjrb/o/Uo+0PtyOYAws42kPv7BntHrbNrCG82TlVzmHzYk fEvs8ZhsZj3UaAcj1W05Wcfd9ISKr7ujuMMgU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:mime-version:content-type; b=MUpXYLLXDvKetZyqg1fIkppQd1DrQVJTKcMbig246DuIeLc/oi+//sDI1mMQbLFRET uzaYkC7B1qhwB+M6mcTuPBi4TCpMXQNsATvpXFCAoEsnkIKKU/7ADqU5q8QW4jkfS26Z FdQgINi3TdxLpFOSC0sbuyWoVRSch7Rm/PzCk= Original-Received: by 10.91.164.27 with SMTP id r27mr1019168ago.20.1269494370617; Wed, 24 Mar 2010 22:19:30 -0700 (PDT) Original-Received: from [192.168.100.101] (nat-dip6.cfw-a-gci.corp.yahoo.com [209.131.62.115]) by mx.google.com with ESMTPS id 23sm248951yxe.56.2010.03.24.22.19.28 (version=SSLv3 cipher=RC4-MD5); Wed, 24 Mar 2010 22:19:29 -0700 (PDT) User-Agent: Microsoft-Entourage/12.24.0.100205 Thread-Topic: Need help with sharing clipboard between emacs and other applications Thread-Index: AcrL2rooDeIMxbwmw0mg6127RRLWIA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 26 Mar 2010 10:25:14 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72483 Archived-At: > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3352313969_5540782 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Hi, I use a mac to ssh to a RHEL 5.4 x86_64 system, from where I start emacs, and have the x-window forwarded to my mac screen. My emacs version is 23.1.1. I was trying to copy/paste between the emacs and other mac native applications. But it didn=B9t work. I tried all the approaches I found online= . Can someone help me? Really appreciate. Following is my .emacs file. I do set the x-select-enable-clipboard, interprogram-paste-function, and interprogram-cut-function. (custom-set-variables '(auto-fill-mode 1) '(c-default-style (quote ((c-mode . "gnu") (c++-mode . "gnu") (java-mode . "java") (other . "gnu")))) '(c-doc-comment-style (quote ((c-mode . javadoc) (c++-mode . javadoc) (java-mode . javadoc) (pike-mode . autodoc)))) '(case-fold-search t) '(column-number-mode t) '(compile-command "gmake") '(current-language-environment "English") '(delete-selection-mode t) '(font-lock-auto-fontify t) '(font-lock-mode-maximum-decoration t) '(frame-title-format "%b" t) '(indent-tabs-mode nil) '(line-number-mode t) '(load-path (cons "~/.emacs.d/" load-path) t) '(normal-erase-is-backspace t) '(require-final-newline t) '(show-paren-mode t nil (paren)) '(visible-bell t) '(x-select-enable-clipboard t) '(x-select-enable-primary nil) '(interprogram-paste-function 'x-cut-buffer-or-selection-value) '(interprogram-cut-function 'x-select-text) ) ;;; these will probably be already set to these values, leave them that way if so! (global-set-key [button4] 'scroll-down) (global-set-key [button5] 'scroll-up) (global-set-key "\eg" 'goto-line) (cua-mode t) (setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands (transient-mark-mode 1) ;; No region when it is not highlighted (setq cua-keep-region-after-copy t) ;; Standard Windows behaviour ;;; display the current time (display-time) Jieyan --B_3352313969_5540782 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Need help with sharing clipboard between emacs and other application= s Hi,

I use a mac to ssh to a RHEL 5.4 x86_64 system, from where I start emacs, a= nd have the x-window forwarded to my mac screen. My emacs version is 23.1.1.=

I was trying to copy/paste between the emacs and other mac native applicati= ons. But it didn’t work. I tried all the approaches I found online.
Can someone help me? Really appreciate.

Following is my .emacs file. I do set the x-select-enable-clipboard, interp= rogram-paste-function, and interprogram-cut-function.

(custom-set-variables
 '(auto-fill-mode 1)
 '(c-default-style (quote ((c-mode . "gnu") (c++-mode . &quo= t;gnu") (java-mode . "java") (other . "gnu"))))
 '(c-doc-comment-style (quote ((c-mode . javadoc) (c++-mode . javadoc)= (java-mode . javadoc) (pike-mode . autodoc))))
 '(case-fold-search t)
 '(column-number-mode t)
 '(compile-command "gmake")
 '(current-language-environment "English")
 '(delete-selection-mode t)
 '(font-lock-auto-fontify t)
 '(font-lock-mode-maximum-decoration t)
 '(frame-title-format "%b" t)
 '(indent-tabs-mode nil)
 '(line-number-mode t)
 '(load-path (cons "~/.emacs.d/" load-path) t)
 '(normal-erase-is-backspace t)
 '(require-final-newline t)
 '(show-paren-mode t nil (paren))
 '(visible-bell t)
 '(x-select-enable-clipboard t)
 '(x-select-enable-primary nil)
 '(interprogram-paste-function 'x-cut-buffer-or-selection-value)
 '(interprogram-cut-function 'x-select-text)
)


;;; these will probably be already set to these values, leave them that way= if so!

(global-set-key [button4] 'scroll-down)
(global-set-key [button5] 'scroll-up)

(global-set-key "\eg" 'goto-line)

(cua-mode t)
(setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle comma= nds
(transient-mark-mode 1) ;; No region when it is not highlighted
(setq cua-keep-region-after-copy t) ;; Standard Windows behaviour

;;; display the current time
(display-time)

Jieyan
--B_3352313969_5540782--