From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: bug in xselect-convert-to-string Date: Sun, 2 May 2004 14:01:05 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405021901.i42J15x05343@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083524829 30831 80.91.224.253 (2 May 2004 19:07:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 May 2004 19:07:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 02 21:06:53 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKMIf-0000zQ-00 for ; Sun, 02 May 2004 21:06:53 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKMIe-0006bX-00 for ; Sun, 02 May 2004 21:06:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKMHm-000097-Rm for emacs-devel@quimby.gnus.org; Sun, 02 May 2004 15:05:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKMHJ-0008A1-Qx for emacs-devel@gnu.org; Sun, 02 May 2004 15:05:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKMGY-0007a6-I0 for emacs-devel@gnu.org; Sun, 02 May 2004 15:05:14 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKMGX-0007Vh-0B for emacs-devel@gnu.org; Sun, 02 May 2004 15:04:41 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i42J4WTS005569 for ; Sun, 2 May 2004 14:04:32 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i42J15x05343; Sun, 2 May 2004 14:01:05 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22551 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22551 Trying to yank text with read-only properties into say, a gnome terminal, yields an error. The following patch fixes this. It seems like an obvious change to make, but I post the patch before installing, just to make sure that there are no objections. If not, I will install. ===File ~/select-diff======================================= *** select.el.~1.21.~ Tue Sep 2 07:36:12 2003 --- select.el Sun May 2 13:00:26 2004 *************** *** 177,182 **** --- 177,183 ---- (setq coding (coding-system-base coding)) (setq coding 'raw-text)) ;; Suppress producing escape sequences for compositions. + (let ((inhibit-read-only t)) (remove-text-properties 0 (length str) '(composition nil) str) (cond ((eq type 'TEXT) *************** *** 216,222 **** (t (error "Unknow selection type: %S" type)) ! )) (setq next-selection-coding-system nil) (cons type str)))) --- 217,223 ---- (t (error "Unknow selection type: %S" type)) ! ))) (setq next-selection-coding-system nil) (cons type str)))) ============================================================