unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chris Zheng <chrisdcheng@gmail.com>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: "Adrian Robert" <adrian.b.robert@gmail.com>,
	"emacs-devel@gnu.org Development" <emacs-devel@gnu.org>
Subject: Re: State of NS port
Date: Mon, 14 Jan 2013 10:44:21 +0800	[thread overview]
Message-ID: <2E1BB17A2D1E4793AEAA71C1B8AE1690@gmail.com> (raw)
In-Reply-To: <20AB1D9B-73FE-4B14-885E-95CFD2B5F8EB@swipnet.se>

[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]

But the second one (which seems a reasonable fix) makes Emacs unable to display any non-western characters.

-    if ([fkeys count] > 0)
-      matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys];
-    else
-      matchingDescs = [NSMutableArray array];
+    matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys];


--  
Best regards,
Chris


On Saturday, January 12, 2013 at 6:09 PM, Jan Djärv wrote:

> Hello.
>  
> 12 jan 2013 kl. 04:49 skrev Chris Zheng <chrisdcheng@gmail.com (mailto:chrisdcheng@gmail.com)>:
>  
> > I suffered this problem too, and it's because of two bug fixes after I dig it awhile.
> >  
> > bug#11484: 23.4; Scrolling leaves traces of old text behind
> >  
> > http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-05/msg00383.html
> >  
> > LCD-smoothing was turned off to fix this bug,
> >  
> > and  
> >  
> > bug#11541: - Another reproduction - Emacs 24.2; Null pointer on OSX with
> >  
> > http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-09/msg01293.html
> >  
> > I simply revert these two fixes, and problem you mentioned is gone.  
> >  
> > So, maybe there are more deeper things around of these two bugs.
>  
> Yes there are. 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 premature optimizations such as caching of font metrics in the font code.
>  
> The second one is because the memory handling in the font 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 one does not happen when run in gdb. But when it does happen, as it does for me right now, Emacs crashes.
>  
> Jan D.  


[-- Attachment #2: Type: text/html, Size: 2967 bytes --]

  reply	other threads:[~2013-01-14  2:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10 16:27 State of NS port Adrian Robert
2013-01-10 18:53 ` chad
2013-01-10 19:28 ` Stefan Monnier
2013-01-12  3:49 ` Chris Zheng
2013-01-12 10:09   ` Jan Djärv
2013-01-14  2:44     ` Chris Zheng [this message]
2013-01-14  9:35       ` Jan Djärv
2013-01-12 14:58   ` Harald Hanche-Olsen
2013-01-12 16:41     ` Jan Djärv
2013-01-15 17:57       ` Adrian Robert
2013-01-15 20:47         ` Jan Djärv
2013-01-16 13:46           ` Adrian Robert
2013-01-13  8:14   ` YAMAMOTO Mitsuharu
2013-01-13 12:23     ` Jan Djärv
2013-01-13 14:09     ` Jan Djärv
2013-01-14  3:07       ` YAMAMOTO Mitsuharu
  -- strict thread matches above, loose matches on Subject: below --
2013-01-11  1:38 David Kanter
2013-01-11 16:13 ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2E1BB17A2D1E4793AEAA71C1B8AE1690@gmail.com \
    --to=chrisdcheng@gmail.com \
    --cc=adrian.b.robert@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).