Commit f7c4bad1 authored by Wilfred Hughes's avatar Wilfred Hughes
Browse files

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.
parent 3bc3dc40
......@@ -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))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment