mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
auto merge of #13922 : Rufflewind/rust/patch-1, r=pnkfelix
Since rust-top-item-beg-re hasn't been defined yet, using defvar instead of setq is more appropriate here (and also silences compilation warnings).
This commit is contained in:
commit
edae0bdabf
@ -380,11 +380,11 @@ idomenu (imenu with `ido-mode') for best mileage.")
|
||||
;;; Defun Motions
|
||||
|
||||
;;; Start of a Rust item
|
||||
(setq rust-top-item-beg-re
|
||||
(concat "^\\s-*\\(?:priv\\|pub\\)?\\s-*"
|
||||
(regexp-opt
|
||||
'("enum" "struct" "type" "mod" "use" "fn" "static" "impl"
|
||||
"extern" "impl" "static" "trait"))))
|
||||
(defvar rust-top-item-beg-re
|
||||
(concat "^\\s-*\\(?:priv\\|pub\\)?\\s-*"
|
||||
(regexp-opt
|
||||
'("enum" "struct" "type" "mod" "use" "fn" "static" "impl"
|
||||
"extern" "impl" "static" "trait"))))
|
||||
|
||||
(defun rust-beginning-of-defun (&optional arg)
|
||||
"Move backward to the beginning of the current defun.
|
||||
|
Loading…
Reference in New Issue
Block a user