From: Glenn Morris Date: Fri, 14 Apr 2017 00:15:34 +0000 (-0400) Subject: Remove duplicate lisp-eval-defun definition X-Git-Tag: emacs-26.0.90~521^2~633 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8adf68824178ea25a5fda0c53233a42883de861;p=emacs.git Remove duplicate lisp-eval-defun definition * lisp/emacs-lisp/lisp-mode.el (lisp-eval-defun): Autoload rather than defining a stub. --- 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