From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#21671: [PATCH] fix python.el hanging up during fontification #21657 Date: Tue, 23 Feb 2016 21:04:34 +1100 Message-ID: <87oab7u4i5.fsf@gnus.org> References: <87y4f7upjr.fsf@physik.rwth-aachen.de> <871t83yex2.fsf@gnus.org> <87a8mrvjrs.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456221987 27747 80.91.229.3 (23 Feb 2016 10:06:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 10:06:27 +0000 (UTC) Cc: 21671@debbugs.gnu.org To: immerrr again Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 11:06:14 2016 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 1aY9rB-00041Y-KD for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 11:06:13 +0100 Original-Received: from localhost ([::1]:55626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY9rA-0000to-Rt for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 05:06:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY9r3-0000tM-RC for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:06:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY9r0-0005jC-E7 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:06:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY9r0-0005j8-A7 for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aY9r0-0001er-4q for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 05:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2016 10:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21671 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed Original-Received: via spool by 21671-submit@debbugs.gnu.org id=B21671.14562219156313 (code B ref 21671); Tue, 23 Feb 2016 10:06:02 +0000 Original-Received: (at 21671) by debbugs.gnu.org; 23 Feb 2016 10:05:15 +0000 Original-Received: from localhost ([127.0.0.1]:39198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY9qF-0001dl-2r for submit@debbugs.gnu.org; Tue, 23 Feb 2016 05:05:15 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:59443) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aY9qD-0001dd-OW for 21671@debbugs.gnu.org; Tue, 23 Feb 2016 05:05:14 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aY9pf-00023l-MK; Tue, 23 Feb 2016 11:04:40 +0100 In-Reply-To: (immerrr again's message of "Tue, 23 Feb 2016 12:00:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aY9pf-00023l-MK MailScanner-NULL-Check: 1456826680.69856@eNzYincpKSrMABuhcfDOiw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:113553 Archived-At: immerrr again writes: > @@ -1712,7 +1712,11 @@ expressions when looking at them in either direction." > (python-nav-beginning-of-block)) > ((memq context '(statement-start block-start)) > (goto-char next-sexp-pos) > - (python-nav-beginning-of-statement)) > + (unless (bobp) > + ;; If backward-sexp brought the point to > + ;; beginning-of-buffer, beginning-of-statement > + ;; will only bring it back. > + (python-nav-beginning-of-statement))) > (t (goto-char next-sexp-pos)))))))))) I'm not a Python mode user, so I can't really review this patch. I've reopened the bug -- could somebody else have a peek at this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no