* lisp/thingatpt.el (forward-same-syntax): Handle no ARG case.

Fixes: debbugs:11560
This commit is contained in:
Aaron S. Hawley 2012-05-25 19:40:47 -07:00 committed by Glenn Morris
parent 0a3b289f43
commit 34a008d93c
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2012-05-26 Aaron S. Hawley <aaron.s.hawley@gmail.com>
* thingatpt.el (forward-same-syntax): Handle no ARG case. (Bug#11560)
2012-05-26 Glenn Morris <rgm@gnu.org>
* progmodes/cc-mode.el (auto-mode-alist): Fix typo.

View file

@ -457,6 +457,7 @@ backwards ARG times if negative."
With prefix argument ARG, do it ARG times if positive, or move
backwards ARG times if negative."
(interactive "p")
(or arg (setq arg 1))
(while (< arg 0)
(skip-syntax-backward
(char-to-string (char-syntax (char-before))))