From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#56008: 29.0.50; image-mode buffer scrolled down automatically Date: Thu, 16 Jun 2022 19:44:13 +0530 Message-ID: <87k09gzoei.fsf@gmail.com> References: <87pmj9cl4l.fsf@gmail.com> <87czf8ervd.fsf@gnus.org> <878rpwer6z.fsf@gnus.org> <87o7yszqx6.fsf@gmail.com> <834k0kr9rd.fsf@gnu.org> <87sfo4bt5r.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40062"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , 56008@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 16 16:15:20 2022 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 1o1qHH-000AFW-67 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 16:15:19 +0200 Original-Received: from localhost ([::1]:51190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1qHG-0005mF-7P for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 10:15:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1qH0-0005lj-Vt for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2022 10:15:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1qH0-0005jE-Mi for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2022 10:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1qH0-00029Z-Ga for bug-gnu-emacs@gnu.org; Thu, 16 Jun 2022 10:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jun 2022 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56008 X-GNU-PR-Package: emacs Original-Received: via spool by 56008-submit@debbugs.gnu.org id=B56008.16553888718220 (code B ref 56008); Thu, 16 Jun 2022 14:15:02 +0000 Original-Received: (at 56008) by debbugs.gnu.org; 16 Jun 2022 14:14:31 +0000 Original-Received: from localhost ([127.0.0.1]:42731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1qGV-00028W-7P for submit@debbugs.gnu.org; Thu, 16 Jun 2022 10:14:31 -0400 Original-Received: from mail-pl1-f195.google.com ([209.85.214.195]:39513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1qGQ-00028F-7a for 56008@debbugs.gnu.org; Thu, 16 Jun 2022 10:14:30 -0400 Original-Received: by mail-pl1-f195.google.com with SMTP id o17so1382514pla.6 for <56008@debbugs.gnu.org>; Thu, 16 Jun 2022 07:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=CeOyIc/WJrXo8OEppNl/I8dgZAvRCyMCDtnzz/mk4+4=; b=Dc4DfUFwP1LL2NYZ+A5Wh1a2dKlkjuRh1TdfcDjj7WI1K2pzgEu3m4H7AUeMv+yCD0 PdVLyjSUfKP2G4RS2jvHPhDQD29geei+np6Fd6OOi5WcnmokKBB3SRdDAz6m1PjM/6gU bpemFOG7Hn8McyGrkw/xoF1GBklRwHULa2TB0kfOqKfgmv67C37h0KDNVs8DT0qrVQHL J/L6OL2nAnAYX95ETFmh6n6dDSLJLNC01GMvy5yJFg0zCsRg1tKF7tlv8maLikr+6hLH /wWg7ev6ihomjcMSX9OXfqnRCFKbV/fATU4krk0a8fWAoGZpyEikE7zqSQnAcGwPFESf ZH5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=CeOyIc/WJrXo8OEppNl/I8dgZAvRCyMCDtnzz/mk4+4=; b=EtKmHPqHxmH+xtG1dsoU9dW3syz0MwFpJwmNWBkVn6QPQELKvWKetodFvZ7jupF/Du BY5eAQ622g1MGCBiWA0cbLkFMEoo+x4R+jS9Cl+4Z11UwRMbOcDRGQuoHgwButfA553X U5151Ng+RryK+lTjiWo2keFsl7X4G9C9arXDJohxOcXv4n/6U6Zo3vZTBtMGhU+caJY5 eN412EJrT7mhw3CjJ02cWpafOhDSNRmJbKippdvQy/6AFpCkdX9spv7P/wlHZR4y4Vc0 PzlWDBtGRWIcyrslNMoUWGJdP95ArtvzQaC//XjfXVoRDJPSA4dVYNWASaMg2VGQK4z7 yKHA== X-Gm-Message-State: AJIora/CXLn0lBDx2kelXDFloqd2sYV4Ndd1tD2vWjVAiTN0XqMlJKMo i++J7GWpwWiYAz8ad3TxgA0= X-Google-Smtp-Source: AGRyM1vwtHRXC0UXZdCt5MYvVoSLXzsKu6wqxxLNvLnxcRXJ7SueU7L3D18QEAw15jNfQqGT32MbPw== X-Received: by 2002:a17:90b:1c11:b0:1e7:8bd2:697d with SMTP id oc17-20020a17090b1c1100b001e78bd2697dmr16163808pjb.90.1655388860066; Thu, 16 Jun 2022 07:14:20 -0700 (PDT) Original-Received: from localhost ([49.205.83.195]) by smtp.gmail.com with ESMTPSA id ix5-20020a170902f80500b00168eab11f67sm1717739plb.94.2022.06.16.07.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 07:14:18 -0700 (PDT) In-Reply-To: <87sfo4bt5r.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 16 Jun 2022 16:05:20 +0200") 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:234643 Archived-At: [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE=9C= =E0=AF=82=E0=AE=A9=E0=AF=8D 16, 2022 16:05] Lars Ingebrigtsen wrote: > Eli Zaretskii writes: > >> No, this _is_ specific to eww and shr. Well, in a way: shr.el does >> something which directly causes this. Stay tuned. > FWIW, I first saw this when using ement.el which inserts text in buffers whenever it receives a matrix message. The bug report I filed in ement.el = bug reporter can be found here: https://github.com/alphapapa/ement.el/issues/58= .=20=20 Maybe it is of some value, but I could never get to the root of the problem. And I heard another user seeing something similar as well, just me or sometimes pdf-view-mode from pdf-tools will automatically reset buffer position to initial position (like it just scrolls up the buffer). The scenario in which it happens is when I have a frame with two windows vertically splited, window 1 is for org-mode, and window 2 is for pdf-view-mode, and current focus is on window 1. seems to be triggered after `Creating LaTeX preview... done.` by org-latex-preview and org-fragtog, and when saving the file. > I wondered whether it had something to do with shr-string-pixel-width > and friends (which does play games with windows), but stubbing those out > still led to the same problems, apparently. > > (shr-string-pixel-width should be replaced with string-pixel-width (sort > of), though.) When I tried to dig around in ement.el's source code, I thought it was `save-window-excursion' but that turned out not to be the case AFAIU.