From: Karl Heuer Date: Fri, 18 Mar 1994 01:47:28 +0000 (+0000) Subject: (end-of-defun): Fix check for trailing comment. X-Git-Tag: emacs-19.34~9456 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=37f31acf876064714d3498ae7436174f0b4c83c5;p=emacs.git (end-of-defun): Fix check for trailing comment. --- diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 2f918b93573..ebe0885c769 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el @@ -184,7 +184,7 @@ the open-parenthesis that starts a defun; see `beginning-of-defun'." (progn (forward-list 1) (skip-chars-forward " \t") - (if (looking-at "[;\n]") + (if (looking-at "\\s<\\|\n") (forward-line 1))) (goto-char (point-min))))) (setq arg (1+ arg)))))