comparison lisp/emacs-lisp/syntax.el @ 47356:c4da69acaa79

(syntax-after): Delete. Moved to subr.el.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 09 Sep 2002 23:14:13 +0000
parents 829beb9a6a4b
children 0d8b17d428b5
comparison
equal deleted inserted replaced
47355:9e3ee43b5262 47356:c4da69acaa79
280 ;; "Syntactic parenthesis depth at point in BUFFER. 280 ;; "Syntactic parenthesis depth at point in BUFFER.
281 ;; This is an XEmacs compatibility function." 281 ;; This is an XEmacs compatibility function."
282 ;; (with-current-buffer (or buffer (current-buffer)) 282 ;; (with-current-buffer (or buffer (current-buffer))
283 ;; (syntax-ppss-depth (syntax-ppss)))) 283 ;; (syntax-ppss-depth (syntax-ppss))))
284 284
285 (defun syntax-after (pos)
286 "Return the syntax of the char after POS."
287 (unless (or (< pos (point-min)) (>= pos (point-max)))
288 (let ((st (if parse-sexp-lookup-properties
289 (get-char-property pos 'syntax-table))))
290 (if (consp st) st
291 (aref (or st (syntax-table)) (char-after pos))))))
292
293 (provide 'syntax) 285 (provide 'syntax)
294 ;;; syntax.el ends here 286 ;;; syntax.el ends here