From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46320: 27.1; bugs about scrolling buffer with images Date: Fri, 05 Feb 2021 09:59:05 +0200 Message-ID: <83y2g3oshi.fsf@gnu.org> References: <86r1lvm5j5.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8695"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46320@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 05 09:00:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7w2E-00028B-5D for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Feb 2021 09:00:10 +0100 Original-Received: from localhost ([::1]:37186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7w2C-0007zw-Qt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Feb 2021 03:00:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7w26-0007zl-9b for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2021 03:00:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7w26-0004TH-0e for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2021 03:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7w25-0003qf-TR for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2021 03:00:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Feb 2021 08:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46320 X-GNU-PR-Package: emacs Original-Received: via spool by 46320-submit@debbugs.gnu.org id=B46320.161251195214711 (code B ref 46320); Fri, 05 Feb 2021 08:00:01 +0000 Original-Received: (at 46320) by debbugs.gnu.org; 5 Feb 2021 07:59:12 +0000 Original-Received: from localhost ([127.0.0.1]:42667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7w1I-0003pD-Dq for submit@debbugs.gnu.org; Fri, 05 Feb 2021 02:59:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7w1F-0003oj-6t for 46320@debbugs.gnu.org; Fri, 05 Feb 2021 02:59:10 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55973) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7w19-00040X-Uy; Fri, 05 Feb 2021 02:59:03 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1381 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l7w18-0007Wf-5n; Fri, 05 Feb 2021 02:59:02 -0500 In-Reply-To: <86r1lvm5j5.fsf@gmail.com> (ynyaaa@gmail.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199339 Archived-At: > From: ynyaaa@gmail.com > Date: Fri, 05 Feb 2021 14:45:34 +0900 > > (1)wrong display > Evaluate the form below, only the line 20 is displayed. > Type C-p, the buffer scrolls down and the lines 2 to 17 are > displayed and the cursor is displayed at the end of line 2. > At this time, the real current point must be at the beginning of the > line 19. > Type C-p again, the line 18 is displayed at the top of the window. > > (let* ((buf (generate-new-buffer "tmp")) > (width 80) > (height 350) > (svg (format "\ > xmlns=\"http://www.w3.org/2000/svg\"> > > > " width height width height)) > (img (create-image svg 'svg t :scale 1))) > (switch-to-buffer buf) > (setq header-line-format "with header line") > (insert-image img "1") > (insert "\n2\n3\n4\n5\n6\n7\n8\n9\n") > (insert-image img "10") > (insert "\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n") > (set-frame-height nil 40) > (delete-other-windows) > (forward-line -1) > (set-window-start nil (point)) > ) This is already fixed in Emacs 28 (the master branch). > (2)unable to scroll up Please don't report more than one problem in each bug report, even if they are about similar issues. Please make a separate report about each problem. TIA.