GNU bug report logs - #40053
28.0; text-property-search-forward skips first region

Previous Next

Package: emacs;

Reported by: Dustin Lacewell <dlacewell <at> gmail.com>

Date: Fri, 13 Mar 2020 17:36:01 UTC

Severity: normal

Tags: notabug

Found in version 28.0

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dustin Lacewell <dlacewell <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0; text-property-search-forward skips first region
Date: Fri, 13 Mar 2020 12:35:25 -0500
[Message part 1 (text/plain, inline)]
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.
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 70 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.