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#63891: 29.0.91; customize-save-variable should not save all variables if a custom file exists Date: Sun, 04 Jun 2023 17:26:43 +0300 Message-ID: <83h6rn5mn0.fsf@gnu.org> References: <83legz5qsu.fsf@gnu.org> <28e951a5-7065-4c55-b6d0-88238e8cc5eb@Spark> <83jzwj5pjn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16398"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63891@debbugs.gnu.org To: Jimmy Wong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 04 16:27:18 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 1q5ohS-00048B-Cp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Jun 2023 16:27:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5ohE-00014c-3V; Sun, 04 Jun 2023 10:27:04 -0400 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 1q5ohC-00014U-Ea for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 10:27:02 -0400 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 1q5ohC-0002vh-6l for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 10:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5ohC-0003MD-2A for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2023 10:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jun 2023 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63891 X-GNU-PR-Package: emacs Original-Received: via spool by 63891-submit@debbugs.gnu.org id=B63891.168588876412834 (code B ref 63891); Sun, 04 Jun 2023 14:27:02 +0000 Original-Received: (at 63891) by debbugs.gnu.org; 4 Jun 2023 14:26:04 +0000 Original-Received: from localhost ([127.0.0.1]:46842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5ogC-0003KU-Ti for submit@debbugs.gnu.org; Sun, 04 Jun 2023 10:26:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5ogA-0003KI-Vo for 63891@debbugs.gnu.org; Sun, 04 Jun 2023 10:25:59 -0400 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 1q5og5-0002mF-AX; Sun, 04 Jun 2023 10:25:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=EQnSDKkYpXtMjh6l6O1BU3lnVGEQ684ShOsGj2MwB48=; b=ex1hekIS9jTn8Bz3C25p dQ1RozVdCg+PheHPTqoyv8GaQaVxUTUU/hYEslUZIRS0T2B8DnNDMOXBpgPUKdPB68609bYMMsiqr zCOhlxHmjm2dcTPYd0Mebk24WovmAfI286/PgXAXP8vPPEijWoxBUgBY9v1IIorkkmDFPoChsoAyI zp8cCL+EYkUwSs5Ynf7aitQU3tCwtiHlVJ+9RiCcqXTfrcrEV7C8ZGdXml7pq3PcSRwT8WUqKKduW VJsyafnFmQEhwOQqD6IvzhFuDe0T/pbsmFkrYJFkAb6NesO+zjJD/vDU+72RGfOvPdFfWcRn2xjJJ 0vGlLfV0huRbsQ==; 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 1q5og1-00027j-Qg; Sun, 04 Jun 2023 10:25:51 -0400 In-Reply-To: (message from Jimmy Wong on Sun, 4 Jun 2023 15:00:01 +0100) 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:262955 Archived-At: > Date: Sun, 4 Jun 2023 15:00:01 +0100 > From: Jimmy Wong > Cc: 63891@debbugs.gnu.org > > This branch: https://github.com/emacs-mirror/emacs/blob/emacs-29/lisp/cus-edit.el#L1109 I don't know what that is. I'm using the Emacs Git repository, the emacs-29 branch. > No it does not saves only one variable to file, it only saves one variable to file if you have only modified > one variable. That's not what I see. I've modified several options using the menu-bar's Options menu, then typed M-x customize-save-variable RET truncate-lines RET y and saw that only truncate-lines was written to the custom file. If you see something else, please show a complete recipe that reproduces the behavior you see. > As a matter of fact, custom-variable-save, custom-variable-mark-to-reset-standard, > custom-face-save, custom-face-mark-to-reset-standard and custom-group-save all have the same > problem. They all call custom-save-all and they all dump all modified customizable variable values on > file without regard to whether it’s a single variable, face or a group the user asked Emacs to save. I wasn't talking about custom-save-all -- that indeed saves all the options customized in this session. I was talking about customize-save-variable, which prompts for a single variable and its value, and saves only that single variable, at least in my testing.