all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Zheng <chrisdcheng@gmail.com>
To: Adrian Robert <adrian.b.robert@gmail.com>
Cc: "emacs-devel@gnu.org Development" <emacs-devel@gnu.org>
Subject: Re: State of NS port
Date: Sat, 12 Jan 2013 11:49:09 +0800	[thread overview]
Message-ID: <22C1B7A8E2294F08983ACE6BA77A7346@gmail.com> (raw)
In-Reply-To: <69E12347-B799-48E4-AE1A-115365CEA4C8@gmail.com>

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

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.

diff --git a/src/nsfont.m b/src/nsfont.m
index c0bea2e..a5fc570 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -560,10 +560,7 @@ ns_findfonts (Lisp_Object font_spec, BOOL isMatch)
     if (isMatch)
  [fkeys removeObject: NSFontFamilyAttribute];
 
-    if ([fkeys count] > 0)
-      matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys];
-    else
-      matchingDescs = [NSMutableArray array];
+    matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys];
 
     if (NSFONT_TRACE)
  NSLog(@"Got desc %@ and found %d matching fonts from it: ", fdesc,
@@ -1240,7 +1237,6 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y,
     else
       CGContextSetShouldAntialias (gcontext, 1);
 
-    CGContextSetShouldSmoothFonts (gcontext, NO);
     CGContextSetTextMatrix (gcontext, fliptf);
 
     if (bgCol != nil)



-- 
Best regards,
Chris


On Friday, January 11, 2013 at 12:27 AM, Adrian Robert wrote:

> Hi,
> 
> I built the NS port of emacs under Mac OS X 10.8 today from trunk.  I realize a tremendous amount of work over the years has been done to clean up various glitches in menus, rendering, event handling, etc., many caused by my own poor work, but I was really disappointed to see some big steps backwards in basics.  Here is a screenshot of the HELLO file from today on left, and a version from 3 years ago on the right.
> 
> I've stepped back my direct involvement in the port to find more time to focus on other things, and I appreciate the work of others who have taken up the slack.  But glaring issues like extra blank space in the window, nonconformance to the system standard edge-rounding, and poor text rendering in the prevailing Carbon port (at the time) were part of what led me originally to resurrect the NS port to begin with back in 2004.
> 
> I don't know if the current steps backwards are due to the lack of maintenance in keeping up with internal core changes, or due to inadvertent and/or accepted losses in the course of making port enhancements.  But I would request that when people make changes, they keep an eye out for regressions introduced by them, and refrain from committing improvements that introduce new (or old) problems.
> 
> All I can do is make this request humbly, and apologize for my own lack of involvement, which while it has surely led to improvement of the codebase overall, seems to have caused some penalty as well.
> 
> respectfully,
> Adrian
> 


[-- Attachment #2.1: Type: text/html, Size: 4801 bytes --]

[-- Attachment #2.2: Screen-Shot-2013-01-10-at-11.08s.png --]
[-- Type: image/PNG, Size: 215457 bytes --]

  parent reply	other threads:[~2013-01-12  3:49 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 [this message]
2013-01-12 10:09   ` Jan Djärv
2013-01-14  2:44     ` Chris Zheng
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

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

  git send-email \
    --in-reply-to=22C1B7A8E2294F08983ACE6BA77A7346@gmail.com \
    --to=chrisdcheng@gmail.com \
    --cc=adrian.b.robert@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.