Skip to content

rename rust-matching-angle-bracker-timer to rust-matching-angle-bracket-timer #66

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ This is written mainly to be used as `end-of-defun-function' for Rust."

(defvar rust-point-before-matching-angle-bracket 0)

(defvar rust-matching-angle-bracker-timer nil)
(defvar rust-matching-angle-bracket-timer nil)

(defun rust-find-matching-angle-bracket ()
(save-excursion
Expand Down Expand Up @@ -659,9 +659,9 @@ This is written mainly to be used as `end-of-defun-function' for Rust."

(defun rust-restore-point-after-angle-bracket ()
(goto-char rust-point-before-matching-angle-bracket)
(when rust-matching-angle-bracker-timer
(cancel-timer rust-matching-angle-bracker-timer))
(setq rust-matching-angle-bracker-timer nil)
(when rust-matching-angle-bracket-timer
(cancel-timer rust-matching-angle-bracket-timer))
(setq rust-matching-angle-bracket-timer nil)
(remove-hook 'pre-command-hook 'rust-restore-point-after-angle-bracket))

(defun rust-match-angle-bracket-hook ()
Expand All @@ -677,7 +677,7 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
(setq rust-point-before-matching-angle-bracket (point))
(goto-char matching-angle-bracket-point)
(add-hook 'pre-command-hook 'rust-restore-point-after-angle-bracket)
(setq rust-matching-angle-bracker-timer
(setq rust-matching-angle-bracket-timer
(run-at-time blink-matching-delay nil 'rust-restore-point-after-angle-bracket)))))))

(defun rust-match-angle-bracket ()
Expand Down