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

Fix c++-mode interference #65

Merged
merged 27 commits into from
Jan 30, 2021
Merged

Fix c++-mode interference #65

merged 27 commits into from
Jan 30, 2021

Conversation

kaz-yos
Copy link
Collaborator

@kaz-yos kaz-yos commented Jan 30, 2021

Closes #64

In the previous version, invocation of stan-mode via loading a stan file advised c-syntactic-end-of-macro incorrectly, making it malfunction in c++-mode. This resulted in broken syntax highlighting in a C++ file.

This interference issue was solved by improving the advising of c-syntactic-end-of-macro.

Also github actions were adopted for testing (magit/magit#4303).

- Need this to run some tests before stan-mode loading
- The old :override version was calling the original function
  c-syntactic-end-of-macro by name inside its body conditionally.
- This should be an :around advice that conditionally calls the
  oldfun, which is given as the argument.
- It relies on advice-member-p detecting
  stan-syntactic-end-of-macro.
- Fix interference with c++-mode stan-dev#64
@kaz-yos
Copy link
Collaborator Author

kaz-yos commented Jan 30, 2021

All github action checks passed. Merging.

@kaz-yos kaz-yos merged commit 9bb858b into stan-dev:master Jan 30, 2021
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

Successfully merging this pull request may close these issues.

lisp exceeds `max-lisp-eval-depth'
1 participant