]> git.eshelyaron.com Git - emacs.git/commitdiff
Clean up emacs-news--buttonize
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 16 Apr 2022 13:58:20 +0000 (15:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 16 Apr 2022 13:58:20 +0000 (15:58 +0200)
* lisp/textmodes/emacs-news-mode.el (emacs-news--buttonize):
Remove unnecessary check left over from previous version.

lisp/textmodes/emacs-news-mode.el

index 5099a7435f61ed03544034d111ed7a681bb9f099..b56cf13adb0bd315940c3dcbc6266d29e047b879 100644 (file)
         (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)