GNU bug report logs - #65840
29.1; desktop-load moves frames to the right and down

Previous Next

Package: emacs;

Reported by: tanzer <at> gg32.com

Date: Sat, 9 Sep 2023 12:34:01 UTC

Severity: normal

Found in version 29.1

Full log


View this message in rfc822 format

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: 65840 <at> debbugs.gnu.org
Cc: luangruo <at> yahoo.com, eliz <at> gnu.org, tanzer <at> gg32.com
Subject: bug#65840: 29.1; desktop-load moves frames to the right and down
Date: Wed, 13 Sep 2023 20:51:43 +0200
Christian Tanzer via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> On 13.09.2023, at 06:09, Gerd Möllmann <gerd.moellmann <at> gmail.com> wrote:
>> 
>> I guess this wasn't with emacs -Q, or was it?
>
> No, it wasn’t.
>
> 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=(~/emacs/29/src/emacs -Q)

save_desktop=(--eval '(desktop-save ".")')
read_desktop=(--eval '(desktop-read ".")')
print=(--eval "(print (frame-position (selected-frame)) #'external-debugging-output)")
kill=(--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.




This bug report was last modified 1 year and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.