@@ -567,7 +567,7 @@ buffer."
567
567
; ; foo.bar
568
568
(t (funcall skip-dot-identifier)))))))
569
569
570
- (defun rust-mode-indent-line ()
570
+ (defun rust-mode-- indent-line ()
571
571
(interactive )
572
572
(let ((indent
573
573
(save-excursion
@@ -769,7 +769,7 @@ buffer."
769
769
(save-excursion (= (progn (goto-char pos1) (line-end-position ))
770
770
(progn (goto-char pos2) (line-end-position )))))
771
771
772
- (defun rust-doc -indent-line ()
772
+ (defun rust-mode -indent-line ()
773
773
" Indent the current line, and indent code examples in comments.
774
774
775
775
Indent the current line as `rust-mode-indent-line' does. If
@@ -779,7 +779,7 @@ current line within the code example."
779
779
(interactive )
780
780
781
781
; ; First, reindent the current line.
782
- (rust-mode-indent-line)
782
+ (rust-mode-- indent-line)
783
783
784
784
; ; If point is inside a comment:
785
785
(let ((ppss (syntax-ppss )))
@@ -871,7 +871,7 @@ current line within the code example."
871
871
(or (string-suffix-p " \t " cb-pad)
872
872
(= 0 (length com-prefix) (length cb-pad))
873
873
(setq-local indent-tabs-mode nil ))
874
- (rust-mode-indent-line)
874
+ (rust-mode-- indent-line)
875
875
876
876
; ; Extract the indented line and copy back into the
877
877
; ; original buffer.
@@ -1574,7 +1574,7 @@ whichever comes first."
1574
1574
(setq-local syntax-propertize-function #'rust-syntax-propertize )
1575
1575
1576
1576
; ; Indentation
1577
- (setq-local indent-line-function 'rust-doc -indent-line )
1577
+ (setq-local indent-line-function 'rust-mode -indent-line )
1578
1578
1579
1579
; ; Fonts
1580
1580
(setq-local font-lock-defaults
0 commit comments