bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11910: 24.1.50; Missing functions in new python.el


From: Stefan Monnier
Subject: bug#11910: 24.1.50; Missing functions in new python.el
Date: Tue, 17 Jul 2012 17:35:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> (let ((string-starting-pos (python-info-ppss-context 'string)))
>    (and string-starting-pos
>         (goto-char string-starting-pos)))

Aka

  (let ((ppss (syntax-ppss)))
    (if (nth 3 ppss) (goto-char (nth 8 ppss))))

which should work for most major modes.
    

        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]