]> git.eshelyaron.com Git - emacs.git/commitdiff
Adapt manual names in emacs-news-mode
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 9 Dec 2022 14:53:00 +0000 (15:53 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 9 Dec 2022 14:53:00 +0000 (15:53 +0100)
* lisp/textmodes/emacs-news-mode.el (emacs-news--buttonize):
Allow hyphen in manual names.

lisp/textmodes/emacs-news-mode.el

index ebb31da9cf4832e213447034add3040ba0daee41..26f8f610eff7e1144f964e1d0a54a5806cc2a5cb 100644 (file)
@@ -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))