From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: commends in Python mode Date: Thu, 04 Jan 2007 23:57:03 -0500 Message-ID: References: <200612260030.49345.pogonyshev@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1167973047 16766 80.91.229.12 (5 Jan 2007 04:57:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Jan 2007 04:57:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 05 05:57:25 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H2h8t-0000te-AK for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 05:57:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2h8s-0004ys-O2 for ged-emacs-devel@m.gmane.org; Thu, 04 Jan 2007 23:57:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2h8h-0004yn-BJ for emacs-devel@gnu.org; Thu, 04 Jan 2007 23:57:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2h8g-0004yX-Av for emacs-devel@gnu.org; Thu, 04 Jan 2007 23:57:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2h8g-0004yU-6d for emacs-devel@gnu.org; Thu, 04 Jan 2007 23:57:10 -0500 Original-Received: from [209.226.175.97] (helo=tomts40-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2h8f-0004Xl-Oe for emacs-devel@gnu.org; Thu, 04 Jan 2007 23:57:09 -0500 Original-Received: from pastel.home ([74.12.206.167]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070105045708.CWMV1750.tomts40-srv.bellnexxia.net@pastel.home> for ; Thu, 4 Jan 2007 23:57:08 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 9148C7EE1; Thu, 4 Jan 2007 23:57:03 -0500 (EST) Original-To: Paul Pogonyshev In-Reply-To: <200612260030.49345.pogonyshev@gmx.net> (Paul Pogonyshev's message of "Tue\, 26 Dec 2006 00\:30\:49 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64807 Archived-At: > Try inputting the following in a Python mode buffer: > test = (1, > # Apostrophe: ' > 2) > You can see that the apostrophe breaks sexp scanning (the closing > paren is not paired with the opening) and probably more. This > doesn't happen in e.g. C-mode, so it is a problem of Python mode. I believe you're just suffering the consequences of having parse-sexp-ignore-comments set to nil. IMO it should always be set to t, but for some reason it defaults to nil. Stefan