GNU bug report logs - #18400
24.3.93; superword-mode and isearch

Previous Next

Package: emacs;

Reported by: Lars Ljung <lars <at> matholka.se>

Date: Wed, 3 Sep 2014 20:42:02 UTC

Severity: minor

Found in version 24.3.93

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18400 in the body.
You can then email your comments to 18400 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18400; Package emacs. (Wed, 03 Sep 2014 20:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars Ljung <lars <at> matholka.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 03 Sep 2014 20:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars Ljung <lars <at> matholka.se>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.93; superword-mode and isearch
Date: Wed, 03 Sep 2014 22:40:35 +0200
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




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Thu, 04 Sep 2014 16:16:01 GMT) Full text and rfc822 format available.

Notification sent to Lars Ljung <lars <at> matholka.se>:
bug acknowledged by developer. (Thu, 04 Sep 2014 16:16:02 GMT) Full text and rfc822 format available.

Message #10 received at 18400-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Ljung <lars <at> matholka.se>
Cc: 18400-done <at> debbugs.gnu.org
Subject: Re: bug#18400: 24.3.93; superword-mode and isearch
Date: Thu, 04 Sep 2014 12:14:49 -0400
> 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.

Thanks for spotting it.  Installed,


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 Oct 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.