| Age | Commit message (Collapse) | Author |
|
This makes me share the Playpen URL directly. And this is kind of
necessary for me since the region I'm out of currently, the URL shortener
domain itself is blocked. Snapshot here: https://imgur.com/a/ugLLVwP
|
|
Add let-binding for json-object-type around json-read call
|
|
rust-buffer-project function
|
|
docs: Mention rust-toggle-mutability instead of rustic one
|
|
Also some other minor improvments.
|
|
Update README.md - add default keybindings
|
|
|
|
Refine the error message displaying
|
|
check for rustfmt window before deleting it, fixes the fix to #475
|
|
|
|
adapted from
https://github.com/dominikh/go-mode.el/blob/08aa90d52f0e7d2ad02f961b554e13329672d7cb/go-mode.el#L1986
|
|
Support envrc for rustfmt
|
|
Simplify and correct angle bracket propertizing and macro argument detection.
|
|
|
|
rust-mode updated to the latest version for Eask test suites
|
|
|
|
Fix the issue #475
|
|
issue #475
|
|
tests: Avoid actions' warnings
|
|
|
|
|
|
|
|
tests: Setup node is no longer required
|
|
|
|
|
|
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.
|
|
Fix internal link in README.md
|
|
|
|
Use line-beginning-position instead of obsolete point-at-bol
|
|
Obsolete since Emacs 29 / b7e867b841f47dcff3aeaef9b5608a237386ce70.
|
|
Skip test if Cargo isn’t installed.
|
|
This test requires Cargo and fails if it’s not installed.
|
|
Avoid compilation warnings about potentially-undefined functions.
|
|
The byte compiler isn’t smart enough to figure out that these functions are
indeed defined in this code branch.
|
|
Make compilation buffer workspace-aware
|
|
|
|
|
|
This fixes incorrect paths for workspace projects when running starting
compilation from a source file instead of the project root.
|
|
minor fixes
|
|
|
|
|
|
|
|
|
|
close #453
|
|
|
|
use rust-buffer-crate to get remote crate path
|
|
|
|
Support envrc
|
|
Thanks @brotzeit for the suggestion.
|
|
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.
|