From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#25380: 25.1; save-window-excursion problem in batch mode Date: Sun, 08 Jan 2017 13:37:08 -0500 Message-ID: <7qwpe5xusr.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483900709 17269 195.159.176.226 (8 Jan 2017 18:38:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2017 18:38:29 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 25380@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 08 19:38:22 2017 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 1cQIM7-0002CL-Pj for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jan 2017 19:38:11 +0100 Original-Received: from localhost ([::1]:34463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQIMA-0003Vq-C6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jan 2017 13:38:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQIM1-0003Vl-EO for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:38:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQIM0-0006ZR-Hw for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:38:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59923) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQIM0-0006ZI-Dy for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:38:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cQILx-0004Hi-M2 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2017 13:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2017 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25380 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25380-submit@debbugs.gnu.org id=B25380.148390064116417 (code B ref 25380); Sun, 08 Jan 2017 18:38:01 +0000 Original-Received: (at 25380) by debbugs.gnu.org; 8 Jan 2017 18:37:21 +0000 Original-Received: from localhost ([127.0.0.1]:47089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQILJ-0004Gj-C5 for submit@debbugs.gnu.org; Sun, 08 Jan 2017 13:37:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQILI-0004GV-JE for 25380@debbugs.gnu.org; Sun, 08 Jan 2017 13:37:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQILC-0006TM-Cj for 25380@debbugs.gnu.org; Sun, 08 Jan 2017 13:37:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQIL8-0006Sh-Vc; Sun, 08 Jan 2017 13:37:10 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cQIL7-0007lF-4T; Sun, 08 Jan 2017 13:37:09 -0500 X-Spook: Drug war Antiviral BLU-97 A/B BLU-114/B Disaster medical X-Ran: {Ko4g"aoph8|!3=4d (Philipp Stephani's message of "Sat, 07 Jan 2017 00:05:16 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:127911 Archived-At: Philipp Stephani wrote: > 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)