1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

(calc-user-define-edit): Put original formula in formula editing buffer.

This commit is contained in:
Jay Belanger 2005-01-19 17:21:44 +00:00
parent 8423891cfd
commit 17c90a9e65
2 changed files with 9 additions and 4 deletions

View File

@ -3,6 +3,9 @@
* calc/calc-ext.el (calc-fancy-prefix-other-key): Don't clear
flags if the last command was a tab or M-tab.
* calc/calc-prog.el (calc-user-define-edit): Put original formula
in formula editing buffer.
2005-01-19 Nick Roberts <nickrob@snap.net.nz>
* progmodes/gdb-ui.el (gdb-put-breakpoint-icon): Add help-echo for

View File

@ -702,15 +702,17 @@
(intcmd (symbol-name (cdr def)))
(algcmd (substring (symbol-name func) 9)))
(if (and defn (calc-valid-formula-func func))
(progn
(let ((niceexpr (math-format-nice-expr defn (frame-width))))
(calc-wrapper
(calc-edit-mode
(list 'calc-finish-formula-edit (list 'quote func))
nil
(format "Editing formula (%s, %s, bound to %s).\n"
intcmd algcmd kys))
(format (concat
"Editing formula (%s, %s, bound to %s).\n"
"Original formula: %s\n")
intcmd algcmd kys niceexpr))
(insert (math-showing-full-precision
(math-format-nice-expr defn (frame-width)))
niceexpr)
"\n"))
(calc-show-edit-buffer))
(error "That command's definition cannot be edited")))))))