From debbugs-submit-bounces@debbugs.gnu.org Mon May 11 07:18:36 2015 Received: (at submit) by debbugs.gnu.org; 11 May 2015 11:18:36 +0000 Received: from localhost ([127.0.0.1]:40625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YrljH-00035U-6R for submit@debbugs.gnu.org; Mon, 11 May 2015 07:18:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52088) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YrljE-00035G-8R for submit@debbugs.gnu.org; Mon, 11 May 2015 07:18:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yrlj8-0002WR-7Q for submit@debbugs.gnu.org; Mon, 11 May 2015 07:18:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrlj8-0002WL-4m for submit@debbugs.gnu.org; Mon, 11 May 2015 07:18:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrlj7-0007mM-1I for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 07:18:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yrlj2-0002QN-3Q for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 07:18:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrlj1-0002PN-TS for bug-gnu-emacs@gnu.org; Mon, 11 May 2015 07:18:20 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4BBIIgR032116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 11 May 2015 07:18:18 -0400 Received: from [10.34.4.133] (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4BBIHn0022605 for ; Mon, 11 May 2015 07:18:18 -0400 Message-ID: <55508FF8.2020305@redhat.com> Date: Mon, 11 May 2015 13:18:16 +0200 From: Petr Hracek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: emacs-24.5 problem with indent-mode Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi folks, I have discovered an issue with Python indent-mode. If I open a Python code and write 'def some_func:' and hit C-j then emacs did not pass any indentation (e.g. 4 spaces). When I turned of electrict-indent-mode then the issue is fixed. I have already asked for that, I guess. But I am not pretty sure. Did you discover this issue? My .emacs file look like this: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(inhibit-startup-screen t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (autoload 'rpm-spec-mode "rpm-spec-mode.el" "RPM spec mode." t) (setq auto-mode-alist (append '(("\\.spec" . rpm-spec-mode)) auto-mode-alist)) (defun my-rpm-changelog-increment-version() (interactive) (goto-char (point-min)) (let * ((max (search-forward-regexp rpm-section-regexp)) (version (rpm-spec-field-value "Version" max))) (rpm-add-change-log-entry (concat "Upgrade version to " version)) )) -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: phracek@redhat.com From debbugs-submit-bounces@debbugs.gnu.org Mon May 11 11:09:29 2015 Received: (at 20547) by debbugs.gnu.org; 11 May 2015 15:09:29 +0000 Received: from localhost ([127.0.0.1]:41128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YrpKe-0001o2-Ub for submit@debbugs.gnu.org; Mon, 11 May 2015 11:09:29 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:62021) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YrpKZ-0001nl-6U for 20547@debbugs.gnu.org; Mon, 11 May 2015 11:09:24 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NO600700XUHC500@a-mtaout23.012.net.il> for 20547@debbugs.gnu.org; Mon, 11 May 2015 18:08:16 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NO6007CCY1J6I70@a-mtaout23.012.net.il>; Mon, 11 May 2015 18:08:12 +0300 (IDT) Date: Mon, 11 May 2015 18:07:57 +0300 From: Eli Zaretskii Subject: Re: bug#20547: emacs-24.5 problem with indent-mode In-reply-to: <55508FF8.2020305@redhat.com> X-012-Sender: halo1@inter.net.il To: Petr Hracek Message-id: <83d227m9te.fsf@gnu.org> References: <55508FF8.2020305@redhat.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20547 Cc: 20547@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 11 May 2015 13:18:16 +0200 > From: Petr Hracek > > I have discovered an issue with Python indent-mode. > > If I open a Python code and write 'def some_func:' and hit C-j > then emacs did not pass any indentation (e.g. 4 spaces). I think that function is now on RET by default. Did you try that? From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 05:41:44 2015 Received: (at 20547) by debbugs.gnu.org; 12 May 2015 09:41:44 +0000 Received: from localhost ([127.0.0.1]:41655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys6h5-0007EP-TH for submit@debbugs.gnu.org; Tue, 12 May 2015 05:41:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34920) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys6h3-0007ED-EW for 20547@debbugs.gnu.org; Tue, 12 May 2015 05:41:42 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 4C6038E3E6; Tue, 12 May 2015 09:41:39 +0000 (UTC) Received: from [10.34.4.133] (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4C9fbEI030393; Tue, 12 May 2015 05:41:38 -0400 Message-ID: <5551CAD0.1090200@redhat.com> Date: Tue, 12 May 2015 11:41:36 +0200 From: Petr Hracek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#20547: emacs-24.5 problem with indent-mode References: <55508FF8.2020305@redhat.com> <83d227m9te.fsf@gnu.org> In-Reply-To: <83d227m9te.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20547 Cc: 20547@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi Eli, right. RET like Return works fine. Thanks. On 05/11/2015 05:07 PM, Eli Zaretskii wrote: >> Date: Mon, 11 May 2015 13:18:16 +0200 >> From: Petr Hracek >> >> I have discovered an issue with Python indent-mode. >> >> If I open a Python code and write 'def some_func:' and hit C-j >> then emacs did not pass any indentation (e.g. 4 spaces). > I think that function is now on RET by default. Did you try that? -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: phracek@redhat.com From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 05:50:21 2015 Received: (at 20547) by debbugs.gnu.org; 12 May 2015 09:50:21 +0000 Received: from localhost ([127.0.0.1]:41659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys6pQ-0007Rf-JA for submit@debbugs.gnu.org; Tue, 12 May 2015 05:50:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39786) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys6pN-0007RX-Ug for 20547@debbugs.gnu.org; Tue, 12 May 2015 05:50:18 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4C9oFIh004943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 May 2015 05:50:16 -0400 Received: from [10.34.4.133] (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4C9oEAX003056; Tue, 12 May 2015 05:50:15 -0400 Message-ID: <5551CCD6.5010107@redhat.com> Date: Tue, 12 May 2015 11:50:14 +0200 From: Petr Hracek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#20547: emacs-24.5 problem with indent-mode References: <55508FF8.2020305@redhat.com> <83d227m9te.fsf@gnu.org> In-Reply-To: <83d227m9te.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20547 Cc: 20547@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) On 05/11/2015 05:07 PM, Eli Zaretskii wrote: >> Date: Mon, 11 May 2015 13:18:16 +0200 >> From: Petr Hracek >> >> I have discovered an issue with Python indent-mode. >> >> If I open a Python code and write 'def some_func:' and hit C-j >> then emacs did not pass any indentation (e.g. 4 spaces). > I think that function is now on RET by default. Did you try that? Is it right, that electric-new-line-and-maybe-indent is hooked to C-j? Based on http://emacswiki.org/emacs/AutoIndentation -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: phracek@redhat.com From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 11:53:00 2015 Received: (at 20547) by debbugs.gnu.org; 12 May 2015 15:53:00 +0000 Received: from localhost ([127.0.0.1]:42553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsCUN-0001GH-Ph for submit@debbugs.gnu.org; Tue, 12 May 2015 11:53:00 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:56875 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsCUM-0001GA-LE for 20547@debbugs.gnu.org; Tue, 12 May 2015 11:52:58 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YsCUM-0004Rh-0R; Tue, 12 May 2015 11:52:58 -0400 From: Glenn Morris To: Petr Hracek Subject: Re: bug#20547: emacs-24.5 problem with indent-mode References: <55508FF8.2020305@redhat.com> <83d227m9te.fsf@gnu.org> <5551CCD6.5010107@redhat.com> X-Spook: eavesdropping Rumsfeld Rubin Elvis condor covert video X-Ran: X(z,!r>6=#f>0~q4zz1{!|,1S=pfKc7?SL>29BTyKe3MM'd'b|w\> X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 12 May 2015 11:52:57 -0400 In-Reply-To: <5551CCD6.5010107@redhat.com> (Petr Hracek's message of "Tue, 12 May 2015 11:50:14 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 20547 Cc: Eli Zaretskii , 20547@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) See the NEWS file: *** `electric-indent-mode' is now enabled by default. Typing RET reindents the current line and indents the new line. `C-j' inserts a newline but does not indent. From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 12:08:51 2015 Received: (at control) by debbugs.gnu.org; 12 May 2015 16:08:51 +0000 Received: from localhost ([127.0.0.1]:42565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsCje-00039u-67 for submit@debbugs.gnu.org; Tue, 12 May 2015 12:08:51 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:57191 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsCjX-00039h-Ig for control@debbugs.gnu.org; Tue, 12 May 2015 12:08:44 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YsCjX-0002sC-BC for control@debbugs.gnu.org; Tue, 12 May 2015 12:08:39 -0400 Date: Tue, 12 May 2015 12:08:39 -0400 Message-Id: Subject: control message for bug 20547 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tag 20547 notabug From debbugs-submit-bounces@debbugs.gnu.org Tue May 19 13:37:53 2015 Received: (at control) by debbugs.gnu.org; 19 May 2015 17:37:53 +0000 Received: from localhost ([127.0.0.1]:50365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YulSi-0006O5-Pn for submit@debbugs.gnu.org; Tue, 19 May 2015 13:37:52 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:43945 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YulSh-0006Ny-J3 for control@debbugs.gnu.org; Tue, 19 May 2015 13:37:51 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YulSh-00034V-An for control@debbugs.gnu.org; Tue, 19 May 2015 13:37:51 -0400 Date: Tue, 19 May 2015 13:37:51 -0400 Message-Id: Subject: control message for bug 20547 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 20547 From unknown Mon Jun 23 18:34:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 17 Jun 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator