From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#46320: 27.1; bugs about scrolling buffer with images Date: Fri, 05 Feb 2021 14:45:34 +0900 Message-ID: <86r1lvm5j5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37792"; mail-complaints-to="usenet@ciao.gmane.io" To: 46320@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 05 06:46:11 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 1l7twY-0009gI-Em for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Feb 2021 06:46:10 +0100 Original-Received: from localhost ([::1]:54998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7twW-00058n-Uj for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Feb 2021 00:46:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7twQ-00058e-4b for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2021 00:46:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7twP-0001EG-Tf for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2021 00:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7twP-0000PG-Ou for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2021 00:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Feb 2021 05:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46320 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16125039471534 (code B ref -1); Fri, 05 Feb 2021 05:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Feb 2021 05:45:47 +0000 Original-Received: from localhost ([127.0.0.1]:42596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7twA-0000Of-LI for submit@debbugs.gnu.org; Fri, 05 Feb 2021 00:45:47 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:49146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7tw8-0000OX-9U for submit@debbugs.gnu.org; Fri, 05 Feb 2021 00:45:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7tw8-00056s-1i for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2021 00:45:44 -0500 Original-Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:33030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7tw5-000141-Fz for bug-gnu-emacs@gnu.org; Fri, 05 Feb 2021 00:45:43 -0500 Original-Received: by mail-pf1-x429.google.com with SMTP id o20so3638110pfu.0 for ; Thu, 04 Feb 2021 21:45:41 -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=U4XgnlFX+6LcdQ0aPcOu8ht3eCVCUSEQiCP2L+vYQ9Q=; b=SHiN5BLVjTkqHaVkHEJ/MRMB14zRZU2L7qnRnM7YAkOCHEd4zesNX3vo4/x1ZZ/0wD 9iHQjkEGgvXbAAw2A+FBZQSZVbM9vU91GxNVKqhPnHc1WTzmHVyLHr1srH9uzBBKwKaV Cc+kstHlX6tvOQU4avQ81q148uhv6t7M+Winj/AlqDDPJK15KQl61ZH3SjtDpBlqm6wH MPJ5QKimq/zBPi8P2rTB0d58D3/pL9TPk4rMn5b5c1zir17QMpzoy8lLvkrphJHw5YWg wCclOngSLoEXQ+lTb0lMblFsrloWFkj9KixJalXmvboHS00hqelOPbOszuvbYaRRhDHA td+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:subject:date:message-id:mime-version; bh=U4XgnlFX+6LcdQ0aPcOu8ht3eCVCUSEQiCP2L+vYQ9Q=; b=CTIZYO/npwVLFvIqtr+EIOMVNcI3xkuEs5uonYbVg6dPIbY0xFU1ojrIfTekmd5SCs pSO5moYnXOb4sWtXu8n7spIPzgt9jSVTVrDJ7FbJxzwJ6JITpOi9OI7hNqdP2s+rAhZ2 PS4Een1grnR93d0ZIP0YnjCZvYiCzU9c+gFhKBLvFDeXutC4RIhDnkN8vJElZHxy96+S 0h9dn99wOiHpwyNh2Ug+k7ckgGRIYTy0q/cT2qX3AFXcf9OyR4M186KGpfS8AoRQn6tE tnhYGXBOexlNApDFq3gSQbuS7DeiSsGQvU7A47j9SfQd157kGD71hdtm2uboXXi4gM35 2wrg== X-Gm-Message-State: AOAM531aAGaBBElLJojVxEVCWr79ESu/ibxIy5OfeU9JR787bYyOWmhP EV6NkvlbCyyIKEjtfMfU9s7zO30PWgo= X-Google-Smtp-Source: ABdhPJxUTMRNJiUpo/Bn8XonekocOYWO4eYLh1XJ/vg2urbUzhjAMGVvOAehKfyeBCcgsgEoVtILxQ== X-Received: by 2002:a63:9f01:: with SMTP id g1mr2574400pge.259.1612503939189; Thu, 04 Feb 2021 21:45:39 -0800 (PST) Original-Received: from HP (east42-p109.eaccess.hi-ho.ne.jp. [219.121.173.110]) by smtp.gmail.com with ESMTPSA id c17sm6944187pjq.17.2021.02.04.21.45.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 21:45:38 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=ynyaaa@gmail.com; helo=mail-pf1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:199337 Archived-At: In this report, font size is important. If font size differs, window size or image size should be changed. But I can not find the relations. The cases below are tested with emacs -Q. In my environment, the font used by 'emacs -Q' is harfbuzz:-outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 and (frame-char-height) => 16. (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 "\ " 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)) ) (2)unable to scroll up Evaluate the form below and type C-v repeatedly, the buffer never scroll up to the end of the buffer. Once in three times, the buffer scrolls down and the line 2 is displayed at the top of the window. (let* ((buf (generate-new-buffer "tmp")) (width 80) (height 250) (svg (format "\ " width height width height)) (img (create-image svg 'svg t :scale 1 :ascent 100))) (switch-to-buffer buf) (setq header-line-format "with header line") (insert "1\n2\n3\n4\n5\n") (insert-image img "6") (insert "\n7\n8\n9\n10\n11\n") (set-frame-height nil 18) (delete-other-windows) (goto-char (point-min)) ) In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-22 built on CIRROCUMULUS Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.18363 System Description: Microsoft Windows 10 Pro (v10.0.1909.18363.1316) Recent messages: Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP 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 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 Load-path shadows: None found. Features: (tabify gnutls network-stream nsm mailalias smtpmail auth-source eieio eieio-core cl-macs eieio-loaddefs json map rect cl-seq image-mode exif misearch multi-isearch cl-extra cl-print thingatpt help-fns radix-tree help-mode pp shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/bobcat japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 75332 20037) (symbols 48 7618 6) (strings 32 24171 2210) (string-bytes 1 722800) (vectors 16 13737) (vector-slots 8 242590 23228) (floats 8 48 310) (intervals 56 1150 0) (buffers 1000 19))