aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-05-17 00:03:34 -0300
committerFabián Ezequiel Gallina2012-05-17 00:03:34 -0300
commitbbd27e0710f2885448949880e5b3e48c6a7b97a5 (patch)
tree748bc49dbaa609301ef30b78b06d8a86565a46cc /lisp/progmodes/python.el
parentbba416bcf2bc4270420bf99f6a28b06f9e4e68b3 (diff)
downloademacs-bbd27e0710f2885448949880e5b3e48c6a7b97a5.tar.gz
emacs-bbd27e0710f2885448949880e5b3e48c6a7b97a5.zip
`python-check' now can have named buffers on its own depending the command launched.
New vars: + python-check-buffer-name
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 5406d74f69e..2f886a5b803 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2149,6 +2149,12 @@ The skeleton will be bound to python-skeleton-NAME."
2149 :type 'string 2149 :type 'string
2150 :group 'python) 2150 :group 'python)
2151 2151
2152(defcustom python-check-buffer-name
2153 "*Python check: %s*"
2154 "Buffer name used for check commands."
2155 :type 'string
2156 :group 'python)
2157
2152(defvar python-check-custom-command nil 2158(defvar python-check-custom-command nil
2153 "Internal use.") 2159 "Internal use.")
2154 2160
@@ -2170,7 +2176,9 @@ Runs COMMAND, a shell command, as if by `compile'. See
2170 (save-some-buffers (not compilation-ask-about-save) nil) 2176 (save-some-buffers (not compilation-ask-about-save) nil)
2171 (let ((process-environment (python-shell-calculate-process-environment)) 2177 (let ((process-environment (python-shell-calculate-process-environment))
2172 (exec-path (python-shell-calculate-exec-path))) 2178 (exec-path (python-shell-calculate-exec-path)))
2173 (compilation-start command))) 2179 (compilation-start command nil
2180 (lambda (mode-name)
2181 (format python-check-buffer-name command)))))
2174 2182
2175 2183
2176;;; Eldoc 2184;;; Eldoc