From: Lars Ingebrigtsen Date: Sat, 16 Apr 2022 13:58:20 +0000 (+0200) Subject: Clean up emacs-news--buttonize X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~2370^2~524 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=db416ae04982d7cf5c6af463d0c47c902f8d9119;p=emacs.git Clean up emacs-news--buttonize * lisp/textmodes/emacs-news-mode.el (emacs-news--buttonize): Remove unnecessary check left over from previous version. --- 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)