diff options
| author | Philip K | 2020-05-30 21:47:51 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-06-13 10:40:13 +0300 |
| commit | f4b99b34ed182082a17516ab5f99953275cb171d (patch) | |
| tree | f42f427b9ba6edb14b3047fdb7fd0f4c1c765f4c /lisp/progmodes/python.el | |
| parent | a3474c59dee35d687f773993869f84eb5f9d2eda (diff) | |
| download | emacs-f4b99b34ed182082a17516ab5f99953275cb171d.tar.gz emacs-f4b99b34ed182082a17516ab5f99953275cb171d.zip | |
Mark python-shell-virtualenv-root as safe for directories
* lisp/progmodes/python.el (python-shell-virtualenv-root):
Require a directory name. (Bug#41619)
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index aec27a58dea..0ce80db1993 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2092,7 +2092,8 @@ executed through tramp connections." | |||
| 2092 | This variable, when set to a string, makes the environment to be | 2092 | This variable, when set to a string, makes the environment to be |
| 2093 | modified such that shells are started within the specified | 2093 | modified such that shells are started within the specified |
| 2094 | virtualenv." | 2094 | virtualenv." |
| 2095 | :type '(choice (const nil) string) | 2095 | :type '(choice (const nil) directory) |
| 2096 | :safe #'file-directory-p | ||
| 2096 | :group 'python) | 2097 | :group 'python) |
| 2097 | 2098 | ||
| 2098 | (defcustom python-shell-setup-codes nil | 2099 | (defcustom python-shell-setup-codes nil |