GNU bug report logs -
#12183
24.1.50; Unrecognized pasteboard formats quit yank in Emacs.app
Previous Next
Reported by: "Jason T. Miller" <jtm <at> jasomill.at>
Date: Sat, 11 Aug 2012 22:22:02 UTC
Severity: normal
Merged with 4871
Found in version 24.1.50
Done: Jan Djärv <jan.h.d <at> swipnet.se>
Bug is archived. No further changes may be made.
Full log
Message #12 received at 12183-done <at> debbugs.gnu.org (full text, mbox):
Hello.
11 aug 2012 kl. 22:02 skrev Jason T. Miller <jtm <at> jasomill.at>:
> 1. Start Emacs.app in OS X (or, presumably, GNUstep). On OS X,
> $PATH_TO_EMACS_APP/Contents/MacOS/Emacs -Q
> is fine.
>
> 2. Load something in the pasteboard that lacks a plain text representation*.
>
> 3. Yank. Emacs aborts the yank with the quit message "empty or unsupported
> pasteboard type".
>
> From my perspective at least, this behavior is never useful, frequently annoying,
> and particularly painful when `save-interprogram-paste-before-kill' is enabled.
> My preferred solution is for Emacs to simply ignore unsupported pasteboard data.
> For example, replacing
>
> (defun ns-get-pasteboard ()
> "Returns the value of the pasteboard."
> (ns-get-selection-internal 'CLIPBOARD))
>
> with
>
> (defun ns-get-pasteboard ()
> "Returns the value of the pasteboard, or nil for unsupported formats."
> (condition-case nil
> (ns-get-selection-internal 'CLIPBOARD)
> (quit nil)))
>
> has this effect, while retaining the old behavior in the Objective-C
> implementation for applications that require special handling for empty,
> unrecognized, and invalid pasteboard data.
I checked in your suggestion in to the trunk. Emacs beeps too much, I don't think it should beep when scrolling hits top or bottom for example.
Thanks,
Jan D.
This bug report was last modified 12 years and 262 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.