From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ALXRKB3LzV7pCgAA0tVLHw (envelope-from ) for ; Wed, 27 May 2020 02:06:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KEauJB3LzV6iHgAA1q6Kng (envelope-from ) for ; Wed, 27 May 2020 02:06:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D4C989400EF for ; Wed, 27 May 2020 02:06:20 +0000 (UTC) Received: from localhost ([::1]:38528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdlSV-0000oV-R6 for larch@yhetil.org; Tue, 26 May 2020 22:06:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdlS4-0000oJ-8c for emacs-orgmode@gnu.org; Tue, 26 May 2020 22:05:52 -0400 Received: from pb-smtp21.pobox.com ([173.228.157.53]:57471) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdlS2-0003Lj-DF; Tue, 26 May 2020 22:05:51 -0400 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id C3CF2C4EC5; Tue, 26 May 2020 22:05:47 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=2p6oiPfptjY/+Lpz/9FT3g3cFE8=; b=PKzEva 8+DObE6F7JjFQXXAp4+CHTQs8XC51XXSOiJ4RkyoFXbi6zFYZSDg2pYX6t5SsS5F 3FDxJ68M2Cd+CAkPuu6ZAQSgEachqKW/l4jYj/R+My2Vfnkc4kgQZD/BqHnucJd5 MI6nWR7KSRPLtgNaYOJUNZ/aYdIJdDGsCCa00= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id BBA0BC4EC4; Tue, 26 May 2020 22:05:47 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=SqE7+IHtN3zXT9i57kV00hlvniqRxnRedtRVzClKC2M=; b=ZpukFDvJvQK+AdhsrXrq1BlwWHgL11vQmAcGrJBSnBfIzWcrBOh1VzMw68t0+U6QgpeWXaIOUWN7oguynPfp4JwcrFOCACXGQuaBLwWwLynW03ab9qvdexR+wwj6VPeesdIniWmqN4xI858LD2SPI8o0GAzjynZle0qD4+ufHQ8= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 3AA70C4EC2; Tue, 26 May 2020 22:05:45 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Kevin Foley , emacs-orgmode@gnu.org Subject: Re: [PATCH] test-ob-tangle.el: Fix dirty repo state caused by testing In-Reply-To: References: Date: Wed, 27 May 2020 02:05:43 +0000 Message-ID: <87wo4yw2rs.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 9356204C-9FBE-11EA-A3D9-8D86F504CC47-24757444!pb-smtp21.pobox.com Received-SPF: pass client-ip=173.228.157.53; envelope-from=kyle@kyleam.com; helo=pb-smtp21.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/26 22:05:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastien Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=PKzEva 8; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=ZpukFDvJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: GQQ/vFlXnxsb Kevin Foley writes: > The attached patch kills the buffer of the file modified > during testing to prevent leaving the repo in a dirty state. Thanks. I applied it in 7a2b785d6 with a small tweak so that a buffer rather than a buffer name is passed to kill-buffer. In the context of the tests, the buffer name "babel.org" is very likely to be the one we intend to kill, but I think it's better to use the actual buffer object.