[Python-mode] more speech driven how twos
andreas.roehler at online.de
Sun Jun 19 20:40:26 CEST 2011
Am 19.06.2011 20:21, schrieb Eric S. Johansson:
> On 6/19/2011 2:00 PM, Andreas Röhler wrote:
>> Inside the python-mode archiv exists a pars-part-output.el
>> it provides a function called parse-partial-sexp-iac
>> which displays the output of parse-partial-sexp together with its
> er. I need a bit more of an example than that :-)
> I tried running it. that documentation made some sense but I really need
> to see an example of what it does.
it reports the syntactic state of the code position. Returns a list.
Below an explanation of it's elements and what they contain. car of this
list is a number indicating the nesting, and so on:
0. depth in parens.
1. character address of start of innermost containing list; nil if none.
2. character address of start of last complete sexp terminated.
3. non-nil if inside a string.
(it is the character that will terminate the string,
or t if the string should be terminated by a generic string
4. nil if outside a comment, t if inside a non-nestable comment,
else an integer (the current comment nesting).
5. t if following a quote character.
6. the minimum paren-depth encountered during this scan.
7. style of comment, if any.
8. character address of start of comment or string; nil if not in one.
BTW XEmacs implementation is slightly different.
More information about the Python-mode