From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Nicodemus Newsgroups: gmane.emacs.help Subject: Why does saving a buffer to a new file clear local variables? Date: Tue, 10 Dec 2024 23:05:00 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31000"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 11 14:58:40 2024 Return-path: Envelope-to: geh-help-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 1tLNEe-0007zg-Ht for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 14:58:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLNE7-0001VA-1m; Wed, 11 Dec 2024 08:58:07 -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 1tLDyM-0007j5-Ne for help-gnu-emacs@gnu.org; Tue, 10 Dec 2024 23:05:14 -0500 Original-Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLDyK-0000ed-LG for help-gnu-emacs@gnu.org; Tue, 10 Dec 2024 23:05:13 -0500 Original-Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-4aff5f862baso1422309137.2 for ; Tue, 10 Dec 2024 20:05:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733889911; x=1734494711; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=AR4i/jVEuOfih75LlLFVCr4GIYwy3ZNoddXIDZaYyhk=; b=NZwYfWlHwC/zOm2Xw9LVG0rQHenJHcieiUcW6oHp5iRCw4OgY8jVGz/3KOH0t9ulbU YO3E9WQuAZO18qLun53xVOOHA8tta91jmzpBQF1Tbizi7gjne/n7upilN4xHPo0gaQtY GqZjueMRf+zaVaAUe2PkDUvHyDwNKJ2bUQ9PG+aTCUXJVZ0lUpNEHtz0gUDaUJLns7hM y8jmaz6Xmiv5wefw0Se9iBBnQqZyTgiGicg52PuGCrAzHaR/saWkfoFHfawEK7QhUYok qNAseVVMSDMo+BdnCtoCR2gPijYlnrCzznLkbqKl+zpKjoeQtnGtsGfjecsVQRl9TROh yM0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733889911; x=1734494711; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AR4i/jVEuOfih75LlLFVCr4GIYwy3ZNoddXIDZaYyhk=; b=uFTvBNv5bWUb0RKT3c8REX/uFA2wKq7Nx96feRYijKdsaVAnzbFkr3rJ8upt5hd4A9 BQuuolGQPCm1w7q+dvGsXYUQl/OxIZ828KCtdBdxqGDVWqgLC+7WsmOnpduk3JiXlopk PUN7v2ED6+0Voq+5as0mBS9ySS+FrNrUMq5gcNPyB0jZwqzNARNW+mq3T9ExbsV1pEqQ obJrcMKwoEu2/3+zbfq2MAE8r0v/8HjvGduIASmlZOooLoAsvqlKINLR4LkEQraWsGYh JAhQtGZDCURIRO7ILZ1tyRTdbaGJ1Ne0BzVmWoFi8ZjVAMQoWZUL0DB2JcdyCDwMV8QG 8oJA== X-Gm-Message-State: AOJu0YwzNMxcfZnkM+wmTqhxOtzU01HaWFX6o+1PnpTEHKcevGWnvxN7 igzbVpQXvv+FSUq0RHCG8kWBqahc3RvblNVL6ssLmAn/uD4keu2tydKEJ5zAsr3BfRq+SAoJi2n CSABueXxX+9Qm95vgK9hnWjxUCVrrEg== X-Gm-Gg: ASbGncs44EqLBWmvqd4bSAXd3FdUZ8aqAGMr/FJwuwJ7kLrSJhDDWZfnAZVLJc+iY+P rlGcqsSm8v/vVDAM4Z4y/P61MYkAsZjNgMg== X-Google-Smtp-Source: AGHT+IGhGvKT5Qgm7IR2ByLYSEeMPH3eIu1e5x0StA4RERs3tYbf1B+ftyRTSZ2eHPYTXgmiYeVckjOaFrQAVbw1Dss= X-Received: by 2002:a05:6102:26c2:b0:4af:3ad1:a26 with SMTP id ada2fe7eead31-4b128fed5d3mr1741682137.16.1733889911107; Tue, 10 Dec 2024 20:05:11 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=gadget142@gmail.com; helo=mail-vs1-xe2a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 11 Dec 2024 08:58:03 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148758 Archived-At: If I create a new buffer like (get-buffer-create "tmpbuf"), switch to the buffer, and execute the commands (make-variable-buffer-local "abc") (setq abc 3) and then save the buffer to, say, "tmpbuf", then abc becomes nil. Why is this the case? Is this behavior documented anywhere? I checked that it doesn't change the major mode. It is "Fundamental" before and after saving.