aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorJohn Wiegley2015-12-29 21:40:28 -0800
committerJohn Wiegley2015-12-29 21:40:28 -0800
commit9f2f14a0725211b13a744573344636b57b9c98b9 (patch)
tree7190e0fb3d4aa06018d8cf997f06b806fb09a9c8 /lisp/progmodes/python.el
parentd259328fb87db8cc67d52771efcfa653e52c5b71 (diff)
parente823c34072bf045800d91e12c7ddb61fa23c6e30 (diff)
downloademacs-9f2f14a0725211b13a744573344636b57b9c98b9.tar.gz
emacs-9f2f14a0725211b13a744573344636b57b9c98b9.zip
Merge emacs-25 into master (using imerge)
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index b6f7da65752..04542cdff3d 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -273,7 +273,7 @@
273(autoload 'help-function-arglist "help-fns") 273(autoload 'help-function-arglist "help-fns")
274 274
275;;;###autoload 275;;;###autoload
276(add-to-list 'auto-mode-alist (cons (purecopy "\\.py\\'") 'python-mode)) 276(add-to-list 'auto-mode-alist (cons (purecopy "\\.pyw?\\'") 'python-mode))
277;;;###autoload 277;;;###autoload
278(add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode)) 278(add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode))
279 279
@@ -485,7 +485,7 @@ The type returned can be `comment', `string' or `paren'."
485 ((nth 1 ppss) 'paren)))) 485 ((nth 1 ppss) 'paren))))
486 486
487(defsubst python-syntax-comment-or-string-p (&optional ppss) 487(defsubst python-syntax-comment-or-string-p (&optional ppss)
488 "Return non-nil if PPSS is inside 'comment or 'string." 488 "Return non-nil if PPSS is inside comment or string."
489 (nth 8 (or ppss (syntax-ppss)))) 489 (nth 8 (or ppss (syntax-ppss))))
490 490
491(defsubst python-syntax-closing-paren-p () 491(defsubst python-syntax-closing-paren-p ()
@@ -1842,7 +1842,7 @@ This command assumes point is not in a string or comment."
1842 1842
1843(defun python-nav-if-name-main () 1843(defun python-nav-if-name-main ()
1844 "Move point at the beginning the __main__ block. 1844 "Move point at the beginning the __main__ block.
1845When \"if __name__ == '__main__':\" is found returns its 1845When \"if __name__ == \\='__main__\\=':\" is found returns its
1846position, else returns nil." 1846position, else returns nil."
1847 (interactive) 1847 (interactive)
1848 (let ((point (point)) 1848 (let ((point (point))
@@ -3051,7 +3051,7 @@ the python shell:
3051(defun python-shell-send-region (start end &optional send-main msg) 3051(defun python-shell-send-region (start end &optional send-main msg)
3052 "Send the region delimited by START and END to inferior Python process. 3052 "Send the region delimited by START and END to inferior Python process.
3053When optional argument SEND-MAIN is non-nil, allow execution of 3053When optional argument SEND-MAIN is non-nil, allow execution of
3054code inside blocks delimited by \"if __name__== '__main__':\". 3054code inside blocks delimited by \"if __name__== \\='__main__\\=':\".
3055When called interactively SEND-MAIN defaults to nil, unless it's 3055When called interactively SEND-MAIN defaults to nil, unless it's
3056called with prefix argument. When optional argument MSG is 3056called with prefix argument. When optional argument MSG is
3057non-nil, forces display of a user-friendly message if there's no 3057non-nil, forces display of a user-friendly message if there's no
@@ -3068,7 +3068,7 @@ process running; defaults to t when called interactively."
3068(defun python-shell-send-buffer (&optional send-main msg) 3068(defun python-shell-send-buffer (&optional send-main msg)
3069 "Send the entire buffer to inferior Python process. 3069 "Send the entire buffer to inferior Python process.
3070When optional argument SEND-MAIN is non-nil, allow execution of 3070When optional argument SEND-MAIN is non-nil, allow execution of
3071code inside blocks delimited by \"if __name__== '__main__':\". 3071code inside blocks delimited by \"if __name__== \\='__main__\\=':\".
3072When called interactively SEND-MAIN defaults to nil, unless it's 3072When called interactively SEND-MAIN defaults to nil, unless it's
3073called with prefix argument. When optional argument MSG is 3073called with prefix argument. When optional argument MSG is
3074non-nil, forces display of a user-friendly message if there's no 3074non-nil, forces display of a user-friendly message if there's no