all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alan Third <alan@idiocy.org>
Cc: charles@aurox.ch, emacs-devel@gnu.org
Subject: Re: Change to NS drawing routines
Date: Tue, 14 Aug 2018 17:50:08 +0300	[thread overview]
Message-ID: <83bma5j93z.fsf@gnu.org> (raw)
In-Reply-To: <20180813193604.GB2258@breton.holly.idiocy.org> (message from Alan Third on Mon, 13 Aug 2018 20:36:04 +0100)

> Date: Mon, 13 Aug 2018 20:36:04 +0100
> From: Alan Third <alan@idiocy.org>
> Cc: charles@aurox.ch, emacs-devel@gnu.org
> 
> > > from http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00435.html
> > > 
> > > I can understand the argument to an extent, but I don’t have another
> > > solution.
> > 
> > We could discuss this again, perhaps the details have changed, or we
> > might be able o find some compromise everybody can live with.
> > 
> > For starters, what changes, if any, would you need to make in the
> > glyph matrices, and why?
> 
> For this none, I can do it all in the NS specific code.
> 
> I’ve changed all the NS drawing functions to check whether they are
> allowed to draw. If not then I mark the area as dirty.
> 
> I’ve added an ns_flush_display function that I believe is called at
> the end of redisplay (flush_frame). I wasn’t sure about this but it
> looks as though it works, (i.e. everything draws OK) so I assume it’s
> safe.
> 
> Anyway, ns_flush_display asks Cocoa/GNUstep to redraw the frame, which
> results in drawRect being called which calls expose_frame on the
> rectangles that have been marked as dirty.

In that case, I don't see why would I object.  My objection was to
introducing platform specific stuff into platform-independent code in
xdisp.c and dispnew.c, and/or into data structures these files use as
part of the display engine.  By contrast, it sounds like you just
caused the expose event to be triggered under special circumstances,
perhaps much more frequently than before, but when exactly the expose
event comes in on different window-systems is not something that is
against Emacs expectations, and certainly doesn't bother me.

Thanks.



  reply	other threads:[~2018-08-14 14:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-11 14:06 Change to NS drawing routines Alan Third
2018-08-12 10:47 ` Charles A. Roelli
2018-08-13 18:46   ` Alan Third
2018-08-13 19:10     ` Eli Zaretskii
2018-08-13 19:36       ` Alan Third
2018-08-14 14:50         ` Eli Zaretskii [this message]
2018-08-15 20:43           ` Alan Third
2018-08-15 19:20     ` Charles A. Roelli
2018-08-15 20:42       ` Alan Third
2018-08-13  8:24 ` Nick Helm
2018-08-13  9:15 ` Van L

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=83bma5j93z.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=alan@idiocy.org \
    --cc=charles@aurox.ch \
    --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.