mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(calc-user-define-edit): Don't find substring of nil.
This commit is contained in:
parent
5770a942e7
commit
562f26cb58
1 changed files with 1 additions and 1 deletions
|
|
@ -702,7 +702,7 @@
|
|||
(get func 'calc-user-defn)))
|
||||
(kys (concat "z" (char-to-string (car def))))
|
||||
(intcmd (symbol-name (cdr def)))
|
||||
(algcmd (substring (symbol-name func) 9)))
|
||||
(algcmd (if func (substring (symbol-name func) 9) "")))
|
||||
(if (and defn (calc-valid-formula-func func))
|
||||
(let ((niceexpr (math-format-nice-expr defn (frame-width))))
|
||||
(calc-wrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue