Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match data is constantly clobbered #48

Open
TinaRussell opened this issue May 11, 2019 · 1 comment
Open

Match data is constantly clobbered #48

TinaRussell opened this issue May 11, 2019 · 1 comment

Comments

@TinaRussell
Copy link

TinaRussell commented May 11, 2019

I know this package isn’t actively maintained, I just want to leave a record of all the effort I put into figuring out which one of my bazillion installed packages was causing this problem. (The match-data is incredibly difficult to debug.)

Try using edebug-defun with point in this function definition:

(defun tina/test-match-data ()
  (let ((string "Find the computer room"))
    (string-match "room" string)
    (equal (match-string 0 string) "room")))

Now evaluate (tina/test-match-data). While in Edebug, press T (edebug-trace-mode) or Shift+T (edebug-Trace-fast-mode).
If guide-key-mode is off, the result will be t.
If guide-key-mode is on, the result will be nil. (Setting guide-key/polling-time to a large number also works.)

It seems something—I think guide-key/format-guide-buffer—is changing the match data at every opportunity. Remember, developers: be mindful of your fluids and always use save-match-data! Thank you and good night!

@ysmolski
Copy link

I can feel your pain. I have spent wonderful two hours doing exactly what you did before me. #49

Would it be great to somehow mark such broken packages in MELPA to save others from the pain?
I have created an issue in purcell's config, I am not sure where else can I make noise to save others from the pain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants