]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-save-modes): Reset the modes list if Calc is in embedded mode.
authorJay Belanger <jay.p.belanger@gmail.com>
Sat, 7 May 2005 21:19:29 +0000 (21:19 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Sat, 7 May 2005 21:19:29 +0000 (21:19 +0000)
lisp/calc/calc-mode.el

index 389b52385b688c42143c52e0cfea983e871e6331..1c5bd29e8046c66761a282534da85847c68f5704 100644 (file)
               vals (cdr vals))))
      (run-hooks 'calc-mode-save-hook)
      (insert ";;; End of mode settings\n")
-     (save-buffer))))
+     (save-buffer)
+     (if calc-embedded-info
+         (calc-embedded-save-original-modes)))))
 
 (defun calc-settings-file-name (name &optional arg)
   (interactive