diff options
| author | Eli Zaretskii | 2005-04-24 14:50:20 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-04-24 14:50:20 +0000 |
| commit | 9d1ffd5a916c6de9d332141520fda67521ec2dbb (patch) | |
| tree | b197f9055a1552fe4d85269837077b38785925a2 | |
| parent | 993746115ba48e3e4feb4d3f0df15103b783ca10 (diff) | |
| download | emacs-9d1ffd5a916c6de9d332141520fda67521ec2dbb.tar.gz emacs-9d1ffd5a916c6de9d332141520fda67521ec2dbb.zip | |
(syntax-after): Doc fix.
(syntax-class): If argument is nil, return nil.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/subr.el | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index be485c306d1..1d6c32e3f06 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2005-04-24 Eli Zaretskii <eliz@gnu.org> | 1 | 2005-04-24 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * subr.el (syntax-after): Doc fix. | ||
| 4 | (syntax-class): If argument is nil, return nil. | ||
| 5 | |||
| 3 | * files.el (mode-require-final-newline): Doc fix. | 6 | * files.el (mode-require-final-newline): Doc fix. |
| 4 | (backup-buffer-copy): Fix last change. | 7 | (backup-buffer-copy): Fix last change. |
| 5 | 8 | ||
diff --git a/lisp/subr.el b/lisp/subr.el index f791faffd91..d4210e562cd 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2279,7 +2279,8 @@ from `standard-syntax-table' otherwise." | |||
| 2279 | table)) | 2279 | table)) |
| 2280 | 2280 | ||
| 2281 | (defun syntax-after (pos) | 2281 | (defun syntax-after (pos) |
| 2282 | "Return the raw syntax of the char after POS." | 2282 | "Return the raw syntax of the char after POS. |
| 2283 | If POS is outside the buffer's accessible portion, return nil." | ||
| 2283 | (unless (or (< pos (point-min)) (>= pos (point-max))) | 2284 | (unless (or (< pos (point-min)) (>= pos (point-max))) |
| 2284 | (let ((st (if parse-sexp-lookup-properties | 2285 | (let ((st (if parse-sexp-lookup-properties |
| 2285 | (get-char-property pos 'syntax-table)))) | 2286 | (get-char-property pos 'syntax-table)))) |
| @@ -2287,8 +2288,9 @@ from `standard-syntax-table' otherwise." | |||
| 2287 | (aref (or st (syntax-table)) (char-after pos)))))) | 2288 | (aref (or st (syntax-table)) (char-after pos)))))) |
| 2288 | 2289 | ||
| 2289 | (defun syntax-class (syntax) | 2290 | (defun syntax-class (syntax) |
| 2290 | "Return the syntax class part of the syntax descriptor SYNTAX." | 2291 | "Return the syntax class part of the syntax descriptor SYNTAX. |
| 2291 | (logand (car syntax) 255)) | 2292 | If SYNTAX is nil, return nil." |
| 2293 | (and syntax (logand (car syntax) 65535))) | ||
| 2292 | 2294 | ||
| 2293 | (defun add-to-invisibility-spec (arg) | 2295 | (defun add-to-invisibility-spec (arg) |
| 2294 | "Add elements to `buffer-invisibility-spec'. | 2296 | "Add elements to `buffer-invisibility-spec'. |