aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/subword.el6
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f24fb9d370c..896af36f060 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-11-22 Tassilo Horn <tassilo@member.fsf.org>
2
3 * progmodes/subword.el (subword-mode-map): Fix subword-mode-map
4 generation from word-movement command names.
5
12009-11-21 Chong Yidong <cyd@stupidchicken.com> 62009-11-21 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * cedet/semantic/complete.el (semantic-complete-read-tag-engine) 8 * cedet/semantic/complete.el (semantic-complete-read-tag-engine)
diff --git a/lisp/progmodes/subword.el b/lisp/progmodes/subword.el
index 655d08f9884..855a3df2ae3 100644
--- a/lisp/progmodes/subword.el
+++ b/lisp/progmodes/subword.el
@@ -86,10 +86,8 @@
86 backward-kill-word transpose-words 86 backward-kill-word transpose-words
87 capitalize-word upcase-word downcase-word)) 87 capitalize-word upcase-word downcase-word))
88 (let ((othercmd (let ((name (symbol-name cmd))) 88 (let ((othercmd (let ((name (symbol-name cmd)))
89 (string-match "\\(.*-\\)\\(word.*\\)" name) 89 (string-match "\\([[:alpha:]-]+\\)-word[s]?" name)
90 (intern (concat (match-string 1 name) 90 (intern (concat "subword-" (match-string 1 name))))))
91 "sub"
92 (match-string 2 name))))))
93 (define-key map (vector 'remap cmd) othercmd))) 91 (define-key map (vector 'remap cmd) othercmd)))
94 map) 92 map)
95 "Keymap used in `subword-mode' minor mode.") 93 "Keymap used in `subword-mode' minor mode.")