From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs Subject: bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode Date: Sun, 03 Apr 2016 05:49:10 +0200 Message-ID: <87r3enfj2h.fsf@mbork.pl> References: <1424812744.9280.0@smtp.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459655424 17361 80.91.229.3 (3 Apr 2016 03:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2016 03:50:24 +0000 (UTC) Cc: 19940@debbugs.gnu.org To: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 03 05:50:13 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 1amZ3E-00079r-JU for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Apr 2016 05:50:12 +0200 Original-Received: from localhost ([::1]:51855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amZ3D-0006rr-Oz for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 23:50:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amZ3A-0006q8-CL for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 23:50:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amZ35-00070u-8d for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 23:50:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amZ35-00070V-5M for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 23:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amZ34-0005hI-EV for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 23:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Apr 2016 03:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19940 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19940-submit@debbugs.gnu.org id=B19940.145965536021842 (code B ref 19940); Sun, 03 Apr 2016 03:50:02 +0000 Original-Received: (at 19940) by debbugs.gnu.org; 3 Apr 2016 03:49:20 +0000 Original-Received: from localhost ([127.0.0.1]:49337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amZ2N-0005gE-M0 for submit@debbugs.gnu.org; Sat, 02 Apr 2016 23:49:19 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:39482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amZ2L-0005g6-TZ for 19940@debbugs.gnu.org; Sat, 02 Apr 2016 23:49:18 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 8E3A4A857EA; Sun, 3 Apr 2016 05:49:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zBOtUtKx-8XU; Sun, 3 Apr 2016 05:49:14 +0200 (CEST) Original-Received: from localhost (98-171.echostar.pl [213.156.98.171]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 05A66A857E8; Sun, 3 Apr 2016 05:49:13 +0200 (CEST) In-Reply-To: <1424812744.9280.0@smtp.gmail.com> ("Simen =?UTF-8?Q?Heggest=C3=B8yl?="'s message of "Tue, 24 Feb 2015 22:19:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:115910 Archived-At: On 2015-02-24, at 21:19, Simen Heggest=C3=B8yl wrote: > An infinite loop occurs when Subword mode is active and > > `studlify-word' is run on a word with more than one subword. The bug > > > seems to have been introduced by changes made to subword.el in commit > > > 6ddc44225e743e2b2a0d5c192f50aefd7a4a915b. > > > Here is a recipe that triggers the bug, starting from emacs -Q: > > > 1. Open a new buffer, and type in "subWord". > > > 2. Activate Subword mode by `M-x subword-mode'. > > > 3. Move point to the beginning of the line, and run `M-x > > > studlify-word'. Hi, I can confirm this behavior on GNU Emacs 25.1.50.7 (commit 7570b35). The problem seems to be that `studlify-region' assumes that `forward-word' and `backward-word' will stop at non-word characters (in the sense of the regex `\W'). One possible solution would be to temporarily switch `subword-mode' off in `studlify-region'. Given the nonsensicality of the latter, and the fact that it breaks studlyCapsIdentifiers anyway, this might be the preferred solution. If nobody proposes anything better, I'll tryto prepare such a patch within a few days. --=20 Marcin Borkowski