Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence some byte-compiler warnings. #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions virtualenvwrapper.el
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
;; needed to set gud-pdb-command-name
(require 'gud)

(require 'pcomplete)
(require 'subr-x)

;; customizable variables

(defgroup virtualenvwrapper nil
Expand All @@ -43,7 +46,8 @@ you keep all your virtualenvs, or a list of strings, in which case it
specifies disparate locations in which all your virtualenvs are kept.
The default location is ~/.virtualenvs/, which is where your virtualenvs
are stored if you use virtualenvwrapper in the shell."
:group 'virtualenvwrapper)
:group 'virtualenvwrapper
:type '(string))

(defcustom venv-dirlookup-names
'(".venv" "venv")
Expand Down Expand Up @@ -226,6 +230,9 @@ prompting the user with the string PROMPT"
(defun venv-list-virtualenvs ()
(s-join "\n" (venv-get-candidates)))

(defvar python-shell-virtualenv-path)
(defvar eshell-path-env)

(defun venv--activate-dir (dir)
"Given a directory corresponding to a virtualenv, activate it"
(run-hooks 'venv-preactivate-hook)
Expand Down Expand Up @@ -419,7 +426,7 @@ directories, the new virtualenvs are made in the current
(venv-dir-to-name locs))))
venv-location)))
(run-hooks 'venv-postrmvirtualenv-hook)
(when (called-interactively-p)
(when (called-interactively-p 'interactive)
(message (concat "Deleted virtualenv: " it)))))

;;;###autoload
Expand Down Expand Up @@ -551,6 +558,11 @@ virtualenvwrapper.el."
(defmacro venv--make-pcompletions (commands)
`(progn ,@(-map #'venv--gen-fun commands)))

(defvar eshell-modify-global-environment)

(declare-function projectile-project-root "ext:projectile")
(declare-function eshell-stringify-list "esh-util")

;;;###autoload
(defun venv-initialize-eshell ()
"Configure eshell for use with virtualenvwrapper.el."
Expand Down