From: Lars Ljung <lars@matholka.se>
To: 18400@debbugs.gnu.org
Subject: bug#18400: 24.3.93; superword-mode and isearch
Date: Wed, 03 Sep 2014 22:40:35 +0200 [thread overview]
Message-ID: <54077CC3.9040202@matholka.se> (raw)
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
next reply other threads:[~2014-09-03 20:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-03 20:40 Lars Ljung [this message]
2014-09-04 16:14 ` bug#18400: 24.3.93; superword-mode and isearch Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54077CC3.9040202@matholka.se \
--to=lars@matholka.se \
--cc=18400@debbugs.gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.