From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: Display problem with recent CVS
Date: Fri, 03 Dec 2004 19:57:06 +0900 [thread overview]
Message-ID: <wl3byn3b0d.wl@church.math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <wzwtvzg1oy.fsf@ordesa.cs.uu.nl>
>>>>> On Fri, 03 Dec 2004 10:39:57 +0100, Piet van Oostrum <piet@cs.uu.nl> said:
> I recompiled Carbon Emacs on MacOSX from the CVS version
> yesterday. I noticed a strange display problem.
(snip)
> When I start typing text in the body, followed by a RETURN, the
> signature disappears. It is not removed from the buffer, just not
> displayed, because it reappears with C-l. Is this a known problem?
I encountered a similar phenomenon once, but I couldn't reproduce it.
The following patch partly undoes the 2004-11-30 change that is
related to scrolling. Does this work for you?
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
Index: src/macterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/macterm.c,v
retrieving revision 1.83
diff -c -r1.83 macterm.c
*** src/macterm.c 30 Nov 2004 05:57:27 -0000 1.83
--- src/macterm.c 3 Dec 2004 10:51:28 -0000
***************
*** 912,924 ****
int dest_x, dest_y;
{
#if TARGET_API_MAC_CARBON
! Rect src_r;
! RgnHandle dummy = NewRgn (); /* For avoiding update events. */
SetRect (&src_r, src_x, src_y, src_x + width, src_y + height);
! ScrollWindowRect (w, &src_r, dest_x - src_x, dest_y - src_y,
! kScrollWindowNoOptions, dummy);
! DisposeRgn (dummy);
#else /* not TARGET_API_MAC_CARBON */
Rect src_r, dest_r;
--- 912,935 ----
int dest_x, dest_y;
{
#if TARGET_API_MAC_CARBON
! Rect src_r, dest_r;
SetRect (&src_r, src_x, src_y, src_x + width, src_y + height);
! SetRect (&dest_r, dest_x, dest_y, dest_x + width, dest_y + height);
!
! SetPortWindowPort (w);
!
! ForeColor (blackColor);
! BackColor (whiteColor);
!
! LockPortBits (GetWindowPort (w));
! {
! const BitMap *bitmap = GetPortBitMapForCopyBits (GetWindowPort (w));
! CopyBits (bitmap, bitmap, &src_r, &dest_r, srcCopy, 0);
! }
! UnlockPortBits (GetWindowPort (w));
!
! mac_set_colors (gc);
#else /* not TARGET_API_MAC_CARBON */
Rect src_r, dest_r;
next prev parent reply other threads:[~2004-12-03 10:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-03 9:39 Display problem with recent CVS Piet van Oostrum
2004-12-03 10:57 ` YAMAMOTO Mitsuharu [this message]
2004-12-06 16:00 ` Piet van Oostrum
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=wl3byn3b0d.wl@church.math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--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 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).