From db416ae04982d7cf5c6af463d0c47c902f8d9119 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 16 Apr 2022 15:58:20 +0200 Subject: [PATCH] Clean up emacs-news--buttonize * lisp/textmodes/emacs-news-mode.el (emacs-news--buttonize): Remove unnecessary check left over from previous version. --- lisp/textmodes/emacs-news-mode.el | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lisp/textmodes/emacs-news-mode.el b/lisp/textmodes/emacs-news-mode.el index 5099a7435f6..b56cf13adb0 100644 --- a/lisp/textmodes/emacs-news-mode.el +++ b/lisp/textmodes/emacs-news-mode.el @@ -122,14 +122,13 @@ (while (re-search-forward "'\\([^-][^ \t\n]+\\)'" nil t) ;; Filter out references to key sequences. (let ((string (match-string 1))) - (unless (key-valid-p string) - (when-let ((symbol (intern-soft string))) - (when (or (boundp symbol) - (fboundp symbol)) - (buttonize-region (match-beginning 1) (match-end 1) - (lambda (symbol) - (describe-symbol symbol)) - symbol)))))) + (when-let ((symbol (intern-soft string))) + (when (or (boundp symbol) + (fboundp symbol)) + (buttonize-region (match-beginning 1) (match-end 1) + (lambda (symbol) + (describe-symbol symbol)) + symbol))))) ;; Do manual references. (goto-char (point-min)) (search-forward "\f" nil t) -- 2.39.2