From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.bugs Subject: bug#13790: Cannot paste with C-y into Homebrew emacs v24.2.1 Date: Wed, 13 Mar 2013 09:18:08 -0700 Message-ID: References: <988801E5-2282-4367-A46E-7A05A63069AD@swipnet.se> <1790161F-1C74-43D3-AFEE-40EAF0B2AFBB@swipnet.se> <83obew1bub.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1363191558 14804 80.91.229.3 (13 Mar 2013 16:19:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2013 16:19:18 +0000 (UTC) Cc: 13790@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 13 17:19:40 2013 Return-path: Envelope-to: geb-bug-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 1UFoOt-0001iT-5p for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 17:19:35 +0100 Original-Received: from localhost ([::1]:43281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFoOW-0006dg-Nm for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Mar 2013 12:19:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFoOL-0006aK-3i for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 12:19:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFoOH-0006PM-TK for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 12:19:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFoOH-0006PH-QE for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 12:18:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UFoPL-0002gW-9L for bug-gnu-emacs@gnu.org; Wed, 13 Mar 2013 12:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Josh Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Mar 2013 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13790 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: moreinfo unreproducible Original-Received: via spool by 13790-submit@debbugs.gnu.org id=B13790.136319160110308 (code B ref 13790); Wed, 13 Mar 2013 16:20:02 +0000 Original-Received: (at 13790) by debbugs.gnu.org; 13 Mar 2013 16:20:01 +0000 Original-Received: from localhost ([127.0.0.1]:51617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFoPC-0002g6-NW for submit@debbugs.gnu.org; Wed, 13 Mar 2013 12:19:59 -0400 Original-Received: from mail-qe0-f49.google.com ([209.85.128.49]:43362) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFoP9-0002fs-3i for 13790@debbugs.gnu.org; Wed, 13 Mar 2013 12:19:52 -0400 Original-Received: by mail-qe0-f49.google.com with SMTP id 1so698514qec.8 for <13790@debbugs.gnu.org>; Wed, 13 Mar 2013 09:18:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=xVoPiwLOAph+jGgy/YHyP8cqUeTf3x/PHzMvaFjAurQ=; b=S3YEvUZznAcsubtfeuf9CJOwfhcYObnDy0c/1A9BqINlknTsto08XtXwi76jp9DfqQ RD6+89KZbmXdHiRl8qwai7DQNRKFjAHov1YqsvCGOR+Tt7CToPJnuHv4Rhb2ZBiisBkX KzD/5IDwo+U4CMs0xVhs+qYfuA25jCUx3oFFHdVA5DscK43g/mFwyVV/kRaghY3t5nJX 1EIFEnlx0m/s1yCVJ6ls4z5Yx8VdIK/KGGWN3bIRPLJPu5MGsotAEvegqRX62smhyB4i tYc1KP6iSeLdNjfHpHedrDCefz1kywV01mr8XPSCj4DDkWdFmqfOIEnbyRcsCj1AD5+g Cm9g== X-Received: by 10.229.77.35 with SMTP id e35mr2817127qck.80.1363191518821; Wed, 13 Mar 2013 09:18:38 -0700 (PDT) Original-Received: by 10.49.94.209 with HTTP; Wed, 13 Mar 2013 09:18:08 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: bDc6hyHJMR8Btz4QHG6hmK9qUCg X-Gm-Message-State: ALoCoQlRKHwjTP/dgbo8wawx66/tXwiPzH/rHZ/g1nplixLOjf3jNfitVQA5GA8xGPpSSG5fI5M0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72419 Archived-At: On Fri, Mar 8, 2013 at 5:42 PM, Stefan Monnier wrote: >> By default, yes, but this is the precise reason >> interprogram-cut-function and interprogram-paste-function exist. >> pbcopy and pbpaste are the OS X equivalents of xclip, and the snippet >> I pasted provides an interface to them like the interface to xclip >> provided by http://www.emacswiki.org/emacs/xclip.el . Many users are >> unaware of the existence of these variables, which results in >> confusion and the filing of bugs such as this. Users would be more >> likely to discover them if the error messages complaining about an >> empty kill ring in -nw sessions were to mention their existence. > > Indeed. Maybe your patch should be merged with xclip.el? I'd be happy to contribute it, though it's merely a slight modification of a snippet I found on the web years ago, most probably http://web.archive.org/web/20071128072321/http://blog.lathi.net/articles/2007/11/07/sharing-the-mac-clipboard-with-emacs . Is this code trivial enough that we needn't be concerned about copyright issues? Also, I see that xclip.el resides in the GNU ELPA repository. Since it's likely that many people using Emacs in -nw mode would like to integrate Emacs kill and yank operations with their operating systems' clipboards, I wonder if it would be worthwhile for some or all of xclip.el's functionality to move into the core. We could do this by including a few simple wrapper functions such as the above to provide interfaces to xclip, pbcopy/pbpaste, and whatever Windows equivalent may exist, and mentioning those functions' existence in interprogram-cut-function's and interprogram-paste-function's docstrings.