From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: Re: Can I have my electric cake and eat it too? (Python mode question) Date: Mon, 30 Jan 2017 15:28:05 -0600 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1485811716 7838 195.159.176.226 (30 Jan 2017 21:28:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2017 21:28:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 30 22:28:32 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYJV2-0001p8-HM for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jan 2017 22:28:32 +0100 Original-Received: from localhost ([::1]:35141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYJV6-0006AG-IS for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jan 2017 16:28:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYJUe-00069x-5t for help-gnu-emacs@gnu.org; Mon, 30 Jan 2017 16:28:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYJUd-0005Lw-CQ for help-gnu-emacs@gnu.org; Mon, 30 Jan 2017 16:28:08 -0500 Original-Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:35941) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYJUd-0005Lq-6W for help-gnu-emacs@gnu.org; Mon, 30 Jan 2017 16:28:07 -0500 Original-Received: by mail-wm0-x22d.google.com with SMTP id c85so233639518wmi.1 for ; Mon, 30 Jan 2017 13:28:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xe7dEen7k+E8HJ1n0UcUPWMXrlSPvpflZ/sEi5v8eSA=; b=gdw4RHg7llz8JXUQjNR78RMDMY5X9D6GnlpdRLLZ6TTUhS7h5+YrIlQbA0WMECIHE1 rxCr3ZtvmUHH7o+UuODEC/APAXaBfTxVwx/3NWvAC/ov55aRkjxUaczTCqVIyp56c+Ms 5HuvVkYwpBU9CQIdr1sWWFVt4XtmJyjGSgRMGTrznRc9ZDiudAOFjrU7JoEdsKZfjtfD YvtL7cOhLiCzFZuIyHdd820kqiEn1bEoA0AR+uFduZpTupEmMkVSPa5KrKbTNNPycGGY rf9J+Vcygj5KvSSBkyXdPrlcv9me1c5g4RsiQFx1uQilDvLLqpn5z0XuOpIK35SsZNNe 4Jfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xe7dEen7k+E8HJ1n0UcUPWMXrlSPvpflZ/sEi5v8eSA=; b=LR9Te67t4yqSLPE8HC6P48UzP9xWNCW4m3CwDeOJWoSEIUrFK+OwbkAxBA/OAvs5Pa V7jBiY405a9qE3mzHcT2HZqmpmb+zY0MefI7kw2lwJgXporD/5g1W6xztB8qRZd51POA 25tVeGWGCrpxv+G+z2dJtUWdeb591qmgSb9Dlfv4nNEJQZROh1+LcIfjG6Rdu7jV1sur Nwft7ksjQFBeE0kUuSJjcA0nDYkB07NmVNlcDuQfFmGv1dJLAE4EshP7KhlQkeQ9XDuF bodsTcNS4udfwywBR4lY4IAgwVulJXVhY5znE5sJ59Gtfs7FHb8uhkSAKOT6cmo9i6FZ Pxyw== X-Gm-Message-State: AIkVDXLVOng+CMgulmwEPnOwa6atKjrVbVNZeoMUTufEs7DSvEpUxaneY6LE0ancFDrJfkXB8N3+beKm9A4mIw== X-Received: by 10.223.133.164 with SMTP id 33mr20825802wrt.39.1485811685954; Mon, 30 Jan 2017 13:28:05 -0800 (PST) Original-Received: by 10.28.224.86 with HTTP; Mon, 30 Jan 2017 13:28:05 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112207 Archived-At: On Mon, Jan 30, 2017 at 3:23 PM, Skip Montanaro wrote: > If there was an electric-newline-and-indent function, I could just bind it > to C-j in my python-mode-hook. It obviously won't be hard to write (just > remove the mode check) Even easier will be the just bind C-j to 'newline-and-indent' in my python-mode-map. :-) Still curious why python-mode doesn't do it this way now. Skip