Skip to content

Commit f65147c

Browse files
author
Benjamin Moody
committed
Rename rust-doc-indent-line to rust-mode-indent-line.
1 parent 3d2b40f commit f65147c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rust-prog-mode.el

+5-5
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ buffer."
567567
;; foo.bar
568568
(t (funcall skip-dot-identifier)))))))
569569

570-
(defun rust-mode-indent-line ()
570+
(defun rust-mode--indent-line ()
571571
(interactive)
572572
(let ((indent
573573
(save-excursion
@@ -769,7 +769,7 @@ buffer."
769769
(save-excursion (= (progn (goto-char pos1) (line-end-position))
770770
(progn (goto-char pos2) (line-end-position)))))
771771

772-
(defun rust-doc-indent-line ()
772+
(defun rust-mode-indent-line ()
773773
"Indent the current line, and indent code examples in comments.
774774
775775
Indent the current line as `rust-mode-indent-line' does. If
@@ -779,7 +779,7 @@ current line within the code example."
779779
(interactive)
780780

781781
;; First, reindent the current line.
782-
(rust-mode-indent-line)
782+
(rust-mode--indent-line)
783783

784784
;; If point is inside a comment:
785785
(let ((ppss (syntax-ppss)))
@@ -871,7 +871,7 @@ current line within the code example."
871871
(or (string-suffix-p "\t" cb-pad)
872872
(= 0 (length com-prefix) (length cb-pad))
873873
(setq-local indent-tabs-mode nil))
874-
(rust-mode-indent-line)
874+
(rust-mode--indent-line)
875875

876876
;; Extract the indented line and copy back into the
877877
;; original buffer.
@@ -1574,7 +1574,7 @@ whichever comes first."
15741574
(setq-local syntax-propertize-function #'rust-syntax-propertize)
15751575

15761576
;; Indentation
1577-
(setq-local indent-line-function 'rust-doc-indent-line)
1577+
(setq-local indent-line-function 'rust-mode-indent-line)
15781578

15791579
;; Fonts
15801580
(setq-local font-lock-defaults

0 commit comments

Comments
 (0)