From unknown Sat Sep 20 12:59:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19940 <19940@debbugs.gnu.org> To: bug#19940 <19940@debbugs.gnu.org> Subject: Status: 25.0.50; Infinite loop in `studlify-word' with Subword mode Reply-To: bug#19940 <19940@debbugs.gnu.org> Date: Sat, 20 Sep 2025 19:59:39 +0000 retitle 19940 25.0.50; Infinite loop in `studlify-word' with Subword mode reassign 19940 emacs submitter 19940 Simen Heggest=C3=B8yl severity 19940 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 24 16:19:25 2015 Received: (at submit) by debbugs.gnu.org; 24 Feb 2015 21:19:25 +0000 Received: from localhost ([127.0.0.1]:57059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQMt2-0008TS-LN for submit@debbugs.gnu.org; Tue, 24 Feb 2015 16:19:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39932) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YQMt0-0008TF-3s for submit@debbugs.gnu.org; Tue, 24 Feb 2015 16:19:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQMst-0002v6-Fq for submit@debbugs.gnu.org; Tue, 24 Feb 2015 16:19:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQMst-0002uw-CN for submit@debbugs.gnu.org; Tue, 24 Feb 2015 16:19:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQMss-0007tc-2B for bug-gnu-emacs@gnu.org; Tue, 24 Feb 2015 16:19:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQMsn-0002sU-S8 for bug-gnu-emacs@gnu.org; Tue, 24 Feb 2015 16:19:13 -0500 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:43913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQMsn-0002rj-Ex for bug-gnu-emacs@gnu.org; Tue, 24 Feb 2015 16:19:09 -0500 Received: by lbiw7 with SMTP id w7so27813055lbi.10 for ; Tue, 24 Feb 2015 13:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:message-id:mime-version:content-type; bh=nyhXrgeye2RtqiNETclPg0iusbCC/G5Q/stkjKmA2Lg=; b=RAjIYwmbgT8p9Ig04CtoSPQCsknL2ZaNQUybc7o9KKlJE5gsHaoQJqeEPEQJ9ZRMJY vBba3XpYSr+Yrniu6M6cVIBreEPfrQzu+c6kp57JgCqTexHqOdRmPhLqSTPiq0QbP1cG jWbQz1+kUY+/pq8b+WqJzvyCJ0pHzYASH5Ei9xqDqW58iPZspj4GwO86PKtkZ1ASEbUL /H/Fl/eAYhOuxiyBwnf5OjK/NUjkX6mvOqPyi6I+9aMFlFWs/dPO5QCs7wCOIx8i/IBA IdLRnSUqmL5JneRF6Sr1E2xpbuiGNdpRYvlgnquv2uNAtSSpdZrjBDF5rdTC0C2nyfvk L6Og== X-Received: by 10.152.20.131 with SMTP id n3mr15678789lae.120.1424812748207; Tue, 24 Feb 2015 13:19:08 -0800 (PST) Received: from [192.168.1.114] (cm-84.215.48.98.getinternet.no. [84.215.48.98]) by mx.google.com with ESMTPSA id ks4sm5715866lac.23.2015.02.24.13.19.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 13:19:07 -0800 (PST) Date: Tue, 24 Feb 2015 22:19:04 +0100 From: Simen =?iso-8859-1?q?Heggest=F8yl?= Subject: 25.0.50; Infinite loop in `studlify-word' with Subword mode To: bug-gnu-emacs@gnu.org Message-Id: <1424812744.9280.0@smtp.gmail.com> X-Mailer: geary/0.8.2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-kQXQsQbZUh61S6yCMg+5" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --=-kQXQsQbZUh61S6yCMg+5 Content-Type: text/plain; charset=utf-8; format=flowed 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'. In GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2015-02-24 on x240 Repository revision: 450bebaec94611f0958e13e35faf494e17931f8e Windowing system distributor `The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.0 (jessie) Configured using: `configure --without-makeinfo' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction 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 font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 74956 6410) (symbols 48 18012 0) (miscs 40 43 124) (strings 32 10961 5159) (string-bytes 1 296944) (vectors 16 9377) (vector-slots 8 386766 15535) (floats 8 70 63) (intervals 56 175 0) (buffers 976 11) (heap 1024 31954 1039)) --=-kQXQsQbZUh61S6yCMg+5 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ha= ve been introduced by changes made to subword.el in commit
6ddc44= 225e743e2b2a0d5c192f50aefd7a4a915b.

Here is a reci= pe that triggers the bug, starting from emacs -Q:

=   1. Open a new buffer, and type in "subWord".
  2. Act= ivate Subword mode by `M-x subword-mode'.
  3. Move point to= the beginning of the line, and run `M-x
     stud= lify-word'.


In GNU Emacs 25.0.50.2 = (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5)
 of 2015-02-= 24 on x240
Repository revision: 450bebaec94611f0958e13e35faf494e1= 7931f8e
Windowing system distributor `The X.Org Foundation', vers= ion 11.0.11604000
System Description: Debian GNU/Linux 8.0 (jessi= e)

Configured using:
 `configure --= without-makeinfo'

Configured features:
X= PM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT
=
ZLIB

Important settings:
  val= ue of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix<= /div>

Major mode: Lisp Interaction

<= div>Minor modes in effect:
  tooltip-mode: t
 = ; global-eldoc-mode: t
  electric-indent-mode: t
&= nbsp; mouse-wheel-mode: t
  tool-bar-mode: t
 = ; menu-bar-mode: t
  file-name-shadow-mode: t
&nbs= p; global-font-lock-mode: t
  font-lock-mode: t
&n= bsp; blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t=
  line-number-mode: t

Recent messa= ges:
For information about GNU Emacs and the GNU system, type C-h= C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr = emacsbug message dired format-spec
rfc822 mml easymenu mml-sec mm= -decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-uti= ls mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util help-fn= s mail-prsvr mail-utils time-date tooltip
eldoc electric uniquify= ediff-hook vc-hooks lisp-float-type mwheel x-win
x-dnd tool-bar = dnd fontset image regexp-opt fringe tabulated-list
newcomment eli= sp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow ti= mer select scroll-bar mouse jit-lock font-lock syntax
facemenu fo= nt-core frame cham georgian utf-8-lang misc-lang vietnamese
tibet= an thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
<= div>jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice<= div>loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbindgfilenotify dynamic-setting system-font-setting font-render-setting<= div>move-toolbar gtk x-toolkit x multi-tty emacs)

= Memory information:
((conses 16 74956 6410)
 (symb= ols 48 18012 0)
 (miscs 40 43 124)
 (strings = 32 10961 5159)
 (string-bytes 1 296944)
 (vec= tors 16 9377)
 (vector-slots 8 386766 15535)
 = ;(floats 8 70 63)
 (intervals 56 175 0)
 (buf= fers 976 11)
 (heap 1024 31954 1039))
= --=-kQXQsQbZUh61S6yCMg+5-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 02 23:49:19 2016 Received: (at 19940) by debbugs.gnu.org; 3 Apr 2016 03:49:20 +0000 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 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 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 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) 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) From: Marcin Borkowski To: Simen =?utf-8?Q?Heggest=C3=B8yl?= Subject: Re: bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode References: <1424812744.9280.0@smtp.gmail.com> Date: Sun, 03 Apr 2016 05:49:10 +0200 In-Reply-To: <1424812744.9280.0@smtp.gmail.com> ("Simen =?utf-8?Q?Heggest?= =?utf-8?Q?=C3=B8yl=22's?= message of "Tue, 24 Feb 2015 22:19:04 +0100") Message-ID: <87r3enfj2h.fsf@mbork.pl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19940 Cc: 19940@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 03 10:43:46 2016 Received: (at 19940) by debbugs.gnu.org; 3 Apr 2016 14:43:46 +0000 Received: from localhost ([127.0.0.1]:50075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amjFi-0006dg-JK for submit@debbugs.gnu.org; Sun, 03 Apr 2016 10:43:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amjFg-0006dS-7H for 19940@debbugs.gnu.org; Sun, 03 Apr 2016 10:43:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amjFW-0006tN-Au for 19940@debbugs.gnu.org; Sun, 03 Apr 2016 10:43:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amjFW-0006tJ-7N; Sun, 03 Apr 2016 10:43:34 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3053 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1amjFV-0005st-CU; Sun, 03 Apr 2016 10:43:33 -0400 Date: Sun, 03 Apr 2016 17:43:06 +0300 Message-Id: <83fuv2rbwl.fsf@gnu.org> From: Eli Zaretskii To: Marcin Borkowski In-reply-to: <87r3enfj2h.fsf@mbork.pl> (message from Marcin Borkowski on Sun, 03 Apr 2016 05:49:10 +0200) Subject: Re: bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode References: <1424812744.9280.0@smtp.gmail.com> <87r3enfj2h.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 19940 Cc: 19940@debbugs.gnu.org, simenheg@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > 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. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 03 12:08:04 2016 Received: (at 19940) by debbugs.gnu.org; 3 Apr 2016 16:08:04 +0000 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 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 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 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) 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) References: <1424812744.9280.0@smtp.gmail.com> <87r3enfj2h.fsf@mbork.pl> <83fuv2rbwl.fsf@gnu.org> User-agent: mu4e 0.9.13; emacs 25.1.50.7 From: Marcin Borkowski To: Eli Zaretskii Subject: Re: bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode In-reply-to: <83fuv2rbwl.fsf@gnu.org> Date: Sun, 03 Apr 2016 18:07:54 +0200 Message-ID: <878u0uvfol.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19940 Cc: 19940@debbugs.gnu.org, simenheg@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 06 07:49:36 2016 Received: (at 19940-done) by debbugs.gnu.org; 6 Apr 2016 11:49:36 +0000 Received: from localhost ([127.0.0.1]:51076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anlxn-0005ia-SH for submit@debbugs.gnu.org; Wed, 06 Apr 2016 07:49:36 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:41982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anlxm-0005iR-B0 for 19940-done@debbugs.gnu.org; Wed, 06 Apr 2016 07:49:34 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 1B318A9743C; Wed, 6 Apr 2016 13:49:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu 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 i7-Yzi-U+xIw; Wed, 6 Apr 2016 13:49:28 +0200 (CEST) Received: from localhost (98-171.echostar.pl [213.156.98.171]) by mail.mojserwer.eu (Postfix) with ESMTPSA id E5D8AA97439; Wed, 6 Apr 2016 13:49:27 +0200 (CEST) From: Marcin Borkowski To: Eli Zaretskii Subject: Re: bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode References: <1424812744.9280.0@smtp.gmail.com> <87r3enfj2h.fsf@mbork.pl> <83fuv2rbwl.fsf@gnu.org> <878u0uvfol.fsf@mbork.pl> Date: Wed, 06 Apr 2016 13:49:23 +0200 In-Reply-To: <878u0uvfol.fsf@mbork.pl> (Marcin Borkowski's message of "Sun, 03 Apr 2016 18:07:54 +0200") Message-ID: <8737qzrm7w.fsf@mbork.pl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19940-done Cc: 19940-done@debbugs.gnu.org, simenheg@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain On 2016-04-03, at 18:07, Marcin Borkowski wrote: > I'll make a patch tomorrow. Sorry it took me so long, here's the patch. I'm also closing this bug. Best, -- Marcin --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-bug-19940.patch >From 1e8cd05ba1c83fa48831e234bb3a2893252ca238 Mon Sep 17 00:00:00 2001 From: Marcin Borkowski Date: Mon, 4 Apr 2016 22:12:23 +0200 Subject: [PATCH] Fix bug #19940 * lisp/play/studly.el (studlify-region): Change \(forward\|backward\)-word to \1-word-strictly. Should fix bug#19940. --- lisp/play/studly.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/play/studly.el b/lisp/play/studly.el index f6aae45..ff1bf03 100644 --- a/lisp/play/studly.el +++ b/lisp/play/studly.el @@ -25,10 +25,10 @@ studlify-region (setq begin (point)) (while (and (<= (point) end) (not (looking-at "\\W*\\'"))) - (forward-word 1) - (backward-word 1) + (forward-word-strictly 1) + (backward-word-strictly 1) (setq begin (max (point) begin)) - (forward-word 1) + (forward-word-strictly 1) (let ((offset 0) (word-end (min (point) end)) c) @@ -55,7 +55,7 @@ studlify-word "Studlify-case the current word, or COUNT words if given an argument." (interactive "*p") (let ((begin (point)) end rb re) - (forward-word count) + (forward-word-strictly count) (setq end (point)) (setq rb (min begin end) re (max begin end)) (studlify-region rb re))) -- 2.4.3 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 08 04:00:28 2016 Received: (at 19940) by debbugs.gnu.org; 8 Apr 2016 08:00:28 +0000 Received: from localhost ([127.0.0.1]:53459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoRL9-0001VY-U5 for submit@debbugs.gnu.org; Fri, 08 Apr 2016 04:00:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoRL6-0001VJ-55 for 19940@debbugs.gnu.org; Fri, 08 Apr 2016 04:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoRKv-0004vN-7k for 19940@debbugs.gnu.org; Fri, 08 Apr 2016 04:00:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoRKv-0004vA-0g; Fri, 08 Apr 2016 04:00:13 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3897 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aoRKt-0003fa-VD; Fri, 08 Apr 2016 04:00:12 -0400 Date: Fri, 08 Apr 2016 10:59:56 +0300 Message-Id: <83shywjzsz.fsf@gnu.org> From: Eli Zaretskii To: Marcin Borkowski In-reply-to: <8737qzrm7w.fsf@mbork.pl> (message from Marcin Borkowski on Wed, 06 Apr 2016 13:49:23 +0200) Subject: Re: bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode References: <1424812744.9280.0@smtp.gmail.com> <87r3enfj2h.fsf@mbork.pl> <83fuv2rbwl.fsf@gnu.org> <878u0uvfol.fsf@mbork.pl> <8737qzrm7w.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: 19940 Cc: 19940@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Marcin Borkowski > Cc: 19940-done@debbugs.gnu.org, simenheg@gmail.com > Date: Wed, 06 Apr 2016 13:49:23 +0200 > > Sorry it took me so long, here's the patch. I'm also closing this bug. Thanks, I pushed it to the emacs-25 branch. In the future, please don't use Sed-like expressions in the log entries, use plain English instead. And we usually close bugs only after the changes are committed to the repository. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 08 14:14:27 2016 Received: (at 19940) by debbugs.gnu.org; 8 Apr 2016 18:14:27 +0000 Received: from localhost ([127.0.0.1]:54917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoavL-0004Ni-7L for submit@debbugs.gnu.org; Fri, 08 Apr 2016 14:14:27 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:47539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoavI-0004NZ-VF for 19940@debbugs.gnu.org; Fri, 08 Apr 2016 14:14:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 557D6AA27F5; Fri, 8 Apr 2016 20:14:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu 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 AH6Gr5Iunq78; Fri, 8 Apr 2016 20:14:21 +0200 (CEST) Received: from localhost (98-171.echostar.pl [213.156.98.171]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 5FDF4AA27F3; Fri, 8 Apr 2016 20:14:21 +0200 (CEST) References: <1424812744.9280.0@smtp.gmail.com> <87r3enfj2h.fsf@mbork.pl> <83fuv2rbwl.fsf@gnu.org> <878u0uvfol.fsf@mbork.pl> <8737qzrm7w.fsf@mbork.pl> <83shywjzsz.fsf@gnu.org> User-agent: mu4e 0.9.13; emacs 25.1.50.8 From: Marcin Borkowski To: Eli Zaretskii Subject: Re: bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode In-reply-to: <83shywjzsz.fsf@gnu.org> Date: Fri, 08 Apr 2016 20:14:20 +0200 Message-ID: <871t6gvugz.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19940 Cc: 19940@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 2016-04-08, at 07:59, Eli Zaretskii wrote: >> From: Marcin Borkowski >> Cc: 19940-done@debbugs.gnu.org, simenheg@gmail.com >> Date: Wed, 06 Apr 2016 13:49:23 +0200 >> >> Sorry it took me so long, here's the patch. I'm also closing this bug. > > Thanks, I pushed it to the emacs-25 branch. > > In the future, please don't use Sed-like expressions in the log > entries, use plain English instead. And we usually close bugs only > after the changes are committed to the repository. Sorry, I'm still learning to write commit messages for Emacs. I'll also remember your remark about closing. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University From unknown Sat Sep 20 12:59:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 07 May 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator