diff options
| author | Karoly Lorentey | 2004-11-13 18:34:40 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-11-13 18:34:40 +0000 |
| commit | e417405015c93c81641f5c4a33ec898b5c353772 (patch) | |
| tree | 017a980c35c8a71c372304418d151e3826f88636 /lisp/subr.el | |
| parent | f590a2a442d19f3a74d7bbd02bbcb4e3239f2327 (diff) | |
| parent | 68d1b30d251b4771f739d20f507cd9523ae3919b (diff) | |
| download | emacs-e417405015c93c81641f5c4a33ec898b5c353772.tar.gz emacs-e417405015c93c81641f5c4a33ec898b5c353772.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-673
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-674
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-675
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-676
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-677
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-678
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-679
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-680
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-681
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-682
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-683
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-684
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-685
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-686
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-687
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-688
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-689
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-690
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-691
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-692
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-693
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-69
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-70
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-71
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-267
Diffstat (limited to 'lisp/subr.el')
| -rw-r--r-- | lisp/subr.el | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 621aec8d571..bb13298d6fe 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2221,12 +2221,20 @@ from `standard-syntax-table' otherwise." | |||
| 2221 | table)) | 2221 | table)) |
| 2222 | 2222 | ||
| 2223 | (defun syntax-after (pos) | 2223 | (defun syntax-after (pos) |
| 2224 | "Return the syntax of the char after POS." | 2224 | "Return the syntax of the char after POS. |
| 2225 | The value is either a syntax class character (a character that designates | ||
| 2226 | a syntax in `modify-syntax-entry'), or a cons cell | ||
| 2227 | of the form (CLASS . MATCH), where CLASS is the syntax class character | ||
| 2228 | and MATCH is the matching parenthesis." | ||
| 2225 | (unless (or (< pos (point-min)) (>= pos (point-max))) | 2229 | (unless (or (< pos (point-min)) (>= pos (point-max))) |
| 2226 | (let ((st (if parse-sexp-lookup-properties | 2230 | (let* ((st (if parse-sexp-lookup-properties |
| 2227 | (get-char-property pos 'syntax-table)))) | 2231 | (get-char-property pos 'syntax-table))) |
| 2228 | (if (consp st) st | 2232 | (value |
| 2229 | (aref (or st (syntax-table)) (char-after pos)))))) | 2233 | (if (consp st) st |
| 2234 | (aref (or st (syntax-table)) (char-after pos)))) | ||
| 2235 | (code (if (consp value) (car value) value))) | ||
| 2236 | (setq code (aref "-.w_()'\"$\\/<>@!|" code)) | ||
| 2237 | (if (consp value) (cons code (cdr value)) code)))) | ||
| 2230 | 2238 | ||
| 2231 | (defun add-to-invisibility-spec (arg) | 2239 | (defun add-to-invisibility-spec (arg) |
| 2232 | "Add elements to `buffer-invisibility-spec'. | 2240 | "Add elements to `buffer-invisibility-spec'. |