diff options
| author | Benjamin Moody <benjaminmoody@gmail.com> | 2024-11-11 12:48:18 -0500 |
|---|---|---|
| committer | Benjamin Moody <benjaminmoody@gmail.com> | 2024-11-11 12:48:18 -0500 |
| commit | f65147cbf3944bcd602a535a42c2a9a6a13bde40 (patch) | |
| tree | 8653728c1d442dfe6a8d470c70a6bd77fce8f0b5 /rust-prog-mode.el | |
| parent | 3d2b40f39eb721e21ecdbff15a596991b5e4da8a (diff) | |
| download | rust-mode-f65147cbf3944bcd602a535a42c2a9a6a13bde40.tar.gz | |
Rename rust-doc-indent-line to rust-mode-indent-line.
Diffstat (limited to 'rust-prog-mode.el')
| -rw-r--r-- | rust-prog-mode.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust-prog-mode.el b/rust-prog-mode.el index 5ba16ab..6263949 100644 --- a/rust-prog-mode.el +++ b/rust-prog-mode.el @@ -567,7 +567,7 @@ buffer." ;; foo.bar (t (funcall skip-dot-identifier))))))) -(defun rust-mode-indent-line () +(defun rust-mode--indent-line () (interactive) (let ((indent (save-excursion @@ -769,7 +769,7 @@ buffer." (save-excursion (= (progn (goto-char pos1) (line-end-position)) (progn (goto-char pos2) (line-end-position))))) -(defun rust-doc-indent-line () +(defun rust-mode-indent-line () "Indent the current line, and indent code examples in comments. Indent the current line as `rust-mode-indent-line' does. If @@ -779,7 +779,7 @@ current line within the code example." (interactive) ;; First, reindent the current line. - (rust-mode-indent-line) + (rust-mode--indent-line) ;; If point is inside a comment: (let ((ppss (syntax-ppss))) @@ -871,7 +871,7 @@ current line within the code example." (or (string-suffix-p "\t" cb-pad) (= 0 (length com-prefix) (length cb-pad)) (setq-local indent-tabs-mode nil)) - (rust-mode-indent-line) + (rust-mode--indent-line) ;; Extract the indented line and copy back into the ;; original buffer. @@ -1574,7 +1574,7 @@ whichever comes first." (setq-local syntax-propertize-function #'rust-syntax-propertize) ;; Indentation - (setq-local indent-line-function 'rust-doc-indent-line) + (setq-local indent-line-function 'rust-mode-indent-line) ;; Fonts (setq-local font-lock-defaults |
