Remove out-of-date documentation from python.el
authorStefan Kangas <stefankangas@gmail.com>
Mon, 30 Sep 2024 18:37:27 +0000 (20:37 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 30 Sep 2024 18:38:01 +0000 (20:38 +0200)
* lisp/progmodes/python.el: Remove out-of-date documentation about
automatic indentation; 'electric-indent-mode' is enabled by default in
Emacs 24.4 or later, so this is no longer an issue.

lisp/progmodes/python.el

index a50446343a0a430542a6dcd6e1d63ee6a49d789c..9d87d6cb6a55c7369300a15454b06a7407ba2820 100644 (file)
 ;; `python-imenu-format-parent-item-jump-label-function' variables for
 ;; changing the way labels are formatted in the tree version.
 
-;; If you used python-mode.el you may miss auto-indentation when
-;; inserting newlines.  To achieve the same behavior you have two
-;; options:
-
-;; 1) Enable the minor-mode `electric-indent-mode' (enabled by
-;;    default) and use RET.  If this mode is disabled use
-;;    `newline-and-indent', bound to C-j.
-
-;; 2) Add the following hook in your .emacs:
-
-;; (add-hook 'python-mode-hook
-;;   (lambda ()
-;;     (define-key python-mode-map "\C-m" 'newline-and-indent)))
-
-;; I'd recommend the first one since you'll get the same behavior for
-;; all modes out-of-the-box.
-
 ;; Flymake: A Flymake backend, using the pyflakes program by default,
 ;; is provided.  You can also use flake8 or pylint by customizing
 ;; `python-flymake-command'.