rust-lang / rust-lang/rust-mode
/ symbol will block input text
Open
Nobody has claimed this yet.
- Dominant language
- Emacs Lisp
- Stars
- 1.3k
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Description
Emacs 30+, my emacs is 31.0.91, open any *.rs file, M-x visual-wrap-prefix-mode, type /, it will block any input text.
(with-eval-after-load 'rust-mode
(define-advice rust-in-comment-paragraph (:around (orig body) fix-eob-hang)
"fix the / symbol crash"
(if (save-excursion (end-of-line) (eobp))
(funcall body)
(funcall orig body))))
with claude debug
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in an *.rs buffer with visual-wrap-prefix-mode enabled, then trace rust-in-comment-paragraph and the interaction with end-of-buffer handling. Verify that typing / no longer blocks subsequent input, using the provided advice as a clue for the failing path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs, emacs-lisp, rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100