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 18:07:54 +0200 Message-ID: <878u0uvfol.fsf@mbork.pl> References: <1424812744.9280.0@smtp.gmail.com> <87r3enfj2h.fsf@mbork.pl> <83fuv2rbwl.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459699762 7070 80.91.229.3 (3 Apr 2016 16:09:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2016 16:09:22 +0000 (UTC) Cc: 19940@debbugs.gnu.org, simenheg@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 03 18:09:10 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 1amkaL-000790-QT for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Apr 2016 18:09:09 +0200 Original-Received: from localhost ([::1]:54205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amkaL-0004uo-91 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Apr 2016 12:09:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amkaH-0004uf-6D for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2016 12:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amkaD-00076E-WD for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2016 12:09:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amkaD-00076A-SK for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2016 12:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amkaD-0000DC-Ot for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2016 12:09:01 -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 16:09:01 +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.1459699684750 (code B ref 19940); Sun, 03 Apr 2016 16:09:01 +0000 Original-Received: (at 19940) by debbugs.gnu.org; 3 Apr 2016 16:08:04 +0000 Original-Received: from localhost ([127.0.0.1]:50121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amkZI-0000C1-HK for submit@debbugs.gnu.org; Sun, 03 Apr 2016 12:08:04 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:52852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amkZG-0000Bi-9Z for 19940@debbugs.gnu.org; Sun, 03 Apr 2016 12:08:02 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 4ACAAA881EB; Sun, 3 Apr 2016 18:08:01 +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 IbPbEsSuGTtH; Sun, 3 Apr 2016 18:07:58 +0200 (CEST) Original-Received: from localhost (98-171.echostar.pl [213.156.98.171]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 30493A881E9; Sun, 3 Apr 2016 18:07:58 +0200 (CEST) User-agent: mu4e 0.9.13; emacs 25.1.50.7 In-reply-to: <83fuv2rbwl.fsf@gnu.org> 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:115938 Archived-At: On 2016-04-03, at 16:43, Eli Zaretskii wrote: >> From: Marcin Borkowski >> Date: Sun, 03 Apr 2016 05:49:10 +0200 >> Cc: 19940@debbugs.gnu.org >> >> 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. > > Actually, the right solution is described in this NEWS entry: > > ** The new implementation of Subword mode affects word movement everywhere. > When Subword mode is turned on, 'forward-word', 'backward-word', and > everything that uses them will move by sub-words, effectively > overriding the buffer's syntax table. Lisp programs that shouldn't be > affected by Subword mode should call the new functions > 'forward-word-strictly' and 'backward-word-strictly' instead. > > At the time I wrote this NEWS entry, I reviewed all the callers of > forward/backward-word and changed those which I thought needed that; I > guess I missed studly.el at that time. Sorry about that. Ah, good to know. I suspected that such function would exist, but was too lazy to actually find out - sorry! I'll make a patch tomorrow. > Thanks. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University