all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Honesty with parse-partial-sexp
@ 2006-12-07 17:47 Alan Mackenzie
  2006-12-09  1:26 ` Richard Stallman
  0 siblings, 1 reply; 14+ messages in thread
From: Alan Mackenzie @ 2006-12-07 17:47 UTC (permalink / raw)


Hi, Emacs!

It has become evident that certain files.el in Emacs use (car
(nth  9 ppss-state)) to obtain the position of the none-nested open
paren containing point.

However, syntax.texi says that this is secret data, not to be accessed
by the ordinary plebian Emacs user.  This doesn't seem entirely
consistent with the principles of free software.

So I propose documenting this properly.  Such as:


2006-12-07  Alan Mackenzie  <acm@muc.de>

	* syntax.texi (Parsing Balanced Expressions): Document the car of
	the ninth element returned by parse-partial-sexp.


Index: syntax.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/lispref/syntax.texi,v
retrieving revision 1.53
diff -c -r1.53 syntax.texi
*** syntax.texi	18 Jul 2006 00:06:43 -0000	1.53
--- syntax.texi	7 Dec 2006 17:37:00 -0000
***************
*** 716,724 ****
  this element is @code{nil}.
  
  @item
! Internal data for continuing the parsing.  The meaning of this
! data is subject to change; it is used if you pass this list
! as the @var{state} argument to another call.
  @end enumerate
  
  Elements 1, 2, and 6 are ignored in the argument @var{state}.  Element
--- 716,727 ----
  this element is @code{nil}.
  
  @item
! This element is a list.  Its car is the character position of the
! start of the outermost parenthetical grouping containing the stopping
! point; @code{nil} if none.  The rest of the list is internal data for
! continuing the parsing.  The meaning of this data is subject to
! change; it is used if you pass the list as the @var{state} argument to
! another call.
  @end enumerate
  
  Elements 1, 2, and 6 are ignored in the argument @var{state}.  Element


-- 
Alan Mackenzie (Ittersbach, Germany).

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

end of thread, other threads:[~2006-12-12 19:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07 17:47 Honesty with parse-partial-sexp Alan Mackenzie
2006-12-09  1:26 ` Richard Stallman
2006-12-09  4:04   ` Stefan Monnier
2006-12-09 18:25     ` Richard Stallman
2006-12-09 20:20       ` Stefan Monnier
2006-12-09  9:47   ` martin rudalics
2006-12-09 12:56     ` Miles Bader
2006-12-09 18:26     ` Richard Stallman
2006-12-09 20:30       ` Stefan Monnier
2006-12-11  1:05         ` Richard Stallman
2006-12-12  2:41           ` Stefan Monnier
2006-12-12 19:01             ` Alan Mackenzie
2006-12-12 19:29               ` Stefan Monnier
2006-12-12 19:53                 ` Alan Mackenzie

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.