diff options
| author | Gerd Moellmann | 2000-03-24 20:42:41 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-24 20:42:41 +0000 |
| commit | 418d645c4d0126cc10662fd1b9d39bc4fe667632 (patch) | |
| tree | 8e134fc6901acef74117903119d56671b1781915 | |
| parent | 7973e637e40b667bcad19c113b609741a587df63 (diff) | |
| download | emacs-418d645c4d0126cc10662fd1b9d39bc4fe667632.tar.gz emacs-418d645c4d0126cc10662fd1b9d39bc4fe667632.zip | |
(beginning-of-defun-raw): Add regexp
matching open parenthesis in column 0 to defun-prompt-regexp
only if open-paren-in-column-0-is-defun-start is set.
| -rw-r--r-- | lisp/emacs-lisp/lisp.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index 9759c41d975..c484a12dc8d 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el | |||
| @@ -173,7 +173,8 @@ is called as a function to find the defun's beginning." | |||
| 173 | (funcall beginning-of-defun-function) | 173 | (funcall beginning-of-defun-function) |
| 174 | (and arg (< arg 0) (not (eobp)) (forward-char 1)) | 174 | (and arg (< arg 0) (not (eobp)) (forward-char 1)) |
| 175 | (and (re-search-backward (if defun-prompt-regexp | 175 | (and (re-search-backward (if defun-prompt-regexp |
| 176 | (concat "^\\s(\\|" | 176 | (concat (if open-paren-in-column-0-is-defun-start |
| 177 | "^\\s(\\|" "") | ||
| 177 | "\\(" defun-prompt-regexp "\\)\\s(") | 178 | "\\(" defun-prompt-regexp "\\)\\s(") |
| 178 | "^\\s(") | 179 | "^\\s(") |
| 179 | nil 'move (or arg 1)) | 180 | nil 'move (or arg 1)) |