clojure-mode icon indicating copy to clipboard operation
clojure-mode copied to clipboard

Font lock broken when opening a clojure file from the CLI

Open JJackaman opened this issue 5 years ago • 1 comments

Broken font locking (some things that should be highlighted aren't).

Happens when passing a clojure file as an argument to the emacs command as in emacs somedir/somefile.clj.

*Messages* reports:

Error during redisplay: (jit-lock-function 502) signaled (void-function end-of-thing)

Font locking works as expected if emacs is opened first and the clojure file is visited from within Emacs.

Steps to reproduce the problem

Using console emacs (don't have GUI emacs) do: emacs file.clj

Environment & Version information

Emacs 27.1/linux Clojure-mode (master/melpa)

JJackaman avatar Dec 06 '20 03:12 JJackaman

Hmm, that's weird. I can't imagine why it'd behave differently if you try to open the file directly, but I guess there's some reason that we need to figure out.

bbatsov avatar Dec 06 '20 07:12 bbatsov