[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el
From: |
Richard M . Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el |
Date: |
Sat, 06 Nov 2004 23:21:07 -0500 |
Index: emacs/lisp/subr.el
diff -c emacs/lisp/subr.el:1.423 emacs/lisp/subr.el:1.424
*** emacs/lisp/subr.el:1.423 Fri Oct 29 21:21:33 2004
--- emacs/lisp/subr.el Sun Nov 7 04:10:38 2004
***************
*** 2209,2220 ****
table))
(defun syntax-after (pos)
! "Return the 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'.
--- 2209,2228 ----
table))
(defun syntax-after (pos)
! "Return the syntax of the char after POS.
! The value is either a syntax character (a character that designates
! a syntax in `modify-syntax-entry'), or a cons cell
! of the form (CODE . MATCH), where CODE is the syntax 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'.
- [Emacs-diffs] Changes to emacs/lisp/subr.el,
Richard M . Stallman <=