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

json-mode-get-path-to-point does not work with font-lock disabled #5

Open
njsand opened this issue Nov 19, 2020 · 1 comment
Open

Comments

@njsand
Copy link

njsand commented Nov 19, 2020

M-x json-mode-get-path-to-point (also on the C-c, C-l keys) does not work if font-lock is disabled.

For example:

  1. Start emacs
  2. Do M-x font-lock-mode to turn off syntax highlighting
  3. Position the cursor on the 'a' in the following code: (inside the string literal)
    {
    "a": 1
    }
  4. Do M-x json-mode-get-path-to-point
  5. See that "nothing to copy" is printed in the echo area. This is wrong, we should see the path to the "a" key.

Parsing / interpreting the JSON shouldn't depend on syntax highlighting being enabled, so I'd call this a bug.

@UwUnyaa
Copy link
Owner

UwUnyaa commented Nov 19, 2020

There's a huge chance I'll retire this project in favor of merging my features into https://github.com/joshwnj/json-mode. As for now, I'd recommend using that mode, as it provides similar functionality, and I'm trying to bring whatever is missing into it. I'm stuck with an issue with idle timers in Emacs 27, and I haven't had much energy to try debugging it, as nobody knows why it's happening.

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