emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master f7c4bad: Ensure button-get works in any buffer


From: Wilfred Hughes
Subject: [Emacs-diffs] master f7c4bad: Ensure button-get works in any buffer
Date: Sun, 28 May 2017 20:03:40 -0400 (EDT)

branch: master
commit f7c4bad17d83297ee9a1b57552b1944020f23aea
Author: Wilfred Hughes <address@hidden>
Commit: Wilfred Hughes <address@hidden>

    Ensure button-get works in any buffer
    
    * lisp/button.el (button-get): Previously we assumed that button-get
      was called in the buffer containing the button.  In other buffers,
      button-get always returned nil.  Fix this by passing the relevant
      buffer from the marker.
---
 lisp/button.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/button.el b/lisp/button.el
index b04bc28..99c03d9 100644
--- a/lisp/button.el
+++ b/lisp/button.el
@@ -194,6 +194,8 @@ changes to a supertype are not reflected in its subtypes)."
        ((button--area-button-p button)
         (get-text-property (cdr button)
                            prop (button--area-button-string button)))
+       ((markerp button)
+        (get-text-property button prop (marker-buffer button)))
        (t ; Must be a text-property button.
         (get-text-property button prop))))
 



reply via email to

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