diff options
author | Leo Liu <sdl.web@gmail.com> | 2013-03-14 22:16:00 +0800 |
---|---|---|
committer | Leo Liu <sdl.web@gmail.com> | 2013-03-14 22:16:00 +0800 |
commit | 95b43468a4958795cee5e7bd232239c5f61d2475 (patch) | |
tree | 13639584afaec4352ff1319435fa204571d28e69 /lisp/thingatpt.el | |
parent | 00094c26f3140609f43276673908530fe3390cfc (diff) | |
download | emacs-95b43468a4958795cee5e7bd232239c5f61d2475.tar.gz |
* thingatpt.el (end-of-sexp): Use syntax-after.
Diffstat (limited to 'lisp/thingatpt.el')
-rw-r--r-- | lisp/thingatpt.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 4fd9e2e83b2..8c45659ee4a 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -182,7 +182,7 @@ The bounds of THING are determined by `bounds-of-thing-at-point'." (defun end-of-sexp () "Move point to the end of the current sexp. \[This is an internal function.]" - (let ((char-syntax (and (char-after) (char-syntax (char-after))))) + (let ((char-syntax (syntax-after (point)))) (if (or (eq char-syntax ?\)) (and (eq char-syntax ?\") (in-string-p))) (forward-char 1) |