Skip to content

Commit 00b19c8

Browse files
author
Mikael Kermorgant
committed
mention requirements and inspiration source
1 parent 1076328 commit 00b19c8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

phpactor-xref.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;; Created: 05 Aug 2019
77
;; Version: 0.1.0
88
;; Keywords: tools, php
9-
;; Package-Requires: ((phpactor "0.1.0"))
9+
;; Package-Requires: ((phpactor "0.1.0")(seq "2"))
1010
;; URL: https://github.com/emacs-php/phpactor.el
1111
;; License: GPL-3.0-or-later
1212

@@ -24,11 +24,12 @@
2424
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
2525

2626
;;; Commentary:
27-
2827
;; xref backend using Phpactor.
28+
;; Inspiration comes from Nicolas Petton's https://github.com/NicolasPetton/xref-js2
2929

3030
;;; Code:
3131
(require 'xref)
32+
(require 'seq)
3233

3334
;;;###autoload
3435
(defun phpactor-xref-backend ()

phpactor.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,8 @@ function."
832832
(let ((arguments (phpactor--command-argments :source :path :offset)))
833833
(apply #'phpactor-action-dispatch (phpactor--rpc "change_visibility" arguments))))
834834

835-
(when phpactor-use-xref
836-
(require 'phpactor-xref))
835+
(autoload 'phpactor-xref-backend "phpactor-xref"
836+
"Phpactor backend for Xref.")
837837

838838
(provide 'phpactor)
839839
;;; phpactor.el ends here

0 commit comments

Comments
 (0)