Conversation
… when invoking sclang-start
|
Good thing to test: reproduce or backtrace to show where thing-at-point returned nil/wrong value Also, you mixed space and tabs, and the code isn't alined. Remember to check that. The original code uses spaces. |
|
Ah, sorry, just relied on the automatic tabification. Don't know what was up with my setup as I had to manually go re-align it and untabify; should be fixed now. I did go through and trace what I last did any real lisp stuff 15 years ago and I think to figure out what is really going on would be a deep-dive into the underlying emacs syntax mechanism. I think I've gone about as far as I intend to with limited expertise in the language, the lack of unit tests, etc. |
As I said, this is probably fine. If it works, it works. All I'm saying is that it would help to know the underlying problem. :-) |
This resolves #67 .
It appears that using
thing-at-point, when looking at the returned properties of thethingwould include that thethingwas alreadyfontified. This effectively would turn off any syntax highlighting, including the naive highlighting beforesclang-class-listis loaded. Switching to another function,current-word, appears to have the correct behavior: when typing out a class, it is not highlighted until the word matches a class insclang-class-list. For example, starting to typeSinOsresults in plain text, but upon finishing withSinOsc, it becomes highlighted.