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

"Not enabling jit-lock: it does not work in indirect buffer" message #51

Closed
soonhokong opened this issue Jun 10, 2015 · 9 comments
Closed

Comments

@soonhokong
Copy link

I'm using mmm-mode to display Lua code in Lean buffers. Here is the setting file that I'm using.

Since I switch to emacs-24.4, I have "Not enabling jit-lock: it does not work in indirect buffer" message whenever I open a Lean buffer. I check that this message goes away when I turn off mmm-mode for Lean buffer.

It seems that everything is still working and it's not harmful. I just want to make sure that this is really OK. Also, if there is a quick way to turn off the message, I want to know. Thank you!

@dgutov
Copy link
Owner

dgutov commented Jun 10, 2015

The message is harmless, and you're not doing anything wrong. We can get rid of it, though.

Glad to know you find mmm-mode useful for this case.

@dgutov dgutov closed this as completed in f5ea03a Jun 10, 2015
@soonhokong
Copy link
Author

@dgutov, thank you. Does f5ea03a handle this warning?

@dgutov
Copy link
Owner

dgutov commented Jun 11, 2015

@soonhokong Yes. That's why it closed this issue.

@soonhokong
Copy link
Author

Great. Thank you!

@Trevoke
Copy link

Trevoke commented Jun 23, 2016

Hi,

I'm working on a minor-mode where I change the major mode to sql-mode and I see this message come up in the minibuffer. I'd like to prevent font-lock-mode from being enabled in the indirect buffer but I'm not quite sure how to do it. This is the function I'm currently using to create the indirect buffer:

(defun sqlup-work-buffer ()
  "Returns and/or creates an indirect buffer based on current buffer and set
its major mode to sql-mode"
  (or sqlup-work-buffer
      (set (make-local-variable 'sqlup-work-buffer)
           (with-current-buffer (clone-indirect-buffer
                                 (generate-new-buffer-name
                                  (format "*sqlup-%s*" (buffer-name)))
                                 nil)
             (set (make-local-variable 'font-lock-support-mode) nil)
             (sql-mode)
             (current-buffer)))))

All help on the matter is appreciated, though of course I understand that this is very out of scope of this project :)

@dgutov
Copy link
Owner

dgutov commented Jun 23, 2016

@Trevoke First, you might want to use let-binding instead of make-local-variable, because changing the major mode erases the local variables.

Then, the best I can recommend so far is to put a (debug) statement inside jit-lock-mode and see where the investigation leads. Here, it indicates that the only source remaining of that message is from font-lock-mode being disabled.

@Trevoke
Copy link

Trevoke commented Jun 23, 2016

Great, thank you for the advice!

@frankjonen
Copy link

Fresh install here. The error is still present. Any further ideas how to solve it?

@dgutov
Copy link
Owner

dgutov commented Apr 20, 2018

Try using Emacs 26, maybe. I don't see this message anymore (and it's not an error anyway).

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

4 participants