Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 2
    $\begingroup$ Seems to work pretty well! $\endgroup$ Commented Jul 27, 2012 at 4:05
  • 1
    $\begingroup$ It will change the result of evaluation in some special cases, for example when you evaluate an expression with Head Sequence or Unevaluated. Probably $PreRead would be more universal. $\endgroup$ Commented Jul 27, 2012 at 6:14
  • 3
    $\begingroup$ I don't like auto-save as it seems to inevitably result in the far more frustrating event of auto-saving just after an accidental deletion or other major incorrect change. By saving to a separate backup notebook you eliminate this. +1 $\endgroup$ Commented Jul 27, 2012 at 10:22
  • $\begingroup$ One of my fu-moves is Alt-/, which toggles comments. I save very frequently, and almost always modify code by copying it into a new cell and tweaking it there, commenting out the old version when necessary. An accident with the code being tweaked, then, is isolated to a copy, and I can always safely back up. This is a verbose style, and the final notebooks need a LOT of cleanup, but it's robust and easy on the fingers. $\endgroup$ Commented Jul 31, 2012 at 20:36
  • 1
    $\begingroup$ Learning here, Could someone please explain what this does in a little more detail? For example is $pre changed permanently until re-defined or cleared? or is this change only going to stay in effect until you restart mathematica? How does one go about implementing this? Do I just stick this code in a cell and evaluate? Does it have to say in the notebook or can I delete it? Is $pre similar to an environmental variable? Thanks in advance (I didn't think this would warrant a new question, if I'm wrong I could ask one) $\endgroup$ Commented Oct 20, 2014 at 14:04