diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 124900168c..83c20933b3 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el @@ -659,15 +659,10 @@ narrow-to-defun ;; the function might go to the previous function. ;; ;; Therefore we first move one character forward and then call - ;; `beginning-of-defun'. However now we must check that we did - ;; not move into the next function. - (let ((here (point))) - (unless (eolp) - (forward-char)) - (beginning-of-defun) - (when (< (point) here) - (goto-char here) - (beginning-of-defun))) + ;; `beginning-of-defun'. + (unless (eolp) + (forward-char)) + (beginning-of-defun) (setq beg (point)) (end-of-defun) (setq end (point))