From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60730: 29.0.60; Free variable with :buffer keyword in ert-with-temp-file Date: Sun, 29 Jan 2023 08:28:57 +0200 Message-ID: <83pmax97me.fsf@gnu.org> References: <87o7r5ji3q.fsf@neverwas.me> <874jsazqzz.fsf@neverwas.me> <83edreaehg.fsf@gnu.org> <87k016y7o9.fsf@neverwas.me> <838rhmab8f.fsf@gnu.org> <874jsaumk7.fsf@neverwas.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34011"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefankangas@gmail.com, 60730@debbugs.gnu.org To: "J.P." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 29 07:30:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pM1Cg-0008gU-Gp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Jan 2023 07:30:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pM1CV-0001J1-S8; Sun, 29 Jan 2023 01:30:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM1CU-0001Iq-FB for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 01:30:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pM1CU-0006Zi-6W for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 01:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pM1CU-0004Gs-1x for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 01:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Jan 2023 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60730 X-GNU-PR-Package: emacs Original-Received: via spool by 60730-submit@debbugs.gnu.org id=B60730.167497375516332 (code B ref 60730); Sun, 29 Jan 2023 06:30:02 +0000 Original-Received: (at 60730) by debbugs.gnu.org; 29 Jan 2023 06:29:15 +0000 Original-Received: from localhost ([127.0.0.1]:42060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM1Bj-0004FM-6U for submit@debbugs.gnu.org; Sun, 29 Jan 2023 01:29:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM1Bh-0004F6-D6 for 60730@debbugs.gnu.org; Sun, 29 Jan 2023 01:29:13 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM1Bb-0006UO-MN; Sun, 29 Jan 2023 01:29:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jwkhD7lqlzTsnZsKA0FGszAWjY1NRBfW4dr9nDmetRA=; b=R9rELhb0YDwp 4MRSSs7/0v7NXifqwE8GQJ8MnBON3TtNkTJ3flSGpjE/aKWq7h40p9brM0VRI4xcqLDcV65AeN3+D bNgwuRD4zdZQiqOic9tLSaoxAgoPOvApVT3AoUuJQqdC4PqUU02+XaH99gWxwBhpBRKLaokHkpdKf wvRfCnVFPxiVCzFQEczUY/LHT+ZdxXNtancV3cdUYPahNsRIVf7XvPBJ8L4vXYTG0Cb1MeT3JFUBE 7sRHEUTq9I8oN7rIT3mFjAyZOhAZxHqf11u8OmqBTESGOPr5VqZ4HESOYfEXtvu8Kp9Oxd/mNaUKU I1HLbl9Cq1sWBji3QDYuQQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM1Ba-00087W-Ta; Sun, 29 Jan 2023 01:29:07 -0500 In-Reply-To: <874jsaumk7.fsf@neverwas.me> (jp@neverwas.me) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254329 Archived-At: > From: "J.P." > Cc: 60730@debbugs.gnu.org, stefankangas@gmail.com > Date: Sat, 28 Jan 2023 18:00:40 -0800 > > When the value of `coding-system-for-write' is non-nil, only quoting it > twice survives expansion: > > (setq coding-system-for-write ''raw-text) > (ert-with-temp-file myfile) > > -> (let* ((coding-system-for-write 'raw-text) ...) > > Otherwise, we get a free variable: > > (setq coding-system-for-write 'raw-text) > (ert-with-temp-file myfile) > > -> (let* ((coding-system-for-write raw-text) ...) OK, in that case we should indeed solve this in the code by something like the patch you proposed.