1
$\begingroup$

I'm running Mathematica version 11 (for mac), and it seems like it only has one level of undo (which I believe was also the behaviour in version 9). After undo, which didn't do anything close to undoing some magic keystroke that I made that killed a line and mangled another, I am left with no further undo option and no redo:

busted undo redo

However, I see on the wolfram community a claim that Mathematica 10 had an implementation of multiple undo.

Did this multiple undo get removed again in version 11, or is the claim that it was implemented not accurate?

$\endgroup$
2
  • 3
    $\begingroup$ On my Mac OS X, Mathematica 11.0.1, multiple undo works fine. $\endgroup$ Commented Jan 5, 2017 at 23:38
  • 3
    $\begingroup$ It certainly has multiple undo/redo, but it's crazy glitchy. Every time I desperately need it, it doesn't work; every time I delete a huge FE object and then hit undo just a few too many times--system's frozen for a good few seconds. $\endgroup$ Commented Jan 6, 2017 at 4:29

2 Answers 2

5
$\begingroup$

This is not an answer. It is suggestion that needs a screen shot, so it can't be written as comment.

Have you checked the undo settings of your installation? You can do that in the Options Inspector.

undo

Also, note that multiple undo only works in input cells that have been evaluated.

$\endgroup$
7
  • 1
    $\begingroup$ My Undo options look like yours, but I don't seem to be able to change them. The fact that "multiple undo only works in input cells that have been evaluated." appears to be what was seeing. That is very counter-intuititive, and not at all like any other editor in the universe. $\endgroup$ Commented Jan 6, 2017 at 13:06
  • $\begingroup$ @PeeterJoot. "not at all like any other editor in the universe". Well, I wouldn't go that far. If your experience has been with procedural language code editors, I can see where you coming from. However, many years ago, I wrote Lisp code with an editor that had much in common with the Mathematica code editor. $\endgroup$ Commented Jan 6, 2017 at 20:07
  • 1
    $\begingroup$ It's amazing the lengths people will go to defend the lack of functional UNDO in Mathematica. It's crazy. @Peeter Joot, I feel your pain. I experience your pain. You are not imagining things. Indeed, the dirty secret is that Mathematica's broken undo was modeled on m_goldberg's Lisp editor from 1977, and hasn't been fixed or improved since. $\endgroup$ Commented Feb 7, 2018 at 14:39
  • $\begingroup$ I just banged my thumb with a hammer again -- accidentally deleted a phrase while editing -- no undo to recover it. Again, I'm back in 1977 with @m_goldberg $\endgroup$ Commented Feb 13, 2018 at 18:35
  • $\begingroup$ @ChrisNadovich. I really don't understand why you are complaining to me. I can't do anything about it. I have no connection to Wolfram. I urge you, instead, to complain to Wolfram tech support. The more complaints they get, the more likely something will be done to improve Mathematica's text editing. $\endgroup$ Commented Feb 13, 2018 at 21:53
1
$\begingroup$

I am running 14.0 and built-in multi-step undo seems to work with small notebooks. With my larger notebook size 30k, 900 lines, I only get one level of undo, sometimes zero.

The problem seems to be MemoryLimit = 10,000,000 is too small. It took a while to find the option. It is Format/Option Inspector/Editing Options/Private Editing Options/UndoOptions. It took a few tries to get it set as a GlobalOption. You can only set it to Infinity with the dropdown. If I change the value to a different value it just gets changed back. Once I set it to Infinity, you have to unclick a dark box in front of the option to set it back to a value. The only possible value seems to be 10000000.

Having set this to Infinity, I am getting multiple levels of undo. More news as I use it more

$\endgroup$
1
  • $\begingroup$ Oh, wow, you have really saved me a lot of headache! Who knew 10,000,000 was too small of a memory limit! My functions don't seem that complicated to me, but every time I would evaluate my notebook it would basically clear my undo history! Setting Memory Limit to "infinity" in the Preferences/Advanced/Options Inspector solved the problem for me! $\endgroup$ Commented Jan 28 at 14:59

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.