From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?SmFuIERqw6Rydg==?= Newsgroups: gmane.emacs.devel Subject: Re: Bidirectional text in tooltips Date: Sat, 06 Nov 2010 18:28:58 +0100 Message-ID: <4CD5905A.2040702@swipnet.se> References: <838w16o7xg.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289064554 11263 80.91.229.12 (6 Nov 2010 17:29:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Nov 2010 17:29:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 06 18:29:09 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PEmZh-0004Dw-Di for ged-emacs-devel@m.gmane.org; Sat, 06 Nov 2010 18:29:09 +0100 Original-Received: from localhost ([127.0.0.1]:55024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEmZg-0008K7-Md for ged-emacs-devel@m.gmane.org; Sat, 06 Nov 2010 13:29:08 -0400 Original-Received: from [140.186.70.92] (port=38124 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEmZb-0008G6-QX for emacs-devel@gnu.org; Sat, 06 Nov 2010 13:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEmZa-0003kM-NB for emacs-devel@gnu.org; Sat, 06 Nov 2010 13:29:03 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:39319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEmZY-0003jy-Rk; Sat, 06 Nov 2010 13:29:01 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 13FF6E8A93; Sat, 6 Nov 2010 18:29:00 +0100 (CET) X-SENDER-IP: [85.225.45.100] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoQ0AIEt1UxV4S1kPGdsb2JhbACDMYRSmgUMAQEBATUtrE6QTIEigzNzBI1f X-IronPort-AV: E=Sophos;i="4.58,308,1286143200"; d="scan'208";a="147463751" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 06 Nov 2010 18:28:59 +0100 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 2A1797FA05A; Sat, 6 Nov 2010 18:28:59 +0100 (CET) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.11) Gecko/20101004 Thunderbird/3.1.5 In-Reply-To: <838w16o7xg.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132420 Archived-At: Eli Zaretskii skrev 2010-11-06 15.14: > The other case is NS. IIUC, the place that calculates the width of > the tooltip is the setText method of the EmacsTooltip class, > implemented on nsmenu.m. My reading of the setText method is that it > assumes a single line of text in the tip, is that right? If so, > that's a bug in itself, I think. It does not, sizeWithAttributes returns the bounding box the drawn string would have. It handles newlines. Jan D.