From unknown Sat Jun 21 10:40:50 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6801 <6801@debbugs.gnu.org> To: bug#6801 <6801@debbugs.gnu.org> Subject: Status: 24.0.50; M-w C-y gives an error under OS X Reply-To: bug#6801 <6801@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:40:50 +0000 retitle 6801 24.0.50; M-w C-y gives an error under OS X reassign 6801 emacs,ns submitter 6801 Joel Holveck severity 6801 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 05 11:18:24 2010 Received: (at submit) by debbugs.gnu.org; 5 Aug 2010 15:18:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh2D9-0003Bz-HX for submit@debbugs.gnu.org; Thu, 05 Aug 2010 11:18:24 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh29A-00039l-1y for submit@debbugs.gnu.org; Thu, 05 Aug 2010 11:14:16 -0400 Received: from lists.gnu.org ([199.232.76.165]:45989) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oh29f-0002L0-8o for submit@debbugs.gnu.org; Thu, 05 Aug 2010 11:14:47 -0400 Received: from [140.186.70.92] (port=44573 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oh29d-0000XE-KD for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 11:14:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,GAPPY_SUBJECT, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oh29c-0006gM-Dj for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 11:14:45 -0400 Received: from thor.piquan.org ([64.81.48.72]:60864) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oh29c-0006ei-4N for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 11:14:44 -0400 Received: from frigg.pvt.piquan.org (frigg.pvt.piquan.org [192.168.13.22]) (authenticated bits=0) by thor.piquan.org (8.14.4/8.14.4) with ESMTP id o75AjTla051015 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 5 Aug 2010 03:45:30 -0700 (PDT) (envelope-from joelh@piquan.org) From: Joel Holveck Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 5 Aug 2010 03:45:29 -0700 Subject: 24.0.50; M-w C-y gives an error under OS X To: bug-gnu-emacs@gnu.org Message-Id: <9E10309C-9179-44F4-A27E-A42A51AF229B@piquan.org> Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 05 Aug 2010 11:18:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.6 (-----) When using OS X, if I press M-w then C-y, then an error is raised: Quit: "pasteboard doesn't contain valid data" (Cause and workaround follows recipe.) The recipe is what's in the "Recent input" section below, but here it is for convenience. =46rom emacs -Q, type foo. Select it using C-a C-SPC C-n. Kill it using C-w. Yank using C-y. At this point, instead of yanking, Emacs raises the error: Quit: "pasteboard doesn't contain valid data" =46rom what I can tell, Emacs calls deactivate-mark during the C-w process. When the mark is deactivated (as part of deactivate-mark), if select-active-regions is set, then Emacs calls x-own-selection-internal (the one defined in nsselect.m). At some point, it seems that x-own-selection-internal clears the pasteboard instead of pasting it, even though it's being called with reasonable arguments. Note that running (x-own-selection-internal 'PRIMARY "foo") also (according to Pasteboard Inspector) clears out the pasteboard, instead of setting it to hold "foo". The other mechanism used to access the pasteboard, ns-store-cut-buffer-internal, seems to work fine. (That's what C-k, for example, uses. C-w and family also will call ns-store-cut-buffer-internal, but then call x-own-selection-internal (when the mark is deactivated). My workaround was to add to .emacs.el: (when (eq window-system 'ns) (setq select-active-regions nil)) And yes, I know I'm running a development version of Emacs. Is it reasonable to use report-emacs-bug for this? In GNU Emacs 24.0.50.1 (x86_64-apple-darwin10.4.0, NS = apple-appkit-1038.32) of 2010-08-04 on frigg.piquan.org Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: f o o C-a C-SPC C-n C-w C-y ESC x r e p o r t - e m=20 a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set byte-code: End of buffer Mark set Quit: "pasteboard doesn't contain valid data" Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 21:38:53 2010 Received: (at 6801) by debbugs.gnu.org; 9 Aug 2010 01:38:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiHKH-0000bn-9K for submit@debbugs.gnu.org; Sun, 08 Aug 2010 21:38:53 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiHKF-0000bh-Ov for 6801@debbugs.gnu.org; Sun, 08 Aug 2010 21:38:52 -0400 Received: from [87.198.55.108] (87-198-55-108.ptr.magnet.ie [87.198.55.108]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id B1D4E683D1; Mon, 9 Aug 2010 02:39:27 +0100 (IST) Message-ID: <4C5F5C51.1030406@harpegolden.net> Date: Mon, 09 Aug 2010 02:39:29 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 To: Joel Holveck Subject: Re: bug#6801: 24.0.50; M-w C-y gives an error under OS X References: <9E10309C-9179-44F4-A27E-A42A51AF229B@piquan.org> In-Reply-To: <9E10309C-9179-44F4-A27E-A42A51AF229B@piquan.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 6801 Cc: Chong Yidong , 6801@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) On 05/08/10 11:45, Joel Holveck wrote: > When using OS X, if I press M-w then C-y, then an error is raised: > Quit: "pasteboard doesn't contain valid data" > (Cause and workaround follows recipe.) > FWIW, there are known issues in this area (and possibly unknown ones to of course) on ns arising from recent changes to defaults for selection handling. If you are okay with rebuilding emacs, please try the ns-clipboard -pboard_r2.diff patch under bug #6677 that you'll find at the link below. It won't solve all problems in the area in ns emacs but it should fix your immediate problem as reported, I think (actually, I know it does on my system, though I'm testing in gnustep): http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6677#29 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 12 18:36:43 2010 Received: (at control) by debbugs.gnu.org; 12 Aug 2010 22:36:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjgO8-0002Ag-G2 for submit@debbugs.gnu.org; Thu, 12 Aug 2010 18:36:43 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjgO6-0002Ab-D1 for control@debbugs.gnu.org; Thu, 12 Aug 2010 18:36:38 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OjgOt-0001Ev-KI; Thu, 12 Aug 2010 18:37:27 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19556.30631.473829.201011@fencepost.gnu.org> Date: Thu, 12 Aug 2010 18:37:27 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: magenta X-Ran: @D7rVTF*)Z$5jv(;Yk&7!pd!;3vUZ!++zSU]W{I*V%c1&"Ms#I3.U''cL,BOMW\Cr8rpOG X-Debbugs-No-Ack: yes X-Spam-Score: -5.1 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) merge 6778 6783 merge 6680 6752 6801 close 6813 merge 6818 6840 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 23 18:51:48 2010 Received: (at control) by debbugs.gnu.org; 23 Aug 2010 22:51:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Onfro-0004UH-PR for submit@debbugs.gnu.org; Mon, 23 Aug 2010 18:51:48 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Onfro-0004U8-BB for control@debbugs.gnu.org; Mon, 23 Aug 2010 18:51:48 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Onft4-0001yd-Uv; Mon, 23 Aug 2010 18:53:06 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19570.64466.783833.399807@fencepost.gnu.org> Date: Mon, 23 Aug 2010 18:53:06 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: cyan X-Ran: LNvX4mZpA\rRjRv'mr945PKN1k]n,d_GA4f'IjwaF.lL>{{L^v(BTGGUVp_ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) forcemerge 6677 6680 From unknown Sat Jun 21 10:40:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 21 Sep 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator