From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#15628: 24.3.50; ns-get-selection-internal quits on unsupported pasteboard content on OS X Date: Wed, 16 Oct 2013 18:56:30 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381942638 508 80.91.229.3 (16 Oct 2013 16:57:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Oct 2013 16:57:18 +0000 (UTC) Cc: 15628-done@debbugs.gnu.org To: Sebastian Wiesner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 16 18:57:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VWUPQ-00028f-IL for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Oct 2013 18:57:20 +0200 Original-Received: from localhost ([::1]:48472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWUPQ-0004nq-8u for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Oct 2013 12:57:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWUPG-0004nh-AS for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2013 12:57:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWUP9-0005cm-1O for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2013 12:57:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWUP8-0005cb-UC for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2013 12:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VWUP8-0007VT-Ls for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2013 12:57:02 -0400 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Oct 2013 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15628 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Mail-Followup-To: 15628@debbugs.gnu.org, jan.h.d@swipnet.se, lunaryorn@gmail.com Original-Received: via spool by 15628-done@debbugs.gnu.org id=D15628.138194259928821 (code D ref 15628); Wed, 16 Oct 2013 16:57:02 +0000 Original-Received: (at 15628-done) by debbugs.gnu.org; 16 Oct 2013 16:56:39 +0000 Original-Received: from localhost ([127.0.0.1]:54501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VWUOi-0007Ui-R2 for submit@debbugs.gnu.org; Wed, 16 Oct 2013 12:56:37 -0400 Original-Received: from mail01.bdtv.se ([176.10.222.34]:43243) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VWUOf-0007UV-Fi for 15628-done@debbugs.gnu.org; Wed, 16 Oct 2013 12:56:34 -0400 Original-Received: (qmail 9057 invoked by uid 89); 16 Oct 2013 16:56:31 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 16 Oct 2013 16:56:31 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 633BC1A01EB; Wed, 16 Oct 2013 16:56:31 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1510) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79317 Archived-At: Hello. I've removed the FQuit in trunk. Jan D. 16 okt 2013 kl. 09:11 skrev Sebastian Wiesner : >=20 > On OS X 10.8, "ns-get-selection-internal" calls quit on unsupported > pasteboard content, such as images. >=20 > 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". >=20 > 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. >=20 > 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": >=20 > 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) > #(kill-ring-save nil nil) > ad-Advice-call-interactively(# = kill-ring-save nil nil) > apply(ad-Advice-call-interactively # = (kill-ring-save nil nil)) > call-interactively(kill-ring-save nil nil) > command-execute(kill-ring-save) >=20 > 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. >=20 > 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. >=20 >=20