Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
add9ca2d
Commit
add9ca2d
authored
Aug 22, 2012
by
Bastien Guerry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc.el (forward-to-word, backward-to-word): Use (interactive "^p").
Thanks to Le Wang for the patch.
parent
0fcd3d9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
lisp/ChangeLog
lisp/ChangeLog
+4
-1
lisp/misc.el
lisp/misc.el
+2
-2
No files found.
lisp/ChangeLog
View file @
add9ca2d
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
...
...
lisp/misc.el
View file @
add9ca2d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment