From: Marcin Borkowski <mbork@mbork.pl>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 19940-done@debbugs.gnu.org, simenheg@gmail.com
Subject: bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode
Date: Wed, 06 Apr 2016 13:49:23 +0200 [thread overview]
Message-ID: <8737qzrm7w.fsf@mbork.pl> (raw)
In-Reply-To: <878u0uvfol.fsf@mbork.pl> (Marcin Borkowski's message of "Sun, 03 Apr 2016 18:07:54 +0200")
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
On 2016-04-03, at 18:07, Marcin Borkowski <mbork@mbork.pl> 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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-bug-19940.patch --]
[-- Type: text/x-patch, Size: 1280 bytes --]
From 1e8cd05ba1c83fa48831e234bb3a2893252ca238 Mon Sep 17 00:00:00 2001
From: Marcin Borkowski <mbork@mbork.pl>
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
next prev parent reply other threads:[~2016-04-06 11:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 21:19 bug#19940: 25.0.50; Infinite loop in `studlify-word' with Subword mode Simen Heggestøyl
2016-04-03 3:49 ` Marcin Borkowski
2016-04-03 14:43 ` Eli Zaretskii
2016-04-03 16:07 ` Marcin Borkowski
2016-04-06 11:49 ` Marcin Borkowski [this message]
2016-04-08 7:59 ` Eli Zaretskii
2016-04-08 18:14 ` Marcin Borkowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8737qzrm7w.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=19940-done@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=simenheg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).