Skip to content

Commit 22636dd

Browse files
authored
Merge pull request racer-rust#118 from Hi-Angel/master
Allow functions to be called non-interactively, e.g. from a code
2 parents d043998 + 839d38c commit 22636dd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

racer.el

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,17 +767,20 @@ Note that this feature is only available when `company-mode' is installed."
767767
;;;###autoload
768768
(defun racer-find-definition ()
769769
"Run the racer find-definition command and process the results."
770-
(interactive (racer--find-definition #'find-file)))
770+
(interactive)
771+
(racer--find-definition #'find-file))
771772

772773
;;;###autoload
773774
(defun racer-find-definition-other-window ()
774775
"Run the racer find-definition command and process the results."
775-
(interactive (racer--find-definition #'find-file-other-window)))
776+
(interactive)
777+
(racer--find-definition #'find-file-other-window))
776778

777779
;;;###autoload
778780
(defun racer-find-definition-other-frame ()
779781
"Run the racer find-definition command and process the results."
780-
(interactive (racer--find-definition #'find-file-other-frame)))
782+
(interactive)
783+
(racer--find-definition #'find-file-other-frame))
781784

782785
(defun racer--syntax-highlight (str)
783786
"Apply font-lock properties to a string STR of Rust code."

0 commit comments

Comments
 (0)