|
From: Robert D. <rob...@us...> - 2026-10-26 04:23:00
|
I bumped into another example today, in which restoring from `save(..., all)` changes the properties of MNCTIMES and therefore causes previously-acceptable `.12345` to trigger a syntax error. See comment referring to bug #3047 in tests/rtestdefstruct.mac.
---
**[bugs:#3047] 'save' saves some built-in stuff**
**Status:** open
**Group:** None
**Labels:** save
**Created:** Thu Nov 12, 2015 08:11 PM UTC by Robert Dodier
**Last Updated:** Thu Nov 12, 2015 08:11 PM UTC
**Owner:** nobody
`save` should save only used-defined stuff, and not any built-in stuff. But `save` saves stuff related to sets and some function properties. E.g. Without any user-defined functions or variables, the saved file should be almost empty , but here's what I get at present for `save("/tmp/foo.lisp", all)`:
~~~~
;;; -*- Mode: LISP; package:maxima; syntax:common-lisp; -*-
(in-package :maxima)
(DSKSETQ $%I1 '(($SAVE) "/tmp/foo.lisp" $ALL))
(ADDLABEL '$%I1)
(MDEFPROP $NSET (NIL $VERSION 1.21) $PROPS)
(ADD2LNC '$NSET $PROPS)
(DEFPROP ${ %{ VERB)
(DEFPROP ${ "{" OP)
(SETF (GETHASH "{" *OPR-TABLE*) '${)
(ADD2LNC '"{" $PROPS)
(DEFINE-SYMBOL '"{")
(SETQ *MOPL* (CONS '"{" *MOPL*))
(DEFPROP ${ DIMENSION-MATCH DIMENSION)
(DEFPROP ${ ((#\{) #\}) DISSYM)
(DEFPROP ${ MSIZE-MATCHFIX GRIND)
(DEFPROP ${ 200. LBP)
(DEFPROP ${ PARSE-MATCHFIX NUD)
(DEFPROP %{ DIMENSION-MATCH DIMENSION)
(DEFPROP %{ ((#\{) #\}) DISSYM)
(DEFPROP ${ $} MATCH)
(DEFPROP $} "}" OP)
(SETF (GETHASH "}" *OPR-TABLE*) '$})
(ADD2LNC '"}" $PROPS)
(DEFINE-SYMBOL '"}")
(SETQ *MOPL* (CONS '"}" *MOPL*))
(DEFPROP $} 5. LBP)
(DEFPROP $} DELIM-ERR NUD)
(DEFPROP $} ERB-ERR LED)
(DEFPROP %{ ${ NOUN)
(MDEFPROP $TRYLEVEL (NIL $MAXMIN 1.) $PROPS)
(ADD2LNC '$TRYLEVEL $PROPS)
(MDEFPROP $MAXMIN (NIL $VERSION 1.) $PROPS)
(ADD2LNC '$MAXMIN $PROPS)
(MDEFPROP $NUMMOD (NIL $VERSION 3.) $PROPS)
(ADD2LNC '$NUMMOD $PROPS)
(DEFPROP $CONJUGATE SIMP-CONJUGATE OPERATORS)
(ADD2LNC '$CONJUGATE $PROPS)
(MDEFPROP $CONJUGATE (NIL $VERSION 1.) $PROPS)
(ADD2LNC '$CONJUGATE $PROPS)
(DEFPROP %ERF_GENERALIZED $ERF_GENERALIZED NOUN)
(DEFPROP %ERF_GENERALIZED SIMP-ERF-GENERALIZED OPERATORS)
(ADD2LNC '%ERF_GENERALIZED $PROPS)
(DEFPROP %ERF_GENERALIZED T OPERS)
(ADD2LNC '%ERF_GENERALIZED $PROPS)
(DEFPROP %ERF_GENERALIZED T $ANTISYMMETRIC)
(ADD2LNC '%ERF_GENERALIZED $PROPS)
(DEFPROP $ERF_GENERALIZED %ERF_GENERALIZED VERB)
(DEFPROP $BETA SIMPBETA OPERATORS)
(ADD2LNC '$BETA $PROPS)
(DEFPROP $BETA T OPERS)
(ADD2LNC '$BETA $PROPS)
(DEFPROP $BETA T $SYMMETRIC)
(ADD2LNC '$BETA $PROPS)
(SETQ $LINENUM 1.)
(SETQ *ALPHABET* (NCONC '(#\_ #\%) *ALPHABET*))
(ADD2LNC '$INTEGERVALUED $FEATURES)
~~~~
---
Sent from sourceforge.net because max...@li... is subscribed to https://sourceforge.net/p/maxima/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/maxima/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |