From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#65840: 29.1; desktop-load moves frames to the right and down Date: Wed, 13 Sep 2023 20:51:43 +0200 Message-ID: References: <7F89604C-CB17-41DE-85EE-F46700694F04@gg32.com> 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="39039"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com, eliz@gnu.org, tanzer@gg32.com To: 65840@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 20:53:24 2023 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 1qgUzL-0009uY-F7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 20:53:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgUyx-0002jY-H1; Wed, 13 Sep 2023 14:52:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgUyv-0002it-BY for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 14:52:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgUyv-0003yN-3g for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 14:52:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgUyz-0004wL-Nw for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 14:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2023 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65840 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Christian Tanzer via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Po Lu , Eli Zaretskii , 65840@debbugs.gnu.org, Christian Tanzer Original-Received: via spool by submit@debbugs.gnu.org id=B.169463113718933 (code B ref -1); Wed, 13 Sep 2023 18:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2023 18:52:17 +0000 Original-Received: from localhost ([127.0.0.1]:36028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgUyH-0004vI-10 for submit@debbugs.gnu.org; Wed, 13 Sep 2023 14:52:17 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:60534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgUyE-0004v5-Sd for submit@debbugs.gnu.org; Wed, 13 Sep 2023 14:52:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgUy4-0002aZ-11 for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 14:52:04 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgUxo-0003eE-JM; Wed, 13 Sep 2023 14:52:03 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9a9d82d73f9so21282766b.3; Wed, 13 Sep 2023 11:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694631106; x=1695235906; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0/JUaqA+e69XL5LX1T9f5Vs1jz2UsGSA8/BzOaMGEv0=; b=GWmnMGVvKpDdcVV93cp9Z2zZ7lq1Jm2I3zgQ/omCAX0uLD+sxOfVwTKQKf+u7fKam1 5zROPme72R7fxnHv0qLwrBRANW80j5hlBN1qNjM96fUNtAtJ6aziFE9pdJ6/LQnJlg0a XxAzyUeW3XCRMVmsusZPoyRkILJVPaU+JJsVbhTCp3ktDRys4qNoUK5OhawtHz10X8rj /hHo5wI/QjWJPh5bioy0u8+nqy7DGbJItzyUxyuIPaiIiSvu8MFS7iYRJUmH8nvyx8ix Khckp3cafFceoFuvnzu/8KX02L5OOULkCS+r94XWMnQMv6mOCkjxZUUKGvbqrzV1BO2a OcOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694631106; x=1695235906; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0/JUaqA+e69XL5LX1T9f5Vs1jz2UsGSA8/BzOaMGEv0=; b=tm2KFw6+X5vjkMww9AgK+C0ArfWFyTKkmDT0VHtEzGhopqEBRk18ffKXKFHI8stzeQ 7oTwaKudU6KesvOEQvwRZ5faPXcO84sKfMgixgpjOd5ZU1VqCG9G3b2+mAIN8bBGN5oN KnLmXE5ebwsKNeLxCW9ZGCXWL6aO0rgjSIBH3b6zWU4uBHQWc+REDsza9sRQ6s6zSwPa 9HspTOflBRUP4EFKSWRXba2V1GbVBLRe3G0nB/Gb/2amAhLZZgCaU4iqQga7nq2KCB5j seF48AL0ANc0LBIFkSOgfWiftRmCcfSO0x7WDke5bfB41WxYWDXlR4fdTlg/ZJVYxgrJ Yjug== X-Gm-Message-State: AOJu0YxquIZJu5OZV708rUo2Uo+84W3kI9biaZ0cZtEiBuVjDctXVUMK bTaNVS1tY4URWCiqcpH+mk4= X-Google-Smtp-Source: AGHT+IFEOmI1w6UW4K2qcyfEhj1pcRbv0YV7APKcUgTl377be3NVfFmKHgte3hirinBaAr2VsiuzuA== X-Received: by 2002:a17:906:518a:b0:9a5:c9a4:ba1b with SMTP id y10-20020a170906518a00b009a5c9a4ba1bmr2516643ejk.8.1694631106140; Wed, 13 Sep 2023 11:51:46 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3a1ac.dip0.t-ipconnect.de. [79.227.161.172]) by smtp.gmail.com with ESMTPSA id f10-20020a170906390a00b00992e94bcfabsm8788790eje.167.2023.09.13.11.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 11:51:45 -0700 (PDT) In-Reply-To: <7F89604C-CB17-41DE-85EE-F46700694F04@gg32.com> (Christian Tanzer via's message of "Wed, 13 Sep 2023 19:27:52 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62e.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270347 Archived-At: Christian Tanzer via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > On 13.09.2023, at 06:09, Gerd M=C3=B6llmann wr= ote: >>=20 >> I guess this wasn't with emacs -Q, or was it? > > No, it wasn=E2=80=99t. > > And with -Q the frame positions are restored correctly. Ok, thanks. > There is still the question why Emacs 29 behaves differently then 28 > or earlier in my environment and shifts the frames upon desktop-read. > > Any hints what I should look for in my elisp code in this regard? Not really, I'm afraid. Maybe someone else has an idea? The usual way I find out where something this comes from is a binary search: disable half of your configuration, and see if the bug is still there. If yes, the bug is in the half that's still present. And so on... Maybe a variant of the zsh script below could be helpful for that. I wrote it for this bug report to check the behavior of different Emacs versions on different platforms. #! /usr/bin/env zsh emacs=3D(~/emacs/29/src/emacs -Q) save_desktop=3D(--eval '(desktop-save ".")') read_desktop=3D(--eval '(desktop-read ".")') print=3D(--eval "(print (frame-position (selected-frame)) #'external-debugg= ing-output)") kill=3D(--eval '(kill-emacs)') rm -f .emacs.desktop $emacs -Q $save_desktop $print $kill $emacs -Q $read_desktop $print $kill The script prints the frame position before saving a desktop, and after restoring it.