From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#19258: 24.3; Python Mode breaks self-insert-command Date: Tue, 02 Dec 2014 21:07:55 -0500 Message-ID: References: <20141202222414.7971E6055C@jupiter.mumble.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417572594 695 80.91.229.3 (3 Dec 2014 02:09:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2014 02:09:54 +0000 (UTC) Cc: 19258-done@debbugs.gnu.org To: Taylor R Campbell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 03 03:09:47 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XvzNx-0003wx-OO for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Dec 2014 03:09:45 +0100 Original-Received: from localhost ([::1]:39500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvzNx-0001Om-97 for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Dec 2014 21:09:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvzNO-0000YR-OA for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 21:09:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvzNH-0004GZ-Iu for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 21:09:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvzNH-0004GN-FN for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 21:09:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XvzNH-0007m5-9R for bug-gnu-emacs@gnu.org; Tue, 02 Dec 2014 21:09:03 -0500 Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Dec 2014 02:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19258 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 19258@debbugs.gnu.org, monnier@iro.umontreal.ca, campbell@mumble.net Original-Received: via spool by 19258-done@debbugs.gnu.org id=D19258.141757248529804 (code D ref 19258); Wed, 03 Dec 2014 02:09:02 +0000 Original-Received: (at 19258-done) by debbugs.gnu.org; 3 Dec 2014 02:08:05 +0000 Original-Received: from localhost ([127.0.0.1]:52224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvzMK-0007ke-Nw for submit@debbugs.gnu.org; Tue, 02 Dec 2014 21:08:05 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:2494) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XvzMH-0007kH-Mp for 19258-done@debbugs.gnu.org; Tue, 02 Dec 2014 21:08:03 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnQPAOwQflRMCqTq/2dsb2JhbABbgwdSWYI1hVq+fIYhBAICgSQXAQEBAQEBfIQDAQEDAVYjBQsLNBIUGA0kiEoJ1lkBAQEBBgEBAQEekG8HhEgFiwGKHpoQgXiEGSEwgkcBAQE X-IPAS-Result: AnQPAOwQflRMCqTq/2dsb2JhbABbgwdSWYI1hVq+fIYhBAICgSQXAQEBAQEBfIQDAQEDAVYjBQsLNBIUGA0kiEoJ1lkBAQEBBgEBAQEekG8HhEgFiwGKHpoQgXiEGSEwgkcBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="99423357" Original-Received: from 76-10-164-234.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.234]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Dec 2014 21:08:00 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 947E68836; Tue, 2 Dec 2014 21:07:55 -0500 (EST) In-Reply-To: <20141202222414.7971E6055C@jupiter.mumble.net> (Taylor R. Campbell's message of "Tue, 2 Dec 2014 22:24:52 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96817 Archived-At: Version: 24.4 > Open a file named foo.py. Enter the following text: > f = ( > if y[] > Then put the point between the square brackets and type `i', a key > which is bound to self-insert-command. Instead of simply inserting an > `i' as I asked, the whole line will jump to the right several spaces. That was fixed in 24.4 > This happens because Python Mode has incorrectly put a function into > `post-self-insert-hook' that randomly messes with the buffer. There > is no reason Python Mode should touch `post-self-insert-hook' at all > unless I intentionally turn on `electric' nonsense, which I do not do. Thanks for the lecture ;-) Stefan