[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el |
Date: |
Mon, 22 Nov 2004 01:06:43 -0500 |
Index: emacs/lisp/subr.el
diff -c emacs/lisp/subr.el:1.426 emacs/lisp/subr.el:1.427
*** emacs/lisp/subr.el:1.426 Tue Nov 16 17:05:18 2004
--- emacs/lisp/subr.el Mon Nov 22 06:00:51 2004
***************
*** 2227,2246 ****
table))
(defun syntax-after (pos)
! "Return the syntax of the char after POS.
! The value is either a syntax class character (a character that designates
! a syntax in `modify-syntax-entry'), or a cons cell
! of the form (CLASS . MATCH), where CLASS is the syntax class character
! and MATCH is the matching parenthesis."
(unless (or (< pos (point-min)) (>= pos (point-max)))
! (let* ((st (if parse-sexp-lookup-properties
! (get-char-property pos 'syntax-table)))
! (value
! (if (consp st) st
! (aref (or st (syntax-table)) (char-after pos))))
! (code (if (consp value) (car value) value)))
! (setq code (aref "-.w_()'\"$\\/<>@!|" code))
! (if (consp value) (cons code (cdr value)) code))))
(defun add-to-invisibility-spec (arg)
"Add elements to `buffer-invisibility-spec'.
--- 2227,2238 ----
table))
(defun syntax-after (pos)
! "Return the raw syntax of the char after POS."
(unless (or (< pos (point-min)) (>= pos (point-max)))
! (let ((st (if parse-sexp-lookup-properties
! (get-char-property pos 'syntax-table))))
! (if (consp st) st
! (aref (or st (syntax-table)) (char-after pos))))))
(defun add-to-invisibility-spec (arg)
"Add elements to `buffer-invisibility-spec'.