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#71137: 29.3; Calc function calc-user-define-permanent broken Date: Thu, 23 May 2024 10:08:06 +0300 Message-ID: <86bk4x57l5.fsf@gnu.org> References: <0AF2D9A7-462B-4976-B3DF-43B3130F2EF3@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26672"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71137@debbugs.gnu.org To: Charles Choi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 23 09:09:22 2024 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 1sA2Zl-0006g5-EZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 May 2024 09:09:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sA2ZN-0002gG-SI; Thu, 23 May 2024 03:08:57 -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 1sA2ZM-0002fA-6X for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 03:08:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sA2ZL-0005F0-UC for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 03:08:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sA2ZR-0007hH-Oc for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 03:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 May 2024 07:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71137 X-GNU-PR-Package: emacs Original-Received: via spool by 71137-submit@debbugs.gnu.org id=B71137.171644810729577 (code B ref 71137); Thu, 23 May 2024 07:09:01 +0000 Original-Received: (at 71137) by debbugs.gnu.org; 23 May 2024 07:08:27 +0000 Original-Received: from localhost ([127.0.0.1]:58666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA2Yt-0007gy-GD for submit@debbugs.gnu.org; Thu, 23 May 2024 03:08:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA2Yo-0007gr-DV for 71137@debbugs.gnu.org; Thu, 23 May 2024 03:08:26 -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 1sA2Yc-00058h-S5; Thu, 23 May 2024 03:08:10 -0400 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=Rf6ATGYDAlUCIgM7bFd7x/XpyGJKRLz4it43J0Y0J3w=; b=S3yRgFQW1mVy sfxPKODUn44UjVjgQsH3vOnMB7vJC8HYxkRc1F7pVHIOB95KvN2/ii08ZxqKt7948ML2YmGnoX1EX z1ByzdQFioxLe93HzbxqSkNm3QE3wipMHoQWY+uNPMyzstpwYEME0NWPIOOqwGMHkOcb9eLZ+5o1Z /UkbF3Qg/KNXH/kxNMk1Zr5s70xqwInTTCg1/hWxK3vxHgPziY2OMPHM04MhA0T9/7bDhp2FnNV6p szSR4Q0QNL2Xd3bnNMqklWgh1V8Sof4tdLKIAl8U3Lhdo+3Y2ODm/qyilnUHuLlJrysidTO2EUDuY bQUN7zV+g+92lLFZdS4guA==; In-Reply-To: <0AF2D9A7-462B-4976-B3DF-43B3130F2EF3@gmail.com> (message from Charles Choi on Wed, 22 May 2024 12:18:36 -0700) 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:285684 Archived-At: > From: Charles Choi > Date: Wed, 22 May 2024 12:18:36 -0700 > > * Title > Calc function calc-user-define-permanent broken in 29.3 > > * Description > In Calc, invoking calc-user-define-permanent (binding "Z-P") does not persist a user-defined formula. > > * Environment > Emacs: 29.3 > OS: macOS 14.5, Ubuntu 22.04.4 LTS > > * Steps to Reproduce > 1. Enter "emacs -Q" on the command line. > 2. Enter "M-x calc" to start Calc. > 3. Enter the algebraic expression "'3 x + 7". > 4. Enter "Z-F" to user-define a formula. > 1. Enter "1" for the user key. > 2. Enter "f1" for the command name. > 3. Enter RET to default use the command name ("f1"). > 4. Enter RET to accept the default argument list ("(x)"). > 5. Enter "y" to leave it symbolic for non-constant arguments. > 5. Enter "Z-P" to make permanent (persist) the user-defined formula. > > * Expected Result > The calc.el file in the Emacs init configuration directory should be modified holding the persisted user-defined formula "f1". This is not what I see in Emacs 29. After Z-P, Emacs asks in the echo-area: Record in ~/.emacs.c/calc.el the command z- and if I type "1", as in step 4.1 above, Emacs says "Wrote ~/.emacs.d/calc.el", and I see the formula f1 defined there. So I wonder why this doesn't happen for you.