diff options
| author | Karl Heuer | 1995-05-15 22:00:20 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-15 22:00:20 +0000 |
| commit | f27f16ed4f889578a32405bf550a22efb3cb9fab (patch) | |
| tree | 8fd1832292ee5fb465baa710d788777bc3ace913 | |
| parent | 76b17c0b664daf4f941ec3a4d45e7c3e92d3003d (diff) | |
| download | emacs-f27f16ed4f889578a32405bf550a22efb3cb9fab.tar.gz emacs-f27f16ed4f889578a32405bf550a22efb3cb9fab.zip | |
(get-method-definition): Fix regexps.
| -rw-r--r-- | lisp/add-log.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/add-log.el b/lisp/add-log.el index 1b16295c0eb..57ff5228f8f 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -486,15 +486,15 @@ Has a preference of looking backwards." | |||
| 486 | (defun get-method-definition () | 486 | (defun get-method-definition () |
| 487 | (let ((md "[")) | 487 | (let ((md "[")) |
| 488 | (save-excursion | 488 | (save-excursion |
| 489 | (if (re-search-backward "^@implementation \\(.*\\)$" nil t) | 489 | (if (re-search-backward "^@implementation\\s-*\\([A-Za-z_]*\\)" nil t) |
| 490 | (get-method-definition-1 " "))) | 490 | (get-method-definition-1 " "))) |
| 491 | (save-excursion | 491 | (save-excursion |
| 492 | (cond | 492 | (cond |
| 493 | ((re-search-backward "^\\([-+]\\)[ \t\n\f\r]*\\(([^)]*)\\)?" nil t) | 493 | ((re-search-forward "^\\([-+]\\)[ \t\n\f\r]*\\(([^)]*)\\)?\\s-*" nil t) |
| 494 | (get-method-definition-1 "") | 494 | (get-method-definition-1 "") |
| 495 | (while (not (looking-at "[{;]")) | 495 | (while (not (looking-at "[{;]")) |
| 496 | (looking-at | 496 | (looking-at |
| 497 | "\\([^ ;{:\t\n\f\r]*:?\\)\\(([^)]*)\\)?[^ ;{:\t\n\f\r]*[ \t\n\f\r]*") | 497 | "\\([A-Za-z_]*:?\\)\\s-*\\(([^)]*)\\)?[A-Za-z_]*[ \t\n\f\r]*") |
| 498 | (get-method-definition-1 "")) | 498 | (get-method-definition-1 "")) |
| 499 | (concat md "]")))))) | 499 | (concat md "]")))))) |
| 500 | 500 | ||