From: Alan Third <alan@idiocy.org>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: Changes installed in d22d7d6be8c
Date: Sat, 29 Jan 2022 12:20:32 +0000 [thread overview]
Message-ID: <YfUxEDCPXuO3yW0B@idiocy.org> (raw)
In-Reply-To: <87mtjehj8q.fsf@yahoo.com>
On Sat, Jan 29, 2022 at 07:30:29PM +0800, Po Lu wrote:
>
> I see the following code in nsterm.m:
>
> d22d7d6be8c (Alan Third 2021-09-27 7934) NSRect dstRect = NSMakeRect (dest.x, dest.y, NSWidth (srcRect),
> d22d7d6be8c (Alan Third 2021-09-27 7935) NSHeight (srcRect));
> d22d7d6be8c (Alan Third 2021-09-27 7936) NSRect frame = [self frame];
> d22d7d6be8c (Alan Third 2021-09-27 7937)
> d22d7d6be8c (Alan Third 2021-09-27 7938) /* TODO: This check is an attempt to debug a rare graphical glitch
> d22d7d6be8c (Alan Third 2021-09-27 7939) on macOS and should be removed before the Emacs 28 release. */
> d22d7d6be8c (Alan Third 2021-09-27 7940) if (!NSContainsRect (frame, srcRect)
> d22d7d6be8c (Alan Third 2021-09-27 7941) || !NSContainsRect (frame, dstRect))
> d22d7d6be8c (Alan Third 2021-09-27 7942) {
> d22d7d6be8c (Alan Third 2021-09-27 7943) NSLog (@"[EmacsView copyRect:to:] Attempting to copy to or "
> d22d7d6be8c (Alan Third 2021-09-27 7944) "from an area outside the graphics buffer.");
> d22d7d6be8c (Alan Third 2021-09-27 7945) NSLog (@" Frame: (%f, %f) %f×%f",
> d22d7d6be8c (Alan Third 2021-09-27 7946) NSMinX (frame), NSMinY (frame),
> d22d7d6be8c (Alan Third 2021-09-27 7947) NSWidth (frame), NSHeight (frame));
> d22d7d6be8c (Alan Third 2021-09-27 7948) NSLog (@" Source: (%f, %f) %f×%f",
> d22d7d6be8c (Alan Third 2021-09-27 7949) NSMinX (srcRect), NSMinY (srcRect),
> d22d7d6be8c (Alan Third 2021-09-27 7950) NSWidth (srcRect), NSHeight (srcRect));
> d22d7d6be8c (Alan Third 2021-09-27 7951) NSLog (@" Destination: (%f, %f) %f×%f",
> d22d7d6be8c (Alan Third 2021-09-27 7952) NSMinX (dstRect), NSMinY (dstRect),
> d22d7d6be8c (Alan Third 2021-09-27 7953) NSWidth (dstRect), NSHeight (dstRect));
> d22d7d6be8c (Alan Third 2021-09-27 7954) }
>
> Could someone explain exactly how the graphical glitch here manifests?
>
> It's also getting close to the Emacs 28 release, so maybe this should be
> removed there.
I thought this was already removed, but when I checked my local
emacs-28 branch the commit was still unpushed, so I've just done that.
Thanks.
--
Alan Third
next prev parent reply other threads:[~2022-01-29 12:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87mtjehj8q.fsf.ref@yahoo.com>
2022-01-29 11:30 ` Changes installed in d22d7d6be8c Po Lu
2022-01-29 12:20 ` Alan Third [this message]
2022-01-29 12:33 ` Po Lu
2022-01-29 12:45 ` Alan Third
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=YfUxEDCPXuO3yW0B@idiocy.org \
--to=alan@idiocy.org \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
/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.