all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#12231: `forward-to-word' should have work with shift-select-mode
@ 2012-08-19  1:40 Le Wang
  2012-08-22 17:15 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Le Wang @ 2012-08-19  1:40 UTC (permalink / raw)
  To: 12231


[-- Attachment #1.1: Type: text/plain, Size: 24 bytes --]

patch included.

-- 
Le

[-- Attachment #1.2: Type: text/html, Size: 49 bytes --]

[-- Attachment #2: misc.el.patch --]
[-- Type: application/octet-stream, Size: 681 bytes --]

diff --git a/lisp/misc.el b/lisp/misc.el
index cb52ecb..96b739d 100644
--- a/lisp/misc.el
+++ b/lisp/misc.el
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-22 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-19  1:40 bug#12231: `forward-to-word' should have work with shift-select-mode Le Wang
2012-08-22 17:15 ` Bastien

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.