diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/misc.el | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a5464d542a2..486c12e8c5d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | 2012-08-22 Bastien Guerry <bzg@altern.org> | 1 | 2012-08-22 Bastien Guerry <bzg@gnu.org> |
| 2 | |||
| 3 | * misc.el (forward-to-word, backward-to-word): Activate or extend | ||
| 4 | the region under `shift-select-mode'. | ||
| 2 | 5 | ||
| 3 | * progmodes/executable.el (executable-prefix): Set to "#!" instead | 6 | * progmodes/executable.el (executable-prefix): Set to "#!" instead |
| 4 | of "#! ". http://www.in-ulm.de/~mascheck/various/shebang/#details | 7 | of "#! ". http://www.in-ulm.de/~mascheck/various/shebang/#details |
diff --git a/lisp/misc.el b/lisp/misc.el index cb52ecbd36e..96b739dc2b7 100644 --- a/lisp/misc.el +++ b/lisp/misc.el | |||
| @@ -99,14 +99,14 @@ Ignores CHAR at point." | |||
| 99 | (defun forward-to-word (arg) | 99 | (defun forward-to-word (arg) |
| 100 | "Move forward until encountering the beginning of a word. | 100 | "Move forward until encountering the beginning of a word. |
| 101 | With argument, do this that many times." | 101 | With argument, do this that many times." |
| 102 | (interactive "p") | 102 | (interactive "^p") |
| 103 | (or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg) | 103 | (or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg) |
| 104 | (goto-char (if (> arg 0) (point-max) (point-min))))) | 104 | (goto-char (if (> arg 0) (point-max) (point-min))))) |
| 105 | 105 | ||
| 106 | (defun backward-to-word (arg) | 106 | (defun backward-to-word (arg) |
| 107 | "Move backward until encountering the end of a word. | 107 | "Move backward until encountering the end of a word. |
| 108 | With argument, do this that many times." | 108 | With argument, do this that many times." |
| 109 | (interactive "p") | 109 | (interactive "^p") |
| 110 | (forward-to-word (- arg))) | 110 | (forward-to-word (- arg))) |
| 111 | 111 | ||
| 112 | ;;;###autoload | 112 | ;;;###autoload |