From: Stefan Kangas Date: Mon, 30 Sep 2024 18:37:27 +0000 (+0200) Subject: Remove out-of-date documentation from python.el X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d259a10447461908af229d38cb2671839a12465c;p=emacs.git Remove out-of-date documentation from python.el * 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. (cherry picked from commit fd1a1b07805a0d84ca3a7fe83a5f90a8fa0fd00b) --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 4e80b8ab5fe..566f7716a69 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -233,23 +233,6 @@ ;; `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'.