From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#24856: 25.1.50; Emacs stucks when using C-k to kill lines in python-mode if the next line is a beginning of a docstring Date: Wed, 2 Nov 2016 02:59:29 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FNH65Taq1mXQjupC6cC2La2mcojpEcujh" X-Trace: blaine.gmane.org 1478070027 11698 195.159.176.226 (2 Nov 2016 07:00:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2016 07:00:27 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 To: 24856@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 02 08:00:21 2016 Return-path: Envelope-to: geb-bug-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 1c1pWr-0000rM-9o for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2016 08:00:09 +0100 Original-Received: from localhost ([::1]:52999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1pWu-0005Er-06 for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2016 03:00:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1pWo-0005DL-0G for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 03:00:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1pWk-0004qD-TE for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 03:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1pWk-0004q7-PI for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 03:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c1pWk-0000lK-HL for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 03:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Nov 2016 07:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24856 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14780699902885 (code B ref -1); Wed, 02 Nov 2016 07:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Nov 2016 06:59:50 +0000 Original-Received: from localhost ([127.0.0.1]:39707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1pWY-0000kT-E8 for submit@debbugs.gnu.org; Wed, 02 Nov 2016 02:59:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1pWX-0000kH-6d for submit@debbugs.gnu.org; Wed, 02 Nov 2016 02:59:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1pWQ-0004j1-Oj for submit@debbugs.gnu.org; Wed, 02 Nov 2016 02:59:44 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54711) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1pWQ-0004is-L9 for submit@debbugs.gnu.org; Wed, 02 Nov 2016 02:59:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1pWP-0005C4-6g for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 02:59:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1pWM-0004gf-4R for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 02:59:41 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.130]:49250) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1pWL-0004gE-P8 for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 02:59:38 -0400 Original-Received: from [18.189.84.189] ([18.189.84.189]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0LuGdb-1d2lDE3aIJ-011mTD for ; Wed, 02 Nov 2016 07:59:36 +0100 In-Reply-To: X-Provags-ID: V03:K0:e6aY/tfgce3/o7O+SGW7ujBtBoy02uyt11MDu70WdwoAhkjXlUr FilaSNsstLUiQYva5bHfVstJ/Z2b1H9ZSkj2DDghKxad4HiZK53/9tfyDA2Cp17cJ3IUIKx npqJXDwgt/+BOPJpo0M/a6knoGMEMxzOQFzTnngRXSlljk3M22A5tai9CtRXtSLpnUjCiFf eJdECXX7J5IYngAnEUgCQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:aWlfXSQgtdc=:Tevv8J+gddgxAES0ZeD5hB N7f72FHBFj6yeRp7ccHBgOtnsHOsh5lkzSgh77BBl+KODnHi5EHhOW1/6zyzvRjmymQS+A+Gy 6B4h0YsjpO3/By8ceJxanF5zG81XC03vLGFF7U2gY/vuUjF76PKKRQRA4IDUZH1SKXXUJP/d5 D/Utq0NpDe+a9XG8k4PZjsb5UXxcXnbVKJP1vhLcopYNSHXzHTuXwqhr//Ipv5WLCVxv8vmpL YuSx2K/5IwfevPjFxMwxetsiQ5WWLu58NVy9//IRocHxkDZuMlA134CZ5qcKWVchRmMb/PIuY vnWIwrLjCp1sqN+CmXe65sHHG2tsZCZgZ8ZRAxvqBO1Z02aaBOtqNuLHtXfEPB1I61elDPeI2 RDBdghFB3JIW7KFjqqsE5EsVIb+KnsOWicj0XRSYYt1Bu+YZBRWPu6o/j91Hfv4N2ou+9kZID L0VOqf44lxcuyuFY/h6WSJG2E/2u0jMBqMk3KSheGTpx5Qjlah9FTBUeJz73R6G9OYQgYRkfm EtNM+BNzf4HA74IOm0vTTsZervjhF5vMSs4deOreYhWpAJwiSusCUVA2xqlCBjT8y03VfFGj4 3jlPrHnIAmVWCVYg+viIQT/q4t/xcuJ0SacD7G1EfNwiLRWBuYaRiCZ2hy2N9IqOSA0LE4Dod GCp7rG5CZs2QL8xz8gG619f1zrdKUCxVreu814Oc6eUVSDeg9ptl39L3aILHpaEIMA7g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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" Xref: news.gmane.org gmane.emacs.bugs:125259 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FNH65Taq1mXQjupC6cC2La2mcojpEcujh Content-Type: multipart/mixed; boundary="bpsPf2AhvkBn1hN6CLR7X5KeQemVSScHl"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: Subject: Re: bug#24856: 25.1.50; Emacs stucks when using C-k to kill lines in python-mode if the next line is a beginning of a docstring References: In-Reply-To: --bpsPf2AhvkBn1hN6CLR7X5KeQemVSScHl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks, I can reproduce the bug. Here's a simpler recipe: emacs -Q test.py --eval '(insert " \"")' In other words, a mis-indented string on the first line is enough to repr= oduce the bug. It seems to be an infinite loop in fontification: Debugger entered--Lisp error: (quit) python-info-beginning-of-statement-p() python-nav--forward-sexp(-1 nil nil) python-nav-forward-sexp(-1 nil nil) python-nav-backward-sexp() python-info-docstring-p((0 nil nil t nil nil 0 nil 5 nil nil)) python-font-lock-syntactic-face-function((0 nil nil t nil nil 0 nil 5 n= il nil)) font-lock-fontify-syntactically-region(1 9 nil) font-lock-default-fontify-region(1 9 nil) font-lock-fontify-region(1 9) #[257 "\211\300\301\"\211\242\306=3D\203=10 Cl=C3=A9ment. On 2016-11-01 22:39, raynewang (=E7=8E=8B=E7=A3=8A) wrote: > Please look at the following python snippet: >=20 > class Test(object): > def func(self): > """ > This is a test. > """ >=20 > I was trying to kill lines (C-k) from line 1. Emacs stucked everytime > after I killed line 2 and was going to kill line 3 (just before the > docstring delimiters). Most time C-g would not work or just brought > Emacs back for no more than 1 sec only. When it occurred, the only thin= g > I could do was to kill Emacs process. >=20 > I tried to disable all of my Emacs configurations, nothing changed. >=20 > May it be a problem of built-in python-mode? >=20 > Wish you guys could help me. I love your works! >=20 > Sincerely >=20 > Lei >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20 > In GNU Emacs 25.1.50.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Ve= rsion 10.11.6 (Build 15G31)) > of 2016-09-20 built on raynewang-rmbp.local > Repository revision: 83fbb3a6dd75e01a768cb6b3348b7c947711ee46 > Windowing system distributor 'Apple', version 10.3.1504 > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > is undefined [2 times] > funcall-interactively: Wrong type argument: char-or-string-p, nil >=20 > Configured using: > 'configure --disable-dependency-tracking --disable-silent-rules > --enable-locallisppath=3D/usr/local/share/emacs/site-lisp > --infodir=3D/usr/local/Cellar/emacs/HEAD-83fbb3a/share/info/emacs > --prefix=3D/usr/local/Cellar/emacs/HEAD-83fbb3a --without-x --with-xml2= > --without-dbus --without-gnutls --with-rsvg --with-ns > --disable-ns-self-contained' >=20 > Configured features: > JPEG RSVG NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS >=20 > Important settings: > value of $LANG: en_US.UTF-8 > locale-coding-system: utf-8-unix >=20 > Major mode: Fundamental >=20 > Minor modes in effect: > tooltip-mode: t > global-eldoc-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > buffer-read-only: t > line-number-mode: t > transient-mark-mode: t >=20 > Load-path shadows: > None found. >=20 > Features: > (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv > bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib= > dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec > password-cache epa derived epg epg-config gnus-util rmail rmail-loaddef= s > mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils > mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr > mail-utils time-date mule-util tooltip eldoc electric uniquify > ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win > ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt > fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode registe= r > page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock > font-lock syntax facemenu font-core term/tty-colors frame cl-generic > cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao= > korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech > european ethiopic indian cyrillic chinese charscript case-table epa-hoo= k > jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvic= e > loaddefs button faces cus-face macroexp files text-properties overlay > sha1 md5 base64 format env code-pages mule custom widget > hashtable-print-readable backquote kqueue cocoa ns multi-tty > make-network-process emacs) >=20 > Memory information: > ((conses 16 206717 18560) > (symbols 48 20249 0) > (miscs 40 75 177) > (strings 32 18166 5363) > (string-bytes 1 584409) > (vectors 16 35204) > (vector-slots 8 670777 6763) > (floats 8 179 123) > (intervals 56 206 0) > (buffers 976 12)) >=20 >=20 >=20 >=20 --bpsPf2AhvkBn1hN6CLR7X5KeQemVSScHl-- --FNH65Taq1mXQjupC6cC2La2mcojpEcujh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYGY7RAAoJEPqg+cTm90wjnT8P/0wuE5SkG6qJCLAnoIpUDcR9 NbEtaXSl5AtMReUNQocHjT9tQthfYQVlZuo1AYBprLddz8QSYfdvIBCCeZ5p9CPl nve4WBYq8AhdvtfZ2yVIeSeCBfUtWItdKADXh4oSyAb+lKVYoqsfYwFknWfMtHEx duqCbhM7eNtxm3Xfy6vnQVYAkHLbouaU7kP4Q3bZUWdxOkk+aLPNezGT9A6+2VMT dypm/I7Kk8shWMzTAsWCVijM9oZRFahtvlbL40fKuZ5LULKiUzQMq6mMu+N+XuOl VooxhKuBk/QSjF0EuAoW0AkWNSeCIzCL1+6mAff4M07/IxtgdhjKOXisdR9KGLLV g//4JIE+U4AQxkTip1CagIIG0QeB1h2o6ofCYbZAsJnLrpNLops/UzdpJPSqxW/J npC8D2tAoSB2dZ+OlBQU5Nu5mLb6kzQWkXhQUv4K7sByVohL0cK3Q8j536jHTDwW 2zamAoSGzQTfw4hEgG0DxpdKiwEIKuiSLNfqBd3+6jPKURirTro9416hK3kwpLiR P9e3WX7UPUWIQ6vInyaM2pmCjB/4XtOlAe/uE3bp/iLuU+Hz99/bLyNNh2s41dnc AWUZ+z19JfnGhIgpT0zuuCGzFADjviePulLIW5Hbpvp59j44sejw+Tf9D4jBWvJa A2tkXvM+nP9ss2+I75oD =6vBI -----END PGP SIGNATURE----- --FNH65Taq1mXQjupC6cC2La2mcojpEcujh--