comparison lisp/calc/calc-store.el @ 105792:2c12fbae77c2

* calc/calc.el (calc, calc-refresh, calc-trail-buffer, calc-record) (calcDigit-nondigit): * calc/calc-yank.el (calc-copy-to-buffer): * calc/calc-units.el (calc-invalidate-units-table): * calc/calc-trail.el (calc-trail-yank): * calc/calc-store.el (calc-insert-variables): * calc/calc-rewr.el (math-rewrite, math-rewrite-phase): * calc/calc-prog.el (calc-read-parse-table): * calc/calc-keypd.el (calc-do-keypad, calc-keypad-right-click): * calc/calc-help.el (calc-describe-bindings, calc-describe-key): * calc/calc-graph.el (calc-graph-delete, calc-graph-add-curve) (calc-graph-juggle, calc-graph-count-curves, calc-graph-plot) (calc-graph-plot, calc-graph-format-data, calc-graph-set-styles) (calc-graph-name, calc-graph-find-command, calc-graph-view) (calc-graph-view, calc-gnuplot-command, calc-graph-init): * calc/calc-ext.el (calc-realign): * calc/calc-embed.el (calc-do-embedded, calc-do-embedded) (calc-embedded-finish-edit, calc-embedded-make-info) (calc-embedded-finish-command, calc-embedded-stack-change): * calc/calc-aent.el (calcAlg-enter): Use with-current-buffer.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 28 Oct 2009 18:35:33 +0000
parents 14b421290b2f
children 1d1d5d9bd884
comparison
equal deleted inserted replaced
105791:84d7bc7104ac 105792:2c12fbae77c2
635 (insert (prin1-to-string (calc-var-value var))) 635 (insert (prin1-to-string (calc-var-value var)))
636 (forward-line 1)) 636 (forward-line 1))
637 637
638 (defun calc-insert-variables (buf) 638 (defun calc-insert-variables (buf)
639 (interactive "bBuffer in which to save variable values: ") 639 (interactive "bBuffer in which to save variable values: ")
640 (save-excursion 640 (with-current-buffer buf
641 (set-buffer buf)
642 (mapatoms (function 641 (mapatoms (function
643 (lambda (x) 642 (lambda (x)
644 (and (string-match "\\`var-" (symbol-name x)) 643 (and (string-match "\\`var-" (symbol-name x))
645 (not (memq x calc-dont-insert-variables)) 644 (not (memq x calc-dont-insert-variables))
646 (calc-var-value x) 645 (calc-var-value x)