From 5fbd12ff49410bbc150e677b527ca4939ffcaf5f Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Fri, 9 Dec 2022 15:53:00 +0100 Subject: [PATCH] Adapt manual names in emacs-news-mode * lisp/textmodes/emacs-news-mode.el (emacs-news--buttonize): Allow hyphen in manual names. --- lisp/textmodes/emacs-news-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/emacs-news-mode.el b/lisp/textmodes/emacs-news-mode.el index ebb31da9cf4..26f8f610eff 100644 --- a/lisp/textmodes/emacs-news-mode.el +++ b/lisp/textmodes/emacs-news-mode.el @@ -226,7 +226,7 @@ untagged NEWS entry." ;; Do manual references. (goto-char (point-min)) (search-forward "\f" nil t) - (while (re-search-forward "\"\\(([a-z0-9]+)[ \n][^\"]\\{1,80\\}\\)\"" + (while (re-search-forward "\"\\(([a-z0-9-]+)[ \n][^\"]\\{1,80\\}\\)\"" nil t) (buttonize-region (match-beginning 1) (match-end 1) (lambda (node) (info node)) -- 2.39.2