unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18400: 24.3.93; superword-mode and isearch
@ 2014-09-03 20:40 Lars Ljung
  2014-09-04 16:14 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Ljung @ 2014-09-03 20:40 UTC (permalink / raw)
  To: 18400


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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#18400: 24.3.93; superword-mode and isearch
  2014-09-03 20:40 bug#18400: 24.3.93; superword-mode and isearch Lars Ljung
@ 2014-09-04 16:14 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2014-09-04 16:14 UTC (permalink / raw)
  To: Lars Ljung; +Cc: 18400-done

> 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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-04 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-03 20:40 bug#18400: 24.3.93; superword-mode and isearch Lars Ljung
2014-09-04 16:14 ` Stefan Monnier

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).