GNU bug report logs - #24434
[25.1.1] parse-partial-sexp: opening delimiter missed

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Wed, 14 Sep 2016 09:41:02 UTC

Severity: normal

Tags: notabug

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: npostavs <at> users.sourceforge.net
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 24434 <at> debbugs.gnu.org
Subject: bug#24434: [25.1.1] parse-partial-sexp: opening delimiter missed
Date: Thu, 15 Sep 2016 08:50:35 -0400
tags 24434 = notabug
close 24434
quit

Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

>>>
>>> When outside a string, `{' is recognized as opener.
>> I think this is correct, parse-partial-sexp detects whether it's in a
>> string-literal or not. If you want to parse the contents of the string
>> literal, FROM should be inside the literal.
>
> Thanks. This works for me:
>
> (defun in-string-interpolation-maybe ()
>   (let ((pps (parse-partial-sexp (point-min) (point))))
>     (and (nth 3 pps) (nth 3 (parse-partial-sexp (1+ (nth 8 pps))
> (point))))))

Okay, looks like everything is functioning as expected, closing.




This bug report was last modified 8 years and 252 days ago.

Previous Next


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