[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (match-end 0) returns 1 instead of the actual position
From: |
Emanuel Berg |
Subject: |
Re: (match-end 0) returns 1 instead of the actual position |
Date: |
Fri, 23 Dec 2022 00:24:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Yuan Fu wrote:
> 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 ...)
... we'll consider this a "slip", eh :)
Do the binary search algorithm of your code, Google that if
you don't know what it refers to in this contex, when you
understand it you'll see that you can pinpoint the bug or
misconfiguration very easily and quickly.
You can then tell us what it was, also!
--
underground experts united
https://dataswamp.org/~incal