diff --git a/lisp/man.el b/lisp/man.el index c9d175466f7..b428e4693b3 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -867,7 +867,7 @@ The following key bindings are currently in effect in the buffer: (goto-char (point-min)) (let ((case-fold-search nil)) (while (re-search-forward Man-heading-regexp (point-max) t) - (aput 'Man-sections-alist (Man-match-substring 1)) + (aput 'Man-sections-alist (match-string 1)) (forward-line 1)))) (defsubst Man-build-references-alist ()