I am trying to modify a package by redefining a function in it. However, I would like to call the original definition in the new definition. (kind of like extending a constructor in a subclass now that I think of it)
let's say we have this defined
(defun hello () "hello")
I want to define something like this
(defun hello-world () (concat (hello) " world"))
except... I want to name the second function
hello instead of hello world, and just redefine it so that it says " world" at the end, and does that by calling the old function.
Is there a way to give the old function a new name, and then call the old function by its new name, in the new function, which uses the old name?
;; first rename hello to _hello somehow (defun hello () (concat (_hello) " world"))
or is there an even better way to accomplish the same thing?