aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2020-02-23 08:26:35 -0500
committerNoam Postavsky2020-02-23 09:03:18 -0500
commitba7004b2a74c69450114c12ef4521768fc165e8e (patch)
treed70d486d89859f8d4fd6b7f3241b5e7c8a360e15
parent693749c60fd7b3bdd22680c1f06158a7a6e5bd63 (diff)
downloademacs-ba7004b2a74c69450114c12ef4521768fc165e8e.tar.gz
emacs-ba7004b2a74c69450114c12ef4521768fc165e8e.zip
Shorten some ppss struct field names
* lisp/emacs-lisp/syntax.el (ppss): Capitalize docstrings. (ppss-comment-depth): Renamed from ppss-comment-nesting. (ppss-quoted-p): Renamed from ppss-after-quote-p. (ppss-min-depth): Renamed from ppss-minimum-paren-depth. (ppss-open-parens): Renamed from ppss-open-paren-positions. * etc/NEWS: Announce the ppss-* accessors.
-rw-r--r--etc/NEWS8
-rw-r--r--lisp/emacs-lisp/syntax.el26
2 files changed, 21 insertions, 13 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 380ac71260d..e9dfd266b46 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3352,6 +3352,14 @@ backslash, although there is no harm in doing so to make the code
3352easier to edit with an older Emacs version. 3352easier to edit with an older Emacs version.
3353 3353
3354--- 3354---
3355** New symbolic accessor functions for a parse state list.
3356The new accessor functions 'ppss-depth', 'ppss-list-start',
3357'ppss-last-sexp-start', 'ppss-string-terminator', 'comment-depth',
3358'quoted-p', 'comment-style', 'comment-or-string-start', 'open-parens',
3359and 'two-character-syntax' can be used on the list value returned by
3360'parse-partial-sexp' and 'syntax-ppss'.
3361
3362---
3355** The 'server-name' and 'server-socket-dir' variables are set when a 3363** The 'server-name' and 'server-socket-dir' variables are set when a
3356socket has been passed to Emacs. 3364socket has been passed to Emacs.
3357 3365
diff --git a/lisp/emacs-lisp/syntax.el b/lisp/emacs-lisp/syntax.el
index 6b464bcb13a..11cc1988b1f 100644
--- a/lisp/emacs-lisp/syntax.el
+++ b/lisp/emacs-lisp/syntax.el
@@ -89,33 +89,33 @@ Put first the functions more likely to cause a change and cheaper to compute.")
89 (:constructor make-ppss) 89 (:constructor make-ppss)
90 (:copier nil) 90 (:copier nil)
91 (:type list)) 91 (:type list))
92 (depth nil :documentation "depth in parens") 92 (depth nil :documentation "Depth in parens.")
93 (innermost-start 93 (innermost-start
94 nil :documentation 94 nil :documentation
95 "character address of start of innermost containing list; nil if none.") 95 "Character address of start of innermost containing list; nil if none.")
96 (last-complete-sexp-start 96 (last-complete-sexp-start
97 nil :documentation 97 nil :documentation
98 "character address of start of last complete sexp terminated.") 98 "Character address of start of last complete sexp terminated.")
99 (string-terminator nil :documentation "\ 99 (string-terminator nil :documentation "\
100non-nil if inside a string. 100Non-nil if inside a string.
101(it is the character that will terminate the string, or t if the 101\(it is the character that will terminate the string, or t if the
102string should be terminated by a generic string delimiter.)") 102string should be terminated by a generic string delimiter.)")
103 (comment-nesting nil :documentation "\ 103 (comment-depth nil :documentation "\
104nil if outside a comment, t if inside a non-nestable comment, 104nil if outside a comment, t if inside a non-nestable comment,
105else an integer (the current comment nesting).") 105else an integer (the current comment nesting).")
106 (after-quote-p nil :documentation "t if following a quote character.") 106 (quoted-p nil :documentation "t if following a quote character.")
107 (minimum-paren-depth 107 (min-depth
108 nil :documentation "the minimum paren-depth encountered during this scan.") 108 nil :documentation "The minimum depth in parens encountered during this scan.")
109 (comment-style nil :documentation "style of comment, if any.") 109 (comment-style nil :documentation "Style of comment, if any.")
110 (comment-or-string-start 110 (comment-or-string-start
111 nil :documentation 111 nil :documentation
112 "character address of start of comment or string; nil if not in one.") 112 "Character address of start of comment or string; nil if not in one.")
113 (open-paren-positions 113 (open-parens
114 nil :documentation 114 nil :documentation
115 "List of positions of currently open parens, outermost first.") 115 "List of positions of currently open parens, outermost first.")
116 (two-character-syntax nil :documentation "\ 116 (two-character-syntax nil :documentation "\
117When the last position scanned holds the first character of a 117When the last position scanned holds the first character of a
118(potential) two character construct, the syntax of that position, 118\(potential) two character construct, the syntax of that position,
119otherwise nil. That construct can be a two character comment 119otherwise nil. That construct can be a two character comment
120delimiter or an Escaped or Char-quoted character.")) 120delimiter or an Escaped or Char-quoted character."))
121 121