diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 10 |
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. |
| 1845 | When \"if __name__ == '__main__':\" is found returns its | 1845 | When \"if __name__ == \\='__main__\\=':\" is found returns its |
| 1846 | position, else returns nil." | 1846 | position, 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. |
| 3053 | When optional argument SEND-MAIN is non-nil, allow execution of | 3053 | When optional argument SEND-MAIN is non-nil, allow execution of |
| 3054 | code inside blocks delimited by \"if __name__== '__main__':\". | 3054 | code inside blocks delimited by \"if __name__== \\='__main__\\=':\". |
| 3055 | When called interactively SEND-MAIN defaults to nil, unless it's | 3055 | When called interactively SEND-MAIN defaults to nil, unless it's |
| 3056 | called with prefix argument. When optional argument MSG is | 3056 | called with prefix argument. When optional argument MSG is |
| 3057 | non-nil, forces display of a user-friendly message if there's no | 3057 | non-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. |
| 3070 | When optional argument SEND-MAIN is non-nil, allow execution of | 3070 | When optional argument SEND-MAIN is non-nil, allow execution of |
| 3071 | code inside blocks delimited by \"if __name__== '__main__':\". | 3071 | code inside blocks delimited by \"if __name__== \\='__main__\\=':\". |
| 3072 | When called interactively SEND-MAIN defaults to nil, unless it's | 3072 | When called interactively SEND-MAIN defaults to nil, unless it's |
| 3073 | called with prefix argument. When optional argument MSG is | 3073 | called with prefix argument. When optional argument MSG is |
| 3074 | non-nil, forces display of a user-friendly message if there's no | 3074 | non-nil, forces display of a user-friendly message if there's no |