emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#30617: closed (26.0.91; syntax-ppss-toplevel-pos d


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#30617: closed (26.0.91; syntax-ppss-toplevel-pos documentation bug)
Date: Sat, 03 Mar 2018 12:43:01 +0000

Your message dated Sat, 03 Mar 2018 14:42:08 +0200
with message-id <address@hidden>
and subject line Re: bug#30617: 26.0.91; syntax-ppss-toplevel-pos documentation 
bug
has caused the debbugs.gnu.org bug report #30617,
regarding 26.0.91; syntax-ppss-toplevel-pos documentation bug
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
30617: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30617
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.0.91; syntax-ppss-toplevel-pos documentation bug Date: Mon, 26 Feb 2018 20:32:06 +0100
The commentary for `syntax-ppss-toplevel-pos' in syntax.el mentions
the "undocumented 9th field" of syntax-ppss, which has been confirmed
and documented in v26.  It looks like the comment can be removed.

(defun syntax-ppss-toplevel-pos (ppss)
  "Get the latest syntactically outermost position found in a syntactic scan.
PPSS is a scan state, as returned by `parse-partial-sexp' or `syntax-ppss'.
An \"outermost position\" means one that it is outside of any syntactic entity:
outside of any parentheses, comments, or strings encountered in the scan.
If no such position is recorded in PPSS (because the end of the scan was
itself at the outermost level), return nil."
;; BEWARE! We rely on the undocumented 9th field. The 9th field currently
;; contains the list of positions of the enclosing open-parens.
;; I.e. those positions are outside of any string/comment and the first of
;; those is outside of any paren (i.e. corresponds to a nil ppss).
;; If this list is empty but we are in a string or comment, then the 8th
;; field contains a similar "toplevel" position.



--- End Message ---
--- Begin Message --- Subject: Re: bug#30617: 26.0.91; syntax-ppss-toplevel-pos documentation bug Date: Sat, 03 Mar 2018 14:42:08 +0200
> Date: Mon, 26 Feb 2018 20:32:06 +0100
> From: address@hidden (Charles A. Roelli)
> 
> The commentary for `syntax-ppss-toplevel-pos' in syntax.el mentions
> the "undocumented 9th field" of syntax-ppss, which has been confirmed
> and documented in v26.  It looks like the comment can be removed.

Thanks, fixed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]