]> code.delx.au - gnu-emacs/commitdiff
(end-of-defun): Fix check for trailing comment.
authorKarl Heuer <kwzh@gnu.org>
Fri, 18 Mar 1994 01:47:28 +0000 (01:47 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 18 Mar 1994 01:47:28 +0000 (01:47 +0000)
lisp/emacs-lisp/lisp.el

index 2f918b935732d3f5b953655b0fe122d22ea3f57f..ebe0885c7691df0e47939b1d737ce28c0ac04c64 100644 (file)
@@ -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)))))