Subject: 24.3.93; superword-mode and isearch
From: Lars Ljung <[email-masked]>
To: [email-masked]
Date: Wed, 03 Sep 2014 22:40:35 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Subword-mode and superword-mode have different behaviour when using
isearch C-s C-w. Subword-mode alters the behaviour of C-s C-w but
superword-mode doesn't.

The patch below should fix this.

=== modified file 'lisp/isearch.el'
--- lisp/isearch.el	2014-03-01 02:48:54 +0000
+++ lisp/isearch.el	2014-09-03 20:30:26 +0000
@@ -1968,7 +1968,8 @@
    (lambda ()
      (if (or (= (char-syntax (or (char-after) 0)) ?w)
              (= (char-syntax (or (char-after (1+ (point))) 0)) ?w))
-	 (if (and (boundp 'subword-mode) subword-mode)
+	 (if (or (and (boundp 'subword-mode) subword-mode)
+		 (and (boundp 'superword-mode) superword-mode))
 	     (subword-forward 1)
 	   (forward-word 1))
        (forward-char 1)) (point))))

Kind regards,
Lars Ljung