]> code.delx.au - gnu-emacs/commitdiff
misc.el (forward-to-word, backward-to-word): Use (interactive "^p").
authorBastien Guerry <bastien1@free.fr>
Wed, 22 Aug 2012 17:12:35 +0000 (19:12 +0200)
committerBastien Guerry <bastien1@free.fr>
Wed, 22 Aug 2012 17:12:35 +0000 (19:12 +0200)
Thanks to Le Wang for the patch.

lisp/ChangeLog
lisp/misc.el

index a5464d542a21f5eee0b5dfd33d004ae43a60c76d..486c12e8c5d78bf4b60486f5caaf5265a0959306 100644 (file)
@@ -1,4 +1,7 @@
-2012-08-22  Bastien Guerry  <bzg@altern.org>
+2012-08-22  Bastien Guerry  <bzg@gnu.org>
+
+       * misc.el (forward-to-word, backward-to-word): Activate or extend
+       the region under `shift-select-mode'.
 
        * progmodes/executable.el (executable-prefix): Set to "#!" instead
        of "#! ".  http://www.in-ulm.de/~mascheck/various/shebang/#details
index cb52ecbd36eed555547b7120e14db7e4254177d1..96b739dc2b7b13965432795a137df60e2b6d8913 100644 (file)
@@ -99,14 +99,14 @@ Ignores CHAR at point."
 (defun forward-to-word (arg)
   "Move forward until encountering the beginning of a word.
 With argument, do this that many times."
-  (interactive "p")
+  (interactive "^p")
   (or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg)
       (goto-char (if (> arg 0) (point-max) (point-min)))))
 
 (defun backward-to-word (arg)
   "Move backward until encountering the end of a word.
 With argument, do this that many times."
-  (interactive "p")
+  (interactive "^p")
   (forward-to-word (- arg)))
 
 ;;;###autoload