[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r114522: * lisp/emacs-lisp/syntax.el (syntax-ppss):
From: |
Xue Fuqiao |
Subject: |
[Emacs-diffs] trunk r114522: * lisp/emacs-lisp/syntax.el (syntax-ppss): Doc fix. |
Date: |
Fri, 04 Oct 2013 14:46:25 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 114522
revision-id: address@hidden
parent: address@hidden
committer: Xue Fuqiao <address@hidden>
branch nick: trunk
timestamp: Fri 2013-10-04 22:46:31 +0800
message:
* lisp/emacs-lisp/syntax.el (syntax-ppss): Doc fix.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/emacs-lisp/syntax.el syntax.el-20091113204419-o5vbwnq5f7feedwu-2251
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-10-04 10:31:59 +0000
+++ b/lisp/ChangeLog 2013-10-04 14:46:31 +0000
@@ -1,3 +1,7 @@
+2013-10-04 Xue Fuqiao <address@hidden>
+
+ * emacs-lisp/syntax.el (syntax-ppss): Doc fix.
+
2013-10-04 Michael Albinus <address@hidden>
* net/secrets.el (secrets-create-collection): Add optional
=== modified file 'lisp/emacs-lisp/syntax.el'
--- a/lisp/emacs-lisp/syntax.el 2013-05-30 13:57:44 +0000
+++ b/lisp/emacs-lisp/syntax.el 2013-10-04 14:46:31 +0000
@@ -405,9 +405,14 @@
(defun syntax-ppss (&optional pos)
"Parse-Partial-Sexp State at POS, defaulting to point.
The returned value is the same as that of `parse-partial-sexp'
-run from point-min to POS except that values at positions 2 and 6
+run from `point-min' to POS except that values at positions 2 and 6
in the returned list (counting from 0) cannot be relied upon.
-Point is at POS when this function returns."
+Point is at POS when this function returns.
+
+It is necessary to call `syntax-ppss-flush-cache' explicitly if
+this function is called while `before-change-functions' is
+temporarily let-bound, or if the buffer is modified without
+running the hook."
;; Default values.
(unless pos (setq pos (point)))
(syntax-propertize pos)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r114522: * lisp/emacs-lisp/syntax.el (syntax-ppss): Doc fix.,
Xue Fuqiao <=