From 37f31acf876064714d3498ae7436174f0b4c83c5 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 18 Mar 1994 01:47:28 +0000 Subject: (end-of-defun): Fix check for trailing comment. --- lisp/emacs-lisp/lisp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/emacs-lisp/lisp.el') 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))))) -- cgit v1.2.3