aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorAaron S. Hawley2012-05-25 19:40:47 -0700
committerGlenn Morris2012-05-25 19:40:47 -0700
commit34a008d93cafcf62a7d55df454c622063c48c97c (patch)
tree12983eb24638319770bf9e59ac1320d9abf6d332 /lisp
parent0a3b289f4373a2d7aa6150695d706f9d573c3de1 (diff)
downloademacs-34a008d93cafcf62a7d55df454c622063c48c97c.tar.gz
emacs-34a008d93cafcf62a7d55df454c622063c48c97c.zip
* lisp/thingatpt.el (forward-same-syntax): Handle no ARG case.
Fixes: debbugs:11560
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/thingatpt.el1
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8dd6c7fd318..97c1e4b5320 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-05-26 Aaron S. Hawley <aaron.s.hawley@gmail.com>
2
3 * thingatpt.el (forward-same-syntax): Handle no ARG case. (Bug#11560)
4
12012-05-26 Glenn Morris <rgm@gnu.org> 52012-05-26 Glenn Morris <rgm@gnu.org>
2 6
3 * progmodes/cc-mode.el (auto-mode-alist): Fix typo. 7 * progmodes/cc-mode.el (auto-mode-alist): Fix typo.
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el
index 1600785c117..57bbdf9d94a 100644
--- a/lisp/thingatpt.el
+++ b/lisp/thingatpt.el
@@ -457,6 +457,7 @@ backwards ARG times if negative."
457With prefix argument ARG, do it ARG times if positive, or move 457With prefix argument ARG, do it ARG times if positive, or move
458backwards ARG times if negative." 458backwards ARG times if negative."
459 (interactive "p") 459 (interactive "p")
460 (or arg (setq arg 1))
460 (while (< arg 0) 461 (while (< arg 0)
461 (skip-syntax-backward 462 (skip-syntax-backward
462 (char-to-string (char-syntax (char-before)))) 463 (char-to-string (char-syntax (char-before))))