unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Josh <josh@foxtail.org>
Cc: "13790@debbugs.gnu.org" <13790@debbugs.gnu.org>
Subject: bug#13790: Cannot paste with C-y into Homebrew emacs v24.2.1
Date: Wed, 6 Mar 2013 10:34:26 +0100	[thread overview]
Message-ID: <1790161F-1C74-43D3-AFEE-40EAF0B2AFBB@swipnet.se> (raw)
In-Reply-To: <CANdFEAEn28EyBV_7kw7Fdp701u=KJmHRi-S+uZaqVUVqCxt9=A@mail.gmail.com>

Hello. 

I don't see what you gain by doing this compared to the builtin integration. 
If you remove your code, what does not work wrt copy/paste?

    Jan D. 

6 mar 2013 kl. 00:19 skrev Josh <josh@foxtail.org>:

> On Tue, Mar 5, 2013 at 1:46 PM, Jan Djärv <jan.h.d@swipnet.se> wrote:
>> 5 mar 2013 kl. 21:13 skrev Glenn Morris <rgm@gnu.org>:
>>> Andrew Pennebaker wrote:
>>> 
>>>> I can paste into emacs using Mac OS X's Command+V shortcut, but when I try
>>>> to paste text using the standard C-y command, Emacs says:
>>>> 
>>>> Kill ring is empty
>>> 
>>> Anyone with Mac OS X know whether/how this is supposed to work?
> 
> I use the following to integrate the OS X clipboard into Emacs:
> 
> (setq interprogram-cut-function 'paste-to-osx
>      interprogram-paste-function 'copy-from-osx)
> 
> (defun copy-from-osx ()
>  (let ((coding-system-for-read 'utf-8))
>    (shell-command-to-string "pbpaste")))
> 
> (defun paste-to-osx (text &optional push)
>  (let ((process-connection-type nil))
>    (let ((proc (start-process "pbcopy" "*Messages*" "pbcopy")))
>      (set-process-sentinel proc 'ignore) ;; stifle noise in *Messages*
>      (process-send-string proc text)
>      (process-send-eof proc)))
>  text)





  reply	other threads:[~2013-03-06  9:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-22 22:40 bug#13790: Cannot paste with C-y into Homebrew emacs v24.2.1 Andrew Pennebaker
2013-03-05 20:13 ` Glenn Morris
2013-03-05 21:46   ` Jan Djärv
2013-03-05 23:19     ` Josh
2013-03-06  9:34       ` Jan Djärv [this message]
2013-03-06 15:54         ` Josh
2013-03-06 18:54           ` Jan Djärv
2013-03-06 21:02             ` Eli Zaretskii
2013-03-06 21:49               ` Josh
2013-03-09  1:42                 ` Stefan Monnier
2013-03-13 16:18                   ` Josh
2013-03-13 18:04                     ` Stefan Monnier
2013-04-03 17:07                       ` Josh
2013-04-08 16:24                         ` Stefan Monnier
2013-04-13 16:55                           ` Josh
2024-01-10 11:22 ` Stefan Kangas
2024-06-09 21:03   ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1790161F-1C74-43D3-AFEE-40EAF0B2AFBB@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=13790@debbugs.gnu.org \
    --cc=josh@foxtail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).