GNU bug report logs -
#15628
24.3.50; ns-get-selection-internal quits on unsupported pasteboard content on OS X
Previous Next
Reported by: Sebastian Wiesner <lunaryorn <at> gmail.com>
Date: Wed, 16 Oct 2013 07:13:02 UTC
Severity: normal
Found in version 24.3.50
Done: Jan Djärv <jan.h.d <at> swipnet.se>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15628 in the body.
You can then email your comments to 15628 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15628
; Package
emacs
.
(Wed, 16 Oct 2013 07:13:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sebastian Wiesner <lunaryorn <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 16 Oct 2013 07:13:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
On OS X 10.8, "ns-get-selection-internal" calls quit on unsupported
pasteboard content, such as images.
This behaviour breaks all yanking and killing. The quit signal
interrupts "kill-new" and "current-kill" while these functions try to
retrieve the pasteboard content via "ns-get-pasteboard" (called by
"x-selection-value", which is the default "interprogram-paste-function"
on OS X), which internally calls "ns-get-selection-internal".
Hence, "kill-new" fails to save the given kill to the kill ring, and
"current-kill" fails to pop the latest kill from the kill ring.
To reproduce, start Emacs, set "save-interprogram-paste-before-kill" to
t, copy an image (e.g. from an iPhoto Library), and then try to yank or
kill. For the latter, the following stacktrace is given with
"debug-on-quit":
Debugger entered--Lisp error: (quit "empty or unsupported pasteboard type")
ns-get-selection-internal(CLIPBOARD)
ns-get-pasteboard()
x-selection-value()
kill-new(#("elisp-slime-nav" 0 15 (fontified t face font-lock-constant-face)))
copy-region-as-kill(39166 39181)
kill-ring-save(39166 39181)
#<subr call-interactively>(kill-ring-save nil nil)
ad-Advice-call-interactively(#<subr call-interactively> kill-ring-save nil nil)
apply(ad-Advice-call-interactively #<subr call-interactively> (kill-ring-save nil nil))
call-interactively(kill-ring-save nil nil)
command-execute(kill-ring-save)
This unfortunate interaction makes "save-interprogram-paste-before-kill"
nearly useless on OS X, because the user always needs to inspect the
pasteboard manually and remove content unsupported by Emacs before being
able to reliably kill and yank.
I think "ns-get-selection-interal" should simply ignore unknown
pasteboard content, or at least respect a user option to ignore unknown
pasteboard content. This unknown content is of no use to Emacs anyway,
so there is no point in even trying to put it onto the kill ring.
Reply sent
to
Jan Djärv <jan.h.d <at> swipnet.se>
:
You have taken responsibility.
(Wed, 16 Oct 2013 16:57:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sebastian Wiesner <lunaryorn <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 16 Oct 2013 16:57:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 15628-done <at> debbugs.gnu.org (full text, mbox):
Hello.
I've removed the FQuit in trunk.
Jan D.
16 okt 2013 kl. 09:11 skrev Sebastian Wiesner <lunaryorn <at> gmail.com>:
>
> On OS X 10.8, "ns-get-selection-internal" calls quit on unsupported
> pasteboard content, such as images.
>
> This behaviour breaks all yanking and killing. The quit signal
> interrupts "kill-new" and "current-kill" while these functions try to
> retrieve the pasteboard content via "ns-get-pasteboard" (called by
> "x-selection-value", which is the default "interprogram-paste-function"
> on OS X), which internally calls "ns-get-selection-internal".
>
> Hence, "kill-new" fails to save the given kill to the kill ring, and
> "current-kill" fails to pop the latest kill from the kill ring.
>
> To reproduce, start Emacs, set "save-interprogram-paste-before-kill" to
> t, copy an image (e.g. from an iPhoto Library), and then try to yank or
> kill. For the latter, the following stacktrace is given with
> "debug-on-quit":
>
> Debugger entered--Lisp error: (quit "empty or unsupported pasteboard type")
> ns-get-selection-internal(CLIPBOARD)
> ns-get-pasteboard()
> x-selection-value()
> kill-new(#("elisp-slime-nav" 0 15 (fontified t face font-lock-constant-face)))
> copy-region-as-kill(39166 39181)
> kill-ring-save(39166 39181)
> #<subr call-interactively>(kill-ring-save nil nil)
> ad-Advice-call-interactively(#<subr call-interactively> kill-ring-save nil nil)
> apply(ad-Advice-call-interactively #<subr call-interactively> (kill-ring-save nil nil))
> call-interactively(kill-ring-save nil nil)
> command-execute(kill-ring-save)
>
> This unfortunate interaction makes "save-interprogram-paste-before-kill"
> nearly useless on OS X, because the user always needs to inspect the
> pasteboard manually and remove content unsupported by Emacs before being
> able to reliably kill and yank.
>
> I think "ns-get-selection-interal" should simply ignore unknown
> pasteboard content, or at least respect a user option to ignore unknown
> pasteboard content. This unknown content is of no use to Emacs anyway,
> so there is no point in even trying to put it onto the kill ring.
>
>
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#15628
; Package
emacs,ns
.
(Sun, 20 Oct 2013 12:04:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 15628-done <at> debbugs.gnu.org (full text, mbox):
2013/10/16 Jan Djärv <jan.h.d <at> swipnet.se>:
> Hello.
>
> I've removed the FQuit in trunk.
Great, thank you!
> Jan D.
>
> 16 okt 2013 kl. 09:11 skrev Sebastian Wiesner <lunaryorn <at> gmail.com>:
>
>>
>> On OS X 10.8, "ns-get-selection-internal" calls quit on unsupported
>> pasteboard content, such as images.
>>
>> This behaviour breaks all yanking and killing. The quit signal
>> interrupts "kill-new" and "current-kill" while these functions try to
>> retrieve the pasteboard content via "ns-get-pasteboard" (called by
>> "x-selection-value", which is the default "interprogram-paste-function"
>> on OS X), which internally calls "ns-get-selection-internal".
>>
>> Hence, "kill-new" fails to save the given kill to the kill ring, and
>> "current-kill" fails to pop the latest kill from the kill ring.
>>
>> To reproduce, start Emacs, set "save-interprogram-paste-before-kill" to
>> t, copy an image (e.g. from an iPhoto Library), and then try to yank or
>> kill. For the latter, the following stacktrace is given with
>> "debug-on-quit":
>>
>> Debugger entered--Lisp error: (quit "empty or unsupported pasteboard type")
>> ns-get-selection-internal(CLIPBOARD)
>> ns-get-pasteboard()
>> x-selection-value()
>> kill-new(#("elisp-slime-nav" 0 15 (fontified t face font-lock-constant-face)))
>> copy-region-as-kill(39166 39181)
>> kill-ring-save(39166 39181)
>> #<subr call-interactively>(kill-ring-save nil nil)
>> ad-Advice-call-interactively(#<subr call-interactively> kill-ring-save nil nil)
>> apply(ad-Advice-call-interactively #<subr call-interactively> (kill-ring-save nil nil))
>> call-interactively(kill-ring-save nil nil)
>> command-execute(kill-ring-save)
>>
>> This unfortunate interaction makes "save-interprogram-paste-before-kill"
>> nearly useless on OS X, because the user always needs to inspect the
>> pasteboard manually and remove content unsupported by Emacs before being
>> able to reliably kill and yank.
>>
>> I think "ns-get-selection-interal" should simply ignore unknown
>> pasteboard content, or at least respect a user option to ignore unknown
>> pasteboard content. This unknown content is of no use to Emacs anyway,
>> so there is no point in even trying to put it onto the kill ring.
>>
>>
>
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 17 Nov 2013 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 183 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.