GNU bug report logs - #25863
25.1; garbage display by small image

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: ynyaaa@HIDDEN; dated Fri, 24 Feb 2017 15:40:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 25863 <at> debbugs.gnu.org:


Received: (at 25863) by debbugs.gnu.org; 26 Feb 2017 15:38:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 26 10:38:32 2017
Received: from localhost ([127.0.0.1]:56906 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ci0u8-000143-Es
	for submit <at> debbugs.gnu.org; Sun, 26 Feb 2017 10:38:32 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44092)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ci0u7-00013r-02
 for 25863 <at> debbugs.gnu.org; Sun, 26 Feb 2017 10:38:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1ci0ty-0006dW-SN
 for 25863 <at> debbugs.gnu.org; Sun, 26 Feb 2017 10:38:25 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43222)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ci0ty-0006dQ-PE; Sun, 26 Feb 2017 10:38:22 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2004
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ci0ty-0002IJ-3Z; Sun, 26 Feb 2017 10:38:22 -0500
Date: Sun, 26 Feb 2017 17:38:02 +0200
Message-Id: <83fuj1q7xh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ynyaaa@HIDDEN
In-reply-to: <87fuj1n7ot.fsf@HIDDEN> (ynyaaa@HIDDEN)
Subject: Re: bug#25863: 25.1; garbage display by small image
References: <87fuj1n7ot.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25863
Cc: 25863 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: ynyaaa@HIDDEN
> Cc: 25863 <at> debbugs.gnu.org
> Date: Sun, 26 Feb 2017 08:59:14 +0900
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> > Fortunately, this is a fairly rare situation.
> 
> I think it is not so rare.
> 
> Long ago, I noticed that a small dot may be displayed near an image
> when viewing it by find-file.
> For a long time I was not aware that it is a small part of a glyph
> which is displayed before buffer switching.

It could be not so rare in your use patterns, but I was talking about
the average Emacs user out there.  The fact is we didn't (AFAIR) see
bug reports about such problems, and even reproducing this on my
machine needed some effort.  Which is not surprising, given the
particular relation between the default font size and the metrics and
position of the image needed to have the bug show itself.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.

Message received at 25863 <at> debbugs.gnu.org:


Received: (at 25863) by debbugs.gnu.org; 25 Feb 2017 23:59:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 25 18:59:20 2017
Received: from localhost ([127.0.0.1]:56117 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1chmFE-0008Jr-KG
	for submit <at> debbugs.gnu.org; Sat, 25 Feb 2017 18:59:20 -0500
Received: from mail-pg0-f48.google.com ([74.125.83.48]:36361)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ynyaaa@HIDDEN>) id 1chmFD-0008Je-AQ
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 18:59:19 -0500
Received: by mail-pg0-f48.google.com with SMTP id s67so27258880pgb.3
 for <25863 <at> debbugs.gnu.org>; Sat, 25 Feb 2017 15:59:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:in-reply-to:date:message-id:mime-version;
 bh=2lra4eKxhI8yIaXn3xh9ldhVUnhqLw+VdHaeoxh2Vtg=;
 b=QxRk1O/1VrtgKGSu8hl7dgbuJTWbZ0y6VCI2aluz0kcVwEmOT9P6ZyrgDHLk6HrDKV
 afockTV+kuevjkFJ6/R/WnC0wpc15Kpz6JFxZ/Cb95JUa0253QkCdDVhuwTQu9Z643k/
 0esh2rNzEriqTYdCv3D5m5DTbTJDEPy3ja1Kk1eDhusPCm7UAZtUqC74U6sroEQ6MiE8
 D4kn22CESDKhckUHybdqvwu/3ixtnNeBLJWEofrsl/0m6XeR7Wf4XQ/6JV6OYJdYuSJa
 HOwFK6XXTW70f/MrafTLzUASgo3LVi7tYZ3Avpy6NHhsF89vFow1mmqvsrxl3eaj8sLe
 8P+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id
 :mime-version;
 bh=2lra4eKxhI8yIaXn3xh9ldhVUnhqLw+VdHaeoxh2Vtg=;
 b=iwazH6TYKqaifIG7Wq1LzX2UQ10+6fP3f7ikNchWvPeHgu+1l+QJzwgwTBPPwgqtFY
 Y6LGCE6cCs1j2z/lC37kLjYE4UdWn9IDc2xGV5GAork9KkiIdwgZfKSZ7Os4N+sGBur9
 AX1wrQ7uZXP1brQSWwRw5xhpo7PAoFWB1SRztcI6Ma/91rw7QCOfYt4nAcPuqYgVcGb/
 4V5E3NJYkJHHmNAX/om0puR/jqvReqL3NSiVHliY2V4u6Jy7sT7N5gh7iEm7wYDwDJ6/
 4dhE7yCYndWpZ+FE4bgx95B+WQ8lRTYvnp9r5m+4VKwFpzOxb2/LpzUjWBhWHlexriOO
 ofgA==
X-Gm-Message-State: AMke39meb3VitA+KJ6vnvva8+NxJXkhBF+LG/5igkbEgLh3jpOJ5U/fqarh2gv+5XNFQAg==
X-Received: by 10.84.213.137 with SMTP id g9mr14234068pli.114.1488067153521;
 Sat, 25 Feb 2017 15:59:13 -0800 (PST)
Received: from PNUT-PC (east24-p58.eaccess.hi-ho.ne.jp. [218.42.167.59])
 by smtp.gmail.com with ESMTPSA id t6sm22468091pgo.42.2017.02.25.15.59.12
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 25 Feb 2017 15:59:12 -0800 (PST)
From: ynyaaa@HIDDEN
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#25863: 25.1; garbage display by small image
In-Reply-To: <83shn2qsal.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 25 Feb
 2017 16:05:54 +0200")
Date: Sun, 26 Feb 2017 08:59:14 +0900
Message-ID: <87fuj1n7ot.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.6 (/)
X-Debbugs-Envelope-To: 25863
Cc: 25863 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)

Eli Zaretskii <eliz@HIDDEN> writes:
> Fortunately, this is a fairly rare situation.

I think it is not so rare.

Long ago, I noticed that a small dot may be displayed near an image
when viewing it by find-file.
For a long time I was not aware that it is a small part of a glyph
which is displayed before buffer switching.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.
Severity set to 'minor' from 'normal' Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 25863 <at> debbugs.gnu.org:


Received: (at 25863) by debbugs.gnu.org; 25 Feb 2017 14:06:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 25 09:06:35 2017
Received: from localhost ([127.0.0.1]:55281 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1chcza-0005Tm-OT
	for submit <at> debbugs.gnu.org; Sat, 25 Feb 2017 09:06:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53529)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1chczZ-0005TT-IX
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 09:06:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1chczT-0001dN-PA
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 09:06:28 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55448)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1chczL-0001Wt-4f; Sat, 25 Feb 2017 09:06:19 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4404
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1chczK-0003SS-90; Sat, 25 Feb 2017 09:06:18 -0500
Date: Sat, 25 Feb 2017 16:05:54 +0200
Message-Id: <83shn2qsal.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ynyaaa@HIDDEN
In-reply-to: <83varyqx88.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 25
 Feb 2017 14:19:19 +0200)
Subject: Re: bug#25863: 25.1; garbage display by small image
References: <8737f2bmw2.fsf@HIDDEN> <83varyqx88.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25863
Cc: 25863 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

severity 25863 minor
thanks

> Date: Sat, 25 Feb 2017 14:19:19 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> Cc: 25863 <at> debbugs.gnu.org
> 
> > (let ((h 16))
> >   (switch-to-buffer (generate-new-buffer "temp"))
> >   (insert-image (create-image (concat (format "P4\n8 %d\n" h)
> >                                       (make-string h 127))
> >                               'pbm t))
> >   (insert ?g)
> >   (redisplay)
> >   (delete-char -1))
> 
> Thanks, I see it now.

Looks like a basic deficiency in the design of the Emacs redisplay,
and in particular the way screen lines are redrawn when they have
variable-height glyphs.

Fortunately, this is a fairly rare situation.  In the recipe above,
it's enough to make a very small change to make the problem go away:

(let ((h 16))
  (switch-to-buffer (generate-new-buffer "temp"))
  (insert "x")     ;; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  (insert-image (create-image (concat (format "P4\n8 %d\n" h)
                                      (make-string h 127))
                              'pbm t))
  (insert ?g)
  (redisplay)
  (delete-char -1))

Or maybe I'm missing something; ideas are welcome.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.

Message received at 25863 <at> debbugs.gnu.org:


Received: (at 25863) by debbugs.gnu.org; 25 Feb 2017 12:19:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 25 07:19:54 2017
Received: from localhost ([127.0.0.1]:55232 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1chbKM-0001Jt-M1
	for submit <at> debbugs.gnu.org; Sat, 25 Feb 2017 07:19:54 -0500
Received: from eggs.gnu.org ([208.118.235.92]:37052)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1chbKK-0001Jg-P4
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 07:19:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1chbKC-0004Nx-Bt
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 07:19:47 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54602)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1chbKC-0004Nt-8Q; Sat, 25 Feb 2017 07:19:44 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3480
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1chbKB-0003p7-Jt; Sat, 25 Feb 2017 07:19:44 -0500
Date: Sat, 25 Feb 2017 14:19:19 +0200
Message-Id: <83varyqx88.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ynyaaa@HIDDEN
In-reply-to: <8737f2bmw2.fsf@HIDDEN> (ynyaaa@HIDDEN)
Subject: Re: bug#25863: 25.1; garbage display by small image
References: <8737f2bmw2.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25863
Cc: 25863 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: ynyaaa@HIDDEN
> Cc: 25863 <at> debbugs.gnu.org
> Date: Sat, 25 Feb 2017 19:11:41 +0900
> 
> >   "-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1"
> >
> > How to change the test case to reproduce the problem with this font,
> > please?
> 
> Starting emacs -Q and (set-frame-font
> "-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1"),
> the form below displayed garbage.
> The value for 'h' may be modified between 9 and 16.
> 
> (let ((h 16))
>   (switch-to-buffer (generate-new-buffer "temp"))
>   (insert-image (create-image (concat (format "P4\n8 %d\n" h)
>                                       (make-string h 127))
>                               'pbm t))
>   (insert ?g)
>   (redisplay)
>   (delete-char -1))

Thanks, I see it now.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.

Message received at 25863 <at> debbugs.gnu.org:


Received: (at 25863) by debbugs.gnu.org; 25 Feb 2017 10:11:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 25 05:11:46 2017
Received: from localhost ([127.0.0.1]:55190 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1chZKL-0006le-S0
	for submit <at> debbugs.gnu.org; Sat, 25 Feb 2017 05:11:46 -0500
Received: from mail-pg0-f53.google.com ([74.125.83.53]:33798)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ynyaaa@HIDDEN>) id 1chZKK-0006lP-EI
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 05:11:44 -0500
Received: by mail-pg0-f53.google.com with SMTP id 1so22349344pgi.1
 for <25863 <at> debbugs.gnu.org>; Sat, 25 Feb 2017 02:11:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:in-reply-to:date:message-id:mime-version;
 bh=5dF7XyUar1fYAL5WTSkTBaFx6bWQicAlK+tOXIVRSwE=;
 b=TdCcNWv+9WA79QPz/uK+50+5LyO6Pr3UGC16DSXTdcXSx4WBAUMLpASkWBAcJBP//v
 Nlpce3AG2xE5f+/GLlxOYqy1+yAp1c2lEShG/aut6MaruecUf9xdKqlvV3QszmAPF1pd
 O7PcCl6odNb20NHBqoioDw1ZSh/KEtx2MwADJuPdoBt5L1Gw0UiNJR0346IvwBTZVBMY
 1ffZyMQf82gM2xnB0VU4U0CUAFPKaiaziNmdpwFYpCnz/JDE++QPAfAbQ7it8C8OIs+u
 +FbbsqvgECf+eSg25Wc9MoPjxwdPGjp3mOYqMhqpUUUx39dJ/AmLEssuwf9taFh26RrS
 tmSQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id
 :mime-version;
 bh=5dF7XyUar1fYAL5WTSkTBaFx6bWQicAlK+tOXIVRSwE=;
 b=hW9ZRPWz6bY7vJLvf7EKWau0PP5Egx42OVGQOKBdoJzBEw7CX7V1WFvAnnt8HRG6KW
 5ulC4u+uzDekZuAP5pB2oXsHQaBluTeuUbddo01uglWjrSRJojSEoPhbf/+eJ/UB/PIC
 ziVn/cdkwst7f7dj2VrsoIPwAGBlauNBWF/jGD/h3z8jJ4XX7jbgDN/uAAge+w0MlkcO
 jrDfGX7MrE8Xl7wvMJ0SQo1IHr/JGBWMeaBPDPbWlHDGqvsR2yieU5CrCbeByzV3def4
 BCPbxQTWY4jV4lDM+lvB2wsB3gIKzHyyKr4Rb8lq7RMYGVvCzp3X9de6gwcDU32L+T9I
 tz3w==
X-Gm-Message-State: AMke39kegAjWGWKMuZbyfKD3fHlpVIt21cm2gtF2NPD8JMP6Ptd0qZyAOY8qDpu7QFkWyg==
X-Received: by 10.84.194.1 with SMTP id g1mr10071268pld.98.1488017498964;
 Sat, 25 Feb 2017 02:11:38 -0800 (PST)
Received: from PNUT-PC (east24-p58.eaccess.hi-ho.ne.jp. [218.42.167.59])
 by smtp.gmail.com with ESMTPSA id d10sm2852828pfl.59.2017.02.25.02.11.37
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 25 Feb 2017 02:11:38 -0800 (PST)
From: ynyaaa@HIDDEN
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#25863: 25.1; garbage display by small image
In-Reply-To: <8360jyskp9.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 25 Feb
 2017 11:06:58 +0200")
Date: Sat, 25 Feb 2017 19:11:41 +0900
Message-ID: <8737f2bmw2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 25863
Cc: 25863 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:
> I'm not sure I understand how to change the test case to account for
> the above.  Evaluating "(face-font 'default)" in "emacs -Q" produces
> this:
>
>   "-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1"
>
> How to change the test case to reproduce the problem with this font,
> please?

Starting emacs -Q and (set-frame-font
"-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1"),
the form below displayed garbage.
The value for 'h' may be modified between 9 and 16.

(let ((h 16))
  (switch-to-buffer (generate-new-buffer "temp"))
  (insert-image (create-image (concat (format "P4\n8 %d\n" h)
                                      (make-string h 127))
                              'pbm t))
  (insert ?g)
  (redisplay)
  (delete-char -1))

The attached image is the screen shot of the garbage display.
The left rectangle is the pbm image and the right rectangle
is text cursor, which looks shorter than the line height
where the line height equals to the image height.


--=-=-=
Content-Type: image/png
Content-Disposition: attachment; filename=test-emacs-garbage.png
Content-Transfer-Encoding: base64

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
AABJRU5ErkJggg==
--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.

Message received at 25863 <at> debbugs.gnu.org:


Received: (at 25863) by debbugs.gnu.org; 25 Feb 2017 09:07:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 25 04:07:33 2017
Received: from localhost ([127.0.0.1]:55165 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1chYKC-0005Kg-Sg
	for submit <at> debbugs.gnu.org; Sat, 25 Feb 2017 04:07:33 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39012)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1chYKB-0005KU-0F
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 04:07:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1chYK2-00067G-I8
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 04:07:25 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53353)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1chYK2-00067C-El; Sat, 25 Feb 2017 04:07:22 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2926
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1chYK1-0007Ln-Ib; Sat, 25 Feb 2017 04:07:22 -0500
Date: Sat, 25 Feb 2017 11:06:58 +0200
Message-Id: <8360jyskp9.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ynyaaa@HIDDEN
In-reply-to: <871sum1wrb.fsf@HIDDEN> (ynyaaa@HIDDEN)
Subject: Re: bug#25863: 25.1; garbage display by small image
References: <871sum1wrb.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25863
Cc: 25863 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: ynyaaa@HIDDEN
> Cc: 25863 <at> debbugs.gnu.org
> Date: Sat, 25 Feb 2017 17:48:40 +0900
> 
> >> (progn
> >>   (switch-to-buffer (generate-new-buffer "temp"))
> >>   (insert-image (create-image (concat "P4\n8 22\n" (make-string 22 127))
> >>                               'pbm t))
> >>   (insert ?g)
> >>   (redisplay)
> >>   (delete-char -1))
> >
> > Not reproducible here.
> 
> Reducing the height of the image or enlarging the font may show garbages.
> Otherwise I have no idea.
> 
> With emacs -Q, the font used is
> "-outline-Courier New-normal-normal-normal-mono-20-*-*-*-c-*-iso8859-1".
> In this case, garbages are shown with images of height from 11 to 22.
> 
> Setting the font to
> "-outline-Courier New-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1".
> In this case, garbages are shown with images of height from 9 to 18.

I'm not sure I understand how to change the test case to account for
the above.  Evaluating "(face-font 'default)" in "emacs -Q" produces
this:

  "-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1"

How to change the test case to reproduce the problem with this font,
please?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.

Message received at 25863 <at> debbugs.gnu.org:


Received: (at 25863) by debbugs.gnu.org; 25 Feb 2017 08:48:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 25 03:48:46 2017
Received: from localhost ([127.0.0.1]:55155 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1chY22-0004u2-1v
	for submit <at> debbugs.gnu.org; Sat, 25 Feb 2017 03:48:46 -0500
Received: from mail-pg0-f46.google.com ([74.125.83.46]:33791)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ynyaaa@HIDDEN>) id 1chY20-0004tq-Ge
 for 25863 <at> debbugs.gnu.org; Sat, 25 Feb 2017 03:48:44 -0500
Received: by mail-pg0-f46.google.com with SMTP id z128so21765889pgb.0
 for <25863 <at> debbugs.gnu.org>; Sat, 25 Feb 2017 00:48:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:in-reply-to:date:message-id:mime-version;
 bh=wXXMjJhW6bMOqi/uI5PayUaZz9RPmCDIfuzwaJQE7hA=;
 b=P7lG1/qmkWK4fqh62XSMMLyonktjt1MUf1IP24uqjHMVuj6vQ4Z8a/I2JOY+usgL8Z
 PuLprnCGc1vMQFdw1oH27zS0hBKYYyiGbRMmdea5RzZS24hLS7N83tzRC+0gGrq7JW1X
 eviETWZl2lk5pjbEvFtUbUbkbL717pn7EBw+y9yzofrVx0bBq4xRBpKMc/3aVjeo+kJE
 9J5qi3oVBwNH8jJHyGc1bB7SF5/RuNZ8OK9sxhjRnCDNnRSfLsHsqMnohy9NjZ348Hxt
 8iDMwZCRvsi42qgg2WXtLh6XBiJ4Yn02T1jNMsGQ3Dq2YUIB4mNLQlV1/EomN8orqT8W
 MGuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id
 :mime-version;
 bh=wXXMjJhW6bMOqi/uI5PayUaZz9RPmCDIfuzwaJQE7hA=;
 b=XRXrVu+AEm2mqmIgHq7PMchKUv9zFSO4sNJHGHrdI5CLVRTO7X1oEkMV2H6TJu86oR
 Sd1teX+0GjrjHYMZgg0VUOpUqN8hOfF//vfs6pdPJTjRSEosH6AKbb+fiUL2wlOytjj0
 HTtg2trDbOzJdYbPgGDXqtS3u/WOBWtOqvmh5O0+dfOcb8asR+L0ZpPMsIhZ44FFNcGY
 PhZBGbs2/Uln2hQ5X+RGg9+JoXpx4ZuLTFzs8zkvTyPpSYjdy+5zjDNv4YXMcrIvbaP2
 lFTtdwSUWMEcVt/qeaTHbfKJYTa7KzD0TL1QOlUX5s2DS5/xbITrTeknu3sWMj+Z7UkO
 WoTQ==
X-Gm-Message-State: AMke39nrPQ6bV4aeXI/4fPMa4dDxS5FWC9PdAmj07yNvoGHuFfq3gbFWacG0II1Spot4JQ==
X-Received: by 10.98.61.209 with SMTP id x78mr8623084pfj.88.1488012518502;
 Sat, 25 Feb 2017 00:48:38 -0800 (PST)
Received: from PNUT-PC (east24-p58.eaccess.hi-ho.ne.jp. [218.42.167.59])
 by smtp.gmail.com with ESMTPSA id v9sm19135042pfl.102.2017.02.25.00.48.37
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 25 Feb 2017 00:48:38 -0800 (PST)
From: ynyaaa@HIDDEN
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#25863: 25.1; garbage display by small image
In-Reply-To: <83k28fsb6d.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 24 Feb
 2017 20:20:26 +0200")
Date: Sat, 25 Feb 2017 17:48:40 +0900
Message-ID: <871sum1wrb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 25863
Cc: 25863 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Eli Zaretskii <eliz@HIDDEN> writes:
>> Evaluating the form below, the lower part of 'g' shape
>> remains to be displayed.
>> 
>> (progn
>>   (switch-to-buffer (generate-new-buffer "temp"))
>>   (insert-image (create-image (concat "P4\n8 22\n" (make-string 22 127))
>>                               'pbm t))
>>   (insert ?g)
>>   (redisplay)
>>   (delete-char -1))
>
> Not reproducible here.

Reducing the height of the image or enlarging the font may show garbages.
Otherwise I have no idea.

With emacs -Q, the font used is
"-outline-Courier New-normal-normal-normal-mono-20-*-*-*-c-*-iso8859-1".
In this case, garbages are shown with images of height from 11 to 22.

Setting the font to
"-outline-Courier New-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1".
In this case, garbages are shown with images of height from 9 to 18.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.

Message received at 25863 <at> debbugs.gnu.org:


Received: (at 25863) by debbugs.gnu.org; 24 Feb 2017 18:21:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 24 13:21:04 2017
Received: from localhost ([127.0.0.1]:54911 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1chKUK-0000ia-KH
	for submit <at> debbugs.gnu.org; Fri, 24 Feb 2017 13:21:04 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60405)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1chKUI-0000hk-El
 for 25863 <at> debbugs.gnu.org; Fri, 24 Feb 2017 13:21:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1chKU9-00055a-I9
 for 25863 <at> debbugs.gnu.org; Fri, 24 Feb 2017 13:20:56 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43682)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1chKU9-00055V-Ev; Fri, 24 Feb 2017 13:20:53 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2224
 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1chKU8-0005dV-P8; Fri, 24 Feb 2017 13:20:53 -0500
Date: Fri, 24 Feb 2017 20:20:26 +0200
Message-Id: <83k28fsb6d.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: ynyaaa@HIDDEN
In-reply-to: <87y3wvfvj0.fsf@HIDDEN> (ynyaaa@HIDDEN)
Subject: Re: bug#25863: 25.1; garbage display by small image
References: <87y3wvfvj0.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 25863
Cc: 25863 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: ynyaaa@HIDDEN
> Date: Sat, 25 Feb 2017 00:39:15 +0900
> 
> Evaluating the form below, the lower part of 'g' shape
> remains to be displayed.
> 
> (progn
>   (switch-to-buffer (generate-new-buffer "temp"))
>   (insert-image (create-image (concat "P4\n8 22\n" (make-string 22 127))
>                               'pbm t))
>   (insert ?g)
>   (redisplay)
>   (delete-char -1))

Not reproducible here.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Feb 2017 15:39:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 24 10:39:26 2017
Received: from localhost ([127.0.0.1]:54851 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1chHxt-0005X5-TP
	for submit <at> debbugs.gnu.org; Fri, 24 Feb 2017 10:39:26 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43419)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ynyaaa@HIDDEN>) id 1chHxs-0005Ws-9C
 for submit <at> debbugs.gnu.org; Fri, 24 Feb 2017 10:39:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1chHxl-0002MO-VC
 for submit <at> debbugs.gnu.org; Fri, 24 Feb 2017 10:39:18 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45314)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ynyaaa@HIDDEN>) id 1chHxl-0002MJ-Ry
 for submit <at> debbugs.gnu.org; Fri, 24 Feb 2017 10:39:17 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34373)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1chHxk-0004YJ-Az
 for bug-gnu-emacs@HIDDEN; Fri, 24 Feb 2017 10:39:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ynyaaa@HIDDEN>) id 1chHxh-0002L9-51
 for bug-gnu-emacs@HIDDEN; Fri, 24 Feb 2017 10:39:16 -0500
Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]:32977)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ynyaaa@HIDDEN>) id 1chHxg-0002Kv-TM
 for bug-gnu-emacs@HIDDEN; Fri, 24 Feb 2017 10:39:13 -0500
Received: by mail-pg0-x234.google.com with SMTP id z128so12816040pgb.0
 for <bug-gnu-emacs@HIDDEN>; Fri, 24 Feb 2017 07:39:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=SOTuZmPx4Ucde5dZZLpz2LUADdYtudXbOwJcm11meW4=;
 b=KExwtByuJLejNqOfE4tLvUaFvR6MKKGf+Mdc6wqGrTipFrjbyCPniBFE1EvKIqe7pj
 49kOiqW9Y3noTYWKzoSL3PTSb2BzqKQXKMlGAVZ13TytR0im/Ur6s3kbI3SxUaQyUxHN
 2PPeh2u8PLxNF3VsiRD0XxRXacUuojZihYqwC74QAqHZYyzRoEt6C424aMVNh3RyExXY
 t5dXUFfRIAFZXpgts2CbtQPU9OD2uqGnpMZ/Qw6C76iZa/Z5PisqG7pKKwthUJZBrLcs
 m+LyN00BxMfcb7DEsfLnZ31m0rLo+R6aJIbtDcw53tGRtyIqDvDJS2HHOmX6xD2wHpf2
 E1nQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=SOTuZmPx4Ucde5dZZLpz2LUADdYtudXbOwJcm11meW4=;
 b=XCL3vWIfkZZmFojfrLCbU2IooeE8jQDjjr4uZD6PFs48RSo58AI1w4UwENUFsxsRav
 3qnUMiWTwtoegzzCV8NcEDP0+3/x5RyIBvlp/hwMt7s2Idtf1sbM9b0y9w9r1Y7GTB/8
 AjDPA/kk/E6b/bR5r3cqjEVtFVZtL0N6n5jAupGUMAtw22ApEwcmYlThn4+paFH72mc6
 hHkikzU7MWQqf+WVwp4rFnbxEE639DhdUDoi6+y5C3c8aILTCCXzKlt5r8b+Tx9VOUmN
 Pg8l641wyjrKCVoPfgfZPfD9nU79en/yqFbQF74FFgfzZ2DNt+3eBJM6vZpzFP93FLW4
 w8yQ==
X-Gm-Message-State: AMke39k7Ygx+q01o4/GpJ+9GoUH+/jpsAjCb/FHy6Vf3tjC3/KAGi3T7TWukQ+wV2pE2ew==
X-Received: by 10.99.145.196 with SMTP id l187mr4273219pge.128.1487950751640; 
 Fri, 24 Feb 2017 07:39:11 -0800 (PST)
Received: from pnut-PC (east24-p58.eaccess.hi-ho.ne.jp. [218.42.167.59])
 by smtp.gmail.com with ESMTPSA id k76sm15856989pfg.42.2017.02.24.07.39.10
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 24 Feb 2017 07:39:11 -0800 (PST)
From: ynyaaa@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 25.1; garbage display by small image
Date: Sat, 25 Feb 2017 00:39:15 +0900
Message-ID: <87y3wvfvj0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


Evaluating the form below, the lower part of 'g' shape
remains to be displayed.

(progn
  (switch-to-buffer (generate-new-buffer "temp"))
  (insert-image (create-image (concat "P4\n8 22\n" (make-string 22 127))
                              'pbm t))
  (insert ?g)
  (redisplay)
  (delete-char -1))




In GNU Emacs 25.1.1 (i686-w64-mingw32)
 of 2016-09-18 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.0.6002
Configured using:
 'configure --host=i686-w64-mingw32 --without-dbus
 --without-compress-install CFLAGS=-static'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS

Important settings:
  value of $LANG: JPN
  locale-coding-system: cp932

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:

Load-path shadows:
None found.

Features:
(novice network-stream nsm starttls tls gnutls mailalias smtpmail
auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv
eieio-core cl-macs gv pp shadow sort mail-extr emacsbug message dired
format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns
help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils
time-date mule-util japan-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table
w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote w32notify w32 multi-tty
make-network-process emacs)

Memory information:
((conses 8 107526 23155)
 (symbols 32 21046 0)
 (miscs 32 95 243)
 (strings 16 20052 5589)
 (string-bytes 1 577364)
 (vectors 8 15163)
 (vector-slots 4 542778 17060)
 (floats 8 199 312)
 (intervals 28 914 6)
 (buffers 520 23))




Acknowledgement sent to ynyaaa@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#25863; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 26 Feb 2017 15:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.