From: martin rudalics <rudalics@gmx.at>
To: Glenn Morris <rgm@gnu.org>, Philipp Stephani <p.stephani2@gmail.com>
Cc: 25380@debbugs.gnu.org
Subject: bug#25380: 25.1; save-window-excursion problem in batch mode
Date: Mon, 09 Jan 2017 10:39:36 +0100 [thread overview]
Message-ID: <58735A58.80801@gmx.at> (raw)
In-Reply-To: <7qwpe5xusr.fsf@fencepost.gnu.org>
>> Apparently, restoring a window configuration doesn't result in the same
>> window configuration in batch mode:
>>
>> $ emacs -Q -batch -eval '(print (equal (save-window-excursion (current-window-configuration)) (current-window-configuration)))'
>>
>> nil
>
> It works in 24.5 and earlier. Something to do with window-edges?
>
> emacs -Q -batch --eval '(progn (setq c (current-window-configuration))
> (print (window-edges))
> (set-window-configuration c)
> (print (window-edges)))'
>
> 24.5:
> (0 1 10 9)
> (0 1 10 9)
>
> 25.1:
> (0 0 10 9)
> (0 1 10 10)
IIUC the pixel comes from a menubar line which gets spuriously added.
If someone told me how to debug this, I might be able to tell more. I
have no idea how the frame seen by ‘current-window-configuration’ gets
created in batch mode. I never use batch mode.
martin
next prev parent reply other threads:[~2017-01-09 9:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-06 23:05 bug#25380: 25.1; save-window-excursion problem in batch mode Philipp Stephani
2017-01-08 18:37 ` Glenn Morris
2017-01-08 23:38 ` Philipp Stephani
2017-01-09 9:39 ` martin rudalics [this message]
2017-01-09 15:16 ` Eli Zaretskii
2017-01-09 16:19 ` martin rudalics
2017-01-09 16:44 ` Eli Zaretskii
2017-01-10 8:22 ` martin rudalics
2017-01-10 17:11 ` Eli Zaretskii
2017-01-10 18:06 ` martin rudalics
2017-01-10 18:26 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58735A58.80801@gmx.at \
--to=rudalics@gmx.at \
--cc=25380@debbugs.gnu.org \
--cc=p.stephani2@gmail.com \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).