]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-function-regexp): Add
authorGerd Moellmann <gerd@gnu.org>
Wed, 25 Jul 2001 15:04:21 +0000 (15:04 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 25 Jul 2001 15:04:21 +0000 (15:04 +0000)
easy-mmode-define-global-mode to the regexp.  Allow newlines
in front of the function name.

lisp/emacs-lisp/find-func.el

index f15b92d15075fe38c3d1e854cdfabd41094f7293..db5be92b7b1f132b68bc797002ebdd56832819e2 100644 (file)
@@ -1,6 +1,6 @@
 ;;; find-func.el --- find the definition of the Emacs Lisp function near point
 
-;; Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+;; Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc.
 
 ;; Author: Jens Petersen <petersen@kurims.kyoto-u.ac.jp>
 ;; Maintainer: petersen@kurims.kyoto-u.ac.jp
@@ -59,7 +59,8 @@
   ;; (define-skeleton foo ...), (define-generic-mode 'foo ...),
   ;;  (define-derived-mode foo ...), (define-minor-mode foo)
   "^\\s-*(\\(def\\(ine-skeleton\\|ine-generic-mode\\|ine-derived-mode\\|\
-\[^cgv\W]\\w+\\*?\\)\\|define-minor-mode\\)\\s-+'?\
+\[^cgv\W]\\w+\\*?\\)\\|define-minor-mode\
+\\|easy-mmode-define-global-mode\\)\\(\\s-\\|\n\\)+'?\
 %s\\(\\s-\\|$\\|\(\\|\)\\)"
   "The regexp used by `find-function' to search for a function definition.
 Note it must contain a `%s' at the place where `format'