unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15429: 23.4; doc string of `syntax-ppss'
@ 2013-09-20 21:02 Drew Adams
  2014-02-08  4:20 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2013-09-20 21:02 UTC (permalink / raw)
  To: 15429

"... except that the 2nd and 6th values of the returned state cannot be
relied upon."

Be clearer.  Say exactly which values you mean - describe them.

This is all the more important because the doc for `parse-partial-sexp'
lists the values of the return state starting with 0, not 1.  So what is
the "second" value of the return state?

Is it the second item in the returned list, or is it value "2" according
to the `parse-partial-sexp' doc?  It turns out, according to (elisp)
`Position Parse', that it is the latter.

This is really sloppy.  Even the manual's description should avoid use
of "2nd value" and "6th value", even if it does provide the real info in
parens.  In English (and math), the second value of a list is the second
value.  It is not (nth 2...) - that's the third value.



In GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601)
 of 2012-02-04 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --with-gcc (4.4) --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include'





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#15429: 23.4; doc string of `syntax-ppss'
  2013-09-20 21:02 bug#15429: 23.4; doc string of `syntax-ppss' Drew Adams
@ 2014-02-08  4:20 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2014-02-08  4:20 UTC (permalink / raw)
  To: Drew Adams; +Cc: 15429

Drew Adams <drew.adams@oracle.com> writes:

> "... except that the 2nd and 6th values of the returned state cannot be
> relied upon."
>
> Be clearer.  Say exactly which values you mean - describe them.
>
> This is all the more important because the doc for `parse-partial-sexp'
> lists the values of the return state starting with 0, not 1.  So what is
> the "second" value of the return state?

The doc (now) says:

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
in the returned list (counting from 0) cannot be relied upon.

So I think that's OK now.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-08  4:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-20 21:02 bug#15429: 23.4; doc string of `syntax-ppss' Drew Adams
2014-02-08  4:20 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).