|
77 | 77 | (defun rust-rewind-irrelevant ()
|
78 | 78 | (let ((starting (point)))
|
79 | 79 | (skip-chars-backward "[:space:]\n")
|
80 |
| - (if (looking-back "\\*/") (backward-char)) |
| 80 | + (if (looking-back "\\*/" nil) (backward-char)) |
81 | 81 | (if (rust-in-str-or-cmnt)
|
82 | 82 | (rust-rewind-past-str-cmnt))
|
83 | 83 | (if (/= starting (point))
|
|
139 | 139 | ;;
|
140 | 140 | ((skip-dot-identifier
|
141 | 141 | (lambda ()
|
142 |
| - (when (looking-back (concat "\\." rust-re-ident)) |
| 142 | + (when (looking-back (concat "\\." rust-re-ident) nil) |
143 | 143 | (forward-thing 'symbol -1)
|
144 | 144 | (backward-char)
|
145 | 145 | (- (current-column) rust-indent-offset)))))
|
146 | 146 | (cond
|
147 | 147 | ;; foo.bar(...)
|
148 |
| - ((looking-back ")") |
| 148 | + ((looking-back ")" nil) |
149 | 149 | (backward-list 1)
|
150 | 150 | (funcall skip-dot-identifier))
|
151 | 151 |
|
|
269 | 269 | ;; ..or if the previous line ends with any of these:
|
270 | 270 | ;; { ? : ( , ; [ }
|
271 | 271 | ;; then we are at the beginning of an expression, so stay on the baseline...
|
272 |
| - (looking-back "[(,:;?[{}]\\|[^|]|") |
| 272 | + (looking-back "[(,:;?[{}]\\|[^|]|" nil) |
273 | 273 | ;; or if the previous line is the end of an attribute, stay at the baseline...
|
274 | 274 | (progn (rust-rewind-to-beginning-of-current-level-expr) (looking-at "#")))))
|
275 | 275 | baseline
|
@@ -666,7 +666,7 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
|
666 | 666 | "If the most recently inserted character is a `>`, briefly moves point to matching `<` (if any)."
|
667 | 667 | (interactive)
|
668 | 668 | (when (and rust-blink-matching-angle-brackets
|
669 |
| - (looking-back ">")) |
| 669 | + (looking-back ">" nil)) |
670 | 670 | (let ((matching-angle-bracket-point (save-excursion
|
671 | 671 | (backward-char 1)
|
672 | 672 | (rust-find-matching-angle-bracket))))
|
|
0 commit comments