all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: 19216@debbugs.gnu.org
Subject: bug#19216: 25.0.50; python.el: Update commentary on RET
Date: Sat, 29 Nov 2014 13:57:49 +0100	[thread overview]
Message-ID: <873892f9ki.fsf@gmx.us> (raw)

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

Hi,

Now that `electric-indent-mode' is enabled by default I think we can
update the commentary of RET behavior in python.el.  I guess this
doesn't require a changelog entry?

—Rasmus

-- 
Governments should be afraid of their people

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Python.el-Update-commentary-on-RET-behavior.patch --]
[-- Type: text/x-diff, Size: 1278 bytes --]

From 2df0e09686f682fd2edd5c8ff9ec46244fdfad8f Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
Date: Sat, 29 Nov 2014 13:37:13 +0100
Subject: [PATCH] Python.el: Update commentary on RET-behavior

Commentary reflect that `electric-indent-mode' in enabled by default.
---
 lisp/progmodes/python.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index b99e195..9f9db6c 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -217,11 +217,13 @@
 ;; `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 probably will miss auto-indentation
-;; when inserting newlines.  To achieve the same behavior you have
-;; two options:
+;; If you used python-mode.el you may miss auto-indentation when
+;; inserting newlines.  To achieve the same behavior you have two
+;; options:

-;; 1) Use GNU/Emacs' standard binding for `newline-and-indent': C-j.
+;; 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:

--
2.1.3

             reply	other threads:[~2014-11-29 12:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-29 12:57 Rasmus [this message]
2014-11-29 17:01 ` bug#19216: python.el: Update commentary on RET Fabián Ezequiel Gallina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873892f9ki.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=19216@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.