| Age | Commit message (Collapse) | Author |
|
|
|
Adds a customization to default to workspace or local crate.
|
|
|
|
Support running interactive programs
|
|
|
|
Adds rust-locate-project-in-workspace custom variable, which controls whether or not to locate the workspace
project using `--workspace` (the default) or not.
In cases where there is only one create, this should make no difference.
The default setting should match the existing behavior.
Github issue #545
|
|
fix(treesit): auto mode precedence of rust-mode
|
|
Currently, `rust-ts-mode` will add itself to
the `auto-mode-alist` when it is loaded, which
is after the autoload for adding `rust-mode`.
We need to re-add `rust-mode` after loading the
treesitter package to make sure this mode has
higher priority.
|
|
Fix ancient defect and dependency complications related to having two rust-mode implementations
|
|
"rust-prog-mode.el" and "rust-mode-treesitter.el" provide competing
implementations of `rust-mode'. Both implementations depend on code
in "rust-mode.el", and thus must require that.
Doing that is complicated by the fact that "rust-mode.el" loads one
of these libraries, depending on `rust-mode-treesitter-derive's value.
Address this conflict by:
1. Requiring feature `rust-mode' in the two libraries that implement the
`rust-mode' major-mode and that use things defined in "rust-mode.el".
2. Moving the require forms for these two libraries in "rust-mode.el",
below the `provide' form for `rust-mode'.
|
|
CI: Support for emacs 29.3
|
|
|
|
That was always the intention, but the cleanup code was always
placed outside the unwind forms.
lib/rust-mode/rust-rustfmt.el:60:12: Warning: ‘unwind-protect’
without unwind forms
|
|
Add email in package description
|
|
Fix #531
|
|
Allow autoloaded rust-mode function to be called interactively
|
|
|
|
Fix rust-mode lazy loading
|
|
This PR fixes the following error that happends when opening a .rs
file:
File mode specification error: (void-function rust-mode)
It conditionally autoloads the proper rust-mode version depending on
the user environment.
Fixes #528
|
|
Remove autoload for prog-mode based rust-mode
|
|
The load of specific rust-mode now depends on the tree sitter variable
that we have, so disabling autoload for this too.
|
|
Require rust-ts-mode carefully
|
|
Fix #524
|
|
CI: Update to test with last 3 emacs version
|
|
|
|
Also includes Emacs 29.2
|
|
Fix tree-sitter integration for older emacs
|
|
|
|
|
|
|
|
Fix undefined function
|
|
|
|
Fix rust-mode and tree sitter integration
|
|
|
|
Fix native compile warnings
|
|
|
|
|
|
provide alternative rust-mode that derives from rust-ts-mode
|
|
|
|
|
|
Match panics in `compilation-mode`
|
|
If we encounter a panic when executing Rust code in
`compilation-mode`, we now correctly highlight the location where the
panic occurred.
For example:
```
thread 'main' panicked at src/main.rs:2:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
Here, `src/main.rs:2:5` is highlighted. The developer is then able to
execute `compile-goto-error` to jump to the correct spot in the code.
Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
Co-authored-by: zlef <zachlefevre@gmail.com>
|
|
test: Emacs 29.1
|
|
Eliminate "Containing expression ends prematurely" error
|
|
|
|
- Change rust-insert-dbg to ...-sexp
- Handle the cases where forwarding is impossible
- Add tests
|
|
* rust-dbg-wrap-or-unwrap: Cut unnecessary conditional branches for region-active-p
* rust-dbg-wrap-or-unwrap: Do not using save-excursion anymore
* rust-dbg-wrap-or-unwrap: Use cond, allow more other cases.
* rust-dbg-wrap-or-unwrap: Introduce rust-insert-dbg-alone
* rust-dbg-wrap-or-unwrap: Adjust cursor position after insertion
* rust-dbg-wrap-or-unwrap: Add tests for empty line
* rust-dbg-wrap-or-unwrap: Test final position in empty line case
* rust-dbg-wrap-or-unwrap: Test final cursor position in existing wrap tests
|
|
Don’t duplicate test name.
|
|
Emacs 29 will signal an error in this case in batch mode, and in any case the
first test in the duplicate series will never run.
|
|
Establish more-controlled environment for fill-paragraph tests.
|