From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#19576: Fixed: bug#19576: write-file writes the wrong buffer Date: Fri, 20 Nov 2015 21:17:52 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1143a94cef55a50524fe91ed X-Trace: ger.gmane.org 1448050793 29674 80.91.229.3 (20 Nov 2015 20:19:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Nov 2015 20:19:53 +0000 (UTC) To: 19576-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 20 21:19:39 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zzs9h-00045i-Vi for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Nov 2015 21:19:38 +0100 Original-Received: from localhost ([::1]:49692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zzs9c-0005Q2-Gy for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Nov 2015 15:19:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zzs9D-0004lV-6S for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2015 15:19:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zzs98-0003pJ-EK for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2015 15:19:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zzs98-0003pE-B1 for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2015 15:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zzs97-0003MU-Um for bug-gnu-emacs@gnu.org; Fri, 20 Nov 2015 15:19:01 -0500 In-Reply-To: Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Nov 2015 20:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19576 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 19576@debbugs.gnu.org, andlind@gmail.com, andlind@gmail.com Original-Received: via spool by 19576-done@debbugs.gnu.org id=D19576.144805069212852 (code D ref 19576); Fri, 20 Nov 2015 20:19:01 +0000 Original-Received: (at 19576-done) by debbugs.gnu.org; 20 Nov 2015 20:18:12 +0000 Original-Received: from localhost ([127.0.0.1]:46437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zzs8J-0003LD-Uk for submit@debbugs.gnu.org; Fri, 20 Nov 2015 15:18:12 -0500 Original-Received: from mail-vk0-f49.google.com ([209.85.213.49]:34352) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zzs80-0003KV-PF for 19576-done@debbugs.gnu.org; Fri, 20 Nov 2015 15:18:11 -0500 Original-Received: by vkbs1 with SMTP id s1so5071328vkb.1 for <19576-done@debbugs.gnu.org>; Fri, 20 Nov 2015 12:17:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0wR1ugHBumRLyDN86F3fKduPK0TWe45PLf2yKHwt6Ec=; b=C6yfvzXJSPhBSe/iw2E4bA6CKXntzquh5Fk+TAuqtW4UrHjJ7LyhBvoZVWFvIn66lz WcU/oXhPqFCD+9QVge96l7zi89B5tQJfL5/FssE1ZZh5FWd9drcviO+mp54qAE+MoZc9 Uo2gpVnaluxhkWBgU1mtQvhIYhCZHI0nnE7+nEMkK2T9AfWIXCPRhCc4RW/Byi90BA5c t0zgmqYyPTHphGFiuK/T70VW4stwCQbCAtxMAujSJTwxBsvXhoS8TCBb36GdV/jFMY6f JBXkfdvGFoyxNUD39AeUKriknwBtYefhiiPIWwMpiTO8+5K0PJAZ18G2tHZ6K7dw8aAX 7C7g== X-Received: by 10.31.146.66 with SMTP id u63mr1269726vkd.31.1448050672226; Fri, 20 Nov 2015 12:17:52 -0800 (PST) Original-Received: by 10.31.210.133 with HTTP; Fri, 20 Nov 2015 12:17:52 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108993 Archived-At: --001a1143a94cef55a50524fe91ed Content-Type: text/plain; charset=UTF-8 After discussing this with Eli and John, it was decided that the responsibility to restore the current buffer lies on the lisp function and not the Emacs code that calls `window-size-change-functions'. I committed a patch to follow.el that ensures that the buffer is restored, see http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25&id=75a1d009f747a220c7b9b1cfdbe7077082fe02d6 for details. -- Anders Lindgren --001a1143a94cef55a50524fe91ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
After discussing this with Eli and John, it was decided th= at the responsibility to restore the current buffer lies on the lisp functi= on and not the Emacs code that calls `window-size-change-functions'.
I committed a patch to follow.el that ensures that the buf= fer is restored, see=C2=A0http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=3Demacs-25&id=3D= 75a1d009f747a220c7b9b1cfdbe7077082fe02d6 for details.

=C2=A0 =C2=A0 -- Anders Lindgren

--001a1143a94cef55a50524fe91ed--