GNU bug report logs - #23019
parse-partial-sexp doesn't output the full state needed for its continuance.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Tue, 15 Mar 2016 09:12:01 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alan Mackenzie <acm <at> muc.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23019: closed (parse-partial-sexp doesn't output the full
 state needed for its continuance.)
Date: Sun, 20 Mar 2016 13:39:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 20 Mar 2016 13:41:34 +0000
with message-id <20160320134134.GA3603 <at> acm.fritz.box>
and subject line Re: bug#23019: parse-partial-sexp doesn't output the full state needed for its continuance.
has caused the debbugs.gnu.org bug report #23019,
regarding parse-partial-sexp doesn't output the full state needed for its continuance.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
23019: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23019
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: bug-gnu-emacs <at> gnu.org
Subject: parse-partial-sexp doesn't output the full state needed for its
 continuance.
Date: Tue, 15 Mar 2016 09:13:55 +0000
Hello, Emacs.

When parse-partial-sexp finishes a parse, it fails to record whether or
not its end point is just after the first character of a two character
comment starter or ender.  When the resulting state is used as an
argument to resume the parse, p-p-s will be unaware that the comment has
started or ended and produce false results.

Proposed solution: Add an extra element to the parser state, recording the
syntax of the last character passed over before the end of the parse.
This would be used by parse-partial-sexp to initialise its parse.

Also: the existing element 9 (the list of currently open parens) and the
new element should be explicitly documented in the Elisp manual, together
with a statement that there may be further elements in the parse state
used internally by parse-partial-sexp (for future expansion).

-- 
Alan Mackenzie (Nuremberg, Germany).


[Message part 3 (message/rfc822, inline)]
From: Alan Mackenzie <acm <at> muc.de>
To: 23019-done <at> debbugs.gnu.org
Subject: Re: bug#23019: parse-partial-sexp doesn't output the full state
 needed for its continuance.
Date: Sun, 20 Mar 2016 13:41:34 +0000
Bug fixed.

On Sat, Mar 19, 2016 at 09:30:32PM -0400, Stefan Monnier wrote:

-- 
Alan Mackenzie (Nuremberg, Germany).


This bug report was last modified 9 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.