From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: Re: Pasting from X clipboard sometimes uses different font Date: Tue, 29 Jan 2008 21:29:06 +0000 Message-ID: <479F9AA2.1080404@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201642183 28471 80.91.229.12 (29 Jan 2008 21:29:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Jan 2008 21:29:43 +0000 (UTC) Cc: Emacs Bugs To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 29 22:30:04 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 1JJy1r-0008FQ-NC for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2008 22:30:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJy1Q-00011q-Nj for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Jan 2008 16:29:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJy1L-0000za-PO for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2008 16:29:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJy1K-0000y9-Cn for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2008 16:29:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJy1J-0000xp-W4 for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2008 16:29:30 -0500 Original-Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJy1K-00013U-19 for bug-gnu-emacs@gnu.org; Tue, 29 Jan 2008 16:29:30 -0500 Original-X-Trace: 19718890/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAKYpn0dTQxds/2dsb2JhbAAIr0g X-IP-Direction: OUT Original-Received: from i-83-67-23-108.freedom2surf.net (HELO [127.0.0.1]) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Jan 2008 21:29:28 +0000 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:17427 Archived-At: Reuben Thomas wrote: >> For example, with U+2026 HORIZONTAL ELLIPSIS. If I type one in an >> Emacs buffer, I get the character from my normal font: >> >> *font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*-* >> >> whereas if I have one on the X clipboard and paste it (e.g. >> button-2), then I get a wider character, but if I go into hexl-mode I >> can see it's the same character code, though annoyingly it's not on >> the baseline (so there's also a bug in whatever font is being used, >> but I'm not sure which font is being used). Rather than going into hexl-mode, try pressing C-u C-x = on both characters and compare the results. I suspect that one of these is coming from the mule-unicode-0200-3fff character set, and the other from some other character set so uses a different font. If you have a better matched iso10646-1 font on your system, you can define a fontset that explicitly includes that font for the mule-unicode-* charsets. See the section "Defining fontsets" in the Emacs manual for more details.