From e8adf68824178ea25a5fda0c53233a42883de861 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 13 Apr 2017 20:15:34 -0400 Subject: [PATCH] Remove duplicate lisp-eval-defun definition * lisp/emacs-lisp/lisp-mode.el (lisp-eval-defun): Autoload rather than defining a stub. --- lisp/emacs-lisp/lisp-mode.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index b7a5eb774da..2e6e13f1dd1 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -725,11 +725,7 @@ or to switch back to an existing one." ;; Used in old LispM code. (defalias 'common-lisp-mode 'lisp-mode) -;; This will do unless inf-lisp.el is loaded. -(defun lisp-eval-defun (&optional _and-go) - "Send the current defun to the Lisp process made by \\[run-lisp]." - (interactive) - (error "Process lisp does not exist")) +(autoload 'lisp-eval-defun "inf-lisp" nil t) ;; May still be used by some external Lisp-mode variant. (define-obsolete-function-alias 'lisp-comment-indent -- 2.39.2