emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master cb20255 2/2: Remove some compat code from descr-text.el


From: Lars Ingebrigtsen
Subject: master cb20255 2/2: Remove some compat code from descr-text.el
Date: Tue, 18 Aug 2020 17:24:40 -0400 (EDT)

branch: master
commit cb202551f702c7b4695bf672420e7fbb14503b69
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Remove some compat code from descr-text.el
    
    * lisp/descr-text.el (describe-text-properties-1): button.el is
    pre-loaded, so remove check for it.
---
 lisp/descr-text.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 55f0b7d..d6da428 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -141,8 +141,7 @@ otherwise."
         (wid-field (get-char-property pos 'field))
         (wid-button (get-char-property pos 'button))
         (wid-doc (get-char-property pos 'widget-doc))
-        ;; If button.el is not loaded, we have no buttons in the text.
-        (button (and (fboundp 'button-at) (button-at pos)))
+        (button (button-at pos))
         (button-type (and button (button-type button)))
         (button-label (and button (button-label button)))
         (widget (or wid-field wid-button wid-doc)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]