From: Dustin Lacewell <dlacewell@gmail.com>
To: 40053@debbugs.gnu.org
Subject: bug#40053: 28.0; text-property-search-forward skips first region
Date: Fri, 13 Mar 2020 12:35:25 -0500 [thread overview]
Message-ID: <CAMDmBpGvML0OvKfGx4WjiOd3ESebMK00+J72e2An-eXZJN=fVw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 692 bytes --]
next reply other threads:[~2020-03-13 17:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-13 17:35 Dustin Lacewell [this message]
2020-03-13 18:46 ` bug#40053: 28.0; text-property-search-forward skips first region Stephen Berman
2020-03-14 11:37 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMDmBpGvML0OvKfGx4WjiOd3ESebMK00+J72e2An-eXZJN=fVw@mail.gmail.com' \
--to=dlacewell@gmail.com \
--cc=40053@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).