9

Is there a possibility to save the Emacs Calculator Trail (as a file) and to restore it later? If not, should it be feature?

For example, when I have an incomplete calculation but have to shutdown my Emacs, it would be great if i can continue afterwards.

Second case: I do some calculations and want to store how I did it, to later check if I did it correctly or need to modify it.

The second reason is why I use MATLAB (I know, too much) for little calculations, just so i can restore them. But I would like to use Emacs Calc only!

Thanks for the answers

  • 1
    Maybe Embedded Mode is what you want? – npostavs Jun 30 '15 at 10:18
  • I know Calc is well integrated with keyboard macros and even extends them. I don't see why you can't save them as regular kmacros. Also have you tried GNU Octave? It is supposed to be mostly compatible with Matlab and comes with an emacs mode. – Kevin Holmes Jul 1 '15 at 13:16
  • 1
    I believe that Org's src blocks (besides embedded mode) for calc will be the way to go, especially for your second case. Unfortunately the src block code is not (yet) sophisticated enough for more than basic stuff. Please have a look at: home.fnal.gov/~neilsen/notebook/orgExamples/… – Dieter.Wilhelm Aug 29 '15 at 9:33
  • @estownya - Please post some example calc code with the answer returned by calc. – Melioratus Dec 12 '15 at 21:37
  • Well, the Calc Trail is a buffer like any other. You can switch to it and C-x C-w to write it out. I don't think there's any easy way to reconstruct all of the Calc state when you want to reload. – MAP Jul 5 '16 at 8:19

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.