aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/add-log.el6
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