all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error message: 'Quit: "empty or unsupported pasteboard type"
@ 2014-06-13 11:46 Jonathon McKitrick
  2014-06-13 13:27 ` John Mastro
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jonathon McKitrick @ 2014-06-13 11:46 UTC (permalink / raw)
  To: help-gnu-emacs

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 recently installed better-defaults, which I have since disabled.  I've never seen this error before, and have been running emacs 24.3 on OSX with no issues before this.


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Error message: 'Quit: "empty or unsupported pasteboard type"
@ 2014-06-14 17:18 Jon Oddie
  2014-06-15 15:06 ` Michael Heerdegen
  0 siblings, 1 reply; 9+ messages in thread
From: Jon Oddie @ 2014-06-14 17:18 UTC (permalink / raw)
  To: help-gnu-emacs

 
> 
> 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?


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-19 13:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13 11:46 Error message: 'Quit: "empty or unsupported pasteboard type" 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
  -- strict thread matches above, loose matches on Subject: below --
2014-06-14 17:18 Jon Oddie
2014-06-15 15:06 ` Michael Heerdegen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.