diff options
| author | Stefan Monnier | 2015-06-11 13:20:41 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-06-11 13:20:41 -0400 |
| commit | eda386fc71419a6ec33f2f5fe73d7cb7ce51c028 (patch) | |
| tree | 84196b1c4368de1565a6e849a23dd50d44931b12 | |
| parent | 35d19cc2a110b57d2aef8bf0e9ae1bf4a80d1cdb (diff) | |
| download | emacs-eda386fc71419a6ec33f2f5fe73d7cb7ce51c028.tar.gz emacs-eda386fc71419a6ec33f2f5fe73d7cb7ce51c028.zip | |
* lisp/thingatpt.el (in-string-p): Revert last change,
since in-string-p is not used in thingatpt.el but only from outside.
Also, use lexical binding.
| -rw-r--r-- | lisp/thingatpt.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index ac4a3d342d7..c26b9be1da8 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; thingatpt.el --- get the `thing' at point | 1 | ;;; thingatpt.el --- get the `thing' at point -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1991-1998, 2000-2015 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1991-1998, 2000-2015 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -177,7 +177,7 @@ The bounds of THING are determined by `bounds-of-thing-at-point'." | |||
| 177 | 177 | ||
| 178 | ;; Sexps | 178 | ;; Sexps |
| 179 | 179 | ||
| 180 | (defun thing-at-point--in-string-p () | 180 | (defun in-string-p () |
| 181 | "Return non-nil if point is in a string." | 181 | "Return non-nil if point is in a string." |
| 182 | (declare (obsolete "use (nth 3 (syntax-ppss)) instead." "25.1")) | 182 | (declare (obsolete "use (nth 3 (syntax-ppss)) instead." "25.1")) |
| 183 | (let ((orig (point))) | 183 | (let ((orig (point))) |
| @@ -185,10 +185,6 @@ The bounds of THING are determined by `bounds-of-thing-at-point'." | |||
| 185 | (beginning-of-defun) | 185 | (beginning-of-defun) |
| 186 | (nth 3 (parse-partial-sexp (point) orig))))) | 186 | (nth 3 (parse-partial-sexp (point) orig))))) |
| 187 | 187 | ||
| 188 | (define-obsolete-function-alias 'in-string-p | ||
| 189 | 'thing-at-point--in-string-p "25.1" | ||
| 190 | "This is an internal thingatpt function and should not be used.") | ||
| 191 | |||
| 192 | (defun thing-at-point--end-of-sexp () | 188 | (defun thing-at-point--end-of-sexp () |
| 193 | "Move point to the end of the current sexp." | 189 | "Move point to the end of the current sexp." |
| 194 | (let ((char-syntax (syntax-after (point)))) | 190 | (let ((char-syntax (syntax-after (point)))) |