From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#24240: 25.1.50; window-state-put, image-mode and window scrolling Date: Wed, 17 Aug 2016 10:30:26 +0200 Message-ID: <57B420A2.6020608@gmx.at> References: <87bn0ttyzc.fsf@hochschule-trier.de> <57B2F247.9050601@gmx.at> <8737m4u8j6.fsf@hochschule-trier.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020704060603090404010508" X-Trace: blaine.gmane.org 1471422766 13870 195.159.176.226 (17 Aug 2016 08:32:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2016 08:32:46 +0000 (UTC) Cc: 24240@debbugs.gnu.org To: Andreas Politz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 17 10:32:42 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZwHB-0003OY-QB for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Aug 2016 10:32:42 +0200 Original-Received: from localhost ([::1]:45981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZwH9-0003cd-09 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Aug 2016 04:32:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZwFf-000309-4V for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2016 04:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZwFa-0005rB-3o for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2016 04:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZwFa-0005r5-0j for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2016 04:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bZwFZ-0006ix-MO for bug-gnu-emacs@gnu.org; Wed, 17 Aug 2016 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Aug 2016 08:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24240 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24240-submit@debbugs.gnu.org id=B24240.147142264425825 (code B ref 24240); Wed, 17 Aug 2016 08:31:01 +0000 Original-Received: (at 24240) by debbugs.gnu.org; 17 Aug 2016 08:30:44 +0000 Original-Received: from localhost ([127.0.0.1]:59733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZwFI-0006iT-EL for submit@debbugs.gnu.org; Wed, 17 Aug 2016 04:30:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:62900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZwFG-0006iF-ID for 24240@debbugs.gnu.org; Wed, 17 Aug 2016 04:30:43 -0400 Original-Received: from [192.168.1.100] ([212.95.7.77]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MDyil-1bOfAK3DLD-00HSH0; Wed, 17 Aug 2016 10:30:35 +0200 In-Reply-To: <8737m4u8j6.fsf@hochschule-trier.de> X-Provags-ID: V03:K0:T8R/qn3l+CcDLjzAyJhl7AhVMeM80KVSVhYDonJkikmUItPKwdb qb7dMRSJoNtnjcCHb6kYjI7tvNoWgRomUQ8tZi5zU7wY+jM2YX9qjaDws80YjiuYv3yqBk+ i3ifJDfb6In1QUxP8MJ28jicaPMw1P22zAz/OefT1aFp3U1RkEqto861CrSN5sQCgB5eWJb xJXZdt1RM4gtfY5FIfysA== X-UI-Out-Filterresults: notjunk:1;V01:K0:fUnUUB7RzYo=:Jp/20AQrAXkN8tm8QgpODa gcCOi0aZpNq792LbveKeCdIquKc3W4t3sAk+OOiiwdcAGelRhuF9Kb7RSVNUOl2MzISk0SiP+ GEdMZZ7R3AiIpL9vANbw8KND6hrOxY+TmUNW9o26bzgjSgmFpj0psP2ree6RxDq2uwCL0kctz cwm9rMbxDus9hw0yjjOSRQ0OQUpj9TOSCTmkDHwqWMIVi8l+IW923SuoiPWVuVji+clEUOYEc DbMhgdc5/W9dXhFN5XbXDmvIclmTk+MCk0MtFi5pxxjbZKq+J0NPtEjkMCzpl9H6JoUmMIaBp PklZk3qveAG0xAdejsQcFY9ArbL/iNtVStTOXLZcuCwPyGlIh01+B8oyNPKIxyKCe554gXCLB T+EIhHBGOXR06OMBREYt9mObOYIPBvhZKENlpppqwwjjQe3eOvfw4+KrL61XGMZD3bScdqi/V 4oRoYJyQyj3fvMylUDlW1f0HAezl72AOPnLwGM1rtni9doXRe540qKqr5YVzetE7ttgW4hqkf +oOC+MQnkrzpAauq8lYg+vceMN5QvIDQaeEFkLF0E4p8yD1F5LtSAHXRh+hioJDiGLwxBEXIN pIxMTFgZ4MpGA/baaKb4oU+7jJtGtZ4NLnAvgqxuGOjU+PIFzRKu1GZo+7EqJayT8bYX06fR9 DiFZ0OAge87/eG8Lzll1aATrSJ8eLBld8VJ8CpKDFnQ4mUAfjVnYdL7B0hEahW+PZeVLb97ea E/EANB9hnC4+oQ3pbtDg3rkHHIHS/JbgCrKgj6Nrh95lBOzXFHdEcgER2RmFbHZcbIL7mLjd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122303 Archived-At: This is a multi-part message in MIME format. --------------020704060603090404010508 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable >> We'd need a variable, say =E2=80=98window-inhibit-configuration-chang= e-hook=E2=80=99. > > inhibit-window-configuration-change-hook ? We can abuse =E2=80=98frame-after-make-frame=E2=80=99. Try the attached,= completely untested patch. BTW I just noticed that we still run =E2=80=98window-configuration-change= -hook=E2=80=99 in far too many cases. I'll have to remove it from =E2=80=98window-resiz= e=E2=80=99, =E2=80=98window--resize-mini-window=E2=80=99, =E2=80=98adjust-window-trai= ling-edge=E2=80=99 and =E2=80=98balance-windows=E2=80=99. > The problem is, that it does work when edebugging it. Anyway, I think= I've > found the problem: It's the call to set-window-start, which in my > understanding forces the next redraw to scroll the window, thus > negating image-modes work. Would my patch work around that? martin --------------020704060603090404010508 Content-Type: text/plain; charset=windows-1252; name="inhibit-run-wcchh.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="inhibit-run-wcchh.diff" LS0tIGEvbGlzcC93aW5kb3cuZWwKKysrIGIvbGlzcC93aW5kb3cuZWwKQEAgLTU2MjAsMjEg KzU2MjAsMjkgQEAgd2luZG93LXN0YXRlLXB1dAogCTs7IG1pbmltdW0gcG9zc2libGUgc3Rh dGUuICBCdXQgc3VjaCBjb25maWd1cmF0aW9ucyBoYXJkbHkgbWFrZQogCTs7IHNlbnNlIGFu eXdheS4KIAkoZXJyb3IgIldpbmRvdyAlcyB0b28gc21hbGwgdG8gYWNjb21tb2RhdGUgc3Rh dGUiIHdpbmRvdykKLSAgICAgIChzZXRxIHN0YXRlIChjZHIgc3RhdGUpKQotICAgICAgKHNl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0ZXItbWFrZS1mcmFtZSBmcmFtZSB0KQorICAgICAgICAocHJvZzEKKyAgICAg ICAgICAgICh3aW5kb3ctLWNoZWNrIGZyYW1lKQorICAgICAgICAgIChydW4td2luZG93LWNv bmZpZ3VyYXRpb24tY2hhbmdlLWhvb2sgZnJhbWUpKSkpKSkKIAwKIChkZWZ1biBkaXNwbGF5 LWJ1ZmZlci1yZWNvcmQtd2luZG93ICh0eXBlIHdpbmRvdyBidWZmZXIpCiAgICJSZWNvcmQg aW5mb3JtYXRpb24gZm9yIHdpbmRvdyB1c2VkIGJ5IGBkaXNwbGF5LWJ1ZmZlcicuCgo= --------------020704060603090404010508--