From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reuben Thomas Newsgroups: gmane.emacs.bugs Subject: Re: Pasting from X clipboard sometimes uses different font Date: Tue, 29 Jan 2008 21:35:22 +0000 (GMT) Message-ID: References: <479F9AA2.1080404@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1201642569 29877 80.91.229.12 (29 Jan 2008 21:36:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jan 2008 21:36:09 +0000 (UTC) Cc: Emacs Bugs To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 29 22:36:30 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JJy7z-00028o-9x for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2008 22:36:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJy7Y-0003Gd-6U for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2008 16:35:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJy79-00038k-CT for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2008 16:35:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJy77-00037g-Jw for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2008 16:35:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJy77-00037c-Em for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2008 16:35:29 -0500 Original-Received: from pelican.sc3d.org ([216.184.201.86]) by monty-python.gnu.org with esmtps (SSL 3.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JJy73-0002GN-Tm; Tue, 29 Jan 2008 16:35:26 -0500 DKIM-Signature: a=rsa-sha1; t=1201642525; x=1202247325; s=key1024; d=sc3d.org; c=relaxed/relaxed; q=dns; h=From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:References; b=S6Ijt5LiomrDtR8wzTvdMFVGSecZluITs7DCtOitTkzkDLTj+vZlb5vX3BOX0HUaVK7EIynpvzVDCtFPRrF8TdrJ46hmciEycmNwGbnJEOz7WnmWI6IjOB6mROTpNfeW/vuvkXZ7fNkWlF0/zdQ3jut8D2e+ZWsInu1v8e2nHOs= Original-Received: from drom (cpc1-popl1-0-0-cust343.popl.cable.ntl.com [81.106.81.88]) by pelican.sc3d.org (pf ESMTP spamd IP-based SPAM blocker) with ASMTP (SSL) id JWM28125; Tue, 29 Jan 2008 16:35:25 -0500 X-X-Sender: rrt@localhost.localdomain In-Reply-To: <479F9AA2.1080404@gnu.org> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17428 Archived-At: On Tue, 29 Jan 2008, Jason Rumney wrote: > Rather than going into hexl-mode, try pressing C-u C-x = on both characters > and compare the results. Thanks, this gives me the difference. The one I paste is: character: … (53444, #o150304, #xd0c4, U+2026) charset: japanese-jisx0208 (JISX0208.1983/1990 Japanese Kanji: ISO-IR-87.) code point: #x21 #x44 syntax: _ which means: symbol category: j:Japanese |:While filling, we can break a line at this character. buffer code: #x92 #xA1 #xC4 file code: #xE2 #x80 #xA6 (encoded by coding system mule-utf-8-unix) display: by this font (glyph code) -Misc-Fixed-Medium-R-Normal--14-130-75-75-C-140-JISX0208.1983-0 (#x2144) There are text properties here: fontified t rear-nonsticky t while the one in the buffer is: character: … (342438, #o1234646, #x539a6, U+2026) charset: mule-unicode-0100-24ff (Unicode characters of the range U+0100..U+24FF.) code point: #x73 #x26 syntax: _ which means: symbol buffer code: #x9C #xF4 #xF3 #xA6 file code: #xE2 #x80 #xA6 (encoded by coding system mule-utf-8-unix) display: by this font (glyph code) -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 (#x2026) There are text properties here: fontified t So the two are the same unicode code point, but Emacs is treating them differently. Why? Also, why does Emacs think the character I pasted is Japanese? -- http://rrt.sc3d.org/ lawyer, n. one paid to make the inexcusable incomprehensible