diff options
| author | Stefan Kangas | 2021-09-14 08:43:18 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-09-16 19:37:07 +0200 |
| commit | 63f419f1339cbd0a7d1e64586854a4f01b3f80d1 (patch) | |
| tree | 80bce487ec8c4f7d8258d13a49b21cb4eb3f289b /lisp/progmodes/python.el | |
| parent | 36474a1e490a5eae266805a0e04615741d56692c (diff) | |
| download | emacs-63f419f1339cbd0a7d1e64586854a4f01b3f80d1.tar.gz emacs-63f419f1339cbd0a7d1e64586854a4f01b3f80d1.zip | |
; Minor stylistic fixes found by checkdoc
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 19b79b69197..f848f4c1030 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -542,7 +542,7 @@ the {...} holes that appear within f-strings." | |||
| 542 | (1 font-lock-function-name-face)) | 542 | (1 font-lock-function-name-face)) |
| 543 | (,(rx symbol-start "class" (1+ space) (group (1+ (or word ?_)))) | 543 | (,(rx symbol-start "class" (1+ space) (group (1+ (or word ?_)))) |
| 544 | (1 font-lock-type-face))) | 544 | (1 font-lock-type-face))) |
| 545 | "Font lock keywords to use in python-mode for level 1 decoration. | 545 | "Font lock keywords to use in `python-mode' for level 1 decoration. |
| 546 | 546 | ||
| 547 | This is the minimum decoration level, including function and | 547 | This is the minimum decoration level, including function and |
| 548 | class declarations.") | 548 | class declarations.") |
| @@ -596,7 +596,7 @@ class declarations.") | |||
| 596 | ;; Extras: | 596 | ;; Extras: |
| 597 | "__all__") | 597 | "__all__") |
| 598 | symbol-end) . font-lock-builtin-face)) | 598 | symbol-end) . font-lock-builtin-face)) |
| 599 | "Font lock keywords to use in python-mode for level 2 decoration. | 599 | "Font lock keywords to use in `python-mode' for level 2 decoration. |
| 600 | 600 | ||
| 601 | This is the medium decoration level, including everything in | 601 | This is the medium decoration level, including everything in |
| 602 | `python-font-lock-keywords-level-1', as well as keywords and | 602 | `python-font-lock-keywords-level-1', as well as keywords and |
| @@ -712,7 +712,7 @@ avoid '==' being treated as an assignment." | |||
| 712 | (or ")" "]") (* space) | 712 | (or ")" "]") (* space) |
| 713 | assignment-operator)) | 713 | assignment-operator)) |
| 714 | (1 font-lock-variable-name-face))) | 714 | (1 font-lock-variable-name-face))) |
| 715 | "Font lock keywords to use in python-mode for maximum decoration. | 715 | "Font lock keywords to use in `python-mode' for maximum decoration. |
| 716 | 716 | ||
| 717 | This decoration level includes everything in | 717 | This decoration level includes everything in |
| 718 | `python-font-lock-keywords-level-2', as well as constants, | 718 | `python-font-lock-keywords-level-2', as well as constants, |
| @@ -726,7 +726,7 @@ decorators, exceptions, and assignments.") | |||
| 726 | ; is more than 1, or t (which it is, | 726 | ; is more than 1, or t (which it is, |
| 727 | ; by default). | 727 | ; by default). |
| 728 | ) | 728 | ) |
| 729 | "List of font lock keyword specifications to use in python-mode. | 729 | "List of font lock keyword specifications to use in `python-mode'. |
| 730 | 730 | ||
| 731 | Which one will be chosen depends on the value of | 731 | Which one will be chosen depends on the value of |
| 732 | `font-lock-maximum-decoration'.") | 732 | `font-lock-maximum-decoration'.") |
| @@ -3072,13 +3072,12 @@ of `error' with a user-friendly message." | |||
| 3072 | (or (python-shell-get-process) | 3072 | (or (python-shell-get-process) |
| 3073 | (if interactivep | 3073 | (if interactivep |
| 3074 | (user-error | 3074 | (user-error |
| 3075 | "Start a Python process first with `M-x run-python' or `%s'." | 3075 | "Start a Python process first with `M-x run-python' or `%s'" |
| 3076 | ;; Get the binding. | 3076 | ;; Get the binding. |
| 3077 | (key-description | 3077 | (key-description |
| 3078 | (where-is-internal | 3078 | (where-is-internal |
| 3079 | #'run-python overriding-local-map t))) | 3079 | #'run-python overriding-local-map t))) |
| 3080 | (error | 3080 | (error "No inferior Python process running")))) |
| 3081 | "No inferior Python process running.")))) | ||
| 3082 | 3081 | ||
| 3083 | (defun python-shell-get-or-create-process (&optional cmd dedicated show) | 3082 | (defun python-shell-get-or-create-process (&optional cmd dedicated show) |
| 3084 | "Get or create an inferior Python process for current buffer and return it. | 3083 | "Get or create an inferior Python process for current buffer and return it. |
| @@ -4714,10 +4713,10 @@ returns will be used. If not FORCE-PROCESS is passed what | |||
| 4714 | docstring))))) | 4713 | docstring))))) |
| 4715 | 4714 | ||
| 4716 | (defvar-local python-eldoc-get-doc t | 4715 | (defvar-local python-eldoc-get-doc t |
| 4717 | "Non-nil means eldoc should fetch the documentation | 4716 | "Non-nil means eldoc should fetch the documentation automatically. |
| 4718 | automatically. Set to nil by `python-eldoc-function' if | 4717 | Set to nil by `python-eldoc-function' if |
| 4719 | `python-eldoc-function-timeout-permanent' is non-nil and | 4718 | `python-eldoc-function-timeout-permanent' is non-nil and |
| 4720 | `python-eldoc-function' times out.") | 4719 | `python-eldoc-function' times out.") |
| 4721 | 4720 | ||
| 4722 | (defcustom python-eldoc-function-timeout 1 | 4721 | (defcustom python-eldoc-function-timeout 1 |
| 4723 | "Timeout for `python-eldoc-function' in seconds." | 4722 | "Timeout for `python-eldoc-function' in seconds." |