bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#40053: 28.0; text-property-search-forward skips first region


From: Dustin Lacewell
Subject: bug#40053: 28.0; text-property-search-forward skips first region
Date: Fri, 13 Mar 2020 12:35:25 -0500

The following code does not do what I would expect:

(with-current-buffer (get-buffer-create "*Test*")
  (erase-buffer)
  (insert "   ")
  (insert-text-button "Button1"
                      'foo 'bar)
  (insert "   ")
  (insert-text-button "Button2"
                      'foo 'bar)
  (beginning-of-buffer)
  (text-property-search-forward 'foo 'bar nil t)
  (display-buffer (current-buffer)))

I would expect the point to land on the first button. However, it lands on the second.

reply via email to

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