From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Zheng Newsgroups: gmane.emacs.devel Subject: Re: State of NS port Date: Mon, 14 Jan 2013 10:44:21 +0800 Message-ID: <2E1BB17A2D1E4793AEAA71C1B8AE1690@gmail.com> References: <69E12347-B799-48E4-AE1A-115365CEA4C8@gmail.com> <22C1B7A8E2294F08983ACE6BA77A7346@gmail.com> <20AB1D9B-73FE-4B14-885E-95CFD2B5F8EB@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="50f37105_643c9869_135" X-Trace: ger.gmane.org 1358131489 22124 80.91.229.3 (14 Jan 2013 02:44:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 02:44:49 +0000 (UTC) Cc: Adrian Robert , "=?utf-8?Q?emacs-devel=40gnu.org_Development?=" To: =?utf-8?Q?Jan_Dj=C3=A4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 14 03:45:06 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tua2r-0007Aa-RA for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2013 03:45:06 +0100 Original-Received: from localhost ([::1]:59530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tua2b-0005bQ-MT for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2013 21:44:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tua2R-0005b8-Kz for emacs-devel@gnu.org; Sun, 13 Jan 2013 21:44:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tua2G-0007xq-6q for emacs-devel@gnu.org; Sun, 13 Jan 2013 21:44:39 -0500 Original-Received: from mail-qa0-f41.google.com ([209.85.216.41]:48319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tua2G-0007xl-1I for emacs-devel@gnu.org; Sun, 13 Jan 2013 21:44:28 -0500 Original-Received: by mail-qa0-f41.google.com with SMTP id o19so1124062qap.14 for ; Sun, 13 Jan 2013 18:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:message-id:in-reply-to:references :subject:x-mailer:mime-version:content-type; bh=R4dQX6nDBEv26FmjHV2To+CaQPG2wTAPhhuEfKjSmCk=; b=qJISY5TTeu4NfgIxhhxJpvZKP4LajC6h8oDdRjFIc+6Pcv9dJgxMvfAMICG4GdC42Y BxG1sGXx9D0dzGGo/ipQ0jqQLTi5FrBAicW83yOzUlsIgtwOs166gHyXEGz8FWfUDVVE sV1IqXysaYj1FI7OgtkT7B09B0wLY/mIHhTirb5/zAuYW/yv/H0/DEAi3t1vPo1d92Nj sZanq52P27luchICC5sCoVBMQhWFUiHg2Efw85O8TSC2LSNYEY+tRCs6dS4/IA6RecBJ wE7Wkmic9YCrZH0H0WMNRe8TJkw5mQfSCqOHWB8vBHbyaelOU3k/mVkJMkWOIxSPdWAc QvmQ== X-Received: by 10.49.82.75 with SMTP id g11mr82528264qey.12.1358131466864; Sun, 13 Jan 2013 18:44:26 -0800 (PST) Original-Received: from [172.16.254.191] (li250-176.members.linode.com. [173.255.240.176]) by mx.google.com with ESMTPS id en3sm9044544qab.6.2013.01.13.18.44.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 13 Jan 2013 18:44:26 -0800 (PST) In-Reply-To: <20AB1D9B-73FE-4B14-885E-95CFD2B5F8EB@swipnet.se> X-Mailer: sparrow 1.6.4 (build 1176) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.216.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156332 Archived-At: --50f37105_643c9869_135 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline But the second one (which seems a reasonable fix) makes Emacs unable to d= isplay any non-western characters. - if (=5Bfkeys count=5D > 0) - matchingDescs =3D =5Bfdesc matching=46ontDescriptorsWithMandatoryK= eys: fkeys=5D; - else - matchingDescs =3D =5BNSMutableArray array=5D; + matchingDescs =3D =5Bfdesc matching=46ontDescriptorsWithMandatoryKey= s: fkeys=5D; -- =20 Best regards, Chris On Saturday, January 12, 2013 at 6:09 PM, Jan Dj=C3=A4rv wrote: > Hello. > =20 > 12 jan 2013 kl. 04:49 skrev Chris Zheng : > =20 > > I suffered this problem too, and it's because of two bug fixes after = I dig it awhile. > > =20 > > bug=2311484: 23.4; Scrolling leaves traces of old text behind > > =20 > > http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-05/msg00383.html= > > =20 > > LCD-smoothing was turned off to fix this bug, > > =20 > > and =20 > > =20 > > bug=2311541: - Another reproduction - Emacs 24.2; Null pointer on OSX= with > > =20 > > http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-09/msg01293.html= > > =20 > > I simply revert these two fixes, and problem you mentioned is gone. =20 > > =20 > > So, maybe there are more deeper things around of these two bugs. > =20 > Yes there are. The first one is due to the fact that the font code misc= alculates the font metrics when lcd-smoothing is on. It may be related to= some premature optimizations such as caching of font metrics in the font= code. > =20 > The second one is because the memory handling in the font code is incor= rect and leads to crashes for some people (may depend on font and/or OS v= ersion and/or compiler version/settings). The second one does not happen = when run in gdb. But when it does happen, as it does for me right now, Em= acs crashes. > =20 > Jan D. =20 --50f37105_643c9869_135 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
But the second one (which seems a reasonable fix) makes Emacs un= able to display any non-western characters.

- &n= bsp;  if (=5Bfkeys count=5D > 0)
-      = matchingDescs =3D =5Bfdesc matching=46ontDescriptorsWithMandatoryKeys: fk= eys=5D;
-    else
-      mat= chingDescs =3D =5BNSMutableArray array=5D;
+    match= ingDescs =3D =5Bfdesc matching=46ontDescriptorsWithMandatoryKeys: fkeys=5D= ;

-- 
Best regards,=
Chris

=20

On Saturday, January 1= 2, 2013 at 6:09 PM, Jan Dj=C3=A4rv wrote:

Hello.

= 12 jan 2013 kl. 04:49 skrev Chris Zheng <chrisdcheng=40gmail.com>:

I suffered this problem too, and it= 's because of two bug fixes after I dig it awhile.

bug=2311484: 23.4; Scrolling leaves traces of old text behind


LCD-smoothing was= turned off to fix this bug,

and

=
bug=2311541: - Another reproduction - Emacs 24.2; Null pointer= on OSX with


<= div>I simply revert these two fixes, and problem you mentioned is gone. <= /div>

So, maybe there are more deeper things around of= these two bugs.

Yes there ar= e. The first one is due to the fact that the font code miscalculates the= font metrics when lcd-smoothing is on. It may be related to some prematu= re optimizations such as caching of font metrics in the font code.
<= div>
The second one is because the memory handling in the f= ont code is incorrect and leads to crashes for some people (may depend on= font and/or OS version and/or compiler version/settings). The second on= e does not happen when run in gdb. But when it does happen, as it does f= or me right now, Emacs crashes.

Jan D.
=20 =20 =20 =20 =20

--50f37105_643c9869_135--