From: Josh <josh@foxtail.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 13790@debbugs.gnu.org
Subject: bug#13790: Cannot paste with C-y into Homebrew emacs v24.2.1
Date: Wed, 13 Mar 2013 09:18:08 -0700 [thread overview]
Message-ID: <CANdFEAEUB9bwYWSAMh9Db9F4BQN1HPrnNzEqYuNHi08vfPEFTg@mail.gmail.com> (raw)
In-Reply-To: <jwvzjyd73ig.fsf-monnier+emacs@gnu.org>
On Fri, Mar 8, 2013 at 5:42 PM, Stefan Monnier <monnier@iro.umontreal.ca> 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.
next prev parent reply other threads:[~2013-03-13 16:18 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
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 [this message]
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=CANdFEAEUB9bwYWSAMh9Db9F4BQN1HPrnNzEqYuNHi08vfPEFTg@mail.gmail.com \
--to=josh@foxtail.org \
--cc=13790@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).