diff options
| author | Fabián Ezequiel Gallina | 2012-05-17 00:03:33 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:33 -0300 |
| commit | c4b155cb4982649123e70d89bccb439a067a5e72 (patch) | |
| tree | e7ee43fda147e44e908a7d506789e0ab6c940203 /lisp/progmodes/python.el | |
| parent | e37a45513c00b56f1cf5c738139ee17ec1c33f0b (diff) | |
| download | emacs-c4b155cb4982649123e70d89bccb439a067a5e72.tar.gz emacs-c4b155cb4982649123e70d89bccb439a067a5e72.zip | |
Removed :safe attribute for dangerous variables
Changed vars:
+ python-shell-interpreter
+ python-shell-interpreter-args
+ python-shell-completion-setup-code
+ python-shell-completion-string-code
+ python-shell-completion-module-string-code
+ python-shell-completion-pdb-string-code
+ python-ffap-setup-code
+ python-ffap-string-code
+ python-check-command
+ python-eldoc-setup-code
+ python-eldoc-string-code
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 960630fc988..def6d8bba94 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1104,8 +1104,7 @@ when defun is completed, else nil." | |||
| 1104 | (defcustom python-shell-interpreter "python" | 1104 | (defcustom python-shell-interpreter "python" |
| 1105 | "Default Python interpreter for shell." | 1105 | "Default Python interpreter for shell." |
| 1106 | :type 'string | 1106 | :type 'string |
| 1107 | :group 'python | 1107 | :group 'python) |
| 1108 | :safe 'stringp) | ||
| 1109 | 1108 | ||
| 1110 | (defcustom python-shell-internal-buffer-name "Python Internal" | 1109 | (defcustom python-shell-internal-buffer-name "Python Internal" |
| 1111 | "Default buffer name for the Internal Python interpreter." | 1110 | "Default buffer name for the Internal Python interpreter." |
| @@ -1116,8 +1115,7 @@ when defun is completed, else nil." | |||
| 1116 | (defcustom python-shell-interpreter-args "-i" | 1115 | (defcustom python-shell-interpreter-args "-i" |
| 1117 | "Default arguments for the Python interpreter." | 1116 | "Default arguments for the Python interpreter." |
| 1118 | :type 'string | 1117 | :type 'string |
| 1119 | :group 'python | 1118 | :group 'python) |
| 1120 | :safe 'stringp) | ||
| 1121 | 1119 | ||
| 1122 | (defcustom python-shell-prompt-regexp ">>> " | 1120 | (defcustom python-shell-prompt-regexp ">>> " |
| 1123 | "Regular Expression matching top\-level input prompt of python shell. | 1121 | "Regular Expression matching top\-level input prompt of python shell. |
| @@ -1609,15 +1607,13 @@ else: | |||
| 1609 | return completions" | 1607 | return completions" |
| 1610 | "Code used to setup completion in inferior Python processes." | 1608 | "Code used to setup completion in inferior Python processes." |
| 1611 | :type 'string | 1609 | :type 'string |
| 1612 | :group 'python | 1610 | :group 'python) |
| 1613 | :safe 'stringp) | ||
| 1614 | 1611 | ||
| 1615 | (defcustom python-shell-completion-string-code | 1612 | (defcustom python-shell-completion-string-code |
| 1616 | "';'.join(__COMPLETER_all_completions('''%s'''))\n" | 1613 | "';'.join(__COMPLETER_all_completions('''%s'''))\n" |
| 1617 | "Python code used to get a string of completions separated by semicolons." | 1614 | "Python code used to get a string of completions separated by semicolons." |
| 1618 | :type 'string | 1615 | :type 'string |
| 1619 | :group 'python | 1616 | :group 'python) |
| 1620 | :safe 'stringp) | ||
| 1621 | 1617 | ||
| 1622 | (defcustom python-shell-completion-module-string-code "" | 1618 | (defcustom python-shell-completion-module-string-code "" |
| 1623 | "Python code used to get completions separated by semicolons for imports. | 1619 | "Python code used to get completions separated by semicolons for imports. |
| @@ -1631,15 +1627,13 @@ and use the following as the value of this variable: | |||
| 1631 | 1627 | ||
| 1632 | ';'.join(module_completion('''%s'''))\n" | 1628 | ';'.join(module_completion('''%s'''))\n" |
| 1633 | :type 'string | 1629 | :type 'string |
| 1634 | :group 'python | 1630 | :group 'python) |
| 1635 | :safe 'stringp) | ||
| 1636 | 1631 | ||
| 1637 | (defcustom python-shell-completion-pdb-string-code | 1632 | (defcustom python-shell-completion-pdb-string-code |
| 1638 | "';'.join(globals().keys() + locals().keys())" | 1633 | "';'.join(globals().keys() + locals().keys())" |
| 1639 | "Python code used to get completions separated by semicolons for [i]pdb." | 1634 | "Python code used to get completions separated by semicolons for [i]pdb." |
| 1640 | :type 'string | 1635 | :type 'string |
| 1641 | :group 'python | 1636 | :group 'python) |
| 1642 | :safe 'stringp) | ||
| 1643 | 1637 | ||
| 1644 | (defvar python-shell-completion-original-window-configuration nil) | 1638 | (defvar python-shell-completion-original-window-configuration nil) |
| 1645 | 1639 | ||
| @@ -2119,15 +2113,13 @@ The skeleton will be bound to python-skeleton-NAME." | |||
| 2119 | return ''" | 2113 | return ''" |
| 2120 | "Python code to get a module path." | 2114 | "Python code to get a module path." |
| 2121 | :type 'string | 2115 | :type 'string |
| 2122 | :group 'python | 2116 | :group 'python) |
| 2123 | :safe 'stringp) | ||
| 2124 | 2117 | ||
| 2125 | (defcustom python-ffap-string-code | 2118 | (defcustom python-ffap-string-code |
| 2126 | "__FFAP_get_module_path('''%s''')\n" | 2119 | "__FFAP_get_module_path('''%s''')\n" |
| 2127 | "Python code used to get a string with the path of a module." | 2120 | "Python code used to get a string with the path of a module." |
| 2128 | :type 'string | 2121 | :type 'string |
| 2129 | :group 'python | 2122 | :group 'python) |
| 2130 | :safe 'stringp) | ||
| 2131 | 2123 | ||
| 2132 | (defun python-ffap-module-path (module) | 2124 | (defun python-ffap-module-path (module) |
| 2133 | "Function for `ffap-alist' to return path for MODULE." | 2125 | "Function for `ffap-alist' to return path for MODULE." |
| @@ -2155,8 +2147,7 @@ The skeleton will be bound to python-skeleton-NAME." | |||
| 2155 | "pychecker --stdlib" | 2147 | "pychecker --stdlib" |
| 2156 | "Command used to check a Python file." | 2148 | "Command used to check a Python file." |
| 2157 | :type 'string | 2149 | :type 'string |
| 2158 | :group 'python | 2150 | :group 'python) |
| 2159 | :safe 'stringp) | ||
| 2160 | 2151 | ||
| 2161 | (defvar python-check-custom-command nil | 2152 | (defvar python-check-custom-command nil |
| 2162 | "Internal use.") | 2153 | "Internal use.") |
| @@ -2215,15 +2206,13 @@ Runs COMMAND, a shell command, as if by `compile'. See | |||
| 2215 | print(doc)" | 2206 | print(doc)" |
| 2216 | "Python code to setup documentation retrieval." | 2207 | "Python code to setup documentation retrieval." |
| 2217 | :type 'string | 2208 | :type 'string |
| 2218 | :group 'python | 2209 | :group 'python) |
| 2219 | :safe 'stringp) | ||
| 2220 | 2210 | ||
| 2221 | (defcustom python-eldoc-string-code | 2211 | (defcustom python-eldoc-string-code |
| 2222 | "__PYDOC_get_help('''%s''')\n" | 2212 | "__PYDOC_get_help('''%s''')\n" |
| 2223 | "Python code used to get a string with the documentation of an object." | 2213 | "Python code used to get a string with the documentation of an object." |
| 2224 | :type 'string | 2214 | :type 'string |
| 2225 | :group 'python | 2215 | :group 'python) |
| 2226 | :safe 'stringp) | ||
| 2227 | 2216 | ||
| 2228 | (defun python-eldoc--get-doc-at-point (&optional force-input force-process) | 2217 | (defun python-eldoc--get-doc-at-point (&optional force-input force-process) |
| 2229 | "Internal implementation to get documentation at point. | 2218 | "Internal implementation to get documentation at point. |