Mercurial > hg > xemacs-beta
diff lisp/lisp.el @ 4712:a46d7513a364
`beginning-of-defun-function', `end-of-defun-function'
made buffer-local.
Setting it globally would make the default unreachable.
author | Andreas Roehler <andreas.roehler@online.de> |
---|---|
date | Wed, 07 Oct 2009 19:42:42 +0200 |
parents | 7b90173970ad |
children | 7eef89a3d41f |
line wrap: on
line diff
--- a/lisp/lisp.el Tue Oct 06 22:39:30 2009 -0400 +++ b/lisp/lisp.el Wed Oct 07 19:42:42 2009 +0200 @@ -163,12 +163,14 @@ normal recipe (see `beginning-of-defun'). Modes can define this if defining `defun-prompt-regexp' is not sufficient to handle the mode's needs.") +(make-variable-buffer-local 'beginning-of-defun-function) (defvar end-of-defun-function nil "If non-nil, function for `end-of-defun' to call. This is used to find the end of the defun instead of using the normal recipe (see `end-of-defun'). Modes can define this if the normal method is not appropriate.") +(make-variable-buffer-local 'end-of-defun-function) (defun beginning-of-defun (&optional arg) "Move backward to the beginning of a defun.