From: Jon Oddie <jonxfield@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Error message: 'Quit: "empty or unsupported pasteboard type"
Date: Sat, 14 Jun 2014 10:18:26 -0700 [thread overview]
Message-ID: <7DF16C0B-950B-4FE0-B1FF-E60AD3D6F6E2@gmail.com> (raw)
>
> Emacs is suddenly complaining when I kill a line in any mode. Not
> only does it complain when killing the line, but it will not yank
> after the line is killed.
I have seen the same (or a very similar) problem on OS X too, after
setting `save-interprogram-paste-before-kill' to `t'.
It happens when nothing else has used the system clipboard yet, so I
generally saw it when Emacs is the first program used after login.
The issue seems to be that `ns-get-pasteboard', or rather the C subr
`ns-get-selection-internal' which it calls, raises a quit condition
instead of returning nil under these circumstances. I don't know if
this is by design, but I have the following snippet in my init.el as a
workaround. It converts the quit condition into a nil return value:
(when (eq window-system 'ns)
(defadvice ns-get-pasteboard (around hack-empty-pasteboard compile activate)
(condition-case err
ad-do-it
(quit (message "%s" (cadr err))
nil))))
Should I raise a proper bug report for this?
next reply other threads:[~2014-06-14 17:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-14 17:18 Jon Oddie [this message]
2014-06-15 15:06 ` Error message: 'Quit: "empty or unsupported pasteboard type" Michael Heerdegen
-- strict thread matches above, loose matches on Subject: below --
2014-06-13 11:46 Jonathon McKitrick
2014-06-13 13:27 ` John Mastro
2014-06-13 13:37 ` Stefan Monnier
2014-06-19 13:27 ` Sebastian Wiesner
2014-06-13 17:17 ` Michael Heerdegen
[not found] ` <mailman.3556.1402666066.1147.help-gnu-emacs@gnu.org>
2014-06-19 12:31 ` Jonathon McKitrick
2014-06-19 13:31 ` Sebastian Wiesner
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=7DF16C0B-950B-4FE0-B1FF-E60AD3D6F6E2@gmail.com \
--to=jonxfield@gmail.com \
--cc=help-gnu-emacs@gnu.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.
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).