unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* (match-end 0) returns 1 instead of the actual position
@ 2022-12-22 23:18 Yuan Fu
  2022-12-22 23:24 ` Emanuel Berg
  2022-12-23  0:04 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 2 replies; 5+ messages in thread
From: Yuan Fu @ 2022-12-22 23:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

This doesn’t happen with vanilla Emacs, but I couldn’t tell which part of my config is causing it. Basically if I run

(looking-at "xxx")
(match-end 0)

It returns 1 instead of the end of xxx after point.

Is there any user option that would affect this that I’m not aware of?

I tried bisecting but the issue doesn’t always reproduce. (It reproduce reliably when I enable all configuration, but not when I comment out parts of the config…)

Thanks,
Yuan


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-24  0:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-22 23:18 (match-end 0) returns 1 instead of the actual position Yuan Fu
2022-12-22 23:24 ` Emanuel Berg
2022-12-24  0:51   ` Yuan Fu
2022-12-23  0:04 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-12-24  0:50   ` Yuan Fu

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).