summaryrefslogtreecommitdiff
path: root/lisp/progmodes/subword.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-01-04 21:49:44 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2014-01-04 21:49:44 -0800
commit4e619754b110208babdae8badcaa0b936072e726 (patch)
tree91e5c97367b18c3ca09e12e32f4db30baa82af4e /lisp/progmodes/subword.el
parentdc300e285ab44a27dde3b0e6047b032a7100724d (diff)
downloademacs-4e619754b110208babdae8badcaa0b936072e726.tar.gz
Change subword regexps back to vars.
* progmodes/subword.el (subword-forward-regexp) (subword-backward-regexp): Change these back to variables. Fixes: debbugs:16296
Diffstat (limited to 'lisp/progmodes/subword.el')
-rw-r--r--lisp/progmodes/subword.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/subword.el b/lisp/progmodes/subword.el
index f45b9d1da34..f9efa3732c7 100644
--- a/lisp/progmodes/subword.el
+++ b/lisp/progmodes/subword.el
@@ -93,11 +93,11 @@
(defvar subword-backward-function 'subword-backward-internal
"Function to call for backward subword movement.")
-(defconst subword-forward-regexp
+(defvar subword-forward-regexp
"\\W*\\(\\([[:upper:]]*\\(\\W\\)?\\)[[:lower:][:digit:]]*\\)"
"Regexp used by `subword-forward-internal'.")
-(defconst subword-backward-regexp
+(defvar subword-backward-regexp
"\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([[:upper:]]+\\W*\\)\\|\\W\\w+\\)"
"Regexp used by `subword-backward-internal'.")