summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-20Merge pull request #470 from amesgen/envrc-rustfmtbrotzeit
Support envrc for rustfmt
2022-12-20Merge pull request #467 from jimblandy/in-macrobrotzeit
Simplify and correct angle bracket propertizing and macro argument detection.
2022-12-19Support envrc for rustfmtamesgen
2022-12-19Merge pull request #477 from imichael2e2/masterbrotzeit
rust-mode updated to the latest version for Eask test suites
2022-12-19rust-mode updated to the latest version for Eask test suitesMichael
2022-12-18Merge pull request #476 from imichael2e2/masterbrotzeit
Fix the issue #475
2022-12-18Automatically remove the redundant window after calling rustfmt. Fix the ↵Michael
issue #475
2022-12-10Merge pull request #473 from jcs-PR/tests/improve-cibrotzeit
tests: Avoid actions' warnings
2022-12-11Update eask's clean commandJen-Chieh Shen
2022-12-11Avoid actions' warningJen-Chieh Shen
2022-12-11Add script directive for future useJen-Chieh Shen
2022-12-05Merge pull request #472 from jcs-PR/tests/remove-setup-nodebrotzeit
tests: Setup node is no longer required
2022-12-06chore(Eask): Add package's metadataJen-Chieh Shen
2022-12-06tests: Setup node is no longer requiredJen-Chieh Shen
2022-11-02Simplify and correct angle bracket propertizing and macro argument detection.Jim Blandy
Fixes #465. When `rust-syntax-propertize` uses `rust-macro-scopes` to find ranges of text that are macro arguments, it ends up inadvertently poisoning the `syntax-ppss` cache by applying it to text that doesn't have the necessary `syntax-table` properties applied yet - the very job that `rust-syntax-propertize` is trying to do. However, `rust-macro-scopes` does much more work than necessary. Rather than producing a list of ranges of macro arguments, we can just use the list of enclosing opening parens provided by syntax-ppss, checking each paren to see if it seems to be a macro or `macro_rules` call. We have to keep syntax-ppss's cache accurate for other reasons anyway, so we might as well just use its data, rather than introducing another cache of our own - especially a problematic one (see #465). * rust-mode.el (rust-in-macro): Consult `syntax-ppss`'s list of enclosing parens, rather than using `rust-macro-scope`. Remove optional arguments, which were only used by tests. (rust-macro-scopes, rust-macro-scope): Delete. Now we just use `syntax-ppss`'s internal cache. (rust-syntax-propertize): Don't bind `rust-macro-scopes`. (rust-looking-back-macro-rules): New function. (rust-looking-back-macro): Support a space between macro name and `!`, by consulting `rust-expression-introducers`. (rust-expression-introducers): New constant. Use in `rust-looking-back-macro` and `rust-is-in-expression-context`. (rust-is-in-expression-context): Use `rust-expression-introducers`. (rust-looking-back-ident): Don't use `looking-back`. We've already moved to the correct spot for `looking-at`, within a `save-excursion`. * rust-mode-tests.el: Update tests.
2022-09-24Merge pull request #462 from ybiquitous/fix-link-in-readmebrotzeit
Fix internal link in README.md
2022-09-24Fix internal link in README.mdMasafumi Koba
2022-09-19Merge pull request #461 from tarsiiformes/obsoletebrotzeit
Use line-beginning-position instead of obsolete point-at-bol
2022-09-19Use line-beginning-position instead of obsolete point-at-bolJonas Bernoulli
Obsolete since Emacs 29 / b7e867b841f47dcff3aeaef9b5608a237386ce70.
2022-09-17Merge pull request #459 from phst/skipbrotzeit
Skip test if Cargo isn’t installed.
2022-09-16Skip test if Cargo isn’t installed.Philipp Stephani
This test requires Cargo and fails if it’s not installed.
2022-09-16Merge pull request #458 from phst/compilebrotzeit
Avoid compilation warnings about potentially-undefined functions.
2022-08-29Avoid compilation warnings about potentially-undefined functions.Philipp Stephani
The byte compiler isn’t smart enough to figure out that these functions are indeed defined in this code branch.
2022-08-25Merge pull request #457 from yanchith/workspace-aware-compilationbrotzeit
Make compilation buffer workspace-aware
2022-08-25rust-buffer-project: don't use rust-buffer-crate when file-remote-pbrotzeit
2022-08-25Fulfil requirements of cargo locate-project --workspaceyanchith
2022-08-25Make compilation buffer workspace-awareyanchith
This fixes incorrect paths for workspace projects when running starting compilation from a source file instead of the project root.
2022-08-19Merge pull request #455 from rust-lang/minor-fixesbrotzeit
minor fixes
2022-08-18apply minor fixesbrotzeit
2022-08-18more test fixingbrotzeit
2022-08-18fix quirks in rust-mode-tests.elbrotzeit
2022-08-18fixesbrotzeit
2022-07-14add deprecation note for racer and rlsbrotzeit
close #453
2022-06-26bump version to 1.0.5brotzeit
2022-06-24Merge pull request #449 from rust-lang/remote-crate-pathbrotzeit
use rust-buffer-crate to get remote crate path
2022-06-24use rust-buffer-crate to get remote crate pathbrotzeit
2022-06-23Merge pull request #447 from glasserc/support-envrcbrotzeit
Support envrc
2022-06-23Add some comments documenting the changeEthan Glasser-Camp
Thanks @brotzeit for the suggestion.
2022-06-22Pass process-environment and exec-path through with-temp-bufferEthan Glasser-Camp
This is the only place in rust-mode where we actually shell out, so I didn't extract this as a macro, but merely made the change in the one place it was necessary.
2022-06-11Merge pull request #445 from jcs-PR/cibrotzeit
test(makefile): Update eask commands
2022-06-11test(makefile): Update eask commandsJen-Chieh Shen
2022-05-19mention elisp-tree-sitterbrotzeit
2022-04-28Merge pull request #444 from jcs-PR/ci-easkbrotzeit
Use Eask for CI
2022-04-28fix network issueJen-Chieh Shen
2022-04-28ci: testJen-Chieh Shen
2022-04-28Disable checkdoc and lint for nowJen-Chieh Shen
2022-04-28Rename jobJen-Chieh Shen
2022-04-28Use Eask for CIJen-Chieh Shen
2022-03-07update readmebrotzeit
2022-02-25mention optional featuresbrotzeit