I'm looking for ways to get the last copy from the kill ring in Emacs.
with C-x C-e and I get this
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) insert(nil) eval((insert (yank)) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp)
What I'm trying to do is get the last copied text from the kill-ring (I think it would make it feel more polished if when I call this it removes the last copy from the kill-ring when ran, but I haven't found how to do that yet.), so I can have the defun that calls this get the last think I copied.
The command works correctly, but also calls up this Backtrace. I don't know what the backtrace message wants me to do? I would suspect that I'm not supposed to call yank in this manner.